**** BEGIN LOGGING AT Sun Jul 29 02:59:59 2012 Jul 29 03:15:31 can anyone tell me why im not getting any logcat in intelij idea? Jul 29 03:15:49 emulator is up, logcat device is set to same as emulator current Jul 29 03:15:56 logcat for verbose is empty Jul 29 03:16:50 this is not helping me find this fc at all Jul 29 03:17:22 just added touch events to one of my views and every so often an event will cause the app to totally fubar Jul 29 03:17:28 "out to lunch" Jul 29 03:17:33 need logcat :/ Jul 29 03:31:45 mark4 Jul 29 03:31:46 you still here Jul 29 03:31:48 and need help? Jul 29 03:33:57 hi Jul 29 03:34:14 i ran logcat in a shell so i got whats happening Jul 29 03:34:21 Gotcha Jul 29 03:34:24 im getting input event dispatching time3d out sending to .... Jul 29 03:34:47 which tells me only that my shit crashed Jul 29 03:34:48 So you still need help or no? Jul 29 03:34:53 i dunno lol Jul 29 03:35:01 ive no idea how to go about debugging this Jul 29 03:35:04 Well Logcat should work without having to do anything extra Jul 29 03:35:08 logcat isnt telling me anything Jul 29 03:35:24 Well I don't know the actual debug menus, like to actually use the debug feature but I use logging to debug my code Jul 29 03:35:34 you know about like Log.e("name of log", "message"); Jul 29 03:35:35 locat isnt working in intelij idea but i got it from a terminal fine Jul 29 03:35:48 yes i know about those Jul 29 03:35:56 I mostly use those for debug :P Jul 29 03:35:57 thats like printf debugging Jul 29 03:36:00 yeah Jul 29 03:36:15 im getting a hard crash on touch events. not always Jul 29 03:36:29 Do you have your own custom touch event Jul 29 03:37:15 erm im using a public boolean onTouchEvent(MotionEvent m) Jul 29 03:37:25 Ok, easy enough Jul 29 03:37:32 What does the force close say in logcat Jul 29 03:37:39 when/if it happens Jul 29 03:37:51 Input event dispatching timed out sending to... Jul 29 03:37:59 its not fc'd yet Jul 29 03:38:06 its just sittig there locked up Jul 29 03:39:01 http://stackoverflow.com/questions/4234334/android-key-dispatching-timed-out Jul 29 03:40:52 Can I see your code for your touchevent Jul 29 03:53:15 ColorDrawable was in shambles pre-API 11 Jul 29 03:53:30 hey folks-- anyone know if it's possible to set "metadata" for your apps so they come up with certain keyterms in the Google Play store? Jul 29 03:55:10 what do you mean keyterms? Jul 29 03:55:25 you mean for SEO purposes? Jul 29 03:55:32 ? Jul 29 03:57:06 yeah well for google play search Jul 29 03:57:21 no Jul 29 03:57:30 you can put them in your description but that's a violation of the ToS Jul 29 03:57:39 I think most users would appreciate an explanation of your permissions Jul 29 03:58:10 I have a trademarked term (technically D&D) that I can't use due to the open gaming license but it would sure be helpful if I could hide it somewhere so it would pop up when people searched for D&D apps Jul 29 03:58:12 yea. why does a tic-tac-toe game need full gps/net/phone-status? Jul 29 03:58:20 etc etc Jul 29 03:59:22 Thanks for the info Jake despite the bummer of it all Jul 29 03:59:44 ClassicallyGeek: you can usually include trademarked terms with proper attribution in your description without drawing the wrath of the owning company Jul 29 04:00:19 except "droid". u cant usethat term :) Jul 29 04:00:26 thankfully Jul 29 04:01:20 george lucas will come pwn you if you do Jul 29 04:01:34 not that thats even slightly STUPID they let him get away with that shit Jul 29 04:01:39 but then later he'll rewrite history so that you pwned yourself Jul 29 04:01:44 JakeWharton: lawyers scare me and the license I used for the game content says " You agree not to indicate compatibility or co-adaptability with any Trademark or Registered Trademark in conjunction with a work containing Open Game Content" so supposedly I was agreeing to stuff Jul 29 04:01:47 heh Jul 29 04:02:10 mark4: is that really why "droid" can't be used? becacuse C3PO and R2D2 are too popular? Jul 29 04:02:15 because* Jul 29 04:02:36 ClassicallyGeek, motorola was paying george lucas royalties for the use of taht term Jul 29 04:02:42 becaseu " Jul 29 04:02:43 *Verizon Jul 29 04:02:44 that's crazy talk Jul 29 04:02:49 "these ARE the droids you are looking for" Jul 29 04:02:49 *Lucasarts Jul 29 04:03:03 I guess that is a straight up star wars reference Jul 29 04:03:18 no. the motorola droid is not a starwars referecne Jul 29 04:03:22 neither is the droid incredible Jul 29 04:03:25 but the quote Jul 29 04:03:32 but they both have the term droid in their names Jul 29 04:03:37 no. that was me being funny Jul 29 04:03:43 oh...well good job Jul 29 04:03:49 :) I am lol'ing on the inside Jul 29 04:04:15 droid incred == george lucas gets royalties because it uses the copyrighted term "droid" in its name Jul 29 04:04:25 *Lucasarts Jul 29 04:04:38 yes george lucas IS lucasarts lol Jul 29 04:05:51 JakeWharton: you ever finish that lazy-loading image lib? Jul 29 04:06:05 I finished enough to use internally Jul 29 04:06:40 AQuery is nice, but if I scroll rapidly in a ListView it adds images to the wrong holder Jul 29 04:06:48 presumably because the old item is long gone Jul 29 04:07:02 yeah I wouldn't say it's nice at all then Jul 29 04:07:05 not that I would have in the first place Jul 29 04:07:09 heh Jul 29 04:07:29 most of the ones I found that actually worked well (logic wise) all use AsyncTask :( Jul 29 04:07:35 :| Jul 29 04:08:55 well, at least the client hasn't noticed the issue Jul 29 04:08:57 ...yet Jul 29 04:10:26 heh, that would be a mega-dealbreaker for me Jul 29 04:10:40 looking through AQuery's source Jul 29 04:16:28 JakeWharton: AQuery already does the check I figured it was missing :\ Jul 29 04:17:40 is it safe to call two consecutive runOnUiThread() calls to run two different things on the ui thread? Jul 29 04:18:55 yes Jul 29 04:19:05 hrm then thats not my problem Jul 29 04:19:51 added a touch event handler to a view and sometimes my app locks up after a touch event. before its processed Jul 29 04:22:44 when doing a touch event with a move action are multiple move events posted? Jul 29 04:25:56 yea. i need help tracking down a lock-up in my app Jul 29 04:26:05 logcat isnt telling me a freeking thing Jul 29 04:29:20 what about the debugger? Jul 29 04:32:00 not sure how the debugger would help here, dont even know the nature or location of the lockup Jul 29 04:32:10 im not getting an FC, im just getting locked up Jul 29 04:33:27 at a completely random point? Jul 29 04:34:23 no Jul 29 04:34:28 not entirely Jul 29 04:34:52 i added a touch event handler to a custom view and the lockup happens on a touch event but not on ALl of them Jul 29 04:35:03 i can do a few and then randomly it locks up Jul 29 04:35:31 with no fc after 10 minutes of being locked up Jul 29 04:35:33 SimonVT: get a damn gravatar Jul 29 04:38:12 romainguy i just orderd 64 gigs of 1600mhz ram... might be able to oc harder :) Jul 29 04:38:23 drop that 21 minutes down to 20.5 ! Jul 29 04:39:22 the 2200mhz ram cost $700. no freeking way im spending that Jul 29 05:01:47 JNI / NDK question : is there a way to convert a jclass into a jobject ? Jul 29 05:02:52 an "inverse" to jclass GetObjectClass(JNIEnv *env, jobject obj); Jul 29 05:04:20 that doesn't sound logical Jul 29 05:04:34 jobject is an isntance of type jclass Jul 29 05:04:39 I assume the equivalent in Java would be obtaining an instance from a Class Jul 29 05:04:44 which doesn't make sense Jul 29 05:05:17 what are you trying to accomplish? Jul 29 05:07:56 I have this signature in my c++ code : JNIEXPORT jint JNICALL Java_com_my_test(JNIEnv *env, jclass obj, jobject bitmap) and i need to call a function inside it that takes a jobject Jul 29 05:08:35 i think the obj (or a conversion of it) should be passed instead of the bitmap Jul 29 05:33:38 I am trying to use this code to get getPackageManager() method : http://pastebin.ca/2175556 Jul 29 05:33:59 but i dont know what type / instance of obj I should pass Jul 29 05:34:03 any ideas ? Jul 29 05:38:05 call* Jul 29 05:40:14 hey, if I have a 1x1 widget, can I make it expand to like 2x1 when clicked on? Jul 29 05:40:20 I swear i saw an old version of stickynotes do it Jul 29 05:41:40 s3b`: pop up a window/dialog, maybe? Jul 29 05:42:08 Is that it? there's no way to overlay a view? Jul 29 05:42:18 I have a notes widget, and I just want buttons to slide down when the text box is focused :P Jul 29 05:42:39 given that the space is controlled by the launcher, I doubt you can just resize yourself Jul 29 05:55:34 hihi Jul 29 05:59:32 WilliamDecker: haha Jul 29 05:59:43 ? Jul 29 06:28:41 http://phandroid.com/2012/07/28/move-aside-apple-retina-display-here-come-350ppi-oled-displays-from-samsung/ Jul 29 06:29:26 xxhdpi :D Jul 29 06:29:57 Sdpi xD Jul 29 06:30:19 So high density that you cannot operate it without wearing safety gear? Jul 29 06:33:41 "It is tablets like the Nexus 7, Kindle Fire, ASUS Transformer Pad 300 and Samsung Galaxy Tab 2 that are slaughtering the affordable tablet market." Jul 29 06:33:51 sweet, we need some consolidation Jul 29 06:34:12 Hi, is anyone here? Jul 29 06:37:21 embed: there are over 600 people in the channel... Jul 29 06:49:01 hey gusy Jul 29 06:49:05 *guys Jul 29 06:49:23 i am trying to set the backgroundcolor of the scrollview Jul 29 06:49:38 scrollView.setBackgroundColor(Color.argb(100, 225, 235, 200)); Jul 29 06:49:55 but then the background gets black color Jul 29 06:50:20 no matter what i try to set the alpha . I am not getting the desired color Jul 29 06:50:42 i am setting the same backgroundcolor of view and i am getting the desired color Jul 29 06:56:01 anyone ? Jul 29 06:59:23 whould you give me a link to post a source Jul 29 07:03:11 please Jul 29 07:03:22 whould you give me a link to post a source Jul 29 07:15:09 defuera, www.pastebin.com Jul 29 07:15:27 defuera, try this , paste your source here and paste the link here in the room Jul 29 09:29:09 since api level 11 the android shapes changed, right? Jul 29 09:29:13 / or has it been earlier? Jul 29 09:29:23 e.g. corner radius positioning. Jul 29 09:34:01 hey guys i am having a weird problem, the music player app i am working on plays the songs via headphones, bluetooth speakers but not through the phone speakers! Jul 29 09:34:22 guess its 12 Jul 29 09:36:46 spobat: are you referring to me? Jul 29 09:37:20 no Jul 29 09:37:24 was talking to myzelf Jul 29 09:38:52 ohh Jul 29 09:39:57 any suggestions on why the audio isn't being routed to the default speakers of phone? Jul 29 09:48:41 How can I emulate that the Emulator does NOT have a "back" key? Jul 29 09:48:54 I want to check if it works when all action items are on the top Jul 29 09:51:15 Hi. Anyone here owning MK802? Jul 29 10:05:48 hello all Jul 29 10:07:19 tell me what ever ViewGroup in which elements are added (addView) would be postponed to the next line if the current is fully occupied, Jul 29 10:07:28 . Jul 29 10:10:02 tell me what ever ViewGroup in which elements are added (addView) would be postponed to the next line if the current is fully occupied. Jul 29 10:10:41 spam. Jul 29 10:11:44 corrected sentence, removed the comma Jul 29 10:12:07 No one idea? Jul 29 10:13:17 name of ViewGroup if it exists. Jul 29 10:18:39 hiya all, i'd like to play with fragments but i dont seem to be able to find a decent emulator, i only have an android phone... Jul 29 10:19:48 is there an emulator that emulates a tablet with fragments? Jul 29 10:21:39 Younos: you know answer to my question? Jul 29 10:22:10 no, i'm new to android :( Jul 29 10:23:24 Is the standard android sdk emulator does not support fragments? Jul 29 10:24:12 i'm sorry? no. i've seen a real tablet, the settings there look different than on a phone Jul 29 10:25:41 what is that framgents? android.app.Fragment? Jul 29 10:28:12 ahaha Jul 29 10:28:27 what the name of ViewGroup in which elements are added (addView) would be postponed to the next line if the current is fully occupied? Jul 29 10:28:45 its for new joined channel users Jul 29 10:28:54 maybe they know Jul 29 10:45:19 How can I get list of all buttons in layout? Jul 29 10:47:35 maybe in the loop Jul 29 10:47:54 getting childs Jul 29 10:52:22 what the name of ViewGroup in which elements are added (addView) would be postponed to the next line if the current is fully occupied? Jul 29 10:53:15 *showed on the next line Jul 29 10:55:53 stop spamming about the view group already Jul 29 10:58:03 bingels: can you explain more about this viewgroup? Jul 29 10:58:14 how does it look like if you have access to the "new" developer console? Jul 29 10:58:19 screenshots? Jul 29 10:58:32 i can't show you Jul 29 10:58:41 no i find this ViewGroup(Layout) Jul 29 10:58:57 pragma- why not? Jul 29 10:59:03 just make a screenshot :p Jul 29 10:59:14 google trusts me! Jul 29 10:59:39 ? Jul 29 10:59:57 pragma- you his name? Jul 29 11:00:04 *know Jul 29 11:00:14 bingels: his name is robert paulson Jul 29 11:01:01 :( Jul 29 11:03:38 what the name of ViewGroup in which elements are added (ex addView(ImageView)) would be showed to the next line if the current is fully occupied? Jul 29 11:03:43 it's for new users Jul 29 11:41:27 Hi guys Jul 29 11:41:47 o.o Jul 29 11:42:00 I'm getting this error: Button cannot be resolved or is not a field on this code: Button btn = (Button) this.findViewById(R.id.Button); Jul 29 11:42:06 And I have no idea why. Jul 29 11:43:26 Nevermind, solved it ;< Jul 29 11:51:50 what is better? Jul 29 11:52:01 com.troubi.my_app_name or com.troubi.my.app.name Jul 29 11:52:10 what the name of ViewGroup in which elements are added (ex addView(ImageView)) would be showed to the next line if the current is fully occupied? Jul 29 11:52:28 found FlowLayout Jul 29 11:53:43 but new problem when adding ImageView to LinearLayout having empty spaces on top and bottom. Jul 29 11:58:47 did anything happen to debug maps api keys? i found out that i get a new key when i enter my debug keystore's certificate at the signup page.. and now stuff works again Jul 29 12:09:53 Hey anyone know of this problem, someone is telling me my app in the store states that my app is restricted on certain phone densities Jul 29 12:10:10 I added but still nothing Jul 29 12:10:20 he says he uses a custom dpi of 200 which isn't a google standard Jul 29 12:11:26 I'm trying to choose a file from the system but I'm keep getting: No apps can perform this action Jul 29 12:18:11 I'm using make-standalone-toolchain.sh to build... a standalone toolchain Jul 29 12:18:24 but the resulting g++ cannot include C++ headers: http://pastebin.com/Tbs9mnrG Jul 29 12:18:33 is there something I missed? Jul 29 12:18:49 Are you including the headers? Jul 29 12:19:55 yes, see the second command Jul 29 12:20:37 Ye, alright but there is no such file named cstring? Jul 29 12:21:03 it was installed in /tmp/toolchain/arm-linux-androideabi/include/c++/4.6/cstring Jul 29 12:21:32 Ye alright Jul 29 12:22:32 I'm not very familair with c++ so I cant really help you out, sorry Jul 29 12:23:56 it's all right, thanks anyway :) Jul 29 12:24:07 np i guess ;> Jul 29 12:25:45 oh well it's all explained in the documentation apparently Jul 29 12:25:57 Ah, great Jul 29 12:31:16 Why is this showing "0"? memprocent = memfreeint / memtotalint * 100; System.out.println(memprocent); Jul 29 12:31:45 They are all integers Jul 29 12:31:56 ints* Jul 29 12:32:25 try (float)memfreeint / memtotalint * 100 Jul 29 12:32:48 So memprocent = (float)memfreeint / memtotalint * 100 Jul 29 12:32:49 I'm trying to choose a file from the system but I'm keep getting: No apps can perform this action Jul 29 12:32:49 ? Jul 29 12:33:25 Drager: Probably because you are using the emulator? Jul 29 12:34:33 Snoxie: But, I have set a SDCARD Jul 29 12:34:36 It should work? Jul 29 12:36:35 Drager: Hm i dont really know. I just had problems with it when i was doing something with email program.. Because its not on the emulator Jul 29 12:36:57 Snoxie: Ye alright, so I have to buy me a new phone :D Jul 29 12:37:00 About time Jul 29 12:40:34 Can I define a xml drawable thats the rotation version of another -real- png drawable? Jul 29 12:40:41 roateted* Jul 29 12:40:44 rotated* Jul 29 12:49:09 what the name of ViewGroup in which elements are added (ex addView(ImageView)) would be showed to the next line if the current is fully occupied? Jul 29 12:58:32 can i change the color that appears when "overscrolling"? Jul 29 13:10:19 @spobat i don't think so Jul 29 13:10:43 k Jul 29 13:14:05 ah, d'oh: The self-signed certificate used to sign your application in debug mode (the default on Eclipse/ADT and Ant builds) will have an expiration date of 365 days from its creation date. Jul 29 13:15:38 Just so you don't accidentally upload an app with a debug cert Jul 29 13:20:13 What MIME time should I have for files? Jul 29 13:38:36 Why do i get nullpointerexeption here: if (mediaPlayer2.isPlaying()) { } else { mediaPlayer2.start(); } Jul 29 13:39:04 This is in the oncreate: final MediaPlayer mediaPlayer2 = MediaPlayer.create(getBaseContext(), R.raw.fusrodahnomusic); Jul 29 14:01:41 Maybe mediaPlayer2 is null Jul 29 14:03:39 not maybe, definitely :) Jul 29 14:08:25 does the etc1tool in the android sdk folder work on linux? Jul 29 14:08:48 because if I do --encode and --decode an image it is totally messed up afterwards Jul 29 14:09:28 is there away to retain the state of togglebuttons when I switch to landscape mode? They are generated dynamically at creation of the activity, but they always lose their on/off state when the screen tilts. Jul 29 14:10:48 Give them an id Jul 29 14:12:40 how do I avoid collision with other, preexisting IDs when adding an ID? Jul 29 14:12:48 Don't use existing IDs Jul 29 14:13:16 yeah, but I have quite a few IDs, and it's growing, so I might collide at some point... Jul 29 14:13:26 i am aware they have a gigantic range Jul 29 14:13:49 Generated res IDs start pretty high Jul 29 14:13:51 So use low numbers Jul 29 14:13:56 Or, define some IDs in xml Jul 29 14:14:02 sonOfRa: to create enough to overflow a 32-bit signed integer, you will need to create more than any mobile device has the memory to support. Jul 29 14:15:05 yeah, using low IDs seems okay. i know that i won't overflow the integer, I was just afraid of randomly hitting an ID that was already generated Jul 29 14:17:02 range between 65-71 should be safe i guess. Jul 29 14:18:41 why not just define them in XML? Jul 29 14:19:30 eh, I don't always need them Jul 29 14:19:38 I don't like unused stuff in my xml Jul 29 14:19:38 Jul 29 14:21:21 or is it preferred to have IDs that are used only sometimes in xml? I'm fairly new to Android Development, so I'm not familiar with most of the conventions. Jul 29 14:28:17 does anyone have working etc1/pkm textures? it seems like my etc1tool is broken Jul 29 14:31:53 <-- LG OptimusV VirginUSA (Froyo=Android 2.2, normal, not rooted) Jul 29 14:33:10 <-- I want to learn how tethering works, what is sent from carrier to phone. What Virgin did so it wont work any more. Thanks. Jul 29 14:42:23 <-- I want to learn how tethering works, what is sent from carrier to phone. What Virgin did so it wont work any more. Thanks. --> phone I have LG OptimusV VirginUSA - Froyo=Android 2.2, normal, not rooted. For 4 months.) Jul 29 14:43:55 Less spam Jul 29 14:44:14 Also, you're in the app dev channel Jul 29 14:44:17 Try #android Jul 29 14:47:42 OK. Just did just now. Jul 29 14:48:24 Why isnt this working? http://pastebin.com/huNtyEhh When i press the button no sound plays.. Jul 29 14:48:29 Oh said. I havebeen asking in there. Figured Noone knew. They just want to point me to an app. Jul 29 14:49:22 I would be happy to get a link to something to read. Jul 29 14:50:12 Developers know more about the inner workings. Jul 29 14:50:31 Old phone was affordable. Jul 29 14:50:45 Not used. Jul 29 14:50:55 Snoxie, maybe becuase the MediaPlayer is already running for some reason? You might add some debug code here if (mediaPlayer.isPlaying()) { Jul 29 14:50:55 Jul 29 14:50:55 } Jul 29 14:51:09 and check if that block is used, instead of the blog used to start the mediaplayer. Jul 29 14:51:15 just a guess though. Jul 29 14:51:15 tripelbb: this isn't a "free support from developers" channel Jul 29 14:52:03 yo need to .prepare() iirc Jul 29 15:10:06 sonOfRa: It was just some bug in the emulator Jul 29 15:10:14 works fine on my phone Jul 29 15:10:28 yay emulator Jul 29 15:50:10 hey guys. anyone needs a designer? developing a new area on the sendoushi on game art and icon / ux design :) Jul 29 15:57:12 hey anyone here that uses sdl? Jul 29 15:58:53 calls to surface = SDL_SetVideoMode(480,800, 0, sdl_videoFlags); crash my app Jul 29 15:58:56 any thoughts? Jul 29 16:06:46 Can you use loader to implement lazy loading techniques? Ie. having a ListView populated by rows containing a picture and some text. Can you quickly load the text and then as the user scrolls down load the pictures as well? Jul 29 16:22:25 Hello Jul 29 16:22:33 I am licksjp Jul 29 16:22:43 It's Handle name Jul 29 16:22:53 not real name Jul 29 16:23:44 licksjp: good morning Jul 29 16:24:01 Leeds: hello Jul 29 16:24:11 I live in Japan Jul 29 16:25:02 Leeds: r u Android Developper? Jul 29 16:26:27 i think most of us are. i just started though :) Jul 29 16:27:30 I know you live in Japan :) and yes, most people here are developers Jul 29 16:28:34 Leeds: How many your applications has entryed in Google play? Jul 29 16:28:45 ooh, about 10 Jul 29 16:30:14 I am about 60 Jul 29 16:31:27 60 apps? that's a lot Jul 29 16:31:41 yes 60 apps Jul 29 16:31:55 licksjp, is android popular over there? Jul 29 16:32:52 I wrote a few live wallpapers for the J-League almost a year ago but I heard the number of Japanese using android devices at the time was fairly low Jul 29 16:32:56 preds: In Japan populer Android and iPhone Jul 29 16:33:05 seemed very popular when I was there last year Jul 29 16:33:40 ichi ban suki na tabemono wa nan desu ka Jul 29 16:34:09 that's pretty much the only nihongo I know :P Jul 29 16:34:16 preds: niku desu(It is meat) Jul 29 16:34:34 hai wakarimasu Jul 29 16:37:14 How do i call a function in an activity from my service? Jul 29 16:51:01 i'll set mountain view on fire tonight Jul 29 16:51:41 my developer account is in registration pending from 4 days Jul 29 16:52:14 ice cream sandwich will melt under my flames Jul 29 16:52:31 gingerbread will burn Jul 29 16:52:49 it's written Jul 29 16:53:15 tonight mountain view will be on fire Jul 29 16:55:17 I'LL SING FIRE FROM KASABIAN DURING THE HELL ON MOUNTAIN VIEW TONIGHT Jul 29 16:56:07 That's the kind of go-getter attitude we need in the android developer community Jul 29 16:58:58 How do i call an function in my main activity when the android device starts Jul 29 16:59:00 ? Jul 29 16:59:40 you asked before about calling a function from a service Jul 29 17:00:05 Yeah but any solution is appreciated Jul 29 17:00:54 I don't see how the two questions could be correlated.. however, to answer your previous question you can bind your activity to the service and send Messages back to it from the service Jul 29 17:01:20 look at android.os.Message/Messenger Jul 29 17:01:30 there's an example in the Service docs as well Jul 29 17:02:33 Can i then send messages to it even though the activity has not been launched? Jul 29 17:03:26 you can use an intent to start the activity Jul 29 17:03:50 but.. you don't want anything popping up on the screen the user didn't ask for Jul 29 19:00:54 yeah , this is sad http://www.osnews.com/story/26229/How_Apple_and_Microsoft_intend_to_destroy_Android Jul 29 19:26:20 hey there.. ive been kind of curious about it, Scala. So, why would I want to write my apps in Scala vs Java? it looks interesting Jul 29 19:32:02 drpenguin: you can talk to pfn if he is around Jul 29 19:35:33 g00s: thanks. i just find myself having a hard time doing the recoding of my app for version 2, and I think the problem is I just have a distaste for java Jul 29 19:35:38 if I could Id just do the whole thing in C Jul 29 19:36:11 i'm sure mark4 would rather you do it in forth ;) Jul 29 19:36:19 (than c) Jul 29 19:36:26 forth? never heard of the lang Jul 29 19:37:27 makes me think of taco bell Jul 29 19:39:27 is it even possible to do complete Android applications in nothing but C? Jul 29 19:42:55 drpenguin: a lot of games are written in native code Jul 29 19:43:14 but from C you won't get access to the high level APIs Jul 29 19:43:23 (content providers, UI toolkit, etc.) Jul 29 19:43:42 romainguy_: shucks, I figured that was the case. I would love to do my apps just in all C but the stuff ive done requires the high level API's Jul 29 19:44:37 note that by doing this you will be stuck on ARM devices Jul 29 19:45:13 romainguy_: Oh I know that,im well aware I would need to recompile my app to support x86 if I did that Jul 29 19:46:45 im just trying to find a substitute to java :P Jul 29 19:46:49 bah Jul 29 19:46:55 it's just a programming language Jul 29 19:47:09 you could use one of the many other languages that compile to bytecode Jul 29 19:47:12 romainguy_: oh I know I know, im just not a fan of java much anymore Jul 29 19:47:27 it gets the job done Jul 29 19:47:30 romainguy_: and thats what I am trying to do :P which is why I mentioend scala earlier, people seem to like it Jul 29 19:47:46 Scala is nice but adds its own load of complexities Jul 29 19:47:49 check it out if you want Jul 29 19:48:08 (but of course you'll lose some of the benefits of the tools like ADT) Jul 29 19:48:32 romainguy_: I expect any language to have its own complexities :P Jul 29 19:49:38 romainguy_: im having problems with the ADT anyway, Eclipse Juno doesnt seem to like it Jul 29 19:49:45 well, for the guy who likes C, I find it hard to imagine that scala is great fit either. I tend to think these people as more minimalistic than average Jul 29 19:49:57 and scala is imho not exactly minimalistic Jul 29 19:50:08 but then again I don't use it either so whatever Jul 29 19:57:38 drpenguin: use eclipse 3.8 then. Jul 29 19:58:05 g00s: yeah im gonna do that :P Jul 29 19:58:19 3.8 has the 3.x workbench apis; which is what the adt still uses. under juno the adt uses a compat layer Jul 29 19:58:26 3.8 uses the same JDT as juno does Jul 29 19:58:53 ahhh Jul 29 19:59:38 * g00s holds funeral for his canon powershot s95 Jul 29 20:02:25 awww, sorry g00s Jul 29 20:03:19 death by drowning Jul 29 20:04:16 ohnoes Jul 29 20:06:40 drpenguin: which issues are you having? So far so good Jul 29 20:07:20 Versuchen: Well, I cant seem to find DDMS :( Jul 29 20:07:53 drpenguin: are you kidding, right? xD Jul 29 20:08:16 Versuchen: im dead serious, i cannot find the DDMS perspective Jul 29 20:09:54 drpenguin. prespective -> DDMS :) Jul 29 20:09:55 Window -> Open prespective -> Other Jul 29 20:09:56 And there is another button to open the prespective stuff Jul 29 20:10:40 Versuchen: ok, let me tell you something, im not a "noob" when it comes to android stuff Jul 29 20:10:46 there is literally NO DDMS perspective Jul 29 20:11:02 trust me, I know what it is, I know what to look for, I know where to look for it, and it isnt there Jul 29 20:12:17 Then maybe you have to reinstall the ADT plugin. I'm in Eclipse Juno and there is nothing wrong with the plugin Jul 29 20:12:36 Versuchen: probably, im gonna use 3.8 as g00s recommended Jul 29 20:13:24 Yes, take the easy way, no shame :) Jul 29 20:13:54 Honestly, I dont think there is an "easy way" for anything with eclipse Jul 29 20:14:23 Ok, That's true he Jul 29 20:21:57 heh, this is great. my strategy for tablet optimizing my android app :) http://www.smithsonianmag.com/science-nature/Why-Procrastination-is-Good-for-You-162358476.html?c=y&page=1 Jul 29 20:27:13 g00s: thx, now I'm less concern about my decision delays Jul 29 20:27:20 :) Jul 29 20:27:37 i was thinking about reading the book , but i'll wait on that :P Jul 29 20:27:51 g00s: :P Jul 29 20:27:55 xDD Jul 29 20:28:29 speaking of tablets.. im excited to start writing apps for my nexus 7.. Jul 29 20:32:05 if I'm using a two-pane layout with fragments how do i set it up so that the display of a detail fragment adds an item to the actionbar that is not their previously ? Jul 29 21:08:22 Greetings Jul 29 21:08:49 Greetings Jul 29 21:09:53 I am trying to access a remote link from my android app, I am using HttpClient and HttpGet objects, when I run httpclient.execute(request); it returns a null exception Jul 29 21:10:13 request is an instance of HttpGet that points to http://www.google.com Jul 29 21:10:22 I have also set the permission to use the Internet Jul 29 21:11:39 I can't figure out what I am doing wrong Jul 29 21:13:04 HttpClient httpClient = new DefaultHttpClient(); HttpGet request = HttpGet("http://www.google.com"); httpclient.execute(request); => crashes my app Jul 29 21:13:24 httpclient* Jul 29 21:23:43 Hi All. Question: I just published my first app, and reports are coming in that its buggy on Galaxy s2's with 4.0. I got this screenshot send to me, wich shows that my Table Layout isn't being showed: http://s10.postimage.org/6xkjn0j9j/IMG_20120729_WA0000.jpg Jul 29 21:23:58 This is what it's supposed to look like: http://s11.postimage.org/xcdgmnvpd/screenshot1.png Jul 29 21:24:11 all the buttons beneath the Title, wich is a simple imageview, aren't displayed. Jul 29 21:24:20 Anybody any idea on why? :) Jul 29 21:55:35 anyone know how to find chat baloon drawable 9patchs? Jul 29 21:55:48 just looking for the standard iphone baloon/bubble Jul 29 22:06:43 Dear Android Dev, can someone help me figure out how to make my screen dim from with in the code. Jul 29 22:09:03 Prot: youd have to make it yourself, the ones in the platform wil be andorid styled Jul 29 22:09:45 thats why the question was 'how to find' ;) Jul 29 22:11:00 Prot: thats why the answer was soft 'not possible', i mean you could google and hope somebody made an ios styled 9 patch for android and put it on the internet, but unlikley to yield any results Jul 29 22:11:16 so certain are you Jul 29 22:11:27 nevertheless, thats exactly what I did, and exactly what I found Jul 29 22:11:35 an iphone 9 patch for android Jul 29 22:11:43 er bubble text, specifically Jul 29 22:11:52 oh excellent, my bad then Jul 29 22:12:15 believe me, I wouldn't use it if I wasn't ordered to Jul 29 22:14:13 DeadByLead: getWindow().getAttributes().dimmAmount = DIM_AMOUNT, DIM_AMOUNT is a float, between 0 and 1 as i remember Jul 29 22:14:47 about to release my first app, which is an abc learning app for toddlers. I have some music that loops indefinitely, and I'm debating whether or not I should just add a small icon in the lower left or right corner that will (a) toggle the music on or off with a single touch or (b) go to a new activity that has a volume slider. is there a best practice for this scenario? Jul 29 22:15:22 dreamache: doesnt the volume button manage the media volume? Jul 29 22:16:42 yeah it does, but I do have other sounds which are activated based on user touch and wanted to have them separated in terms of volume for each. I guess it's not a huge deal, I'm just being a bit anal about things. Jul 29 22:17:34 f2prateek: Here is how i have this set up right now: WindowManager.LayoutParams lp = getWindow().getAttributes(); Jul 29 22:17:35 lp.screenBrightness =1.0f; Jul 29 22:17:35 getWindow().setAttributes(lp); Jul 29 22:18:11 hello, I keep getting an OutofMemoryError when trying to select 3 images using intents..can someone look at the following code? http://pastebin.com/rLEqAmRL Jul 29 22:19:29 DeadByLead: well i woould then use lp.dimAmount = DIM_AMOUNT;getWindow().setAttributes(lp); Jul 29 22:19:31 I scaled the images but didn't work Jul 29 22:20:40 Not werkin Jul 29 22:21:33 what is the DIM_AMOUNT? Jul 29 22:21:41 try something like 0.8f Jul 29 22:27:38 where's a good place to store Locale.getDefault().getLanguage() so that I can pass it to my api calls Jul 29 22:27:45 kind of like a global var Jul 29 22:27:51 or I can just call Locale.getDefault().getLanguage() directly all teh time Jul 29 22:28:54 f2prateek: Gimme a second I'll get back to you. Jul 29 22:29:31 joikus i could change my locale while your activity is resumed Jul 29 22:30:09 f2prateek: No dice setting like this: Settings.System.putInt(this.getContentResolver(), Settings.System.SCREEN_BRIGHTNESS, 20); Jul 29 22:30:09 PRIVMSG #android-dev : WindowManager.LayoutParams lp = getWindow().getAttributes(); Jul 29 22:30:09 lp.dimAmount = 0.8f;getWindow().setAttributes(lp); Jul 29 22:30:10 getWindow().setAttributes(lp); Jul 29 22:31:00 xorgate, shit you're right Jul 29 22:31:13 so I should use Locale.getDefault().getLanguage() all the time Jul 29 22:35:13 DeadByLead: defintely should work, its also how the deskclock app does it Jul 29 22:37:49 Whoot net lahg! Jul 29 22:44:10 I released my first app today, and I'm getting some bug reports. My app is a simple soundboard with 9 buttons in a tablelayout. It appears that on galaxy S2's running 4.0 the whole tablelayout isn't visible: http://postimage.org/image/v1bbbb1qd/.. This is what it should look like: http://postimage.org/image/hqw52pjr3/ Jul 29 22:44:29 It does run correctly on other devices and API's.. What could cause this? Jul 29 22:53:19 I have a SurfaceHolder and I want my camera to setPreviewDisplay(holder).. this works fine, unless the device doesn't have a camera. How would I set the text in the background to show an error message accordingly? Jul 29 23:12:51 Anybody have any experience with MediaPlayer? Jul 29 23:19:52 hey... Is there a layout that will do horizontal until that's filled, then add another (vertical) row and keep going? Jul 29 23:20:53 HAHAH! I registered on the app market and now its kicking me out xD Jul 29 23:21:43 Anyone ever run into this issue? http://pastebin.com/8qEag31f Jul 29 23:25:09 EddieRingle: maybe try a clean build Jul 29 23:25:16 it can't inflate android.widget.button Jul 29 23:25:27 AlCapwn: I've tried that many times Jul 29 23:25:36 The issue is a bit lower in the message Jul 29 23:26:02 It's unable to find a drawable which exists in my res/drawable/ directory Jul 29 23:27:38 EddieRingle: could it be something in that drawable xml is referencing another drawable, which doesn't exist in the matching folder for your device config? Jul 29 23:27:50 e.g. it's looking for foo.png, but in drawable-v11 Jul 29 23:27:51 I find its normally a problem somewhere else in the XML causing a dodgy R file Jul 29 23:28:30 AlCapwn: all the drawables it references exist in their respective drawable-*dpi directories Jul 29 23:30:37 hello, I keep getting an OutofMemoryError when trying to select 3 images using intents..can someone look at the following code? http://pastebin.com/rLEqAmRL Jul 29 23:38:06 You're simply out of memory. If you're picking images from the gallery, they're going to be fairly high res. There's no way you can hold 3 bitmaps in memory on an average device. Jul 29 23:38:11 if i'm making a ListFragment and i want each entry to have an image and multiple text lines, do i need to create my own adapter for that or is there an easy way to map an object onto the list item XML? Jul 29 23:38:59 Custom adapter. Pretty easy to do, one class and one layout file. Jul 29 23:39:22 what do i extend, SimpleAdapter? Jul 29 23:39:55 baseadapter Jul 29 23:42:12 Anyone know how to recover a MediaPlayer stream when the network changes (e.g. Wifi to 3G)? Jul 29 23:51:47 I have this onCreate, s_categories.setOnItemSelectedListener(new OnItemSelectedListener() { Jul 29 23:51:51 it's a spinner Jul 29 23:52:03 thing is, onCreate, the spinner listener onItemSelected gets called Jul 29 23:52:22 without even clicking the spinner Jul 29 23:52:57 meow how imma save my game configuration vars? files?? weird android registry thing?? Jul 29 23:54:07 let me do it in onPostExecute Jul 29 23:54:14 after my spinner is populated Jul 29 23:54:24 meow shared preferences? Jul 29 23:54:29 hello Jul 29 23:54:48 no luck Jul 29 23:55:12 looking for a good rom to load for viewsonic g tablet that has hdmi audio working Jul 29 23:55:36 hi^ go to #android-root Jul 29 23:56:18 ok thanks Jul 29 23:57:46 ok I removed my fetchItems oncreate, and just called it once in my category spinner OnItemSelectedListener Jul 29 23:57:49 ok shared preferences Jul 29 23:59:49 you are calling onCreate from your listener? Jul 30 00:13:23 Hi I am new to the room can I just get some confirmation that someone other than me is seeing this? Jul 30 00:13:52 mubeta06 I answer people Jul 30 00:13:53 Nope, I can't confirm that. Jul 30 00:14:03 cheers chuckk Jul 30 00:16:16 Ok no surprises I am new to this forum... I have a question that I have had no luck seeking the answer to on SO. Here goes, I simply want to change the background colour of a button and currently I have done that using an selector, problem being that I would like to still make my button have the theme look and feel for all other interactions i.e. focused / pressed etc Jul 30 00:17:21 Have you specified a parent in your style? Jul 30 00:17:38 Sometimes a PorterDuff filter might be a better way to go. Jul 30 00:17:53 hmmm no I have not specified a style as such Jul 30 00:18:22 simply set the background attribute to a drawable containing the selector code Jul 30 00:18:28 you are overriding the button in its entirety and losing the platform theming right? Jul 30 00:18:34 yep Jul 30 00:19:15 you want to inherit the platform theme and adjust it, not replace the whole thing for that widget Jul 30 00:19:17 make sense? Jul 30 00:19:23 is there anyway to just change the default background colour Jul 30 00:19:27 o ok Jul 30 00:20:08 so I do have something like this Jul 30 00:20:11