**** BEGIN LOGGING AT Tue Sep 11 02:59:58 2012 Sep 11 03:41:35 What's the right way to name an application? I already set ... in AndroidManifest.xml and TestApp in res/values/strings.xml but it's using the activity name. Sep 11 03:59:30 What's the right way to name an application? I already set ... in AndroidManifest.xml and TestApp in res/values/strings.xml but it's using the activity name. Sep 11 04:07:16 activities have their own label in the manifest hamcore Sep 11 04:07:19 oh he left Sep 11 04:07:34 so can a webview be embeded in just a portion of an activity? Sep 11 04:07:50 i.e. not take the whole screen Sep 11 04:10:24 sure Sep 11 04:10:38 just goes in the layout like any other view Sep 11 04:13:40 good old webview and memory leaks Sep 11 04:15:08 alex_PP: what Sep 11 04:16:54 sorry JakeWharton got it sorted. didn't know there was a SherlockFragment Sep 11 04:17:03 ah, ok Sep 11 04:17:07 glad you got it sorted Sep 11 04:17:10 is that new? Sep 11 04:17:18 as in 4+ Sep 11 04:17:36 ABS 4.x yes Sep 11 04:17:43 ok Sep 11 04:17:46 thanks Sep 11 04:17:48 in 3.x the support library sources were included a modified Sep 11 04:18:25 a better solution from both a technical and implementation standpoint, but people complained Sep 11 04:18:37 "ermahgerd you modified the support library we can't trust you" Sep 11 04:18:55 and then everyone goes and uses a modified support library to use MapActivity Sep 11 04:20:18 how's that done in 4+? Sep 11 04:20:31 that's where there's all these extensions that you have to use Sep 11 04:20:39 SherlockFragment, SherlockFragmentActivity, etc Sep 11 04:21:06 it still works the same, it's just not as seamless Sep 11 04:21:13 ok Sep 11 04:21:17 cheers Sep 11 04:21:41 i asked a question earlier but i think i've sorted it in the docs. was about having a series of listviews - clicking an item in the first list pulls up another listview with that items children, etc. from what i've3 read the best way to do that would be to use fragments for each list view and do a fragment transaction, then i can set an animate so it's nice n purty Sep 11 04:22:09 setTransition* Sep 11 04:22:49 does that sound sane? Sep 11 04:26:18 generally people are more awake in the morning (GMT -5) or so. Sep 11 04:26:27 I don't actually know if that sounds sane, sorry Sep 11 04:26:39 speakingcode: yes, that is sane Sep 11 04:26:50 that is a perfect use-case for fragments Sep 11 04:30:22 * speakingcode decalres himself genius Sep 11 04:30:34 thanks JakeWharton Sep 11 04:32:58 maybe i'll generalize this into a little library.. probably already done, but whatever Sep 11 04:49:48 hey I had a question Ive been on google for the last hour trying to find something on this but I cant, Im trying to figure out if theres a way to find which launcher (where the icons are on the homescreen) slots are taken? Sep 11 04:50:40 or is it not possible to access the stock launcher during runtime? Sep 11 04:56:09 not possible Sep 11 04:56:17 the launcher is just an app Sep 11 04:56:24 you cannot read its data just like you cannot read the data of any other app Sep 11 04:58:45 Ah ok thanks Sep 11 05:09:33 well it depends on what you want to access Sep 11 05:09:58 if you were looking for a list of apps, its easy enough to duplicate that functionlity by querying package manager Sep 11 05:17:28 nah I was trying to figure out which icon slots had been taken on the homescreen pages but I realize now that there are like 75 different launcher types pry so it would be hard to generalize it even if I had access Sep 11 05:36:47 ahh yes Sep 11 05:36:52 I came in late Sep 11 05:36:53 soo Sep 11 06:05:21 i wanted to change the directory my android sdk was in, so i uninstalled the old one, reinstalled, and now android sdk manager doesn't show any system images, only the android sdk tools file. the log shows successful fetch on addons_list-2.xml and repository-7.xml ... :( Sep 11 06:06:53 can someone please have a look at my problem: http://pastebin.com/JvPJ9kYc Sep 11 06:08:12 ahoy Sep 11 06:09:00 forcing http instead of https made it magically work Sep 11 06:09:17 btw gents I got to do something actually fun the other day Sep 11 06:09:35 hook our android hardware up to a pretty cool ultrasound measurement device Sep 11 06:11:43 ultrasounds are cool Sep 11 06:11:47 3d ones more so Sep 11 06:14:44 http://static.olympus-ims.com/data/Image/CorrosionThick_37DL_Plus.jpg?rev=74C0 Sep 11 06:14:46 like that Sep 11 06:17:40 404 :( Sep 11 06:18:03 worked for me Sep 11 06:18:25 http://www.atecorp.com/equipment/olympus/olympus-epoch-1000i.jpg Sep 11 06:18:29 thats a more advanced one Sep 11 06:18:34 maybe Leeds's internet is being censored :| Sep 11 06:19:58 ron_frown: cool, what is the interconnect / protocol ? Sep 11 06:20:15 via usb, some proprietary ass stuff Sep 11 06:20:33 you can do a lot with it, but we mostly just use rs232 Sep 11 06:20:49 pull measurements out of it Sep 11 06:24:18 can someone please have a look at my problem: http://pastebin.com/JvPJ9kYc Sep 11 06:33:01 how long does it take to power off an emulated android phone? Sep 11 06:33:38 once you've powered down, just close the window, it'll be fine Sep 11 06:34:41 it's at the power off "shutting down..." spinning circle Sep 11 06:34:50 for quite some time... Sep 11 06:35:01 and... just close the window Sep 11 06:35:06 okey Sep 11 06:42:46 i don't think it will ever complete when you "power off", IIRC Sep 11 06:44:53 oi Sep 11 06:44:56 vmware I am going to kill you Sep 11 06:45:26 haha. virtualbox ftw Sep 11 06:45:36 I like vmware fusion for what I do Sep 11 06:45:58 on wed, the internet is going to suck Sep 11 06:46:07 i like to floss my foss Sep 11 06:46:10 why g00s Sep 11 06:46:16 iphone 5 Sep 11 06:46:27 o Sep 11 06:46:41 are they goonna get sued in china Sep 11 06:46:52 heh Sep 11 06:47:25 you read about the patent jumpoff? Sep 11 06:47:38 yeah, that was humorous Sep 11 06:48:19 all that patent mess gets on my nerves Sep 11 06:51:23 speakingcode it'll eventually come to head Sep 11 06:51:30 and if it doesnt, we know what we have in govt positions Sep 11 06:51:39 people with *0* integirty that could be bought for a price Sep 11 06:51:46 (which I guess we already know) Sep 11 06:51:49 i vote ron_frown president ! Sep 11 06:53:10 could be? more like have been. our whole govt is corporate property, ugh let me not get started Sep 11 06:58:12 Is there a way to force close bluetooth connection after you lost control of it, i.e. after application crashes? Sep 11 06:58:59 When this happens, other bluetooth device is still showing that it is connected Sep 11 06:59:08 and is not accessible for some time Sep 11 06:59:27 thats lame Sep 11 06:59:45 easy solution: don't crash Sep 11 07:00:06 * JesusFreke crashes Sep 11 07:00:31 * g00s sees skidmarks going off the bridge Sep 11 07:00:53 * JesusFreke was on a unicycle Sep 11 07:00:56 how would one normally close a bt connection? make a little utility app that just blasts the deauth or whatever equivalent Sep 11 07:01:29 you would have to disable the bt subsystem. you can't get that socket to close again Sep 11 07:01:53 is there anything online that can help me with resource qualifiers? Sep 11 07:02:06 and please dont say developer.android Sep 11 07:02:28 i cant find the right qualifier for a galaxy note on ics Sep 11 07:30:46 ok Sep 11 07:31:01 how can I prevent from having bluetooth connection hanging open Sep 11 07:31:11 when I for example walk away from other bluetooth device? Sep 11 07:33:07 hi Sep 11 07:33:18 has anyone used gzip input stream before? Sep 11 07:34:26 gzipinputstream is buggy? Sep 11 07:36:49 i'm stuck with this. Gzipinput stream seems to close my connection while I want to keep it alive :( Sep 11 07:37:14 hey guys Sep 11 07:37:21 what's this ALooper_pollAll returning me for the source? Sep 11 07:37:26 i.e. outData Sep 11 07:39:45 nobody? Sep 11 07:44:50 I got it. Sep 11 07:45:17 reference level confusion for my sources :P Sep 11 07:45:33 sudarshan: That's how IRC help channels work. Sep 11 07:45:47 sudarshan: you ask a question... then that makes you realize stuff. Sep 11 07:45:58 and then you go and fix it up. Sep 11 07:48:06 Esphynx: lol :D but i'm totally stuck this time :P Sep 11 07:50:45 Why does the device’s printf() only work randomly? Sep 11 07:50:56 BadMrsFrosty: maybe fflush? Sep 11 07:51:30 That shouldn’t be necessary. Sep 11 07:51:48 Sometimes I have to wait 50 seconds to see the ouput and then it floods the display. Sep 11 07:51:54 Usually it never comes at all. Sep 11 07:52:37 Why should it not be? Sep 11 07:53:02 Because name one other platform where it is necessary. Sep 11 07:53:34 I don’t have this problem on PlayStation Portable, PlayStation Vita, iOS, Windows, Xbox 360, PlayStation 3, or Nintendo 3DS. Sep 11 07:53:40 Only Android. Sep 11 07:53:54 Nice platform support you got there =) Sep 11 07:54:03 Thank you. Sep 11 07:54:05 do you have new lines out of curiosity in your printfs? Sep 11 07:54:37 Some do as they are cross-platform lines of code. Sep 11 07:54:42 I'm just getting into the mobile myself :P Next I guess I have to hit those consoles/mobile consoles :P Sep 11 07:54:52 But the ones I am adding for debugging (no breakpoints for NDK) do not. Sep 11 07:54:54 Where's the Wii in there though? :) Sep 11 07:55:14 why don't you try adding \n ? see if it makes a difference? Sep 11 07:55:15 I didn’t have this problem back on Nintendo Wii or Nintendo DS either. Sep 11 07:55:25 also technically you should use __android_log_print for debugging purposes Sep 11 07:55:52 Because 99% of all the printf’s have a new line. But they don’t aren’t printed either. Sep 11 07:55:54 __android_log_print(ANDROID_LOG_INFO, "myapp", "stuff here"); Sep 11 07:55:58 The output window is just blank. Sep 11 07:56:11 yeah, so printf are just not output to the output window Sep 11 07:56:16 you need to use __android_log_print Sep 11 07:56:48 BadMrsFrosty: generally you should do debug prints to stderr Sep 11 07:57:19 that is a generic C advice though, dunno if that holds for android though Sep 11 07:57:49 hrnt what are you talking about man... printf is a C programmer's best debugging friend :P Sep 11 07:58:13 so what if messes up all the program's output :P Sep 11 07:58:27 I am trying __android_log_print() now. Sep 11 07:58:30 oh you do have Wii too :P Sep 11 07:58:35 Did. Sep 11 07:58:39 BadMrsFrosty: i'm curious now, you making a game or a toolkit? Sep 11 07:58:52 #define LOGI(...) ((void)__android_log_print(ANDROID_LOG_INFO, "myapp", __VA_ARGS__)) Sep 11 07:58:55 is the classic NDK macro Sep 11 07:59:09 I work in R&D, where we make the engine/tools for the games we make in-house. Sep 11 07:59:22 ah nice. Sep 11 07:59:41 http://www.youtube.com/watch?v=6cuXgRVMvZ0 This. Sep 11 08:00:23 hi Sep 11 08:00:25 awesome graphics Sep 11 08:00:54 Thank you. Sep 11 08:01:43 sup guys Sep 11 08:01:45 now that I've fixed this, I guess I deserve my dessert & drink :P so what if it's 4AM :P Sep 11 08:02:09 I was up at 4:00 AM this morning too. Sep 11 08:02:15 With work today. Sep 11 08:02:58 oh tri-ace Sep 11 08:03:06 reminds me baten kaitos Sep 11 08:03:08 yeah I work later too :P gotta sleep though :( Sep 11 08:03:29 Yep. Sep 11 08:05:27 I reset Eclipse and the device. Trying to get logging information: Round 8. Sep 11 08:06:57 Okay this is seriously retarded now. Sep 11 08:07:29 I have been debugging all day with printf() and 1 hour ago it just stopped outputting anything and nothing I do gets any results. Sep 11 08:09:47 Frosty, if you're dealing with android, then you better use the Log class Sep 11 08:09:58 I need some help updating my UI... I have a listener caliing a function on the main activity to update text view, but I get an error for trying to change ui from other then the original thread Sep 11 08:10:03 irs recommended Sep 11 08:10:22 BadMrsFrosty, try log2j Sep 11 08:10:41 or logcat Sep 11 08:10:47 sasson.... your ui gets hanged up as your UI is handled from main thread Sep 11 08:11:15 you cannot update your UI from a background thread Sep 11 08:11:21 i have a solution to this issue Sep 11 08:11:31 k Sep 11 08:11:52 pass the context of your activity as a parameter to the function, which i guess is running on a background thread Sep 11 08:11:55 now Sep 11 08:12:27 btw I need the ui to be updated on a variable change in a different class (this is why I'm using a listener and calling the update ui from " onStateChange" Sep 11 08:12:47 ((Activity)context).runOnUiThread(runnable) Sep 11 08:12:55 onStateChange is in the main activity as well Sep 11 08:13:08 this runnable will contain your code to update the UI Sep 11 08:13:45 i have gone through this issue and i had wasted couple of hours to get around it.... and i am sure it works Sep 11 08:13:46 i c Sep 11 08:14:13 are you getting or shall i help you with some live code? Sep 11 08:14:40 I ran adb and saw output. Sep 11 08:14:42 but the ui update I'm calling is from the main activity and not on a different thread Sep 11 08:15:05 http://stackoverflow.com/questions/12365454/oncreate-called-senseless-amount-of-times-when-returning-from-another-activity Sep 11 08:15:09 my problem Sep 11 08:16:09 I am trying a different device. Sep 11 08:16:11 are you using a thread to do some kind of operation??? Sep 11 08:17:41 sasson... listener works in background and if you're calling a function from it, the function does run in background Sep 11 08:18:10 its not running from the main Activity therad Sep 11 08:18:25 even if I set the listener in the main thread? Sep 11 08:18:54 I'm doing exactly like the example here Sep 11 08:18:55 http://stackoverflow.com/questions/9879780/android-how-to-make-listener-to-a-custom-variable Sep 11 08:19:39 It doesn't matter where you set the listener, it matters where it's called Sep 11 08:19:41 let me check Sep 11 08:20:13 Using a new device I got output. Sep 11 08:20:32 However the LogCat in Eclipse cuts off the older messages. Sep 11 08:20:35 I need them. Sep 11 08:20:40 How can I increase the buffer? Sep 11 08:20:42 Size. Sep 11 08:22:16 Preferences -> Android -> Logcat Sep 11 08:23:18 Thank you. Sep 11 08:24:03 you can also run your logcat on cmd.... adb logcat Sep 11 08:24:16 No problem, I'll add it to your tab. Sep 11 08:24:24 it has a good buffer by default and looks so damn geeky ;) Sep 11 08:25:07 The cmd window also does not have a buffer large enough. Sep 11 08:25:12 The new logcat drives me bananas. It used to be when you scrolled, the buffer would automatically lock. Sep 11 08:25:32 Now you scroll up, and the moment anything happens it forces you to the bottom again Sep 11 08:25:41 (Unless you manually lock it) Sep 11 08:26:08 yep Sep 11 08:26:09 me too Sep 11 08:26:11 but once you lock it, it keeps that way.... i prefer this thing Sep 11 08:26:46 Generally though, if you scroll up. You're doing it because there is something you want to look at. Sep 11 08:27:14 yeah.... but it keeps up with the update is another use scenario Sep 11 08:27:18 It should never scroll you unless your “cursor” or point of view is at the very bottom. Sep 11 08:27:59 Also it seems to "jump" around quite a bit, and not show you the very bottom item(s) sometimes. That may just be me though. Sep 11 08:29:07 Is it possible to copy the messages from LogCat in a way that uses \r\n line-endings? Really annoying that I can’t paste this into Notepad or over our in-house messaging system. Sep 11 08:29:37 Knossos-: I've noticed that too Sep 11 08:29:42 (the jumping on last line) Sep 11 08:30:53 BadMrsFrosty: Try copying it into Notepad++? Sep 11 08:30:59 if you are willing to install new software Sep 11 08:31:29 Incidentally, it copies out into notepad just fine for me Sep 11 08:31:40 Actually I got lucky. Mozilla Thunderbird accepts the given line-endings so I could e-mail it to him. Sep 11 08:33:27 sasson are you checking our PM??? Sep 11 08:47:14 hey guys could someone tell me how to force a ViewPager to reload certain Fragments? Sep 11 08:47:35 i want to swipe through and choose different paths but it seems to save the first path ive chosen Sep 11 08:50:25 reload in what way? You can call a method from the activity to the fragment Sep 11 08:54:58 Hello all... I am having trouble with notifications and pending intents. Sep 11 08:55:02 in the FragmentPageAdapter, i want to make it call getItem forecfully, otherwise it doesnt load the view from a new branch ive chosen Sep 11 08:58:41 I would like to call a Configuration activity from the notification, but that activity replaces the Recents item, and I can no longer call my main activity from Recents. Sep 11 09:02:24 I tried to combine the FLAG_ACTIVITY_NEW_TASK and FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS, but that removes the application from the recents altogether. Is there any way to do that? Sep 11 09:11:16 hey guys Sep 11 09:11:31 i am facing trouble in listview functionality Sep 11 09:11:56 while i selected the first child of the listview , the 10th child automatically gets selected. Sep 11 09:12:08 this is happening due to the reusuability of cells Sep 11 09:12:27 how can i set ids for each cell and can work according to that ? Sep 11 09:16:00 anyone please help me regarding the listview issue mentioned above Sep 11 09:16:00 You have to set/remove the selected state in your getView Sep 11 09:16:12 ok Sep 11 09:29:20 Is there a way to clear the defaults on another application? Sep 11 09:30:24 Anyone know how to add a gradient to a TextView? Sep 11 09:31:11 do i need to create a custom paint object or something or can i make a style / drawable? Sep 11 09:31:32 Bear10: http://developer.android.com/guide/topics/resources/drawable-resource.html#Shape Sep 11 09:31:47 Knossos- right, ive read that on how to make the style but to apply it to a TextView Sep 11 09:32:01 i set the background and the whole background makes a box :/ Sep 11 09:32:08 Make an xml file, set the background resource to that xml file Sep 11 09:32:15 uniquesupri: I bloody hope not :) Sep 11 09:33:56 Leeds: I agree :) . But I don't understand the behaviour of application defaults. Sep 11 09:34:13 Leeds: I am working on a custom screen lock app. I have registered one of the activities of my application for category.HOME intent filter. When home key is pressed, user is prompted with a dialog to choose between system default home screen and my activity. If user chooses system default home screen, this choice will be stored. If I uninstall and reinstall my app, this default is not cleared. On pressing home key, user is directly taken to syst Sep 11 09:34:30 Knossos-, http://pastebin.com/QVYCD3Jtspot anything wrong? Sep 11 09:36:21 Bear10: Try this instead: http://pastebin.com/vpm7eKpM Sep 11 09:36:33 apple is going after that polish supermarket "a.pl" … what dickery Sep 11 09:36:42 its working Sep 11 09:36:46 thanks SimonVT Sep 11 09:37:26 hmph nope, Knossos-, it sets the whole background, not the text background let me SS for you Sep 11 09:38:00 Bear10: do you need to style text of your textview with a gradient? Sep 11 09:38:10 uniquesupri, yeah Sep 11 09:38:18 Oh, the text itself? Sep 11 09:38:20 yeah Sep 11 09:38:52 Not certain off the top of my head Sep 11 09:39:08 uniquesupri, any ideas? Sep 11 09:39:12 Knossos- ah ok np thanks :) Sep 11 09:40:50 http://img193.imageshack.us/img193/4931/11124856.png <-- thats what im getting Sep 11 09:40:53 you have just two styles for drawing text. Stroke and fill Sep 11 09:41:11 uniquesupri, so no way to do it? Sep 11 09:41:14 and they take just paint as the input Sep 11 09:41:31 I guess not with TextView widget Sep 11 09:42:50 maybe i could extend it, overwrite the ondraw and set a gradient in there with a paint object Sep 11 09:43:20 Bear10 : in that case check this: http://stackoverflow.com/questions/7330941/textview-adding-gradient-and-shadow Sep 11 09:43:37 hah Sep 11 09:43:39 exactly what i said Sep 11 09:44:05 and also this : http://stackoverflow.com/questions/2680607/text-with-gradient-in-android Sep 11 09:46:07 ty Sep 11 09:46:39 going to test and will let u know Sep 11 09:47:38 I'm trying to make some modifications to the SIM toolkit so that I can see data passing between the SIM and ME. Would it be possible to root and recompile the STK apk? Sep 11 09:47:48 uniquesupri, works :) Sep 11 09:48:08 oh glad to hear that :) Sep 11 09:49:19 Basically, we want to root the device, replace the STK component and monitor data between the SIM and the mobile. Sep 11 09:49:36 Sorta like what turbo SIM lets you do, but in software Sep 11 09:50:05 any ideas on how to approach this? Sep 11 09:50:11 what is turbosim? Sep 11 09:50:49 Is the emulator reliable AT ALL for OpenGL stuff? Sep 11 09:51:10 any 1 can help me with ndk ? Sep 11 09:51:13 I've ran across troubles before, and now I'm seriously wondering whether that's what's killing me right now :P Sep 11 09:51:15 never used it Sep 11 09:51:23 wanna compile and use http://ffmpeg.org/ Sep 11 09:51:28 oh ;) Sep 11 09:51:35 that's a tough 1st start ;) Sep 11 09:51:45 yeah it is... Sep 11 09:51:54 I'm going to get to that at some point :P Sep 11 09:52:14 I'll be porting my media player to Android :P Sep 11 09:52:31 nice...and i dont think emulator is good for OpenGL and all animations Sep 11 09:52:34 p_l: http://www.bladox.com/prod_lite_2.php?lang=en Sep 11 09:52:34 btw guys I'm porting Ecere to Android and it's going to be awesome. Sep 11 09:52:52 Because eC is so beautiful =) Sep 11 09:52:55 p_l: lets you monitor between SIM and the mobile Sep 11 09:52:56 * hitesh88 runs to google Sep 11 09:52:57 idk what that is Sep 11 09:53:08 so you can see carrier messages etc Sep 11 09:53:18 sahirh: nope, can't do that through Android Sep 11 09:54:15 so ndk any1 ? Sep 11 09:54:21 o.O Sep 11 09:54:35 hitesh88: with my IDE cross compiling support... it's kinda easy Sep 11 09:54:38 p_l: the android component that handles the SIM messages is com.android.stk.stkappservice Sep 11 09:54:56 I am thinking of recompiling it and replacing it on the device Sep 11 09:54:59 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/2.2_r1.1/com/android/stk/StkAppService.java Sep 11 09:55:07 ESphynx see ^^ Sep 11 09:55:26 sahirh: that will only let you know about issuing STK-related commands, but not tracing carrier messages Sep 11 09:55:29 * hitesh88 reading documentation for ndk Sep 11 09:55:43 highlight me if any1 knows abt it Sep 11 09:55:48 hmm I wonder if I lost my last ffmpeg build :S Sep 11 09:56:01 u worked with that ? Sep 11 09:56:18 p_l: that might be good enough. I need to intercept messages from STK (such as popup for a listbox) and capture the results Sep 11 09:56:44 I'm really wondering if the emulator is screwing me over right now :S Sep 11 09:56:58 emulator always do this ^^ Sep 11 09:57:05 thats y i like the real device Sep 11 09:57:08 i have r8b and a mac Sep 11 09:57:11 sahirh: then just decompile STK and see how it works. I suggest finding a pretty recent version, because STK was basically dropped by AOSP Sep 11 09:57:17 yeah I might have to buy a real device :( Sep 11 09:57:48 thats the best option u have ;) Sep 11 09:57:50 ah phew I found my ffmpeg :P Sep 11 09:57:56 awesome Sep 11 09:58:07 p_l: thanks, so is my logic sound: use apktool to decompile and modify the STK service, and then replace it. What would I need to sign it with? Sep 11 09:58:08 ty bud Sep 11 09:58:28 hitesh88: it wasn't built for android though :P Sep 11 09:58:35 ouch Sep 11 09:58:38 Hi. I opened the cemra in a new thread and implemented the PreviewCallback as a private class. How do I prevent the thread from dying at the end of run() when the only thing I have left to do is wait for the callback and do something with the captured frames? Sep 11 09:59:03 root the phone and load it (signed with your key or debug key) on /system partition Sep 11 09:59:12 i wanna use it for android :9 Sep 11 09:59:25 ESphynx u used ffmpeg for ? Sep 11 09:59:51 hitesh88: my media player... http://www.ecere.com/blog/2007/12/05/acovel-media-player-for-linux/ Sep 11 09:59:57 oh Sep 11 09:59:58 hitesh88: try me again in a month :P I might have a built version Sep 11 10:00:14 bah Sep 11 10:00:21 i am going to do that in few days Sep 11 10:00:31 u'll take help from me then ;) Sep 11 10:00:42 hehe well I have my own build system Sep 11 10:00:42 p_l: tnx. gonna give it a shot. Would xda-devs be a better channel to ask about internals or here? Sep 11 10:01:18 sahirh: mailing list. Maybe cyanogenmod Sep 11 10:01:32 most modders, frankly speaking, have little idea :P Sep 11 10:01:46 ESphynx leave out ffmpeg u worked with ndk ? Sep 11 10:02:09 :) that's what I figured. We're doing some security research and are pretty new to android, so wasn't sure which was the best community to tap. Sep 11 10:03:32 hitesh88: yes I am working with ndk! Sep 11 10:03:45 nice... Sep 11 10:03:47 hitesh88 the ndk is just the cross compiling gcc toolchain Sep 11 10:04:02 so i need to compile ffmpeg first Sep 11 10:04:05 rite ? Sep 11 10:04:05 I integrated that nicely into my IDE... so I can build for an android target from Windows or Linux Sep 11 10:04:06 sahirh: in *THEORY*, #android was for platform talk. It's not ;) Sep 11 10:04:07 sure Sep 11 10:04:18 hitesh88: But what are you gonna do with ffmpeg? Sep 11 10:04:26 I suggest you try to play with the NDK/activity stuff first Sep 11 10:04:42 ok ok Sep 11 10:04:55 hitesh88: What are you making? Sep 11 10:05:01 a player Sep 11 10:05:05 streaming player Sep 11 10:05:13 to stream pls file Sep 11 10:05:22 internet radio Sep 11 10:05:27 ESphynx ^^ Sep 11 10:05:52 do you other methods to do this ? Sep 11 10:06:02 do u know other methods for it ? Sep 11 10:06:30  ? Sep 11 10:06:56 ffmpeg is probably the best way? Sep 11 10:07:41 ok... Sep 11 10:07:43 gotcha Sep 11 10:07:48 i found something though Sep 11 10:08:54 http://bambuser.com/opensource Sep 11 10:08:59 see this ^^ Sep 11 10:09:21 ah that's nice :) Sep 11 10:09:25 bookmarking :P Sep 11 10:10:03 damn I got it. Sep 11 10:10:09 ? Sep 11 10:11:06 glViewport didn't get called properly :P Sep 11 10:11:08 my GL bug Sep 11 10:11:20 nice nice... Sep 11 10:11:25 guess I should think of getting some sleep now :( Sep 11 10:11:38 woah awesome :) Sep 11 10:11:44 ok sleep well Sep 11 10:11:49 I actually have a window up :P Sep 11 10:11:52 this is exciting Sep 11 10:12:02 I should maybe try to get some fonts up before sleeping :P Sep 11 10:12:04 I need to retrieve data from SQLite database and get the max between them and othe operations etc.. Sep 11 10:12:06 I can retrieve all the data to a Cursor object and then do a logic to get the maximum and minimum etc.., or I can use many queries to get do the logic... so which one is more efficient? Sep 11 10:12:29 what's with the Top bar covering my full screen app Sep 11 10:12:38 ? Sep 11 10:12:48 the black HUD bar on top of my app Sep 11 10:13:05 sort it out urself Sep 11 10:13:12 idk abt OpenGL... Sep 11 10:13:14 never tried Sep 11 10:13:25 know abt animations though Sep 11 10:13:26 not OpenGL, the android HUD Sep 11 10:13:32 gotcha Sep 11 10:13:50 restart ur emulator Sep 11 10:13:54 Hi all Sep 11 10:13:58 it will be fine i think... Sep 11 10:14:01 heya IronHide83 Sep 11 10:14:07 Omar use the queries.... Sep 11 10:14:20 any one good with generics in java ? Sep 11 10:14:31 i know them.. Sep 11 10:14:41 i never say I am good with anything though ;) Sep 11 10:14:43 first some other question Sep 11 10:14:52 hitesh88, I always though doing DB operations is considered heavy? Sep 11 10:15:24 is there a way to check whether given method argument is a subclass of type but not the type itself ? Sep 11 10:15:34 queries are better it will be good if some else confirm it.... Sep 11 10:16:35 IronHide83 try this room ##java for java Sep 11 10:16:36 ok Sep 11 10:16:47 and Omar u got me ? Sep 11 10:16:47 basically I have something like this method(AbstractClass A) but insdie the method I want to instantiate A if it is a subclass of A Sep 11 10:17:17 well my project is android app actually Sep 11 10:17:22 k i'll check from othe rsources Sep 11 10:17:53 Omar after u came to know dont forget to tell me Sep 11 10:17:54 ok Sep 11 10:18:02 IronHide83 still its a java stuff Sep 11 10:18:13 hi - is someone in touch with focus-statemashine? Sep 11 10:20:02 idk abt this superpsycho08 Sep 11 10:21:08 How do I call an activity from a notification without interfering with the application's state? Sep 11 10:22:00 I want to avoid the new task destroying the recents' state. Sep 11 10:23:29 hitesh88 i have a listview with 3 rows. in every row are 4 seperate buttons. and i want to highlight them by focus. In every line have to be one focus (or highlight) every time. at initialisation i´m able to focus one button in every row but then i lot the focus anyway... Sep 11 10:24:40 nice... Sep 11 10:24:48 i sorted out this thing Sep 11 10:25:01 let me check Sep 11 10:25:05 may b i can help Sep 11 10:25:22 cool Sep 11 10:25:44 Lachezar: what do you think that means? Sep 11 10:26:26 is it bad to use a singleton for database access? Sep 11 10:28:59 superpsycho08 i am not able to find my code... Sep 11 10:29:07 idk where it is lol... Sep 11 10:30:58 hitesh88 have you any suggestions to work around the focus and highlight the buttons by systemservice... i want to have the systembuttons... :( Sep 11 10:34:07 Leeds: Come again? I have a normal work-flow, and a configuration utility. The Configuration Activity is called from the Notification, but it replaces the application's recent element. And that is bad, since from that point on I need to go back to the applications list to open th eapplication from the beginning. Sep 11 10:34:51 Leeds: To make matters worse the behaviour is different depending on whether the main activity is active, or not... Sep 11 10:35:11 Leeds: The notification is from a service in the background. Sep 11 10:36:27 And the Android documentation is no help: it revolves around API changesintroduced in API 11, which is not a good way to handle backwards compatibility. Sep 11 10:41:45 can anyone explain the suggestion from IDE (seems to come from something called Lint): "ScrollViewSize": Checks that ScrollViews use wrap_content in scrolling dimension Sep 11 11:05:48 That sounds like you are trying to use something like fill_parent in the direction of scrolling. Sep 11 11:06:21 I've not seen that error before, but I can imagine that could be irritating for the scroll view. Sep 11 11:07:24 Example, fill_parent on the vertical. At what point is the view height filling the parent. The parents height is theoretically infinite. Sep 11 11:35:48 how can i disable the animation of the disappearing status bar on a activity with FLAG_FULLSCREEN? Sep 11 11:41:52 Hi. Why do I have to provide a SurfaceTexture if I want to start capturing previews from the camera? I'd like to write a thread just supplying image data to a queue. Sep 11 11:45:00 Please advise how to perform background database synchronisation without braking the application? Sep 11 11:45:16 Lachezar: use a Service Sep 11 11:45:27 My Background synchronosation uses transactions, and locks the database, causing the UI to crash, because the DB gets locked. Sep 11 11:46:02 zerribert: Done that... The effect is my app starts crashing everytime the user opens an Activity that uses the DB. Sep 11 11:46:14 zerribert: Catch-Ignore is hardly an option. Sep 11 11:46:42 zerribert: Not to mention, that the user may be in the middle of something when a synchronisation starts and kicks him bad. Sep 11 11:47:46 mh. cant you give the user a read only instance of a db object and the service a writeable one? is it because they're both trying to access the same instance ? Sep 11 11:49:12 zerribert: Read-only? Let me see... Sep 11 11:49:58 otherwise i dunno, maybe use locks and conditions. is the service accessing the db in a separate thread? Sep 11 11:50:38 Hi all Sep 11 11:50:48 zerribert: Obviously the service is using the DB in a different thread... It's a background synchronisation service. Sep 11 11:51:05 zerribert: Locking is practically not achievable... Sep 11 11:51:21 zerribert: It would make Background synchronisation foreground. Sep 11 11:51:27 shot: http://ecere.com/tmp/android.png -- code: http://pastebin.ca/2203161 =) Sep 11 11:52:03 mh.. sorry I don't think I can help you then. I write a small db app once and that kind of problem never occoured. I could write to the db while reading from it at the same time... ?! Sep 11 11:52:11 wrote* Sep 11 11:53:11 zerribert: Probably used the same Database instance (an ugly Singleton pattern). That means you were reading from inside the writing transaction. Sep 11 11:54:53 Lachezar: how long is it keeping the DB locked anyways? Sep 11 11:55:04 windows 8 4 life Sep 11 11:55:14 hrnt: Minutes. Sep 11 11:55:15 :/ Sep 11 11:55:19 o_O Sep 11 11:55:40 Lachezar: are you talking about the local sqlite DB? Sep 11 11:55:41 hrnt: The server-side synchronisation is very heavy... Sep 11 11:56:04 hrnt: It performs change upload to the server, and downloads a database content... Sep 11 11:56:23 no one got an idea for my question? Sep 11 11:56:46 Lachezar: why are you keeping the DB locked that whole time? Sep 11 11:56:54 can't you just begin the transaction when the database content has been downloaded? Sep 11 11:57:55 I guess he doesn't want the user to wait that long and use the "old" data as long as the new stuff isn't complete yet, right? Sep 11 11:59:00 hrnt: Heck no... The user may change the information I am currently sending to the server... Sep 11 11:59:09 Lachezar: well, you can prevent that Sep 11 11:59:35 show a message "sync in progress" if the user tries to modify something Sep 11 11:59:59 hrnt: Readlly? By what? Locking the UI? That would make Background synchronisation not-background? Sep 11 12:00:03 no Sep 11 12:00:18 if (syncInProgress) show dialog "sorry, you can't save at the moment, sync in progress" Sep 11 12:01:16 else save(); :P Sep 11 12:01:54 there are other options as well, but that is probably the easiest to implement Sep 11 12:01:58 hrnt: I need to rework a few dozen Activities? Sep 11 12:02:03 yes Sep 11 12:02:56 hrnt: That is not going to work... Sep 11 12:03:14 why not? Sep 11 12:03:36 could you explain a bit what do you want to do specifically Sep 11 12:03:42 hrnt: Changes to the Database are done in numerous places... Sep 11 12:04:31 hrnt: not to mention the fact, that numerous Activities show lists, that represent the DB state. And others display specific lines in specific tables... Sep 11 12:04:35 you have a sync that can take minutes Sep 11 12:04:47 you want to prevent the user from modifying the DB while syncing Sep 11 12:04:56 hrnt: It seems to me the ONLY way is to kill the app while syncing... Sep 11 12:04:57 you don't want to go through the app and prevent this in the UI Sep 11 12:05:12 Lachezar: that's definitely not true. there are multiple different options. Sep 11 12:05:23 hrnt: URL? Sep 11 12:06:03 for what? Sep 11 12:06:12 i already gave you one option - prevent saves in the UI Sep 11 12:06:15 hrnt: Anyway... This seems like Sisyphus work... Sep 11 12:06:21 other options include event sourcing, snapshot isolation implemented at app level and so on Sep 11 12:06:24 optimistic concurrency Sep 11 12:06:36 those require major changes to your architecture Sep 11 12:07:01 i have an app as well that does syncs that can take a few minutes in the worst case Sep 11 12:07:04 i don't lock the UI while doing it Sep 11 12:07:20 hrnt: I suppose you don't lock the database either... Sep 11 12:07:21 i just tell the user that he can't save the screen while it is doing the sync (iOS) Sep 11 12:07:31 or i use event sourcing and optimistic concurrency (android, blackberry) Sep 11 12:07:45 hrnt: I do not have screen that has a Save button... Sep 11 12:08:12 hrnt: I have many screens, that do numerous operations, and each logs what the user has done in order to process it later at the server... Sep 11 12:08:20 Lachezar: you get the idea Sep 11 12:08:46 either a) prevent the user from changing anything or b) use event sourcing Sep 11 12:08:48 hrnt: I give up... This is useless... Sep 11 12:09:13 Lachezar: consider this - how many apps have you seen with a background sync that kill themselves while syncing? :P Sep 11 12:09:33 hrnt: I am yet to see one application that syncs data that the user can edit. Sep 11 12:09:52 hrnt: The apps that sync (that I know of) only pull. Sep 11 12:09:53 oh god inb4 shitstorm Sep 11 12:11:16 Lachezar: uhm, have you tried the calendar app? or the contacts in android? Sep 11 12:12:23 hrnt: I don't use a google account on any of my devices. I do not use Calendar, and I do not use Contacts synchronisation. Sep 11 12:14:34 Lachezar: next time look at how other people do syncing before implementing your own sync protocol. Sep 11 12:14:47 hrnt: Pointer please... Sep 11 12:15:42 * Lachezar may sound cocky and angry, but is mostly disappointed and dispirited. Sep 11 12:16:58 o.O Sep 11 12:17:21 Lachezar: like i said, my recommendation at this point is to go through the activities and disable saving while syncing. after that is done, then change your transaction so it is only running while processing the server reply. Sep 11 12:17:38 do u guys know how can I stream pls file.... ? Sep 11 12:17:39 In the non-google apps, doesn't evernote does this ? (I'm not sure, I don't have it installed). Also Google Drive does this Sep 11 12:17:43 wanna create app Sep 11 12:17:50 suggest me something Sep 11 12:18:58 Steph_: I think I have that installed on my Tablet, but I haven't used it. Sep 11 12:20:26 Most (if not all) synchronisation tutorials I've seen only do data copy between the partners. Sep 11 12:20:51 Processing the data at the server is rarely a problem. But not in my case. Sep 11 12:27:23 I'm having an issue. I have a basic screen, buttons, and I process the background in code. I rotate a few times and I get an out of memory error. I'm thinking the images for my button backgrounds aren't getting trash collected causing a memory leak Sep 11 12:27:32 code in one sec Sep 11 12:27:51 L4nce0: You're leaking the background task... Sep 11 12:28:34 L4nce0: When you rotate the phone the Activities get destroyed, and then recreated. You're probably starting a new Task. Sep 11 12:29:21 http://pastebin.com/7DB1BXU7 Sep 11 12:30:28 http://pastebin.com/JHRLs7GS Sep 11 12:30:54 L4nce0: Ahhh... Scratch that... You have Background Image, not Background Task. Sep 11 12:31:30 yeah, I am starting from scratch, slowly adding elements till I find this leak Sep 11 12:32:41 processing bitmaps according to http://developer.android.com/training/displaying-bitmaps/load-bitmap.html Sep 11 12:33:36 L4nce0: Try Starting and closing the app a few times... Does it crash too? Sep 11 12:34:34 ok i have nearly no experience with creating custom views... any tips on how to implement the following prototype http://www.abload.de/img/tablet.mixing.bus.2.1s1l5c.png ? thx Sep 11 12:34:54 call dispose on the Bitmap in onDestroy() Sep 11 12:35:10 since you're allocating pixels Sep 11 12:35:17 Lachezar, I removed the background. It still has the same error. It must be the bitmaps I declared in the xml for the buttons. Why aren't these getting handled by the OS? Sep 11 12:35:35 also all that scaling is completely unessesary. Sep 11 12:35:46 L4nce0, its not that Sep 11 12:36:14 zerribert: A relative, or table layout? Sep 11 12:37:24 ok but how can I draw the two rectangles behind those lines, and display that fader thing in between the radio buttons only when both radio buttons are selected? Sep 11 12:37:50 will I have to write a custom class that extends view? Sep 11 12:39:32 rather a class that extends a relative layout like Lachezar said Sep 11 12:40:19 you just create the two rectangles first so they're behind or I'm missing something Sep 11 12:41:12 zerribert: I would do something similar to Web Slicing. The thing in the middle will be a common slider (with custom images). Sep 11 12:41:41 zerribert: The round thing in the columns may be a XML drawable. Sep 11 12:41:45 so basically a tablelayout with each row containing two checkboxex and a slider? Sep 11 12:42:43 zerribert: Two text fields with numbers and a slider between them, but you get the idea: a ViewGroup. Sep 11 12:43:01 mrenouf, hmm.. any hint on how to fix it? Sep 11 12:43:21 zerribert: Or even a ListView :) To handle unknown number of lines. Sep 11 12:44:09 L4nce0: Keep a reference in the Activity to the generated Bitmap, and recycle() it in onDestroy()? Sep 11 12:44:26 Lachezar: thx. the number of lines is static though :) Sep 11 12:44:45 Lachezar, ah, I was trying to access the instance without a reference. I'll try that, thank Sep 11 12:44:47 L4nce0, check out articles on debugging memory leaks. try grabbing a heap dump after a few iterations and use jhat, etc Sep 11 12:45:14 but in the case were I don't set a background, just the images in the xml it still crashes Sep 11 12:45:22 mrenouf: jhat on Android? Sep 11 12:45:31 its a dev tool, on your system Sep 11 12:45:36 it looks at heap dumps Sep 11 12:45:50 theres a great blog post about it, check d.android.com blog Sep 11 12:45:53 mrenouf: Ah. Yes, you mean to transfer the dump to the dev machine. My bad... Sep 11 12:46:04 eclipse will do that for you Sep 11 12:46:08 ADT rather Sep 11 12:46:16 read the post ;-) Sep 11 12:46:46 mrenouf: Hmm... Handy :) Sep 11 12:47:32 How do I do a number chooser like used in date/time picker? Sep 11 12:47:53 I have not used API Level 11+ widgets much Sep 11 12:48:15 sick of my gheto +/- buttons with a text view in my test app Sep 11 13:16:24 Is it's safe to return a "new A()" in the onCreateView(…) in a fragment if A extends from a View (SurfaceView in this case) or do you have to do something with the given Parameters (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) too? Sep 11 13:17:05 Hi, my app crashes, when I'm trying to get a reference to an EditText object defined in my main.xml -> http://codepad.org/6ng9Js6c <- can someone please take a look at it? Sep 11 13:19:43 MaxRebo: What's the reason for the crash? Sep 11 13:20:36 soa2ii: I don't know. There's no real error message or anything like that. It just says " had to be closed" Sep 11 13:20:53 MaxRebo: It's most likely that the layout isn't inflated yet Sep 11 13:21:12 soa2ii: Sorry, I'm new to android development. What does that mean? Sep 11 13:21:26 MaxRebo: There is a method like onViewCreated() Sep 11 13:21:36 override it and initialize the EditText there Sep 11 13:21:50 Just declare the member with private EditText name; Sep 11 13:22:10 soa2ii: Oh i see. That's weird, the tutorial I'm using states it can be initialized outside the methods Sep 11 13:22:27 MaxRebo: what does the logcat output say? Sep 11 13:22:34 Look at the logcat output. There will be a nice fat stacktrace./ Sep 11 13:22:41 If there is a "Caused by" line, scroll down to that. Sep 11 13:23:06 Your crash is being caused because you're calling findViewById when Sep 11 13:23:15 A) The class doesn't even have a proper context yet and Sep 11 13:23:19 B) when you haven't even set a layout. Sep 11 13:23:27 call findViewById only AFTER you've called setLayout Sep 11 13:23:54 lov: Yeah, you're right. I guess i got my hands on a weird tutorial there Sep 11 13:23:58 so, initialize nameInput to null, then assign it the value after you call findViewByid Sep 11 13:24:05 what's the tutorial? There's a bunch of really shitty ones out there Sep 11 13:24:18 lov: I already closed it, i'm looking for another one Sep 11 13:24:31 MaxRebo: http://developer.android.com/training/index.html Sep 11 13:24:31 lov: soa2ii: thanks! Sep 11 13:24:32 MaxRebo: Just take the official API doc Sep 11 13:24:32 start here. Sep 11 13:24:39 MaxRebo: np Sep 11 13:24:42 look at 3rd party tutorials once you've finished with that Sep 11 13:24:47 lov: Will do Sep 11 13:24:52 there's a cubic fuckload of REALLY REALLY BAD CODE out there. Sep 11 13:25:16 tutorials that may not even compile because they were meant for the pre-1.0 preview sdk Sep 11 13:26:30 Well, it works now :) Thanks again guys! Sep 11 13:35:58 Hi Sep 11 13:36:22 I need to debug a native application on Android. Can anyone provide links / instructions? Sep 11 13:36:47 sreinst: http://developer.android.com/tools/sdk/ndk/index.html Sep 11 13:36:52 The documentation of ndk-gdb says that the AndroidManifest should contain the "debuggable" attribute. However this is a pure native application and there's no manifest file Sep 11 13:36:57 I believe that one of the make targets lets you debug directly. Sep 11 13:37:09 sreinst: there's always a manifest file, whether you realize it or not. Sep 11 13:38:18 lov: Where is the manifest file then? Sep 11 13:38:39 I just have a directory tree with the source code, and I use Android.mk and Application.mk to build it with ndk-build Sep 11 13:38:49 I run it using an 'adb shell' Sep 11 13:39:06 Hey, does anyone have an example of WebViewFragment being used? Sep 11 13:39:45 sreinst: aapt dump badging yourapp.apk | grep debug Sep 11 13:39:49 any lines highlight? Sep 11 13:39:58 can you do some sort of make debug vs make release? Sep 11 13:40:02 lov: What Sep 11 13:40:07 * lov hasn't used the ndk in a couple of years Sep 11 13:40:15 lov: What is the apk? I don't have an apk, it's a pure native executable Sep 11 13:40:19 sreinst: er Sep 11 13:40:21 .... Sep 11 13:40:25 wait. Sep 11 13:40:31 So are you making an android APP or a binary? Sep 11 13:40:39 binary for Android Sep 11 13:40:43 using ndk-build Sep 11 13:40:47 it is not called 'android application' if it isn't delivered in an apk. Perhaps 'ELF binary' would match better what you are doing Sep 11 13:40:54 yeah Sep 11 13:41:03 ok, then, ELF binary Sep 11 13:41:05 you're not making a native application, per se. Sep 11 13:41:09 you're making a binary Sep 11 13:41:16 But it's for Android... it uses the NDK and is compiled for the Android OS Sep 11 13:41:20 in that case you're going to have to figure out how to pass -g to arm-eabi-gcc Sep 11 13:41:35 sreinst: right, but when you say "application" we think "something that runs under the dalvikvm" Sep 11 13:41:35 This I already have Sep 11 13:41:38 sreinst: so it runs without gui too? some kind of command-line program? Sep 11 13:41:40 ok, sorry Sep 11 13:41:54 sreinst: in that case, just attach gdb to it. Sep 11 13:42:00 you might need to do adb forward or something Sep 11 13:42:13 I don't know what to do Sep 11 13:42:26 Shouldn't I run the application under a gdb server or something? Sep 11 13:42:30 Just run it normally? Sep 11 13:42:35 (sorry, binary , not appkication :) Sep 11 13:42:41 no. Sep 11 13:42:44 well Sep 11 13:42:51 I'm sure you can attach gdb at some arbitrary point Sep 11 13:43:00 but you probably want to do gdb yourbin or something from the command line Sep 11 13:43:04 So I just run the program normally, as if I wouldn't debug it? Sep 11 13:43:05 but that requires a gdb binary be on your device Sep 11 13:43:17 you need to find an arm gdb binary to use Sep 11 13:43:42 Can you point me to the documentation of this? Sep 11 13:43:46 sreinst: you should probably do some searches for "arm debugging" or something Sep 11 13:43:51 gdb uses the ptrace facility? I wonder if adb can proxy that Sep 11 13:44:03 sreinst: not really; it's been A Long Time. Sep 11 13:44:23 the short version is "you need to find an architecture-specific version of gdb to place on your phone and use to attach to your process" Sep 11 13:44:24 alankila: gdbserver is included in android for that Sep 11 13:44:32 ^^ Sep 11 13:44:40 ah, so it is Sep 11 13:44:41 or at least was on quite a lot of units I touched Sep 11 13:44:50 you can connect to gdbserver from elsewhere Sep 11 13:45:49 So how do I run my native program for debugging with gdb? Sep 11 13:46:03 sreinst: most likely 'gdbserver program' but not sure of the further steps Sep 11 13:46:14 When I run it normally, I use the following: "adb shell my-program" Sep 11 13:46:50 sreinst: this may be somewhat relevant: Sep 11 13:46:52 http://vilimpoc.org/blog/2010/09/23/hello-gdbserver-a-debuggable-jni-example-for-android/ Sep 11 13:47:01 it appears that a gdb client can connect to the gdb server. put the phone on your wi-fi network or something and reach the gdbserver that way Sep 11 13:47:07 do i need a rooted phone to install signed apk's from sdcard? Sep 11 13:47:22 brx_: no, just enable install of untrusted apps in settings -> security Sep 11 13:47:31 thanks lov will check now Sep 11 13:47:44 sreinst: you'd do something like "adb shell gdbserver yourbinary" Sep 11 13:48:52 yeah, actually, in the ndk docs, there should be NDK-GDB.txt or something Sep 11 13:48:57 glance at that Sep 11 13:50:04 lov: Alreayd have but didn't get it Sep 11 13:50:12 lov: It says that thing about the manifest (whcih doesn't exist) Sep 11 13:50:38 sreinst: ignore it. Sep 11 13:50:41 ignore the manifest. Sep 11 13:50:46 that's for debugging under dalvikvm Sep 11 13:51:00 if you're not creating an android app under dvm you can ignore the manifest. Sep 11 13:51:49 Well, it doesn't work for me Sep 11 13:52:01 When I try to run ndk-gdb, it tells me I should run it from the project directory Sep 11 13:52:14 And I do it, but it doesn't realize the project directory, probasbly due to the missing manifest Sep 11 13:52:19 Why would I have a little funky unicode floating more or less at the top left of my listview? Sep 11 13:52:33 *square character Sep 11 13:52:35 lov, thanks. I need to leave now, I'll try some stuff Sep 11 13:53:06 ahoy Sep 11 13:53:13 sreinst: most of the docs assume that you're making an android application; you're going to have to tailor all of the instructions you see. Sep 11 13:53:50 ok,thanks Sep 11 13:53:52 bye for now Sep 11 13:55:21 i'm adding my SurfaceView to the WindowManager using TYPE_SYSTEM_OVERLAY... it overlays the menus and the panel so those stay hidden... is there any way to change the z-order? Sep 11 13:55:53 rigid1: no. Sep 11 13:56:12 SurfaceView punches a hole directly in the window; you can't composite with it. Sep 11 13:56:32 ah i see, TYPE_SYSTEM_OVERLAY is exactly meant for that Sep 11 13:58:34 Is there a way to expand the size of a listview item row when using a cursor adapter? Sep 11 13:58:39 *on click, i mean Sep 11 13:59:25 hi Sep 11 14:01:24 Lasserix, you need the view to expand in dimensions? Sep 11 14:01:58 hi.. can anyone tell me whats wrong with this code Sep 11 14:01:59 http://pastebin.com/NDbnV1GZ Sep 11 14:02:08 its ending with an error on submit Sep 11 14:02:37 Infernus_, yeah I want to ellipsize the content when not selected, and then when one item is selected, it'll expand Sep 11 14:02:51 Can I alter the layout dimensions in bindview by checking the id? Sep 11 14:03:09 pkp: we need more information. Is there an exception? Is the code just not doing what you want? What is your input? What is your output? Is there a relevant log or stacktrace? Sep 11 14:03:17 saying "hay guys something is broke" doesn't help us find and fix your issue. Sep 11 14:03:22 *or can i just alter the view passed into bindview with layoutparams or will this crash? Sep 11 14:04:17 either you can handle that in the onlistitemselected() method or can use the binding Sep 11 14:04:45 lov, http://pastebin.com/DQB3rFW0 Sep 11 14:04:48 complete code Sep 11 14:05:03 Infernus, so I can alter the view in the onlistitemselected by setting new layoutparams without it crashing? Sep 11 14:05:13 when I click on submit button, it should get all the selected items Sep 11 14:05:18 and store it in arraylist Sep 11 14:05:44 but, it's ending with an error Sep 11 14:06:57 and instead of android.R.list if i try R.id.listview (i.e., my listview in main.xml) it says "No items selected" Sep 11 14:07:30 i'm talking about line 20 Sep 11 14:07:32 Why would a 💲 be floating in the top left of a listview? Sep 11 14:08:35 * monsti is flating on top of an edittext Sep 11 14:08:53 10:06:09 < pkp> but, it's ending with an error Sep 11 14:08:55 WHAT IS YOUR ERROR Sep 11 14:08:57 TELL US Sep 11 14:09:12 Infernus_, thanks I'll have to play around and see what happens Sep 11 14:09:23 lov lol Sep 11 14:10:53 lov the error is "Unfortuanately app_name has stopped" Sep 11 14:10:58 no Sep 11 14:11:00 no it isn't Sep 11 14:11:04 i wrote an escape plan for julian assange and your reading pleasure -> http://www.codebot.org/articles/?doc=9586 Sep 11 14:11:23 also a tool for android developers -> http://www.codebot.org/articles/?doc=9585 Sep 11 14:11:34 >_< Sep 11 14:11:43 pkp: look in logcat for your stacktrace Sep 11 14:11:45 Ahh he just needs a flashmab where everyone dresses up in wigs and suit to look just like him and then he can disspear into the crowd... Sep 11 14:11:46 look at the stacktrace Sep 11 14:11:50 look at the line that corresponds to your codebase Sep 11 14:11:53 look at the error~! Sep 11 14:12:03 If you're not sure what the stacktrace is, look for a "caused by" line in it and start there Sep 11 14:12:07 am sorry .. still a beginner.. bear with me :| Sep 11 14:12:16 * monsti is caused by his parents Sep 11 14:12:49 sysRPL hey cool thanks was looking for exactly this the other day Sep 11 14:14:17 can somebody please confirm, that eclipse/android-sdk/emu is about 20% slower on osx then on windows Sep 11 14:14:23 assuming the same hardware Sep 11 14:20:00 monsti: seems unlikely. Quickly testing eclipse with resource monitor enabled indicates that majority of system's resources are available for eclipse. I can't at least see anything that would show inefficiency. Sep 11 14:21:56 alankila: did you try it or is this your assumtion? Sep 11 14:22:16 i am asking because i notice this by dual booting Sep 11 14:35:47 Is there any difference to running commands from adb shell and runtime exec? Sep 11 14:36:06 no it's both a linux shell Sep 11 14:36:11 maybe. Sep 11 14:36:16 you're running as a different user Sep 11 14:36:23 one may not have permissions that the other does Sep 11 14:36:27 that's about it, though Sep 11 14:36:37 even permission wise? I have this rooted chinese tablet. I can mv system/app fine in adb shell but not programmatically Sep 11 14:37:22 frankbro|work: look at lov - you need to run sudo when running in the app to have root permissions Sep 11 14:37:43 you mean su, I dont think it has sudo Sep 11 14:38:31 Even tho, {"/system/bin/su","-c","/system/bin/mv /system/app/SystemUI.apk /system/app/SystemUI.apkold"} returns me an error Sep 11 14:41:13 lov: got any idea? Sep 11 14:41:30 got an actual error code or response or log or something? Sep 11 14:41:57 A IOException Sep 11 14:42:27 oh sweet. Sep 11 14:42:33 maybe that has a message? Sep 11 14:43:08 helloo good people Sep 11 14:43:11 i need litle Sep 11 14:43:12 help Sep 11 14:43:16 pls help me Sep 11 14:43:18 :) Sep 11 14:43:49 i have problem with bleutooth Sep 11 14:43:57 stop eating crayons Sep 11 14:44:07 lov: this non-helpful error : http://pastebin.com/nhbabhJF Sep 11 14:44:49 i described the problem here http://stackoverflow.com/questions/12371453/how-to-detect-the-button-press-on-a-bluethooth-headset Sep 11 14:45:37 okay, can I ask the channel as a whole... people who just post a link to their stackoverflow question (or their question in a pastebin) - annoying, or just to me? Sep 11 14:46:24 Leeds, depends Sep 11 14:46:28 Leeds: I too don't like that. Sep 11 14:46:37 if theres already a discussion on SO, id prefer keeping it there Sep 11 14:46:44 rather than starting from the beginning Sep 11 14:47:05 canadiancow: in most cases, it's someone who only just posted the question there Sep 11 14:47:08 but if it was posted on SO for the sole purpose of linking from #android-dev, then... Sep 11 14:47:13 canadiancow: At least a one-liner copy-paste from SO would be acceptable. Sep 11 14:47:40 canadiancow: Now I have to open the browser, just to find out, that the question is outside my knowledge :( Sep 11 14:47:58 Lachezar ok you are right Sep 11 14:48:13 Lachezar sorry Sep 11 14:48:25 have been trying to achive this for 2 days now and i cant seem to find the right answer. I have been Sep 11 14:48:33 searching for answer on internet and have found this but they dont seem to help me: Sep 11 14:48:53 http://android.amberfog.com/?p=415 http://code.google.com/p/android/issues/detail?id=4963 ... Sep 11 14:49:12 No matter what i try when i press the button on my head set the phone display the volume level control instead of being catch by my application and do something Sep 11 14:49:37 Lachezar and now can you help me? Sep 11 14:49:43 coolman_bg: Did you try the same with the phone's volume buttons? Does that work than, or not? Sep 11 14:50:10 Lachezar not work Sep 11 14:51:04 coolman_bg: Hmmm... Lemme check sth. Sep 11 14:51:53 Lachezar ok :) 10x Sep 11 14:55:47 coolman_bg: Volume up and down buttons are not media buttons. Previous, Next, Play, Pause, Stop... Those are. Sep 11 14:57:55 Lachezar wooww and for volume up and down Sep 11 14:58:07 Lachezar have some event? Sep 11 14:58:17 coolman_bg: You can catch the Volume UP and Volume DOWN by handling onKeyDown(...) and similar in your activity. Sep 11 14:58:42 coolman_bg: In other words: Volume buttons are simple keys. Sep 11 14:59:24 Lachezar yes but via bluetooth can i catch it? Sep 11 15:00:55 coolman_bg: I don't really know... I don't have a BT Headset to test. Sep 11 15:02:12 Lachezar thank you very much!!!!!!!! Sep 11 15:02:37 If I have navigation among fragments like home -> browse -> content, and I'm in the content fragment when the activity pauses, to reinitialize properly for the backstack I have to add each fragment in turn (add home, add browse, add content) and then just do fragtrans.replace(contentfrag)? Sep 11 15:04:31 hmm CLEAR_FLAG_TOP doesn't seem to be closing all my previous activities, any ideas? Sep 11 15:05:55 you mean FLAG_ACTIVITY_CLEAR_TOP? Sep 11 15:06:25 f2prateek, yeah i think i might need to use it in conjunction with NEW_TASK Sep 11 15:06:35 going to give that a shot Sep 11 15:06:39 it doesnt close all previeous ones, Sep 11 15:06:46 so you have 1>2>3>4 Sep 11 15:07:06 f2prateek, yeah Sep 11 15:07:09 if 4 starts 2 with that flag, the new task is 1>2 Sep 11 15:07:16 *task stack Sep 11 15:07:45 well id like to launch 4 and make the stack 1 > 4 Sep 11 15:07:59 f2prateek, any way to do this? or do i just overwrite the back button Sep 11 15:08:02 so go from 1>2>3>4 to 1>4? Sep 11 15:08:04 yeah Sep 11 15:08:17 you shouldnt overrisde the back button generally, not recommended Sep 11 15:08:30 *override Sep 11 15:08:50 well yeah you have the case i'm looking for 1>2>3>4 to 1>4 Sep 11 15:11:55 f2prateek, and suggestions? Sep 11 15:12:00 Is there any way to get google play to accept "other" resolutions? Sep 11 15:12:03 woiuldnt it be 1>2>3 to 1>4 Sep 11 15:12:15 or or are you relaunching 4 Sep 11 15:12:17 f2prateek, yeah that could work Sep 11 15:12:22 it refuses to accept the 544x960 that my phone has Sep 11 15:12:38 Anoia: edit build.prop Sep 11 15:13:07 f2prateek: so no, I have to setup an avd at one of their specific resolutions? Sep 11 15:13:32 Bear10: I can't think of a flag of the top of my head, the intent page in the dev guide would be your best firend Sep 11 15:13:34 *friend Sep 11 15:13:50 Anoia: are you trying to use the market in an AVD? Sep 11 15:13:57 you cant use market in avd Sep 11 15:14:03 no, I;m trying to upload an app to google play Sep 11 15:14:11 oh, screenshot? Sep 11 15:14:23 also you can use custom resolutions in the avd Sep 11 15:14:25 but it requires screenshots in every resolution possible except the resolution native to my phone and device Sep 11 15:14:25 yeah, run up the emulator and do it there - it's not exactly onerous Sep 11 15:14:42 still a PITA :) Sep 11 15:14:44 Where can I read some tutorials on how to access a database (read and write) both from a background service and front-end UI, including ListViews with Cursors? Sep 11 15:14:48 Anoia: pick up one in the new avd tool Sep 11 15:15:11 still a pita :p Sep 11 15:15:11 Anoia:choose from stuff like wvga or put in custom values Sep 11 15:15:13 anyway, thanks Sep 11 15:15:25 ohh, no custom, google wont liek that Sep 11 15:15:42 well i meant use a resolution that you know will work for screenshots Sep 11 15:15:52 on google play Sep 11 15:18:20 f2prateek, hmm cant seem to find any flags / combinations to do whta i need Sep 11 15:18:58 however.. Sep 11 15:19:11 i could probably just bring to front and clear the top history Sep 11 15:19:59 okay, I have an ImageView whose attributes in XML form are well-known, but I need to now instantiate similar ones dynamically, and I'm finding setLayoutParams incredibly confusing Sep 11 15:21:06 guess i cant do that Sep 11 15:23:39 ok im just going to overwrite the back :/ Sep 11 15:24:34 ffs, yeah, "English (united states)" really requires the Japanese IME... Sep 11 15:25:03 How can I get the height of a listview row once it's text elements have been set? Sep 11 15:25:07 amerocentrism is the best centrism. Sep 11 15:26:15 and what better day to say that than 9/11? Sep 11 15:27:49 lov: it would probably be OK if I was Japanese, int he united states, thankfully, unfortunatley, I am neither Sep 11 15:29:45 Hi, let say I have done repo init a manifest repo from 2 different place (repo init -u a.com -b branchA and repo init -u b.com -b branchB). Then I have a local manifest that I use with both projects. (repo init -m localmanifest.xml). Will the end result after repo sync will be the same? Sep 11 15:32:35 Guys, If I save file from my widget (download some image file + save it). Where it will stored? :/ Sep 11 15:32:52 File file = new File(fileName); FileOutputStream fos = new FileOutputStream(file); fos.write(baf.toByteArray()); fos.close(); Sep 11 15:33:11 where I can find this file and how I can view it with ImageView? Sep 11 15:35:20 what's the easiest way to get files on an off my avd? Sep 11 15:35:30 it's having "issues" with an HTTP download Sep 11 15:35:40 and I can;t (yet) mount the sdcard image Sep 11 15:36:57 * Anoia shuts down Sep 11 15:37:25 Anoia: adb Sep 11 15:38:02 oh yeah, I forgot about that :) Sep 11 15:38:13 kind of what it's there for :P Sep 11 15:38:23 I;ve not touched android dev for a while Sep 11 15:38:33 picking up my colleagus code and making it releasable Sep 11 15:38:56 * Anoia waits for it to shut down before booting it back up again Sep 11 15:39:14 close the window Sep 11 15:39:32 How do I turn off ellipsizing in code on a text view? Sep 11 15:39:40 yeah, I got impatiant Sep 11 15:41:48 How do I turn off ellipsizing in code on a text view? What is the flag TrunacateAt....? Sep 11 15:46:33 well that's a little wonky. layout_gravity is available just as public member 'gravity' in the LayoutParams object Sep 11 15:48:50 ffs, now the screens not rotating Sep 11 15:50:10 has anyone had problems with the avd contents not rotating to match the screen? Sep 11 15:50:30 left ctrl+f11/f12 rotates the view but the apps stay "portrait" Sep 11 15:51:02 using android 2.3.3 with freshly downloaded tools Sep 11 15:51:30 Anoia: it only works if the app in the foreground supports screen rotation Sep 11 15:51:32 i've searched around, but is it true android 4 doesn't support playing individual midi notes? Sep 11 15:51:42 Guys, where to store downloaded files? (or writed files)? I mean, where to put files from app? Sep 11 15:52:09 Ge0rG: yeah, that's what I thought, but to confirm, the settings, home, or any other built in apps stay in portrait mode too Sep 11 15:52:16 all of which rotate fine on my phone Sep 11 15:52:19 (including my app) Sep 11 15:52:20 I need to check if device have sdcard and put there. Does API has some universal method for 100% storing files? Sep 11 15:52:32 Anoia: It's broken in the GB emulator Sep 11 15:52:37 woozly: look at the Environment class. Sep 11 15:52:42 GB? Sep 11 15:52:51 gingerbread Sep 11 15:52:56 oh, ok Sep 11 15:53:00 woozly: yes Sep 11 15:53:13 Anoia: what 'yes' ? Sep 11 15:53:14 woozly: have you read the section of d.a.com on storage? Sep 11 15:53:35 Anoia: Im sorry, what is 'd.a.com' ? :) Sep 11 15:53:37 the "yes" was to answer your question Sep 11 15:53:43 developer.android.com Sep 11 15:53:47 oh Sep 11 15:54:57 woozly: http://developer.android.com/guide/topics/data/data-storage.html#filesExternal Sep 11 15:56:21 Ge0rG: keyboard entry also seems to be broken Sep 11 15:56:30 I have to use the on screen keyboard Sep 11 15:57:29 11:53:04 < lov> woozly: look at the Environment class. Sep 11 15:59:14 lov, yes. thanks! :) Sep 11 16:08:47 streaming midi support for android 4, no such thing? Sep 11 16:11:22 hey Sep 11 16:15:52 djbpython: streaming midi support? o_O Sep 11 16:16:01 I cannot imagine that this is a priority in any way :P Sep 11 16:24:58 aw midi is cool and easy Sep 11 16:28:36 best/easiest way of animating show/hide views in a listview? Sep 11 16:29:39 what's the best layout type to use if I want two columns of elements in which each row of elements lines up? (the elements will primarily be TextViews and EditTexts) Sep 11 16:36:43 ChrizC relativelayout lets you alignbybaseline Sep 11 16:37:52 and unless someone says it's terrible design, you could use a generic 1dp wide view with centerinhorizontal, then for each column to toleftof and to rightof and then for each row align baseline Sep 11 16:39:14 Then again there's also a tablelayout which is probably designed just for what you are doing Sep 11 16:45:26 has anyone ever successfully implemented ZipFileContentProvider class when using expansion pack? Sep 11 16:45:28 http://stackoverflow.com/questions/9623350/where-is-the-samplezipfileprovider-class Sep 11 16:45:39 I don't know where to start Sep 11 16:56:24 Is there anything special that you have to do to get the Log.d calls to show up in LogCat? Sep 11 16:56:54 … using the emulator Sep 11 16:59:39 javaCon don't think so Sep 11 16:59:46 make sure you're not in a filter or something? Sep 11 17:03:22 @lasserix I am not in a filter but when I call Log.d from an Activity it never reaches LogCat. Is there a backing log file that I can look at? Sep 11 17:04:01 Does the logcat produce anything? Sep 11 17:04:34 I don't know enough tbh but there is a deprecated log cat, maybe you are using by mistake? Sep 11 17:06:03 yes. system_process and what seem to be life-cycle events. Also, dalvikvm GC_CONCURRENT messages. Sep 11 17:07:02 i will check my versions Sep 11 17:09:50 Do you have any filters going on? Sep 11 17:10:08 Log.d("My Tag", "My Log Message"); should work Sep 11 17:11:15 from my code: Log.d("onCreate", "RetrieveFacebookActivity"); Sep 11 17:11:53 I assume tags do not have to be predefined. Sep 11 17:13:22 nope, free text Sep 11 17:23:36 javaConductor: your logs are backwards Sep 11 17:23:47 javaConductor: the first arg is the Tag that you want to be generally consistent in your app Sep 11 17:23:54 e.g. MyActivity.class.getName() Sep 11 17:24:00 the second arg is the actual log message Sep 11 17:24:33 right - i'll swap them Sep 11 17:26:06 I moved the call and it works. I think the app threw an exception before my code ran. Sep 11 17:27:32 What is the best way to add the Facebook android sdk and have it available for "new Facebook(appId)" Sep 11 17:28:02 I assume I have to create a apklib - correct? Sep 11 17:28:08 /part Sep 11 17:36:41 javaConductor: include the facebook sdk as an android library project Sep 11 17:36:48 javaConductor: the facebook sdk should actually already be set up this way Sep 11 17:37:12 javaConductor: in your main project, go to project properties -> android, then under the Library section hit "add" and select the project Sep 11 17:39:01 When I click Add… the list is empty and I can't type in it . OK is also grayed. Sep 11 17:39:26 javaConductor: is the facebook sdk added as an android project? Sep 11 17:39:29 is it set as a library? Sep 11 17:39:41 you have to point to the facebook sdk as a library project. Sep 11 17:40:03 i.e. have the eclipse project for your app, and then have a separate eclipse project for facebook Sep 11 17:40:26 oh. I didn't understand. Facebook must be a projet. Sep 11 17:40:48 i was trying to use it as a lib. Sep 11 17:42:34 yeah, facebook needs to be an android project, but then you include it as an android library in your main project Sep 11 17:42:48 see http://developer.android.com/tools/projects/index.html#LibraryProjects Sep 11 17:52:48 What's the correct way to name an app? I'm getting different names between Settings > Applications > Manage Applications (right) and Menu (wrong). In the menu the activity name is being displayed. Sep 11 17:52:54 lov, midi is a robust protocol for note synthesis, it's pretty pervasive Sep 11 17:54:26 djbpython: inside of a computer, though, Android included, MIDI usually has to have some other form that carries it as it is more or less an electrical protocol Sep 11 17:54:37 e.g. OSC, Open Sound Control Sep 11 17:55:40 Hodapp, sure, but most computers have such software to turn the signal into audio. That's what I'm looking for for android Sep 11 17:55:59 Here's my manifest: http://pastebin.com/XvHRPYk6 Sep 11 17:56:09 there are midi/mod players in the market Sep 11 17:56:11 djbpython: So you need a synth, whether MIDI or not? Sep 11 17:56:23 a softsynth at that Sep 11 17:56:31 i have CoWeather in strings.xml Sep 11 17:59:54 hamcore: http://developer.android.com/guide/topics/manifest/application-element.html#label Sep 11 18:00:13 name refers to a subclass of Application if you've made one Sep 11 18:00:29 bear in mind, that your activity name isn't necessarily the same as your app name Sep 11 18:00:35 no, i just have public class MainActivity extends Activity Sep 11 18:00:36 you can have multiple activities that are visible from the launcher Sep 11 18:00:51 if you want your activity's label to show up the same as your application, change your activity's label. Sep 11 18:01:07 on Settings > Apps > Manage Apps i got CoWeather (right), but in the menu it appears as MainActivity Sep 11 18:01:12 Hodapp, correct, which it seems android has via sonivox but there doesnt appear to be an api for it Sep 11 18:01:39 http://code.google.com/p/android/issues/detail?id=8201 Sep 11 18:02:26 djbpython: you may have to dig around in some of the Linux softsynths and hack in MIDI support via OSC or sometihng Sep 11 18:03:42 hamcore: stop. Sep 11 18:03:47 hamcore: when you say "the menu" what do you mean? Sep 11 18:03:50 Do you mean the home screen? Sep 11 18:04:02 if yes, then you need to change the label for your activity. Sep 11 18:04:14 your activity's label shows up in the launcher for any activities that you expose there Sep 11 18:04:25 hamcore: there is a difference between your APPLICATION and your ACTIVITIES Sep 11 18:32:04 test Sep 11 18:32:31 Anyone got a minute for a noob Sep 11 18:33:02 dont ask to ask Sep 11 18:33:13 my IMEI #'s are not matching, need to fix my phone Sep 11 18:33:34 Lockandload: phone specific, search for a forum devoted to your phone Sep 11 18:33:37 sticker vs *#06# Sep 11 18:33:51 ... was it after something you did? Sep 11 18:34:05 also you might try #android or one of the related android channels, this chat room is for development questions Sep 11 18:34:11 samsung GT-9000M galaxy S vibrant Sep 11 18:34:42 well when I bought it I bricked it while attempting to unlock it Sep 11 18:35:24 Lockandload: ... did you get it from official retailer? Sep 11 18:35:26 got my jig then loaded software Sep 11 18:35:37 no, from a pawnshop Sep 11 18:35:43 yeah, sounds like stolen phone Sep 11 18:35:53 possibly Sep 11 18:36:17 "real" Galaxy series have it ridiculously easy to change IMEI Sep 11 18:36:24 can anyone teach me how to implement the zipcontetnprovide class in api expansion pack setup? Sep 11 18:36:29 although the younge guy that I had purchaced other items from in the past seemed reputable Sep 11 18:36:44 I have a bunch of mp4 files in my expansion pack that I need to read from Sep 11 18:37:12 Lockandload: go to #android-root Sep 11 18:37:17 actually, let me rephrase Sep 11 18:37:24 go to #android-root Sep 11 18:38:52 I didnt even relise my situation until I gave up root busybox effort and spoke to a cell phone store fello and told him about the different IMEI issue Sep 11 18:39:06 hargh Sep 11 18:39:15 I can't seem to change the tab background in abs Sep 11 18:39:23 yes thankyou most appreciated Sep 11 18:40:05 thanks again.... have a great day!!! Sep 11 18:41:37 lov, thanks, bro. Sep 11 18:41:41 has anyone ever worked with api expansion pack? Sep 11 18:47:46 lov, one more question, http://pastebin.com/ADr4jFyY, is this (#22) the right way to unregister a receiver? Sep 11 18:48:20 did you see any mistake? Sep 11 18:49:40 nice; rectenna NFC http://www.gizmag.com/one-cent-rectenna-nfc/24080/ Sep 11 18:52:07 is there a reason that when i do a: Fragment lastFragment = getFragmentManager().findFragmentByTag( tagName ); from an OnClick of an alertDialog box, lastfragment is null? i know the fragment is there. Sep 11 18:52:39 hamcore: uh Sep 11 18:52:46 i even tried using findFragmentbyId().... still the same. Sep 11 18:52:48 hamcore: I'd recommend that you unregister it in your onDestroy, at a minimum Sep 11 18:53:15 lov i tried unregistering on onPause and registering again in onResume but it breaks Sep 11 18:54:24 hamcore: it doesn't "break" Sep 11 18:54:38 it just didn't do what you had planned. Sep 11 18:55:13 if you want your receiver to be able to unregister itself, you need to set a flag for your activity so that it doesn't get re-registered in the same activity instance. Sep 11 18:55:23 JakeWharton: are you around? Sep 11 18:55:30 going to lunch Sep 11 18:55:37 oh ok Sep 11 18:56:02 why? Sep 11 18:56:47 don't sweat it, it's probably too involved to get into before you head to lunch :) Sep 11 18:57:04 I was going to ask a question about ABS but I will do more googling... if I can't figure it out, I'll ask later? Sep 11 18:57:09 sure Sep 11 18:57:23 are you sure it's a question about ABS and not just the action bar in general? Sep 11 18:57:31 rarely are ABS questions actually about ABS Sep 11 18:57:47 actually no, I'm not. Now that you mention it, it probably isn't, but I think I might be onto something :) Sep 11 18:57:55 so go to lunch! Sep 11 18:57:57 and thanks Sep 11 18:58:25 Ask anyways? Sep 11 19:00:14 should i use a dialogfragment instead of the alertDialog? would that help any? Sep 11 19:01:03 Anyone know how to get the transform between pixels in an ImageView and the pixels of the displayed image? Sep 11 19:01:43 I suppose getImageMatrix() might be it... Sep 11 19:10:48 I keep getting a security error about the user or process having permission.WAKE_LOCK, but in my manifest I have Sep 11 19:10:54 Sep 11 19:11:03 not having* Sep 11 19:16:47 hi all .. im not aprogramer just somebody trying to see how stuff works .. htc ace hasn't had an offical release of ics meaning htc hasn't realeased the source i get that but at this point .. how does aosp work .. does this mean that there is a blanket tree out there with source for ics and people just use system.prop to modify to work with there device or how does it work ? Sep 11 19:16:53 anyone mind breaking it down ? Sep 11 19:17:19 lov, do i really need to create an IntentFilter to re-register a broadcast receiver in onResume() ? Sep 11 19:17:53 or is this the right chan ? Sep 11 19:20:00 nevermind Sep 11 19:20:30 Hello, how would one create a magnifying effect, like if i have an imageview and i want to magnifye a part of the image, how? Sep 11 19:21:41 hamcore: you always need to have an IntentFilter instance to register a broadcast receiver. Sep 11 19:22:08 lov yes, stupid question, sorry. Sep 11 19:22:30 * hamcore ashamed Sep 11 19:22:38 crypticmofo: AOSP is the Android Open Source Project. You may or may not be able to build AOSP for your particular device; it generally depends on how much the manufacturer has "enhanced" the device. It may be simplest to see if Cyanogenmod has a release for your phone; see wiki.cyanogenmod.com. Sep 11 19:22:40 http://pastebin.com/XQw814iS Sep 11 19:23:10 crypticmofo: while this IS a channel to discuss AOSP, generally we'd like that discussion to be developer/development oriented. If you're just trying to change the firmware on your phone, #android-root may be much, much more useful to you. Sep 11 19:23:52 ok Sep 11 19:24:55 hey folks! I have a GLSurfaceView and a canvas view in a frame layout - is it possible to somehow force a (re-)create or resize on the glsurfaceview without showing it on the screen Sep 11 19:25:26 Hey what api version does ellipsizing start working properly? My ics tablet functions fine on setmaxlines using ellipsis but my froyo phone has the 2 line problem Sep 11 19:25:27 they seem to not be triggered if I set the visibility to invisible Sep 11 19:30:52 Oh the joy! So ellipsizing doesn't work on pre ICS ahh... Sep 11 19:31:47 hi guys Sep 11 19:31:56 greetings Sep 11 19:32:42 i would like to know if it's possible to build its own android version, but including some .apk i chose Sep 11 19:33:20 for example, i'm building an android for a device i'm building, and i would like super user and busybox to be installed in it Sep 11 19:35:29 H3bus: you just described how one makes a ROM image for a device - all of that is part of standard procedure Sep 11 19:35:36 H3bus: go to #android-root Sep 11 19:35:40 check on #android-root if someone is there, though Sep 11 19:36:03 ok thanks guys, i didn't know that Sep 11 19:44:47 okay, neither getImageMatrix() from ImageView nor its inverse are the matrix I need in order to make pixel coordinates received in onTouch(...) to the image coordinates... Sep 11 19:44:51 WTF. Sep 11 19:49:33 Hello there, what's the best way, and best place, to find some developers to join a new project? Sep 11 19:49:48 offer lots of money Sep 11 19:50:29 but i don't have lots of money Sep 11 19:50:33 then you are fucked. Sep 11 19:50:39 haha Sep 11 19:50:41 nice.. Sep 11 19:50:46 Unless you're willing to pay 6 figure salaries, go take a hike. Sep 11 19:50:56 On a more serious note, you could try vworker Sep 11 19:51:03 vworker? Sep 11 19:51:06 Or 5 figure salaries and "benefits" ;) Sep 11 19:51:09 or elance or any of those myriad websites Sep 11 19:51:15 caioketo, vworker.com Sep 11 19:51:19 Knossos: would you like 6 figures and benefits? :P Sep 11 19:51:27 it's a seller's market for devs right now Sep 11 19:51:52 Just bear in mind that when you go for "lowest bidder" freelancing, you usually get what you pay for. Sep 11 19:52:02 Maybe your app works, at all, maybe it's just a pile of crap that you paid money for. Sep 11 19:52:03 True ^ Sep 11 19:52:07 I'm happy where I am right now. 6 figures would be nice, but I have a lot of freedom doing what I am doing right now. Sep 11 19:52:14 fair enough Sep 11 19:52:37 money doesn't buy happiness, but it does buy things that bring happiness! Sep 11 19:53:03 except free time and a stress free workplace :) Sep 11 19:53:09 One of my wifes friends wrote on FB: "Money doesn't buy you happiness. But I'd much rather cry in a mansion." Sep 11 19:55:03 very esoteric question: does anybody know anything or have guides on sanely using an ARMv5 native library which uses threads on an SMP ARMv7 device? Sep 11 19:55:46 "ARMv5 native library which uses threads" is fine on ARMv5 hardware, as there's no actual concurrency. On ARMv7 the shit hits the fan, as ARMv5 lacks the CPU instructions to protect against actual concurrency Sep 11 19:56:43 is there a way to tell Android "this app isn't SMP safe"? Sep 11 19:57:20 jonp: perhaps keeping locks around any usage of the library? Sep 11 19:57:35 i mean to find someones to join the project, and split the profit after its done Sep 11 19:57:58 jonp: for instance, multithreaded code that uses JNI must keep all calls to JNI within the same thread that initialized it Sep 11 19:58:03 caioketo: Not gonna happen I'm afraid. Not if people have sense :P Sep 11 19:58:03 Hodapp: not entirely practical; the library internally creates threads via pthread_create()/etc. Sep 11 19:58:39 hmm, and you need these threads to not be real ones? Sep 11 19:58:39 y no one likes the old times when we used to get a lot of devs to make a funny project? Sep 11 19:58:54 You could try on an Android forum, but the terms of this channel specifically forbid offering jobs anyway. Sep 11 19:59:07 ^^ Sep 11 19:59:09 ...what old times? Sep 11 19:59:09 see topic. Sep 11 19:59:15 "Please don't advertise websites, jobs, or contracts" Sep 11 19:59:15 Hodapp: i want to reduce required code changes as much as possible. ;-) Sep 11 19:59:31 Hodapp: the alternative is to have apps include an ARMv7-built native library in addition to the ARMv5 one Sep 11 19:59:34 Hodapp: https://gist.github.com/3701589 ImageView.java Sep 11 19:59:37 which works, but increases .apk size Sep 11 19:59:43 ok sorry Sep 11 19:59:51 caioketo: do you have a very solid business plan? Do you have a solid source of revenue? Do you have a way to pay the bills for 3-6 months while a prototype is developed? Do you have an art team? A sales team? Marketing? Sep 11 19:59:58 it's very easy to come up with great ideas for apps Sep 11 20:00:00 No problem, theres plenty of good forums you could try. Sep 11 20:00:02 we all do it, all the time. Sep 11 20:00:14 the idea isn't the hard part. It's the everything else that's hard, including the funding. Sep 11 20:00:20 lov: Your refusal to give me free money because I have a good idea represents what's bring with capitalism! Sep 11 20:00:23 * Hodapp bites lov Sep 11 20:00:36 libertarianthropy! Sep 11 20:00:39 "what's bring with capitalism"? Sep 11 20:00:40 er, what? Sep 11 20:00:45 i'm not sure i understand that Sep 11 20:00:47 I need some help with an issue. We (the company I work for) have an app were trying to distribute through Google Play. One of the developers uploaded the initial application with a self-signed certificate, instead of the our regular key. Now when we try to upload the RTM version with the correct key, we get an error. Is there any way to correct this? Possibly delete the application from the account and then re-upload? We can't cant Sep 11 20:00:48 a combination of libertarianism and lycanthropy Sep 11 20:00:48 librarian... thr... huh? Sep 11 20:00:50 .... Sep 11 20:00:51 nevermind ._. Sep 11 20:00:57 bad joke is bad. Sep 11 20:01:06 th3sp00n: no. you are boned. Sorry :( Sep 11 20:01:29 th3sp00n: the only thing you can do is pull the app and contact your customers Sep 11 20:01:37 direct them to another instance of the app with a different packagename Sep 11 20:01:40 (and the correct signature) Sep 11 20:01:48 Ahh, changing package names sucks. Sep 11 20:01:50 or just time out w/e Sep 11 20:01:52 I've been through that. Sep 11 20:03:36 th3sp00n: since you got disconnected, I'll re-paste! Sep 11 20:03:40 16:01:37 < lov> th3sp00n: no. you are boned. Sorry :( Sep 11 20:03:44 16:02:00 < lov> th3sp00n: the only thing you can do is pull the app and contact your customers Sep 11 20:03:47 16:02:08 < lov> direct them to another instance of the app with a different packagename Sep 11 20:03:51 16:02:10 < lov> (and the correct signature) Sep 11 20:04:11 Well aren't you a helpful irc-citizen Sep 11 20:04:29 * th3sp00n is screwed Sep 11 20:04:36 th3sp00n: pretty much, sorry. Sep 11 20:04:44 lov: thanks for the info Sep 11 20:04:47 no problem Sep 11 20:04:48 th3sp00n: Seek out retribution on that dev :P Sep 11 20:04:55 you could always wait for 2030 to get google's workaround! Sep 11 20:05:26 th3sp00n: Is it not possible to get the self-signed cert that the dev used? Sep 11 20:05:34 or have all traces of that disappeared? Sep 11 20:05:59 yeah, my immediate thought was find that self-signed cert, and adopt it as your new official cert Sep 11 20:06:23 You'll have to live with the indignity of your ca being named "Jimmy's dong shack" Sep 11 20:06:26 but thems the breaks. Sep 11 20:07:13 so, I'm converting ImageView coordinates to image coordinates, and then drawing to its Canvas using those coordinates, and things aren't lining up... just now seeing my error. Sep 11 20:07:16 * Hodapp headdesk Sep 11 20:08:24 Gotta love that moment when you figure out what you were doing wrong though :> Sep 11 20:09:31 Pro tip: When drawing to functions that take ImageView coordinates, make sure you are passing in ImageView coordinates. Sep 11 20:13:36 Hey Sep 11 20:13:50 Is there a way to ask the media player (or some equivalent) what it's supported formats are? Sep 11 20:20:41 Cuban80_: is there some kind of configuration class? Or check tutorials. Often that stuff is missing from api docs Sep 11 20:20:42 lov: sorry, my network sucks today. Yeah, so the self-signed cert doesn't match the existing cert of the already deployed application. Sep 11 20:24:47 coderextreme: well that's what Im asking Sep 11 20:24:58 Do I need to roll my own extension checker, or is it built in Sep 11 20:27:37 Cpudan80_: at this point you know a lot more than me. Sep 11 20:28:09 hrm... I am popping up an AlertDialog. I wonder if I can move this to an arbitrary location, as it is popping up in response to touch events where I'd like to keep the spot pressed visible Sep 11 20:28:10 Try test driven development. Sep 11 20:28:57 hi Sep 11 20:30:02 does anyone know if it is necessary to make a call to setContentView in the onCreate() method of an activity ? What's used as the content view if I don't call setContentView() ? Sep 11 20:30:29 xroberx: it's blank Sep 11 20:30:55 tophyr: yes, but what kind of view is used ? Sep 11 20:32:19 tophyr: I think there's a hierarchy of views, so even if you don't explicitly set the content view of an Activity, there's a parent view... right ? Sep 11 20:32:22 If I want to ban someone from my app what else can I ban by besides mac, ip or udid? Sep 11 20:34:40 bustacap: ban the country they live in Sep 11 20:36:16 Lol can't do that. Sep 11 20:37:00 What else is unique on a phone that even if they try to make a new account they won't be able to :/ Sep 11 20:37:10 xroberx: the activity gets a plain View Sep 11 20:37:18 that View is part of a hierarchy, correct Sep 11 20:38:10 bustacap: http://stackoverflow.com/questions/2785485/is-there-a-unique-android-device-id Sep 11 20:38:28 bustacap: I'm not really sure that I understand. What do you mean by "ban someone from your app" Sep 11 20:38:46 if they're really that interested they'll just learn how to use baksmali and get around your in-app restriction Sep 11 20:39:13 tophyr: what I really want to know is if it's safe to not call setContentView() in onCreate(). I'm just trying to display a dialog and then when the dialog is dismissed, switch to another activity Sep 11 20:39:49 tophyr: I could really just throw a FrameLayout and set it as the content view, but I like to understand how things work Sep 11 20:40:11 xroberx: yes, but you'll need to do more than just NOT call setContentView. Sep 11 20:40:37 lov: what ? Sep 11 20:40:39 tophyr, is that unique identifier editable though? Sep 11 20:40:40 xroberx: You'll very likely want to add android:theme="@android:style/Theme.Translucent.NoTitleBar" to your manifest for the activity Sep 11 20:41:00 So, when an AlertDialog (for instance) is popped up, is that then a window (in the programmatic sense of that-which-WindowManager-handles)? Sep 11 20:41:02 xroberx: you'll also have to handle the user dismissing/cancelling the activity so that they don't get confused about getting into a bad state. Sep 11 20:43:45 bustacap: the article's main point is that there isn't a very good permanent device identifier Sep 11 20:45:29 tophyr, hmmm -_- Sep 11 20:46:34 lov: why Theme.Translucent.NoTitleBar ? Sep 11 20:47:20 xroberx: that'll make the activity become see-through Sep 11 20:47:23 instead of a black box Sep 11 20:48:33 if you really want to just display a dialog, however, activities can be made to look like dialogs Sep 11 20:57:12 what tophyr said. Sep 11 20:57:30 if the only purpose of your activity is to display a dialog, you probably want to display just that dialog instead of a black background Sep 11 20:58:05 lov: yes, I just want to display the app EULA Sep 11 21:01:52 thank you lov, tophyr, see ya Sep 11 21:03:55 hi Sep 11 21:04:38 where can i find arabic rom for eris ? Sep 11 21:06:19 zaksoldier: #android-root Sep 11 21:06:56 hello Sep 11 21:13:45 I am trying to create an AlertDialog from within a Fragment that has a custom XML Layout. I have seen a few descriptions of inflating a view and using setView on the alert builder, however it never seems to work. I always get an error when trying to set text of a EditText entry. Sep 11 21:14:07 Any idea on the best way to create the XML Layout for an AlertDialog Sep 11 21:20:00 Basically how do I make my own custom xml for an AlertDialog Box Sep 11 21:21:12 Like any other layout Sep 11 21:21:34 so i wanna compile a simplest helloworld.c program using ndk (output should be a binary, not APK). Whats the MOST SIMPLEST way for that? Sep 11 21:22:30 SimonVT: I have created the custom XML (like any other layout). The difficulty is getting the Alert Dialog to inflate it within its context. here I seem to be making a mistake Sep 11 21:22:51 I have tried various online examples, all of which fail when I try to modify a EditText that exists in the custom xml Sep 11 21:27:12 nm. I am apparently doing it correctly, just calling the EditText id the incorrect way. Sep 11 21:54:10 hey, i'm having some trouble with the different resolution drawables...does a galaxy nexus use drawable-hdpi by default? Sep 11 21:54:14 i wanna share music across activies whould i play the music in my Application subclass, or just make a singleton musicmanager? Sep 11 21:54:25 if so, what should my other icon sizes be if i want my drawable-hdpi one to be 96x96? Sep 11 21:54:27 ive heard its xhdpi Sep 11 21:54:39 can you make an alertDialog scrollable, or only a dialog Sep 11 21:54:56 freedomcaller: ah, hrm. in that case, how large should my icons be if i want them to appear as 96x96 on my galaxy nexus? Sep 11 21:55:05 in the alert dialog set a custom view that sia scrollview Sep 11 21:55:33 well if you want an icon to be an exact res maybe u shud put it in the nodpi folder? Sep 11 21:55:41 freedomcaller: yeah, i did that but doesnt seem to scroll. Let me make sure I didn't do something wrong Sep 11 21:56:03 freedomcaller: well, i've kind of eyeballed it to look good at 96x96px for my galaxy nexus; i still want it to look similar on other devices Sep 11 21:56:24 well you should have an icon for every res Sep 11 21:56:51 freedomcaller: i don't really have the resources to make a custom icon for each resolution; i'm just going to have to go with downsizing a very large resolution icon Sep 11 21:57:16 i know there are problems with that, but i'm hoping doing it beforehand will be better than having android do its own downscaling itself Sep 11 21:57:21 tbh my lazy man solution is to only do hdpi and it usualy looks ok on everything Sep 11 21:58:54 "Mark Zuckerberg promises a native Android app, says betting on HTML5 for mobile was a 'mistake' Sep 11 22:01:13 zuckerberg: NSS Sep 11 22:13:26 do android library projects produce .jars or .apks? Sep 11 22:18:22 How can I tell if the status bar is at the top or bottom of a screen (on a tablet here) Sep 11 22:22:57 I don't think you can Sep 11 22:25:52 SimonVT: is it ever at the top of the screen? Sep 11 22:26:02 I can't think of a tablet where it is...? Sep 11 22:26:38 status bar is only at top for phones Sep 11 22:26:40 It is on a nexus 7 Sep 11 22:28:03 oh so how does it figure out which one gets the split bar and which one gets the combined bar? Sep 11 22:28:57 @tophyr neither Sep 11 22:29:45 wahhh… I guess I could figure out the coordinates of the content view and if that's at 0,0 in it's parent view then the status bar must be at the bottom... Sep 11 22:30:15 freedomcaller: que Sep 11 22:30:30 oh, my question Sep 11 22:30:40 .. what do they produce, then Sep 11 22:30:50 an eclipse project that you can link to Sep 11 22:31:08 What's better for publishing: a smaller overall app size that could be slower or a more efficient sqlite database that makes the app larger? Sep 11 22:31:17 well. right. but if i want to distribute a binary with that code, then it is a... Sep 11 22:31:45 lasserix: i would definitely go with the faster performance Sep 11 22:31:46 @lasserix a larger DB prolyl wont affect the inital download size so most user prolly wont know LOL Sep 11 22:32:22 library projects arent supposed to execute Sep 11 22:32:35 No it does! adds 20% or more to the overall size since i have to make lookup tables and those can get big fast Sep 11 22:32:39 Alright thanks for the input Sep 11 22:33:02 have it generate the tables after downlaoding :-P Sep 11 22:33:08 freedomcaller: i feel like one of us is misunderstanding the other Sep 11 22:33:19 ^^ Sep 11 22:33:26 On my computer that took an hour or something! Sep 11 22:33:38 but most phones are duel core! Sep 11 22:33:47 CORES, FIGHT Sep 11 22:33:48 whats the large apk size? Sep 11 22:34:07 Sounds like a game idea tophry Sep 11 22:34:13 *tophyr Sep 11 22:34:51 freedomcaller were you asking me? Sep 11 22:35:04 tophyr: Library projects have their source compiled into a jar that's added as a dependency, and then the resources are just copied over Sep 11 22:35:06 lasserix: i'm a gold mine of 'em Sep 11 22:35:17 SimonVT: that's what i was after, grazie Sep 11 22:35:48 since my library has no resources, i should be able to offer just a .jar people can link in like normal.. yes? Sep 11 22:36:15 That's also why R does not contain final variables in lib projects, it's not compiled in the jar Sep 11 22:36:29 lasserix yeah how big are the 2 sized we are comparing Sep 11 22:36:37 Yeah, tophyr Sep 11 22:36:38 cus 1mb and 1.2mb is a lughable difference Sep 11 22:36:55 perfect Sep 11 22:37:13 I'm using a limited db for development, but it could get to be ~10 megs and with the extra tables go up to 13-15 Sep 11 22:37:48 unfortunatly i dont have a webserver otherwise I would just add in content later Sep 11 22:38:08 ahh thats a significant diffference Sep 11 22:38:15 i guess it depends on how important it is Sep 11 22:38:17 :-P Sep 11 22:38:37 central to the app, guess I'll just have to bench it once I get to that point and implement as needed Sep 11 22:38:40 thanks for the input though Sep 11 22:46:39 ok, having a bit of a problem: i have a service that can either be in one package or another (we're currently transitioning) Sep 11 22:46:57 should i make aidl bindings for each? is there any way to choose at runtime which one to go with? Sep 11 22:47:15 i'd prefer for it to look first for one package name, then look for the other one if it can't find that one Sep 11 22:55:10 tnzr: get your question answered? Sep 11 23:12:04 how many folks here have a Nexus 7? Sep 11 23:17:16 Codhisattva: me Sep 11 23:19:15 marcab: mine just arrived Sep 11 23:21:13 marcab: how does it hold up? Sep 11 23:21:48 Anyone use admob? My average cost per click is super low today, anyone else experience this? Sep 11 23:22:10 T-Dub: So Oregon? Sep 11 23:22:17 ? Sep 11 23:22:38 Not sure what you mean Codhisattva, are you asking where I live? Sep 11 23:22:47 T-Dub: host mask looks like Medford (I'm in Talent) Sep 11 23:28:25 Codhisattva: I'm totally satisfied Sep 11 23:28:41 Codhisattva: get Reddit Is Fun Sep 11 23:29:11 ok Sep 11 23:29:16 your app? Sep 11 23:30:01 Ha Sep 11 23:30:02 I wish Sep 11 23:30:42 No, just a great interface for reddit Sep 11 23:31:17 good? average at best :F Sep 11 23:32:09 * marcab is glad SimonVT is here to tell us better. Sep 11 23:32:17 cool I'll get it Sep 11 23:32:46 Codhisattva: shame you missed the Humble Bundle for Android -- had some good stuff. (A lot of it old, but still fun) Sep 11 23:32:48 It's what I do Sep 11 23:33:05 I'm 100% new to android so what are some other top of the line apps to check out? esp some unique games Sep 11 23:34:02 I probably did buy some android games from past Humble Bundles. I'll have to check. Sep 11 23:34:05 Codhisattva: angry births? Sep 11 23:34:07 *birds Sep 11 23:34:15 * marcab would play Angry Births Sep 11 23:34:28 hwrd|work: not really unique or exemplary Sep 11 23:34:46 Codhisattva: http://www.youtube.com/user/androiddevelopers?feature=CAQQwRs%3D Sep 11 23:34:56 hwrd|work: thx Sep 11 23:35:10 Codhisattva: I like 'Edge'; pretty chill Sep 11 23:35:15 Specifically fir day games reveiw Sep 11 23:35:21 Depends on the game you're looking for Sep 11 23:35:26 Oh, top of the line... Sep 11 23:35:31 isn't Dead Trigger supposed to be pretty good? Sep 11 23:35:34 * marcab hasn't played it Sep 11 23:35:52 Codhisattva: actually, you might want to take this discussion to #android :) Sep 11 23:35:58 ah true :) Sep 11 23:36:16 although devs I respect more than general public Sep 11 23:36:34 but I will and get back to eclipse griping Sep 11 23:44:26 is there a way to stop/kill the emulator from the command line (without using kill ) Sep 11 23:45:10 actually looks like 'adb shell stop' Sep 11 23:45:15 yay googling Sep 11 23:51:39 Codhisattva: AIDE, Fandango, GitHub, Hulu Plus, Netflix, OneBusAway, and Taxi Magic are so far the only non-google apps i've installed to my freshly-wiped phone Sep 11 23:51:44 Can you have dashes in your package name/on the google play market. "com.blah.hi-dude" Sep 11 23:52:11 and OneBusAway and Taxi Magic are really the only ones i use regularly. i'm not much of a game player though, and neither of those apps would be very useful on a tablet Sep 11 23:53:13 tophyr: thanks for the tips Sep 11 23:53:35 T-Dub: i don't think hyphens are allowed in java package names, let alone play store Sep 11 23:53:50 Alright, I'll use a period. Thank you tophyr Sep 11 23:54:09 naming convention suggests using an _ or just dropping the hyphen Sep 11 23:54:29 making it a period will create a semantic hierarchical relationship between "hi" and "dude" Sep 11 23:54:41 Hm Sep 11 23:54:45 or go PascalCase: com.blah.HiDude Sep 11 23:54:46 ok I'll use a underscore then Sep 11 23:54:47 thanks Sep 11 23:54:49 ie, dude would be a package in com.blah.hi Sep 11 23:54:52 doesn't need to be all lowercase Sep 11 23:54:53 well it's a number Sep 11 23:54:58 i wanted it to be 11-14 Sep 11 23:55:07 ah, yeah def _ then Sep 11 23:55:11 Thanks Sep 12 00:10:16 http://pastebin.com/UjzgqL6b , Why does this conditional fail? XmlPullParser help please? Sep 12 00:10:57 * ctate | Today is a big day for Android... 500 million devices activated globally, and over 1.3 million added every single day. Sep 12 00:11:14 https://plus.google.com/104629412415657030658/posts/7rcx9cTxzWt Sep 12 00:11:17 and I got to play with 4.1 Sep 12 00:11:28 as usual, pushing it onto someone's else device -_- Sep 12 00:12:23 snuglepuss: don't use "==" to test for string equality. use equals() Sep 12 00:12:24 That's kind of a lot Sep 12 00:12:46 ctate: that's cumulative activations right? not currently active? Sep 12 00:12:47 thank you cketti, im a java noob :p Sep 12 00:12:59 Codhisattva: that i do not know. that might be installed base. Sep 12 00:13:07 but it might be total devices ever. Sep 12 00:13:27 it says "activated" rather than "active" so that suggests the latter Sep 12 00:13:43 the 1.3M/day figure is obviously new device activiations Sep 12 00:14:04 fun thing for developers: The person I installed CM10 for today, with its pretty vanilla look... started by complaining about missing TouchWiz :> Sep 12 00:14:40 ctate: makes sense but I do wish companies were brutally honest. Sep 12 00:14:56 what, it says "activations" Sep 12 00:15:04 currently-active is actually qutie hard to measure Sep 12 00:15:09 because so many devices are used intermittently Sep 12 00:15:54 ctate: it depends on what's important to the user of the data. Like I'd love to know how many people bought and played games this week/month/year. Sep 12 00:16:12 i can understand that Sep 12 00:16:21 i'm just saying this is what was announced today :) Sep 12 00:16:45 ctate: total activations isn't that interesting outside of carrier board rooms ;) Sep 12 00:17:05 hehe Sep 12 00:17:10 well. Sep 12 00:17:18 it is not a completely crappy proxy for installed base. Sep 12 00:17:35 it's not great, but it's better than many other metrics Sep 12 00:17:40 especially in combination with the run rate Sep 12 00:17:47 there are indeed worse metrics ;) Sep 12 00:17:50 is better then Sep 12 00:17:51 nothing Sep 12 00:18:12 Codhisattva, there are ALWAYS worse metrics ;) Sep 12 00:18:43 Jug6ernaut: ;) Sep 12 00:19:42 p_l: ew, TouchWiz of all things? I missed HTC's Sense UI when I first went to CM off my Evo, but Sense is at least nice Sep 12 00:19:59 touchwiz, sense Sep 12 00:20:01 should all die Sep 12 00:20:02 TouchWiz is the epitome of the shitty-apple-knockoff that samsung got it in the butt for Sep 12 00:20:20 if its an apple knockoff, explains why its so crappy Sep 12 00:20:48 tophyr: that was *old* touchwiz Sep 12 00:20:52 i.e. SGS1 Sep 12 00:21:08 ah. well, i haven't seen touchwiz since SGS Sep 12 00:21:26 the version just before the one in SGS1 was crappy as well due to performance, but what was included in SGS2 was actually quite fine Sep 12 00:21:44 they must have foreseen the impending rape-via-patent Sep 12 00:22:06 someone needs to stop drinking the apple coolaid Sep 12 00:22:27 has anyone seen the patents that they sued over? Sep 12 00:22:28 I flashed stock rom minus touchwiz on my wifes galaxy s3 Sep 12 00:22:30 they're rediculous... Sep 12 00:22:33 battery more than doubled Sep 12 00:22:34 tophyr: actually I consider that they got a good idea later on and improved Sep 12 00:22:43 lethjakman yep Sep 12 00:22:50 ron_frown: might be related to some non-visible stuff Sep 12 00:22:52 for anyone that hasn't Sep 12 00:22:56 stit that should never be patented in the first place Sep 12 00:22:58 https://gist.github.com/86294468630b102d63b6 Sep 12 00:23:00 I'm talking right now mainly about launcher and some details Sep 12 00:23:14 they sued over a missed telephone call management for portable multifunction device... Sep 12 00:23:17 completely rediculous Sep 12 00:23:58 Jug6ernaut, lethjakman: patent ridiculousness aside, samsung did completely shamelessly duplicate apple IP Sep 12 00:24:03 http://forums.macrumors.com/showpost.php?p=15445800&postcount=1080 Sep 12 00:24:06 IP? Sep 12 00:24:15 they didn't duplicate apple at all Sep 12 00:24:17 intellectual property Sep 12 00:24:18 tophyr patents not aside, as thats teh whole point and case Sep 12 00:24:23 that's a comparison of Samsung's "Smart TV" IDE, vs Apple's Xcode Sep 12 00:25:02 the patents should not have been issued in the first place Sep 12 00:25:02 ...that coolaid must be strong... Sep 12 00:25:15 tophyr: I should tell you that XCode wasn't first to use that kind of layout either Sep 12 00:25:26 it's pretty generic Sep 12 00:25:30 layout shouldn't be patentable... Sep 12 00:25:36 p_l apple didnt invent the ide? Sep 12 00:25:36 that's all it is is a similar layout Sep 12 00:25:46 Jug6ernaut: nor that layout Sep 12 00:25:54 :o Sep 12 00:26:01 * Jug6ernaut learns something new everyday Sep 12 00:26:13 i assumed apple invented everything, thats what they say isnt it Sep 12 00:26:30 well, in 1996 they talked about having stolen most, so... Sep 12 00:26:48 http://izismile.com/2012/08/29/what_did_apple_really_invent_9_pics.html Sep 12 00:26:49 it's just that now they've got a serious cash surplus to pay lawyers with Sep 12 00:27:01 such is business Sep 12 00:27:02 sorry guys, apple's just losing in the innovation department Sep 12 00:27:17 p_l: no, they weren't, but as a daily xcode user i didn't realize the first pic *wasn't* xcode Sep 12 00:27:33 like I said...that's a layout Sep 12 00:28:26 tophyr: because you're a daily xcode user. Familiar things first Sep 12 00:28:40 it's a memory recall thing Sep 12 00:28:48 (and part of compression mechanism) Sep 12 00:28:51 anyone seen notch's take on patent infringement? Sep 12 00:29:04 lethjakman: they are doing pretty well it seems. people like it. lawyers love it. judges are into it too. Sep 12 00:29:06 http://notch.tumblr.com/post/27751395263/on-patents Sep 12 00:29:32 how much of the market do you think iOS has lost to android? Sep 12 00:29:41 it's a layout, style, set of icons, colors, gradients, even the display-style buttons in the lower right of various panes. that IDE is a blatant copy Sep 12 00:29:44 android allows for much more diversity, as well as larger access to their phones Sep 12 00:30:00 lethjakman: *shrug* it's not a horse race is it? it's just lovely gadgets. Sep 12 00:30:03 tophyr your a funny guy Sep 12 00:30:06 there is no gradient on the samsung one, and none of those ARE patentable Sep 12 00:30:06 faux Van Goghs are just a set of colors in a particular layout as well, but at some point the similarities become too coincidental, is all i'm saying Sep 12 00:30:14 they're not copying a product, they made something similar to it Sep 12 00:30:32 tophyr: and Apple stole the whole UI design for Lisa then Mac from Xerox, so? Sep 12 00:30:43 Codhisattva: I agree, but I feel apaple is abusing a broken portion of the law. I wont' buy from them after this and I loved their PC's Sep 12 00:30:49 p_l: no they licensed things from Xerox Sep 12 00:30:52 ethics are important Sep 12 00:30:56 Codhisattva: nope. No licensing involved at all Sep 12 00:31:05 Xerox, hp, newstep Sep 12 00:31:11 lethjakman: of course it's broken. but it's -business- and business hates ethics. Sep 12 00:31:14 p_l: i didn't say anything about that. if they did, xerox, shoulda reamed them like apple reamed samsung Sep 12 00:31:18 apple doesn't MAKE things, they buy them/steal them, and put them together in a really nice way Sep 12 00:31:45 Codhisattva: that's true, but bad ethics won't get my support, and I wouldn't suggest anyone else support a company like that either. Sep 12 00:32:00 lethjakman: sure, everything is a remix. everyone does that. since the invention of paper or before! Sep 12 00:32:09 Codhisattva: basically it was I think Wozniak visiting PARC few times and then remaking what he had seen (networked, single user graphical workstations with GUI and desktop) for Apple Sep 12 00:32:16 folks... this isn't #android-legalmusings Sep 12 00:32:18 point is, i use both ecosystems and i'm still an android fanboi, but samsung deserved the ruling they got for the particular products in question Sep 12 00:32:19 Codhisattva: no, I mean literally. their music, their OS, their programming language Sep 12 00:32:28 all of those were purchased Sep 12 00:32:30 lethjakman: you'd be hard pressed to find any US corporation that is worth supporting on ethical grounds Sep 12 00:32:51 Codhisattva: true, but Google seems to be doing much better at this point, samsung as well. Sep 12 00:32:58 p_l: it wasn't Woz. He was out of the picture by then. Sep 12 00:33:03 If I see someone like walmart, I won't buy from them Sep 12 00:33:26 Codhisattva: then it was Jobs. I'm not good on where which apple founder was when Sep 12 00:33:29 we as the consumers, it's our responsibility to allow a business to thrive or not Sep 12 00:33:34 lethjakman: really? well ignorance is bliss if you think Samsung is ethical. Or Google either. Both are just like any other corporation. Sep 12 00:33:37 time to go home, cya guys! interesting conversation. Sep 12 00:33:45 Codhisattva: I said more ethical, not completely Sep 12 00:33:50 lethjakman: look into the size of Samsung Sep 12 00:33:54 folks... Sep 12 00:34:07 this isn't #android-legalmusings... it's -dev Sep 12 00:34:08 folk Sep 12 00:34:08 I've seen a lot of cases on apple as far as their copyright infringement, as well as how they treat their workers Sep 12 00:34:25 Leeds dont be jealous of my law degree Sep 12 00:34:30 * Jug6ernaut lies Sep 12 00:34:39 * Jug6ernaut has no law degree Sep 12 00:34:41 can someone please make #android-legalmusings? Sep 12 00:34:52 I'll join Sep 12 00:34:55 lol Sep 12 00:34:59 lethjakman: how about #apple-v-android ;) Sep 12 00:35:03 YES Sep 12 00:35:06 totally down for that Sep 12 00:35:15 except.... Sep 12 00:35:17 you got the order wrong Sep 12 00:35:21 android should come first Sep 12 00:35:27 alphabetical ;) Sep 12 00:36:28 hello Sep 12 00:37:00 hey there neighborino Sep 12 00:37:38 If I want to store data like events in a database, what would be a safe and efficient way for my app to retrieve that information? I assume I wouldn't want my app to have direct access to the DB... so would I create some sort of server interface to request data from? Sep 12 00:37:54 lethjakman: except it's always "plaintiff v defendant" Sep 12 00:38:09 I would use restful service over http GadonJ Sep 12 00:38:26 say using Rails to store the data and retrieve it Sep 12 00:38:31 that way you could have a web service as well Sep 12 00:39:07 could I use PHP? Sep 12 00:39:18 whatever you please Sep 12 00:39:21 of course Sep 12 00:39:22 alright Sep 12 00:39:27 http://blog.programmableweb.com/2011/09/23/short-list-of-restful-api-frameworks-for-php/ Sep 12 00:39:28 I lurve my php Sep 12 00:39:31 those would all help you Sep 12 00:39:38 GadonJ: you are sick and twisted :P Sep 12 00:39:38 ah, thank you kind sir Sep 12 00:39:41 why do you prefer php over rails? if you don't m ind me asking Sep 12 00:39:48 cuz I know it Sep 12 00:40:04 I do too, but I tried rails and I'm never going back. I would HIGHLY recommend it Sep 12 00:40:11 or django :) Sep 12 00:40:13 Im already learning with the android here, I don't want to try and learn another language too Sep 12 00:40:14 Anyone here use com.loopj.android.http.AsyncHttpClient? Just trying to figure out if you still need to use AsyncTask or if this replaces it? Sep 12 00:40:26 GadonJ: objectively, php does suck - but it's easy Sep 12 00:40:28 pardon my newb-ness Sep 12 00:40:49 I like easy Sep 12 00:40:52 I love rest... Sep 12 00:41:00 if you like easy you'll marry rest Sep 12 00:41:06 rest? Sep 12 00:41:14 restful services Sep 12 00:41:16 ah Sep 12 00:41:23 it's a way of accessing data and such. google it Sep 12 00:41:30 REST is a way of doing db things over HTTP Sep 12 00:41:30 they'll explain it better than I can Sep 12 00:41:38 I know what it means Sep 12 00:41:54 very standard and used all over the place Sep 12 00:43:39 has anyone used authlogic along side andriod btw? Sep 12 00:43:51 I'm currently implementing a system in it, and I wonder if I'm crazy Sep 12 00:44:18 gotta go Sep 12 00:44:19 cya Sep 12 00:54:00 Quick question guys, I am trying to query my SQL Lite database to get all the rows in one column to display in a SampleAdapter, any suggestions on how to go about this? Sep 12 00:58:02 Anyone? Sep 12 00:59:50 Leeds: "objectively, php does suck - but it's easy" Sep 12 01:00:00 it's easy to get something that appears to work Sep 12 01:00:19 it's extremely hard to make it *actually* work, and it's not always obvious when it doesn't. Sep 12 01:00:24 friends don't let friends use PHP Sep 12 01:01:40 hehe...i like that Sep 12 01:02:05 php makes me angry tho Sep 12 01:02:05 all technologies that require more forethought than just flailing randomly at keyboard will be replaced by ones that do not require such forethought. Sep 12 01:02:11 * Jug6ernaut hates scripting languages Sep 12 01:02:16 bad scripts bad Sep 12 01:02:35 * ctate hates the term "scripting language" Sep 12 01:02:49 o? Sep 12 01:02:58 AFAICT it doesn't actually mean anything Sep 12 01:03:13 as far as i can think? Sep 12 01:03:18 as far as i can tell Sep 12 01:03:27 yea tha makes more sense Sep 12 01:03:29 is python a scripting language? Sep 12 01:03:37 used to mean something that ran in a shell or in command.com and interpreted into native code Sep 12 01:03:51 everything can be run in a shell :) Sep 12 01:03:59 lol Sep 12 01:04:01 is Smalltalk a scripting language? it's interpreted. Sep 12 01:04:05 or Lisp. Sep 12 01:04:38 HyperCard and AppleScript are better examples Sep 12 01:04:39 i mean, i can see talking about "shell builtin languages" like bash or csh provide Sep 12 01:04:50 HyperCard isn't a "scripting language" by any stretch Sep 12 01:04:54 Hi everyone, I'm having trouble with ActionBar.setDisplayHomeAsUpEnabled() - how do you get it to hide the up carat on the top level screen? Every example I see simply sets it, but I don't know what to do to get it to show on "sub" screens, but hide on the top level. Am I missing something here?? Sep 12 01:05:03 :| my eyes Sep 12 01:05:17 Why is openorCreateDatabase showing as an undefined type? Sep 12 01:06:26 * Jug6ernaut wants to respond but fears angering the great ctate Sep 12 01:06:35 bah Sep 12 01:06:35 that or making myself look stupid xD Sep 12 01:06:37 feel free Sep 12 01:06:50 wait that wasn't confrontational enough Sep 12 01:06:52 MAN UP Sep 12 01:06:56 whats the best environment to develop android apps? I'm using eclipse, but I find it to be to have it's hiccups. Is here a better alternative Sep 12 01:06:56 ? Sep 12 01:06:57 there you go Sep 12 01:07:06 tave: a number of people use IntelliJ Sep 12 01:07:22 that and Eclipse are by far the most common choices Sep 12 01:07:37 is that free as well? Sep 12 01:07:39 carbohydrate: setDisplayHomeAsUpEnabled(false) Sep 12 01:07:46 i want to like eclipse, but eclipse makes it so hard to Sep 12 01:08:02 SQLiteDatabase db = openOrCreateDatabase("Wiki.db", null); ----- Why does this keep saying undefined type? Sep 12 01:08:03 must be the 1GB+ ram its uses Sep 12 01:08:24 ctate: So I'd do that on each Activity itself? That makes sense I guess. Sep 12 01:08:29 it really uses that much ram for you? afaik it's limited to some 500 MB heap on the launcher Sep 12 01:08:35 carbohydrate: but the other question is why it's displaying at all, because that suggests that you're turning it on in the first place but you've lost track of that :) Sep 12 01:09:34 Jug6ernaut, I use ant for some of my projects. Also, my main Eclipse is only projects I regularly work on. I have other accounts for uncommon projects, so my Eclipse does not get bogged down. Sep 12 01:09:39 I'm using an operating system whose kernel allocates more than eclipse, and firefox is commonly using more than eclipse. It starts to look like java isn't even keeping up in the memory-hogging department these days Sep 12 01:10:05 ctate: Well, part of my problem is I have a preference screen that is a regular activity (NOT preferenceactivity) that uses a fragment. I was trying to do it the "right" way, but sub-PreferenceScreens do not display the up correctly and I don't think I have control over them Sep 12 01:10:31 Come on anyone? Sep 12 01:10:39 for me eclipse cant handle building/indexing project components of android source o my machine Sep 12 01:10:51 intellij runs without a hiccup Sep 12 01:11:09 I'm thinking maybe if I handle the fragment swapping/setDisplayHomeAsUpEnabled in the onOptionsItemSelected, then it will work. Sep 12 01:11:17 So I'm gonna have to experiment Sep 12 01:11:26 sounds dangerous Sep 12 01:11:52 carbohydrate: yeah this is very much not my area of expertise :) Sep 12 01:11:55 GL Sep 12 01:12:04 Thanks anyway :) Sep 12 01:17:47 Hey guys how do I query my SQLite database to display some info in the listview Sep 12 01:19:08 Snwspeckle: there must be some SQLite library for java Sep 12 01:19:27 Android has built in SQLite support Sep 12 01:20:13 Thanks for the IntelliJ suggestion, it is a noticeable difference Sep 12 01:22:37 ok, one more thing. IS there any way to speed up the android emulator? Sep 12 01:23:57 GPU emulation, besides that, its terrible Sep 12 01:24:46 The emulator was ungodly slow a year or so ago it's come a long ways. Sep 12 01:29:43 Can anyone help me or is this chat just full of people timing out lol Sep 12 01:31:52 tave: use the x86 build Sep 12 01:32:13 sound logical, will do Sep 12 01:36:47 Snwspeckle: you query the database, read the results from a cursor into an array and use that for your listview dapter Sep 12 01:36:49 *adapter Sep 12 01:37:21 The problem is that my class is extended as a ListFragment Sep 12 01:37:48 so the problem is? Sep 12 01:38:12 I kept getting an error when opening the database Sep 12 01:38:21 whats the error? Sep 12 01:39:58 The method openOrCreateDatabase(String, null, int) is undefined for the type SampleListFragment Sep 12 01:40:52 are you using an SQLiteOpenHelper Sep 12 01:40:53 ? Sep 12 01:41:16 No since I already extend ListFragment in my class Sep 12 01:41:27 This is where I need a workaround Sep 12 01:42:08 you can still use SQLiteOpenHelper, and remember the context from the fragment constructor Sep 12 01:42:23 How though? Sep 12 01:42:47 The reason I am heavily confused is because I am using a library to simulate youtube like navigation Sep 12 01:42:49 new Fragment(Context c) Sep 12 01:43:04 this.context = c Sep 12 01:43:18 in the fragment constructor Sep 12 01:43:48 and then proceed to use it just as in a activity Sep 12 01:44:16 You lost me bud Sep 12 01:45:32 I dont have a FragmentManager Sep 12 01:46:09 you're doing it in xml? Sep 12 01:46:21 Uhmm no Sep 12 01:46:50 then? Sep 12 01:47:51 Idk really, I am confused on what your saying. All I know is that I cannot call the SQLHelper in this class Sep 12 01:49:37 Basically when the app starts I display my SampleListFragment and inside that fragments code, I need to query the database to display that queryed info Sep 12 01:54:58 ... nothing like useful device id: 0123456789ABCDEF Sep 12 01:55:55 f2prateek: Anything? Sep 12 01:56:38 Is latitude.setText(""+location.getLatitude()); a bad practice? I mean using ""+ Sep 12 01:59:00 new Fragment(Context c) <- t.t don't do that Sep 12 01:59:14 Gahhh so confused... Sep 12 02:00:30 It's simply.. openOrCreateDatabase is not a method in your SimpleListFragment class Sep 12 02:00:56 Find out where the method exists, get a reference to an instance of that class, call the method Sep 12 02:17:42 sorry i got distracted by something else Sep 12 02:18:36 No problem Sep 12 02:18:39 SimonVT: "new Fragment(Context c)" is that not recommended? Sep 12 02:18:41 But any suggestions Sep 12 02:20:38 Snwspeckle: like SimonVT said, get a reference to the class that has a method, I assumed it was the context Sep 12 02:25:53 adapter.add(new SampleItem(sidearms, android.R.drawable.btn_star)); --- Why is this returning errors for me? Sep 12 02:29:25 How do i bind something to start when WiFi is turned on? Sep 12 02:31:59 Is anyone ever in here? -.- Sep 12 02:32:57 Snwspeckle: there are hundreds of people in here Sep 12 02:33:21 hamcore: ConnectivityManager Sep 12 02:33:44 Leeds, thanks. Sep 12 02:34:05 hamcore: it sends broadcastintents for changes in network status Sep 12 02:35:14 Leeds: Care to explain what was wrong with my code then? Sep 12 02:35:36 Snwspeckle: sure, if you're going to do the work I'd otherwise be doing Sep 12 02:36:08 I will do the work, just need to know why what I am trying is failing Sep 12 02:36:19 https://gist.github.com/8225da237290ecd28de4 Sep 12 02:37:21 Basically I am trying to display that array in rows for my ListFragment but obviously its not working. Sep 12 02:38:34 Snwspeckle: code ofr adapter? Sep 12 02:38:38 *for adapter Sep 12 02:39:27 Heres the whole fragment (its short) --- https://gist.github.com/23a3eaa7971ed1d33290 Sep 12 02:41:28 Leeds, Is latitude.setText(""+location.getLatitude()); a bad practice? I mean using ""+ Sep 12 02:42:20 hamcore: I'd probably cast it instead Sep 12 02:42:27 explicit rather than coerced Sep 12 02:43:19 Leeds backing to connection, i'll register a receiver, but registerReceiver(receiver2, new IntentFilter(Intent.WHAT)) Sep 12 02:44:08 ah, well that's where it gets more complex Sep 12 02:44:19 CONNECTIVITY_ACTION Sep 12 02:52:20 f2prateek: Any ideas mate? Sep 12 02:57:46 Hi I've been having a problem Sep 12 02:58:00 I'm just trying to go through the basic tutorial Sep 12 02:58:46 I get the first activity to work, but then when I add the second one, it can't figure out what getActionBar() is and doesn't recognize android.R.id.home: Sep 12 02:59:01 Am I missing an import or something? **** ENDING LOGGING AT Wed Sep 12 02:59:58 2012