**** BEGIN LOGGING AT Tue Feb 05 02:59:59 2013 Feb 05 03:03:20 when I try running an android project (that runs fine on eclipse) on intellij, it crashed. Feb 05 03:03:27 weird Feb 05 03:04:54 oh, so maybe java 7 isn't such a good idea after all :) Feb 05 03:05:29 Maziz: you mean you just launched it from different IDEs? Feb 05 03:08:13 matt9 no difference to the UI Feb 05 03:08:39 the logic is difference though Feb 05 03:08:44 if I run something directly on the UI thread, does that automatically get posted to the main looper? Feb 05 03:08:56 g00s: in your eclipse preference, go to Java settings. Then expand "Installed JREs". Add your JDK 7 in and tick the checkbox Feb 05 03:10:24 I think if you perform UI update in the main thread (UI thread) Feb 05 03:10:52 the update is performed directly without going through looper Feb 05 03:11:02 I just guest though Feb 05 03:11:27 Does the youtube api allow for offline views? Feb 05 03:11:37 Maziz: after i rm -f'd that, typing java -version shows a dialog asking me to install the Apple Java 6 :| Feb 05 03:12:02 did you change your global path env Feb 05 03:12:07 bash_profile? Feb 05 03:12:37 never had JAVA_HOME set, must be some other hooks burried somewher Feb 05 03:12:58 the symlinking of the jvm directory trees is confusing as all hell Feb 05 03:13:19 oh well, let me try some other things Feb 05 03:16:02 when i change my java_home and points it to 7 it will show 7 Feb 05 03:23:01 Maziz: dunno. java 6 is gone, have jdk 7u13 now. "java -version" shows the right version, but trying to run eclipse shows the dialog saying i dont have java and I need a Java 6 runtime Feb 05 03:23:21 go preference and change it Feb 05 03:23:33 prefs only show java 7 Feb 05 03:23:44 i just updating to to jdk7u13 Feb 05 03:23:49 seems the detele jdk6 Feb 05 03:24:09 yeah, there was some uproar about that Feb 05 03:24:14 yup Feb 05 03:24:17 read it before Feb 05 03:24:49 so yeah, System Settings -> Java -> Java Control Panel only shows Java 7 Feb 05 03:25:01 yup Feb 05 03:25:18 10.7 still thinks its java-less tho Feb 05 03:25:25 * g00s rages Feb 05 03:27:27 is there a way to set the default animation from navigating between activities without having to call overridePendingTransitions each time? Feb 05 03:28:04 xastey: maybe there is a theme attribute for it Feb 05 03:28:16 yeah thats what I've been looking for Feb 05 03:28:19 no luck so far Feb 05 03:49:02 Maziz: so your eclipse/intelliJ work on with jdk 7 then ? Feb 05 03:49:12 yup Feb 05 03:49:27 what version of eclipse? Feb 05 03:49:44 4.2 Feb 05 03:49:49 SR1 Feb 05 03:50:05 hm, i'm using 3.8 and wonder if thats a problem. but intelliJ should be ok :/ Feb 05 03:50:14 could try that Feb 05 03:50:18 shouldn't be an issue Feb 05 03:50:26 you can access java in eclipse preference? Feb 05 03:50:32 "Installed JRE" Feb 05 03:50:33 brb Feb 05 03:50:39 yeah Feb 05 03:50:49 oh crap, intellij says Java 6 too Feb 05 04:01:28 change the settings Feb 05 04:04:40 Boolean returnboolean; Feb 05 04:04:40 returnboolean = sharedPreferences.getBoolean("enable", true); Feb 05 04:04:46 is there a way to do that in one line? Feb 05 04:06:24 So, is it one content provider per table or view? Feb 05 04:08:34 ive created a custom View, that is using a Handler to update things every 10 seconds Feb 05 04:08:54 but it continues to run after the Activity is stopped, how do i detect that from a View? Feb 05 04:10:23 jda2000: if you're creating your own contentprovider you want to create one per set of data you're providing access to. It isn't necessarily per table or per view Feb 05 04:11:06 clever, Well, your activity knows when it's going away mostly, so it can tell the View. Feb 05 04:11:31 mdwright, Thanks. Feb 05 04:12:10 jda2000: its burried within a ListView, which doesnt easily give access to the views that are visible Feb 05 04:12:21 jda2000: and storing the views made by getView leads to its own problems Feb 05 04:13:13 mdwright, So it's not always content:/ProviderClass/Table/row Feb 05 04:14:42 clever: you could always start and stop the handler in the view's onAttachedToWindow/onDetachedFromWindow Feb 05 04:14:47 clever, hmm... Feb 05 04:15:45 mdwright: that doesnt seem to get called when you leave the activity completely (home button) Feb 05 04:15:51 they are still attached to the activity, which itself is paused/stopped Feb 05 04:17:06 clever, who starts the timer? Feb 05 04:18:01 jda2000: the View starts it internaly, every time it stops Feb 05 04:18:13 its counting up on several numbers, which it displays Feb 05 04:19:12 jda2000: Since you're implementing it, you can decide what the URIs can be. But idiomatic behavior for content providers that are backed by sqlite are content://provider/table/row, yes Feb 05 04:19:24 clever, so what you need is a flag somewhere where both the Avivity and the view can get to it... Feb 05 04:19:46 jda2000: preferably one that already exists in the api Feb 05 04:20:05 clever, preferably. Feb 05 04:20:29 clever, The shared options exist in the api. Feb 05 04:21:53 jda2000: ive also run into other weird bugs, the first views made by getView dont tick anymore, hmmmm Feb 05 04:23:17 fixed that one Feb 05 04:24:34 clever: really your activity should have the handler and be updating the view, not the view updating itself Feb 05 04:24:51 mdwright: yeah, but then how to i get the view out of a ListView? Feb 05 04:26:43 clever: why are you trying to get the view out of the listview? Feb 05 04:27:04 clever, are you using an ArrayAdapter? Feb 05 04:27:15 mdwright: so the Handler in the Activity can perform the update on the Views Feb 05 04:27:27 jda2000: yes Feb 05 04:27:39 clever: You're updating the data in the listview? Feb 05 04:27:57 mdwright: the data never changes, its 3 values, count, timestamp, rate Feb 05 04:28:07 and it just calculates the current value on the fly Feb 05 04:28:13 What are you trying to update then? Why do you need the view? Feb 05 04:28:23 the value should appear to be counting up, as time passes Feb 05 04:28:53 it calculates how much time has passed (now - timestamp) then how much it should go up, (now-timestamp)*rate Feb 05 04:28:59 and adds that to the count value Feb 05 04:29:36 clever: you could just update the values in the array and then call notifyDatasetChanged() Feb 05 04:30:09 that would then rebuild all of the elements in the list, when they dont need to be Feb 05 04:30:25 the elements in the list already have an update function to do everything internaly Feb 05 04:31:07 clever, how many elements total? Feb 05 04:31:18 jda2000: at the moment, ~20, but in future, 100's Feb 05 04:31:45 because everything can be calculated on the fly, its purely visual, only the things visible need to be touched Feb 05 04:32:39 clever, you are tracking which ones are scrolled into visibility? Feb 05 04:32:57 jda2000: not currently, and i dont know how to extract the view from ListView, trying something now... Feb 05 04:33:00 clever: you can always call ListView.getChildAt() Feb 05 04:33:09 but as soon as you scroll the views offscreen they'll get recycled Feb 05 04:33:30 doing this type of thing with ListView is generally asking for trouble. You want to update the backing data, not the views themselves. Feb 05 04:34:45 mdwright: basicaly, the view is just showing how many seconds have passed since time X Feb 05 04:35:08 i dont see why i need to calculate that, then rebuild the entire list, when my custom view can already calculate it on the fly when needed Feb 05 04:35:54 trying something else out now... Feb 05 04:36:24 clever: because when you scroll the listview and your customview gets scrolled off screen that view is going to get recycled and given new data Feb 05 04:36:31 and all of those calculations will go away when you scroll back on screen Feb 05 04:36:37 clever, So why is it a problem if the View gets updated for a while after the Activity stops? Feb 05 04:37:01 jda2000: because it winds up with 20 views ticking away every second, when the device is completely off Feb 05 04:37:05 there goes battery life! Feb 05 04:37:46 other related bugs, caused the Handler to not stop when the view was removed from the list Feb 05 04:37:55 so it was also causing a memory leak Feb 05 04:38:03 Yeah, well, as long as you aren't holding a wakelock we'll suspend the CPU anyways :) Feb 05 04:38:25 but having things running that don't need to be is still bad Feb 05 04:38:37 clever, what's keeping the process going? Feb 05 04:38:51 jda2000: a foreground service that needs to poll a server every 5mins max Feb 05 04:39:01 jda2000: we keep processes and activities in memory as long as we can so application switching is fast Feb 05 04:39:31 even longer in my case, i tell android to not kill it ever Feb 05 04:39:45 looks like getChildAt may work Feb 05 04:40:38 Hmmm... Truly, premature optimization is the root of all evil. Feb 05 04:40:55 is there any harm in starting a service that's already been started? Feb 05 04:41:07 not if it was written properly Feb 05 04:41:21 jda2000: it was leaking objects that eat cpu constantly Feb 05 04:41:31 eventualy, it would have run out of either ram or cpu time and ground to a halt Feb 05 04:41:40 canadiancow: how would you write a service so it would handle that OK? Feb 05 04:43:41 clever, Each custom View has it's own timer? Feb 05 04:43:51 jda2000: had Feb 05 04:44:46 that timer was probly fooling the GC into keeping things, causing them to leak out of control Feb 05 04:45:26 andkore, i dont know Feb 05 04:45:28 it depends what it's doing Feb 05 04:45:38 I just realized that I don't to worry about that. I'm a dumbass. Feb 05 04:45:49 thanks Feb 05 04:45:52 Clever, it seems there should be one timer, One Array and One Array Adapter all owned by the Avtivity. Feb 05 04:46:05 do you do android dev full time canadian? Feb 05 04:46:08 Activity Feb 05 04:46:12 andkore, yes Feb 05 04:46:17 jda2000: yeah, thats how i just rewrote it Feb 05 04:46:28 that's pretty cool. is it working out well? Feb 05 04:46:35 but getChildAt isnt directly returning my view, need to dig deeper Feb 05 04:46:44 andkore, yes Feb 05 04:47:05 except for when something catches my microusb cable and my phoen flies to the ground Feb 05 04:47:08 that happens weekly Feb 05 04:47:15 lol Feb 05 04:47:16 anything on the play store? Feb 05 04:47:25 you can do adb over tcp Feb 05 04:47:34 adb over tcp is a pain :/ Feb 05 04:47:46 I haven't tried it. what's wrong with it? Feb 05 04:47:58 andkore, yes Feb 05 04:48:55 jda2000: http://privatepaste.com/7ee2c31777 this seems to work Feb 05 04:50:09 clever: if you scroll the views offscreen and then back on screen, what do you expect to happen? Feb 05 04:50:36 mdwright: the data backing it has count/timestamp/rate data, so it can calculate the value on the fly, for any point in time Feb 05 04:51:59 well, it'll have old data until the handler fires again (so potentially 10s of stale data) Feb 05 04:52:07 * mdwright shrugs Feb 05 04:52:36 yeah, if its on screen, it will be out of date by the update interval Feb 05 04:52:49 if its off screen, i believe getChildAt wont return it, and it will simply stop updating Feb 05 04:53:27 another weird issue, probly related to onMeasure that i need to fix Feb 05 04:53:45 every time the TextView within a row changes value, the listview rebuilds everything Feb 05 04:53:49 probly trying to measure the children again Feb 05 04:53:54 yeah, has to Feb 05 04:53:58 setting a fixed width and height should fix that Feb 05 04:55:46 time for bed though, later :) Feb 05 04:55:48 clever, Thanks for sharing the snippet. Feb 05 04:57:15 damn it, my java install is totally fucked. now i'm just randomly rm -fr 'ing and dir that has java in it. Feb 05 04:58:07 ? Feb 05 04:58:10 still not ok? Feb 05 04:58:14 no Feb 05 04:58:20 hah Feb 05 04:59:08 it kept asking me to install java 6 Feb 05 05:02:58 so do it Feb 05 05:03:22 but i have java 7u13 installed :| Feb 05 05:03:38 everything else seems to work, via the command line, but not eclipse or intellij Feb 05 05:04:18 if you have java .so file in the folder structure of eclipse it will work Feb 05 05:11:59 What's the right way to attach the source to Android.jar to your project? Feb 05 05:12:17 for Browsing purposes. Feb 05 05:12:53 I'm guessing I shold create a link first. Feb 05 05:29:32 a 10 minute transfer at 35MB/s **** ENDING LOGGING AT Tue Feb 05 05:35:20 2013 **** BEGIN LOGGING AT Tue Feb 05 06:02:19 2013 Feb 05 06:03:39 +canadiancow: i have tried to search for it. i guess i have missed it Feb 05 06:03:55 +canadiancow: could you please help me out. Feb 05 06:04:26 i just went to developers.google.com/maps Feb 05 06:04:29 and found the answer in 5 seconds Feb 05 06:04:44 https://developers.google.com/maps/documentation/android/reference/com/google/android/gms/maps/GoogleMap.OnCameraChangeListener Feb 05 06:06:25 +canadiancow: i tried that. but i doesnt work :( what i want it. when i move the map with out zooming in or out i want to show for example a toast saying it is moved Feb 05 06:06:35 that does that Feb 05 06:07:22 +canadiancow: its working only for camera zoom in and out :( wierd let me check again Feb 05 06:08:38 +canadiancow: thanks i had a zoom if condition inside :( Feb 05 06:09:07 "Unfortunately there is no direct or easy way to uninstall Java, so once installed the only way to remove it and all of its components completely is to reinstall OS X." what a piece of crap Feb 05 06:09:28 its 2013, no package management in the "world's most advanced os" Feb 05 06:11:56 Where is the version of a database kept so that an SQLiteOpenHelper can discover that you are asking for a later version? Feb 05 06:17:53 hey guys. any idea how to get the viewport co-orginates of the map displayed on the screen to show content related to the map area. i am using Projection and VisibleRegion . but it only provides - NE and SW points. Feb 05 06:24:23 hey guys. any idea how to get the viewport co-orginates of the map displayed on the screen to show content related to the map area. i am using Projection and VisibleRegion . but it only provides - NE and SW points. Feb 05 06:25:20 yes, it's necessary to repeat what you just said, even though no one else has said anything, and only 4 other emssages may have appeared on anyones' screen Feb 05 06:29:41 . Feb 05 06:30:19 er, I'm trying to get a litsView to update with new data when I update the ArrayList behind it Feb 05 06:30:36 I've tried http://stackoverflow.com/questions/8807758/array-adapter-notifydatasetchanged-will-not-work Feb 05 06:31:28 has anyone had any luck with dynamic updating of ListViews? Feb 05 06:32:08 ListViews update when you call notifyDataSetChanged() on the adapter that backs it Feb 05 06:33:07 I've tried that Feb 05 06:33:28 I'll post the onClick method, hopefully it will show you what I've tried Feb 05 06:33:39 I'm trying to writea GLSL fragment shader, that chooses color by indexing an array, as in »float c = floatarr[gl_PrimitiveID]; gl_FragColor = mix(color0, color1, c);« …But I get the error »'gl_PrimitiveID' : undeclared identifer« ...is it not supported [in some versions]? is there any way around this? Feb 05 06:33:56 do you bind the button's onclick event to the function clearDB? Feb 05 06:34:25 http://pastebin.com/TEZrzUmr Feb 05 06:34:42 I've commented the lines out but left them in to show what I have tried Feb 05 06:34:54 tlvb: gl_PrimitiveID is for tessellation which is not supported in GL ES 2.0 Feb 05 06:35:08 b0nn: you are changing the adapter and not telling the ListView... Feb 05 06:35:18 studybot_: I tried a .clear() and that cleared the list, but did not replenish it Feb 05 06:35:34 JakeWharton: oh, how do I tell the ListView? Feb 05 06:35:46 [22:32:10] ListViews update when you call notifyDataSetChanged() on the adapter that backs it Feb 05 06:36:06 oh, line 15? Feb 05 06:36:07 also Feb 05 06:36:12 did you call listView.setAdapter(aAdapter) Feb 05 06:36:33 studybot_: argh, that might be it Feb 05 06:36:45 you are accessing instance variables in a different activity Feb 05 06:36:46 romainguy_: I see, I'm very new at this, it seemed a convenient way of not having to make a different gl triangle drawing call for each different type of color of triangle I wanted. Feb 05 06:36:50 no, static variables Feb 05 06:37:09 tlvb: just assign the colors as vertex attributes Feb 05 06:37:49 romainguy_: I will look into that, thanks. Feb 05 06:39:52 b0nn: you need to do some basic tutorials, but you cannot attempt to change things in another activity Feb 05 06:41:36 JakeWharton: I can't find a way to send the information back either Feb 05 06:42:10 There is supposed to be a listener I can send the notifyDataSetChanged Feb 05 06:42:56 I've also tried finding the listview in the onclick activity Feb 05 06:44:10 b0nn: ArrayAdapter owns the array; it will notify the lv of changes as long as you use its methods for mutating it Feb 05 06:44:24 its a dumb class, just use BaseAdapter ;) Feb 05 06:44:25 hello Feb 05 06:44:53 is there something similar to cocos2d on ios(2d game engine) but for android? Feb 05 06:44:55 oh Feb 05 06:45:06 what would you suggest Feb 05 06:45:12 an onResume() will trigger will be helpful? Feb 05 06:45:18 g00s: he's in a different activity Feb 05 06:45:20 http://stackoverflow.com/questions/10019428/adding-a-list-view-item-from-another-activity-solved Feb 05 06:45:24 dwarder www.cocos2d-x.org Feb 05 06:45:27 pass ENUM value to putExtra is ok? Feb 05 06:45:49 squ: some trickery is required to get it back out :) Feb 05 06:45:58 ENUM id { last, prev }; putExtra("message", id.prev) Feb 05 06:46:11 studybot_: is it possible to create multiplayer games with it? Feb 05 06:46:19 I'm expecting that to work :) Feb 05 06:46:29 yes Feb 05 06:46:43 studybot_: between ios and adnroid? Feb 05 06:47:05 yes Feb 05 06:47:16 g00s, better to avoid? Feb 05 06:47:33 squ: its doable within your app Feb 05 06:47:46 studybot_: awesome, thank you Feb 05 06:47:57 you'll have to rummage around the code to find out how they do it Feb 05 06:48:05 studybot_: you nick has mislead me at first =) Feb 05 06:48:14 nothing like spending 2 hours on something only to realize that it could be done a much simpler way Feb 05 06:48:50 mislead = confused Feb 05 06:48:51 lol Feb 05 06:51:40 onResume() FTW! Feb 05 06:51:43 \o/ Feb 05 06:52:18 | Feb 05 06:52:21 andkore: I believe that is pretty common problem :P Feb 05 06:52:22 \ Feb 05 06:52:41 vavirta: yeah, I can imagine Feb 05 07:17:33 is there a good way of removing the background image for a FragmentDialog? Feb 05 07:21:31 I'm looking at a crash report from my application where getContentResolver.query returned null. Feb 05 07:21:45 The Uri parameter passed to the query method was from: data=Intent { dat=file:///storage/sdcard0/Android/data/com.dropbox.android/files/scratch/Stuff 1/1ctumblr_ks0gtd2uMj1qzdnuwo1_500.jpg }} Feb 05 07:28:07 Since it's a post mortem crash from an end users device, I can't check whether that path exists or not. I'm looking for clarity on why the query would return null. Feb 05 07:28:43 This is in the activity result of a file picker (ACTION_GET_CONTENT) Feb 05 07:40:53 Maziz: my java install is totally f'd up. i give up, probably reinstall the os Feb 05 07:40:57 is there a way to use a regular Fragment as a DialogFragment? Feb 05 07:41:11 with casting or a similar method? Feb 05 07:41:12 WHAT? Feb 05 07:41:19 what happen? Feb 05 07:41:22 i thought it was fine Feb 05 07:41:41 i removed the oracle jvm, tried to get the apple version back Feb 05 07:42:16 Maziz: can you tell be where the symlink to /usr/bin/java goes to ? Feb 05 07:42:36 wondering if my oracle jdk .pkg post install script didn't do something Feb 05 07:46:39 romainguy_: since you wrote the book on rich java guis :) bif you were going to write a cross platform java desktop app now, what UI toolkit would you use? Java FX 2 ? Swing Still ? Feb 05 07:47:22 Swing is abandoned and JavaFX 2 I'd be worried they rewrite it one more time :p Feb 05 07:47:35 The advantage of Swing are all the existing libraries out there Feb 05 07:48:00 what a train wreck Feb 05 07:48:18 thx Feb 05 07:49:35 yeah Feb 05 07:49:39 they fucked it up well Feb 05 07:49:44 they had a chance circa 2007 Feb 05 07:49:54 but it took them 5 years for JavaFX 2 to come out Feb 05 07:50:00 and now nobody cares anymore Feb 05 07:50:13 so glad I didn't take the job back then... Feb 05 07:50:45 phew, lucky man Feb 05 07:52:35 hey romainguy since youre java savvy :) I have a canvas and i set its minimum,maximum,and preferred dimensions to one dimension. 550, 400. When i fill a rect with those numbers i get 10px on the right and 10px on the bottom unfilled Feb 05 07:52:36 any ideas? Feb 05 07:53:05 if you are talking about Canvas from AWT I am not helping you :) Feb 05 07:53:12 lol Feb 05 07:53:18 =[, why all the hate on AWT Feb 05 07:53:44 isnt it better to make game draw calls on Canvas though versus JFrame? Feb 05 07:53:47 Jpanel* Feb 05 07:53:52 I used AWT/Swing for ~15 years Feb 05 07:54:04 a JPanel is double buffered Feb 05 07:54:08 which is what you want Feb 05 07:54:14 and it gives you a Graphics2D Feb 05 07:54:20 with much better drawing features Feb 05 07:55:05 i used AWT/Swing for 45 minutes Feb 05 07:55:22 and i cam in touch with java in 1996 Feb 05 07:55:31 I have Canvas doublebuffered with the same features and I would use JPanel in a heartbeat, but i've read numerous amounts of forum posts about how games that don't make calls for Swing should be using Canvas instead of JPanel Feb 05 07:55:57 btw. i am still waiting for CorelOFFICE (java and browser based) ;) Feb 05 07:56:11 could you perhaps rebute that or explain real quick why I should be using JPanel instead of Canvas for a game? Feb 05 07:56:32 sorry romainguy_ , look what i started Feb 05 07:57:10 Trinity: because what I just said :) Feb 05 07:57:25 Trinity: and you can also run Swing with hardware acceleration Feb 05 07:57:49 not using Swing may have made sense 10 years ago but now... Feb 05 07:58:36 g00s: Feb 05 07:58:36 symlink? Feb 05 07:58:38 hmm, will do. will try to get an example engine running haha thanks regardless :) Feb 05 07:58:49 ^ with JPanel* Feb 05 07:59:34 apple's download site is so aweful; looking for the java dl you pull up all these pieces of misc crap Feb 05 07:59:54 g00s: that's what consumers want! Feb 05 08:00:18 g00s: right now my symlink points to 1.6 Feb 05 08:00:20 buy an iPad and you get misc crap Feb 05 08:00:26 i think can just change the symlink Feb 05 08:00:38 Maziz: hehe, NOOOOO Feb 05 08:01:04 because there are like 30 tools in /usr/bin that are symlinked to a sumlink to a symlink to your java install Feb 05 08:01:07 could just replace it Feb 05 08:01:23 there will be blood Feb 05 08:02:00 lol Feb 05 08:02:32 export CLASSPATH=`find -type d /` Feb 05 08:04:45 hmm Feb 05 08:04:45 when i which it display 1.7 Feb 05 08:04:45 sorry 1.6 Feb 05 08:04:45 but java -version shows 1.7 Feb 05 08:05:33 is there a command line parameter for the emulator to delete its snapshot? Feb 05 08:05:54 it was easier bootstrapping gentoo from nano than fixing this java mess on mac Feb 05 08:06:40 h mm Feb 05 08:07:00 Maziz: do you have 1.6.0_37 ? Feb 05 08:09:10 yeah i do Feb 05 08:09:40 ok, time to lsbom all java stuff to xargs rm -f Feb 05 08:09:50 * g00s nukes site from orbit Feb 05 08:10:43 hey guys :) how would you guys optimize your app for mobile data traffic? Feb 05 08:10:52 dont send much :) Feb 05 08:10:59 that will be $5 Feb 05 08:11:21 i have the problem that it seems that my app uses too much data but i need all this data... Feb 05 08:12:30 Styler2go: have a look at the protocols you use, perhaps you can strip them Feb 05 08:12:33 use compression Feb 05 08:12:56 Styler2go: you aren't giving us much to go on you know ... Feb 05 08:13:26 Styler2go: http://developer.android.com/training/basics/network-ops/managing.html Feb 05 08:13:27 maybe i should count all data in and out to see where it leaks to much data? Feb 05 08:13:38 thanks for the link :) Feb 05 08:14:58 but thats more for general advice on how you make your sending behavior better, not on how to optimize your traffic Feb 05 08:15:10 for that you really should look if you really need all that traffic and what it is Feb 05 08:15:37 if you need it (and it is really lot of traffic) I would warn the user about that if she isn't on wifi Feb 05 08:18:26 hmm Feb 05 08:19:12 also at the last i/o, Jeff Sharkey or Reto talked about using the radio wisely Feb 05 08:19:16 the problem is, i dont know where the leak is, so i think i will count the data everywhere for about one or two days Feb 05 08:19:36 is tehre an easy way to do that or should i write own functions? Feb 05 08:20:05 android 4+ has an nettwork traffic counter for each app, but won't help you to find where inside your app that traffic is Feb 05 08:20:13 yes Feb 05 08:20:20 so i will make my own little thing.. Feb 05 08:20:33 Styler2go: you dont know what your app is doing? seriously ? Feb 05 08:21:37 noo Feb 05 08:21:37 i ihave many data connections Feb 05 08:21:38 'leak' sounds like its downloading behind your back or something Feb 05 08:21:40 but i cant say whats using the most Feb 05 08:22:05 there are listviews loaded from my server, theres a chat, some background data, its much. almost every activity Feb 05 08:22:22 also theres a youtubefragment Feb 05 08:22:45 Styler2go: sounds like maven Feb 05 08:22:54 yes theres one background task running every 10 minutes Feb 05 08:23:21 but its download an bery small json string... i think this wont be the leak... Feb 05 08:24:20 maven? Feb 05 08:24:27 nm, joke Feb 05 08:24:48 maven downloads the whole interweb the first time you run it Feb 05 08:25:30 Trinity: http://www.slate.com/articles/technology/future_tense/2013/02/silent_circle_s_latest_app_democratizes_encryption_governments_won_t_be.single.html Feb 05 08:26:27 Styler2go: have you looked at your network usage with ddms ? http://tools.android.com/recent/detailednetworkusageinddms Feb 05 08:33:08 no Feb 05 08:33:08 i will do Feb 05 08:39:43 timroes, my boss recommends me to add spaces to dialog button text, so that two button would have same width Feb 05 08:44:13 http://ft.trillian.im/f9a4bf4963860c6af13335c6d005f99c2496a025/6ecv6VAuiW8XwYXcvqOaODXBTNA7h.jpg seems ok... Feb 05 08:44:15 found the biggest leak... Feb 05 08:44:15 thanks for the tip with the ddms network usage Feb 05 08:45:10 squ: alignment is always a good thing :) Feb 05 08:45:30 but for sure, don't do i t by adding spaces (if he meant the character and not space in general) Feb 05 08:46:03 just wondering, aren't the dialog buttons always automatically sized equaly? Feb 05 08:48:13 if i write my android app in C/C++ with the latest version of NDK, i still need an instance of Dalvik VM to run the app? Feb 05 08:48:54 squ: http://developer.android.com/guide/topics/ui/dialogs.html looks like buttons are equaly sized Feb 05 09:26:56 timroes, on 2.2 dialog buttons are equal, but later they shink, expand according to text Feb 05 09:27:14 the above screens are definately not from 2.2 :) Feb 05 09:28:45 you can try yourself Feb 05 09:29:01 but in general I wouldn't recommend you change the behavior of that, Feb 05 09:29:30 they have a reason, why they styled their UI the way they did, so don't mess up with it Feb 05 09:30:02 we decided to make a custom dialog Feb 05 09:30:11 because? Feb 05 09:30:12 boss decided Feb 05 09:30:32 because my suggestion to use question "Do that" [Yes] [No] Feb 05 09:30:34 is "bad" Feb 05 09:30:54 he wants [Close] [Do that] Feb 05 09:31:11 squ: well tell your boss it's "android" and NOT windows Feb 05 09:31:11 i really hope that is an important undoable action you are doing Feb 05 09:31:18 because otherise DONT use a dialog at all Feb 05 09:31:28 ^ Feb 05 09:31:33 squ: also "NOT do x" ist very very very bad in terms of psychology Feb 05 09:32:07 we wasted an hour in discussion Feb 05 09:32:12 timroes: "Do you want to launch the nuke?" Feb 05 09:32:23 would be a good example of when to use a dialog :D Feb 05 09:32:36 are you sure you want to close this app Feb 05 09:32:43 is the pretty worst example of when to use a dialog imho Feb 05 09:32:49 no it's not Feb 05 09:32:53 yes it is Feb 05 09:32:54 timroes: well it depends Feb 05 09:32:59 Do you want to close this app is awful Feb 05 09:32:59 no it's not Feb 05 09:33:01 timroes: i have a login dialog Feb 05 09:33:04 okay perhaps: do you want to download our new game :D Feb 05 09:33:08 is an even worse dialog Feb 05 09:33:10 so back back back will force you to login Feb 05 09:33:18 "please rate this app" is the worst dialog ever Feb 05 09:33:26 instant 1 star Feb 05 09:33:27 pragma-: 100% full ack Feb 05 09:33:40 pragma-: I think i find download our new game even a little bit more annoying then rate our app :D Feb 05 09:33:43 Asking the user if he wants to close the app when pressing back repeated times is pretty redundant Feb 05 09:33:45 but its close to each other :D Feb 05 09:33:46 very close Feb 05 09:33:56 sonOfRa: no it's not, sometimes you press back once too many and whoops Feb 05 09:33:56 timroes, it is undoable -- [Close] [Send sms to the store] Feb 05 09:34:05 "Do you want to close this app?" - "No I'm just a retarded monkey smashing buttons" Feb 05 09:34:16 There's a reason you can't overwrite the home button with that kind of crap Feb 05 09:34:20 more like, "no your app is retarded for having so many activities" Feb 05 09:34:26 sonOfRa: thats also a bad usecase, because they should have used the IsUserAMonkey m ethod to get that programamtticaly.. Feb 05 09:34:32 no need to ask the user if he is a monkey :D Feb 05 09:34:37 they have isUserAGoat Feb 05 09:34:51 besides, my app has a confirm exit dialog and it also has a checkbox to "never show this again" Feb 05 09:34:53 http://developer.android.com/reference/android/app/ActivityManager.html#isUserAMonkey%28%29 Feb 05 09:34:53 so there, win-win Feb 05 09:35:08 oh nice, they have that too Feb 05 09:35:27 is that used for monkeytest, or just an easteregg like isUserAGoat? Feb 05 09:35:58 tried to figure it out, but in the code its calling a lot of lose coupled methods Feb 05 09:36:08 and I just added a "Send bug report/feedback" dialog with a checkbox for "Attach debug log" Feb 05 09:36:08 what makes it for me pretty hard to get to the actual call :D Feb 05 09:36:12 thing of beauty Feb 05 09:36:21 and at some point i came into a recursion, but i guess i missed some turn :D Feb 05 09:36:26 but at least its not just return false Feb 05 09:36:31 alright, if you're adding never show this again, it's ok i guess Feb 05 09:36:47 why do you askl the first time? Feb 05 09:36:51 but every time i try to exit an app with back and it asks me if I really want to exit, it really pisses me off Feb 05 09:36:52 user types into the edittext and it opens an e-mail intent to send the report to me, and if the checkbox for debug log was checked, it attaches the logcat output as an e-mail attachment Feb 05 09:36:57 no more asking users for logcats Feb 05 09:37:05 i still don't think its okay :) Feb 05 09:37:27 sonOfRa: that's why I have a checkbox on my confirm exit for "never show this again" Feb 05 09:37:31 now stop whinging Feb 05 09:37:38 but why do you show it in the first place? Feb 05 09:37:44 because your mother is a goat Feb 05 09:37:54 not a reason, she doesn't use android Feb 05 09:38:54 I haven't found any app yet where the do you want to close dialog made any sense. You can save states, you can run in backgruond if it makes sense, I have never seen any real reasons on why you would use that dialog Feb 05 09:39:18 there is google video on 'why exit' Feb 05 09:39:49 because my app has an expensive start-up Feb 05 09:39:59 and the back button actually exits Feb 05 09:40:04 properly exits Feb 05 09:40:26 doesn't re-inits static finals? Feb 05 09:40:27 pragma-: i put that expensive stuff in my application object Feb 05 09:40:40 my back button exits completely Feb 05 09:40:45 no objects are left laying around Feb 05 09:41:03 i fucking hate apps that are still running after i exit Feb 05 09:41:21 why? Feb 05 09:41:21 >I fucking hate apps that behave the way they are supposed to behave Feb 05 09:41:24 what the fuck? Feb 05 09:42:13 because i'm a professional and i don't leave traces behind Feb 05 09:42:30 * pragma- adjusts his tie Feb 05 09:43:01 do you code in C for android? Feb 05 09:43:11 pragma-: well you are talking about your feelings on the linux memory management ;) Feb 05 09:43:18 probably in assembler Feb 05 09:43:18 that's professional xDDDDD Feb 05 09:53:07 is it easy to do C for android btw? Feb 05 09:53:15 is it supported etc Feb 05 09:53:29 like, for example, gtk Feb 05 09:53:48 dafuq? why you want gtk on android :D Feb 05 09:54:06 just curious, how to switch away from java Feb 05 09:54:16 because java is not supported by vim omni completion Feb 05 09:54:35 squ: gtk on android? Feb 05 09:54:41 squ: http://www.vim.org/scripts/script.php?script_id=1785 Feb 05 09:55:59 timroes, that one doesnt work Feb 05 09:56:12 in general i would use an ide Feb 05 09:56:22 i mean... managing projects with out an ide Feb 05 09:56:25 pain in the ass Feb 05 10:00:09 So, you want to develop android in C because your editor plugin doesn't support java?! Feb 05 10:00:20 makes sense Feb 05 10:00:24 noooot Feb 05 10:00:26 :D Feb 05 10:00:46 and especially much sense it does, since vim editor function you can enable in every IDE I know Feb 05 10:01:24 squ: http://www.vim.org/scripts/script.php?script_id=1785 Feb 05 10:01:31 oh wait, timroes said that Feb 05 10:01:59 as much as i hate eclipse for regular development, I really see no way around a proper IDE for developing android Feb 05 10:02:12 probably better of getting the vim plugin for eclipse Feb 05 10:02:13 sonOfRa: there are alternatives to eclipse :) Feb 05 10:02:17 proper autocompletion and javadoc integration are essential Feb 05 10:02:17 s/eclipse/java Feb 05 10:02:24 apparently there's also http://eclim.org/ Feb 05 10:02:31 that's why I said proper IDE in the second part of my sentence, timroes Feb 05 10:02:33 but I get by just fine without any autocompletion whatsoever Feb 05 10:02:38 all IDEs are shit Feb 05 10:02:44 netbeans rules :) Feb 05 10:02:49 shit. Feb 05 10:03:00 "dosbox edlin.com /dev/ram" Feb 05 10:03:45 real men type out javadocs by hand Feb 05 10:04:08 weenies commit code full of autogenerated method stubs Feb 05 10:06:48 this made my day https://threatpost.com/en_us/blogs/wireless-carriers-put-notice-about-providing-regular-android-security-updates-020413 Feb 05 10:07:13 SEO ! Feb 05 10:10:48 dafuq does search engine optimization have to do with that? and what is soghoain going to do? Feb 05 10:11:54 seo is just a joke, nm Feb 05 10:26:16 there should be a Programming Language Protection Service Feb 05 10:26:29 who should bust down the door at Oracle and take Java away from them Feb 05 10:26:44 sounds good to me Feb 05 10:27:16 any other company that would put out updates like that would have been crushed by angry market forces Feb 05 10:27:41 adobe is just as bad Feb 05 10:27:56 holy shit, it's snowing like mad Feb 05 10:28:00 g00s: yeah, they are, I don't get why people tolerate that Feb 05 10:28:57 adobe should expect a visit by the PLPS as well Feb 05 10:29:37 Would they mistreat Java so badly to spite Google and all who rely on it? Feb 05 10:29:53 they are not an engineering driven org Feb 05 10:29:55 or is this just Oracle doing what Oracle does best Feb 05 10:30:07 its all about marketing, squeezing customers for money, etc Feb 05 10:30:15 true, I made a joke last week about the pace of Java updates from Oracle Feb 05 10:30:29 you have no idea how hard it is to train a lawyer to program ;) Feb 05 10:30:30 when we had oracle products at the last company i was at, i swore they were total idiots (their engineers) Feb 05 10:30:40 Worst thing about java updates is the fucking Ask! Toolbar Feb 05 10:30:52 yeah, gotta remember to disable that fucking pos Feb 05 10:31:03 stupid fuckheads Feb 05 10:31:09 sonOfRa: yeah, "While you're installing new vulnerabilities, why not have some adware as well!" Feb 05 10:31:35 i'm sure thats why Gosling left Feb 05 10:32:20 their attempt to copyright APIs also ranks high in "Douchebaggery of the Decade" Feb 05 10:32:52 so remember it folks, if PLPS ever becomes a thing Feb 05 10:32:57 you heard it from me first :p Feb 05 10:33:19 :D Feb 05 10:35:58 javing only used java on android for the past 2 years, i realize - using jse 7 on desktop - i dont know wth i'm doing Feb 05 10:36:17 like, whats the architecture for a desktop java app Feb 05 10:36:30 g00s: yeah, what's Swing etc? :) Feb 05 10:36:38 yeah, wut is dat Feb 05 10:38:01 i read somewhere that oracle is discontinuing JME Feb 05 10:38:33 I've never used it AFAIK, was that their mobile offering? Feb 05 10:38:34 g00s: it's... more normal? Feb 05 10:38:42 (Java SE) Feb 05 10:38:48 and you get to play with the "wonderful" CLASSPATH Feb 05 10:38:54 \o/ Feb 05 10:39:15 i'm going to go nuts and add maven , and spring, just for the hell of it Feb 05 10:39:35 oh, i guess dagger now Feb 05 10:39:43 Spring supposedly simplifies a lot Feb 05 10:39:45 slf4j, yey, more shit Feb 05 10:39:53 look into qi4j :D Feb 05 10:41:01 oh, looks like apache isis Feb 05 10:42:19 ah, its Java SE Embedded now Feb 05 10:42:42 g00s: JME was pretty limited, and the higher CDC profiles didn't seem to get much use Feb 05 10:43:06 actually, I more fondly recall "proper" J2SE on mobiles Feb 05 10:43:32 p_l: yeah, if you listened closely, you could hear the cpu grind to a halt Feb 05 10:43:42 belgianguy: nope Feb 05 10:43:57 actually seemed to work right, just not exactly fast Feb 05 10:44:17 belgianguy: well on my old phone (a pre Android Samsung) it was very slow Feb 05 10:44:28 well most likely the hw wasn't up to spec either Feb 05 10:44:34 belgianguy: J2ME? Feb 05 10:45:09 well, I guess it was J2ME Feb 05 10:45:24 Java was a pretty low-priority thing on "featurephones" Feb 05 10:45:42 they are, let's say, more "classic" embedded environment Feb 05 10:53:10 I would like to change one of the action bar icons upon a click inside a fragment. How do I get hold of the action bar item in order to use a call to setActionView()? Feb 05 10:55:35 p_l: have you use Qi4j ? Feb 05 10:55:55 g00s: nope, no project to use it in Feb 05 10:56:01 the ones I do in java are all about maintenance Feb 05 10:56:24 well, it may have one method i like, i'll add it as a dependency in maven - can't hurt Feb 05 10:56:29 XD Feb 05 11:01:49 have fun downloading the entire internet, g00s Feb 05 11:02:32 you cant avoid dl'ing the interwebs with maven Feb 05 11:02:52 true Feb 05 11:17:42 Hi Feb 05 11:21:00 I do .setItems, .setTitle, .setMessage for dialog Feb 05 11:21:08 but list is not shown Feb 05 11:22:47 teehee, this tweet is great Feb 05 11:23:08 AV is homeopathy for computers: This software was in contact with malware in the past, so it’ll recognize other malware in the future. $79 Feb 05 11:34:11 does anyone know if there is any royal free sound effects out there? Feb 05 11:34:22 for button clicks and stuff Feb 05 11:46:41 Norton Antivirus almost halved your infection rate Feb 05 11:46:57 not because of its protection, but because it slowed your system down by 50% Feb 05 11:47:43 I'm not sure if OS X and other Linux OS'es can be just labeled secure like that Feb 05 11:47:55 an uneducated user might just leave the front door open Feb 05 11:57:02 sorry Feb 05 12:02:21 Hola :) Feb 05 12:02:33 oh, oof. brb. Feb 05 12:04:31 hi again :) ..so i've overcome alot of obstacles during the last month of getting into java, i've taken all the advice i could find on google into account and I'm quite satisfied with the results... until I had the crazy idea of checking up on some of the background data for my app Feb 05 12:05:13 ok. back. Feb 05 12:05:13 ..it's a live wallpaper, and all the time i've been working on it i've experienced that the homescreen has been lagging more than usual.. but i was also aware that my code was sloppy, so i thought this would solve itself as I progressed Feb 05 12:05:22 I have a question about decompile and compile. Feb 05 12:05:41 ..however, i'm feeling quite done now, and my live wallpaper is eating up 32+mb of ram Feb 05 12:05:48 (i just found this out) Feb 05 12:05:59 even I as a noob can tell that this is not good Feb 05 12:06:19 but i also can't think of any solution on how to solve this Feb 05 12:06:35 for testing purposes only, i took an apk of an app and followed a tutorial from xda. Feb 05 12:08:18 lime: use debug tools like ddms to see what you use that memory for, perhaps you can optimize your memory usage Feb 05 12:08:43 I decompiled the apk, opened the strings.xml, changed a value, then, i compiled the folder and then i took the resources.arcs from the build folder and put it into the original apk, and overwritten the original apk in my data/apps folder (in my phone). Feb 05 12:09:16 the problem is that when I try to open the app, i get a FC, so I make a reboot and when the phone loads, i don't see the app anymore (but I can see it in my data/apps folder). Feb 05 12:09:22 Did i do it ok? Feb 05 12:10:20 Again, only for myself and for testing, I don't have any intention to steal the app or do something illegal with it. Feb 05 12:10:49 alright, so i opened up the DDMS (yes, for the first time :s) ..and it tells me "Thread updates not enabled for selected client" ..and alot of other tabs not really giving me anything "important" output Feb 05 12:10:55 ..how do i use this tool correctly? :) Feb 05 12:11:10 lime: have you read the docs? http://developer.android.com/tools/debugging/ddms.html Feb 05 12:11:28 ofc i haven't read the docs :s Feb 05 12:11:42 hehe, been trying to avoid heavy reading as much as possible Feb 05 12:11:50 which i guess is the reason i'm having troubles like this now Feb 05 12:13:20 So, no one knows anything about decompile and compile? Feb 05 12:14:47 KayTrax_: you've missed a step http://developer.android.com/tools/building/index.html Feb 05 12:14:48 KayTrax_, some probably do, i can't help you though.. but stick around.. at some point someone will show up with the knowledge you require ;) Feb 05 12:16:10 lime, patient is my friend :D Feb 05 12:16:14 thanks appel1. Feb 05 12:16:28 appel1, which step? signing? Feb 05 12:16:45 KayTrax_: that's my guess Feb 05 12:17:02 KayTrax_, funny cause i have quite the opposite relationship with patience :p Feb 05 12:17:23 heh, Google really needs to add a spam filter to b.android.com Feb 05 12:17:42 appel1, well, it's not a must if you want to use it only on your phone and for testing. Feb 05 12:17:50 Every tutorial says that so it's weird. Feb 05 12:18:12 is it easy to implement ads to existing app and just make the content scrollable which without ads are taking the entire screen? Feb 05 12:18:21 howdy, I am trying to use the power button as a camera button KeyEvent.KEYCODE_POWER... but when I use it, it also screen locks the phone... I don't allow the event to be propogated either... perhaps there is another event I am missing? Feb 05 12:18:29 or is it hux flux and quite tricky? Feb 05 12:18:33 is aptoide a warez market or merely a meta-market platform? Feb 05 12:19:43 KayTrax_: no, all apks must be signed http://developer.android.com/tools/publishing/app-signing.html Feb 05 12:21:00 hey, I'm playing with the MediaCodec APIs, and interestingly I can decode video with software decoder (OMX.google.h264.decoder) but when I try to decode with a hardware decoder MediaCodec.dequeueInputBuffer() method returns -1 over and over again after two successful iterations, which I believe are part of the video stream header. Any ideas why this happens? Feb 05 12:22:23 I mean, I am calling MediaCodec.dequeueInputBuffer() in a while loop, and for the first 2 iterations this method is able to return a >=0 buffer index buffer index Feb 05 12:22:59 appel1, yeah, i guess there is no escape even for testing purpose. I need to rely on the developer to take my strings.xml file and use it. Feb 05 12:23:01 is anyone working on video decoding on android? Feb 05 12:23:27 KayTrax_: or you could just sign the apk yourself Feb 05 12:25:00 Well, it's not my app so i can't do it. Feb 05 12:25:52 for example, I am on galaxy s3 using MIUI and in WhatsApp, the send button is in chineese. the person who translates the apps for miui, forgot to translate this key to english :) Feb 05 12:26:57 KayTrax_: you can sign it, but of course it might not work if WhatsApp has some kind of anti-tamper check :) Feb 05 12:27:33 KayTrax_: submit a bug report? Feb 05 12:27:39 i guess, but i think I will report this error to the MIUI ROM translators. Feb 05 12:28:00 belgian, I will. Feb 05 12:28:17 maybe it's not text, but an image asset they need to replace Feb 05 12:28:25 on MIUI they have a language packs so i guess it's different. Feb 05 12:28:27 but I bet they'll know the difference :) Feb 05 12:28:34 yeah, I guess. Feb 05 12:39:20 back again. I failed with my simple Adapter to update it. Can someone help me, to get a other ListView that I can update the Data in the ListView? http://pastebin.com/88sNYvmP Feb 05 12:39:47 appel1, so i've looked and the figures.. and even though this is russian to me (foreign language) ..i can spot some oddities, but not really sure what to make of them ... http://i.imgur.com/NGhnK5v.png Feb 05 12:40:11 what are these 1-byte arrays? Feb 05 12:42:37 lime: byte[] or boolean[] Feb 05 12:43:10 lime: you have 707 where the smallest is 24 bytes and largest 3516 MB Feb 05 12:44:15 memory saving <3 byte = boolean[8] Feb 05 12:45:41 I there a way to open a resource.arcs file? it is a binary one. Feb 05 12:47:33 hmm, alright, so all the heavy allocations are byte[] Feb 05 12:47:34 am I correct in what I am reading... I can't really use the power button within my app? Because that's something the user should only be able to use to navigate away/lock screen? IF thats true why's it acceptable for a camera app, but not my app which also takes a photo? Feb 05 12:48:51 I can't find any solid page about doing a task after a period of time, like deleting SMS after 1 day, 2 days, etc... Feb 05 12:49:00 can't google correctly Feb 05 12:49:53 does anybody here have any knowledge on whether or not google is going to get serious about audio in the near future? Feb 05 12:50:23 Sicp: AlarmManager might be what you're looking for Feb 05 12:50:34 I caught the hint of that, yes Feb 05 12:50:40 from some SO thread Feb 05 12:50:55 ok, so just mimic how alarm manager waits, and instead of trigger sound i trigger whatever my action is Feb 05 12:52:18 Sicp: no, you don't mimic the AlarmManager, you use it Feb 05 12:52:39 yea, I've started reading Feb 05 12:54:28 why isn't there a guide for it, only an API reference Feb 05 12:58:57 Sicp: I'm sure you'll be able to use it based on what's written there Feb 05 12:59:22 but it's just descriptions of what it does in general and what each method does Feb 05 12:59:37 why do some elements have that API Guides pages and others only API reference Feb 05 12:59:58 I mean I'll handle it no problem, but why doesn't everything have the "English" guide along with the API reference Feb 05 13:00:17 strange, maybe they don't think that everything needs as much explanation as say the App lifecycle Feb 05 13:00:42 Sicp: probably because they don't have infinite resources and need to prioritze Feb 05 13:01:10 Sicp: and the app lifecycle is a lot more important to understand so it is prioritzed Feb 05 13:01:15 yep Feb 05 13:03:16 alright, i'm finally being able to understand a bit of what's going on.. and one thing i noticed is 'Paint' is one of the big players.. Feb 05 13:03:28 and i'm using Paint p = new Paint(); quite often Feb 05 13:04:35 i should probably avoid calling this a couple of hundred times every frame... Feb 05 13:06:18 lime: they should get garbage collected though? Feb 05 13:06:19 appel1: you remember, I am the guy with the simpleAdapter wich does not update? Feb 05 13:06:37 lime: waaah you calling Paint p = new Paint() in each frame? :D Feb 05 13:07:05 appel1: I have to change from SimpleAdapter to ? Feb 05 13:07:21 in general don't allocate objects in an onDraw (or whatever draws your frame) method at all Feb 05 13:07:39 timroes, thanks alot.. it's comments like that i need Feb 05 13:07:43 :D Feb 05 13:08:01 so.. should i do all this initially or onSurfaceChanged? Feb 05 13:08:11 if you really really would need to create objects in the ondraw method for whatever reason, use some object pools if possible Feb 05 13:08:36 lime: for the Paints, i would just make a private member in the class, that it is used in Feb 05 13:09:07 alright, will try it out Feb 05 13:09:19 for the default paint, that doesn't hold any informations, i normally just create a class PaintUtil Feb 05 13:09:26 with a static method getDefault, Feb 05 13:09:39 that returns an static paint field , that is initialized one time Feb 05 13:09:57 makes sense Feb 05 13:10:59 so when you're calling PaintUtil later on.. in for example c.drawPath(path, paint); ..how do you do this? Feb 05 13:11:54 i guess i need to read a bit up on how these paint and path objects ACTUALLY works.. Feb 05 13:12:38 http://pastebin.com/tSsw38CQ ? Feb 05 13:12:46 i am not sure if I understoof your question right :) Feb 05 13:13:06 you did, i just had to see an example ;) Feb 05 13:13:08 thanks Feb 05 13:13:26 you;re welcome :) Feb 05 13:13:48 i'm so happy to find out that I might actually be able to save my project without any major rewriting Feb 05 13:14:54 sorry for disturbing :) where is the OEM USD_DRIVER ? do not have the folder \extras\google\usb_driver\ in my adt-bundle-windows-x86_64... Feb 05 13:17:59 Great. Just heard from Play support that not only the payments will be delayed, the payment reports (needed for doing taxes) will not arrive before the 25th of the month. Hello you-filed-your-revenue-tax-late fees! ffs Feb 05 13:18:45 till when do you have to do tax report in your country? Feb 05 13:18:52 1st Feb 05 13:18:56 before the 1st, that is Feb 05 13:19:05 ah so the monthly for VAT? Feb 05 13:19:10 and the reports need to be processed, then has to go through an accountant, and is only then filed Feb 05 13:19:22 yup Feb 05 13:19:32 i thought you have to reach in the yearly one from last year already :D Feb 05 13:19:35 I could care less about when the actual money arrives, I need those numbers Feb 05 13:19:39 hi all .. i am trying to display a url link on a textview using .setText(Html.fromHtml(....)) this works fine, however nothing happens when it is pressed, when i use .setMovementMethod(LinkMovementMethod.getInstance()) it works.... but then nothing happpens when i press the listview item the textview is a child of ... =( ? anyone had a simiar experiance ? or know what i need to change ? Feb 05 13:20:04 I don't understand what you just said, timroes :) Feb 05 13:20:16 yeah doesn't matter wasnt important anyway :D Feb 05 13:20:53 I'm kind-of annoyed that the Play guys just never take this shit into account. Everytime they change something I need to yell at them for messing with my taxes :) Feb 05 13:28:22 timroes, i followed (copy/pasted) your example but i get 'the method getDefault() is undefined for the type Paint" Feb 05 13:28:37 PaintUtil.getDefault Feb 05 13:29:01 oh.. i forgot to write that.. but i do have the class in there Feb 05 13:29:09 no wait Feb 05 13:29:15 i think i know what i did wrong Feb 05 13:30:14 ah! ok, solved :) you must download the USB_DRIVER with sdk-manager Feb 05 13:32:11 is it easy to implement ads to existing app and just make the content scrollable which without ads are taking the entire screen? Feb 05 13:32:12 or is it hux flux and quite tricky? Feb 05 13:33:03 timroes I suddently understood what you just said, lol. That too btw, but I already have those numbers, and the yearly can be delayed for like 6 months of needed. The monthly can't :) Feb 05 13:33:23 :D Feb 05 13:33:29 grrr using LinkMovementMethod.getInstance() inside a list view seems to make the listview not react to interaction Feb 05 13:33:38 yeah just wondered, because here I think yearly tax report have to be reached in may (august for companies) Feb 05 13:33:47 2.2.2 is having problems with . How to solve? Feb 05 13:37:51 RTE, unable to resume activity. I simply try to load the preferences onResume with: protected void onResume() { super.onResume(); loadPrefs(); } Feb 05 13:38:01 It is working in onCreate Feb 05 13:39:20 added Bundle savedInstanceState as parameter and avoided the RTE Feb 05 13:43:05 but it wont do anything onResume Feb 05 13:43:50 Could someone who can build Android please "repo download frameworks/base/ 49541" I upgraded my OS, and can no longer build. I would like to know why it doesn't verify. Feb 05 13:44:41 hi. I'm currently developing in the middleware, esp. the KeyChain app (which runs with uid=1000). On the emulator, /mnt/sdcard is mounted with dmask=0702, which leads to 0075 permissions Feb 05 13:45:08 and apps running with uid=1000 can't write because 1000 is the owner and sdcard_rw is the group. Feb 05 13:45:58 If I close ActivityB and ActivityA appears again, shouldn't that trigger onResume() in ActivityA? Feb 05 13:46:59 Quacked> yes... output a log message in onResume to verify that its called Feb 05 13:47:01 Quacked Yes Feb 05 13:47:29 Chainfire: I did, and it wasnt called for some reason Feb 05 13:48:13 Quacked Could you check whether onPause is called? Feb 05 13:49:43 onPause is called Feb 05 13:50:40 wait, it worked now Feb 05 13:51:36 the problem looks to be with loading preferences in it Feb 05 13:58:38 Anyone any idea where I should search for a m3u streaming library? Feb 05 13:59:52 Silox| m3u files are just playlists. You can parse them yourself with a few lines of code. Feb 05 14:00:36 And what about a mp3 library then? :P Feb 05 14:02:13 Silox|, http://developer.android.com/guide/topics/media/mediaplayer.html Feb 05 14:03:46 Silox| as afflux pointed out, Android has supported MP3 decoding since I can remember Feb 05 14:03:50 AH, thank you Feb 05 14:03:55 Ok, with some more reasearch I found out that the following method works in onCreate but not in onResume. I get RuntimeException, uanble to resume activity: http://pastebin.com/2uhH8FLw Feb 05 14:04:04 I couldn't find it on the dev site yet :) Feb 05 14:04:15 nullpointerexception apparently Feb 05 14:04:51 any ideas? Feb 05 14:05:20 nullpointer exception in which line? Feb 05 14:05:32 Quacked So, perhaps the button is null Feb 05 14:05:34 Quacked, use adb logcat to get the exact traceback Feb 05 14:05:35 i assume, that you don't have an R.id.button1 view on screen in onresume Feb 05 14:06:25 timroes: that could be true, because the app crashed when I try to load ActivityB. Still, onResume is in ActivityA Feb 05 14:06:43 is it possible to lock device remotely.. and setup some password or somethhing? Feb 05 14:08:27 When I start ActivityB, ActivityA is first paused, then resumed. Why is that? Feb 05 14:08:58 Quacked: might you finish you activityb again or start activity A from it Feb 05 14:09:05 Ah. It's probably because ActivityB extends ActivityA Feb 05 14:09:10 eh yeah... Feb 05 14:09:18 Quacked That sounds like a bad idea to me Feb 05 14:09:31 you know that the parent methods get called then in acitivyt A? Feb 05 14:09:44 btw nothing to do with android, plain old basic java Feb 05 14:10:04 Yeah Feb 05 14:10:57 I had it extend ActivityA some time ago, but don't need it anymore Feb 05 14:11:26 But.. in ActivityA I have public static final String PREFS_NAME = "MyPrefsFile";. How do I access that in ActivityB in a proper way? Feb 05 14:11:59 ActivityA.PREFS_NAME ? Feb 05 14:12:03 I need to set preferences in ActivityB that should be read when starting/resuming ActitivyA Feb 05 14:12:30 * Quacked hides Feb 05 14:12:34 thanks appel1 Feb 05 14:15:43 'ello folks Feb 05 14:15:57 I have a small issue with view resizing when the keyboard is shown Feb 05 14:17:40 Namely... I inflate an overlay view into my fragment Feb 05 14:17:51 very similar to what facebook does with comments Feb 05 14:18:15 and want it to scale down when the keyboard shows, rather than pan Feb 05 14:18:27 I already did android:windowSoftInputMode="adjustResize" Feb 05 14:18:33 but it doesn't change anything Feb 05 14:18:38 Anyone got an idea? Feb 05 14:29:25 Well, turns out setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN) disables adjustResize Feb 05 14:29:26 jolly Feb 05 14:39:08 how do i make a a TextView auto change height, when having html content? problem is it stay's on one line ... unless i set the textview to a fixed width Feb 05 14:41:46 timroes, still around? Feb 05 14:42:01 yeah Feb 05 14:42:06 more round then around, but yeah Feb 05 14:42:12 hehe Feb 05 14:42:16 especially if I continue eating all that chocolate :D Feb 05 14:43:10 ok, so i've cleaned up big parts of my script.. and now one of the more frequent commands/methods/uhm.. in the AllocationTracker thingie is StringBuilder Feb 05 14:43:20 yeah Feb 05 14:43:31 is this another thing i should take care of? Feb 05 14:43:32 this is used everytime you "concatenate " + "some strings" Feb 05 14:44:02 yeah, well, i found out i could click a line in the tracker-thingie and it took me to String text = "" + fpsMeter; Feb 05 14:44:12 you should, if you have a place where you do concatenate a string a lot (e.g. inside a loop): for(..) { mystring += "i"; } directly use a StringBuilder instead of the string Feb 05 14:44:18 should i only set 'text' once? Feb 05 14:44:31 oh yeah that you DO want to replace :D with String.valueOf(fpsMeter) :D Feb 05 14:44:52 ooh Feb 05 14:45:12 so i should not just drop integers directly into string outputs? Feb 05 14:45:12 (might not lower the need for stringbuilders, I don't know, but it definately cleaner. You are not coding PHP!) Feb 05 14:45:33 Hi guys. One guy told me that his AVD doesn't finishes loading and repeatly got this BOOT FAILURE error. http://i.imagebanana.com/img/7utj83vt/Selection_193.png .. Any pointers? Thanks Feb 05 14:45:49 alright, that's good to know, thanks again timroes Feb 05 14:46:21 lime: and remeber, always you are tempted to make a lot of strnig concatinations , e.g. in a loop use StringBuilder directly Feb 05 14:46:51 like StringBuilder b = new StringBuilder("beginning"); for(..) { b.append("appendthat"); } String s = b.toString(); Feb 05 14:47:20 aaah, ok.. i'll keep that in mind Feb 05 14:47:40 luckily this project isn't really using strings for other than Log.d outputs Feb 05 14:47:51 but i'll need that knowledge in the future :D Feb 05 14:48:05 okay then you also want to rember something :) Feb 05 14:48:52 "sasd " + x + " .sadasd" => String.format("sasd %s .sadasd", x) Feb 05 14:49:24 any reason you changed x into s after => ? Feb 05 14:49:37 %s means, that this is a placeholder for a string Feb 05 14:49:46 kk Feb 05 14:49:52 what will be inserted is defined by the second parameter of the method Feb 05 14:50:09 ooooh.. i assumed that was a smiley :p Feb 05 14:50:14 the "x)" Feb 05 14:50:19 eh no :D Feb 05 14:50:20 damn you internet! Feb 05 14:50:21 http://developer.android.com/reference/java/lang/String.html#format%28java.lang.String,%20java.lang.Object...%29 Feb 05 14:50:31 alright.. then it makes sense Feb 05 14:51:02 http://developer.android.com/reference/java/util/Formatter.html and that for formatting instructions :) Feb 05 14:51:36 alright, got the links bookmarked.. they will definitely come in handy at some point Feb 05 14:54:07 out of curiosity how many of you do use IntelliJ instead of eclipse? Feb 05 14:55:47 mostly the cool kids :) Feb 05 14:56:43 hmm.. i'm cool.. i should use intelliJ then :p Feb 05 14:56:57 memoryleak: netbeans instead of eclipse Feb 05 14:56:57 (at least my mom told me i was cool) Feb 05 14:57:53 so wait.. if the cool kids use intelliJ, and timroes use netbeans.. does that make me hipster for using Eclipse? Feb 05 14:58:04 Is it bad practice to stack several startActivityForResult in a creation wizard? Feb 05 14:58:07 lime: no because mainstream uses eclipse.. Feb 05 14:58:14 eh wait yeah mainstream, it does make you a hipster :D Feb 05 14:58:24 there ya go :p Feb 05 14:58:38 i was hipster before it became hipster \o/ Feb 05 14:58:56 Hipsters now go mainstream because hating mainstream is too mainstream Feb 05 15:01:23 hehe, i almost made a girl not wanna talk to me cause i told her i was developing android apps.. and she asked me "what about iphone?" and i told her "f..k iphone!" Feb 05 15:01:46 if she wouldn't want to talk with you anymore 'cause of that be happy the talk ended! Feb 05 15:02:05 yeah true :) Feb 05 15:02:21 with that said.. that was probably the most intense thing that happened to me yesterday.. Feb 05 15:02:26 my life is so exciting \o/ Feb 05 15:02:36 :D Feb 05 15:02:42 you are a lime, what do you expect Feb 05 15:03:21 well, I don't usually talk with girls about me developing android apps. Even though I've made also iOS apps Feb 05 15:03:42 i stoped after "i don't usually talk with girls" :D Feb 05 15:03:52 should try that one though.. Feb 05 15:03:58 :D Feb 05 15:04:02 haha Feb 05 15:04:06 ok, brb Feb 05 15:05:22 lime, timroes, i dont even Feb 05 15:06:41 i just repeated :) But thanks Feb 05 15:13:19 how can I use an already Parcelable data structure in my AIDL? Feb 05 15:27:41 hi, I have a web-based php+mysql app with statistical/graph data, I'd like to make an android interface for...but I'd like to just focus on the frontend, I already have raw JSON/whatever data from my website. is there an easy way to make an interface that shows charts, graphs, etc of this data? Feb 05 15:29:51 There's a few libraries that do charting... alternatively you can load some js charting framework in a webview. Feb 05 15:32:49 TheTrash, I'm totally new to android development.... are android apps done with html5, js, etc? Feb 05 15:33:36 tomasm-: not normally, it's Java. Wouldn't hurt to start reading at http://developer.android.com/index.html Feb 05 15:35:05 well specifically i am just going through menus and drilling down to different data, specifically my own internal web analytics... i really only need a way to present JSON data as a chart and/or a line graph... I would think coding Java would be overkill, that something out there would do what I need Feb 05 15:36:21 You can choose to use an html5/js framework like phonegap or titanium... but that would take time to learn as well, and it will result in a suboptimal user experience. Maybe you just want a mobile site that can be accessed from the browser? Feb 05 15:37:30 yeah I dont want to have to 'zoom in' to see the page (clear on the page), and having a simple button at the top to pick a different data set to look at would be nice. nothing too complex. Feb 05 15:37:34 Hi guys. I have a class in my tomcat server that holds data associated with various user account information. I am new to java/android so bare with me. The data is stored in a 'Person' object that contains parameters holding the 'persons' name/address/etc. In java/android how can I query the server to show all instances of every 'Person' object? Feb 05 15:47:08 is lights out mode the same mode where soft navigation keys turn into dots (on Galaxy Tablets for instance)? And is it only available at apilevel-11? Feb 05 15:49:06 KillmeSoftly: you can start reading about the available android http clients on http://android-developers.blogspot.com.br/2011/09/androids-http-clients.html Feb 05 15:49:45 when your apps get a huge dl bump but you can't find out where it came from… how do you find out where it came from ? Feb 05 15:49:56 ask your users :> Feb 05 15:50:08 i saw someone mention "free app of the day" but not sure what/where that is Feb 05 15:50:45 anyone able to answer my question? :/ Feb 05 15:50:55 free cookie for whomever does Feb 05 15:51:03 funkbox: amazon store? Feb 05 15:51:24 not listed Feb 05 15:51:32 some other market store? Feb 05 15:52:05 the play store Feb 05 15:52:46 funkbox: if it's some site you're featured on, you can do a google search for your Play store link and limit it to the last week or month. If the source is not a site and you're not featured in any of the main stores, then it's hard to find out. Feb 05 15:53:21 TheTrash: found it ! Feb 05 15:53:32 Trying to decide if I'll write my subscriptions in IAB API 2, or hold out for version 3. Any whisperings if V3 will be done within the next 2 months? Feb 05 15:53:40 TheTrash: thanks dude/ladydude Feb 05 16:00:13 Edman - thank you Feb 05 16:04:53 barque: I believe so, yes Feb 05 16:05:06 barque: soft key navigation doesn't really exist on lower api levels because they have mandated hard keys Feb 05 16:07:21 how can I "lock" the screen orientation on an activity? I do not want the activity to be able to go into lanscape mode when the user turns his/her device, I only want it be be a portrait orientation (always). Feb 05 16:07:57 a few weeks ago i saw some web utility that you past some xml and it generates all the findviewbyid bindings to variables Feb 05 16:08:00 any idea what it was Feb 05 16:09:22 is adding android:screenOrientation="landscape" Feb 05 16:09:22 android:configChanges="keyboardHidden|orientation|screenSize"> Feb 05 16:09:24 hello. Ive a Service which need to sync a whole folder with subfolders. Files are submitted with HTTPClient. Everythink works fine. Now i dont want to submit the same file again later and jump over it. Now im thinking to write in a Text-File all Uploaded Files and pass it on each fileListing. Is there a better way to do that? Maybe serialize an ArrayList? Best would be to check for Filename Feb 05 16:09:24 AND FileSize because same Filenames may change Feb 05 16:09:28 the right practice? Feb 05 16:12:26 KillmeSoftly: screenOrientation, set it to "portrait" not "landscape" Feb 05 16:13:22 Alright.. new observation :) ..when i first load my live wallpaper onto my device it's using about 11-12mb of ram.. then i go into live wallpaper > choose my lwp > click "set lwp" and now it's using ~18 mb of ram.. further if i go into settings for the lwp i reach ~25 mb Feb 05 16:13:28 timroes.. explain! :p Feb 05 16:14:15 hey all, in my android ndk app i'm having issues including boost unordered_map Feb 05 16:15:41 how to resolve a problem where it say that @id/server_icon is undefind .. ? i define the ID below in the m Feb 05 16:15:41 lov - thank you...i found that out and it works! I'm just curious if, in your opinion, is that the best practice? Feb 05 16:16:12 I know how Android can be quarky about things like that Feb 05 16:16:15 how to resolve a problem where it say that @id/server_icon is undefind .. ? i define the ID below in the xml file where i am trying to use it.. if i edit and then save the file.. the error go away, but when i try to compile it it wont Feb 05 16:16:54 hrm, so how do i include boost unordered_map in my android ndk project? Feb 05 16:18:34 fanno, how about android:id="@+id/server_icon" ? Feb 05 16:20:04 ok, so #include works, but #include fails <-- any ideas? Feb 05 16:20:11 lime: http://pastebin.com/kLcR259H Feb 05 16:20:35 i have LOCAL_STATIC_LIBRARIES := boost_regex boost_unordered_map <-- is that right? Feb 05 16:21:55 fanno, i'm not completely sure how the code is read.. but to me it looks like you're trying to call the id before defining.. which means you've got nothing to call .... => put the imageview before the textview Feb 05 16:22:48 KillmeSoftly: Yes, that's exactly how you're actually supposed to do it. you really shouldn't go the configChanges route unless you know what you're doing; it's something people do to try to pretend that android's config changes stuff don't count. Feb 05 16:26:03 config changes change are 'tarded Feb 05 16:26:10 lov: does anyone else you work with hang out here? Feb 05 16:26:52 love - okay cool thanks for the advice. appreciate it Feb 05 16:27:08 mikedg, he works for me Feb 05 16:27:15 so whatever you're planning on paying him Feb 05 16:27:17 send it to me :p Feb 05 16:28:58 lime: that would work except the android:layout_alignBottom="@id/server" android:layout_alignTop="@id/server" is then not defined ... what confuse me is that in the "realtime" editor it looks correct Feb 05 16:29:44 I have another problem. I need a TextView to fade in/fade out. The thing is I am setting the text for the TextView programatically so the fade-in part does work...it does fade out... here is the snippet of code that I am using for the anim: http://pastebin.com/Ny0Qz2xW Feb 05 16:33:23 fanno, http://pastebin.com/jWtNyP4K ...something like this doesn't work? Feb 05 16:33:57 When trying to instantiate a class within doInBackground() of AsyncTask, the debugge rtells me, that I 'Can't create handler inside thread that has not called Looper.prepare()'. Can someone please elaborate? Feb 05 16:37:00 It probably needs to be instantiated on the main thread Feb 05 16:37:20 it's not just a class Feb 05 16:37:38 new String() I bet doesn't do that Feb 05 16:38:52 It's a class implementing some functions for calculation RMS and the like which i would like to perform in a separate thread Feb 05 16:39:28 lime: i am updating the SDK now maybe there is an issue with the one i have if no change i will try yours shortly Feb 05 16:41:05 lime your question has already been answered? Feb 05 16:41:12 don't want to read the whole backlog :D Feb 05 16:41:25 I'm having sort of an argument with someone over at Stack Overflow. He says nio.channel.Selector is broken on Android (latest), and I say my code has to be wrong; either way, I can't get it to work. Can anyone take a look and help me out? http://stackoverflow.com/questions/14690226/how-to-use-selector-object-with-datagramchannel-to-do-non-blocking-packet-recept Feb 05 16:42:17 timroes, nope.. no answers yet so tried googling it instead.. however no luck Feb 05 16:42:17 [17:13:30] Alright.. new observation :) ..when i first load my live wallpaper onto my device it's using about 11-12mb of ram.. then i go into live wallpaper > choose my lwp > click "set lwp" and now it's using ~18 mb of ram.. further if i go into settings for the lwp i reach ~25 mb Feb 05 16:42:18 [17:13:36] timroes.. explain! :p Feb 05 16:42:25 was the question ;) Feb 05 16:42:38 RAM measurement is hard :D Feb 05 16:42:38 Anyone here using the lib.jar.properties files to attach javadoc to libraries? Feb 05 16:43:02 I got it to work with sourcecode for one library, but I can't get it to work for Robotium. Feb 05 16:43:22 i do not doubt that :) Feb 05 16:43:26 so don't know what exactly is measured or what not, but have a look at that: http://stackoverflow.com/questions/2298208/how-to-discover-memory-usage-of-my-application-in-android Feb 05 16:43:37 to get a feeling of why measurement could be hard Feb 05 16:43:52 but theremight be a real memory leak inside of your app Feb 05 16:44:09 watch this talk https://www.youtube.com/watch?v=_CruQY55HOk Feb 05 16:44:16 to find out how to find memory leaks :) Feb 05 16:44:50 so and I am on my way home now, so when you finished watching the video I might be online again :) Feb 05 16:45:02 haha, ok.. Feb 05 16:45:06 well i'll check the video Feb 05 16:45:12 i should really get me some food though Feb 05 16:45:21 oh i had too much chocolate Feb 05 16:45:22 i've been told it helps thinking and stuff like that Feb 05 16:45:23 feeling sick :D Feb 05 16:45:27 Order a pizza ;) Feb 05 16:45:34 i had close to no chocolate :/ Feb 05 16:45:40 anyway, see you later guys :D Feb 05 16:45:42 kakazza, you're a very wise man Feb 05 16:45:48 yeah, have a nice trip home timroes Feb 05 16:45:48 That I am. Feb 05 16:46:27 Found the error, the declaration of my class was wrong. I extended Activity.. Feb 05 16:46:35 Yeah being on a diet sure isn't easy when developing Android, with all its candy names Feb 05 16:47:19 self control is the biggest enemy any human can face Feb 05 16:49:27 but hey! i've got a movie to watch, yaaay.. 58 minutes of heart warming lecturing on memory leaks Feb 05 16:49:51 i hope there's some nude scenes in this movie.. Feb 05 16:50:13 In the directors cut, yeah Feb 05 16:50:51 repeat: I need a TextView to fade in/fade out. The thing is I am setting the text for the TextView programatically so the fade-in part does work...it does fade out... here is the snippet of code that I am using for the anim: http://pastebin.com/Ny0Qz2xW Feb 05 16:51:14 sorry the fade-in part does NOT work Feb 05 16:54:02 damnit kakazza.. now i can't stop thinking about pizza Feb 05 16:54:33 You're welcome :D Feb 05 16:54:39 Me neither, btw Feb 05 16:54:50 hehe Feb 05 16:55:23 maybe if i ate some pizza it would go away Feb 05 16:57:25 One way to find out Feb 05 17:00:12 hi guys, i'm new to android developing.. where's the best place to start? ( I can code in Java) Feb 05 17:00:16 "One way to find out" ...yes, yahoo answers Feb 05 17:00:52 marco_: The official Android Training Feb 05 17:01:22 https://developer.android.com/training/index.html Feb 05 17:01:37 kakazza thanks :) Feb 05 17:02:08 You're welcome. Be sure to take the time and read the articles thoroughly. It will help you in the long run. Feb 05 17:03:16 kakazza: wilco Feb 05 17:13:45 lime: with http://pastebin.com/jWtNyP4K line 20 and 21 is undefined Feb 05 17:13:55 with newest sdk Feb 05 17:16:05 Does anyone have any experience generating the build.xml while including ViewPagerIndicator as a library? Feb 05 17:16:30 fanno .. http://pastebin.com/rA3h3M3u Feb 05 17:16:48 (i'm still just guessing) Feb 05 17:20:04 no luck.. well i have to go going to a dinner laters all Feb 05 17:20:09 thanks for help lime Feb 05 17:20:30 happy feasting Feb 05 17:25:50 this is driving me crazy :( has anyone ever tried to use android.content.ClipData from within an aidl? Feb 05 17:26:05 it is telling me it doesn't exist Feb 05 17:26:08 but I *know* it does Feb 05 17:26:26 I am able to use android.os.ParcelFileDescriptor just fine and they are located in similar locations Feb 05 17:33:45 How can i stop an Activity from running in background? Feb 05 17:34:23 Styler2go: you can use finish() to kill an activity, but general consensus is it's rare to need it. Feb 05 17:34:46 so, i should use finish() in onPause ? Feb 05 17:35:04 Styler2go: not typically. Why do you want to kill your activity? Feb 05 17:35:40 In this activity is a WebView which loads data every second, and this wont stop if you leave the activity Feb 05 17:36:01 So stop loading data when the user leaves the activity? Feb 05 17:36:17 yeah, just destrop this activity :D Feb 05 17:36:49 No, don't destroy the activity.. Just stop doing whatever it's doing Feb 05 17:36:57 well in onPause() can't you end the data load? Feb 05 17:37:01 how could i? Feb 05 17:37:12 lets see Feb 05 17:37:19 kill the connection? Feb 05 17:37:45 i could use the loadData... yeah i willt ry that Feb 05 17:37:51 is there anyway to make the background of Fragment transparent??? Feb 05 17:37:54 Hey guys, it says that to install the android SDK i'd need eclipse IDE? what if I just have the classic juno eclipse? what's the difference? Feb 05 17:37:54 if it's a background activity and it's only used to load the data I don't see why killing the activity to stop the data load would terrible. Feb 05 17:38:13 KillmeSoftly: yes, make the background of your layout transparent Feb 05 17:38:40 okay thanks evanc Feb 05 17:38:53 @Override public void onPause(){ super.onPause(); webView.loadData("", "text/html", "UTF-8"); } Feb 05 17:39:01 would be great or? Feb 05 17:39:14 Hey guys, it says that to install the android SDK i'd need eclipse IDE? what if I just have the classic juno eclipse? what's the difference? Feb 05 17:39:30 yeah it works great.. Feb 05 17:39:34 thank you guys Feb 05 17:39:39 Styler2go: Cool Feb 05 17:39:56 marco_: no idea. I think you'll be fine as long as you have the sdk and point it in the right direction Feb 05 17:40:31 Another problem... i have a AlertDialog and in this AlertDialog an webView. in this webview is a form. but if i click inside a input field it wont open the keyboard.. any idea why? Feb 05 17:40:37 pwizard1015: ah thanks Feb 05 17:41:42 Styler2go: Hmmm, I don't. Why are you using an AlertDialog tho? Maybe if you got the WebView on top differently? Feb 05 17:41:58 <- Not an expert Feb 05 17:42:24 its a login from another site so i show it there and let them login over this Feb 05 17:42:34 but it wont show me the keyboard :( Feb 05 17:43:16 Styler2go: is it an SSO site? like google or facebook? If so they have packages you can include to handle all of that for you. Otherwise, sorry. Feb 05 17:43:34 no its not... Feb 05 17:43:45 No clue then. Feb 05 17:44:57 lets google it... Feb 05 17:45:15 is "mm clean" supposed to clean only my module? It seems to be cleaning the entire AOSP source Feb 05 17:46:29 it seems to be a bug or somewhat like that Feb 05 17:46:49 i shoudl create a custom dialog.. but .. really? >.< :D Feb 05 17:50:21 Anyone else have an Idea? Feb 05 17:52:17 is the Location Aware sample broken? it installs but it shows "Unknown" for Lat/Long and Address Feb 05 17:55:27 ok, so when i do this --> http://pastie.org/private/1nii7sr2p2q1dhdagliww <-- it doesnt work when using the android ndk, can anyone tell me what's going on?/ Feb 05 17:55:39 this is the simplest example, just include and make a namespace Feb 05 17:56:43 https://github.com/donbright/android_hello_boost/blob/master/jni/first.cpp <-- looking at this Feb 05 18:01:09 kaneda^: did you port boost to your ndk environment? Feb 05 18:01:42 dragorn, i'm building the src i need Feb 05 18:02:11 is it possible to set multiple alarmmanagers and somehow pass some data to know which is invoked? Feb 05 18:02:17 i think for my first attempt at this maybe i should just not use boost... Feb 05 18:02:36 hey, I am a bit confused, I dont understand the relation between the MediaPlayer API and the awesomeplayer. Could someone enlighten me? Feb 05 18:02:41 for e.g a time based game can have multiple games running the same time, it is player vs player based. Feb 05 18:03:05 Daani: i would just save the list of events somewhere, and use AlarmManager only for the first one to end Feb 05 18:03:12 when that happens, schedule the next one, and so on Feb 05 18:04:11 but what if an user starts a game and the alarm manager is set but then starts another game immediately? then there would be two games running with maybe 3,4 seconds delay Feb 05 18:04:45 Daani: both games would be saving the events to a single list, and handling the timers for eachother, whichever is next Feb 05 18:04:54 but that is maybe something one have to accept, when starting a game you should play it through since one game round only lasts for maximum 20 seconds Feb 05 18:05:03 and i wouldnt really use an AlarmManager for short delays Feb 05 18:05:52 what would you use? Feb 05 18:05:52 Daani: http://developer.android.com/reference/android/os/Handler.html#postDelayed(java.lang.Runnable, long) Feb 05 18:06:14 AlarmManager is more suited to running code minutes later, when the whole phone is off Feb 05 18:06:52 I see Feb 05 18:07:24 then I might need to find some other solution :/ Feb 05 18:07:30 Daani: http://developer.android.com/reference/android/os/Handler.html#postDelayed(java.lang.Runnable, long) Feb 05 18:12:53 clever: looks interesting, thanks! Feb 05 18:13:57 thing is I need to display some sort time bar which is counting down, it would be nice to be able to use one resource for this rather than having one handler for the events and one handler for the UI display Feb 05 18:14:16 Daani: you can use a single handler for everything in the activity Feb 05 18:14:37 one thing could be, setting the handler to break every other second and have a counter counting to ten Feb 05 18:15:02 and you will want to store the time the event ends at, and measure how much time is left Feb 05 18:15:07 dont count down one every second Feb 05 18:18:19 Nobody an Idea? Feb 05 18:19:28 kaneda^: unless you ported boost, it's not part of the NDK as far as I am aware Feb 05 18:19:29 clever: where would you normally store such data? Preferences or database? Feb 05 18:19:43 kaneda^: so you'd have to write the android.mk, etc files and build a copy of boost inside your ndk project Feb 05 18:19:45 Daani: just a local variable within the Acitivty Feb 05 18:19:48 kaneda^: then link/include those in your code Feb 05 18:19:54 dragorn, the link i posted includes all this Feb 05 18:19:57 if the game only lasts 20 seconds, theres not much need to save it Feb 05 18:23:12 clever: but what if you closes the app right away? when it starts again I dont know if round is ended or not Feb 05 18:23:33 sorry for being ignorant but I appreciate your answers and ideas a lot Feb 05 18:23:45 Daani: the local variables will sometimes be restored, depends on how long the app was closed and what else the user was doing Feb 05 18:24:00 but if the game only lasts 20 seconds, who cares if you loose 20 seconds of progress? Feb 05 18:24:40 true! Feb 05 18:25:08 Daani: basicaly, when you leave the app, onPause and onStop get called, and then it just stops running code Feb 05 18:25:20 if the user do close the app and I do loose the data I have to do some logic and interpret rhe round as manually ended and pass some data back to server Feb 05 18:25:29 if your app is still 'running' when the user comes back, it runs onStart and onResume to wake it back up, and none of the data is lost Feb 05 18:25:44 I don't want a user to cheat :) the opponent user would not appreciate that ha ha Feb 05 18:25:57 but if the system runs out of memory, the process will get killed, and everything in ram is lost Feb 05 18:26:11 so it has to start over from SharedPreferences and anything else you store Feb 05 18:26:31 I fetch everything from a web service so it's ok Feb 05 18:26:42 I only fetch data for one round at the time Feb 05 18:31:36 Daani: You should be using Services on your app, and having your activities bind to them. Feb 05 18:37:19 lov: Im not quite sure what you mean, when should I use services? Feb 05 18:43:23 I have two buttons with text "Save" and "Cancel". How do I make the Save-button as large as Cancel-button without setting specific pixels? They're both set to wrap_content atm. Feb 05 18:43:40 Quacked 0dp and weight 1 Feb 05 18:44:06 as in both layout_weights the same value Feb 05 18:45:46 that actually remove the buttons, hehe Feb 05 18:45:51 they're in a TableRow Feb 05 18:45:59 it depends on the rest of the widgets and layout Feb 05 18:46:25 Yeah, I just put it in a TableRow to have it below the LinearLayout Feb 05 18:46:28 I'll pastebin it Feb 05 18:47:04 http://pastebin.com/5mrqcA7p Feb 05 18:52:18 hows about that then Feb 05 18:52:40 xorgate: got time to take a look? Feb 05 18:54:44 the tablerow is wrap_content Feb 05 18:54:55 and the children adapt to the tablerow Feb 05 18:55:03 so noone's motivated to be more than 0 pixels Feb 05 18:55:31 tablelayout and row to fill_parent and you're set Feb 05 18:59:45 Is there a way to abort a click in an AlertDialog? I am setting a button with OnCLickListener and i want to abort this click (so that the Dialog won't close) if there is an error... any way? Feb 05 19:00:31 just reshow the dialog Feb 05 19:00:40 that's stupid, the user will think your app is brokeb Feb 05 19:00:44 dont be stupid Feb 05 19:00:47 stupid is as stupid does sir Feb 05 19:00:51 hmm Feb 05 19:00:59 then i will do it this way... Feb 05 19:05:02 how can i get the children of a framelayout without knowing their id's Feb 05 19:05:38 oh hrmm getChildAt should work Feb 05 19:05:41 wtf Feb 05 19:05:53 yeh i thought hmm mikey you know tihs :0 Feb 05 19:06:06 wasn't showing up as a valid method in intellij :/ Feb 05 19:13:22 hi - how can I get a View, given its name as a String ? Is java introspection on R.id the only way ? Feb 05 19:13:27 hey y'all Feb 05 19:14:10 yann if it has a name you should have all the info alrady Feb 05 19:14:32 if I wanted to make a TV guide in android, I assume the best way to do that is to have a nested listviews? vertical listview of channels, a listview for each channel of all the programs? Feb 05 19:14:50 never nest scrolling things Feb 05 19:15:10 xorgate: that's what I thought the general concensus was, but I have no idea how to do it otherwise Feb 05 19:15:29 what should it look like? Feb 05 19:15:49 oh, well, if I did do that, it'd only scroll horizontally for one channel Feb 05 19:15:58 basically http://www.tvguide.com/Listings/ Feb 05 19:16:12 except it should be scrollable horizontally Feb 05 19:16:22 yeah that sucks ;0 Feb 05 19:16:23 I don't know if you've seen the comcast xfinity app, but they do it pretty well Feb 05 19:16:46 just make a new screen per channel? Feb 05 19:16:55 can't do that Feb 05 19:17:16 I mean, we do do that, but this interaction needs to be bi-directional-scrollable Feb 05 19:17:59 hello again android-devs, i've solved my dependency issues almost, by just trying this out with tr1, but now i'm getting an undefined reference to "tr1::basic_regex" Feb 05 19:18:08 i have APP_STL = gnustl_static Feb 05 19:18:08 in my Application.mk file Feb 05 19:18:23 and i have the includes in my path to the android headers Feb 05 19:19:13 mheld: I've sometimes used ViewPagers for things somewhat like that (though bi-di scrolling can sometimes be confusing.) Feb 05 19:20:12 mheld: how about a tabhost using fragments? Feb 05 19:20:42 karlsve: I think it swallows up gestures -- so no matter how much you swipe, each swipe will bring you forward only one element Feb 05 19:20:52 kbs: ^^ Feb 05 19:21:51 mheld: indeed it does i suppose, so you are looking for a way to do something like the gallery? Feb 05 19:21:51 oh, I guess I could pre-compute all of the rows and shove them into a linearlayout Feb 05 19:22:09 and shove the whole thing into a horizontal scroll view Feb 05 19:22:10 i have the stuff built for android-ndk that came w/ it, gnu-libstdc++/4.6 Feb 05 19:22:12 any ideas? Feb 05 19:22:17 depending on the size of the information, viewpagers also have the saving grace of being easier to conserve memory (as opposed to linear-layout based approaches) Feb 05 19:22:41 karlsve: I *think* so -- it's been a while since I've touched galleries Feb 05 19:23:06 I'd like to learn some OpenGL on android Feb 05 19:23:10 mheld: are you getting the information from an external server? then loading all the data would be a bit of an overkill i guess Feb 05 19:23:10 will I need the NDK? Feb 05 19:23:16 Not necessarily Feb 05 19:23:22 You can use GLES from javaland Feb 05 19:23:28 karlsve: I do, but I cache it Feb 05 19:23:33 if you're making a game, javaland isn't necessarily what you want, however. Feb 05 19:23:38 karlsve: so we're not hitting the server every time we scroll Feb 05 19:23:42 take a look at some of the GL stuff in the api demos Feb 05 19:23:55 please also note that GLES is not the same OpenGL as you'd use for the desktop Feb 05 19:23:55 lov, is one way better than the other? I'm familiar with C++ so that isn't a huge problem Feb 05 19:24:04 it's really a question of what your objective is Feb 05 19:24:15 The java classes are effectively wrappers around the C functions Feb 05 19:24:32 you'll basically get the same effects whether you use Java or C Feb 05 19:24:35 lov, toy project for now. I'd like to program something in 3d, put some of my math classes to work Feb 05 19:24:52 Then it's really up to what you're most comfortable with. Feb 05 19:25:04 kaneda^: you probably have to tell it to link into your library directory and to link the library itself. Undefined symbol is universally "not finding that library" (or "didn't write that function", I suppose) Feb 05 19:25:07 so if I learn OpenGL on Android, will some of the concepts translate over to the desktop? Feb 05 19:25:09 The NDK comes with a GL demo, if I recall, so you can use that Feb 05 19:25:17 Some, but not all. They're different in many ways Feb 05 19:25:20 dragorn, i think i'm invoking the wrong regex Feb 05 19:25:31 RustyShackleford: yes, GL is GL Feb 05 19:25:31 dragorn, as in, there's a regex inside of gnu-libstdc++/4.6/include/ Feb 05 19:25:35 I tried learning some OpenGL once on linux, but got overwhelmed Feb 05 19:25:40 kaneda^: yes, could be. Feb 05 19:25:47 mheld: so you are actually palling to get the whole tv-guide to be scrollable? wouldnt it be nicer to have the channels like a gallery and each channel then downwards as something else? Feb 05 19:25:50 GLES -> OpenGL; J2ME -> J5SE Feb 05 19:25:59 kaneda^: make sure you're not including headers from another library Feb 05 19:26:04 I think I was using GLEW. I couldn't figure any of this out Feb 05 19:26:04 dragorn, indeed Feb 05 19:26:09 karlsve: the whole tv-guide has to be scrollable (client-constraints) Feb 05 19:26:14 RustyShackleford: theres a slight differences in versions and shaders but its all easy and the cores the same and or using DEFINES you can make x platform shaders Feb 05 19:26:27 mheld: sounds irritating to me Feb 05 19:26:30 kaneda^: i've had good luck with the STL on modern ndks Feb 05 19:26:42 xorgate: the fill_parent helped, but problem is that the parent is only like 30 pixels wide Feb 05 19:26:45 i'm working with platform android-9 Feb 05 19:26:56 kaneda^: modern as being w/in the last year or so Feb 05 19:27:06 dragorn, ah, that's no good, most of the world still runs android 2.3.3 :D Feb 05 19:27:33 kaneda^: link stdc++ as static and you're fine Feb 05 19:27:48 is anyone using the intel haxm software inside parallels desktop? Feb 05 19:27:55 dragorn, i thought i was doing that by: APP_STL = gnustl_static <-- in Application.mk Feb 05 19:28:09 by which I mean windows hosted inside parallels desktop, with an x86 emulator hosted on windows. Feb 05 19:28:10 kaneda^: yup. Should be. Feb 05 19:28:14 cool Feb 05 19:28:15 inception! Feb 05 19:28:26 dragorn, when i reference regex do i do it from std::regex, or is it std::tr1::regex stil? Feb 05 19:28:32 maybe someone else have a suggestion.. how can I get my Save button as wide as my Cancel button here? I don't want fixed pixel settings of course. http://pastebin.com/5mrqcA7p Feb 05 19:28:36 the namespace thing between my libs and android's libs confuses me Feb 05 19:29:00 kaneda^: namespace is linguistic not link-time so whatever compiles should be fine. Feb 05 19:29:14 dragorn, oh, k Feb 05 19:29:28 so if tr1/regex is compiling right now, with only android headers on the include path, i should be fine? Feb 05 19:29:48 kaneda^: i would expect you to be, but I haven't used the regex stuff Feb 05 19:29:56 ok, i love regex Feb 05 19:29:59 how have you not used regex? Feb 05 19:30:07 that's like a programming crime Feb 05 19:30:18 simple: my code base doesn't need to execute regexes? Feb 05 19:30:27 So I don't use stl regex? Feb 05 19:30:32 because the word Cancel is longer than Save, the button is obviously also wider Feb 05 19:30:38 you NEVER parse ANYTHING? Feb 05 19:30:43 The regex stuff I do need to deal with, I use libpcre Feb 05 19:30:51 oh, fair enough Feb 05 19:30:56 it's all the same shit, except for java Feb 05 19:31:11 java is speshul Feb 05 19:31:25 and when I need to parse stuff, I usually have to parse something complex enough that I'm just going to write a r-d parser Feb 05 19:31:48 well i wrote a little encoding and it can be parsed in 3 lines Feb 05 19:33:08 dragorn, same error Feb 05 19:33:31 how much math is required with opengl? Feb 05 19:33:33 Description Resource Path Location Type Feb 05 19:33:33 undefined reference to 'std::tr1::basic_regex >::_M_compile()' HelloJni line 788, external location: /home/josh/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/arm-linux-androideabi/bin/ld: ./obj/local/armeabi/objs/hello-jni/detector_helper.o: in function loadDataset(std::basic_string, std::allocator >):/home/josh/android-ndk/sources/cxx-stl/gnu- Feb 05 19:33:33 libstdc++/4.6/include/tr1/regex C/C++ Problem Feb 05 19:33:37 yikes, sorry about that Feb 05 19:33:47 RustyShackleford, are you familiar with a frustum? Feb 05 19:33:58 any? I'd love to do some project that would let my apply Linear Algebra Feb 05 19:34:06 kaneda^, I am not Feb 05 19:34:15 mheld: another way would be to implement your own way to do that :D react on swipe gestures and scroll by them, but there should be a better way to realize what the client requested Feb 05 19:34:15 RustyShackleford, everything in opengl requires some kind of math Feb 05 19:34:19 projective transforms and the like Feb 05 19:34:33 but your frustum is your viewing window, you have to place that at a given distance and use that to figure out your transforms Feb 05 19:34:41 been a while since i did opengl stuff Feb 05 19:34:51 goin the other direction more recently Feb 05 19:35:00 karlsve: "we want the comcast xfinity guide" Feb 05 19:35:28 mheld: sounds lovely Feb 05 19:36:05 dragorn, http://pastie.org/private/s8hpihx0tbb1yw0f72v7ya Feb 05 19:36:32 mheld: doesn't look like much with scripts disabled Feb 05 19:36:45 karlsve: not the tvguide guide Feb 05 19:37:05 karlsve: https://itunes.apple.com/us/app/xfinity-tv-remote/id401629893?mt=8 Feb 05 19:37:20 shit Feb 05 19:37:40 I'm having sort of an argument with someone over at Stack Overflow. He says nio.channel.Selector is broken on Android (latest), and I say my code has to be wrong; either way, I can't get it to work. Can anyone take a look and help me out? http://stackoverflow.com/questions/14690226/how-to-use-selector-object-with-datagramchannel-to-do-non-blocking-packet-recept Feb 05 19:40:05 fireblend: test on the desktop, see what happens. Feb 05 19:40:37 mheld: damn i hate to have a slow internet connection, loads for ages Feb 05 19:41:01 karlsve: we've got some magic that'll fix that ;-) Feb 05 19:41:23 dragorn, any ideas? Feb 05 19:41:28 i cant figure out why it's an undefined reference? Feb 05 19:41:48 I have two buttons with text "Save" and "Cancel". How do I make the Save-button as large as Cancel-button without setting specific pixels? They're both set to wrap_content atm. http://pastebin.com/5mrqcA7p Feb 05 19:41:58 I'm measuring a view and it appears to be measuring larger than what it is? Feb 05 19:42:23 kaneda^: undefined reference means it's a compile error; something isn't included or you're calling the wrong function Feb 05 19:42:28 Quacked, you want to set them to the same size without setting them to the same size? Feb 05 19:42:44 dragorn, i agree but the file it's referencing is included Feb 05 19:43:15 kaneda^: I just want the size to be variable compared to screen size :) Feb 05 19:43:24 mheld: like what? o.O well actually that looks like a tabhost to me ^^ Feb 05 19:43:25 Quacked, so do that Feb 05 19:43:34 kaneda^: the file it's referencing is the file the error occurs in. Feb 05 19:43:41 kaneda^: how? Feb 05 19:43:42 kaneda^: you're missing something that the stl include expects Feb 05 19:43:48 dragorn, ah Feb 05 19:43:53 Quacked, are you serious? Feb 05 19:44:23 kaneda^: yes Feb 05 19:44:59 Look up layout_weight Feb 05 19:45:54 dragorn, so you're saying that the linker for the arm-linux-androideabi can't find it... Feb 05 19:46:02 even though it's all android, and it's all included Feb 05 19:46:09 * kaneda^ kicks android Feb 05 19:46:15 kaneda^: no, that's not a linker error Feb 05 19:46:20 kaneda^: that's a compiler error Feb 05 19:46:30 it points to the ld for arm Feb 05 19:46:33 kaneda^: you didn't include somethign stl expects you to have included Feb 05 19:46:54 dragorn, it says basic_regex, i've #include Feb 05 19:47:04 i get no compile time errors related to THAT Feb 05 19:47:59 SimonVT: I set layout_weight for 1 for both buttons, and width to 0sp, but buttons are then gone Feb 05 19:48:25 that's for dynamic resize Feb 05 19:48:30 how did you learn the API? Was there a book you read? Feb 05 19:48:44 or just reading docs as you work on projects? Feb 05 19:48:46 quacked understand that 0dp and weight=1 means 'try to distribute all remaining space equally' Feb 05 19:49:02 if there's no space, you get width 0 Feb 05 19:49:10 RustyShackleford, a lot of online resources and the official doc Feb 05 19:49:24 xorgate: right, so what do you suggest? Feb 05 19:49:27 spent a lot of time quizzing lov and SimonVT Feb 05 19:49:39 Quacked like i said, the solution lies with the parent layout Feb 05 19:49:56 Quacked it tries to wrap_content, but content tries to fill parent Feb 05 19:49:58 yeah, but the parent layout has less width than the buttons Feb 05 19:49:58 kaneda^, in my experience, most 3rd party examples kinda suck Feb 05 19:50:00 ie who's gonna win? Feb 05 19:50:11 RustyShackleford, github is full of good examples Feb 05 19:50:12 there are too many API levels, and so lots of outdated examples Feb 05 19:50:22 RustyShackleford, you have to be careful with the version you're looking at Feb 05 19:50:26 anyway time to hit the gym Feb 05 19:50:30 good luck :) Feb 05 19:50:31 but i develop for 2.3.3+, so there's a lot of material Feb 05 19:50:34 noooo Feb 05 19:50:35 :P Feb 05 19:51:27 yeah, compatability seems really confusing as well. I'm sticking to ICS+ Feb 05 19:51:40 it's actually not that bad Feb 05 19:51:42 I'm stuck Feb 05 19:51:45 but +1 for ICS+ :) Feb 05 19:51:57 at least for now, I don't have time to make several different layouts Feb 05 19:52:14 err Feb 05 19:52:22 you dont need to for different versions o.O Feb 05 19:52:27 and I'm not quite sure which ICS pieces will work in GB Feb 05 19:52:43 canadiancow, what about menus? does the support package convert my menu to GB style? Feb 05 19:53:05 more like the ActionBar APIs convert the oldstyle menu to the new style Feb 05 19:53:07 i've spent a long time bugging canadiancow too RustyShackleford Feb 05 19:53:11 you know how GB menu's are more like tiles, where ICS is a list with one column Feb 05 19:53:20 dragorn, according to the docs regex has full support as of Froyo, so what's up? Feb 05 19:54:11 kaneda^: no idea. I managed to port a 190kline C++ app in about an hour; the ndk works pretty cleanly. You've got something wacky in your setup. I expect it's a missing library definition or a mis-pointed header location. Feb 05 19:54:31 RustyShackleford, the best way to learn is to just try Feb 05 19:54:37 go start up a 2.3 emu Feb 05 19:54:40 see waht happens Feb 05 19:54:42 dragorn, i let android set up the android includes though, and again there's no compile time error until i get this undefined reference Feb 05 19:55:32 oh i see Feb 05 19:55:43 it looks like regex_search has an entry in the header but isn't implemented Feb 05 19:57:03 question folks Feb 05 19:57:09 how do I clear local storage for an app? Feb 05 19:57:28 canadiancow, any familiarity with the ndk? Feb 05 19:58:05 I am on samsung s Feb 05 19:59:55 i'm looking at projects where people have put some version of boost in their project jni, lol Feb 05 20:04:05 dragorn, havent figured it out yet, my IDE seems to thinke verything's ok but the compiler is still freaking about "basic_regex::M_compile()" Feb 05 20:05:02 anyone here tried using regex in the ndk? Feb 05 20:10:30 https://groups.google.com/d/msg/android-ndk/BepvBlDw4_w/kV-gMwtwtwYJ <-- anyone? Feb 05 20:11:30 kaneda^, "any" yes Feb 05 20:11:35 Hello. I have a small question about in-app purchases with the 3rd version of API. If I try to purchase a product immediately after I consumed it, I always get ITEM_ALREADY_OWNED error. Adding a small delay (e.g. 500 ms) after consumePurchase solves the problem. Am I doing something wrong? Feb 05 20:11:36 enough to help you write hello world? no Feb 05 20:11:42 canadiancow, good, so help me get regex going Feb 05 20:13:25 * kaneda^ prods the cow Feb 05 20:13:28 xorgate: I expected some methods in R.id, but the javadoc only shows data members there Feb 05 20:13:44 yann, it's for IDs... Feb 05 20:14:57 well, I'm quite new to these APIs, and always have to dig - but I have not yet found how to get a View defined in resources from its name-as-a-String Feb 05 20:15:26 getViewById? Feb 05 20:15:29 findViewById(R.id.someid) Feb 05 20:15:48 I thought R was going to be the entry point Feb 05 20:16:09 findViewById expects an int, I have a String, at runtime Feb 05 20:16:32 yann, what SimonVT said Feb 05 20:16:58 anyone know an android charting solution Feb 05 20:17:25 then I'll have to find the integer id from my String, no ? Feb 05 20:17:45 Why do you need to find it from a string Feb 05 20:19:33 SimonVT, he think it's by view name Feb 05 20:19:38 I have a set of n buttons in the resources, which have to be assigned labels at runtime. I have assigned the buttons ids line "button_%d" Feb 05 20:20:27 so I'm looping on an int, and derive the string id from there - except the string seems useless Feb 05 20:22:59 I could get the container layout, and probably iterate on its children, but that would not allow arbitrary reordering of the buttons, hence the id's Feb 05 20:24:31 looks like I'll have to go with the introspection APIs ... Feb 05 20:25:37 Instead of IDs (which are integers, all done at compile time), maybe try tags? Feb 05 20:26:34 http://developer.android.com/reference/android/view/View.html#findViewWithTag%28java.lang.Object%29 Feb 05 20:26:39 Sounds like you should use something like a listview instead Feb 05 20:26:49 (I haven't tried it, so it may not be useful) Feb 05 20:29:38 xalbo: oh, sounds interesting, I remember seeing this somewhere - predecessors to id's, right ? Feb 05 20:30:41 SimonVT: wouldn't the listview make it harder to have something acting like a horizontal linearlayout of buttons ? Feb 05 20:30:47 yann, use a resource array Feb 05 20:30:58 or yeah, a listview Feb 05 20:31:50 canadiancow: will it still allow arbitrary ordering of the buttons, or will I be stuck with the numeric ordering ? Feb 05 20:32:19 for what... an array, or a listview? Feb 05 20:32:42 array Feb 05 20:33:00 well you have to index into the array with an int Feb 05 20:33:04 SharedPreferences will be cleared if I hold back button to kill the app? Feb 05 20:33:05 but you can name the ids whatever you want Feb 05 20:33:10 Quacked, no? Feb 05 20:33:23 and what do you mean "hold back button to kill the app" Feb 05 20:33:40 He means "I use a custom rom where holding the back button kills the app" Feb 05 20:33:46 What SimonVT said Feb 05 20:33:55 The point of SharedPreferences is that they're persistent Feb 05 20:33:56 so thats not part of the api Feb 05 20:34:01 ask the author of the rom Feb 05 20:34:25 Ok, then something is wrong in my code Feb 05 20:34:35 Because when I kill the app, SharedPreferences are gone :P Feb 05 20:35:10 ask the author of the rom Feb 05 20:38:08 I tried simply rebooting the phone, and SharedPreferences were cleared Feb 05 20:38:38 Are you committing the changes? Feb 05 20:39:04 Yes Feb 05 20:39:41 Is other apps preferences cleared? Feb 05 20:39:42 Wait. I realized something. Button IDs are different if app is killed? Feb 05 20:40:11 .. what? Feb 05 20:40:26 Resource id's may change on every build Feb 05 20:40:54 By build you mean? Feb 05 20:41:12 Compiled? Feb 05 20:41:28 Well, not every build.. But every time you add/remove a resource, some other IDs may change as well Feb 05 20:41:34 Yes Feb 05 20:41:47 Hey I am a new Android developer... just learning it Feb 05 20:41:53 Hmm.. well that shouldn't matter then. Feb 05 20:42:08 I don't hard code the R.ids Feb 05 20:42:24 If you save them in your preferences, you kinda are Feb 05 20:42:42 hard coding strings is much easier Feb 05 20:43:13 This is how I store in SharedPrefs: http://pastebin.com/dnMGNmB2 Feb 05 20:43:21 Quacked? Feb 05 20:43:25 can you help me later? Feb 05 20:43:30 will you be here for an hour or so? Feb 05 20:43:41 I don't know who is owner of this channel, I haven't looked at channel flags etc.... but would it be possible for someone to set +R to #android-dev-unreg or something with the topic in that channel set on how to register? I'm always seeing people in #android ask how to register to join this channel. Feb 05 20:44:06 Ilhami: I can help you replying "I have no idea/no clue" for an hour sure. :D Feb 05 20:44:32 You don't want to use the R.id of a button for preference keys Feb 05 20:45:01 SimonVT: I was sceptical when I did it, but why doesn't it work properly? Feb 05 20:45:20 Every time compiled the app in Eclipse I got the same R.id Feb 05 20:45:57 Say you define R.id.button1, R.id.button2, R.id.button3 Feb 05 20:46:00 In that order in your layout Feb 05 20:46:06 They get id 1, 2 and 3 Feb 05 20:46:18 Then you add R.id.button above all those in the same layout Feb 05 20:46:30 It would get id 1, button1 = 2, etc Feb 05 20:46:32 SimonVT: you could know, is it possible to lock and set some password for phone remotely, if phone got stolen software.. Feb 05 20:46:48 Not expand that to your entire resource folder Feb 05 20:47:02 SimonVT: I see Feb 05 20:47:32 You define button1 in R.layout.somelayout, and it gets id 1.. Then you add R.layout.anotherLayout with some id's.. Since it'll get processed first, its view get id 1 Feb 05 20:47:52 mbarisa: No idea, still got all my phones Feb 05 20:48:03 Crap. Then I have to figure out another way of getting the right Strings Feb 05 20:48:25 SimonVT, once R.java is generated, just take the actual value Feb 05 20:48:28 and hardcode it everywhere Feb 05 20:48:36 but with R.java, the worst are colors Feb 05 20:48:39 setColor(R.color.blah) Feb 05 20:48:51 if i had a dollar for every time i found something like that :) Feb 05 20:48:54 You can spend quite some time debugging that Feb 05 20:49:03 i found it in gmail recently Feb 05 20:49:09 haha Feb 05 20:49:20 http://reviews.cnet.co.uk/mobile-phones/how-to-remotely-lock-and-wipe-a-lost-android-phone-50007795/ Feb 05 20:49:24 ? Feb 05 20:49:33 Wonder if there's a lint check for that Feb 05 20:49:39 there is Feb 05 20:49:47 canadiancow: what do you think about it? how is this done Feb 05 20:49:54 why are you asking me Feb 05 20:50:04 Yeah, figured there would be Feb 05 20:50:12 lint for color is crap, it just checks for the method setColor() Feb 05 20:50:27 keeps telling me on my custom objects Feb 05 20:50:28 anyone know how to use regex, or a tutorial with regex on android ndk? Feb 05 20:50:29 it's MUCH better than nothing Feb 05 20:50:34 oh Feb 05 20:50:35 lol Feb 05 20:50:40 that actually take res id Feb 05 20:50:46 but no, i'd say your method is named poorly then Feb 05 20:50:50 setColorResId(int) Feb 05 20:50:54 lol Feb 05 20:50:55 maybe Feb 05 20:50:56 setColorResource Feb 05 20:51:01 yeah yeah Feb 05 20:51:31 Be consistent with the api, dude Feb 05 20:51:37 But not too much, androids api can suck sometimes Feb 05 20:51:39 hey, I'm a noob Feb 05 20:51:49 still allowed to name things all over the place Feb 05 20:52:42 is there anyone here with mac 10.7, Oracle Java 7, but NO apple JRE ? Feb 05 20:52:44 hmmm something is creating a sharedprefs file in my app Feb 05 20:52:53 but... i have a breakpoint in the only code that would do it Feb 05 20:52:56 and it's not getting hit :( Feb 05 20:53:12 g00s 10.8 apple dist java whatever that is Feb 05 20:53:39 i'm using 10.7 Feb 05 20:53:47 ;_; Feb 05 20:54:26 why so sad? apple moved all their good engineers to iOS; os X 10.8 just wasted battery faster and had stupid bling Feb 05 20:55:05 i'm looking for info regarding regex on ndk Feb 05 20:55:18 either no one has problems or no one uses it according to google Feb 05 20:55:57 Any suggestions for how I can get "button1" as String to put into SharedPreferences at line 26 here? And "button2" etc if button2 is clicked? http://pastebin.com/J31Lhn4j Feb 05 20:57:32 Quacked: well i dont understand what you mean Feb 05 20:57:50 I don't blame you :) Feb 05 20:57:56 you mean the string reference of the button ? Feb 05 20:58:02 as in the object string ref ? Feb 05 20:58:16 I just need different Strings for each button Feb 05 20:58:39 ok Feb 05 20:58:40 so the app remembers its settings when its restarted Feb 05 20:58:40 Quacked, you need to rethink this whole thing Feb 05 20:58:43 what you're doing is ridiculous Feb 05 20:58:54 canadiancow: precisely. Feb 05 20:59:11 canadiancow: exactly. Feb 05 20:59:26 I'm asking how I should do it instead Feb 05 20:59:28 A SQL query walks into a bar and sees two tables. He walks up to them and says ‘Can I join you? Feb 05 20:59:28 Then a waitress walks up and says ‘Nice view ! Feb 05 20:59:29 Quacked: unequivecably. Feb 05 21:00:28 I couldn't think of a more clever way so I just tried something :) Feb 05 21:00:43 Quacked what are you wanting to do ? Feb 05 21:00:53 pass strings from what to what ? Feb 05 21:01:03 and dependant on what ? Feb 05 21:01:08 hi, I just installed android-sdk and am trying to bookmark a page in the browser. how do I do that? I dont see anything. at least on my phone (motorola razr) I see a STAR icon Feb 05 21:01:47 all I see in the window is my website icon, the address box, and the tabs button in the top right. I click on the tabs and it goes to my bookmarks, not giving an option to save Feb 05 21:02:14 rather, it moves the window to a small tab and then has a + and a star, but the star wont let me add Feb 05 21:02:17 StingRay_: When I long click a button I start a new Activity. The setting there should be saved to SharedPreferences. Then onResume on the MainActivity it will update the String of the buttons there with the new value from SharedPreferences. Feb 05 21:02:48 Quacked: the "setting" ? Feb 05 21:03:05 I have NumberPicker there giving a value to a variable Feb 05 21:03:08 xalbo: tags are perfect for my usage, thx much! Feb 05 21:03:36 StingRay_: basically the NumberPicker changes the text used on the buttons in MainActivity :) Feb 05 21:04:09 ok Feb 05 21:04:18 yann: Glad to help. Feb 05 21:04:28 StingRay_: the text on each button is simply a number from 1-99 Feb 05 21:04:34 tomasm-: the star is a bookmark ( if this is chrome ) Feb 05 21:06:04 bankai_, i'm guessing its chrome, just the browser that came with the VM. what I see is a star with a 'tag' on it, and when I click it, it GOES to my bookmarks, and doesnt ask me to save or anything my page to it Feb 05 21:06:27 Hello Feb 05 21:07:00 Quacked: so at the heart of it you want to pass info back and forth across activities and also use sharedPrefs ? Feb 05 21:07:23 Yeah Feb 05 21:07:30 Bundle Feb 05 21:07:35 setResult Feb 05 21:07:51 all the things that were said yesterday to ya Feb 05 21:08:04 Huh? To me? Feb 05 21:08:09 yeah Feb 05 21:08:14 Hi, is there another way to get events as ALooper_pollAll? Feb 05 21:08:16 what about putExtra since I start a new Intent with startActivity? Feb 05 21:08:29 I can't recall that Feb 05 21:08:34 yes Feb 05 21:08:41 startActivityForResult() Feb 05 21:08:53 and put vals into the intent Feb 05 21:09:01 I'v an C library that renders an animation into an ARGB buffer. I like to display this in a fullscreen window with NDK or part of my Java GUI in some image widget. Do you have some hints which keywords I've to search to get more information about this? Feb 05 21:09:03 they are stored in the bundle Feb 05 21:09:10 that you can read at the other end Feb 05 21:09:31 ok Feb 05 21:09:57 ok, I'm in the VM emulator, and I'm at a webpage from the "Browser". how do I book mark it? the interface differs from my phone's Feb 05 21:10:34 http://stackoverflow.com/questions/14714046/how-can-i-change-the-font-size-of-hackerskeyboard-project Feb 05 21:10:41 I installed the https://code.google.com/p/hackerskeyboard/ project and I add the following row to the file kbd_full.xml Feb 05 21:10:49 but it appear so big so I want to reduce the size of font of this row , I tried to change the attribute android:labelTextSize="6dp" but no thing happen , How can I reduce the font size in this project ? Feb 05 21:12:22 Ask the developer Feb 05 21:14:52 i tried LOCAL_WHOLE_STATIC_LIBRARIES := libstlport_static Feb 05 21:14:59 and other things like this, no good Feb 05 21:15:37 it doesnt cause an error, but it doesnt fix my linking error Feb 05 21:18:22 Hello! Feb 05 21:19:02 I'm here because the Google Play support for developers in nonexistent and I want to ask a question. Feb 05 21:19:49 Have you got any idea how I can sell apps if I'm from one of the unsupported countries? Feb 05 21:20:42 Hm? Feb 05 21:21:13 Any ideas, hints? Feb 05 21:21:28 take another market? Feb 05 21:21:31 Move to a supported country Feb 05 21:21:45 because unsupported country means, its not supported, you sell apps from there :) Feb 05 21:21:47 Ask someone you trust in a supported country. Feb 05 21:22:06 I thought about doing that. Feb 05 21:22:11 use a platform supported in that country :) Feb 05 21:22:21 I have a problem with with Google support. Feb 05 21:22:27 sogard: so you're from one of the countries where you can't sell paid apps from? Feb 05 21:22:35 Yes. Feb 05 21:23:01 there's no solution other than to get someone to proxy the revenue they generate Feb 05 21:23:08 (as someone already mentioned) Feb 05 21:23:18 It's legal, right? Feb 05 21:24:13 You'll most likely have to pay taxes in that other country for it to be legal Feb 05 21:24:13 Why isn't Google doing anything about it's support? Feb 05 21:24:32 Hm... Feb 05 21:24:46 Some unsupported countries became supported, so obviously, it is doing something. Feb 05 21:25:06 Yes, it is, but it has to keep us posted. Feb 05 21:25:22 sogard: you aren't google's customer Feb 05 21:25:23 Why must it do that? Feb 05 21:25:40 I am Google's customer as a developer. Feb 05 21:25:45 bzzt Feb 05 21:26:10 LOCAL_LDLIBS += libgnustl_static <-- got rid of one error, now i'm getting a more generic make error :D Feb 05 21:26:54 I understand if it can't keep us posted, but I just want to have someone to ask if something happens. Feb 05 21:27:02 someone to ask what? Feb 05 21:27:04 if what happens? Feb 05 21:27:21 umm, what does this mean? make: *** [obj/local/armeabi/libhello-jni.so] Error 1 Feb 05 21:27:32 google is infamous for its (human) customer support -- it's probably something within the company culture. Feb 05 21:27:38 there's no other info... Feb 05 21:27:56 kaneda^: make -v or something idk Feb 05 21:28:01 lov, lol Feb 05 21:28:04 sogard: http://support.google.com/googleplay/android-developer/bin/answer.py?hl=en&answer=136601&rd=1 Feb 05 21:28:06 that's the least helpful error i've ever seen Feb 05 21:28:12 kbs: to be honest google has always been relatively decent at developer relations Feb 05 21:28:24 when you do a fragmenttransaction replace call, does it garbage collect whatever instance variables are inside the fragment you're replacing? Feb 05 21:28:49 kaneda^: it means it failed to build and you should look further up in your scrollback to see what the exact failure was Feb 05 21:28:49 Decent? By decent you mean having a page that answers 99% of all possible questions? Feb 05 21:28:49 MDijkstra: true. It's generally a developer paradise in many ways. Feb 05 21:28:50 mheld: well yeah, if there's no reference to it left Feb 05 21:29:18 MDijkstra: I have a reference to the fragment -- that thing gets replaced properly Feb 05 21:29:27 I have a couple of fragments that I swap between Feb 05 21:29:35 There is no e-mail address. There is no phone number. Feb 05 21:29:39 occasionally an instance variable gets nulled out Feb 05 21:29:48 I want to talk to a human. Feb 05 21:29:59 sogard: I'll talk to you Feb 05 21:30:08 I'm a human Feb 05 21:30:21 stevel, error: undefined reference to 'std::tr1::basic_regex >::_M_compile()' Feb 05 21:30:26 MDijkstra: sorry, an instance variable inside my fragment Feb 05 21:30:26 blaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaargh Feb 05 21:30:30 Are you from Google support? Feb 05 21:30:47 No, but I'm human. :'( Feb 05 21:30:47 mheld: well, it's not garbage collection per definition Feb 05 21:30:57 mheld: if you can access its value, it's not going to be GC'ed Feb 05 21:31:00 stevel, isn't that supposed to be in gnustl_static? or am i crazy? Feb 05 21:31:06 What do I have to do to make using a peer to send me the money legal. Feb 05 21:31:14 mheld: the fragment library may do some funny stuff, or the entire fragment may get recreated Feb 05 21:31:25 but this is not the java GC zeroing out your fields Feb 05 21:31:55 MDijkstra: so I should just manually setRetainInstance(true)? Feb 05 21:32:10 mheld: no, that depends on what you're trying to do Feb 05 21:32:33 MDijkstra: I have like 3 fragments that get swapped into a view Feb 05 21:32:39 :| Feb 05 21:32:56 MDijkstra: I just want them to stick around when I swap them Feb 05 21:33:06 MDijkstra: so that I don't lose any state Feb 05 21:33:22 right, how do you keep a reference to the fragments while they're offscreen? Feb 05 21:33:36 MDijkstra: they're fields in the activity Feb 05 21:33:45 SettingsFragment mFragment; etc Feb 05 21:34:16 Hm? Feb 05 21:34:47 I don't know what exactly is going on, but the easiest solution is to never remove the fragments from your layout Feb 05 21:35:06 and simply stick them all in a FrameLayout and switch their visibility Feb 05 21:35:34 MDijkstra: OH, that would work Feb 05 21:35:46 anyone know what namespace regex is in if not tr1? std doesn't seem to work with android libs and i think this is at the heart of my problem Feb 05 21:35:55 MDijkstra: or should I use the fragment stack? Feb 05 21:36:16 mheld: I don't know what you mean by that Feb 05 21:36:20 there is the backstack Feb 05 21:36:26 but it has an entirely different purpose Feb 05 21:36:29 MDijkstra: apparently the fragmentmanager has a back stack Feb 05 21:37:15 yes, but that has absolutely nothing to do with what you're trying to do :) Feb 05 21:37:22 what's the point of it, then? Feb 05 21:37:50 mheld: to get you back to the right fragment when the user pressed the back button Feb 05 21:38:03 I don't see how they're mutually exclusive Feb 05 21:38:33 I'm betting that I'll need to futz with some back stuff, too Feb 05 21:39:01 oh, sure, but you didn't mention that initially Feb 05 21:39:31 if I'm using replace, then it would be a non-issue Feb 05 21:40:47 I think if you call addToBackStack it'll simply go back to whatever was there before you did the transaction Feb 05 21:40:59 but how this interacts with the fragment lifecycle, no clue Feb 05 21:41:11 What do I have to do to make using a peer to send me the money legal? Feb 05 21:41:54 would you really take tax/legal advice from an IRC channel? Feb 05 21:42:33 can't I get an ID or Date from SmsMessage class? Feb 05 21:42:41 mheld: as far as I can see the backstack doesn't actually hold a reference to the actual fragment instance Feb 05 21:43:02 MDijkstra: I'd rather not futz with any back logic, so I'm going to do some research to figure out why my variables are getting nulled out Feb 05 21:43:02 mheld: but instead a fragment id and the information that was used to create it Feb 05 21:43:29 sogard: ask a tax lawyer. There's no reason that you HAVE to use Google Play. You could use any alternative app store. Feb 05 21:43:45 sogard: the only thing that "makes it legal" is that you follow all applicable laws, most importantly paying taxes Feb 05 21:43:52 mheld: oh, I think I might know why Feb 05 21:44:09 mheld: are you using user interface state or? Feb 05 21:44:11 alternatively, I can make all the variables static Feb 05 21:44:12 *losing Feb 05 21:44:16 noooooo Feb 05 21:44:26 MDijkstra: I'm losing an adapter Feb 05 21:44:32 sogard: complaining here won't do anything, though it might feel pretty good. Feb 05 21:44:51 MDijkstra: a class that I have that extends baseadapter Feb 05 21:46:05 It did. I'd just like to ring a bell to the Googlers. Maybe they really don't realise how remotely nonexistent their support is. Thanks for the help. I was thinking maybe there is a specialised company that would do this type of thing for money. Feb 05 21:46:19 wat Feb 05 21:46:33 mheld: and this is also an instance var? Feb 05 21:46:39 ie SomeAdapter mAdapter? Feb 05 21:47:14 you understand that removing and reattaching a fragment will cause it to redo most of its lifecycle callbacks right? Feb 05 21:49:07 ie, if you're getting the adapter by means of mListView.getAdapter() Feb 05 21:49:17 and you recreate the listview in onCreateView Feb 05 21:49:23 then what's happening is understandable Feb 05 21:49:34 sogard: bear in mind that you can distribute your app outside of play, and then later distribute it on play when it's available for you. Feb 05 21:51:05 I'm aware of that. It's just that the Play Store makes people more aware of it. How bad would it be to only publish a demo in the Play Store and the full app in another store? Feb 05 21:52:07 Hi folks. Feb 05 21:52:40 I need you help. Feb 05 21:53:13 BTW, this is what I call support: https://developer.amazon.com/help/contactus.html Feb 05 21:53:34 I want to show something like a status where you can see if you are connected to the internet, if the youtube app is installed and if a specified database is connectable Feb 05 21:54:00 I know how I can realize this once but not periodically/permanently Feb 05 21:54:16 Anyone here at least a little bit frustrated by the fact that nobody from Android hasn't spoken a word on OpenGL ES 3.0? Feb 05 21:54:32 has* Feb 05 21:54:52 I want to use a Broadcast Receiver to check the Internetconnection. But is there a BroadCast Reveicer to check if youtube is avialable or my Database is connectable Feb 05 21:55:14 http://www.pinknews.co.uk/2013/02/05/mps-vote-400-to-175-to-pass-same-sex-marriage-bill/ Feb 05 21:55:46 sogard: it's unlikely that it'll receive device adoption until after 5.0 is out Feb 05 21:55:55 Is there something to notify my app when youtube has been installed or removed or if my database is available Feb 05 21:56:03 erm, sorry, mis paste Feb 05 21:56:17 sogard: so if they are going to support it, why not announce that at I/O together with 5.0? Feb 05 21:57:32 I find this very harsh. Current devices are bottlenecked by the what OpenGL ES 2.0 has to offer. Feb 05 21:57:51 harsh, maybe, but also realistic Feb 05 21:58:18 it's doubtful they'll backport ES 3.0 support to older android versions Feb 05 21:58:39 meaning ES 3.0 on android will only be relevant after devices start to get 5.0 Feb 05 21:58:49 a bunch of GPU vendors have also mentioned they were adopting OpenCL … would be nice to see android have that also Feb 05 21:59:12 I mean, it's pretty likely that android will have ES 3.0 support Feb 05 21:59:24 It will, definitely. Feb 05 21:59:34 Nexus 4's GPU supports it. Feb 05 21:59:54 I believe I can bake OpenGL ES 3.0 right now into it. Feb 05 22:00:06 I the libraries are public. Feb 05 22:00:09 I'm guessing nvidia's stuff also supports it Feb 05 22:00:16 so go do that, and submit a patch :) Feb 05 22:00:26 the newer tegra stuff Feb 05 22:00:26 Only the Tegra 4. Feb 05 22:00:40 OpenCL is also useless on Android. Feb 05 22:00:50 Have you heard of RenderScript? Feb 05 22:01:27 sogard: i've heardof renderscript :) Feb 05 22:01:52 in my receiver, I am handling the receiving of an SMS and storing it into the inbox, I want to delete that same SMS later on, I have no idea how to identify it..there is no SmsMessage sms; sms.getId() or something like that Feb 05 22:02:04 Renderscript is awesome. I'll do a demo at GDG about Renderscript if I have the time. Feb 05 22:10:37 Gotta go. Feb 05 22:10:38 wtf was that Feb 05 22:10:45 MDijkstra: sorry 'bout that Feb 05 22:10:55 MDijkstra: it's an instance variable -- it doesn't look like it's calling oncreateview again Feb 05 22:11:03 (I've got a log in there) Feb 05 22:11:15 here's the code, http://pastie.org/6075020 Feb 05 22:11:20 line 25 Feb 05 22:11:22 eek Feb 05 22:11:30 "emergency recovery: NFC stack dead-locked" Feb 05 22:11:32 how do I get the ID of that received SMS? Feb 05 22:11:36 Thanks for the help. I bid you guys great joy! Feb 05 22:12:00 mheld: well, if you define a reference to your adapter in your subclass Feb 05 22:12:27 mheld: then the fragment system doesn't know about it Feb 05 22:12:44 MDijkstra: but it shouldn't matter any way, I have a reference to it Feb 05 22:12:55 literally, if you hold on to a fragment reference, the only way it can become zero is if you zero it out Feb 05 22:13:05 I'm doing t.replace(R.id.thingee, mSearchFragment) Feb 05 22:13:18 then the fragment that was there loses its adapter Feb 05 22:14:01 and your adapter is also directly accessed to an instance var? Feb 05 22:14:04 what can be the reason for a normal apk app and the logcat having different timezone settings? Feb 05 22:14:17 MDijkstra: the adapter is an instance variable in the fragment Feb 05 22:14:45 I'd check the places where you access it Feb 05 22:15:38 because it's simply not possible that it becomes zero without either the fragment being recreated, your code setting it to null or some measurement problem making you believe it is zero Feb 05 22:16:08 hard to tell which it is without a look at the code Feb 05 22:19:51 test Feb 05 22:19:57 hey anyone here? Feb 05 22:20:27 evening Feb 05 22:20:46 awesome, im basically have a problem with fragments and async tasks Feb 05 22:21:13 so i did a load of research and a lot of people are suggesting using setRetainInstance(true), but I dont wana go down that route, so I wrote something similar to this: http://pastebin.com/uvyYutXr Feb 05 22:21:22 and was wondering if this is a good idea or not Feb 05 22:25:34 home.no/reddvinylene/test/ -- Anybody know why this Beyonce seamless fluid image Masonry (http://metafizzy.co/blog/beyonce-seamless-fluid-image-masonry/) crashes on AppleWebKit? Feb 05 22:28:35 not sure what you're talking about Feb 05 22:29:05 was that directed at me? Feb 05 22:29:22 no Feb 05 22:29:27 oh :( Feb 05 22:31:51 How do I set BuildConfig.Debug from ant? Feb 05 22:32:25 I think it gets automatically set to true if you do a release build Feb 05 22:32:54 At least for me, it does when I export a signed apk in Eclipse. I expect it to behave the same with ant Feb 05 22:33:40 kakazza, I think I want the reverse of that. ant release (inherited codebase) adds all the signing stuff for gmaps for me, but also includes a bunch of debug screens. Feb 05 22:34:32 Sorry, I meant it gets set to "false", my bad. Feb 05 22:34:44 DEBUG true only when I do "ant debug" for example Feb 05 22:35:17 kakazza, hmm, okay. maybe he got it backwards. Feb 05 22:36:09 It's easy to test. if (BuildConfig.DEBUG) Log.i("Foobar", "I R DEBUG"); Feb 05 22:40:43 hey Feb 05 22:40:47 anybody here? Feb 05 22:42:01 I need help with my countdown timer? Feb 05 22:43:43 Don't ask to ask, just ask Feb 05 22:45:03 I have a problem with async task and fragments, dont really want to use setRetainInstance, based on https://github.com/commonsguy/cw-android/blob/master/Rotation/RotationAsync/src/com/commonsware/android/rotation/async/RotationAsync.java, is this a good idea? -- http://pastebin.com/uvyYutXr Feb 05 22:46:31 Can someone write to me in private? Its much easier Feb 05 22:48:02 I won't, but how is it easier than asking here where many more people can read your question and potentially reply to it? Feb 05 22:51:16 ok brb.. I will try to explain.. Feb 05 22:52:45 I need a timer.. I have made a separate class with my own timer. Dunno how to get the timer to work with a activity from another class.. Feb 05 22:52:52 you want to see the two classes? Feb 05 22:52:58 I can put them in pastebin Feb 05 22:53:06 I need a countdown.. I found the class and so Feb 05 22:54:37 What is it that you're trying to do? Feb 05 22:54:45 I am making a quiz... and I need a countdown timer :) Feb 05 22:54:46 And have you looked at "Timer" and "TimerTask"? Feb 05 22:54:49 understand? Feb 05 22:55:04 Ah, so it actually has to count down visually? Feb 05 22:55:09 yeah Feb 05 22:55:18 can it be done with textview? Feb 05 22:55:29 or is there a better way? Feb 05 22:55:58 Found a class called CountDownTimer which I extend Feb 05 22:56:06 and made my own class Feb 05 22:56:44 and I cant use findviewbyid in that class because I need to extend Activity to do that... Feb 05 22:56:57 this isn't twitter, you can write more than 140 lines per message Feb 05 22:56:58 which I do in the other class I have Feb 05 22:57:14 bad habit. Sorry Feb 05 22:59:01 Ilhami: Can't you just do "new CountDownTimer(20000, 1000) { … }.start();? Feb 05 22:59:12 I mean, unless you really need to extend it for some reason. Feb 05 22:59:18 https://developer.android.com/reference/android/os/CountDownTimer.html Feb 05 22:59:39 I dont need to extend it I think... I just found an example on stackoverflow where it was extended.. hh Feb 05 23:00:00 That way you can also use your members of the class you instantiate it in. Otherwise, give the Constructor of your custom CountDownTimer a reference to the TextView Feb 05 23:01:41 so what should I write in those methods? Feb 05 23:02:09 so I setText the textview Feb 05 23:03:26 since I wont make a database because we havent learned that yet, I made a array with questions.. thats ok right? Feb 05 23:05:51 brb Feb 05 23:06:49 Yeah. You have the remaining time in milliseconds, so you need to convert them to minutes and seconds and display that in the TextView Feb 05 23:06:58 Or just seconds, depending on how long the countdown is. Feb 05 23:07:28 There are various ways to do that. DateFormat or just do some calculations on your own. Feb 05 23:08:32 https://developer.android.com/reference/java/util/concurrent/TimeUnit.html Feb 05 23:20:51 kakazza thats why I was asking you if you could look at my code... Feb 05 23:20:53 in private Feb 05 23:21:03 I have really not much experience with programming Feb 05 23:23:25 is there a workaround to using sqlite3_create_function with android and sqlite3? Feb 05 23:25:42 meetri: nope, you can bundle your own version of sqlite through the NDK Feb 05 23:25:44 though Feb 05 23:26:03 with any custom function you want, too Feb 05 23:26:25 MDijkstra, does anyone have any experience doing this with sqlcipher? Feb 05 23:26:52 it appears that sqlcipher already extends sqlite3 through the NDK Feb 05 23:26:55 is this the way I implement the alarm manager to do "xyz" every certain period of time? http://pastie.org/6075548 Feb 05 23:27:20 meetri: it probably replaces sqlite3 through the NDK Feb 05 23:27:50 Sicp hmmm that looks like what I'm doing Feb 05 23:28:11 as in the app Feb 05 23:28:15 the calendar.set confuses me Feb 05 23:28:19 not your timery thingy] Feb 05 23:28:33 yea that kind of app is all over Feb 05 23:30:02 the calendar.add () is confusing me because below you set alarmManager.set and you give it the interval Feb 05 23:30:29 so what if I have Calendar.HOUR, 11, Calendar.MINUTE, 45 and then I set INTERVAL_HALF_HOUR below that Feb 05 23:30:39 I get it to repeat every half hour at 11:45? what the fuc Feb 05 23:30:42 +k Feb 05 23:35:38 hey guys Feb 05 23:35:54 is there a way to start ADB in tcp listen mode without resorting to connecting via USB first? Feb 05 23:36:08 I'm on a Google Chromebook, and my SDK is installed on a remote server Feb 05 23:37:06 is there some app on the Play Store that might do it for me? Feb 05 23:37:46 hi folks Feb 05 23:39:10 I'm a newbie, and I'm trying to run my first app (hello world), I managed to get the emulator configured to android 2.3, screen resolution and all, but it now show an error like 'emulator-5554': no such file or directory Feb 05 23:39:53 Run abd kill-server and adb devices from command line Feb 05 23:40:07 adb* Feb 05 23:40:28 Sometimes adb gets confused Feb 05 23:40:32 ok, I did it. Opening eclipse... Feb 05 23:42:59 hmmm I do not have adb in the presumed diretory, I probably unpacked it in the wrong place Feb 05 23:43:40 wait, it is there... wth Feb 05 23:44:33 Open terminal /command prompt, cd to the adb executable directory and run it from there Feb 05 23:44:56 I think there may be a reset adb option in ddms view in a eclipse Feb 05 23:45:00 AlCapwn, it show a lot of text Feb 05 23:46:13 Hmmm, you sure you ran it right? 'adb kill-server' is one command and 'adb devices' is another Feb 05 23:46:28 yes I ran both commands, twice Feb 05 23:46:56 Paste I Feb 05 23:47:03 Pastebin the output Feb 05 23:47:17 I see the emulator screen and the title say: 5554:WVGA-480x800 Feb 05 23:47:36 the 'adb devices' output? Feb 05 23:48:05 Does adb devices command or ddms view show you the emulator? Feb 05 23:48:14 Yeah, go on aFeijo Feb 05 23:48:17 no, here it is the output http://pastebin.com/Dg8f4f4K Feb 05 23:48:22 no devices :( Feb 05 23:48:30 wait Feb 05 23:48:38 I ran adb devices and it now show my emulator-5554 Feb 05 23:49:07 OK, you should be able to install stuff to the emulator from eclipse now Feb 05 23:49:49 if I try to run in both my projects, it show "Failed to install MyFirstApp.apk on device 'emulator-5554': No such file or directory" Feb 05 23:50:34 Weird Feb 05 23:51:03 and I'm so lost... hehehe, I know a lot of other languages, java not yet :/ Feb 05 23:51:28 I cant find the Graphical Layout of that project of mine, lol Feb 05 23:51:32 Try running clean & rebuild your project, can't remember the menu it's under, but it's towards the end Feb 05 23:56:10 alright, it works, just like I posted above Feb 05 23:56:17 but still don't get that calendar shit Feb 05 23:57:36 AlCapwn, I found the clean stuff, used it for both my projects but the error remains... I will re-read all instructions about installing eclipse with android Feb 05 23:58:12 aFeijo: do me a favour Feb 05 23:58:21 go to your project dir Feb 05 23:58:34 and in */bin there should be your **.apk Feb 05 23:58:50 StingRay_, yes Feb 05 23:58:55 aFeijo: then do adb install /path/to/the/apk Feb 05 23:58:56 MyFirstApp.apk Feb 05 23:59:00 in a command prompt Feb 05 23:59:11 and what OS are you using ? Feb 05 23:59:30 ubuntu 12.10 Feb 05 23:59:47 it show an error, with an path that does not exists in my system: /data/local/tmp Feb 05 23:59:53 shall I create it? Feb 06 00:00:20 can do, but thats a little odd Feb 06 00:00:27 adb shell Feb 06 00:00:28 su Feb 06 00:00:30 mkdir etc Feb 06 00:00:40 and chmod it too Feb 06 00:00:41 OR Feb 06 00:00:57 create another eumulator from a preset and try that Feb 06 00:02:23 oh, so that /data is like in the android? my emulated android? ok I do have /data, but that folder is read-only and is empty Feb 06 00:02:36 I will remove the emulator and create a new one Feb 06 00:02:42 indeed Feb 06 00:02:43 do that Feb 06 00:02:45 and no Feb 06 00:02:52 data will have things in Feb 06 00:03:08 but you will need superuser to see them Feb 06 00:03:10 I think Feb 06 00:03:17 I dont use emu so not sure :) Feb 06 00:03:24 hm. i'm wondering if the best Android phone is really a BB phone, since it supports 4.1; seems like its pretty easy for them to update that when they want Feb 06 00:03:40 * g00s headdesk Feb 06 00:04:23 g00s: you lots me Feb 06 00:04:29 BlackBerry ? Feb 06 00:04:37 yeah, it can run android apps Feb 06 00:04:42 yeah I know Feb 06 00:04:49 it comes with a 4.1 image/player Feb 06 00:04:52 was the bit b4 that you lost me on Feb 06 00:04:56 yeah that bit Feb 06 00:04:59 :) Feb 06 00:05:02 best ? Feb 06 00:05:11 actually Feb 06 00:05:16 I have a few playbooks Feb 06 00:05:37 well next to a nexus; they aren't going to skin it - they just want the apps; and to do that, its in their interest to leave it as plain as possible Feb 06 00:05:43 and I rank the OS above android and maybe a little above iOS in a user stance Feb 06 00:05:49 is there a better channel to head to for android game development as a topic? Feb 06 00:05:52 argh, same problem! Feb 06 00:06:17 aFeijo: you not have a device you can test ? Feb 06 00:06:23 StingRay_: I bet those make a sweet digital photo frame Feb 06 00:06:23 rather than AVD ? Feb 06 00:06:38 StingRay_, I own 1 atrix and 1 tablet Feb 06 00:06:59 See d.android.com for references and #android-dev for App dev questions. Feb 06 00:07:04 Wrong channel, aFeijo Feb 06 00:07:07 Khaytsus: they have better functional UI design than the silly android guides Feb 06 00:07:18 StingRay_: And zero third party support. Feb 06 00:07:21 not as featured obviously Feb 06 00:07:41 BB10 will be a very tiny bump in their market Feb 06 00:07:49 but my god the playbook is impressive in performance Feb 06 00:08:07 against comparable android device hardware Feb 06 00:08:21 My Nexus 7 is super fast and smooth sometimes, other times I'm like WHAT THE FUCK IS IT DOING Feb 06 00:08:54 if the market can take 3 players, i think they will not make it vs MS Feb 06 00:09:03 oh well Feb 06 00:09:33 I know there are style guidlines e.t.c... but is there an iconset google produce so that apps can use a similar style/look and feel everywhere? Feb 06 00:10:10 StingRay_: interesting, Huawei is making a WP for Africa (4Afrika) Feb 06 00:10:26 so i guess WP will be going into emerging markets already Feb 06 00:11:45 it comes preloaded with apps written in that region; i would imagine something like mPasa Feb 06 00:14:06 Damn, where IS the market share website, I know I found that easy last time I looked Feb 06 00:16:39 ahhughes: http://developer.android.com/design/downloads/index.html Feb 06 00:16:40 Damn, finally, IDC Feb 06 00:17:33 IDCs market share status seem pretty bogus; their #s come from what was stuffed in the channel, not what actually sold to people Feb 06 00:18:15 Microsoft is historically bad about claiming "sales" based on how much they've forced on their OEMs Feb 06 00:18:18 so according to them, MS sold 900K Surface RTs, but the # is much lower, and the return rate was very high Feb 06 00:18:44 Khaytsus: Samsung is too Feb 06 00:20:35 ahhughes: https://android-ui-utils.googlecode.com/hg/asset-studio/dist/index.html Feb 06 00:20:48 g00s: return rate on surface RT hight ? Feb 06 00:20:54 yeah Feb 06 00:21:01 oh, my platform-tools/ folder is no in my system PATH :) that might be the problem Feb 06 00:21:23 g00s: any link? info? reasons? Feb 06 00:21:38 http://blogs.wsj.com/digits/2013/02/04/how-to-prepare-your-facebook-profiles-privacy-for-graph-search/ Feb 06 00:21:52 how about a setting to turn off graph search on your account lol Feb 06 00:23:27 well I nulled all my info on facebook about a year ago Feb 06 00:23:53 thanks MDijkstra and kakazza :) Feb 06 00:23:55 Trinity: easy: delete profile :) Feb 06 00:25:01 g00s: nah, null first then deactivate Feb 06 00:25:16 is FB creating proxy profiles anyhow ? Feb 06 00:25:16 well in my honest opinon it doesnt matter if you deactivate, its just the nulling Feb 06 00:25:24 proxy profiels? Feb 06 00:25:44 yeah, for example, i dont have a FB account, but they may have a placeholder for me if my email is in somebody's address book Feb 06 00:27:24 StingRay_: should be easy to find, here is just one link http://blog.laptopmag.com/microsoft-surface-rt-sales-slow-return-rates-high Feb 06 00:28:30 g00s: just wondered off-hand if you knew any of the major reasons for returns Feb 06 00:29:00 nope, its easy to speculate, but i'm distracted on something else Feb 06 00:29:04 besides "I thought it was an ipad" Feb 06 00:30:25 anyone know any good "Tree View" libraries Feb 06 00:31:05 say I had a list like List nodes; and each Node had its own List childNodes Feb 06 00:31:15 and so forth Feb 06 00:31:52 I've taken a look at ExpandableListView, and "tree-list-view" but wondering if you guys know of any alternatives Feb 06 00:32:18 matt9: I would be interested if you find something Feb 06 00:34:41 matt9: its pretty hard to represent hierarchy on a 5" screen Feb 06 00:34:58 maybe 1 or 2 levels ok, more seems problematic Feb 06 00:35:03 g00s: even with pichy zoomy ? Feb 06 00:35:07 I think not Feb 06 00:35:09 g00s yeah i could see that Feb 06 00:35:32 im trying to implement a view to represent a comment thrad Feb 06 00:35:38 like you'd see on reddit or hacker news Feb 06 00:35:42 oh yeah Feb 06 00:36:21 even the desktop versions of those sites suck when the comments get too deep Feb 06 00:36:22 I wonder how 'reddit is fun' does it Feb 06 00:37:20 kakazza yeah i wonder Feb 06 00:37:26 i looked a bit at the source that is available on github Feb 06 00:37:35 and i see a bunch of linear layouts? lol Feb 06 00:37:47 kakazza: probably through a flat list with configurable indentation in the list items Feb 06 00:38:38 at least, that's how I'd do it Feb 06 00:39:19 matt9: That is a very old version on github. Feb 06 00:39:24 mdijkstra i feel like that would get messy if you wanted expand/collapse/load more functionality Feb 06 00:39:30 Version 2.x was a complete rewrite and is closed source afaik Feb 06 00:39:35 ah Feb 06 00:39:45 how can i install a project with a tree that looks like this? http://imgur.com/rZQllzt Feb 06 00:40:06 http://i.imgur.com/rZQllzt.png direct link Feb 06 00:40:19 matt9: this is interesting in that i think a solution for a phone and tablet would look very, very different Feb 06 00:40:25 matt9: expand/collapse perhaps Feb 06 00:40:41 but I think load more only loads new toplevel comments Feb 06 00:40:51 so that wouldn't neccesarily be a problem Feb 06 00:41:20 for the reddit api at least, load more would apply to deep child comments too Feb 06 00:41:30 not necessarily only top level comments Feb 06 00:41:35 i dont think you can realistically expect to view more than one comment on a mobile screen at a time; maybe figur out a way to represent the tree as graph butonly show one comment Feb 06 00:41:55 g00s have you seen the reddit is fun app? or reddit sync? Feb 06 00:42:01 no Feb 06 00:42:03 I think the comment UI looks pretty clean Feb 06 00:42:12 lemme look at play Feb 06 00:42:13 even with like 5 levels deep of comments Feb 06 00:42:50 the indentation is very minimal so nesting can go pretty deep Feb 06 00:43:19 i only see one screen shot of a phone, and its the top level stories Feb 06 00:43:38 the hierarchies are in tablet configurations Feb 06 00:43:44 (screen shots) Feb 06 00:44:04 ah true Feb 06 00:44:06 and i think anhow, it looks like crap Feb 06 00:44:11 lol Feb 06 00:44:26 matt9: here is your chance to innovate on some unique visualization Feb 06 00:44:43 consider it your secret sauce Feb 06 00:45:08 hah Feb 06 00:45:11 g00s check out https://lh3.ggpht.com/VNrTl9jyGKCeL4HV85rJXNc9CW15H9mFG-6wbsRlrqhzbKaKROwjL5WYVaNKGoJ3W00 Feb 06 00:45:13 I found this error when I try to run my emulator thru shell, Failed to load libGL.so Feb 06 00:45:29 its kind of a weird screenshot, but imagine if the comment thread on the right took up the full screen Feb 06 00:45:36 i think it looks pretty nice Feb 06 00:46:16 should the emulator show like an android, with all the icons and stuff? Mine is black Feb 06 01:00:59 g00s: the fact that they have a placeholder for you is genuinely scary. Feb 06 01:01:05 they would still know whos connected to you Feb 06 01:01:45 yup. and imagine when you through into the mix, something like Google Glasses, facial recognition, etc. legislation is needed Feb 06 01:02:53 lol, i dont see anything I can do about it. I read all of these comments on how people dislike it but yet no ones doing anything about it Feb 06 01:03:39 and even if the majority dislike it nothing will be done. if you look at presidential elections in america you'd see how easy it would be to place fraudulent votes Feb 06 01:04:01 imho, the battle is already lost :/ before people even recognized the battle Feb 06 01:04:40 Trinity: if you are interested in these things, i heard Al Gore's new book was a worthy read Feb 06 01:04:50 and some of the comments by Noam Chomsky Feb 06 01:05:00 (its easy to be discouraged and not do anything) Feb 06 01:46:47 g00s: oh no, im doing work but I believe on a different level Feb 06 01:47:14 g00s: im not about to fight a losing battle which only talk is spoken but actions are never taken Feb 06 01:47:41 g00s: rather find the opportune moment Feb 06 01:48:27 :) Feb 06 01:56:19 Anyone know if subscriptions will be supported in API version 3 within the next few months? Feb 06 01:56:36 API 3? Feb 06 01:56:46 g00s yes Feb 06 01:57:24 cupcake ? Feb 06 01:57:37 the official word is "soon", but I'm debating just coding up version 2 Feb 06 02:00:28 only if subscription earns enough money for google Feb 06 02:00:38 g00s: hes talking about in-app-billing API Feb 06 02:00:57 the more money it makes the sooner it is Feb 06 02:03:24 Isn't iirc 50% 9, 40% >15 Feb 06 02:05:17 tahooie: "soon" is google doublespeak for "sometime in the future: we wont tell you when but you should poison your soul by getting your hopes up for a long time" Feb 06 02:05:58 ex: Adding Bluetooth support to the emulator, etc Feb 06 02:06:28 g00s: ugh, I know. I'm checking their blog every day and giving up hope Feb 06 02:06:43 should probably just use version 2 and then migrate. Feb 06 02:06:48 i've been waiting for BT in the emu for like a year now :) Feb 06 02:07:03 I wish they would give a rough estimate, so we would know what to plan for! Feb 06 02:07:09 kakazza: http://developer.android.com/about/dashboards/index.html Feb 06 02:07:13 at the last I.O, a google supplied actionbar was also coming "soon" heh Feb 06 02:07:19 so if they say soon, its probably doomed Feb 06 02:07:22 clever: Yeah, was too lazy to fire that up. Feb 06 02:07:25 kakazza: data directly from all devices running play store Feb 06 02:07:35 hah Feb 06 02:08:13 I know, the numbers I quoted were from January Feb 06 02:08:21 Good to see 4.x over 40% Feb 06 02:08:26 Last time it was like 39.2% Feb 06 02:09:34 tahooie: thats a good idea to just use API 3 Feb 06 02:09:35 2* Feb 06 02:09:50 kakazza: nice! Feb 06 02:09:50 API2 offers a lot more functionality anyways, like server-to-server verification Feb 06 02:10:39 yes, I'm biting the bullet now. I've just had so much trouble with undocumented bugs in it in the past that I'm not excited about this Feb 06 02:10:41 though it is a bit harder to understand Feb 06 02:10:47 ask me and i shall help you :) Feb 06 02:10:53 thanks! Feb 06 02:11:05 'tis possible that those undocumented bugs are in my head :) Feb 06 02:14:31 tahooie: they occur imho when you didn't implement them right Feb 06 02:14:53 the worst part about IAP is the wait time between google edits/changes Feb 06 02:15:10 I'll try to pay close attention and get it right the first time Feb 06 02:18:41 tahooie: once you understand this workflow IAP gets a lot easier, http://developer.android.com/images/billing_arch.png Feb 06 02:21:43 that doesn't look too bad Feb 06 02:25:45 I am trying to import android.content.ClipData; in an AIDL, but for some reason it keeps saying it can't find it Feb 06 02:25:47 http://developer.android.com/reference/android/content/ClipData.html Feb 06 02:25:55 ClipData implements Parcelable so it should be fine Feb 06 02:31:21 when I use "import" in AIDLs, does it just use the class path? Feb 06 02:38:18 Trinity: Did you code subscriptions directly, or use one of those open source libraries? Feb 06 02:41:33 Ive taken over a codebase, some buttons have changed from white to grey, and the label shrank. yet it looks fine/the way it used to look in Graphical Layout in Eclipse. What am I doing wrong? Feb 06 02:56:10 tahooie: I coded it directly and coded the backends for my own server Feb 06 02:56:49 ^ for in app billing purchases Feb 06 02:56:58 tahooie: for subscriptions youre supposed to use googles servers Feb 06 02:57:21 anyone programming android on windows Feb 06 02:57:41 me Feb 06 02:57:43 just want to know what c c++ compiler i need for eclipse Feb 06 02:58:05 what? NDK? Feb 06 02:58:26 yes ndk and sdk **** ENDING LOGGING AT Wed Feb 06 02:59:58 2013