**** BEGIN LOGGING AT Mon Apr 28 02:59:59 2014 Apr 28 03:00:17 it's hardware, and the source is only 10gb Apr 28 03:01:13 firelegend: now you have no excuse left! Apr 28 03:01:19 get to downloading Apr 28 03:01:34 pfn:A full build of Android takes over 100 gigs Apr 28 03:01:55 and apparently twice the RAM I have. Apr 28 03:02:40 i'm trying to convert an ios app to android. i'm having a hard time translating the way things should flow / work. in my app, there is a "main" screen, and then others are navigated to from there, either programmatically or via user interaction. my problem is how to make those new activities in android call methods on the original activity. there are some objects in the "main" activity that the other's need to read pr Apr 28 03:02:41 operties from and call methods on. Apr 28 03:03:14 alex_PP: this show is so far so good, not to many uhm's and like's and you know's, and I like how they are pointing out useful stuff developers can use Apr 28 03:03:27 i use delegates in iOS, but don't know what that's called or if it even exists in android Apr 28 03:03:39 jnewt: you need to completely change the way you think .... that and fragments :) Apr 28 03:04:55 shmooz, yeah, they get less "umm"-"like"y as they go on too Apr 28 03:05:08 the one about verfiy apps is really interesting Apr 28 03:07:31 lmao, building android under Windows isn't supported. Apr 28 03:07:52 There's a saying, when there's a will, there's a way! Apr 28 03:08:02 why would you bother ... Apr 28 03:08:11 Because I am a Windows user? Apr 28 03:08:21 firelegend: it probably needs some native linux libs Apr 28 03:08:57 A cross-compiler should solve that. Apr 28 03:11:18 bankai_au: ok, i'm getting pretty deep in the dev guide section on fragments here. how is this different than just another activity other than you can show them differently on tablet vs phone screen sizes (ie two on one screen). Apr 28 03:11:44 jnewt: one activity -> many fragments Apr 28 03:12:20 bankai_au, no "many activities" in android? Apr 28 03:12:26 so it enables you do a few things, the side-by-side fragments, multiple fragments on screen, fragment pagers Apr 28 03:12:43 you can do many activities, of course, but you should group like-content. ie. a new activity should be unrelated content Apr 28 03:13:37 jnewt: i'm not sure what you're doing exactly, but delegate stuff is a little different in android. if you can be more specific Apr 28 03:14:01 jnewt:It takes time getting used to a new platform. Apr 28 03:14:19 The convenience you had in a previous platform is not always present in another. Apr 28 03:14:33 bankai_au: sure, i am handling a bluetooth low energy device. I actually have it working in android, but just in a proof of concept procedural way, with no ui. Apr 28 03:15:17 bankai: so in my ios app, i have one class / ui that has all the bluetooth handling stuff, and contains all of the objects related to the device and communication. Apr 28 03:16:10 then other ui's are "pushed" onto that one, and call methods in it, to separate the different functions of the device, such as sensor readings on one, outputs on another, user settings on a third, and so on. Apr 28 03:16:40 but all of those "other ui's" have to call all of the methods on the main one to be able to communicate with the device. Apr 28 03:17:10 they also call methods on the first to just get locally stored information about the connection, device, etc. Apr 28 03:17:30 jnewt:Generally, you don't want CPU-intensive code to run on the main activity Apr 28 03:17:52 or, main thread to be more precise Apr 28 03:18:09 So..threading might be necessary, but I haven't coded for Android in over 2 years Apr 28 03:22:28 jnewt: so with this kind of layout, if i understand correctly, you can setup in the main, then share with the fragments via callbacks (fragments call back to activity or activity pushes to fragments ala RAC/RXJava) Apr 28 03:28:43 bankai_au: good. that sounds reasonable based on what i've read. how would the layout be handled. i see that in the examples, sometimes they throw multiple fragments into one xml file, and other times, they just put one. i don't want any dual layout, so i'm assuming i would just have some layout, with one fragment section for each fragment class right? Apr 28 03:29:08 last sentence didn't come out right. Apr 28 03:29:33 it's kinda similar to how XIBs work Apr 28 03:29:36 i'd have multiple xml files, each having only one bankai_au, i came into this game post-xib, i'm a storyboard, segue guy at this point Apr 28 03:30:18 so the activity has one layout and a place holder for a fragment, then you can just add/replacement a fragment in this placeholder... each fragment then has its own layout Apr 28 03:31:11 or, like in iOS, you can roll it all by hand Apr 28 03:37:41 any best practicess to make android avator (circle) from facebook profile image? Apr 28 03:45:55 I need to place 5 clickable icons of social networks in a row. What element shoult I use for each? ImageView? Button with graphics? What would be default choice? Apr 28 03:47:34 creitve: ImageButton ? Apr 28 03:48:43 creitve: http://developer.android.com/reference/android/widget/ImageButton.html Apr 28 03:48:56 shmooz: okay, thanks! Apr 28 04:25:30 Hey, does anyone know if it's possible for an app without root permissions to serve a web interface? Even if port 80 is locked, can you serve on port 8080? Apr 28 04:39:31 looks like it's possible, though I haven't tried it myself https://code.google.com/p/android-webserver/ Apr 28 04:44:09 cool, thanks Apr 28 05:15:28 why doesnt android come with jackson json objectmapper? the full lib Apr 28 05:20:10 topriddy why should it? you can just get it easily Apr 28 05:20:47 then you wind up like apache http client, some old shitty with bugs bundled with the platform, getting in the way of you just grabbing a new one Apr 28 05:50:10 Can anyone recommend some good info on how to create an EULA? Apr 28 05:56:16 BWestOz: http://lmgtfy.com/?q=how+to+create+eula Apr 28 05:57:16 topriddy, Thanks, yeah well I did that Apr 28 06:21:09 hi guys, this seems like super basic lifecycle stuff but i can't figure it out for the life of me Apr 28 06:21:37 essentially if i try to send a notification when my app has been destroyed, i get a force close (even though my app's not technically open, i use a broadcastreceiver so it picks up on the alarm) Apr 28 06:22:03 is there a way i can either A) save the context - but this seems like a memory leak waiting to happen - or B) recreate the activity the right way before calling ym notification? Apr 28 06:22:52 i can't just call like MainActivity m = new MainActivity() and then use that as the context everywhere, right? that seems like it can't ever work lol Apr 28 06:29:07 RedDunce: erm... when your BroadcastReceiver gets run, what method is called? Apr 28 06:30:18 onReceive(Context c, Intent i) Apr 28 06:30:49 and from there, i call makeNotification(Context c, FoodItem i) Apr 28 06:31:12 it works fine if i keep my mainactivity running Apr 28 06:31:18 but if i close the app (or rotate) Apr 28 06:31:21 i get npe Apr 28 06:31:37 what is null? Apr 28 06:34:27 I'm almost positive it's c.getSystemService() unfortunately my phone does this ridiculous thing every time i hit the center button Apr 28 06:34:36 (to close all apps aka destroy it aka reintroduce this bug) Apr 28 06:34:44 it switches from installer to media device Apr 28 06:34:55 so i can't find the exact source (or anyways, i don't know how to) Apr 28 06:35:56 I don't think the context passed to onReceive is ever going to be null Apr 28 06:36:42 i really need to get my phone to stop switching to Media Device so i can actually debug this ugh :/ Apr 28 06:55:43 do you think i should use a service not broadcastreceiver? Apr 28 07:11:46 hello! Apr 28 07:12:36 I would would like to make repetitive task in my app, what should I use ? normal service ? would like to show users some full screen dialog even if they are on launcher screen Apr 28 07:19:17 hi, can I access the adb shell through the AFT? Apr 28 07:19:21 ADT?* Apr 28 07:22:22 how do i check from my activity if a fragment is loaded in the fragment container (and not replaced i guess), i want to know whether i should be passing updated data to it or not. Apr 28 07:31:48 <_CalLightman_> Hi... i have an application that uses both hindi and english text. It works fine but in some devices the hindi text is broken ... can someone suggest an explaination or fix Apr 28 07:32:16 probably phone problem Apr 28 07:32:53 <_CalLightman_> i provide the font file to the type setting option Apr 28 07:33:07 <_CalLightman_> that is the right way to do it ... right? Apr 28 07:34:17 gordon_: service or broadcast receiver should work i think Apr 28 07:35:23 jnewt ask the fragment manager for it, if its not null its there Apr 28 07:36:30 hi g00s. got the bluetooth low energy stuff working from the other day. Apr 28 07:36:39 \o/ Apr 28 07:36:49 jnewt what turned out to be the problem ? Apr 28 07:37:10 slow as shit compared to iOS, had to adjust all my default timeouts on my device. Apr 28 07:37:39 O.o Apr 28 07:37:47 you were using a bluegiga ble112 right ? Apr 28 07:37:58 yup Apr 28 07:38:05 Hi, what's the best way to detect that my application was uninstalled? Apr 28 07:38:23 i remember someone saying the sensortag was slow to xfer data compared to iOS Apr 28 07:38:41 i dunno, damn android Apr 28 07:38:56 g00s, it's the difference between a fraction of a second on iOS and 30sec - 1min on android Apr 28 07:39:17 for my transfer (I have a lot of stuff though) Apr 28 07:39:24 I've read about GCM based methods, i.e. receiving NotRegistered event, but then the question is whether NonRegistered can also be received in other cases, where the app is still installed (for example Cyanomod which have ability to strip permissions from app) Apr 28 07:39:36 now you have me quite curious and i'll have to mess around with it more. i still use rfcomm Apr 28 07:40:47 jnewt compared to when i wrote this code in 2010 / froyo … i did have to add a whole bunch of connection retry / timeout stuff Apr 28 07:41:06 seemed like back then everything just worked fine, or not at all because of some shitty device Apr 28 07:41:34 like some crappy HTCs Apr 28 07:43:25 g00s, from my device point of view, iOS encrypts 1st try. from android it fails 10-12 times before getting it right. Apr 28 07:43:51 all the while, from the android app, it just shows BOND_BONDING, as if there's no issue Apr 28 07:44:28 ugh that sucks Apr 28 07:44:41 <_CalLightman_> what is the right way to display texts in other languages( particularly hindi) Apr 28 07:44:58 anywho. i can't figure out how to call methods in my activity from a fragment. i setup an interface, with the methods in it in the fragment. compiles fine, but the i get a null pointer exception. i'll paste my fragment. Apr 28 07:46:21 <_CalLightman_> also my app uses camera intent. As soon as it clicks and wants to return to the calling activity, it is sometimes re initialized Apr 28 07:46:43 <_CalLightman_> is it a code issue or hardwaerw Apr 28 07:46:47 <_CalLightman_> *hardware Apr 28 07:48:11 oh, wait, i actually have no idea what i'm doing. Apr 28 07:48:30 wildroman2, GCM registration is tracked by the Google service on the phone and it's about the most reliable thing you have Apr 28 07:48:38 http://pastebin.com/X6Ksi7LC that's what I have anyway Apr 28 07:49:36 jnewt thats strange code. why not put all the scan stuff in the fragment Apr 28 07:49:43 thats the way i do it ;) Apr 28 07:50:18 g00s, i'd like to keep all my bluetooth stuff together. it became a nightmare on the iOS app and I re-did it and it's much nicer that way. Apr 28 07:50:19 Mavrik: is it possible that NotRegistered is received even if the app is installed? Apr 28 07:51:05 g00s, it works either way, and i actually have a few beta testers still running the other way without issue. but for me, it's preferred. Apr 28 07:51:07 unlikely Apr 28 07:51:13 wildroman2, but you're asking the wrong question. Apr 28 07:51:16 jnewt OK Apr 28 07:51:20 because the whole tracking aspect isn't 100% reliable Apr 28 07:51:25 and you have to prepare for it. Apr 28 07:51:30 i think i need getActivity().method() somehow Apr 28 07:51:48 and the interface stuff can go away Apr 28 07:52:27 jnewt, I suggest you use a message bus instead of calling methods Apr 28 07:52:33 jnewt thats another thing, i wish they had a freaking system wide bluetooth device picker. its tucked away in the settings app for sure, you can try to get to it, but its private Apr 28 07:52:36 way less spagetti, easier to work, etc. Apr 28 07:52:46 jnewt, but if you're against it just use a cast :) Apr 28 07:52:47 Mavrik: I figure as much. Trying to see in what scenarios I'm expected to see the wrong state. Apr 28 07:52:56 Mavrik: never heard of message bus Apr 28 07:53:07 wildroman2, we haven't seen many false positives for not installed Apr 28 07:53:26 wildroman2, since NotInstalled state is signaled back when G servers attempt delivery of push message for an app that doesn't exist Apr 28 07:53:33 Mavrik: this got me worried: https://groups.google.com/forum/#!msg/android-gcm/y8M6ChLB-2E/SVC18ydqYp0J Apr 28 07:53:41 jnewt, it's a design pattern, see Otto / EventBus libraries Apr 28 07:53:43 Mavrik: is there a class i can look up in the docs? Apr 28 07:53:49 ok, thanks Apr 28 07:53:51 i used to use message busses much more than i do now ;) Apr 28 07:53:59 jnewt see greenrobot message bus Apr 28 07:54:09 Mavrik: and this: http://www.androidpolice.com/2011/03/26/cyanogenmod-may-soon-allow-users-to-revoke-specific-application-permissions-cue-mass-force-closing-as-a-result/ Apr 28 07:54:16 yeah, they're still hellova useful for inter-fragment / activity communication Apr 28 07:54:57 wildroman2, hrmpf Apr 28 07:55:02 ah, it's like a notification system Apr 28 07:55:29 jnewt, yeah, the neat thing is, you get saved from TONS of lifecycle mess when dealing with UI updates Apr 28 07:55:38 especially with Sticky messages which are neat in EventBus lib Apr 28 07:55:57 Mavrik you use the greenrobot one too ? Apr 28 07:56:08 i think they also have ordered delivery Apr 28 07:56:15 hello, why is setSummary() not persistent after I quit and open my app? Apr 28 07:56:27 i thought it saves to sharedpreferences Apr 28 07:56:34 no Apr 28 07:56:54 g00s, yeah, I prefer greenrobots because it has thread control and sticky messages Apr 28 07:57:13 so I can send UI updates with sticky messages which saves me tons of bugs and code issues when updating UI over orientation changes :) Apr 28 07:57:20 i've been using rx for all my eventing Apr 28 07:57:37 Yeah, I don't have any new enough projects for RX now Apr 28 07:57:45 also, all code for Java looked positively hideous :D Apr 28 07:58:07 I use greenrobot too, with much happiness. I like the way onEvent's are defined, pattern matching style. Apr 28 07:58:16 indeed, the thing to do with rx, is to not use so many anonymous inner classes; just define the class and reference it Apr 28 07:58:39 gief Java8 :( Apr 28 07:58:45 i sure can't read it ;) oh would be nice with lamda, yea Apr 28 07:59:15 Trandroid, what is "setSummary"? :) Apr 28 08:00:21 Preference.setSummary Apr 28 08:00:23 Mavrik: uhh, it, well, sets the android:summary field of a preference. so it has the little text at the bottom of a preference box be it an edittextpreference or a listpreference Apr 28 08:00:31 yeah, that Apr 28 08:00:46 thats just a aid to the human, its not the preference itself :D Apr 28 08:00:57 usually statically done in the preferences.xml but ... Apr 28 08:01:07 if you are shnazzy you can put the value in there Apr 28 08:01:11 "12 minutes" Apr 28 08:02:12 Well... yes but I would like to have it update, when the user selects something. for example, a file, then in onactivityresult I have a method that does setSummary(). Apr 28 08:02:34 i think the AS template for that creates a SharedPreferenceChangedListener, and then find the Preference who just changed, and takes it and stuff that value as a string in the summary Apr 28 08:03:20 Trandroid sure, well you can set up a listener, or … on onStart() just refresh them Apr 28 08:04:35 still, i thought if i defined an interface in a fragment and then implement that on the main activity, i could call those main activity methods from the fragment using interface.method is that not the case? Apr 28 08:04:56 jnewt, you can always do Apr 28 08:05:15 ((MyActivity) getActivity()).method() Apr 28 08:05:25 that is, cast the result of the call to your activity type Apr 28 08:05:38 BUT... remember, getActivity() CAN and WILL return null at times when fragment is not attached Apr 28 08:05:52 g00s: I think I will go with onStart, even onCreate... but I'm not sure whether to muck around with getDefaultSharedPreferences and assign android:summary manually... Apr 28 08:07:23 i thought canadiancow did a good job of covering it in I/O last year, here is the link https://code.google.com/p/platform-features-talk-io-2013/source/checkout Apr 28 08:07:28 jnewt ^^^ Apr 28 08:07:47 browse the source and get slides.pdf Apr 28 08:08:05 they talk about communication both ways, not just fragment to activity Apr 28 08:08:14 i always thought it would be cool if there was some kind of service locator Apr 28 08:09:21 so setSummary just writes to an instance of the preference (is that the right term?) I'm not sure what it does, actually, since I'm doing findPreference("key") then .setSummary() on that, from my understanding addPreferencesFromResource would automatically retrieve the preferences onCreate() Apr 28 08:11:22 I have a device (Samsung Galaxy S2) running API v16 which can use a method that supposedly was first introduced in v17 (SetCompoundDrawablesRelativeWithIntrinsicBounds). Whats up with that? If i can use it on more devices than the documentation says, then i definitely want to... But how can i know? I'd prefer not to use a lot of reflection stuffs to find out if the method exists or not Apr 28 08:13:16 Hi all, does somebody know a good website for designing an Android app? Handling different screen resolution etc. (smartphone only) Apr 28 08:13:18 liefer, well you answered it youself Apr 28 08:13:23 you can know only on v17. Apr 28 08:13:31 FrancescoV, design.android.com? Apr 28 08:13:47 Mavrik: The documentation says so. Yet, in real life, im using it on a device running v16. Apr 28 08:13:49 sorry, this: https://developer.android.com/design/index.html Apr 28 08:13:56 liefer, yes? Apr 28 08:14:13 Methods can exist for many versions before it's made public Apr 28 08:14:15 liefer, you have a guarantee that that method works on API17. Apr 28 08:14:29 liefer, you DON'T have a guarantee that that method exists or works before that Apr 28 08:14:34 you don't want to use reflection to check Apr 28 08:14:35 There's no guarantee that it exists on all devices previously to it being made public, and there's no guarantee to its behavior Apr 28 08:14:37 so use it only on 17. Apr 28 08:14:58 I see. Thank you Apr 28 08:16:02 What would be an image size threshold for loading images on a separate thread? Apr 28 08:16:46 size in kB not dimensions Apr 28 08:17:06 well Apr 28 08:17:13 there isn't one Apr 28 08:17:21 the question is... how long does your user want to wait? Apr 28 08:17:49 Eh, I want it to load instantly Apr 28 08:17:58 Is 100kB too much to do on the main thread? Apr 28 08:18:33 yes. Apr 28 08:18:42 at least if you don't want stuttery app Apr 28 08:18:53 main thread has better work to do than load your images Apr 28 08:19:30 Yeah, ok. Thanks Apr 28 08:20:37 Mavrik: thanks, found how to handle different dpi, with xhdpi = 2.0 and mdpi = 1.0 . But how to handle different screen resolutions? Apr 28 08:22:57 FrancescoV, by making layouts that scale basically Apr 28 08:23:14 centering items that should't resize, autoresizing others... it's a really general question :- Apr 28 08:23:20 :- Apr 28 08:23:29 ffs keyboard layouts -_- Apr 28 08:24:11 Mavrik: and I the designer wants to create a launch screen for the whole screen, which resolution should he create this? Apr 28 08:25:04 FrancescoV, standard devices out there right now are mostly 800x480, 1280x720, 1920x1080 Apr 28 08:25:17 FrancescoV, but some of them have soft buttons so the sizes arent exact Apr 28 08:25:21 so leave some border space to be cut Apr 28 08:25:41 and also make sure he makes borders of image uniform color, so you can set background of activity to that color and center the image on screen Apr 28 08:44:24 anyone have some details on how manifest merging works? it seems really.. odd. Apr 28 08:46:41 always seemed complicated to me. too complicated. the kind of complicated that makes everything else around it complicated Apr 28 08:46:43 and brittle Apr 28 08:47:05 that's my experience with it so far too. Apr 28 08:47:28 I've always just gotten then "manifest merging is not supported" error :P Apr 28 09:19:55 hi, i resize a custom dialog (activity with theme dialog) with window.setLayout but there is an animation going on to resize, how can i modify this animation? When i change the animation of the window.getDecorView(), the content of the dialog will be animated but not the background. I found a stackoverflow question on this but there is no answer (http://stackoverflow.com/questions/18775567/disable-window-resize-animation-on-android Apr 28 09:24:11 I added to my manifest the broadcast_sms permission and the SMS_Deliver intent filter. Anyone an idea why my app isn't showing up in the list of default sms apps? Apr 28 09:57:01 Hi guys. The Android dev documentation isn't really clear about the onAttach() method call. Apr 28 09:57:01 I've a retained fragment, I wanted to know: each time its parent activity (or its parent fragment) will get it from its tag, after a configuration change for example, is the onAttach() called, as the retained fragment isn't destroyed at its whole creation life cycle isn't performed again. Apr 28 09:58:01 According to that table, the onAttach() method should be called once. --> https://developer.android.com/guide/components/fragments.html#Lifecycle Apr 28 09:59:04 wget, maybe that helps: http://staticfree.info/~steve/complete_android_fragment_lifecycle.png Apr 28 09:59:09 wget i think onAttach / onDetach are called, but not onCreate / onDestroy Apr 28 09:59:21 for the setRetainInstance scenario Apr 28 09:59:42 Mavrik omg :| its more complicated than i though Apr 28 09:59:58 way too much BS, imho Apr 28 10:02:31 g00s, the "gray" ones aren't really public Apr 28 10:02:58 Mavrik: g00s: Mmh. So according to Mavrik's life cycle shema, the onAttach() is called everytime the activity is reattached to my retained fragment. My assumption was right. Apr 28 10:03:20 it's the other way around, your retained fragment is attached to new activity :) Apr 28 10:04:06 g00s: Mavrik: Btw, I'm using a weak reference in my fragment in order for the activity (which is destroyed on configuration changes) to be garbage collected. Apr 28 10:04:34 yeah, you probably shouldn't be holding activity reference at all :) Apr 28 10:04:43 yeah i use getActivity() Apr 28 10:04:57 * g00s wishes java had ?. Apr 28 10:05:26 Just null our your reference in onDetach Apr 28 10:05:41 g00s: By using getActivity() in a retained fragment, all your old activities aren't garbage collected and you're suffering from memory leaks. Apr 28 10:06:03 SimonVT: Not bad idea ;-) Let's see if my async task will love that ;-) Apr 28 10:06:13 hm, depends. if you just need a context to get, say prefs - than no Apr 28 10:06:37 using app context for that works better usually :) Apr 28 10:06:56 getActivity().getApplicationContext() yuck :| Apr 28 10:07:40 Mavrik: It's ugly regarding OOP xD This reminds be global variable in C. I'm using the App object as few as I can. Apr 28 10:07:51 that's silly Apr 28 10:08:23 the context describes your environment and is a singleton by definition Apr 28 10:08:41 wget well, there is tons of state … which is ugly indeed Apr 28 10:08:41 going through hoops and risking Activity reference leaks just because you don't want to use application context where appropriate is silly ;) Apr 28 10:10:23 Mavrik: I actually need a reference to my activity/parent fragment since my headless fragment is talking to an async task, and that async task needs a context where to update its GUI results ;-) Apr 28 10:10:41 Mavrik: This is why an application context cannot work IMHO here. Apr 28 10:10:44 yeah, we just had a conversation about that Apr 28 10:10:58 you can throw away 80% of pointless code and complexity by using a message bus or Rx Java :P Apr 28 10:10:59 Mavrik: And you see I'm still stuck at that problem. ;-) Apr 28 10:24:32 hey g00s Apr 28 10:24:38 hey Napalm ;) Apr 28 10:24:54 sometimes a dispare at some of Android's issues Apr 28 10:25:08 everytime I attempt to use MediaPlayer i almost cry Apr 28 10:25:11 :S Apr 28 10:25:31 that is a 'problem api' Apr 28 10:26:01 g00s: have you ever tried to "MediaPlayer.setSurface" whilst a video is playing Apr 28 10:26:10 magical things happen Apr 28 10:26:10 lol Apr 28 10:26:16 Napalm no, i stay away from that stuff completely Apr 28 10:26:23 and no camera Apr 28 10:29:35 Mavrik: g00s: Mmmh according to my tests, onAttach() isn't called by simply doing new HeadlessFragment(); Apr 28 10:29:55 I put a Log.e in that method, and don't see anything on the logcat :-/ Apr 28 10:30:04 why would it be called ? Apr 28 10:30:19 you have to add it to the fragment manager first :D Apr 28 10:30:39 g00s: I did it by using a transaction and nothing happened. I'm gonna retry. Apr 28 10:30:50 and you committed Apr 28 10:36:35 g00s: Here is the code of my onCreateDialog() method from my dialogFragment, dialog which calls my taskFragment (headless/retained). http://pastebin.com/yNSCLEQ5 Apr 28 10:36:36 This should works. But when I open my dialogFragment, this one closes unexpectedly and it doesn't appear any more :-/ Apr 28 10:36:56 I think I should get a medal for solving this one Apr 28 10:37:07 No solutions.. anywhere online Apr 28 10:37:07 * g00s gives Napalm one internet medal Apr 28 10:37:11 yay! Apr 28 10:37:46 MediaPlayer with surface that can change without any hicups or issues Apr 28 10:38:01 wget hmm, one fragment creating another O.o Apr 28 10:38:22 g00s: Yep. It was working fine ;-) Apr 28 10:38:31 hmmmmmmmmmmm Apr 28 10:38:35 'was' Apr 28 10:38:52 'working fine enough we didn't realize it was indeed broken' Apr 28 10:38:55 when I used a method to set the activity manually, yes it was. By using the onAttach() built-in it doesn't any more Apr 28 10:39:29 i forgot how to use dialogfragments honestly, there is some extra stuff in there Apr 28 10:41:11 who's got problems with DialogFragment's? Apr 28 10:41:17 g00s: I've always used a new UserMgmtNewUserDialog().show(getSupportFragmentManager(), "DroidContactUserManagementNewUserDialog"); from the activity that calls my dialogFragment and it always worked. Apr 28 10:41:18 i know too much about them Apr 28 10:41:36 wget there you go, Napalm to the rescue Apr 28 10:42:03 wget: whats the prob, bob Apr 28 10:42:04 :D Apr 28 10:42:05 Napalm if you solve this, maybe you get one more internet medal ! Apr 28 10:42:06 Napalm: Me o/ Actually, I've a activity that calls a dialog fragment. That dialog fragment calls a headless fragment which will handle async task for him. Apr 28 10:42:58 It worked fine until I remove the method which define the callback method the headless fragment will use. I want to use the onAttach() of my headless fragment method instead. Apr 28 10:43:36 Napalm: This prevent me to type from the dialogfragment taskFragment.setCallback(this); (where taskFragment is my headless fragment obviously). Apr 28 10:43:53 why not set it as the TargetFragment? Apr 28 10:44:32 also you are adding it twice Apr 28 10:45:21 wget: in your onAttach cast getTargetFragment() to your callback Apr 28 10:45:22 Napalm: Adding it twice? How are you gonna say to the AsyncTask, "hey, here is the callback you need to call on your postExecute()) Apr 28 10:45:43 wget: this is your code right? http://pastebin.com/yNSCLEQ5 Apr 28 10:46:16 your fragment transaction should be in the mTaskFragment == null conditional Apr 28 10:46:50 Napalm: This is the code from my dialog fragment, not from my headless fragment. ;-) Apr 28 10:46:55 i know Apr 28 10:46:58 its still wrong Apr 28 10:47:17 wheres the code for your headless fragment Apr 28 10:47:27 you know there's a code example that does exactly this Apr 28 10:47:30 in the sdk Apr 28 10:47:39 Hello. Is there anyway using android studio on multiple monitors? Apr 28 10:47:50 * g00s looks into his bag of internet awards and pulls one out Apr 28 10:48:24 misterli ! have you fixed your NOT_STICKY service thingy? Apr 28 10:48:26 SDK\samples\android-19\legacy\ApiDemos\src\com\example\android\apis\app\FragmentRetainInstance.java Apr 28 10:48:30 wget: ^ Apr 28 10:48:30 Napalm: By putting the transaction in the condition, the headless fragment will only be added when the dialog fragment is created for the first time. :-/ Apr 28 10:48:38 yes g00s Apr 28 10:48:39 ;) Apr 28 10:48:54 wget: thats the idea.. because its retained its already added next time around Apr 28 10:49:28 wget: remember if its not added then findFragmentByTag would return null Apr 28 10:49:44 Napalm: Hmm I didn't know we didn't have to add the headless fragment again. Apr 28 10:49:57 wget: check the example i linked you do Apr 28 10:49:58 to Apr 28 10:50:19 wget: it has exactly what you want in it.. a DialogFragment attached to a HeadlessFragment Apr 28 10:50:48 wget: they use a Thread directly so its got all the sync crap.. but you can rip that out and replace it with a AsyncTask Apr 28 10:52:02 Napalm: Hmm. I tested by putting the fragment manager transaction in the null condition check. But still the same problem, the dialog fragment doesn't appear. Apr 28 10:52:02 I'm gonna read your example. Apr 28 10:59:52 Napalm: Hmm. Any reason that in the example, it checked for null and made the fragment transaction in onActivityCreated()? Apr 28 11:00:14 because that's where it should be done Apr 28 11:01:02 wget: just doing you a quick example Apr 28 11:01:39 Napalm: And getSupportFragmentManager().findFragmentByTag(MethodTags.HEADLESS_FRAGMENT); is unreachable, I need to call getActivity first :-/ Apr 28 11:05:11 Napalm: Well I replaced by getSupportFragmentManager() by getFragmentManager() and used onActivityCreated(), but still the same problem. Apr 28 11:06:42 Seems like the application is reloaded every time I'm clicking on the button to make my dialog fragment appear :-/ Apr 28 11:13:29 is there any tool to generate uml class diagrams from cli, in gnu/linux? Apr 28 11:13:42 for android projects, of course Apr 28 11:15:45 Napalm: Ok I found the problem. Since I'm not defining the callback by my self, and I'm using the onAttach(). My headless fragment is now taking as context not my dialog fragment but the activity of my dialog fragment. Apr 28 11:15:45 As I asked for the callback to implement an interface and my activity doesn't implement that interface, but well my dialog fragment, I've a cast exception :-/ Apr 28 11:16:09 ffs Apr 28 11:16:15 i said use TargetFragment Apr 28 11:16:16 :P Apr 28 11:16:52 anyways, i'm nearly done with my example Apr 28 11:24:39 Except of declaring a class extending of broadcastreceiver do you need to do something else in kitkat to receive new smss? Apr 28 11:27:05 wget: https://gist.github.com/slightfoot/11368894 Apr 28 11:28:37 is there any straight/standard way to prompt the install when an apk is downloaded? Apr 28 11:30:27 Click66: you need permissions Apr 28 11:30:35 wget: you about? Apr 28 11:31:09 bankai_au: forgot this Apr 28 11:31:14 bankai_au: works now Apr 28 11:32:50 Napalm: Thanks a lot for your devotion ;-) I'm reading ;-) Btw, the dialog fragment I use is to insert user name and password into my database. And the headless fragment is to have that task on another thread than the thread UI. But the behavior will be the same Apr 28 11:36:17 wget: your welcome Apr 28 11:37:35 Napalm: What about if my dialogfragment becomes an activity in another part of my application (and it will). Apr 28 11:37:55 what about it? Apr 28 11:38:18 use the getShowsDialog() function in DialogFragment to detect that and make any changes you so desire Apr 28 11:40:47 Napalm: Mmmh. By controlling the fragment appearance with such a method, you're considering the fragment as an activity ;-) Apr 28 11:41:07 I was actually calling the activity directly without using any fragment at all. Apr 28 11:41:54 (in the other part of my application) Apr 28 11:42:39 Thus with your solution, this forces me to not use the actvity at all, then. Apr 28 11:43:57 wget: is that a good thing or a bad thing for you? Apr 28 11:44:28 wget: you can always add a getActivity() instanceof Callback in your onActivityCreated after the test of the TargetFragment Apr 28 11:45:12 Napalm: I was thinking the solution like using my activity directly, on the other part, but using fragments all the times, isn't that bad. Apr 28 11:46:04 hi Apr 28 11:46:25 i want create always on top screen icon Apr 28 11:46:54 search about two days and found some tuts , but most of them have problem Apr 28 11:48:21 has someone experience about this case? Apr 28 11:48:55 yes Apr 28 11:49:13 molavy: always on top, like Facebook Faces thing Apr 28 11:49:25 like throughout the entire system Apr 28 11:49:58 or just always on top in your Activity? Apr 28 11:50:03 molavy: ^ Apr 28 11:50:20 yes on top of all activities , except notification bar,of course Apr 28 11:50:34 even Activity's that are not your apps? Apr 28 11:50:38 yes Apr 28 11:52:29 Create a view and use WindowManager.addView.. you'll need the android.permission.SYSTEM_ALERT_WINDOW permission in your manifest and addView takes WindowManager.LayoutParams to position the view and give it other type information. Apr 28 11:53:14 molavy: You'll want to set the type to WindowManager.LayoutParams.TYPE_SYSTEM_ALERT and the flags to at least WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN | Apr 28 11:53:14 WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS Apr 28 11:53:33 molavy: ok? Apr 28 11:53:51 Napalm have you used cardslib or crouton ? Apr 28 11:53:58 Napalm: work on 2.3 -... -4.4 versions? Apr 28 11:54:05 molavy: yes Apr 28 11:54:08 g00s: neither Apr 28 11:54:12 g00s: i have my own Apr 28 11:54:19 ha Apr 28 11:54:54 Napalm: i see a problem with one examples Apr 28 11:55:09 system kill process and icon disapears Apr 28 11:55:15 correct Apr 28 11:55:20 you can't do anything about that Apr 28 11:55:51 molavy: obviously you should create the View and use the WindowManager from a service. Apr 28 11:56:46 but , i found this application https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=0CDIQFjAB&url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.kiumiu.ca.taskbar2&ei=6kFeU-b4Cuq44ATh_IB4&usg=AFQjCNGzWuomiThrRAWXx69ntpwB7Ge-uQ&sig2=M2N-6QgkUP4tS10ki9QKmA Apr 28 11:56:56 that never killed by system Apr 28 11:57:21 Is there a specific activity to start an extern activity or app and what is it if? ty Apr 28 11:58:11 i don't know it implemented this , but when i run both my example and this application , i see that my icon gone but this application icon is there Apr 28 11:58:55 g00s: we tried to get some crouton going as I recall ... decided against ... Apr 28 11:58:59 i don't know them implemented this program, but i found it very stable Apr 28 11:59:10 capella what was the verdict ? Apr 28 11:59:22 i don't know how them implemented this app ... Apr 28 11:59:26 Look good but added too much complexity over our current UI Apr 28 11:59:35 confusing blend Apr 28 11:59:44 frankly, the name makes me hungry Apr 28 12:00:07 molavy: i told you how they do it and how you should do it. there icon will also be killed by the system if it wants Apr 28 12:00:31 byt89: just use startActivity(); Apr 28 12:01:26 Napalm: no , believe me, just test it Apr 28 12:01:31 then you did it wrong Apr 28 12:01:38 molavy: did you use a Service? Apr 28 12:01:44 yes Apr 28 12:02:05 how did you test it? Apr 28 12:02:44 i use task manager to see what happen , while my app go to background , but they application always marked as visible Apr 28 12:03:02 is system , so system don't kill app Apr 28 12:03:19 there service is probably a foreground service then Apr 28 12:03:48 Napalm: but there is no notification icon Apr 28 12:04:05 that make me crazy, how they can do this Apr 28 12:05:14 g00s: And I'm still not convinced on cards Apr 28 12:05:19 Napalm: I made some modifications regarding the way you launch your async task. I set the asynctask via a method of the (headless) task fragment. In that way, I've a more generic task fragment as he can execute all the async task I want. Apr 28 12:05:25 molavy: well its not a nice thing to do.. if the system wants to kill it, it should Apr 28 12:05:39 wget: congrats Apr 28 12:05:49 now I need to get on with some actual work, cya Apr 28 12:05:53 Napalm: no at this case Apr 28 12:06:07 it act like a launcher Apr 28 12:06:27 system never kill launcher, do? Apr 28 12:07:06 it work like a fast and on fly launcher Apr 28 12:07:44 i am in implement something like this Apr 28 12:07:45 The launcher is just less likely to be killed Apr 28 12:07:48 So are foreground services Apr 28 12:07:52 But they can still be killed Apr 28 12:08:19 If you have a service started you can make it sticky to ask Android to re-create it for you later when memory permits Apr 28 12:08:37 hmm any way to control the way one activity goes into another (transition) ? Apr 28 12:08:41 SimonVT: but don't have notification icon, how a service can act like a launcher with no notification? Apr 28 12:08:45 speaking UI Apr 28 12:09:09 A service can't be a launcher Apr 28 12:09:27 tagrudev: Activity#overridePendingTransition Apr 28 12:10:04 SimonVT: foreground service need notification icon, Smart Taskbar make service as launcher , i think, Apr 28 12:10:17 I doubt it Apr 28 12:10:54 SimonVT: something like launcher , did you test it? Apr 28 12:12:00 A launcher is an activity that responds to the home button Apr 28 12:12:03 It's not a service Apr 28 12:13:22 i think they don't finish activity when i press back, they just move it out of screen Apr 28 12:14:31 capella yeah, not sure about hards either Apr 28 12:14:35 *cards Apr 28 12:14:35 SimonVT: OK , don't play with words , please , i want something like this , did you test it? Apr 28 12:16:33 run it and use task manager menu select real time process , it is there , marked as visible Apr 28 12:23:41 I have a question about sensors Apr 28 12:24:41 I have a class dedicated for each one, that update it own variables on the onSensorChanged event Apr 28 12:25:06 but since it's not directly in an activity and instead in a class Apr 28 12:25:50 i am not sure about how to do to access regularly at the values Apr 28 12:25:55 any suggestions ? Apr 28 12:37:14 I'm trying to use mock locations to test my navigation app. I found this: https://developer.android.com/training/location/location-testing.html Apr 28 12:37:23 And i see that the location changes in Google Maps Apr 28 12:37:46 But In my own app, I don't receive the location changes, how come? Apr 28 12:38:04 Napalm: Sorry to annoy you again. But if my dialogfragment displays a progress dialog (when the asynctask calls via onPreExecute() an action on it). When I press the back key, who will get the event? The headless fragment or the dialogfragment? Apr 28 12:55:20 hi, i am newer in android. I want to check an aplication but it doesn't have the class R.java Apr 28 12:55:28 https://github.com/Pirngruber/AndroidIM Apr 28 12:55:38 can anybody help me? Apr 28 12:57:05 R.java is generated by the tools at build time Apr 28 12:57:10 wget: the dialogfragment.. my addition of setCancelable(); stops the back key from dismissing the dialog Apr 28 12:57:50 yeah, but in this application R.java doesn't exist Apr 28 12:57:59 Napalm: I saw that ;-) But this prevent the dialogfragment to dismiss. What I want is to define a new ProgressDialog INSIDE the dialogfragment. Apr 28 12:58:10 I imported the project Apr 28 12:58:35 veritto: it will exist once you build it Apr 28 12:58:49 wget: that makes no sense Apr 28 12:59:08 ups, ok I am going to built it Apr 28 12:59:19 Napalm: Or maybe it would be neater to just change the view of the dialog fragment and if an error occurs, get back to the old view. But I don't know how to do that since my dialog fragment is defined with onCreateView whichtake an inflater as argument. Apr 28 12:59:54 wget: think about it. you can addView and removeView right? Apr 28 13:00:24 SimonVT: do you have any success with Smart Taskbar ? Apr 28 13:00:49 wget: so why not have your dialog fragment's onCreateDialog return a normal Dialog and then have your onCreateView return a FrameLayout and then create a ProgressBar and your error TextView and then show and hide the relative views Apr 28 13:02:37 Napalm: you said me use TYPE_SYSTEM_ALERT, but here suggest TYPE_PHONE, Apr 28 13:02:38 http://stackoverflow.com/questions/8073803/android-multi-touch-and-type-system-overlay Apr 28 13:02:48 which one do you prefer? Apr 28 13:03:31 Napalm: Hum. I didn't know we could do that. I was actually opening at each error, a dialog box, I had my activity -> the dialog fragment where I put muy username and password -> an error dialog. Apr 28 13:03:51 molavy: looks like TYPE_PHONE might be better Apr 28 13:03:52 Napalm: How do you change the view? I cannot call setContentView from inside the dialog it self. :-:/ Apr 28 13:04:37 wget: the view on the dialog is set for you by the DialogFragment code.. just treat your DialogFragment like any normal fragment Apr 28 13:05:25 Napalm: what about TYPE_SYSTEM_OVERLAY? Apr 28 13:05:53 molavy: what about it? looks like phone is best and that seems to denote foreground window Apr 28 13:06:04 molavy: did you read the docs? http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#TYPE_PHONE Apr 28 13:06:08 because i just want detect when user touch icon Apr 28 13:06:36 so hwat? Apr 28 13:06:41 molavy: you can do that on either Apr 28 13:07:50 Napalm: yes , i am on how Smart Taskbar do that, there must be a trick Apr 28 13:08:40 molavy: the trick is to have a foreground Notification Apr 28 13:09:02 molavy: this way it gives the user the ability to close your floating window if they like Apr 28 13:09:09 Napalm: but Smart Taskbar never show notification , Apr 28 13:09:32 and always marked as visible in system , and foreground Apr 28 13:09:35 molavy: you don't get one in the pull down list? Apr 28 13:09:45 no , never Apr 28 13:09:48 molavy: i honestly don't care what Smart Taskbar can or cannot do Apr 28 13:10:11 Napalm: Can I even manipulate the fragment view from inside the on the onClick() method inside my dialogfragment? Apr 28 13:10:11 Honestly I don't know how to do :-/ Apr 28 13:10:18 molavy: i am telling you what you SHOULD be doing.. so your app is not such a dick and obides by the API and the docs Apr 28 13:10:52 wget: if you like Apr 28 13:10:56 do you think that make and kill notification in milliseconds to keep that on foreground Apr 28 13:11:07 no Apr 28 13:11:23 Napalm: I'm gonna play with getFragmentManager again, and let's see if it works. Apr 28 13:11:26 stop thinking of hacky stupid things that is only going to fail Apr 28 13:11:37 on every second just make and kill notification , :) Apr 28 13:11:39 wget: what?= Apr 28 13:11:46 wget: wait, what are you doing? Apr 28 13:11:59 wget: you dont need to touch the FragmentManager to change your view Apr 28 13:12:25 Napalm: Then I don't know... Apr 28 13:12:36 setView or setCOntentView are unavailable :-/ Apr 28 13:12:59 wget: i just said Apr 28 13:13:27 wget: return a FrameLayout from your onCreateView.. then use getView().addView(blah); and getView().removeView(blah2); Apr 28 13:13:53 wget: you are just changing the views inside your Fragment's top level Apr 28 13:13:56 with it? Apr 28 13:15:05 want me to edit my example? Apr 28 13:15:15 yep. It would be great ;-) Apr 28 13:20:19 hi all! will the users be notified automatically when a new APK with a versionCODE is released in the google store? Apr 28 13:20:25 or anything required from developer side?! Apr 28 13:20:47 what’s the preferred way to get an app to a tester? Apr 28 13:20:49 i need my usersto get the update notification Apr 28 13:20:56 just a single person, the less structure and hassle the better Apr 28 13:21:23 ultra-: email it to them, or put it on a server and send them a link Apr 28 13:21:39 they'll need to enable third-party app sources Apr 28 13:21:51 ok i didn’t realize it could be THAT simple Apr 28 13:21:51 thanks Apr 28 13:21:58 it is! Apr 28 13:22:12 Leeds: how about my question Haga Apr 28 13:22:26 ocx: yes Apr 28 13:22:36 yes for what ? :) Apr 28 13:22:49 your first question Apr 28 13:22:57 ocx: assuming they have check for updates enabled in the play store, yes, they'll be notified. Apr 28 13:23:23 so nothing involved in code Apr 28 13:23:25 great! Apr 28 13:23:32 you can also have your app check itself, if you really need to force the update Apr 28 13:23:46 Leeds: like a query to a server from inside the app? Apr 28 13:23:53 yup Apr 28 13:24:38 off topic question, same concept for ios? Apr 28 13:28:53 how can i set an EditText to a length of characters? Apr 28 13:29:24 not limit the number entered, but actually make it fit a number Apr 28 13:29:43 you mean the physical size? Apr 28 13:29:50 yup Apr 28 13:30:10 you know we have proportional fonts, right? Apr 28 13:31:02 I have android:maxLength="14", but it looks longer and only partially fills up Apr 28 13:31:21 Leeds, how do i use that to answer my question? Apr 28 13:32:25 the length of a string depends on the contents Apr 28 13:32:54 "iiiiiiiiiiiiii" is a lot shorter than "mmmmmmmmmmmmmm" Apr 28 13:33:36 jnewt look at textview minEms and maxEms also Apr 28 13:33:38 android:inputType="numberPassword" should be consistent right? they're all dots Apr 28 13:35:56 i just set android:maxLength="5" and android:ems="5", still have leftover space Apr 28 13:36:38 layout is separate from limit Apr 28 13:36:49 jnewt: if its sip you need to make it fit for user overridden large fonts too Apr 28 13:40:15 jnewt: maybe you can use measureText() or getTextBounds() to measure it first Apr 28 13:41:58 and then set the width of the EditText to the exact size Apr 28 13:45:53 jnewt: doesn't wrap_content just do what you want anyway ? Apr 28 13:46:40 thought so, but i have layout_width set to wrap_content. should it be elsewhere as well? Apr 28 13:47:43 Napalm: In my onCreateView() I made directly a return new FrameLayout(getActivity(), null); Apr 28 13:47:43 But I've still no getView().addView() method available Apr 28 13:48:03 getView() is a fragment method Apr 28 13:49:08 anyone experienced in volley? we're trying to NOT cache certain requests, using .nocache() but it does not seem to affect (the actual http request is not sent to the internet) Apr 28 13:49:10 Napalm: then I don't see how to proceed, really. Apr 28 13:51:08 wget: how about you be patient Apr 28 13:52:21 jnewt: if you need it to change dynamically EditText editText = new EditText(myContext); LayoutParams params = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); editText.setLayoutParams(params); Apr 28 13:52:53 Napalm: No problem. But I'll need to go. The company where I'm doing my internship will close in 30min. I'll be at home 1h15 later. Hope you will still be there ;-) Apr 28 13:53:27 Okay. Why is Android on Java 6? Apr 28 13:53:41 wget: perhaps Apr 28 13:54:10 Napalm: Whatever, you can still post your example on your github gist. You're in my favourites ;-) Apr 28 13:54:12 marrrk: it works with Java 7 for me Apr 28 13:54:14 *bookmarks Apr 28 13:54:41 Napalm working hard for that internet award :D Apr 28 13:54:47 :s/whatever/anyway Apr 28 13:54:51 shmooz: No java 8 though, right? Apr 28 13:54:59 :D Apr 28 13:55:04 g00s: Yep. He really deserve even a flattr! Apr 28 13:55:05 don't know Apr 28 13:55:13 *+s Apr 28 13:55:20 we're in dogecoin territory Apr 28 13:55:20 Why java in the first place? Apr 28 13:55:44 marrrk they didn't have much imagination Apr 28 13:56:26 marrrk: you can use other languages Apr 28 13:56:39 but java is more supported I suppose Apr 28 13:57:05 Yes, it’s fine, it just makes me angry. Apr 28 13:57:50 Might want to work on that Apr 28 13:57:52 java rocks Apr 28 13:58:52 capella: In what way? Apr 28 14:00:02 personal preference: I find it a nice clean high level language Apr 28 14:00:33 u can use C as well if you like pain Apr 28 14:00:52 In that case, I'd just resort to asm Apr 28 14:01:34 marrrk: what do you want it to be ? Apr 28 14:01:48 it could have been a scheme ;) Apr 28 14:02:13 or even worse. javascript. Apr 28 14:02:16 I like the java platform Apr 28 14:02:29 Duarte probably wants that Apr 28 14:02:44 what's the keycode or name for that wide V that dismisses a soft keyboard, next to the home key when the keyboard is visible Apr 28 14:02:48 you can use scala, or probably haskell and smalltalk and tcl/tk and python php ... Apr 28 14:02:50 convergence of chrome + android = webos Apr 28 14:02:51 yeah, duarte probably wants something like enyo Apr 28 14:03:22 yeah, people want bunch of dumb stuff Apr 28 14:04:01 javascript is nice.. wouldn't mind java 8 support some time soon. Apr 28 14:04:19 * g00s doesn't like weakly typed languages, oh well Apr 28 14:04:21 one of the main reasons android took off is that it leveraged a large java developer community Apr 28 14:04:42 java is pretty weakly typed Apr 28 14:05:13 javascript??? slowly I turn ... step by step .... Apr 28 14:05:13 pfn: I thought you preferred scala Apr 28 14:05:20 I do Apr 28 14:05:36 Of course Apr 28 14:06:25 * capella doesn't like runtime interpreters Apr 28 14:06:41 isn't that all you do? Apr 28 14:06:49 work in javascript... Apr 28 14:07:37 I work with javascript, java and c++ ... but more javascript than I prefer Apr 28 14:07:54 how to “inject” a row into a ListView on-the-fly? Apr 28 14:07:56 Indeed Apr 28 14:08:08 mylord, update your adapter Apr 28 14:08:10 and show it get “pushed” into view from e.g. the top of the ListView? Apr 28 14:08:22 see above Apr 28 14:08:34 pfn: will that also smoothly animate it / pop-it into the ListView? Apr 28 14:08:41 err, *push-it Apr 28 14:08:53 mylord: just change your array or arraylist and setAdapter again Apr 28 14:09:55 you only setAdapter once :| Apr 28 14:09:59 No, animate or scroll to it yourself Apr 28 14:10:27 usually a problem of using array adapter Apr 28 14:10:46 ok notifyDataSetChanged() Apr 28 14:13:43 or theres also adapter.add(item); Apr 28 14:14:10 man, ArrayAdapter seems like one of those totally fail APIs Apr 28 14:14:18 that completely confuses newbies Apr 28 14:15:26 Leaving... Back shortly (now + 1h15) o/ Apr 28 14:15:39 I'm extending BaseAdapter for mine Apr 28 14:17:35 took it from some example called LazyAdapter but had to modify it a lot Apr 28 14:19:33 http://pastebin.com/dehVFMbd not picking up any KeyEvents from softkeyboard that is forced open in onResume(). do i need to move the onKey to after forcing it open? Apr 28 14:19:48 Mavrik, it is, it's a terribly limited convenience api Apr 28 14:20:34 i tried it, couldn't figure it out, switched to extending BaseAdapter. Apr 28 14:20:35 just about all adapters should extend from base, except for a very few limited instances of canned data Apr 28 14:20:46 jnewt, that's the smart thing to do :) Apr 28 14:20:59 pfn, yeah, it also helps new people understand just where the data comes from Apr 28 14:21:12 hidden arraylist in arrayadapter just confuses everyone when they try to change the data Apr 28 14:24:34 probably the only thing worse than an arrayadapter is an arrayadapter of arrayadapters Apr 28 14:25:13 i've only been at this for a couple of days, but i keep running into stuff that just doesn't work (as opposed to throwing an exception or working differently than expected) Apr 28 14:26:00 'just doesn't work' does not compute Apr 28 14:27:19 like that setOnKeyListener in my above pastebin. i've done something wrong, but there's no error, and no "works wrong", it's like i never even typed the code. Apr 28 14:29:26 do i need to apply it before the inflater maybe? Apr 28 14:33:20 or maybe something to do with the fact that the focus is on the EditText as opposed to the view that i'm applying the setOnKeyListener to Apr 28 14:33:43 actually Apr 28 14:33:55 there is absolutely no guarantee you'll get key events from soft keyboard. Apr 28 14:34:20 since not all soft keyboards send them through to the OS Apr 28 14:34:54 composition events from the inputMethod vs. keyevents Apr 28 14:35:37 hrm, maybe i'd be better off using an event from the EditText then (like onTextChanged or something) Apr 28 14:36:05 Hey guys.... just released my first app... a birdwatchers guide to the birds of Ireland... would love some feedback.... http://goo.gl/pnEAqe Apr 28 14:36:41 jnewt: I use setOnEditorActionListener(.. onEditorAction(... to check to see if they hit Done or Enter Apr 28 14:37:38 hey guys i renamed a project in eclipse old_name -> new_name. But if i launch the app it still says in the buttom-right of eclipse "launching: old_name". why is that? the project-name in the file .project is the new_name....... Apr 28 14:39:13 who cares Apr 28 14:39:36 it's eclipse, it's not your app Apr 28 14:39:49 adkins: reboot eclipse Apr 28 14:39:56 Napalm: doesnt help Apr 28 14:40:05 adkins: edit your run configurations Apr 28 14:40:38 Eclipse has a hard time with renamed projects. Sometimes it's best to import a brand new app from existing code with the new name. Apr 28 14:41:11 still though, who cares, if everything else runs fine, just ignore it Apr 28 14:42:54 i see in run configuration for any renamed project the old names.....is there an option to refresh these? Apr 28 14:43:12 pfn: sure it aint serious ;) Apr 28 14:46:45 adkins: make sure to rename it in your manifest Apr 28 14:46:51 aswell* Apr 28 14:48:03 i have 12 versions of the same project, the name in the manifest is always "project" whereas the projectfiles in workspace are "project_1" "project_2" and so on Apr 28 14:49:33 12 versions? Apr 28 14:49:44 ok, deleting the launch configurations and launching again solves it Apr 28 14:49:46 sounds like a problem for build automation... Apr 28 14:49:54 pfn: why not? Apr 28 14:50:48 cant imagin coding with only one version, in case you need something from older versions Apr 28 14:51:40 Readability API vs JSoup, which is better to parse urls into nice looking readable text, like Pocket, Feedly or Pulse? Apr 28 14:55:51 adkins, ok, wow, sounds like you're doing it wrong Apr 28 14:55:53 learn git, or hg Apr 28 14:56:06 * pfn kinda laughs Apr 28 14:56:10 but more like cry Apr 28 14:57:14 ./clear Apr 28 15:01:42 huh, why do people care about webby awards? Apr 28 15:02:13 Is it sensible to handle NFC in a secondary thread or is it completely useless ? Apr 28 15:02:52 hello i have a clock, and i want to make a needle turn arround the clock, ,its rotate but not on the hours (numbers), this is the image , thanks in advance http://chat.developpez.com/upload/535e6cfccfdb4/animation.png Apr 28 15:04:52 john67200: How about a png on top of that that you rotate? Apr 28 15:08:41 marrrk: have u seen the .png image ?i have the image, but it cant rotate arround correctly. this is the image http://chat.developpez.com/upload/535e6cfccfdb4/animation.png Apr 28 15:08:55 the circle? Apr 28 15:09:00 have you tried setting the pivot point? Apr 28 15:09:36 also you might want to consider a more legible font for the numbers :) Apr 28 15:09:36 its the red circle, Apr 28 15:16:47 marrrk: the image is given , i cant change the font, i have try to settle it, but it doesnt change , this is the animation code http://pastebin.com/rJLy6uic Apr 28 15:17:25 it doesn’t do anything? Apr 28 15:17:37 or it does something other than you expect? Apr 28 15:18:51 How can I force divide a number by 0? Apr 28 15:20:35 that was a daily WTF Apr 28 15:21:19 you can divide a float or double by 0 without exception and get infinity Apr 28 15:21:25 yeah, it doesnt rotate arround the numbers , of the clock, instead outside, Apr 28 15:21:43 wget: yo Apr 28 15:21:58 wget: Login DialogFragment example > https://gist.github.com/slightfoot/11375255 Apr 28 15:21:59 Napalm: I'm back ;-) Apr 28 15:22:05 Thanks a lot Apr 28 15:22:16 you better be greatful.. now i have to work late :P Apr 28 15:22:18 :D Apr 28 15:23:54 Napalm: I'm greatful. :P You should have an Amazon wishlist :D Apr 28 15:24:08 does some 1 have any idea how i can let the needle(cercle pivot) around the numbers of the clock?instead of rotation out of the image? this is the image http://chat.developpez.com/upload/535e6cfccfdb4/animation.png Apr 28 15:24:36 this is the xml of my rotation of the animator http://pastebin.com/rJLy6uic Apr 28 15:25:04 john67200: set your pivotX and pivotY to 50% Apr 28 15:30:19 pfn: i think gitting is really needed now since i deleted all run configurations. hope you are not crying anymore ;) Apr 28 15:30:26 im testing Apr 28 15:30:39 adkins, having 12 versions is dumb... Apr 28 15:30:42 but ok Apr 28 15:30:53 pfn: would you prefere egit? what should i take? running debian.... Apr 28 15:34:06 just git... Apr 28 15:34:23 tig is useful sometimes too Apr 28 15:37:47 pfn: dou you have git integrated in eclipse somehow or do u use it seperated? i`d like to jump to previous versions, read their sources, execute them and so on as comfortable as possible Apr 28 15:38:15 I don't integrate it into my ide, but intellij integrates git automatically Apr 28 15:38:19 eclipse should integrate it easily Apr 28 15:39:28 Napalm: when the pivotx and y re set to 50%, there is no rotation Apr 28 15:40:08 its rotating fine... its because you are trying to rotate a circle around the middle Apr 28 15:41:21 Napalm: oki, then why there isnt no rotation, Apr 28 15:41:25 When using a master-detail design pattern, that is mainly for tablets right? Apr 28 15:41:36 john67200: i just said Apr 28 15:42:30 Napalm: so how can i settle, it?if 50% isnt good, Apr 28 15:42:48 Is there really no way to get a function pointer or any other way of doing a lambda in android’s version of java? Apr 28 15:42:56 http://blog.8thlight.com/uncle-bob/2013/03/05/TheStartUpTrap.html Apr 28 15:43:27 john67200: is your drawable in a view? Apr 28 15:44:46 Napalm: yeah, an imageview Apr 28 15:45:05 So I'm building an application for phones right now, but eventually, in the long run, I want to support tablets via the master/detail design pattern. I am time-pressed. So my question is: Do I leave out master/detail right now and focus on phones only? Or do I add support for tablets right off the bat? If I went with the first option, how hard would it be to add support for tablets later on? Apr 28 15:45:37 hello all! How do I style listviews? I want to change the background color of selected items. I tried with "android:listSelector" but nothing happens... Apr 28 15:45:42 gordon_: so how do you test in android? Apr 28 15:45:58 john67200: set your ImageView's width or height to the radius of your clockface and then set the ImageView android:scaleType="fitEnd" Apr 28 15:46:30 SeptDePique: android:background? Apr 28 15:46:37 adkins, I also hate clicking Apr 28 15:46:48 so ide integration is very low on the totem pole Apr 28 15:47:01 hmm Apr 28 15:47:16 that's a wierd statement :) Apr 28 15:47:40 mantazer: also no effect Apr 28 15:48:08 SeptDePique: Change the color the listitem is pressed (onPressed()) Apr 28 15:48:43 but I want to change the color in all listviews Apr 28 15:51:41 marrrk: robolectric Apr 28 15:51:54 cool Apr 28 15:52:45 Napalm: the needle(circle) which is to have to turn arround the clock is small, by setting the width or height it to the clock , the image is going to larger or higher than what is suppose to be Apr 28 15:53:04 Napalm: i dont get why, i have to do that Apr 28 15:53:07 john67200: no it wont.. if you set the scaleType Apr 28 15:53:26 oki Apr 28 15:56:45 far from being perfect Apr 28 15:56:57 still better than nothing Apr 28 16:10:04 Hello. If I wanted to make an app, which uses ViewPager do display downloaded images dinamically, would you recommend using an existing library or do I have to do it from scratch? Apr 28 16:10:48 this is actually simple enough to be doable without a lib and learning how to will be good training for you Apr 28 16:11:41 Well I was looking for couple of hours and It didn't seem to be too simple. But yes, then it would be a good training. But my main concern is the efficiency of the app. Apr 28 16:12:28 Napalm: no, its worse, it have affect other views in the clock , and also, its no turning where it should, its not good at all this is the code , http://pastebin.com/TbJCJsfJ Apr 28 16:14:37 john67200: sounds to like other things are wrong with the way you are doing this Apr 28 16:15:03 john67200: explain what you are trying to do? Apr 28 16:15:45 i see your clockface and you want to animate some hands on it? Apr 28 16:17:25 PTBD spending some hours learning the loading of images asynchronously is a good exercise as well - you can start with a listview Apr 28 16:17:37 transitioning from that to a ViewPager is minor Apr 28 16:17:44 but the listview is easier to work with :) Apr 28 16:17:46 Napalm: i want to make the red circle rotate arround the numbers, like a clock, starting from 12 to 12, but , its not turning outside the hours of the clock, Apr 28 16:17:52 thats what i want to do Apr 28 16:18:15 PTBD in the end there's not soo many different ways to do this. Once you know how it works (more-or-less) you can always use the best lib out there to do it for you Apr 28 16:18:19 I already did that. Well not in a listview but just downloading one picture from url and display in ImageView. That's alle the app did. Apr 28 16:18:27 hello, why is it normal for MediaCodec to give me null for KEY_AAC_PROFILE in the MediaFormat I get? (I'm encoding raw audio into AAC) Apr 28 16:18:32 -why Apr 28 16:19:01 PTBD asynchronously? does it scale to N images? Apr 28 16:19:18 But let's say I do this app my own. What if in long term it actually would be better to use a library since (even if I did all by myself) it is more efficient. I would have to rebuild everything. Apr 28 16:19:30 Or is it worth just for the sake of learning? Apr 28 16:19:49 is there a way to know the referrer page from which your app was downloaded? Apr 28 16:19:56 this stuff is basic enough that I wouldn't consider you a full Android programmer without having once done this by hand Apr 28 16:20:00 (inside the app) Apr 28 16:20:03 Napalm:the read circle , is the needle, like a normal clock, Apr 28 16:20:22 Chainfire, it was asynchronously yes. But it downloaded only one image. I just made it this way so that the UI was still accessable while downloading. Apr 28 16:21:02 Chainfire, hm, I think you're right. Apr 28 16:22:06 But I already had a hard time understanding the example app on android developers for ViewPager. Well to be honest I still don't understand it 100 %. But I guess doing it all by my self would be better. Apr 28 16:22:12 Thank you. Apr 28 16:22:41 PTBD by the time you've done it from start to finish, you'll probably understand just fine :P Apr 28 16:23:02 (or not, but you will sometime in the future) Apr 28 16:23:33 I hope. The whole day today was frustrating. Apr 28 16:24:51 Welcome to Android. One thing I can tell you is that it never gets less frustrating ;) Apr 28 16:25:11 yay Apr 28 16:25:12 :) Apr 28 16:26:38 Napalm: u get me? Apr 28 16:32:40 john67200: yes, i just dont see why this is a problem Apr 28 16:32:54 john67200: can you post your layout xml for that screen Apr 28 16:35:47 Napalm: this is the code the layout http://pastebin.com/NSbtw3EC, Apr 28 16:36:39 john67200: now i see your problem Apr 28 16:36:46 your layout is screwed Apr 28 16:36:47 lol Apr 28 16:37:18 this is totally not the way to do this Apr 28 16:37:49 john67200: can you up a screen of the graphics for this layout and i'll put something together for you Apr 28 16:38:07 Napalm: http://chat.developpez.com/upload/535e83dce300c/code.html, this is the layout Apr 28 16:38:32 oki Apr 28 16:38:40 zip them or something Apr 28 16:42:20 oki, Apr 28 16:44:07 Napalm: how can i send them to u? Apr 28 16:44:33 google drive? box? you name it Apr 28 16:47:07 Napalm: oki, https://drive.google.com/file/d/0B1aH_yFA-4WcX3RzRnNIY2pjdXc/edit?usp=sharing Apr 28 16:47:43 Can somebody help me with Readability? Apr 28 16:48:39 is there a good android development book. Preferably free. Apr 28 16:49:40 Readability - Can somebody give me an headstart for inculding and reader in my app? I have searched a lot but couldnt find. Please Help. Apr 28 16:51:42 I'm so conflicted. I don't really like the m prefix that android uses for member variables (mVarName), but I wonder if I should do it for conformity. Apr 28 16:52:11 don't do it Apr 28 16:52:13 it's dumb Apr 28 16:52:21 conformity is also dumb Apr 28 16:54:19 The guidelines are meant for the platform, most just picked it up for their apps as well Apr 28 16:54:27 And some moved away from it again Apr 28 17:04:31 are there any tools for ICS to debug UI performance? Apr 28 17:11:01 Yes, http://developer.android.com/training/index.html Apr 28 17:13:32 Can somebody help me get a headstart for inculding Readability reader in my app? I have searched a lot but couldnt find. Please Help. Apr 28 17:16:38 john67200: hey, i assume you want the user to be able to select a number on the clockface? Apr 28 17:20:28 Napalm: no, Apr 28 17:20:40 just always rotates? Apr 28 17:20:58 Napalm: it rotates 1 Apr 28 17:21:07 can you just explain the interaction, rather than me guessing Apr 28 17:25:19 I'm using API level 16, and I specified the parent activity of a specific activity in the manifest. I also listen for R.id.home in the child activity's onOptionItemsSelected() and call onBackPressed(), but I'm still not able to get to the parent activity when I press the back button Apr 28 17:25:39 can anyone provide an example? the ones ive seen havent been helpful at all Apr 28 17:25:43 Napalm: its a lessons , so when the user click on a button earlier, it goes on to the layout , then it turns 1, after it stop, in this case, but if the user can select the number is oki too Apr 28 17:26:23 Napalm: i got the case where the user will set it him self, later Apr 28 17:26:36 Napalm: got a network problem earlier Apr 28 17:29:49 any idea how i could solve this layout issue: http://abload.de/img/untitledt4ohd.png , unfortunatly german words are too long, how can i force it to go to the next line when too big? but if it fits it should stay in one Apr 28 17:36:46 john67: are these the mdpi resources? they are rather crappy looking Apr 28 17:37:41 Napalm: yeah, they re the mdp , resources Apr 28 17:38:14 whats your highest quality .. i am making a nine-patch for the clockface and speech bubble Apr 28 17:39:16 is Napalm an artist now? Apr 28 17:39:36 * Napalm has many hidden talents Apr 28 17:39:53 Napalm: its the hdpi, but i havent test it bcos i took the images from a retina ios @2x to change them to hdpi, but the original 1 is mdpi, Apr 28 17:44:05 whats the best way to convert a integer like 1 to the text "one" Apr 28 17:44:09 its for a clock Apr 28 17:44:33 a map Apr 28 17:44:38 ^ Apr 28 17:44:49 so just ceate one that does ever possible number? Apr 28 17:45:02 Napalm: the mdpi is the highest for the , i got to convert the images later to other dpi s Apr 28 17:45:04 obihann, http://www.rgagnon.com/javadetails/java-0426.html Apr 28 17:45:06 1 through 60 Apr 28 17:45:13 obihann: http://stackoverflow.com/questions/3911966/how-to-convert-number-to-words-in-java Apr 28 17:45:19 SO is the saviour of all. Apr 28 17:45:19 thanks Apr 28 17:45:26 Someone has actually made an algorithm for you. Apr 28 17:45:37 I assumed I wasnt the first haha Apr 28 17:45:45 People rarely ever are. Apr 28 17:51:26 I’m trying to decide how better to implement master/detail within a tab. Is it better to have a separate activity for master/detail or to use a parent container fragment with child fragments? Apr 28 17:53:55 When I say “tab” I really mean a nav drawer menu item. Apr 28 17:54:10 anyone know why hierchyviewer only works on some devices? Apr 28 17:54:25 er, i should say hierchyviewer + viewserver Apr 28 18:05:17 Let me rephrase my earlier question. Do nested fragments have a performance hit versus loading another activity with fragments? Apr 28 18:06:12 hi someone can point me to a math that calculates the direction of a shot towards the player Apr 28 18:07:52 Hey guys, I'm having a small spot of trouble here. I'm attempting to grab all objects from a class on parse.com, then loop through it and match it to user entered data until it either finds a match or it runs out of objects, and whilst the class has only one object in it, it returns infinitely. Apr 28 18:08:08 I'm pretty sure I'm messing up a simple loop, so. Apr 28 18:08:59 What do? I've got an integer set up to do the counting, I'm using that to indicate the index of the object in the array. Apr 28 18:09:07 Every loop it increases by one. Apr 28 18:09:57 Immaterial: for (int item =list.size -1; item>=0 ;item --) Apr 28 18:10:11 its bertter to go backwards Apr 28 18:10:22 Oh, I didn't know that. Apr 28 18:10:33 I read something about integers being immutable, as well? Apr 28 18:11:21 for (int i = aliens.size() - 1; i >= 0; i--){ Apr 28 18:11:23 Integer, not int Apr 28 18:11:26 Two different things Apr 28 18:11:41 Ah, that may be where I'm fucking up. Apr 28 18:11:50 I had assumed int was just another indicator for integer. Apr 28 18:13:46 Integer is a wrapper class for int Apr 28 18:13:53 int = primitive Integer = Object Apr 28 18:13:54 etc Apr 28 18:15:51 Integer = class Apr 28 18:20:38 does android:updatePeriodMillis not trigger updates of the provider ever x seconds based on the value? Apr 28 18:20:43 miliseconds not seconds Apr 28 18:20:45 but still Apr 28 18:22:58 It does, as long as those millis are >= 30 minutes Apr 28 18:24:11 how would I cause a widget to update every 15ms? Apr 28 18:24:31 By manually requesting an update Apr 28 18:24:36 Not sure why you'd want that tho Apr 28 18:24:52 Seems quite a lot of updates Apr 28 18:24:57 clock Apr 28 18:25:07 nobody wants a clock that only updates every 30 minutes Apr 28 18:25:40 so I should set updatePeriodMillis to 0 then in my provider create a timer in onUpdate, maybe at the end recall itself? Apr 28 18:25:46 infinite loop :S Apr 28 18:28:36 wow, beautiful intellij plugin compatible with Android Studio: http://www.codeiris.com/ Apr 28 18:28:49 code analysis Apr 28 18:29:19 it's not a class diagram, but it doesn't need any other software installed and it's being currently developed Apr 28 18:29:53 Assuming your clock doesn't shows seconds, you can listen to time changing with a broadcastreceiver Apr 28 18:30:13 yep minutes only Apr 28 18:36:02 how I use google analytics? the GA manual tells me to download Google Play Services (or something like that) but when I went to download it, I saw a Google Analytics App Tracking SDK download too... Apr 28 18:36:06 What one is the right one? Apr 28 18:39:06 Hey, Iv made my own camera app, atm it takes photos, however, its the same image being captured each time, do you think this could be because the camaera isnt released properly? Apr 28 18:39:55 If the documentation tells you to download play services, then play services is probably the right one Apr 28 18:43:33 Hello, I was wondering if calling startService(...) on a service that is already running would have any effects? Apr 28 18:44:07 It claims that you can only run one instance of a service, so would calling startService on something that is already running just cause the service to ignore the command? Apr 28 18:44:39 The documentation for startService explains this Apr 28 18:46:01 ah ok, it does indeed Apr 28 18:46:17 SimonVT, the GA documentation says that, I ran a search (in the web in general) and... found lots of conflicting information, even within google employees... Seemly they are moving the analytics API out of google services or something Apr 28 18:46:58 and several places the GA documentation is not specific (it says stuff along the lines of: "Download whatever is appropriate according to the appropriate documentation.") Apr 28 18:48:50 oh Apr 28 18:49:01 just noticed I was seeing conflicting versions of the documentation Apr 28 18:49:56 (ie: seemly the separate download I found is for GA v3, GA v2 was inside Gplay and GA v4 is inside Gplay again...) Apr 28 18:50:07 ohcibi: instances of. Apr 28 19:01:11 I am trying to port a project to use gradle. It does not work. Apr 28 19:01:38 marrrk: what have you done and in what way does it not work? Apr 28 19:01:58 I tried porting my build.sbt to a build.gradle . Apr 28 19:02:10 It doesn’t seem to like my .so dependency. Where does that go? Apr 28 19:02:26 I had it in src/main/libs/jni before. Apr 28 19:02:56 Can someone please help me by telling how to "get started" with using Readability Parser API. Which file should be put where? Please, I have been trying for more than 6 hours now. :( Apr 28 19:03:39 marrrk: did you look at any of the ndk specific gradle stuff out there? Apr 28 19:03:54 I didn’t need to install the NDK before. These are just .so files. Apr 28 19:05:37 Hi! real rookie problem. I installed Eclips on PC (win8) and was able to test it on my phone. But I cant seem to get my mac to recognize my note 3. Has anyone found a workaround? Apr 28 19:12:15 hello Apr 28 19:12:42 Tuqui-tuqui: try going to settings > storage > usb computer connection and select the ptp setting instead of mtp Apr 28 19:13:04 it's strange but it's worked for my gs3 in the past Apr 28 19:13:49 wow, some are alive here Apr 28 19:14:42 Can somebody solve my problem too..I am in dire need of help Apr 28 19:14:54 let's try it markmarkmark Apr 28 19:14:59 will let you know Apr 28 19:15:18 WantToCode: what is the readability parser api? Apr 28 19:15:52 is it possible to read attribute using R.attr,someAttribute and not R.styleable.SomeView_someAttribute? Apr 28 19:16:55 markmarkmark: Readability https://readability.com/ helps to parse wepages for better readability, you can see it in BaconReader, etc...Parser - readability.com/developers/api/parser Apr 28 19:17:54 WantToCode: it looks like it's just a web api Apr 28 19:18:04 WantToCode: you shouldn't need anything from them besides the url Apr 28 19:19:42 Anyone knows a good tutorial to use Google Charts Api with webview? I've tried a few ones without success Apr 28 19:21:41 markmarkmark: Instead of webView I want to display the webpages in "Readability" view on my app, for eg: Apr 28 19:21:51 Normal view : http://timesofindia.indiatimes.com/home/lok-sabha-elections-2014/news/Clinching-evidence-to-arrest-Modi-in-Ishrat-case-Sibal-says/articleshow/34338651.cms Apr 28 19:22:01 Readability view : http://www.readability.com/m?url=http://timesofindia.indiatimes.com/home/lok-sabha-elections-2014/news/Clinching-evidence-to-arrest-Modi-in-Ishrat-case-Sibal-says/articleshow/34338651.cms Apr 28 19:22:15 still nhaving no luck calling updating my widget, trying a activity class inside the provider class but can't start it Apr 28 19:22:27 Okay, I think I solved that. Now my gradle friend does not seem to include my spring dependencies in src/main/libs/*.jar although there is compile fileTree(dir: 'libs', include: ['*.jar']) in my build.gradle. Why? Apr 28 19:22:29 trying ti do a reciever for action_time_tick Apr 28 19:23:09 Hello, I'm doing something with the potential to handle backups for clients via a remote service. My quesiton is what's the probability a phone has external storage that can be written too? Apr 28 19:23:37 (Is it safe to assume most android devices will have external space where I can just put an encrypted backup, or is this an unsafe assumption?) Apr 28 19:28:13 So I've added android-support-v4.jar and android-support-v7-appcompat.jar into the libs folder of my project Apr 28 19:28:17 And added them both to my build path Apr 28 19:28:33 But for some reason I'm getting a gajillion errors all of the "ActionBar can't be resolved" type.. Apr 28 19:28:50 reddunce make sure the import is importing from the right place Apr 28 19:29:17 So instead of android.support.v7.app.actionbar Apr 28 19:29:20 ie if you are going for compatbility make sure say import android-fragment is not the standard fragment but the android.support.v4.fragment Apr 28 19:29:20 what should I be importing? Apr 28 19:29:39 because it's saying it can't find android.support.v7.app Apr 28 19:29:42 or just delete your imports and re-auto impor them Apr 28 19:29:48 even though i clearly have the android-support-v7-appcompat.jar Apr 28 19:29:51 ahh did you clean? Apr 28 19:29:58 i did :( Apr 28 19:30:04 did you restart eclipse? Apr 28 19:30:06 how do i delete & auto-import? Apr 28 19:30:09 yup :( Apr 28 19:30:18 hmm maybe you added the jars wrong/ Apr 28 19:30:43 is there supposed to be android-support-v7.jar Apr 28 19:30:49 as well as android-support-v7-appcompat.jar ? Apr 28 19:30:57 yeah usually i only have the one support library jar Apr 28 19:31:04 because all i have is android-support-v4 and android-support-v7-appcompat.jar Apr 28 19:31:13 Good afternoon all. I’m trying to display an overlay of TYPE_SYSTEM_ALERT which I’ve been able to do from within a BroadcastReceiver, but I’d like to separate it off as an activity rather than run it inside the broadastReceiver if possible. I haven’t been able to make that work though, and as I think about it it may not be possible as the overlay assumes the underlying context, so that wouldn’t be an option if the overlay it Apr 28 19:31:13 were in it’s own activity. Is this line of thinking correct? Is there a more ‘correct’ way to implement a system overlay (with an xml-inflated layout) ? Apr 28 19:32:28 you can make the activity background transparent to make it look like a run time thing Apr 28 19:32:35 or use a toast from your br Apr 28 19:34:03 markmarkmark: any idea? Apr 28 19:34:26 lasserix: when I deleted both the libs, and then right clicked project -> add support libraries Apr 28 19:34:30 it only gave me app-support-v4 Apr 28 19:34:31 lasserix: Thanks. I’d considered both of those options. I still need the user to be able to access UI elements of the background app above which the overlay is placed (on the top 1/4 of the screen). I presume making the background of the activity transparent wouldn’t permit access to the underlying display. Apr 28 19:34:42 RedDunce: yeah that is what i am familiar with Apr 28 19:34:57 but that doesn't have the ActionBar/ActionBarActivity Apr 28 19:35:01 hillct you just touchinterceptor then "close" the transparent background activity Apr 28 19:35:14 if they click outside of the notification Apr 28 19:35:21 RedDunce: sorry dunno then Apr 28 19:35:42 lasserix: will read up on touchInterceptor. ty. Apr 28 19:35:44 RedDunce: http://stackoverflow.com/questions/14409000/cant-import-actionbar-in-android-app-with-backwards-compatibility Apr 28 19:36:17 WantToCode: I don't really understand the problem... just use this? http://help.readability.com/customer/portal/articles/356950-does-readability-have-a-url-to-send-a-get-request- Apr 28 19:36:17 thing is, i haven't had any issues at all until i just tried to use a lib in my project folder instead of externally referencing Apr 28 19:36:32 RedDunce: there was some shortkey cut to auto import, it was something like Ctrl + Shift + o or was it r Apr 28 19:37:09 yeah Ctrl + Shift + O Apr 28 19:41:09 markmarkmark: This is just a workaround. I need to use the API to add/remove/edit features from the webpages. The problem is that on the developer's page https://www.readability.com/developers/api/parser its just one command given which I really dont understand how to use. JavaScript? Java? Apr 28 19:43:40 cool cool Apr 28 19:43:44 but it's still not working unfrotunately lol Apr 28 19:43:54 i copy and pasted the two jars from Apr 28 19:44:00 the external location i was referencing with external jar Apr 28 19:44:02 to my libs folder Apr 28 19:44:12 added the jars the exact same way only instead of external jars i used add jars Apr 28 19:44:16 and it's not working Apr 28 19:44:18 what the actual fuck. Apr 28 19:44:49 did Right CLick -> Add to build path? Apr 28 19:48:35 yessir :( Apr 28 19:48:47 maybe it's because i need the actual project imported.. Apr 28 19:48:54 okay I am getting closer Apr 28 19:48:54 but that seems bizarre, for version control and shit Apr 28 19:49:00 now the support library is being included more than once Apr 28 19:49:12 how do I keep dependencies from reincluding that? Apr 28 19:50:13 hi all! I have an issue with some UI part of my code, is here a good place? Apr 28 19:52:36 sure Renzokuken, if someone can help they will try :) Apr 28 19:53:07 ok so i figured out the issue; i need to always import the project too, just the jars is not enough for some reason. should i add the android-support-v7-appcompat project to MY project?? Apr 28 19:53:11 that just seems horribly convoluted Apr 28 19:53:30 but without doing that nobody will be able to view/modify/build my code Apr 28 19:54:18 how to get Context in library project? Apr 28 19:56:37 markmarkmark: Thanks man. I gotta go now. 4 AM. would wake up and try this shit again. Thanks for help. Apr 28 20:00:34 I've explained my problem here : http://pastebin.com/hW7mX70W Apr 28 20:00:48 I think I went around all StackOverflow with no fix for that Apr 28 20:01:08 (ProgressBar visibility is int 4, yet I can still see it) Apr 28 20:07:06 mrpyo: pass it in Apr 28 20:08:15 dafuq is int 4 Apr 28 20:08:39 He's seeing View.INVISIBLE Apr 28 20:09:11 the value of View.INVISIBLE =) Apr 28 20:35:44 found the issue, thx anyway =) Apr 28 20:50:09 Nailed it. Apr 28 20:54:01 Hmm, it looks like my query parameters in Retrofit are ignoring my custom type adapter. Is there a reason for that? Apr 28 20:55:17 Oh, maybe I just need to also create a custom valueOf mapping Apr 28 20:55:36 collintheshots: not sure if this is what you need. but retrofit calls the objects toString() for serializing complex objects in query strings Apr 28 20:56:50 jaynewstrom: that sounds exactly like my problem. I was using Date objects, but they were ignoring the type adapter entirely and blowing up on international dates. I switched back to Calendar objects, but the toString() method was even worse. Apr 28 20:58:25 yeah. wrap that in a custom type. override toString and send it the way you want Apr 28 21:19:57 Is there anywhere a better explanation of http://developer.android.com/reference/android/os/BatteryManager.html#EXTRA_VOLTAGE that explains what units can be expected for each field? Apr 28 21:20:32 e.g. is the voltage going to be in volts, or millivolts. is the temperature in centigrade or what? Is this something that each device manufacturer just does what they want with? Apr 28 21:20:56 I suspect the answer is that it's unspecified and varies by hardware Apr 28 21:21:06 but that's just a guess :) Apr 28 21:21:38 I suspect so as well, how horrid :/ Apr 28 22:03:14 hi Apr 28 22:03:31 how can i prevent user kill app process Apr 28 22:03:38 you can't Apr 28 22:03:55 force the screen off Apr 28 22:04:16 i need activity on top of screen always be there Apr 28 22:04:25 no you don't Apr 28 22:04:27 molavy what is the context Apr 28 22:04:40 https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CCcQFjAA&url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.smart.taskbar&ei=bNBeU8HyDMKmtAaQt4CABQ&usg=AFQjCNGaiHG41_K_usa7SRCia_ve7ZTjqg&sig2=hchOGu7OXpjlNEKdtxsP2w Apr 28 22:04:42 there are uses for this - but not many, you're *probably* doing something you shouldn't Apr 28 22:04:53 smart taskbar do it Apr 28 22:06:14 there's several apps out there that do this sort of thing - probably several open source ones. So find the sources and educate yourself :) Apr 28 22:06:43 i try kill it, but it don't killed by regular process killed apps, user must to go to app info page press force stop, i want like this , app don't stop easily Apr 28 22:07:03 Chainfire: i searched about two days Apr 28 22:07:30 please give me some glue , an app name or anything that let me find it Apr 28 22:08:47 sorry but I wouldn't know any from the top of my head - known I've seen it before, not sure which apps Apr 28 22:09:40 what this app about , what do that Apr 28 22:09:42 ? Apr 28 22:10:01 anything, please? Apr 28 22:11:22 molavy: what are you trying to do? Apr 28 22:13:44 i want an icon on top of screen and all others activities , user and system can't kill it easily . i created icon on top , but i see icon disappear and activity close in some moment after user other activities , but smart taskbar find a way that process not killed anyway, icon is most always there Apr 28 22:14:33 why though? that sounds like a pretty bad idea in general Apr 28 22:15:10 i try it using regular task killers but it not killed and always marked as visible activity , i don't know how they do it Apr 28 22:15:22 yes but in this case i need it Apr 28 22:45:49 hello dude[tte]s Apr 28 22:46:34 I'm looking for resources on optimizing kit kat builds to run on samsung wave (1,2) class devices Apr 28 22:47:13 4.1 runs quite fine on a nexus s, but 4.4 is on its knees on a wave. Makes me sad Apr 28 22:54:19 JesusFreke: any idea? Apr 28 22:55:26 Chainfire: do you remember anything about opensource android apps with is features? Apr 28 23:33:16 Slow in here tonight... Apr 28 23:34:09 that it is Apr 28 23:48:36 Anyone available to give me some advice on best practice for using SQLite across different activities? I've extended SQLiteOpenHelper and unsure whether to make it a singleton or instantiate separately and close/open the db for each activity. Apr 29 00:12:23 pfn: git-studying all evening long....just because of you ;) i think i like it, just need to get used to it.....thx! Apr 29 00:18:10 livingegg ultimatly i found singleton the way to go unless you can isolate your databases Apr 29 00:19:16 Be aware, if you have everything in one database, then loads from that database that should run in parallel can block eachother if you don't use a singleton Apr 29 00:20:59 *oops assuming you are using multithreading and not using loaders; here's a good tutorial on thread safe db singleton http://blog.lemberg.co.uk/concurrent-database-access Apr 29 00:29:10 is sdk 22.6.3 only available as an update ? Apr 29 00:32:30 g00s: look what i found: http://www.robovm.org/ very excited to try it out Apr 29 00:36:00 hey bankai_au yeah i've heard of that ,,, Apr 29 00:36:05 let me know how it goes :) Apr 29 00:36:16 well thanks for letting me know :P Apr 29 00:36:23 i wonder how happy it'd play with rx/rac Apr 29 00:44:10 lasserix: Thanks for that link, I did plan to use loaders though. Apr 29 00:47:44 lasserix: Correction: I was actually going to use AsyncTask (multithread I suppose) Apr 29 00:59:14 living egg huh Apr 29 01:00:21 am i the only one who has problems updating the sdk manager from the sdk manager :| Apr 29 01:00:33 seems like it updates everything else just fine, but not itself Apr 29 01:00:54 Morning!! Apr 29 01:01:05 I am Japanese Apr 29 01:01:12 I live in Japan Apr 29 01:01:28 I am Android developer Apr 29 01:01:57 my app list https://play.google.com/store/apps/developer?id=licks Apr 29 01:02:19 licksjp2014 can you develop a program to me? Apr 29 01:02:54 user90: How about program? Apr 29 01:03:18 g00s: oh yeah, i had problems, i had to download a new version Apr 29 01:18:08 cna i remove the done button from the soft keyboard, or make it so that if it's pressed, it doesn't close the keyboard? Apr 29 01:20:31 or maybe i can catch an event for the keyboard closing and re-open it? Apr 29 01:21:12 jnewt: Do u try the keybord app? Apr 29 01:21:47 licksjp2014, what are you talking about? which keyboard app? Apr 29 01:22:56 jnewt: I thought u r trying to make the keybord style apps Apr 29 01:23:02 jnewt: sorry Apr 29 01:30:44 yo. if i want to make a button that displays an image initially but then text after it's pressed, then original image after it's pressed again Apr 29 01:30:49 what would the easiest way be? Apr 29 01:30:59 i'm thinking of just using a button, setting the image to its background Apr 29 01:31:23 and then changing the background to transparent on click Apr 29 01:31:31 is there a better way to do this? Apr 29 01:32:27 adrianadrian: look at 'selectors' Apr 29 01:33:30 cool will do thanks Apr 29 01:52:20 Hey, anyone around who can help me release my camera on my app? Apr 29 01:52:48 possibly Apr 29 01:53:48 I got my app here that takes photos, (its for a privacy study) anyway Apr 29 01:53:49 http://pastebin.com/HCc1Nmsm Apr 29 01:54:04 i cant seem to work out how to release the camera Apr 29 01:54:14 still haven't figured it out, I see... Apr 29 01:56:11 nope, taking me ages, getting there slow tho Apr 29 01:56:52 any help poss? Apr 29 01:57:04 it works now, all i need to do is properly release the camera Apr 29 02:01:12 i'm having a hard time understanding how to size objects and set their location. after reading, i can rattle off what dpi, dip, dp, sip and sp are, but that isn't helping me layout my view. Apr 29 02:01:51 i want to make a button 10mm tall x 1/3 screen wide how do i translate this? Apr 29 02:08:15 hi Apr 29 02:08:27 if i have linux kernel source for device can i build android for this device? Apr 29 02:30:25 MrBar: this channel is more about app-development, you might want to join #android-root for those kinds of questions :) Apr 29 02:34:01 barbs, oh right Apr 29 02:46:13 can I make a tabbed activity without viewpager? Apr 29 02:57:41 Have any of you guys had any luck using ShowcaseView or other transparent activities? **** ENDING LOGGING AT Tue Apr 29 02:59:58 2014