**** BEGIN LOGGING AT Wed Oct 24 03:00:01 2012 Oct 24 03:03:00 <\monster\> Anyone have experience with SQLCipher? I'm trying to understand how this is secure, don't you need to store a de/encryption key on the device which would allow anyone basically to decrypt the database by finding the key? Oct 24 03:04:04 \monster\: welcome to the world of DRM, where no one wants to admit that it doesn't work ;) Oct 24 03:05:41 <\monster\> this just seems like obfuscation Oct 24 03:07:57 <\monster\> hmm been away from android dev for several months ..man this accelerated emulator is slick Oct 24 03:21:14 I think I finally discovered the cause behind my background highlighting not staying highlighted. Some unintuitive idea called a touch mode. Oct 24 03:52:11 hi can I get my imageview outside the bounds of my viewgroup but I can still see the imageview instead of being clipped?? Oct 24 04:17:11 hi how can i animate my imagebutton scale up? Oct 24 04:18:20 success… thanks Oct 24 04:29:12 Is there a way to make a sound play when a notification is displayed? Oct 24 04:30:57 http://developer.android.com/reference/android/app/Notification.html#sound Oct 24 04:31:03 argh Oct 24 04:36:55 I have that Leeds, but the sound doesnt play when the notification is displayed Oct 24 04:54:53 hey guys How can I still support android 2.1- when I have to use "smoothScrollBy" Oct 24 04:55:03 i wish to use "scrollBy" with android 2.1- Oct 24 04:55:11 while using smoothscrollBy with android 2.2+ Oct 24 04:55:25 i dont know how to do this Oct 24 05:00:12 vanson2012, lookup java reflection Oct 24 05:00:35 you can call ListView.class.getMethod(...) to find the method if it's there Oct 24 05:13:42 hmm, so the best guess of # of nexus 7's sold is high 6 figures to 1 million units sold Oct 24 05:14:17 i guess goog didn't discuss it on the last recent earnings call Oct 24 05:35:53 Hi, I am developing an alarm ... i have developed a broadcast receiver in which i start to play a sound using MediaPlayer and send an intent which moves the control to the dashboard activity... the problem is when i try to stop the alarm using mediaPlayer.stop() ... it has no effect.. the alarm keep ringing Oct 24 05:44:41 cool http://www.h-online.com/open/news/item/Google-becomes-strategic-member-of-the-Eclipse-Foundation-1734884.html Oct 24 05:44:52 "As a strategic member, Google will provide the organisation with eight full-time developers to work on Eclipse technology and donate $250,000 per year." Oct 24 05:45:29 but with their tooling depending on eclipse .. why the fuck did they wait until now :? Oct 24 05:45:49 like the design guidelines that came out … a few years too late (but better late then never) Oct 24 05:46:12 hm subpixel rounding in webview is such a PITA Oct 24 05:50:36 g00s, because we already pay people to work on it full time, we just don't upstream much (anything?) Oct 24 05:50:55 speaking of internal dev tools, not ADT, GWT, etc Oct 24 05:51:41 from what i read eclipse was hurting for manpower after ibm lessened their involvement Oct 24 05:52:10 i dont think 4.2 was performance tested Oct 24 05:52:40 lol Oct 24 05:52:45 tested and failed Oct 24 05:53:08 why do people think I'd want a pretty IDE rather than a fast one? Oct 24 05:53:42 4.2 is pretty :P ? Oct 24 05:53:56 i still need to try intellij Oct 24 05:54:06 well, with the intent of trying to style it (not saying it came out great) Oct 24 05:54:10 oh god, i hope r o n didn't see that Oct 24 05:54:11 I want solid and readable fonts, and speed speed speed. Oct 24 05:54:36 readable fonts are a plus :P Oct 24 05:54:56 Which is why InteliJ on Linux (a Swing based app), will never work for me. Oct 24 05:55:26 and it's noticably less responsive than Eclipse. not really sure why people say its so fast Oct 24 05:59:08 i found intellij a lot faster then eclipse, but both are pigs compared to emacs/vim Oct 24 05:59:27 vim is a pig compared to ed ! Oct 24 06:00:00 * muhoo remembers the days when emacs actually ran slowly on the hardware available at the time Oct 24 06:01:01 ah, the wonders of moore's law. Oct 24 06:01:30 less try to compare like things here, ok? Oct 24 06:01:52 emacs is not an IDE Oct 24 06:02:15 its an operating system XD Oct 24 06:03:17 eclipse also makes better use of these things called "VGA" graphics we have nowadays Oct 24 06:03:31 turns out you can draw stuff besides letters on the screen Oct 24 06:03:33 :-P Oct 24 06:05:18 ActionBarSherlock 4.2 o_O Oct 24 06:05:24 i missed that Oct 24 06:05:36 yeah, been out for a week or so Oct 24 06:06:18 wonder what happened to the google one. maybe we'll get some tool updates & stuff on the 29th Oct 24 06:06:32 Ha. I honestly have no idea Oct 24 06:06:32 hey guys Oct 24 06:07:46 Tool updates are seperate from Android events usually. Multi-device thumbnail previews in ADT layout editor hit preview channel over the weekend, Oct 24 06:07:55 <3 Oct 24 06:08:08 see landscape and portrait at the same time Oct 24 06:08:56 mrenouf: didn't adt20 happen with IO & 4.1 though ? Oct 24 06:10:02 yeah adt 20, but the multi-preview feature didn't make it. got 21 rc9 right now Oct 24 06:10:17 ah Oct 24 06:11:09 Hey Guys Oct 24 06:12:08 brickhead, whats up Oct 24 06:12:34 Hey mrenouf Oct 24 06:12:56 well I was looking up for a safe key store in android and found https://github.com/nelenkov/android-keystore Oct 24 06:13:35 the author did explained its a hack, but it seems to work like charm http://nelenkov.blogspot.in/2012/05/storing-application-secrets-in-androids.html Oct 24 06:14:11 actually the keystore is only accessible by apps post ICS, and that too for storing RSA certs Oct 24 06:15:23 rest is good :) Oct 24 06:15:28 anyone from SFO Oct 24 06:15:29 ? Oct 24 06:17:34 i'm trying to figure out if vert.x works on android - anyone try it ? Oct 24 06:30:51 nope, east coast here Oct 24 06:31:10 and yes, I should be sleeping but... meh Oct 24 06:44:29 Hi, I am developing an alarm ... i have developed a broadcast receiver in which i start to play a sound using MediaPlayer and send an intent which moves the control to the dashboard activity... the problem is when i try to stop the alarm using mediaPlayer.stop() ... it has no effect.. the alarm keep ringing... is it some problem with the handler thing.. .. is it like the handler which start the alarm can stop the alarm ? Oct 24 06:47:34 hi all Oct 24 06:47:47 no bots allowed ! Oct 24 06:47:57 My device fail to play audio file from internet Oct 24 06:48:09 then the internet is broken Oct 24 06:48:15 log cat shows getPlayerType BBB Oct 24 06:48:42 anyone has the same problem? Oct 24 06:49:02 g00s the internet connection is ok Oct 24 06:52:58 can't we start an alarm in one activity and stop in another ? Oct 24 06:54:09 digitalfallacy: do you have a reference to it? Oct 24 06:56:40 @#*@# maven Oct 24 06:56:53 trying to build ABS 4.2, it's just hanging on making a jar Oct 24 06:56:54 wtf Oct 24 07:00:58 oh... its just REALLY slow, and gives no progress output Oct 24 07:01:57 usually maven has to download the internet on first run Oct 24 07:02:43 i think i tried abs as a library project in eclipse … is maven needed / Oct 24 07:02:53 yeah, besides that Oct 24 07:03:15 not really needed Oct 24 07:03:18 i love it though Oct 24 07:03:44 i remember back in the day when maven used that pos called plexus Oct 24 07:04:20 if you build actionbarsherlock. it zips along till "maven-jar-plugin" and sits there for about 2 minutes Oct 24 07:04:21 mrenouf: oh well, if you want dep management and stay within the android ant build stuff, you can use ivy Oct 24 07:04:35 eww Oct 24 07:04:48 didn't like it ? Oct 24 07:05:04 declaritive imperative build system Oct 24 07:05:08 yay Oct 24 07:05:22 ah Oct 24 07:05:47 true Oct 24 07:05:51 no thanks Oct 24 07:05:52 didnt teh guy who invented ant eventually repent ? Oct 24 07:07:01 turns out android apps dont need that many dependencies, and they are not deep trees Oct 24 07:07:07 if they are, you've got problems Oct 24 07:07:27 I use: Guava, Otto, ABS. Oct 24 07:08:01 oh and Guice, but just a little Oct 24 07:08:07 heh :) Oct 24 07:08:22 Jake was right... RoboGuice was a peice of @#%$@ Oct 24 07:08:27 performance killer Oct 24 07:08:40 and most of what if provides people just don't need Oct 24 07:09:06 BUILD SUCCESS Oct 24 07:09:10 Leeds: yes .. i have done it the singleton way Oct 24 07:09:13 Total time: 9:02.831s Oct 24 07:09:26 thats on an uber machine, with infinite internets Oct 24 07:09:28 ah, found the ant & xml regret http://www.divideandconquer.se/2007/12/13/ant/ Oct 24 07:10:04 Total time: 1:31.247s here Oct 24 07:11:38 yeah, not sure Oct 24 07:11:59 why so slow for me. but whatever. its a once-every-n-months thing Oct 24 07:12:31 haha, Jake renamed the ActionBarSherlock Trojan Horse class. to "Watson" Oct 24 07:13:03 much better Oct 24 07:13:11 http://mirrors.ibiblio.org/maven2/com/actionbarsherlock/library/4.2.0/ Oct 24 07:13:22 i'm also hoping on the 29th that google announced a new maps api Oct 24 07:13:35 *announces Oct 24 07:13:46 oh. right. well I prefer to build from src Oct 24 07:14:32 hmm weird Oct 24 07:14:48 only pom files for 4.2.0, no apklib Oct 24 07:15:08 i need the .jar and res/ anyhow Oct 24 07:15:47 I seriously hope Android tools move to something like apklib Oct 24 07:16:04 don't we all Oct 24 07:16:19 that was the whole point of this non-final in R values in library projects thing Oct 24 07:16:33 so libraries can at least be pre-compiled Oct 24 07:17:15 hmm, does the maven plugin for eclipse play nicely with ADT? Oct 24 07:17:29 don't the new versions pre-DEX? Oct 24 07:17:37 just about Oct 24 07:17:47 you need to be a little careful with apklibs Oct 24 07:18:05 what's pre-DEX? Oct 24 07:18:16 you need the project in eclipse and maven Oct 24 07:18:33 convert to dalvik from java bytecode Oct 24 07:18:59 I know dex :-) I but not what you're referring to re: build system changes Oct 24 07:19:35 as in compile and run dex on a library Oct 24 07:19:43 then not do it again unles it gas to Oct 24 07:19:49 *unless *has Oct 24 07:20:06 oh sure Oct 24 07:20:11 have for a while I believe Oct 24 07:20:43 I think that's whats happening when you see "Android library update..." Oct 24 07:28:32 I'm unable to set breakpoints in my native could. Running ndk-r8b, building with Eclipse, NDK_DEBUG=1 is set, APP_OPTIM := debug and I Debug As Android Native Application. The debugger seems to be hooked up. But when I add a breakpoint I get "No symbol table is loaded. Use the "file" command" in the Console. It breaks when I get a SIGSEGV error but there is no code attached. Oct 24 07:28:38 s/could/code Oct 24 07:32:31 hi. my screen on the emulator starts rotated. how can i rotate it back to normal? Oct 24 07:35:55 ok thanks. Oct 24 07:38:38 what requirements do you need to run emulator properly? it seems VERY sluggish with my setup Oct 24 07:39:02 dutymule it is normal Oct 24 07:40:38 reminds me of playstation emulators Oct 24 07:40:42 dutymule, add gpu emulation to the avd features, helped me alot Oct 24 07:42:10 will do, thanks Oct 24 07:42:57 there is also the intel hardware accelearation packages on win/mac (not sure about linux) Oct 24 07:43:10 enables itself when you use the x86 atom images Oct 24 07:43:56 works fine on Linux Oct 24 07:44:07 yay Oct 24 07:46:48 hi. my screen on the emulator starts rotated. how can i rotate it back to normal? i thought it worked when i pressed ctrl+F11 Oct 24 07:47:11 normal i mean portrait. Oct 24 07:47:52 its meant to start potrait Oct 24 07:48:00 oh right Oct 24 07:48:02 but with me it's not Oct 24 07:48:04 so, on linux, I should use atom as emulator architecture? Oct 24 07:48:05 thats weird Oct 24 07:48:12 superlinux-hp: doesn't it rotate, when you press ctrl + f11? Oct 24 07:48:27 maybe it saves the rotation state when you closed it Oct 24 07:48:28 ztrl f12 Oct 24 07:48:34 Pitel_IPEX: yeah Oct 24 07:48:38 it rotates the frame of the emultor only Oct 24 07:48:42 you might need to enable kvm Oct 24 07:48:53 http://developer.android.com/tools/help/emulator.html Oct 24 07:49:02 ctrl F12 Oct 24 07:49:07 its ctrl f1 for portrait and ctrl f12 for landscape i think. not at home atm Oct 24 07:49:07 or numpad 9 Oct 24 07:49:25 alex_PP, i'll try the numpad Oct 24 07:49:42 with num lock off ( if i remeber) Oct 24 07:50:04 it's page up or down Oct 24 07:50:19 no i thought it's Oct 24 07:50:31 yes numpad while off Oct 24 07:51:00 superlinux-hp: might it be, you have set up your window manager some time ago, and it reserved that shortcut :) (happened to me just some days ago, that I forgot to delete this shortcuts and Xfce have this shortcut reserved by default for switching between workspaces) Oct 24 07:52:05 timroes, i use gnome 2.3 on debian squeeze Oct 24 07:52:30 is there a symbols package for app debug dumps? Oct 24 07:55:17 superlinux-hp: Ctrl + F12 Oct 24 07:55:27 shmooz, yes! i know Oct 24 07:55:51 shmooz, but it starts the system rotated Oct 24 07:56:11 the default is it is rotated Oct 24 07:56:25 maybe in the virtual device settings ? Oct 24 07:56:45 launch a new one Oct 24 07:57:55 yo Oct 24 07:58:05 http://tools.android.com/tips/hardware-emulation Oct 24 07:58:22 install the sdkcontroller on a phone and it can send sensor info to the emulator Oct 24 07:58:33 then just tilt your phone. Oct 24 07:58:46 "The SdkControllerSensor application source code is located in $SDK/tools/apps/SdkController/" Oct 24 07:59:22 if it does it everytime, then save a snapshot and start the emu from that Oct 24 08:02:31 is there a symbols package for app debug dumps? Oct 24 08:18:10 what's up with the android app piracy these days? any breakthroughs for owners/pirates? Oct 24 08:19:29 breakthrough in what? copy protection? Oct 24 08:23:24 yup Oct 24 08:31:15 hi all Oct 24 08:31:48 i am trying to customize the snake game example Oct 24 08:32:41 presently there is a wall surrounded and if the snake touch that bar then the game is over. I am trying to remove that bar and have implemented a logic Oct 24 08:32:57 http://pastebin.com/CsHkbnXu Oct 24 08:33:11 here is the code . and the logic starts from line no. 360 Oct 24 08:33:20 it works fine Oct 24 08:33:50 but when i try to put the same code inside a method and try to call it , it gives arrayoutofboundexception Oct 24 08:34:03 can anyone please help with this ? Oct 24 08:34:38 can you post the code that throws the exception and mark the line in which the exception occurs? Oct 24 08:34:58 line no. 416 throws an error Oct 24 08:35:30 because y coordinate gives the value as -1 Oct 24 08:36:22 timroes: http://pastebin.com/30LaCpmf here is the tileView code Oct 24 08:36:46 the method showTiles() throws an arrayoutofboundexception Oct 24 08:37:12 showTiles? Oct 24 08:37:18 i dont see there a method showtiles :) Oct 24 08:37:54 timroes: sorry setTiles(int index, int x, int y) Oct 24 08:40:36 but so the problem is, that coord.y give you -1? Oct 24 08:40:48 timroes: yes Oct 24 08:41:10 please comment out line no. 360 - 370 Oct 24 08:41:29 and uncomment 343 - 358 Oct 24 08:41:37 then it gives an error Oct 24 08:41:48 but the way you posted it, it runs fine? Oct 24 08:41:55 correct Oct 24 08:42:16 timroes: hold on a sec please Oct 24 08:42:41 timroes: http://pastebin.com/ayqqx12V Oct 24 08:42:44 try with this code Oct 24 08:42:56 timroes: it will definately throw an issue Oct 24 08:43:01 in mean an exception Oct 24 08:44:21 btw the clearTiles method in your Tiles class is very unnescessary Oct 24 08:44:33 array fields are already initialized with 0 in Java Oct 24 08:45:02 and the compiler (as far as i tested) won't optimize that out for you, so you do one senseless method call and array inituialization Oct 24 08:45:30 (but thats ofc not your problem, just wanted to mention it :D) Oct 24 08:46:43 timroes: but i am doing the noSideBars() method which does the same thing Oct 24 08:47:17 timroes: then how come calling a function is giving me an issue while pasting the logic instead of the method call works ? Oct 24 08:48:22 timroes: you got the exception right ? Oct 24 08:48:42 timroes: are you facing the exception while running the code ? Oct 24 08:48:47 i haven't it running, just looking at it Oct 24 08:49:14 ok Oct 24 08:49:27 should it run with just htese two classes? Oct 24 08:49:56 no there is one other class . Oct 24 08:50:30 please import the snake example from the android examples and replace the SnakeView with mine SnakeView class Oct 24 08:50:48 i am using that example Oct 24 08:52:24 so... I am having a weird issue and I don't even know how to phrase it to Google to search for it... I have a listview, and an edit text above it to filter it... all works fine, but when I'm in the edit text the "enter" button displays as "next" and focuses I assume onto the listview if I press it. Oct 24 08:52:50 Is there any way I can exclude the listview so that the edit text will show "done"? Oct 24 08:52:59 the confirmation button for the edit text* Oct 24 08:54:22 timroes: did it work ? Oct 24 08:54:45 yeah just had to start emulator, one mom... press up to play... very funny where is my up button :D Oct 24 08:55:28 timroes: the dpad up button on the right hand side :) Oct 24 08:55:54 timroes: i hope you are using < android 3.0 Oct 24 08:56:23 nope, but the array indexoutofboundsexception i guess will also occur on android 3+ Oct 24 08:56:33 yes it will Oct 24 08:56:55 timroes: use the PC's keyboard Oct 24 08:56:59 it will work with that too Oct 24 08:57:31 Tee_Pee how are you showing the soft keyboard? Oct 24 08:57:43 Tee_Pee: you can add android:imeOptions = "actionDone" for sunny_slls: i would need your Snake class as it seems to be modified too Oct 24 08:57:46 ok .. i played a sound using media player .. thein i said mediaPlayer.stop() .... then when i say mediaPlayer.start()... it gives an error why is that Oct 24 08:58:08 eh, all I did was add setFocusable(false) to the listview :p Oct 24 08:58:14 did the trick Oct 24 08:58:32 timroes: http://pastebin.com/YzRMjF9L Oct 24 08:58:40 timroes: this is the snake class Oct 24 08:58:43 but the soft keyboard still has next instead of done ? Oct 24 09:01:37 nope Oct 24 09:01:43 it has "done" now when on the edit text Oct 24 09:01:49 as it's the only thing that's focusable :p Oct 24 09:02:31 timroes: is it working ? are you still facing any trouble ? Oct 24 09:05:31 timroes: working ? Oct 24 09:05:34 eh npo, because you have a way other package strcture than the example (at least the snake example I have installed), also puictures missing, so "just replacing the SnakeView" won't do the trick Oct 24 09:06:31 oh~! Oct 24 09:07:00 ok we can still do one thing Oct 24 09:07:31 timroes: do you still have the original snake example Oct 24 09:07:32 ? Oct 24 09:08:28 timroes: you there ? Oct 24 09:08:37 noemptycontructir runtimeexception, okay i seem to have a compeltly different snake example then you (used the one from android-16). If I should have a look at it, please zip me your project Oct 24 09:08:59 timroes: ok that sounds fair Oct 24 09:09:17 please tell me your email id Oct 24 09:10:46 is youtube down for anyone else? or maybe its just my ISP Oct 24 09:11:29 hello all Oct 24 09:12:19 youtube working here Oct 24 09:12:26 i have a question. I debug my software on device and this device has no sim card but I need some SMS messages in the inbox for my app - how can I get some SMS their ??? Oct 24 09:12:29 shmooz: youtube works great Oct 24 09:12:53 Pinas: you can use emulators for that Oct 24 09:13:01 thanks vavirta Oct 24 09:13:09 shmooz - i suggest http://www.downforeveryoneorjustme.com/ Oct 24 09:13:12 http://stackoverflow.com/questions/4325669/sending-and-receiving-text-using-android-emulator Oct 24 09:13:59 vavirta and how do I do this on device ?? Oct 24 09:15:02 not sure, but that's how I've tested sms-things Oct 24 09:17:22 vavirta - ok thank you :) Oct 24 09:19:28 np :) Oct 24 09:19:57 thanks Pinas Oct 24 09:22:42 do fragments have some sort of "onDestroy" method that's called when they're scrolled away from in the viewpager? Oct 24 09:32:48 hi. I need an example on how i can use xml to define the click even Oct 24 09:33:36 bad practice. but in your button attributes do android:onClick="nameOfMethod" then in your corresponding activity public void nameOfMethod(View view) { do stuff } Oct 24 09:34:53 lasserix, ah ok.. I do that without defining the buttons again? isn't? Oct 24 09:35:03 ? Oct 24 09:35:19 as in wallpapers_thumbnails[23]=(ImageView)findViewById(R.id.wallpaper_id_23); Oct 24 09:35:34 yeah you don't have to have an explicit reference, Oct 24 09:35:41 cool! Oct 24 09:35:47 the (View view) view arg is connecting it Oct 24 09:35:54 ok fine! Oct 24 09:36:27 http://pastebin.com/g5EAdnSS I am trying to rewrite notifications with support library to support jellybean, but it doean't work. Can you guys help me with this? Oct 24 09:36:36 lasserix, why it's a bad practice? Oct 24 09:37:07 its an arbitrary method Oct 24 09:37:13 ah ok. Oct 24 09:37:32 if you have lots of buttons, or a more complicated view type ie fragments or something then it is easy to make a mistake Oct 24 09:38:14 lasserix, ah yes.. this means i cannot have a common layout to remove confusion Oct 24 09:38:35 a common one between a number of activities Oct 24 09:39:01 not sure what you mean Oct 24 09:39:22 but since it's about as easy to reference the button and set up a click listener than you always know exactly what its doing Oct 24 09:39:40 lasserix, ok Oct 24 09:39:44 that's fine Oct 24 09:39:56 what i was talking about is readable code Oct 24 09:40:14 hey did anyone tried deploying apps on Android TV before? Oct 24 09:40:15 what i was talking about is easily readable code Oct 24 09:40:55 yeah thats the whole point, just add a comment explaining waht button in what layout is referencing the onclick method Oct 24 09:49:46 okay, so now I have create a clean new android project in eclipse. Then "Add Native Support". I added a native method in java and generated the header file using javah. Then I wrote an intentionally crashing implementation of the method. In Android.mk I added APP_OPTIM=debug and LOCAL_CFLAGS=-g and to ndk-build I use NDK_DEBUG=1. The project runs fine, I'm able to hook up with gdb but it still says "No symbol table is loaded." gdb.setup lo Oct 24 09:50:16 Anyone know if I can fetch my apps in-app-products to display the correct locale price to my users in the UI? Oct 24 09:50:47 When I call the method gdb breaks but I don't see the actual source row. It just says like 0x5bf5ac2e in ?? () Oct 24 09:54:33 anyone has a hint how I can send a SMS message (ideally from my pc) to a device without sim card (i need some sms in the device's inbox folder) Oct 24 09:55:18 Pinas: perhaps you could use some sms backup/restore tool Oct 24 09:55:45 well you cant via 3g, you would need some kind of app that simulates it Oct 24 09:56:26 hi, I don't know if I'm at the right place to ask this question: when I fill a form with my phone under Android at the bottom right of the screen I've got an array to go to the next field. On the form I've created this arrow is replaced by an "ok" button which submits the form instead of focusing the next input. How can I manage that? Oct 24 09:56:53 tech1 you are absolutely right - I'm looking exactly for such a app Oct 24 09:56:54 oh bummer. now I was told client is going straight to full use of application before it's even been under more than quick tests. Testing phase! Who needs it! Straight from development to production is order of the day. Oct 24 09:59:30 tneva82, just write code with no bugs Oct 24 09:59:35 easy peasy Oct 24 09:59:56 koskoz: http://developer.android.com/reference/android/widget/TextView.html#attr_android:imeOptions Oct 24 10:00:31 sure hope there's nothing that even stupid users can broke with this. Oct 24 10:02:11 Hell website part is not yet done fully and there's changes to database but when I tried to protest that starting to put final data would be Bad Idea I was promptly overruled. Dammit. Only reason I put production database up and running was to test android program since I can't access test server with it. Never intended for the client to start using it rightaway Oct 24 10:05:20 appel1, I'm doing this in html Oct 24 10:06:03 koskoz: sorry, no idea then Oct 24 10:11:48 Hi all! Oct 24 10:12:00 I have a question: http://stackoverflow.com/questions/13046076/gallery-images-still-load-very-slow Oct 24 10:15:49 koskoz: random question- are you doing a web app? Or a native android app? Oct 24 10:23:56 hi there! I want to emulate the camera using the webcam. any help? Oct 24 10:28:55 where do I ask about API stuff, as in..making one, coding in an API-friendly manner Oct 24 10:29:30 basically, implementing this video http://blog.apigee.com/detail/restful_api_design Oct 24 10:41:13 Many people here off to droidcon tomorrow? Oct 24 10:41:27 which one? Oct 24 10:42:01 london Oct 24 10:42:04 the Dutch one is in november Oct 24 11:35:41 using the new facebook droid sdk is there a way to get current user access token ? Oct 24 11:53:47 hello all anyone knows something about opengl for android? Having some problems with it Oct 24 11:59:32 i did andengine maybe i can help you Oct 24 11:59:39 hi, anyone knwo how to emulate camera on adv in linux? Oct 24 12:04:15 hi Oct 24 12:04:26 did anyone try the new Android FB API 3.0? Oct 24 12:13:45 Hi all. Normally when you long-press on a marked text (or EditText/TextView), a dialogue with "Copy", "Cut" etc. shows up. Can someone tell me whether that is an Intent and if so, what its target is? Oct 24 12:14:53 I'm doing a web app (using html5) and when I fill a form with my phone under Android at the bottom right of the screen I've got an array to go to the next field. On the form I've created this arrow is replaced by an "ok" button which submits the form instead of focusing the next input. How can I manage that? Oct 24 12:15:43 hello Oct 24 12:16:00 what class to use to monitor incoming calls and perform actions with them? Oct 24 12:16:23 is it even possible? Oct 24 12:20:27 Smiche_: tried to google for "android monitor incoming calls" ? Oct 24 12:20:38 yup Oct 24 12:20:45 http://stackoverflow.com/questions/2334465/block-incoming-calls Oct 24 12:21:41 Smiche_: that's the first result yes Oct 24 12:28:02 what class to use to monitor incoming calls and perform actions with them? <- you can alter the audio stream because it does not go in the OS layers but directly in the chip (for obvious security reason, despite i would also like to do it to change voices) but you can manage things around who is calling and what to do when someone is calling Oct 24 12:28:28 The only crappy trick I know is to make the speaker loud enough to reach the microphone, but it's crappy in term of sound quality Oct 24 12:28:44 erff i meant, you CANNOT alter the audio stream (nor record it) Oct 24 12:30:18 i might misunderstood, if so precise what you meant by "monitoring" Oct 24 12:36:22 Can someone help me with displaying a DialogFragment from within a static SherlockListFragment activity within a SherlockFragmentActivity? Oct 24 12:47:36 Hello. What wat is better for editing xml in android? Oct 24 12:49:12 *way Oct 24 12:53:46 hmm anyone know how to plot a bezier curve Oct 24 12:54:20 i seem to have 4 points, but cubicTo has 3, which looks to be whats used to draw one Oct 24 12:55:57 gaz`: cubicTo uses 4 points, the point the path is currently is the starting point, the first two parameter points the control points and its ending in the third point parameter Oct 24 12:56:43 cubicTo (float x1, float y1, float x2, float y2, float x3, float y3) Oct 24 12:57:05 looks like 3 Oct 24 12:57:07 yeah Oct 24 12:57:14 or do u use moveTo to get to the first one? Oct 24 12:57:20 the first points is - as i wrote - the point, that the path is currently at Oct 24 12:57:28 oh ok Oct 24 12:57:31 e.g. when you dont need to do anything beforehand Oct 24 12:57:33 so moveto yeh basically Oct 24 12:57:40 so when the bezier is the first you want, you use mmoveTo Oct 24 12:57:41 im crap at all this stuff Oct 24 12:57:52 ok, lets see what happens Oct 24 12:58:31 sigh... my asynctask downloader is extremely extremely inconsistent... on some devices (and on some wireless networks) it downloads normally, on some others, it hangs... Oct 24 13:00:07 Tee_Pee: I've noticed that as of HC (I think) the default timeout for connections changes from 300s to 0s Oct 24 13:00:11 where 0s implies infinite Oct 24 13:00:22 it's possible that your network connection was interrupted, but if you don't set the timeout you'll never be notified Oct 24 13:01:25 Possible, but it might as well be a million other things, I have yet to come around debugging the downloader portion of the app. Oct 24 13:02:36 Just one thing from the top of my mind though - I've noticed that when the application is e.g. downloading the thumbs of images in an album, each asynctask is called sequentially, one after another.... is there a flag of sorts that can be set to allow multiple parallel downloads? Oct 24 13:02:53 I don't think so offhand. Oct 24 13:03:00 You could just use threads and handlers :P Oct 24 13:03:17 or I could jab a pair of scissors into my crotch, sounds just as fun Oct 24 13:03:20 :P Oct 24 13:03:34 you realize that asynctask is just a wrapper around spawning a thread and calling runOnUiThread right? Oct 24 13:03:49 yup. Oct 24 13:04:05 but a neat wrapper it is :p Oct 24 13:04:08 If you're at the point where you're writing a downloader, consider using a service for it and engineering it Oct 24 13:05:09 Must admit that I never wrote a service, but it's on my "try it this way" list for the downloader. Oct 24 13:05:15 when I get around to it of course. Oct 24 13:11:27 Is it possible to have Eclipse automatically sign your apps with your release key instead of the debug keystore when you run the app? Oct 24 13:15:55 Tee_Pee: I would strongly recommend that you move your downloader either into a service or into some sort of static singleton which provides callbacks. Oct 24 13:16:11 You don't want to interrupt your app state because the user rotated the device. Oct 24 13:23:44 hi Oct 24 13:24:02 can i raise an issue here about implementing smth ? Oct 24 13:24:29 you can try... Oct 24 13:24:37 oky, so here it goes Oct 24 13:25:09 is there any value to create a system service in frameworks/base/packages instead of fw/base/services ? Oct 24 13:25:34 ah... that doesn't sound like an app dev issue? Oct 24 13:25:39 in any way i do need to make various methods public via .aidl, and also i need security via the 'persmissions' Oct 24 13:25:50 Leeds, nope is not Oct 24 13:27:08 anyone using Facebook sdk 3.0.b Oct 24 13:27:12 ? Oct 24 13:28:08 kobelev: You generally won't want to provide end users with an AIDL interface to your service. You'll generally want a "Manager" frontend class to handle this for you./ Oct 24 13:28:21 Take a look at all of the manager classes that getSystemService returns. Oct 24 13:28:44 You'll definitely want to implement some sort of permissions scheme if your service does anything at all sensitive Oct 24 13:28:58 whether this means creating an entirely new permission or reusing existing ones is up to you Oct 24 13:29:43 I'm also not sure what "fw" is. I don't think it's in AOSP, but I haven't updated my codebase in a while. Oct 24 13:30:06 * lov repo syncs Oct 24 13:30:34 lov: short for frameworks, I assume Oct 24 13:30:35 lov fw = frameworks Oct 24 13:30:42 base/packages or base/services Oct 24 13:30:52 that's the question yes Oct 24 13:31:41 lov, and yes, i will use getSystemService() Oct 24 13:31:44 How do I dynamically stop an action mode? Oct 24 13:31:46 any Idea how to set permissions with the new facebook sdk ? I want to add email scope to the /me request of the api Oct 24 13:32:28 ah, I misread what you wrote. Oct 24 13:34:07 Anyway, I don't really know what the differences is between base/packages and base/services, but I'm guessing that packages is more of a 3rd party area where as services is for core services. Oct 24 13:34:42 kobelev: you might want to join #android-platform, though it's a little dead Oct 24 13:34:55 To ensure compatibility with Android 2.2, 3.x and 4.x, should I develop in 2.2, or it is OK to use 4.x? Oct 24 13:34:58 dead like a FOX! Oct 24 13:35:02 lov, thx Oct 24 13:35:04 SrPx: it is ok to use 4.x Oct 24 13:35:29 SrPx: The version of android that your project references is what you compile against. The important parts are targetSdk and minSdk in your manifest. Oct 24 13:35:51 kobelev #android-hack is somewhat alive Oct 24 13:35:54 lov: thanks. I have just developed that first app. It worked fine on my 2.2 phone. But crashed on everything in Xoom (3.2). I'm not sure what to do now Oct 24 13:36:02 Read the docs about backwards compatibility. There's helpful linter annotations such as @TargetApi which helps ensure that you don't expose something for the wrong api level Oct 24 13:36:03 lov: ): Oct 24 13:36:07 lov: ok Oct 24 13:36:43 SrPx: looking at the stacktrace is probably the first step in figuring out why you crashed? Oct 24 13:36:49 <|||||||> lov: I'm a n00b... what's the difference between target and minimum SDK? Oct 24 13:36:59 It's possible that you ran afoul of something like StrictMode Oct 24 13:37:18 minSdk is the minimum level that you declare that you support. targetSdk is the highest level you've tested against. Oct 24 13:37:24 lov: sorry, but how? Oct 24 13:37:31 |||||||: http://developer.android.com/guide/topics/manifest/uses-sdk-element.html Oct 24 13:37:34 SrPx: seriously? Oct 24 13:37:43 lov: yes, I do not know... Oct 24 13:38:00 SrPx: http://developer.android.com/tools/debugging/index.html Oct 24 13:38:05 If you're using eclipse, look at the logcat view Oct 24 13:38:07 if not, adb logcat Oct 24 13:38:13 (preferably adb logcat *:E ) Oct 24 13:38:21 consider also attaching the debugger. Oct 24 13:38:55 <|||||||> <3 eclipse Oct 24 13:39:11 lov - yeah, I'll do that, sooner rather than latter. I'll have to read up on services though, as I have, quite frankly, never even attempted to code one. Oct 24 13:39:22 Tee_Pee: I'd strongly recommend that you learn how to use them. Oct 24 13:39:43 they're pretty much mandatory for making apps that are more than pretty frontends to websites Oct 24 13:39:52 lov: that's what I thought, I didn't know it was called 'StackTrace'. The problem is I have an alarm activating every second and LogCat is being filled with errors coming from it after the app has crashed, I'll deactivate it Oct 24 13:40:03 lov: ty for patience Oct 24 13:40:19 the whole gist of the app is that my server returns JSON responses of images and albums, and the application downloads album and image thumbs, stores them into a SQLite DB and writes them to the filesystem. Oct 24 13:40:20 <|||||||> SrPx: doesn't eclipse filter out everything by your program's name already? Oct 24 13:40:24 <|||||||> if not, you probably should make it do that Oct 24 13:40:32 Tee_Pee: yeah you want a service to handle this. Oct 24 13:40:51 <|||||||> Tee_Pee: Hey, I've been there, tried that... Oct 24 13:41:00 |||||||: my program receives the alarm Oct 24 13:41:57 <|||||||> SrPx: Yeah, umm... in eclipse, in StackTrace, you should probably Oct 24 13:41:57 <|||||||> (1) kill your app and Oct 24 13:41:57 <|||||||> (2) use scroll lock to keep things from moving around while you examine errors Oct 24 13:42:05 lol what with that nick, i cant even type that character on this taiwanese keyboard :) Oct 24 13:42:27 <|||||||> sorry, I'm a jerk... lol Oct 24 13:42:30 lol Oct 24 13:42:45 its ok i dont need to speak to you Oct 24 13:42:47 :) Oct 24 13:43:09 think i just implemented a* and nice bezier curves Oct 24 13:43:14 hehe Oct 24 13:43:26 but i did have to get the pen and paper out! rare that one Oct 24 13:44:14 barbabar, your nick is... lol Oct 24 13:44:23 barbabar, feels very weird heh Oct 24 13:44:41 wei2912: prease exprain Oct 24 13:44:43 a true black sh33p Oct 24 13:44:44 your previous one i meant Oct 24 13:44:55 oh, that. Yeah. I don't know how to pronounce it either... Oct 24 13:45:00 no one's name has 7 pipe symbols Oct 24 13:45:29 its cooler than being called g0d Oct 24 13:45:39 gaz`: https://en.wikipedia.org/wiki/Naming_law_in_Sweden#Protest_names Oct 24 13:45:54 ctcp 'version' to barbabar Oct 24 13:46:04 lol Oct 24 13:46:05 what is that... darn my lack of knowledge of irc Oct 24 13:46:19 ._. sorry wrong channel Oct 24 13:55:05 lov: there's just too many messages on logcat. How can I know what caused the error that crashed the app? Oct 24 13:55:29 SrPx: Are you using the logcat view in eclipse, or are you looking at the command line? Oct 24 13:55:38 If you're using the command line, adb logcat *:E Oct 24 13:55:51 if you're using eclipse, running the app should create a filter that's specific to your process. Oct 24 13:55:52 lov: eclipse Oct 24 13:56:07 If that's not the case, you can always create a new filter, and set log level to "error" Oct 24 13:58:25 lov: but yet there is just too many things going on. http://o7.no/Xfn0d2 the errors continue appearing even after it has already crashed Oct 24 14:01:36 SrPx: Yeah, that'll happen if you test on a real device. You filter by expression, then pause the scrolling. Oct 24 14:01:55 freeone3000: filter by expression? Oct 24 14:02:13 SrPx: ...They just described how. Oct 24 14:02:32 wait Oct 24 14:02:52 They did? Oct 24 14:03:24 Yes. Either you're using Eclipse, which has documentation, IDEA, which has documentation and makes it blindingly obvious, or you're using adb directly, for which instructions were provided. Oct 24 14:03:47 But... I've filtered by 'error' already, what else? Oct 24 14:04:31 I've tried running a virtual device. A black screen with 'android' written appeared but nothing else Oct 24 14:05:10 Is this normal? Oct 24 14:05:22 hello, newbie question here. I want to run a client/server application, where the server is run off of a computer, and the clients are android phones, connected via wifi. whats the best way to do this? Oct 24 14:05:26 SrPx: give it minutes to load Oct 24 14:05:28 SrPx: thats the normal bootup splash screen, just wait for it to finish booting Oct 24 14:05:41 SrPx: unless you have an actual android device, which is usually faster than emulating Oct 24 14:05:45 I've waited a few mintes but OK, I'll try again, thanks. Oct 24 14:05:59 SrPx: ive seen it take 10-20mins to boot at times Oct 24 14:06:04 barbabar: I have but there's this problem with too many error messages so I can't debug Oct 24 14:06:13 and ive found things run much much faster if you use an older version of android, like 2.2 Oct 24 14:06:46 I see Oct 24 14:07:02 SrPx: Filtering by tag. Filtering by "error". Filtering by application. Oct 24 14:07:53 freeone3000: have filtered by application (automatic) and error. Not sure what 'tag' I could filter as I don't know what the error is. I still got this: http://o7.no/Xfn0d2 Oct 24 14:07:59 any ideas? i just want a general idea of where to look Oct 24 14:08:45 SrPx: Exceptions contain "Exception". Errors contain "Error". Oct 24 14:09:23 nktdev: Uh. Exactly like any other client/server TCP app. Oct 24 14:09:46 right i have no idea where to look for this stuff, never done a project like this before Oct 24 14:10:02 if you could jsut give me some terms to google that would be great, or links to other projects hat have done something imilar Oct 24 14:10:41 nktdev: Well, if you remove "android" from the query, you'll get a ton more results. It doesn't matter that the clients are android phones. Oct 24 14:11:20 SrPx: those don't all look like errors Oct 24 14:11:43 SrPx: those don't all look like errors Oct 24 14:11:46 I have a list source shared by activites through mys custom application object. On ListAvtivity_1, I need list all X items in the source and on ListActivity_2 I need to list a subset of Y items. What is the best way to do so? Oct 24 14:12:05 currently I create a sublist and set it as the source for the adapters Oct 24 14:13:11 freeone3000: so once I have established the connection to the wifi network, nothing I am doing is androind-specific? all of it will be using general java code? Oct 24 14:14:15 the virtual device openned but I can't unlock the screen :/ Oct 24 14:14:24 nktdev: Yeah. You need a special permission for use of java.net.Socket, but that's it. Oct 24 14:15:10 freeone3000: okay, thanks! ill look into it. Oct 24 14:15:40 sigh. why are there developers who do not know about switch/case, but are using extensive copy&pasting techniques to duplicate activities? Oct 24 14:24:07 So guys, I think I got the filters right. But I'm getting no error. Just this: http://o7.no/XfwDbs ("Source not found.") How can I find out which line the app crashed? Without writting Log.v("a"); Log.v("b"); etc., one for each line? Oct 24 14:25:29 uh Oct 24 14:25:39 that's just the debugger trying to follow into someplace it doesn't have source for. Oct 24 14:25:43 hmm i think you are doing it wrong.. Oct 24 14:25:45 Look at the logcat output after you crash Oct 24 14:26:03 There will be a big fat red stacktrace Oct 24 14:26:09 There may be multiple stacktraces, in fact! Oct 24 14:26:16 If the stacktrace ends with "caused by" start over there. Oct 24 14:26:32 you can filter it by "warn" too, it would be easier for you.. Oct 24 14:26:33 Usually there will be a stacktrace totally in Android's internals, with a "caused by" that actually mentions your code and the real cause of the crash. Oct 24 14:26:46 mbarisa: there's nothing he wants that will be filtered at WARN Oct 24 14:28:14 ok, sorry then :) Oct 24 14:28:38 ...usually it's the fault of the part in the stacktrace that includes your program's name, eh? Oct 24 14:28:46 it's rarely Google's at least. Oct 24 14:29:07 is it possible to make the device wake from standby by voice? Oct 24 14:29:48 lov: Thank you very much but there's nothing red on the LogCat. Maybe I didn't got the filter right at all...? This is my entire scren, including the filter I'm using http://o7.no/XfyEVl (I'm not filtering for error anymore, there's not that many messages when I found out how to filter by app - I thought that was automatic but it's not) could you kindly give a brief look? Oct 24 14:31:09 SrPx: detach your debugger. Oct 24 14:31:15 You'll get the final stacktrace when you actually crash. Oct 24 14:31:22 not while you're in the process of crashing. Oct 24 14:31:23 SrPx: Quit sending screenshots and get actual text. Oct 24 14:31:44 is there any way to make android wake from standby by voice activation? (like saying a certain word/phrase) Oct 24 14:32:00 regedit: no Oct 24 14:32:01 regedit: not really, no Oct 24 14:32:07 I'm sure you could make it if you felt like nuking your battery life. Oct 24 14:32:16 yeah Oct 24 14:32:19 I mean, yes Oct 24 14:32:23 no Oct 24 14:32:24 you mean yeah Oct 24 14:32:25 battery is not an issue in my case Oct 24 14:32:25 it would be cool though... "Computer, call Momma." Oct 24 14:32:25 but it involves not going into standby Oct 24 14:32:28 keep it straight Oct 24 14:32:28 Samsung has an app for that. And it's enabled by default! Oct 24 14:33:21 if battery is not an issue in my case (always plugged in device) how can i achieve s/t like this? Oct 24 14:33:33 grab a wakelock, never go to sleep Oct 24 14:33:49 huh? Oct 24 14:34:00 acquire a partial wakelock. Start the audio recorder. Implement a TTS engine that can do this on the fly. Oct 24 14:34:05 ==lov Oct 24 14:34:10 If you're looking for Android.wakeUpOnVoiceCommand(), it doesn't exist. Oct 24 14:34:31 lov: I've done that but nothing happened (By "detach your debugger" you mean going to Debug, right clicking and then "Terminate"?) Oct 24 14:34:32 bear in mind that traditional TTS operates over a finite waveform which you send to be processed. Oct 24 14:34:42 SrPx: No, clicking "Detach" not "Terminate" Oct 24 14:34:50 or just try using "run" instead of "debug" when you start next time. Oct 24 14:34:53 ok but then the issue of screen saving comes to mind... can i turn the screen off on my own schedule? Oct 24 14:35:02 no. Oct 24 14:35:12 You can acquire wakelocks which will force the screen to stay on Oct 24 14:35:16 but you can't forcibly turn off the screen Oct 24 14:35:27 I can't find 'detach', but ok I'll run, sorry Oct 24 14:35:40 SrPx: see the big red box up at the top? Oct 24 14:35:45 the one that you press for "terminate"? Oct 24 14:35:46 It's to the right. Oct 24 14:35:57 it's the N shaped button Oct 24 14:36:21 genrally does android expose "lower" control on the device than just java? i.e. os/hardware level stuff? Oct 24 14:36:28 if I have a newby question, where is the best place to post it? Oct 24 14:36:35 regedit: yes and no. Oct 24 14:36:41 IrishGringo: here, or stackoverflow. Oct 24 14:36:44 Ask your question, don't ask to ask. Oct 24 14:37:02 lov: I actually terminated on the 'Debug' tag, but I see it now, thank you very much Oct 24 14:37:07 regedit: The public apis expose some lower level plumbing, but not all of it. Oct 24 14:37:22 My question will need about 300 words... kind of long for here. Oct 24 14:37:33 IrishGringo: consider posting on stackoverflow and posting the link here. Oct 24 14:37:46 lov: and its all java anyway? nothing at the *nix level of the os? Oct 24 14:37:59 lov: thats what I thougth I would do... Oct 24 14:39:17 regedit: if you'd prefer, you can download the NDK and do your development in C and use raw sockets, etc. Oct 24 14:39:26 That said, there are certain things that are exposed to userland and certain things that are not. Oct 24 14:39:45 If you want fuller control, root your device and use su for commands, or create your own firmware. Oct 24 14:40:11 can i then do stuff like turn screen on/off etc? Oct 24 14:40:47 just in case some one can give me a hint on vocabulary... in iOS, there is a TASk called – popToRootViewControllerAnimated: for when your in a navcontroller... It will bring you back to the first view controller in a stack. is there a command or example like this in android? Oct 24 14:41:00 regedit: you can force the screen to turn ON very easily. Oct 24 14:41:13 Forcing it to turn OFF is a different story. Oct 24 14:41:19 lov: so what I'm getting here is that you have a problem, but it's not something breaking... just bad code. Oct 24 14:41:23 Worst kind of problem... Oct 24 14:41:35 barbabar: huh? Oct 24 14:41:49 I've got 99 problems but I don't think I mentioned any here. Oct 24 14:41:55 lov: can it be done at the su/rooted level? Oct 24 14:41:59 IrishGringo: .startActivity(YourMainActivity.class, context); Oct 24 14:42:08 or can someone give me some search terms that may help... Oct 24 14:42:10 thanks Oct 24 14:42:17 regedit: it probably requires a custom firmware. You're basically affecting kernel level behavior. Oct 24 14:42:20 regedit: here's how this works. Oct 24 14:42:24 IrishGringo: Main activity isn't treated special except by the launcher. Oct 24 14:42:34 You can request a screen wakelock. The kernel registers all of these wakelocks. Oct 24 14:42:39 The screen stays on as long as there's a valid wakelock. Oct 24 14:42:52 When there's no longer a valid wakelock, and enough time has elapsed, the screen will turn off. Oct 24 14:42:55 IrishGringo: aah, I was thinking a control on an activity. (activity = window, atl east to me...) Oct 24 14:43:07 This behavior is forcibly overridden when you press the power button Oct 24 14:43:17 does anyone have an example on git by chance? Oct 24 14:43:35 So, if you want to have some way to forcibly turn the screen off, you may or may not be looking at a kernel level change. Oct 24 14:43:47 I just want to go about 6 or 7 windows deep, but beable to pop back to first window Oct 24 14:44:06 Sorry again but I'm getting this error http://pastebin.com/mgMH0wi4 but I can't find the line my app crashed yet. It's ordered by last-call latter, right? So I have to expand that ".... 11 more". How? Oct 24 14:44:08 IrishGringo: you want to control your task stack. Oct 24 14:44:18 lov: but its not only the screen tht turns off, the whole device goes into standby and my voice activation wont be working any more, would it? Oct 24 14:44:20 SrPx: Exceptions are only cut off once they get into internal code. Oct 24 14:44:25 SrPx: Launch.java:82 Oct 24 14:44:41 regedit: wrong. Oct 24 14:44:47 oh? Oct 24 14:44:51 perhaps an example using a button to go to the next screen... which I think is called a task in android Oct 24 14:44:57 IrishGringo: Activity. Oct 24 14:45:04 regedit: You can acquire a partial wakelock which will not keep the screen on, but which will force the processor to stay awake. Oct 24 14:45:20 hm ok... Oct 24 14:45:25 regedit: for an example of this in practice, use Google Nav and turn the screen off. You'll still get turn by turn nav.\ Oct 24 14:45:33 lov: oh thank you very much, I missed that. Just noticed it shows the br.com.~, that's enough thank you very much again Oct 24 14:45:33 buttons open new activities... so I need a way to go back to a specific activity, that happens to be the root. Oct 24 14:45:50 regedit: Read this: http://developer.android.com/reference/android/os/PowerManager.html Oct 24 14:46:12 IrishGringo: There's no real "stack". Activities can be destroyed as soon as they're navigated away from. Oct 24 14:46:13 IrishGringo: http://developer.android.com/guide/topics/manifest/activity-element.html#lmode Oct 24 14:46:16 lov: and with partial wakelock, i can turn the screen ON based on my voice commander? Oct 24 14:46:18 IrishGringo: you probably want singleTask Oct 24 14:46:28 regedit: yes, you can acquire a SCREEN_BRIGHT lock or something Oct 24 14:46:33 IrishGringo, just fire an Intent(foo, FirstActivity.class) Oct 24 14:46:45 regedit: that said, you're probably thinking about the lockscreen. Oct 24 14:46:49 lov: er it points to the end of launch.java :/ Oct 24 14:46:54 IrishGringo, with the NEW_TASK and CLEAR_TOP flags Oct 24 14:47:03 regedit: see Oct 24 14:47:06 http://developer.android.com/reference/android/app/KeyguardManager.html Oct 24 14:47:20 SrPx: that's not really my problem. Oct 24 14:47:29 SrPx: Odds are that you modified Launch.java and forgot to save or something. Oct 24 14:48:18 IrishGringo: Android is a little non-intuitive. You should start with http://developer.android.com/training/index.html if you haven't yet. Oct 24 14:48:20 lov: I know, don't worry. It's weird, but I'll try to figure this out. thank you man Oct 24 14:48:27 so if I want to just goto the previous screen, its the same concept... I just call the previous activity. same concept as the 'startover ' button. Oct 24 14:48:29 you're welcome. Oct 24 14:48:32 lov: well ye about that: i want my app to be perpetually there, showing certain stuff and listening for voice commands. can this exist entirely on the lockscreen? perhaps homescreen widgets? other? Oct 24 14:48:32 god damn it, testers say my app stil lcrashes on 4.0, getSupportActionBar() returns null Oct 24 14:48:33 IrishGringo: yes and no. Oct 24 14:48:37 anyone know how to fix that Oct 24 14:48:43 IrishGringo: Yes, you can use an intent to go to that screen Oct 24 14:48:51 but you might also want to finish your current activity if that's really what you want to do Oct 24 14:48:55 IrishGringo, just call finish() Oct 24 14:49:07 you'll finish your current activity and go to the previous one on the stack Oct 24 14:49:21 gaz`: Use the sherlock theme in your application. Oct 24 14:49:35 yeh but i want to use my own theme Oct 24 14:49:44 can you tell I am an iOS developer??? sorry for the stupid questions... but I thought this would be a good first app. Oct 24 14:50:05 so no one has any sample code on how to do this? Oct 24 14:50:16 freeone3000 what is it a bout that theme that makes it nto crash? Oct 24 14:50:17 we gladly accept ios converts :P Oct 24 14:50:19 IrishGringo: the problem is that iOS isn't android, and the concepts don't directly translate. Oct 24 14:50:25 IrishGringo, you'll find lots of the silly state tracking stuff is handled for you, no need to implement navigation Oct 24 14:50:31 gaz`: It selectively disables the actionbar and the windowNoTitle state where appropriate. Oct 24 14:50:34 IrishGringo: I'd STRONGLY recommend that you do some of the beginner android tutorials, and then start worrying about this. Oct 24 14:50:37 Things will start to click. Oct 24 14:50:42 gaz`: Make your theme extend sherlock's, then, and don't mess with those settings. Oct 24 14:51:13 IrishGringo: go through http://developer.android.com/training/basics/firstapp/index.html and http://developer.android.com/training/basics/activity-lifecycle/index.html , you'll get a better handle on how the UI flow works in Android. Oct 24 14:52:11 thanks freeone3000 Oct 24 14:52:20 thanks Oct 24 14:52:32 how can i make a "perpetual" app/widget/wtvr which outlasts standby/lockscreen etc. unless manually navigted away from Oct 24 14:52:46 regedit: That's a service. Oct 24 14:52:58 regedit: you acquire a wakelock. We've told you this. Oct 24 14:53:05 freeone3000: I always thought there WAS a sort of stack... Oct 24 14:53:14 but i need it to also show stuff to the user Oct 24 14:53:16 there isn't i dont htink so Oct 24 14:53:21 regedit: so? Oct 24 14:53:28 regedit: that's totally orthogonal from your requirement. Oct 24 14:53:34 barbabar: I guess. Doesn't have to be. Something keeps track of the back button's default action, but activities aren't persisted once they're navigated away from. Oct 24 14:53:55 lov: so once lockscreen kicks in (partial wakelock) were out of my app Oct 24 14:54:41 freeone3000: not persisted by default, or can't be persisted at all? D: Oct 24 14:55:03 freeone3000: Kinda get it, kinda afraid to get it... I'm a paranoid Windows programmer... Oct 24 14:55:10 steeped in old ways of thinking Oct 24 14:55:10 unless- maybe there's a way i can implement my entire app on the lockscreen? Oct 24 14:55:41 regedit: no. Oct 24 14:55:49 regedit: you're getting confused. Oct 24 14:55:55 isnt there a way to make custom widgets on the lockscreen? Oct 24 14:56:12 isnt there a way to make custom widgets on the lockscreen? Oct 24 14:56:13 regedit: as of 4.0 yes. Prior to that no, not without hacky behavior. Oct 24 14:56:22 Don't repeat your question because no one answers in 10 seconds please. Oct 24 14:56:30 sorry was mistake Oct 24 14:56:41 my app said the message failed to send Oct 24 14:57:21 so in 4.0 i can do extensive stuff in lockscreen? Oct 24 14:57:37 like voice commands etc Oct 24 14:57:44 barbabar: In practice,they're kept around a bit because forward-back is a common action. There's a phone setting (under "Developers") to disable this. Oct 24 14:57:50 regedit: no. Oct 24 14:57:53 anyone know why disabling the device data encryption is appearing to hang for too long Oct 24 14:57:53 You can provide a remote view. Oct 24 14:58:03 regedit: you're not going to be performing voice commands on the lockscreen itself Oct 24 14:58:14 mrenouf: they're moving to .aar Oct 24 14:58:16 what you'd do is run a service that's constantly recording audio, and which will disable the keyguard Oct 24 14:58:25 regedit: I VERY STRONGLY recommend that you actually try to start learning android before you go any further. Oct 24 14:58:41 In particular, learn about services, and play around with the keyguardmanager and the powermanager Oct 24 14:58:49 freeone3000 i just noticed im already inheriting from the main theme here so it shouldnt crash? parent="@style/Theme.Sherlock.Light" Oct 24 14:59:10 gaz`: Are you theming anything regarding the title screen? Oct 24 14:59:18 no Oct 24 14:59:20 lov: i hear ya, but at the same time i cery much need to find out in advance if its worth it, if some things are possible Oct 24 14:59:23 *title bar, sorry. Oct 24 14:59:31 i dont think so, ill paste on pastebin Oct 24 14:59:31 JakeWharton, like apklib? aar ? woo Oct 24 14:59:55 regedit: The hard part is figuring out how to get a TTS engine to continuously parse audio and recognize a spoken phrase at an arbitrary time. Oct 24 14:59:57 JakeWharton, qq about ABS, 4.2, should I never use forceOverflow? Oct 24 14:59:59 That's going to be the very hard part. Oct 24 15:00:02 You should be investigating that. Oct 24 15:00:16 lov: can i explain some details to you in PM please Oct 24 15:00:17 The built in TTS support involves sending an audio snippet across the internet to a server. Oct 24 15:00:18 mrenouf: correct. it was a bad paradigm from the beginning. I shouldn't have included it Oct 24 15:00:24 regedit: fine Oct 24 15:00:26 regedit: from what I've seen, it's very hard to do anything with a screen that's off. There's a reason nobody's written a program that silences your phone whilst the screen's off; you have to have it on when you flip your phone over, or whatever action... Oct 24 15:00:42 barbabar: er Oct 24 15:00:48 barbabar: Actually, Samsung has one of those. Oct 24 15:00:49 barbabar, partial wake locks, not hard at all Oct 24 15:01:03 barbabar: yeah, you're pretty much dead wrong there. Oct 24 15:01:06 barbabar: ...Samsung actually has an app that does exactly what he's asking for, but they cheated. Oct 24 15:01:34 that said, you have to differentiate between the SCREEN being off and the PROCESSOR being off. Oct 24 15:01:43 The screen being off doesn't mean that the device is actually asleep Oct 24 15:01:46 it just means that the screen is off. Oct 24 15:01:55 However, keeping the processor awake will affect your battery life adversely Oct 24 15:02:09 Samsung's cheat involves running their stuff on the baseband most likely Oct 24 15:02:15 JakeWharton, im debugging an app that breaks on 4.2, it's getting an NPE not finding homeLayout. I think they are doing something wrong-ish with their themes/styles, but did something change in 4.2 around this? Oct 24 15:02:18 freeone3000 do u see any problems there? http://pastie.org/5109400 Oct 24 15:02:54 freeone3000 maybe Theme.paultons.ActionBar.TitleTextStyle? Oct 24 15:03:16 gaz`: And all the other ones that mess with the ActionBar, looks like. I'm guessing at this point. I'd just disable stuff until it works. Oct 24 15:03:40 i really dont get it tho, surely im supposed to customise the actionbar Oct 24 15:03:42 even on 4.0 Oct 24 15:04:01 main issue is i dont have 4.0 so i send to my mates a day later i get back "crashed".. Oct 24 15:04:07 gaz`: If you were using the proper actionbar, sure. You're not. Oct 24 15:04:22 so my apps actionbar will looks different on 4.0? Oct 24 15:04:44 gaz`: The issue is your style is causing the app to *have* an actionbar, which'll disable sherlock's support actionbar, which is causing the method to return null. Oct 24 15:05:05 gaz`: Well, you'd ship the same styles file, so it'll look the same, it just won't look styled. Oct 24 15:05:06 hmm Oct 24 15:05:12 the native action bar is used on Android 4.0 and up Oct 24 15:05:14 spent 2 days on this cant find out a solution Oct 24 15:05:26 he is correctly providing styles for both the compatibility action bar and the native action bar Oct 24 15:05:34 Okay. Then I have no idea what's up. Oct 24 15:06:00 mrenouf: when running on what version of Android? Oct 24 15:06:22 JakeWharton, good question, let me check Oct 24 15:06:33 so any clue JakeWharton? if im correctly doing it hwy is it returning null? or is it meant to? Oct 24 15:06:51 what is returning null? Oct 24 15:06:58 getSupportActionBar Oct 24 15:07:11 on what version of Android? Oct 24 15:07:16 4.0+ Oct 24 15:07:39 JakeWharton, addon_google_apis_google_inc_8 Oct 24 15:07:46 or do i detect os version and avoid any call to supportActionbar ? Oct 24 15:07:52 no Oct 24 15:08:00 that defeats the whole purpose of the library Oct 24 15:08:17 yeh im sjust very confused at this point Oct 24 15:08:23 JakeWharton, https://github.com/JakeWharton/ActionBarSherlock/blob/master/library/src/com/actionbarsherlock/internal/widget/ActionBarView.java#L228 Oct 24 15:08:43 then you're somehow not getting the native action bar. make sure you are targeting API 14+ in your manifest, compiling with Android 4.0 or newer, using a Sherlock style (or as a base), and not disabling the title with any window flags Oct 24 15:09:50 gaz`, use an emulator to test? Oct 24 15:10:05 JakeWharton, could you turn off window_title? Oct 24 15:10:18 in your activity? Oct 24 15:10:19 thanks for the hints dude, first im using and building with 15 (4.0.3).. my theme has parent="@style/Widget.Sherlock.Light.ActionBar.Solid">, and i removed the windows flags yesterday Oct 24 15:10:31 ok, hmmm Oct 24 15:10:41 that worked for me Oct 24 15:10:48 mrenouf emulater good idea, forgot about them lol Oct 24 15:11:05 use the x86 one with GPU acceleration if you want to maintain any sanity Oct 24 15:11:26 i have an htc flyer here actually maybe it has 4.0 available Oct 24 15:11:32 didnt know it existed JakeWharton Oct 24 15:12:01 pacior: the action bar *is* the window title on Android 3.0+ though so it needs to remain enabled Oct 24 15:12:06 JakeWharton, 99% certain it's their theme, something isn't inheriting the actionBarStyle is should, agree? Oct 24 15:12:46 mrenouf: yes! that's probably it. Oct 24 15:13:01 and that's just the first piece of code that is looking for something in the style specified by actionBarStyle Oct 24 15:13:06 JakeWharton: try switching off showing title, it worked for me with sherlock Oct 24 15:13:25 yeh i got rid of all them Oct 24 15:13:53 would help is abs gave u a little error and explained whats wrong Oct 24 15:15:46 ABS is just a dumb wrapper around the native action bar Oct 24 15:15:49 it has no idea what's wrong Oct 24 15:16:02 gaz`: no 4.0 for the Flyer - certainly not officially, and I'm pretty sure there's no unlock for it, or community support generally Oct 24 15:20:51 How do I create a Bundle saveInstance? I have onCreate( Bundle saveInstance ) so I tried doing Bundle newBundle = new Bundle() and passing newBundle into oncreate and I tried just passing null but both times the app just stopped so I'm clearly doing something wrong Oct 24 15:21:12 docmur: override onSaveInstanceState Oct 24 15:25:59 crap Oct 24 15:26:05 waited 20 mins for emu then it says container error Oct 24 15:26:10 how do i use the x86 one Oct 24 15:27:52 im testing directly on the device but everytimemy app crashes the whole system freezes and i have to reboot. does anyone know a fix? Oct 24 15:28:29 pacman_: I'm curious how you managed to do that. Oct 24 15:28:53 pacman_ is it using the camera? Oct 24 15:29:00 freeone3000: I know Samsung HAS a flip-to-silence feature, I'm just pretty sure it doesn't work when the screen's off... Oct 24 15:29:48 barbabar: It does. Oct 24 15:30:02 .w. Oct 24 15:30:07 gaz: yes but it has been crashing since the first steps even before i included the camera flash Oct 24 15:30:14 I'm guessing either accessibility hack, or because it's a system app Oct 24 15:30:20 barbabar: System app. Oct 24 15:30:23 well, for Samsung at least it's a system app. Oct 24 15:30:25 barbabar: Actually, firmware feature. Oct 24 15:30:39 I downloaded a couple of those after I discovered it, they need teh screen on Oct 24 15:30:50 not a major requirement if you're in the midst of being telephoned, but still... Oct 24 15:30:58 pacman_ ive crashed cam in my code a few times that messes with device Oct 24 15:34:25 gaz: it crashes with all kind of normal stuff. and when i do something that involves the flash (thats the only part of te camera i use) it is working Oct 24 15:34:56 i guess it is a system wide problem Oct 24 15:35:39 some other apps made the device freeze too Oct 24 15:36:07 at least i know it is not intended to crash the whole system Oct 24 15:36:28 well it didnt crash on the emu! Oct 24 15:36:35 maybe my mate is so dumb hes using old version Oct 24 15:37:58 also i see no crash adb says a few of these ow it is not intended to crash the whole system Oct 24 15:37:58 * vklimkov__ (~vklimkov@ Oct 24 15:38:11 whoops Oct 24 15:38:19 Wrote stack traces to '/data/anr/traces.txt' Oct 24 15:38:24 does that mean it crashed? Oct 24 15:38:31 even tho i see how message on the screen saying it did Oct 24 15:39:14 How have you been doing this for 5 years and not know what an ANR is Oct 24 15:39:23 i know what it is Oct 24 15:39:41 but if it doesnt kill my app i dont care Oct 24 15:39:45 just wondering why logcat says that Oct 24 15:39:51 i'm off, thanks a lot lov Oct 24 15:40:30 i thought it was supposed to bring up a wait/force close thing u see Oct 24 15:40:37 prob ujust em being slow Oct 24 15:40:38 emu Oct 24 15:40:45 You're literally the worst developer, you know that right Oct 24 15:40:50 haha Oct 24 15:40:53 no im not at all Oct 24 15:40:57 im a decent developer Oct 24 15:41:05 its just u Oct 24 15:41:09 youre a freakin weirdo Oct 24 15:41:21 gaz`: you're a what? Oct 24 15:41:31 drunken reprobate, more like... Oct 24 15:41:33 a semi decent developer Oct 24 15:41:39 keep going. Oct 24 15:41:40 certainly not as bad as vol paints :) Oct 24 15:41:51 Chuckie Egg Oct 24 15:41:55 lol! Oct 24 15:41:59 u remembered, Oct 24 15:42:13 rained off any more major sporting events recently? :P Oct 24 15:42:19 lol Oct 24 15:42:24 what's preferred to use for audio for C++? OpenAL? SDL? something else? Oct 24 15:42:41 no Leeds next 2 went well! Oct 24 15:42:49 working on Alton Towers app now :) Oct 24 15:44:05 more like fawlty towers amirite Oct 24 15:44:15 ive also won software development competitions and awards so i know lov cant be right :) Oct 24 15:44:24 and have 2 degrees in it! lol Oct 24 15:44:46 just cause i dont sit aroudn thinking in haskell and talking about russels teapot doesnt make me a bad dev Oct 24 15:44:56 still living in an illegal shack, hiding from the tax authorities? ;) Oct 24 15:45:04 sure Oct 24 15:45:05 hehe Oct 24 15:45:10 good! Oct 24 15:45:23 gonna build a computer desk here this week in my living room Oct 24 15:45:24 gonna be sweeet Oct 24 15:45:44 no one does C++ for android here? Oct 24 15:45:45 got my 2 hdtvs as monitors :) Oct 24 15:46:10 Codhisattva: some people do, but not many Oct 24 15:46:19 Codhisattva: the NDK docs should discuss what to use. I think OpenAL? Oct 24 15:47:26 <|||||||> Codhisattva: never really had a use for it... I'm a n00b like that ;.; Oct 24 15:47:38 how to implement fmemopen in android ndk?? Oct 24 15:47:47 anyway seems to work on my 4.0 emu, now i have beer to drink, just to live up to my rep Leeds hehe Oct 24 15:47:48 lov: thanks - docs are weak. experience is awesome :) Oct 24 15:48:06 I've just had my bedtime guava tea Oct 24 15:54:14 Leeds haha, Oct 24 16:00:07 hmm now theres a red cross when i try to launch my app from eclipse Oct 24 16:00:19 humanitarian aid Oct 24 16:00:24 hehe Oct 24 16:00:27 make an app for them Oct 24 16:00:33 yeh but whys that its implying my os is too low Oct 24 16:00:38 but it was workign fine earlier Oct 24 16:10:29 has anyone tried using the headset button as RPM meter? Oct 24 16:11:54 as a what meter? Oct 24 16:13:14 You want to see how fast you're spinning? Oct 24 16:13:46 headset button? Oct 24 16:14:05 rpm, tacho Oct 24 16:14:18 you're thinking of modified firmware? Oct 24 16:14:19 er Oct 24 16:14:20 hardware Oct 24 16:14:35 as in sending pulses to the headset button? Oct 24 16:14:53 no, i connected the play/pause button of the headset to the reed relay in my bikes sensor Oct 24 16:15:00 maraz, yes Oct 24 16:15:15 but using standard firmware Oct 24 16:15:35 TheFred: I would expect that except for very low speeds, it would be inaccurate Oct 24 16:15:47 and once you reach a certain speed you probably wouldn't get more than a certain RPM. Oct 24 16:15:52 as i feared, thanks lov Oct 24 16:15:53 not to mention that "reading" it would be impossible Oct 24 16:16:05 I'd really recommend that you figure out a different route. There's the ADK stuff which might be more useful. Oct 24 16:16:05 you can't get low level access to the button itself, only the action it's hardcoded to trigger Oct 24 16:16:35 which means there is probably a very variable delay Oct 24 16:16:41 lov, thanks for suggesting the ADK Oct 24 16:17:12 ah, the good old "Android Development Kit" Oct 24 16:17:21 maraz, from measurements here, the dwell time is around 1/4 sec Oct 24 16:17:56 is it stable? Oct 24 16:18:19 as in not blocked by other processes Oct 24 16:18:39 maraz, to what are you refereing to? Oct 24 16:18:59 the ADK, my project, or the signal pulse? Oct 24 16:19:11 is there a change in the delay when something else on the phone is doing something? Oct 24 16:19:36 no - it seems constantly to react to any pulse longer than 1/4 sec Oct 24 16:20:17 which is too slow for using as a trip computer app Oct 24 16:20:26 i guess you could use a shift register to skip pulses Oct 24 16:21:17 for example, only send every 8th or 16th pulse to the phone Oct 24 16:22:12 the choices i get are: action_down, keycoe_headset,action_multiple, action_up Oct 24 16:22:59 maraz, yes i can filter it no problem, its just finding a way of getting my java to listen to pulses rather than key events Oct 24 16:23:08 that's not going to happen. Oct 24 16:23:20 as i feared.... Oct 24 16:23:26 well, i don't know about NDK Oct 24 16:23:44 that IS my next target for investigation Oct 24 16:24:29 where is NDK discussed again? Oct 24 16:25:16 no where as far as I can tell ;) Oct 24 16:25:49 I think coders interested in the NDK are still trying to get a build environment set up Oct 24 16:27:23 I have listview, and its detail view. I need to scroll it vertically and need to have swipe-right to go back as well. How can I do this? Oct 24 16:28:41 How about using ViewPager? Oct 24 16:38:56 I put my stack trace at the top, http://paste2.org/p/2376251, I'm getting a illegealstateexception with the detail message "no activity" that is being thrown from onCreate(), I think I've messed by my onSaveInstanceState overload but I'm not entirely sure, can anyone see what would throw that exception, what I'm trying to do it so append a searchBar created by searchBar.onCreate() to a new sceen Oct 24 16:49:45 I found why I couldn't use the virtual device. It does not work on MBP retina. It gets confused with screen coordinates. Can be solved by using third pard app to set the screen dimensions to non-retina Oct 24 17:09:42 http://paste2.org/p/2376251 appeneded with saveInstanceState Oct 24 17:12:43 Hi Oct 24 17:13:34 I am curious to know, is IMDB's android app built using the native sdk, or an html framework? Oct 24 17:14:32 I'd like to learn to build a guy like their app Oct 24 17:15:31 Could be either. Doesn't matter, really. Oct 24 17:28:51 When my application is started via AlarmManager, and I'm going to do a network sync, must I acquire a wakelock? Oct 24 17:30:34 freeone3000: yes. Oct 24 17:30:51 freeone3000: you're only guaranteed that the device will stay alive until your broadcast receiver returns Oct 24 17:31:15 freeone3000: take a look at https://github.com/commonsguy/cwac-wakeful Oct 24 17:32:47 lov: Thanks. Oct 24 17:34:02 Hey guys, in our iPhone app we use Significant Change (cell phone tower changes) to fire up region monitoring. We are trying to do the same with Android. There is TelephonyManager PhoneStateListener.LISTEN_CELL_LOCATION, but it doesn't run when the phone is asleep, and honestly I don't want to keep the phone from sleeping - seems like a big battery drain. Are there any other low battery use methods to detect if a user is movin Oct 24 17:34:02 not? I could set a timer to fire the gps every 10 minutes or so, but I don't like that idea either. Oct 24 17:34:42 roler: When registering a LocationCHangedListener with a LocationManager, you have two parameters - minimum time and minimum distance. Oct 24 17:34:47 roler: Set as appropriate. Oct 24 17:35:32 roler: Basically no. Oct 24 17:35:56 I'm getting a java.lang.IllegalStateException: No Activity" thrown from my onCreate( Bundle savedInstanceState ). my code checks savedInstanceState for null and then calls super.onCreate with null or savedInstanceState, in both cases I'm getting this exception, what does it mean, I have a stack trace available also that I can't figureo ut Oct 24 17:36:03 the requestLocationUpdates call with a pendingintent that freeone3000 mentioned is a decent idea Oct 24 17:36:07 but it does involve waking the phone up Oct 24 17:36:44 yea… Oct 24 17:36:57 well Oct 24 17:37:03 the phone's gonna wake up when you get your callback no matter Oct 24 17:37:05 *no matter what Oct 24 17:37:14 at least with LocationManager you won't be constantly calling this. Oct 24 17:41:05 right Oct 24 17:41:40 so locationManager (with normal gps requests) will wake the phone up Oct 24 17:42:37 Yes. Oct 24 17:43:09 seems intensive, but this is an opt in feature of our app. So, it's really up to the user. that may be the ticket Oct 24 17:44:12 I'm writing something that, in Windows, would be a Scheduled Task. I want set up a daily sync of a remote service to phone local memory. I want to make this an option to be wifi-only, or network attached. How many broadcastrecievers do I need? Oct 24 17:45:17 So far I'm thinking BOOT_COMPLETED, to set up the initial AlarmManager, one for Wifi state, in case there's a queued sync delayed due to lack of wifi. Is this it? Oct 24 17:47:09 roler: I'd recommend that you use NETWORK requests instead of GPS Oct 24 17:47:15 those are based on wifi and cell tower location changes Oct 24 17:47:34 i think that's what I want! Oct 24 17:47:42 freeone3000: That's probably appropriate. Oct 24 17:48:15 lov: Thanks. Oct 24 17:49:58 any kindle fire HD guys out therE? Oct 24 17:50:33 why don't you just ask your actual question? Oct 24 17:51:33 developer opt ions, strict mode on Kindle Fire HD - how to enable it Oct 24 17:51:34 ? Oct 24 17:51:50 Kindle's lovely OS layer makes developer options harder to find. trying to enable strict-mode. Oct 24 17:52:16 can you enable it on device using ADB ? Oct 24 17:52:38 Is this the channel for android app developing? Oct 24 17:52:55 Why do i need to install ADT-20.zip ? Oct 24 17:53:03 What is ADT for? Oct 24 17:53:04 tintin: you don't need to Oct 24 17:53:13 evancharlton: Why don't i need to ? Oct 24 17:53:16 tintin: it's the eclipse plugin to make android development easier if you use eclipse Oct 24 17:53:19 freeone3000, sorry maybe I didn't but I thought I did, the excepption is java.lang.IllegalStateException no activity Oct 24 17:53:19 you don't need to use eclipse, though Oct 24 17:53:29 The link was: http://paste2.org/p/2376251 Oct 24 17:53:34 tintin: i didn't need to Oct 24 17:53:51 evancharlton: How does it make easier? Oct 24 17:54:05 because it provides eclipse integration Oct 24 17:54:06 I'm using eclipse now. Oct 24 17:54:09 docmur: That's not a complete class. Oct 24 17:54:10 ah, eclipse stuff Oct 24 17:54:35 Is it possible to do android developing using netbeans? Oct 24 17:54:48 tintin: Yes, but it's a pain. IDEA is easier. Oct 24 17:55:02 strict mode on kindle fireHD? any one? Oct 24 17:55:03 adouble: that I don't know, sorry. Amazon does try to lock that down. Oct 24 17:55:11 freeone3000: What do you mean by IDEA? Oct 24 17:55:13 gotcha. thanks for the reply. Oct 24 17:55:26 tintin: Jetbrains IntelliJ IDEA. Whatever they're calling it now. Oct 24 17:55:44 What's wrong with eclipse? Oct 24 17:56:05 Slow. Crashy. Poor maven support. Oct 24 17:56:39 I just extracted the android-sdk-linux.tar.gz and set the sdk path from eclipse, do i have to do anything else? Oct 24 17:56:39 tintin, you can also use any text editor (like sublime text 2) and command line Oct 24 17:56:46 http://pastebin.com/UYDBvq6u, Class one is a search bar, I'm trying to show the search bar that Class 1 creates in onCreate in class 2 when the user selected search in the menu on line 459 Oct 24 17:57:14 sulaiman: Are you sure? Oct 24 17:57:53 tintin, yes, i read how to do it from the official guide Oct 24 17:57:56 hey tintin Oct 24 17:57:57 http://developer.android.com/sdk/installing/index.html Oct 24 17:57:59 how about you read that. Oct 24 17:58:01 When ADT is installed where does eclipse put the content of ADT ? Oct 24 17:58:20 tintin: I'd strongly recommend installing the ADT via eclipse's add software menu Oct 24 17:58:20 tintin: In its eclipse plugins directory, with the other eclipse plugins. Oct 24 17:58:26 see http://developer.android.com/sdk/installing/installing-adt.html Oct 24 17:58:48 After setting path for sdk from eclipse , i checked the android-4.0 google api and installed it, Oct 24 17:59:22 What else do i have to do? Oct 24 17:59:54 tintin, create an android project, i guess Oct 24 18:00:04 Without ADT how do you create gui buttons? Oct 24 18:00:16 by writing XML Oct 24 18:00:22 *gasp* Oct 24 18:00:33 nooooooooo Oct 24 18:00:35 ABS, ShareActionProvider. I've got my share action button, I'm calling provider.setShareIntent but it's not clickable. Any ideas? Oct 24 18:01:32 tintin, you can also create the guy programmatically Oct 24 18:01:47 gui* Oct 24 18:01:53 Is ADT only for gui buttons, textbox etc .. ? Oct 24 18:02:08 tintin, no. it does a lot more Oct 24 18:02:14 ADT-20.0.3.zip , i tried to install it from eclipse>Help>install new software Oct 24 18:02:28 But got error message => https://gist.github.com/3947724 Oct 24 18:02:38 mrenouf|work: What else does ADT do? Oct 24 18:02:51 tintin, add location "https://dl-ssl.google.com/android/eclipse" Oct 24 18:02:54 tintin, why don't you use an http source to download it Oct 24 18:03:30 Because the download speed is slow here Oct 24 18:03:33 there are dependencies on other eclupse stuff that it might need, so best to let eclipse install it from the update site Oct 24 18:03:50 tintin, its not any slower, it still has to download the same files Oct 24 18:03:55 What's wrong installing from ADT-20.0.3.zip ? Oct 24 18:04:11 eclipse prompts to install dependencies during installing adt Oct 24 18:04:28 um, it looks like it's already installed ?! Oct 24 18:04:47 Where does it install ADT? Oct 24 18:04:54 Where can i get the content of ADT ? Oct 24 18:05:02 Is it installed in eclipse/ folder? Oct 24 18:05:14 you have an AVD manager button and SDK update tool icon in the toolbar? Oct 24 18:05:47 YOu should also now have Window|preferences|android config options Oct 24 18:06:38 so even if you're not editing gui elements, ADT assists in generating resource constants, so you can reference layouts, images, strings, etc Oct 24 18:06:50 without that you have to manually run aapt Oct 24 18:07:42 not that the UI editors aren't also worth using. they are fantastic Oct 24 18:08:19 Is installing ADT a time-consuming task? Oct 24 18:08:38 no, you seem to already have it installed based on your gist Oct 24 18:09:17 Does SDK install ADT by default? or is there any option in SDK to install ADT ? Oct 24 18:09:17 ActionBarSherlock, ShareActionProvider. I've got a share action button, calling provider.setShareIntent but it's not clickable. Any ideas? Oct 24 18:10:35 What is Android sdk platform tools? Oct 24 18:11:00 tintin: google has made an amazing search engine Oct 24 18:11:09 indeed, they also have search functionality on developer.android.com! Oct 24 18:11:16 http://developer.android.com/tools/help/index.html Oct 24 18:11:19 I highly encourage you to check it out Oct 24 18:12:24 Ahh, never mind, I figured out my share action provider thing. If there are no apps to handle the intent, it remains disabled. Oct 24 18:13:38 I wish I could tailor the content to share based on where it was going Oct 24 18:14:00 Is there some cryptographically strong seed in Android(In native code)? Oct 24 18:14:16 yeah, for example using ACTION_SEND, i might want to limit the extra to 160 chars or something Oct 24 18:14:37 when i install google api 4 - api-16 from eclipse sdk manager, i see a folder in android-sdk-linux/platforms/android-16 Oct 24 18:14:38 there is onShareTargetSelected, I think you can modify the intent, but I haven't tried it yet Oct 24 18:14:47 Is it the latest android google api ? Oct 24 18:14:51 android-16 ? Oct 24 18:15:08 tinti, you ask a lot of questions. have you looked at http://d.android.com yet? Oct 24 18:15:26 there happens to be a detailed list there Oct 24 18:15:49 But i got android-sdk-windows/platforms/android-2.0 from other's sdk collection, why? Oct 24 18:15:57 hello; any of you happen to have suggestions for a free/low-cost icon pack? Oct 24 18:16:28 glypish and android-icons are both nice, but they're both $25 and i'm concerned that there's significant overlap...not to mention that many in the android-icons pack look suspiciously like the built-in ones... Oct 24 18:17:06 androidicons.com is great. And you're complaining about $25? ಠ_ಠ Oct 24 18:17:09 didn't cost you at least that much to register to publish apps? is that really a lot? Oct 24 18:17:10 I installed it from Android 4.1.2 (API 16) , is it the latest? Oct 24 18:17:11 talking about icons, wtf ever happened to inkscape -- seemed like they havent had a release in a looong time Oct 24 18:17:17 not like they dont have bugs to fix :/ Oct 24 18:17:37 g00s, latest build on Ubuntu 12.10 is crashy for me Oct 24 18:17:55 i love inkscape, but they cant run a project Oct 24 18:17:59 which is really bad for creativity Oct 24 18:18:06 Can anyone answer my questions? Oct 24 18:18:06 i imagine :/ Oct 24 18:18:14 I put everything together in one post, the code is at the top, the two classes. I'm pretty sure the issue is happening when I make the onSaveInstnaceState at line 456. I'm trying to call onCreate() from the first class in the second class. http://paste2.org/p/2376544 Oct 24 18:18:40 tintin, Yes. API 16 is latest. Now please go read the developer information. People worked really hard to make that for you to read. Oct 24 18:19:46 tintin: if they're thoughtful and not easily answered by a simple web search, we will. Oct 24 18:19:46 evancharlton: you're right, $25 isn't bad. i'm a starving graduate student, though, heh Oct 24 18:20:10 tintin: there are some nice, detailed instructions on how to install the SDK on d.android.com Oct 24 18:20:13 evancharlton: so in your opinion is there much overlap between androidicons and the default android ones? Oct 24 18:20:16 hi Oct 24 18:20:17 Escherial: find a starving graduate art student and convince them it'll boost their portfolio Oct 24 18:20:42 evancharlton: heh :D frankly, i'd design my own icons if i had the time. i love icons. Oct 24 18:20:46 Hi, I have been trying to register as a developer on google play for almost a week. But everytime, I move on to Developer Distribution license page it says "404 not found error" Oct 24 18:20:48 (or skill, for that matter :P) Oct 24 18:20:58 This page too says the same: http://play.google.com/about/developer-distribution-agreement.html Oct 24 18:21:32 I belong to India, if that matters (since Google has recently allowed paid apps on play) Oct 24 18:21:34 akssps011_: it might be because the play store hit its app limit Oct 24 18:21:40 XD Oct 24 18:22:27 g00s: really ? :O Oct 24 18:22:34 no, just kidding >.> Oct 24 18:23:16 does that developer distribution agreement shown for you ? Oct 24 18:23:22 s/does/Is Oct 24 18:23:23 akssps011_: yes Oct 24 18:23:24 yes Oct 24 18:23:33 maybe you have a bad proxy config Oct 24 18:23:38 lol this is funny Oct 24 18:23:45 404 for me and I'm from India too Oct 24 18:23:54 akssps011_: for future reference http://www.downforeveryoneorjustme.com/ Oct 24 18:23:55 Someone's messing things up here Oct 24 18:24:09 g00s: thanks Oct 24 18:24:16 g00s: that doesn't check 404s, no? Oct 24 18:24:22 seems that the recent policy change is yet to take effect then Oct 24 18:24:38 evancharlton: ah, no … yeah Oct 24 18:25:05 akssps011_: no, we registered fine a few hours after the announcement came in Oct 24 18:25:05 mrenouf|work: wrong tinti :) Oct 24 18:25:14 Something else is wrong Oct 24 18:25:38 hmm..I have been seeing this error for at least 3 days Oct 24 18:25:55 Is it must to install system images from sdk manager? Oct 24 18:26:01 that is over 300MB Oct 24 18:26:12 no Oct 24 18:26:13 that is time-consuming to download Oct 24 18:26:22 evancharlton: no for what? Oct 24 18:26:36 for what you asked Oct 24 18:26:57 lol Oct 24 18:27:44 evancharlton: no means i don't have to download system images? Oct 24 18:27:49 correct Oct 24 18:29:25 evancharlton: What do you install to start a hello world android app from eclipse? Oct 24 18:30:12 tintin: start here - http://developer.android.com/training/basics/firstapp/index.html Oct 24 18:30:15 read it all Oct 24 18:30:18 follow it all Oct 24 18:31:34 Ok, so issues page is saying we know some of you might have registration problems. And one on one contact is for Registered Developers only. So I am left to check the console every now and then :/ Oct 24 18:31:54 i have installed Android SDK tools and Android SDK platform tools, and android api 4.1.2(API 16) , do i need anything more? Oct 24 18:31:56 evancharlton: ^ Oct 24 18:32:53 hey tintin Oct 24 18:33:22 lov: there seems to me an API for turning speech into text, something about 'RecognizerIntent' Oct 24 18:33:34 lov: he love Oct 24 18:33:41 regedit: Yeah, there is. The problem is that it doesn't run continuously. Oct 24 18:33:51 It works by capturing an audio sample and sending it to google's servers. Oct 24 18:33:53 lov: Where has e gone from lov ? Oct 24 18:34:05 tintin: have you looked at any of the links we gave you? Oct 24 18:34:41 lov: can the "capturing an audio sample and sending it to google servers" part be coded manually? Oct 24 18:34:52 no. Oct 24 18:35:10 lov: Yes, i have looked and install sdk , i think Oct 24 18:35:21 i see (why not?) Oct 24 18:36:07 regedit: feel free to dig through and play around. I could be wrong. Oct 24 18:36:54 if I have a listview, how can I keep track of the highlighted item of the list ? ? Oct 24 18:36:58 i still have a problem of finding useful speech samples among continuous audio input.. Oct 24 18:37:27 right. Oct 24 18:37:30 It's not a simple problem. Oct 24 18:38:15 there can be an 'initiating' sound, like saying "ping!" or somesuch Oct 24 18:38:18 can i install something seperately instead of install from SDK manager? Oct 24 18:38:48 Like Extras>Android support library Oct 24 18:39:52 * regedit ponders about voice activated voice actions Oct 24 18:40:15 tintin: dude, just read that page and follow everything it says. Seriously. Every word of it. Even click the "Start first lesson" link at the bottom! Oct 24 18:41:15 yes, this. tintin: Please just start exploring the android documentation instead of asking us everything that pops into your mind. Oct 24 18:41:15 Why am i getting error? import android.support.v4.view.ViewPager; Oct 24 18:41:21 because god hates you. Oct 24 18:41:23 can't resolve ViewPager Oct 24 18:41:32 your very existence is a blight upon the world Oct 24 18:41:39 I hope this answers your question Oct 24 18:41:40 I created a sample project from eclipse Oct 24 18:41:53 tintin: go. through. the. documentation. Oct 24 18:42:00 I think, i have installed android support api Oct 24 18:42:08 you obviously missed something Oct 24 18:43:06 lov: hey check this out: ACTION_VOICE_SEARCH_HANDS_FREE Oct 24 18:46:09 lov: is that not the answer to my prayers? Oct 24 18:47:11 I've tried way too many things... I want to download a file with DownloadManager, but this line is raising an exception: request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, "pid.gif"); , the exception is java.lang.IllegalStateException: Unable to create directory: /mnt/sdcard/Download . Any idea ? Oct 24 18:48:01 SrPx: do you have ? Oct 24 18:48:49 Frigolit: yes, under tag, right? Not under the activity tag Oct 24 18:48:59 yep Oct 24 18:50:09 regedit: probably not. Oct 24 18:50:21 well, possibly. Oct 24 18:50:25 Investigate it, see how it works. Oct 24 18:50:35 It sounds like, for your usecase, you might want this to listen for hours at a time. Oct 24 18:50:40 evancharlton: What are you doing now? Oct 24 18:50:48 Perhaps it's something with the folder? I could use another folder that it will not complain. Is there a default download directory on Android? If I could retrieve that later on that would work too... Oct 24 18:50:51 Is learning android app developing hard ? Oct 24 18:50:57 well for you it obviously is. Oct 24 18:51:05 for the rest of us who take 5 minutes to rtfm, no,. Oct 24 18:51:17 lol Oct 24 18:51:35 lov: Where has e gone from love ? Oct 24 18:51:36 SrPx: is the external storage actually present? Oct 24 18:51:58 tintin: we're making lov consider changing his nickname to hat Oct 24 18:52:13 tintin Oct 24 18:52:17 I'm going to say this once more, gently. Oct 24 18:52:28 You need to stop asking us every question that pops into your head, and try to do a little research on your own first Oct 24 18:52:38 the documentation on d.android.com is VERY thorough. Oct 24 18:52:47 lov: a loop that keeps grabbing some sound should do? Oct 24 18:52:47 do you understand this? Oct 24 18:52:54 Yes, i'm reading documentations for andoid Oct 24 18:52:56 * Looney votes in favour of SrPx Oct 24 18:53:03 regedit: possibly. Give it a try. Oct 24 18:53:14 lov: we should just code up a bot that looks for obvious questions and replies to newbies with privmsgs ;) Oct 24 18:53:25 ... the google url, naturally. Oct 24 18:53:34 also known as lmgtfy.com Oct 24 18:53:42 We really do need an answerbot like other channels Oct 24 18:53:44 but Oct 24 18:54:11 !roulette Oct 24 18:54:15 :D Oct 24 18:54:27 supybot is easy to extend Oct 24 18:54:48 lov: "/msg nickserv info lov" says you are not registered user, why? Oct 24 18:55:39 please go away forever. Oct 24 18:55:47 lol Oct 24 18:55:57 lov: I'm not sure what it is - I'm using the virtual machine - I just want to download a file to a location that I can know later on (to open it when I receive the download_complete broadcast). So I download it to say /something/i/know/myfile.bla , then I open it when I receive the download_complete broadcast with new File("/something/i/know/","myfile.bla") ... I've tried to do this in many ways like using downloadManager's openDown Oct 24 18:56:31 Joke of the day: do you know the difference between India and Java? Oct 24 18:56:41 lov: I also tried guessing the default download directory later on with some constants I've been googling, and even from some classes, but my attempts failed (new File(my_attempt...).exists() always returning false) Oct 24 18:56:42 Java has garbage collection! Oct 24 18:56:53 hah Oct 24 18:56:55 luyang: ): Oct 24 18:56:55 luyang: People take Java seriously? Oct 24 18:56:57 * Hodapp runs Oct 24 18:56:58 Loonacy: hi, what? Oct 24 18:57:34 Hodapp: are you kidding me man... Oct 24 18:57:45 Hodapp: what's your native programming language? Oct 24 18:58:05 luyang: he was asking the joke , he meant people don't take india seriously Oct 24 18:58:47 SrPx: Ah... OK I was referring to stuff like http://www.guardian.co.uk/environment/2012/aug/01/india-cities-drown-sewage-waste Oct 24 18:59:37 wow. Oct 24 19:00:05 yeah Oct 24 19:00:59 why dosnt the government clean up? Oct 24 19:01:31 tech1: like lots of the world, corruption and incompetence Oct 24 19:02:12 yeh. but usually people would stage protests or something.... maybe the poor people like to scavange the garbage or something Oct 24 19:03:01 human recycling Oct 24 19:03:37 tech1: have you read about the ship-breaking yards in Alang? Oct 24 19:03:45 nm, ot Oct 24 19:03:56 no i dont think so Oct 24 19:04:05 yeh nm Oct 24 19:04:12 back to work :] Oct 24 19:06:31 Hello, I can't input from laptop's keyboard to AVD. Oct 24 19:08:11 I need your help, guys. Oct 24 19:09:04 use the onscreen keyboard ? Oct 24 19:09:54 doogan: so, only onscreen keyboard is working, but it's realy uncomfortable. Oct 24 19:16:43 Hi, i have a question , can i ask it now? Oct 24 19:16:58 Trying to create a device, got error, emulator: ERROR: This AVD's configuration is missing a kernel file!! Oct 24 19:17:28 how the fuck Oct 24 19:17:31 .. Oct 24 19:23:13 tintin: have you googled and tried http://stackoverflow.com/questions/9712605/emulator-error-this-avds-configuration-is-missing-a-kernel-file Oct 24 19:26:22 [2012-10-25 01:24:25 - SDK Manager] Unable to find a 'userdata.img' file for ABI armeabi to copy into the AVD folder. Oct 24 19:28:45 tintin is taking years off of my life Oct 24 19:29:06 /kick Oct 24 19:29:22 evancharlton: is tintin wasting your time? Oct 24 19:29:23 any of you happen to know if it's a total pain to display and maintain the contents of two separate tables in a single listfragment? Oct 24 19:29:46 btw why is Android considered so much harder to develop for than iPhone? Oct 24 19:29:48 * lut4rp senses a troll in the Force. Oct 24 19:29:56 i'm considering merging the two tables since they have quite a bit in common (they're a table of call events vs. text events, with the only difference being that call events have a duration) Oct 24 19:30:18 luyang: device diversity? Oct 24 19:30:25 luyang: that's a bit of a leading question, no? Oct 24 19:30:48 android also supports a much more integrated model for applications in the OS, whereas iOS apps are largely monolithic with a single entrypoint Oct 24 19:30:57 Escherial: 2 tables? are you going to do a join first ? Oct 24 19:31:33 g00s: ah, that's not a bad idea...having to hardcode joins and then figure out sensible URIs makes my head hurt, though :\ Oct 24 19:31:45 Escherial: no I've just read that people think it is easier to develop for iPhone... I've never written apps for iPhone so I don't know where the hard part is in Android. I was thinking of a more complex api and having to handle things more manually, etc? Oct 24 19:31:47 sounds like your data model needs refactoring Oct 24 19:31:51 meh, i'll just make them one table; it's a silly question Oct 24 19:31:54 luyang: all that stuff is discussed in #2,000 Oct 24 19:31:59 regedit: mabe Oct 24 19:32:04 lut4rp: what? Oct 24 19:32:06 agreed, but i'm sure you know the impedance of doing that when there are multiple places where code needs to change Oct 24 19:32:21 The Android vs iPhone stuff Oct 24 19:32:29 #2,000 is the place to be, folks! Oct 24 19:32:31 luyang: its difficult to answer in general; if you have a need for an api and it doesnt exist on one platform; that makes that platform kinda harder :) Oct 24 19:32:37 lut4rp: that's not a channel Oct 24 19:32:41 'course it is Oct 24 19:32:59 g00s: yes but I've read some interview before where an app dev said it was harder to develop for Android Oct 24 19:33:14 luyang: you can interview me and I'll say that iOS is harder. It's a stalemate! Oct 24 19:33:22 evancharlton: :) Oct 24 19:33:35 cool, ThoughtWorks Oct 2012 technology radar . http://www.thoughtworks.com/articles/technology-radar-october-2012 Oct 24 19:35:04 I wish I could remind myself of that app development interview. He said his favourite app was spotify, etc Oct 24 19:35:27 heh, maven is on hold. haha Oct 24 19:35:29 i wish i'd done more iOS development so i had a more informed opinion Oct 24 19:36:01 Escherial: then do more iOS dev :) Oct 24 19:36:04 i feel that a lot of the trouble people experience is just that they're not very acquainted with the idea of an app being a loosely bound collection of components rather than something with a main() function that just starts running when the app is launched from a single place Oct 24 19:36:10 heh, the cost of entry is somewhat high :) Oct 24 19:37:14 I think the great thing about Android is the loose coupling with intents! Oct 24 19:37:31 The bad part is the navigation with Up/Back confusion Oct 24 19:37:54 AND the fact that the Action bar hasn't gotten into the Support Library Oct 24 19:38:27 and that people don't buy more apps Oct 24 19:40:00 luyang: and also that by next year, i bet GingerBread will still be at least 30% requiring dev attention; meaning i pretty much will be writing GB + abs + compat lib for the forseeable future Oct 24 19:40:30 i dont have the stomach to use too many platform/version-specific code paths Oct 24 19:41:05 I understand you Oct 24 19:41:16 agreed about the action bar not being part of the support library, although action bar sherlock is a great fix for that Oct 24 19:41:47 i think google should cycle the framework devs and app devs every year. like, one team gets done with Key Lime and then they go to maintaining apps, while the apps team goes towards frameowrk dev Oct 24 19:41:48 as far as the navigation issue goes, it's a consequence of android being a multiprocess OS from the start (as opposed to iOS, which only recently had it bolted on) Oct 24 19:42:05 agreed that it could be less confusing, though Oct 24 19:46:00 does anyone happen to know what intents are sent when incoming/outgoing calls are made? Oct 24 19:46:43 one interesting thing about this thoughtworks tech radar, is they are saying "adopt" to "mobile first" Oct 24 19:46:46 i know an outgoing one sends NEW_OUTGOING_CALL and an incoming one sends a change in PHONE_STATE, but aside from that i'm pretty much swimming Oct 24 19:46:54 er, treading water :\ badly Oct 24 19:47:53 I think google has also moved towards a more pragmatic android from 3.0 onwards Oct 24 19:48:06 brb, lunchtime Oct 24 19:48:11 ie, most tablet apps contain one main activity Oct 24 19:49:06 g00s: (et al) http://rob.pike.usesthis.com/ Oct 24 19:49:16 Hey people. Oct 24 19:49:23 tdignan: yeah! say that last night. always find those interesting Oct 24 19:49:26 after reading that i'm more inspired that the backend should be first Oct 24 19:49:38 What's the RIGHT way to implement a preference for entering an amount of money (without the currency symbol)? Oct 24 19:49:39 he elaborates how we aren't networked enough... I agree Oct 24 19:49:47 i'm kinda the opposite on what he wants though; i would prefer my own distributed personal storage Oct 24 19:50:02 encrypted and owned by me Oct 24 19:50:09 Problem is that in some cultures they type 1.10 while in others it's 1,10 etc. Oct 24 19:50:25 there is probably a InputType for that Oct 24 19:50:29 that takes care of locale. Oct 24 19:50:39 Is there a simple way to create a real number preference or do I have to parse a string and add validation? Oct 24 19:50:56 InputType Oct 24 19:51:15 Hm, so it's a dialogpreference with a special input type? Oct 24 19:51:28 I'm looking to see if one exists for currencies Oct 24 19:52:12 here's one helpful class at least http://developer.android.com/reference/java/util/Currency.html Oct 24 19:52:22 it doesn't need to be specifically designed for currencies since I want to move the currency symbol selection to a separate preference. So a "input amount with fractions" input type would be sufficient. Oct 24 19:52:29 Thank you! Oct 24 19:53:36 http://developer.android.com/reference/android/text/InputType.html#TYPE_NUMBER_FLAG_DECIMAL Oct 24 19:54:20 you can use the xml syntax "android:inputType="numberDecimal" Oct 24 19:55:15 Hm, but I have to verify it and maybe modify the result. So if somebody sets his currency to USD and then enters 1.239 i have to store it as 1.23 or 1.24? Hm.... Oct 24 19:55:50 you can define your own inputfilter Oct 24 19:56:24 Sounds good, I'll check that out. Oct 24 19:56:38 Thank you very much, everything is much clearer now :) Oct 24 19:56:48 np Oct 24 19:57:23 http://developer.android.com/reference/android/widget/TextView.html#setFilters%28android.text.InputFilter[]%29 Oct 24 19:57:55 huh, etx4 data corruption bug on latest 3.4 , 3.5, and 3.6 kernels Oct 24 19:58:09 *ext4 Oct 24 19:58:11 Has anyone found any hacks to get html text into gmail, beyond what can be conveyed in a Spanned (using Html.fromHtml)? Oct 24 19:58:18 I'm kind of stuck here Oct 24 19:58:44 I need at least a table-like layout Oct 24 20:09:02 Hi Oct 24 20:11:00 Guys, pease what to do if LogCat does not output any text .. its clear ? please help ? Oct 24 20:12:13 goto ddms and click on your device Oct 24 20:12:18 can't create avd, why? Oct 24 20:12:25 it says, low disk space Oct 24 20:12:40 well maybe you just have too less space on your hdd or sdd Oct 24 20:12:42 ._. Oct 24 20:12:45 get a bigger hdd Oct 24 20:12:51 and a bigger brain :) Oct 24 20:14:43 In eclipse console, i get this error, https://gist.github.com/3948557 Oct 24 20:14:55 Can anyone answer why? Oct 24 20:16:22 How can i set directory path for avd ? Oct 24 20:16:31 Guys, my LogCat is clear while debugging, nothing theres, and its set to "verbose" mode, do you know whats the problem ? please? Oct 24 20:16:39 I want to set avd path to somewhere else where there is disk space Oct 24 20:17:33 DOSP: goto DDMS click on your device name in the left pane. Tintin: stop broadcasting all your intents at us. Oct 24 20:18:05 theTerry: Where is DDMS ? Oct 24 20:18:32 theTerry: i could not create any device so far Oct 24 20:18:41 rtfm Oct 24 20:18:46 my god Oct 24 20:18:55 Or, just join the #2,000 channel Oct 24 20:19:05 They're helpful there. Oct 24 20:19:44 DOSP: you in Eclipse? Oct 24 20:21:02 Hodapp: I'm on eclipse Oct 24 20:21:08 I'm getting this error message: 10-24 18:19:43.235: E/ActivityThread(3798): Activity br.com.campusfqm.cfqm.DownloadManagerActivity has leaked IntentReceiver br.com.campusfqm.cfqm.DownloadManagerActivity$1@41534cb8 that was originally registered here. Are you missing a call to unregisterReceiver()? - I'm registering a receiver inside a DownloadManagerActivity class. I guess I should unregister it, but if I do it won't do what I want. Oct 24 20:21:34 SrPx: you should probably unregister it in onDestroy at a minimum :P Oct 24 20:21:46 SrPx: unregister it in the onPause() or onDestroy() of your activity Oct 24 20:22:05 just don't forget that calling unregister on a receiver that's not registered will generate an exception. Oct 24 20:22:25 lut4rp: but I think the event is being triggered after onDestroy(), it is waiting for a download Oct 24 20:22:26 Or well, you could move the receiver out of the activity, and register the intent filter in the manifest Oct 24 20:22:33 wut Oct 24 20:22:50 That smells of funny to me Oct 24 20:23:03 SrPx: yeah you really need to refactor to use a Service Oct 24 20:23:10 http://pastebin.com/Cp9uM7uK lut4rp here's the entire class Oct 24 20:23:15 lov: oh nooooo ): Oct 24 20:23:36 yeah. Oct 24 20:23:44 I just want a class that will download a file and open it when it's done, I'm trying to do it for the last 2 days t.t Oct 24 20:23:47 or rather OH YEAH Oct 24 20:23:55 I've tried like everything, it even worked before ): Oct 24 20:23:57 well Oct 24 20:24:02 but on the wrong version of android, ill cry Oct 24 20:24:07 lov: yeah what t.t Oct 24 20:24:21 if you're going to go the DownloadManager route, you really ought to be using a Service. Oct 24 20:24:29 * lut4rp looks at the code and shuffles nervously Oct 24 20:24:36 You could just use an HttpURLConnection or something if you "Just" want to download a file. Oct 24 20:24:49 however, you really ought not be downloading content in activities, at least not content that you want to persist past the life of that activity Oct 24 20:24:49 download it and open after it's done... Oct 24 20:25:29 Is it hard to make it a service ? :/ Oct 24 20:27:11 lov: I don't even want the app to do something else while the download happens. It can and should just wait until it's done and open it, as it's a short download... can I just make the activity wait before self-destructing? Oct 24 20:27:23 not really. Oct 24 20:27:29 There's no way to prevent the user from, say, pressing home./ Oct 24 20:27:43 At that point the activity isn't in the foreground and it's totally cromulent for android to make your process asplode Oct 24 20:27:46 SrPx: The download MUST be in another thread. Oct 24 20:27:58 It should be in a service, simply because.. that. Oct 24 20:28:11 SrPx: You can even use something like an IntentService. Oct 24 20:28:26 SrPx: Seriously though, I'd recommend that you learn about Services if you're going to do anything serious with Android. Oct 24 20:29:20 I'm not, this is the only app I'm making ever :/ but I'll learn about it anyway *sighs* Oct 24 20:29:59 I'm really puzzled by the result of a trace I did on my code Oct 24 20:30:16 the invocation count for a member is much higher than what I counted using a static variable Oct 24 20:33:13 has anyone seen an error like this, builds from Eclipse are fine, but if I Export to an APK, Some of my resources fail to work (don't show up) in the app Oct 24 20:34:46 SrPx: are you making it for fun or for work? Oct 24 20:35:30 google: common dammit, we need BTLE http://paulgraham.com/hw.html Oct 24 20:36:39 lov: for work, I'm a webdev but we realized we would need an app for our site to work properly on android, it should basically allow pdfs to open automtically after download and show some notifications Oct 24 20:37:12 Uh. I'd actually focus on making the site mobile-accessible, rather than do an android app. Stock browser handles PDFs fine. Oct 24 20:37:53 We *need* the pdf to be openned automatically after download. They're saying the clients won't be able to open it by themselves and I'm in no position of arguing :/ Oct 24 20:38:16 I've managed to do it for android 2.2, but it didn't work on the tablet Oct 24 20:38:18 ): ): Oct 24 20:38:26 ha Oct 24 20:38:56 I expected it to be trivial that's why I decided trying Oct 24 20:39:41 ah, you poor dumb son of a bitch Oct 24 20:39:49 you're going to have the most fantastic PDF downloader when you're done. Oct 24 20:40:05 SrPx: You only need about two activities, a service, three xml configuration files, two compatability libraries, and a partridge in a pear tree. Oct 24 20:40:27 SrPx: Plus whatever you need for web browsing. Oct 24 20:40:33 /j iphonedev Oct 24 20:40:36 SrPx: And you'll have saved the user... One click. Oct 24 20:40:43 but yeah Oct 24 20:40:46 what is that library that i can use to code in other languages for android Oct 24 20:40:58 perfunctory: Probably one-per-language. Oct 24 20:41:19 I don't know whether the DownloadManager's broadcasts can be caught by manifest registered receivers, but if they can you really ought to just do that Oct 24 20:41:21 no there was something where i can use portion of code in other languages Oct 24 20:41:25 have your receiver invoke the pdf viewer Oct 24 20:41:32 (make sure to check to see if it's actually your download!) Oct 24 20:41:42 I'm sure someone knows! Oct 24 20:41:55 SrPx: if you're doing this as an app, it's really easy. Just look at the DownloadManager APIs Oct 24 20:42:13 Yeah, BROADCAST_DOWNLOAD_COMPLETE is available. Oct 24 20:42:23 oh yeah, it's using the NDK toolset Oct 24 20:42:31 ok Oct 24 20:42:31 bye Oct 24 20:42:38 yeah Oct 24 20:42:44 in that case you don't need to register for this at runtime Oct 24 20:43:34 you really only need one activity; an activity that you register an intent whose data type matches your forums. When that activity is launched, it sends the download request to the download manager and finishes itself. Oct 24 20:44:11 if i want to capture the phone numbers of both incoming and outgoing calls, what intents should my broadcastreceiver capture? Oct 24 20:44:20 can someone explain to me what the google app engine is? Oct 24 20:44:27 also, i assume that there's some way to figure out which intent the receiver is responding to if it was registered to handle multiple ones Oct 24 20:44:29 profligacy: A cloud computing service. Oct 24 20:44:36 thanks freeone3000 Oct 24 20:44:47 freeone3000: ACTION_DOWNLOAD_COMPLETE you mean? That's what I'm using Oct 24 20:45:00 freeone3000 : dropbox or googleDrive, and why? Oct 24 20:45:23 SrPx: Okay. So you have one intent-filter on the URL, and one broadcastreciever on complete. Intent-filter starts the download, broadcastreciever triggers the intent to open it. Oct 24 20:45:47 lov: okay that's what I got, but where I register the broadcasterreceiver? I'm registering it inside that activity, but it's leaking Oct 24 20:45:56 SrPx: Register it in AndroidManifest.xml Oct 24 20:46:06 profligacy: I can't tell if you're trolling or not Oct 24 20:46:57 evancharlton: i'm not, i just wanted to have some insight into it Oct 24 20:47:17 I was told googl drive has more features? Oct 24 20:47:19 profligacy: https://cloud.google.com/products/index Oct 24 20:47:36 profligacy: drive has more features than app engine? wat? Oct 24 20:47:54 dropbox and google drive is what i said Oct 24 20:48:15 profligacy: For android apps, I would prefer the Android Backup Service, because there's a native API. Oct 24 20:48:41 Android Backup Service, i'll look into that, and that's a cloud computing service? Oct 24 20:48:58 profligacy: No. It stores small chunks of data for applications. Oct 24 20:49:19 http://developer.android.com/training/cloudsync/backupapi.html Oct 24 20:49:20 is Google Cloud Messaging popular these days? Oct 24 20:49:25 luyang: yes Oct 24 20:49:32 yes luyang Oct 24 20:49:36 evancharlton: I can imagine... Oct 24 20:49:37 it's an extenstion of c2dm Oct 24 20:49:39 profligacy: great Oct 24 20:49:42 yeah Oct 24 20:50:00 I wanna incorporate Google Play Services and Google Cloud Messaging into my applications Oct 24 20:50:00 profligacy: it replaced c2dm Oct 24 20:50:02 I need to interrupt handling of an intent in an IntentService Oct 24 20:50:15 I don't wanna use Google App engine as a back end Oct 24 20:50:23 any other popular back end? Oct 24 20:50:28 if onStartCommand gets a certain flag in an intent, I need it to stop the current running action first Oct 24 20:50:45 luyang: write your own or use services like Parse.com Oct 24 20:51:01 luyang, any specific reason? or trying to be different? Oct 24 20:51:18 mrenouf|work: main reason I want it to be less non-free Oct 24 20:51:44 mrenouf|work: I am currently on a very tight budget and want to write apps on spare time and earn little money etc Oct 24 20:51:51 outside my day job Oct 24 20:51:59 so I don't wanna spend money on backend Oct 24 20:52:05 quotas etc Oct 24 20:52:17 might go for app engine later though... it's a nice platform thingy Oct 24 20:52:19 luyang, depending on your levels it's free. Oct 24 20:52:29 mrenouf|work: sure but I don't want that restriction Oct 24 20:52:32 and it wont charge you unless you authorize it to Oct 24 20:52:43 You *will* spend money on backend. Period. Either this is maintaining your own, using AppEngine, or EC2. AppEngine offers actual functionality at the free level, which is suprising for a cloud-compute service. Oct 24 20:52:52 I'm thinking of stuff like xmpp, node.js, php, console java application with sockets, tomcat, etc... Oct 24 20:53:10 About the only thing you can get for free anymore is PHP shared hosting, which *will* be configured incorrectly. Oct 24 20:53:10 Well, I guess you could host your own service on a linux box, hanging off your cable modem. good luck with that. Oct 24 20:53:13 perhaps node.js hosted on a home computer can suffice as a start Oct 24 20:53:34 luyang: If node.js on a home computer can suffice, so can AppEngine. Seriously, look at what you're allowed for the free level. Oct 24 20:53:36 you'll get more from app engine's free tier Oct 24 20:53:43 freeone3000, +1 Oct 24 20:53:56 freeone3000: I did 24/7 rpg game move calculations and it hit quota after a few hours Oct 24 20:54:19 I basically wrote an engine which pushed rpg moves every 2 seconds... using task queues... Oct 24 20:54:29 luyang: Yeah. Math will say why. Oct 24 20:54:30 I'm not gonna do that now but that made me leave app engine for now Oct 24 20:54:55 I could have stuff running on my computer doing similar stuff 24/7 without quota issues Oct 24 20:55:12 luyang: Which quota didyou hit? Oct 24 20:55:28 freeone3000: I don't remember... task queue operations and datastore operations Oct 24 20:55:37 luyang: Did you remember to memcache your database? Oct 24 20:55:41 it only allows so many datastore operations per day Oct 24 20:55:44 no Oct 24 20:55:53 I just used the regular datastore Oct 24 20:55:55 luyang: There you go. It says to. Specifically. Several places. In order to avoid that specific problem. Oct 24 20:56:06 but I don't want to read fineprint Oct 24 20:56:14 luyang: It's not fine! It's 18pt Calibri! Oct 24 20:56:14 I prefer something else *right now* Oct 24 20:56:18 omg Oct 24 20:56:19 ;) Oct 24 20:57:06 https://developers.google.com/appengine/docs/java/datastore/overview#Quotas_and_Limits Oct 24 20:58:17 does the app engine console have a log of all my past quota issues? Oct 24 20:59:43 I have hit multiple quotas: Logs Stored Data 100% 100% 1.00 of 1.00 GBytes Task Queue Stored Task Bytes 100% 100% 0.49 of 0.49 GBytes Datastore Read Operations 100% 100% 0.05 of 0.05 Million Ops Task Queue Stored Task Count 100% 100% 1,000,000 of 1,000,000 Oct 24 21:00:10 luyang: How'd you manage logs? Oct 24 21:00:27 I guess exceptions and stuff for a few months Oct 24 21:00:33 I've had it running and not looked back at it Oct 24 21:00:36 gonna disable it now Oct 24 21:01:21 Apparently I live in a fantasy land where people do program analysis to determine system requirements *before* deployment. Oct 24 21:01:32 com.google.apphosting.api.ApiProxy$OverQuotaException: The API call datastore_v3.RunQuery() required more quota than is available. at com.google.apphosting.runtime.ApiProxyImpl$AsyncApiFuture.success(ApiProxyImpl.java:491) Oct 24 21:01:47 freeone3000: it was elaborative development on a hobby basis with a friend in the uk Oct 24 21:02:06 luyang: Yeah. You know they have a package so you can test your app locally, right? Oct 24 21:02:08 now that I wanna make apps I wanna have less restrictions while evolving my idea Oct 24 21:02:18 yeah but I was collaborating with a guy in the uk Oct 24 21:02:33 and we wanted to put things centrally.. but I guess I could run it locally for android dev Oct 24 21:02:46 I just don't really like t he lock-in from start to proprietary technology Oct 24 21:02:56 I wanna go there when required Oct 24 21:04:06 I cannot even access my application settings Oct 24 21:04:18 I guess Google might be pissed off that I left a crappy app running for months Oct 24 21:05:46 App engine only allows Datastore Read Operations 100% 100% 0.05 of 0.05 Million Ops Limited Oct 24 21:05:49 per 24hrs Oct 24 21:06:31 it's annoying that I can't even disable the app now Oct 24 21:06:56 app settings => server error Oct 24 21:07:46 :( Oct 24 21:08:08 Guys? please tell me, i want to get Google Places API, but when i want to check the PLACES fom API list its give me this "Please provide additional information about your company or organization." it means i cant use them if i dont have organization however i will publish my app and it will be paid ? Oct 24 21:16:00 When building with ActionBarSherlock, should I be compiling against the 4.0.3 SDK or the 2.2 SDK for an app I'm targetting at 2.2? Oct 24 21:20:20 Guys? please tell me, i want to get Google Places API, but when i want to check the PLACES fom API list its give me this "Please provide additional information about your company or organization." it means i cant use them if i dont have organization however i will publish my app and it will be paid ? Oct 24 21:20:53 DOSP: just put "self" or whatever Oct 24 21:21:26 but i can publish it then without "birocratic" problems ? Oct 24 21:24:29 Does AndroidHttpClient handle Gzip responses by default? Oct 24 21:25:18 freeone3000, compile against AND target API 16 Oct 24 21:25:23 mrenouf: i believe so Oct 24 21:25:31 about to find out Oct 24 21:25:37 mrenouf|work: Not 15? Oct 24 21:25:56 not much of a difference, but always target the latest is a good policy Oct 24 21:26:04 freeone3000: compiling against 15 should work, but may as well target 15 Oct 24 21:26:08 *16 Oct 24 21:26:13 if you target 2.2, your app will look terrible on new devices Oct 24 21:26:28 sampullman: My phone's 15. Oct 24 21:26:41 I just learned that that android.net.AndroidHttpClient is actually in all builds but was hidden until API level 8. Oct 24 21:26:44 and is your phone the only one it will ever be installed on? Oct 24 21:27:04 sampullman: No, it'll be installed on devices down to android 2.2. I'm targetting 15 because that's what I'm testing under. Oct 24 21:27:08 if it supports gzip, then I can jettison a bunch of copied over classes for all that (response interceptor, etc) Oct 24 21:27:11 sampullman: Well, testing the *most* under. Oct 24 21:27:30 freeone3000, then you're fine Oct 24 21:27:30 it shouldn't really matter, but like mrenouf said, it's better practice to target the latest Oct 24 21:28:16 Aha. Got it working. Apparently it also needed the v4 compat library (plus to be targetted at 15). Thanks. Oct 24 21:28:16 sometimes target versions trigger different defaults or behavioral changes between versions. but 15/16 has little or none of that. Oct 24 21:30:40 Does 1 sp = 1 dp at mdpi normal size? Oct 24 21:32:26 sp is related to text size. dp is not. Oct 24 21:32:34 1 sp = 1 px at mdpi Oct 24 21:33:47 From the docs "Scale-independent Pixels - This is like the dp unit, but it is also scaled by the user's font size preference. It is recommend you use this unit when specifying font sizes, so they will be adjusted for both the screen density and the user's preference."? Oct 24 21:41:33 hey, if i want to be able to switch between multiple activities from the action bar, which activity (if any) is supposed to set that up? Oct 24 21:41:51 (i'm thinking like how google maps allows you to switch between local, maps, navigation, etc. from the action bar's lefthand dropdown) Oct 24 21:43:36 The container activity. Those're fragments. Oct 24 21:43:57 probably a base activity for all thos einvolved, but this is probably a fragment Oct 24 21:44:53 ah, that makes sense :) Oct 24 21:45:10 good too, considering that my activity right now pretty much just holds my only fragment Oct 24 21:45:27 that moment...when the light bulb turns on... Oct 24 21:46:56 I've noticed that with an ActionBar, my app's settings menu no longer appears when the menu button is pressed. Is this normal? Oct 24 21:47:09 i'm kinda out of date with that; is it common now to have just one activity to switch between all the fragments in the app? Oct 24 21:47:10 Err. My app's regular menu. Oct 24 21:50:58 g00s: I still have many activities for the phone interface Oct 24 21:51:17 bit easier when working with notification fired intents etc Oct 24 21:53:48 and it's of course fairly easy to make some kind of generic activity that does nothing more than to load a fullscreen fragment and pass its extras to it Oct 24 21:57:01 Is there any available tutorial that describe graphics drawing using Rects in Android or the concept itself ? Oct 24 21:58:18 thanks MDijkstra Oct 24 21:59:58 still, google has kind of thrown the activity system under the bus by introducing fragments Oct 24 22:00:40 i guess it makes sense for an activity to have fragments related to each other, its when the same fragment shows up in multiple places where the whole 'belongs to' thing breaks down Oct 24 22:01:47 well, I understand the reasons why, activities weren't flexible enough Oct 24 22:02:01 the entire mess that is manipulation of the task stack proves that Oct 24 22:02:40 but now you have the old activity system on phones, and one activity with fragments on tablets Oct 24 22:02:43 which is not ideal Oct 24 22:03:13 just my opinion; but i find designing for mobile and tablet form factors to be very different experiences; primarily in expectation of engagement … i often think the phone/tablet version of many apps should just be different apps Oct 24 22:03:18 either extend the activity system to tablet layouts (ie, side-by-side activities), or get rid of the system completely Oct 24 22:03:24 more in common between tablet / laptop Oct 24 22:03:40 I dunno, I have done a couple of 'universal' apps now Oct 24 22:04:01 and I can usually share the phone screens Oct 24 22:04:23 anyway, bedtime Oct 24 22:05:41 oh, feasible for sure, the angle i'm coming from is difference in engagement. in mobile context, people often simply glance at their phones so you have to design the UI in that way - easily glanceable, not visually greedy, allow flow even during continuous interruption. for tablets though, i think users are more engaged and have more attention, this warrants a different design i think Oct 24 22:06:01 gnight Oct 24 22:23:19 http://developer.android.com/training/implementing-navigation/ancestral.html references android.R.id.home. I don't have this. What's the correct ID to use for the "Up" button? Oct 24 22:24:03 andorid.R.id.home Oct 24 22:24:12 wahts the api level? Oct 24 22:24:12 what f2prateek said Oct 24 22:24:39 f2prateek: Oct 24 22:25:10 i believe the min for that is api 11 Oct 24 22:25:28 unless you're using something like actionbarsherlock Oct 24 22:25:34 That's the idea. Oct 24 22:28:42 f2prateek: Okay. So uh. How do I tell my compiler to give it the same constant, even though I've got a lower minSdkVersion? Oct 24 22:32:21 haha, vz puts their icon on the Note 2 home button Oct 24 22:32:27 wat Oct 24 22:33:01 worst carrier branding ever Oct 24 22:33:42 It looks like the value is copied, which means it looks like I can just substitute the literal value. Any adventerous soul wish to find the android.R.id.home value for me? Oct 24 22:34:00 does anyone know if it is possible to quickly remove an App from the device history via code? We have a Battered Women's Shelter asking us to do an app and this is a requirement as they want the app not to show up in history Oct 24 22:34:12 Ah. It's in the docs, nevermind. Oct 24 22:34:23 if anyone from Google wants to chime in please do Oct 24 22:35:04 dantheman: android:excludeFromRecents="true" Oct 24 22:35:10 ahh Oct 24 22:35:35 what do you mean device history? exclude form recents is only for via the task manager Oct 24 22:36:38 dantheman: yeah, what device history are you talking about? Oct 24 22:36:48 freeone3000: answered it Oct 24 22:37:15 the device history…on 2.3 devices and below long press the Home Key Oct 24 22:37:29 Task manager. Oct 24 22:37:35 on newer ones press the two square box Oct 24 22:37:38 that's not a task manager, freeone3000 Oct 24 22:37:52 dantheman: android:excludeFromRecents="true" as freeone3000 said Oct 24 22:38:09 yeah I'm reading it now Oct 24 22:38:11 thanks Oct 24 22:38:32 its kinda of an important item for this client Oct 24 22:47:25 gOOs: I just noticed your earlier cry out for BTLE and thought I would second you on that: me too! me too! google. pls. Oct 24 22:47:34 darnit. he just quit. ;) Oct 24 22:59:59 voso: you might want to get yourself a real font Oct 24 23:15:39 I really cant understand how Rect class work, does anybody know a tutorial or an article that discuss the Rect class ? Oct 24 23:18:57 I'm running the android emulator on a MAC (fresh install, never used it before). The emulator runs the program, but I can't get it to receive keyboard not mouse input. The "virtual keyword" doesn't work either. But the emulator is working, I can start programs, and the hour reflected is accurate. Any ideas what might be happening??? Oct 24 23:19:02 R4md4c: what about it do you not understand? Oct 24 23:19:03 R4md4c: a Rect just stores the coordinates of a rectangle on the screen (position and size) Oct 24 23:19:07 http://developer.android.com/reference/android/graphics/Rect.html Oct 24 23:19:35 Gavilan2: just the onscreen keyboard work? Oct 24 23:19:37 What I dont understand about is the coordinate system of the left, top, right and bottom Oct 24 23:19:41 *works Oct 24 23:20:07 No.... ni keyboard works.... Oct 24 23:20:18 I cant send any input into thw device,... Oct 24 23:20:19 R4md4c: did you read this: http://developer.android.com/reference/android/graphics/Rect.html#Rect%28int,%20int,%20int,%20int%29 Oct 24 23:20:28 I understand that the left and top as x and y. The right is the width and bottom is the heigh. it is totally wrong I guess Oct 24 23:20:36 no Oct 24 23:20:41 read the link I gave you Oct 24 23:20:44 man my widget has such a huge margin around it, it could easily be a 1x3, but instead with all the dead space around it, it;s a 2x4 Oct 24 23:20:46 it is what it says Oct 24 23:21:02 So, any ideas? Oct 24 23:21:25 they're coordinates on the plane, but x is only relevant to left and right, and y is only relevant to top and bottom, because of the fact that it's a rectangle. Oct 24 23:22:20 you could look at it as two ordered pairs if you wanted to: (left, top) and (right, bottom) Oct 24 23:22:26 if that makes it easier to think of Oct 24 23:23:46 pragma-: I wish I understood what you mean.. Oct 24 23:30:56 tdignan: Thanks very much ! After trials with code I now understand. Thanks again Oct 25 00:09:58 omg, there are 666 members Oct 25 00:10:10 phew, now 665 … Oct 25 00:10:32 i knew android was the work of satan Oct 25 00:13:38 Hi guys! I'm new to programming and have a tablelayout issue. I need to have two columns. But the second column affects the first "e.g pushing column 1 down". Could someone help me? Thanks in advance! Oct 25 00:14:48 Hi, I'm looking for some help with an app I'm making. I have a question and code at stackoverflow, http://stackoverflow.com/questions/13044555/im-trying-to-have-activity-check-which-menubutton-is-checked I've fixed the initial question, now I'm trying to save the selected menu choice to be persistant after it's been chosen Oct 25 00:24:52 hello, is it a proper command to check if phone is in fastboot mode? fastboot.exe -i 0x0fce getvar version Oct 25 00:30:41 hg_5: fastboot devices? Oct 25 00:31:04 what? Oct 25 00:31:25 you can see which devices are in fastboot mode with "fastboot devices". is that what you were asking? Oct 25 00:31:57 ok wait i will check that Oct 25 00:38:48 Could someone help me. I need to have two columns. But the second column affects the first "e.g pushing column 1 down". I have a row of buttons on the left side, and want an image on the right side. But the image pushes button 2 and the rest down. http://justpaste.it/1gac Oct 25 00:43:03 g00s: Google revenue was like $666 billion Oct 25 00:43:25 forget where i read that yesterday Oct 25 00:43:46 I'm still trying to work out why aren't items in my listview saying selected - is the touch view philosophy still relevant? (http://jayxie.com/mirrors/android-sdk/resources/articles/touch-mode.html) Oct 25 00:44:47 Android Central: 'Google reported "other revenue" of $666 million...' Oct 25 00:45:15 ok again how to check if phone is connected in fastboot mode? Oct 25 00:45:25 fastboot devices Oct 25 00:45:35 or check the screen on the phone Oct 25 00:45:44 on the screen on phone there is battery Oct 25 00:45:48 is it ok? Oct 25 00:46:00 no Oct 25 00:46:05 thats not fastboot Oct 25 00:46:05 that is just charging Oct 25 00:46:06 so what should be? Oct 25 00:46:17 it should show the bootloader screen Oct 25 00:46:21 it'll say fastboot, or something similar Oct 25 00:46:27 when i connected phone to usb i was holding down volume button as it said in instruction Oct 25 00:46:45 do it again after the battery screen comes on Oct 25 00:46:49 must be a samsung Oct 25 00:46:57 no, its xperia Oct 25 00:49:10 anyone? Oct 25 00:50:02 yah.. Oct 25 00:51:14 anyone can help, how to put phone in fastboot mode? Oct 25 00:51:40 I need to have two columns. But the second column affects the first "e.g pushing column 1 down". I have a row of buttons on the left side, and want an image on the right side. But the image pushes button 2 and the rest down. http://justpaste.it/1gac Oct 25 00:58:00 http://puu.sh/1ip3W Oct 25 01:01:18 ok i am in fastboot mode now and trying to upload custom kernel(ThP_ICS_kernel_v3.img) with command fastboot flash boot ThP_ICS_kernel_v3.img Oct 25 01:01:29 and it gives me error Oct 25 01:01:48 in command prompt it says FAILED(remote: the device must be rooted first) , my phone is 100% rooted Oct 25 01:01:57 i checked it with root checker Oct 25 01:02:13 http://puu.sh/1ip8B Oct 25 01:03:44 I just updated the ADT plugin and now my program won't run when I run it from eclipse Oct 25 01:03:57 it complains it can't find the jar that's got my model objects in it Oct 25 01:03:59 what should I check? Oct 25 01:05:33 NoClassDefFound error Oct 25 01:05:36 but it's fine in Eclipse Oct 25 01:36:40 Android-ViewPageIndicator is one of the most watched java git repos on github; for some reason i find that comical Oct 25 01:50:58 how can i have one thread communicate with my main UI thread? Oct 25 01:52:01 i just need the main UI thread to respond to events that occur in this other thread (which handles drawing on a surfaceview) Oct 25 01:56:50 REGISTER Oct 25 01:59:49 hmm, i thought the Onion VoteRite app was really on play :P Oct 25 02:00:18 does anyone know how i'd communicate between threads? Oct 25 02:01:01 or at least, i need to run code periodically on the main UI thread Oct 25 02:11:40 why do android examples prefix everything with "m"? Oct 25 02:13:05 stands for 'member', I believe Oct 25 02:23:20 seems like a lot of wasted keystrokes Oct 25 02:36:40 whomp_: it is. its also visual noise. its not used in OO except for android mostly Oct 25 02:42:23 it's a horrible standard that my office wants to adopt :( Oct 25 02:43:10 :( indeed Oct 25 02:43:24 it always takes me ages to find any members called m* Oct 25 02:43:47 i start with what it's called and hit ctrl apace and get nothing Oct 25 02:43:48 so are inner class members prefixed with mm :) Oct 25 02:43:54 then go, huh?!?! Oct 25 02:44:39 it's ok for online example though where there's not conditinal formatting and whatnot Oct 25 02:45:31 although this. would be clearer Oct 25 02:45:41 gah Oct 25 02:45:48 i prefer that. Oct 25 02:45:58 and theotherthing. Oct 25 02:46:24 private final T that = this; Oct 25 02:46:45 that's going in the top of everything i write today **** ENDING LOGGING AT Thu Oct 25 03:00:00 2012