**** BEGIN LOGGING AT Fri Apr 06 03:00:00 2012 Apr 06 03:00:24 kies is not a point-of-sale system Apr 06 03:02:20 pargma` I need some advice. Apr 06 03:02:29 So I'm using the set visibility for the progress bar. Apr 06 03:02:47 But when my code exicutes (saves a sound to the sd card) it freezes the app while it does that. Apr 06 03:02:57 So the ProgressBar never shows up. Apr 06 03:02:58 so do it in a background thread Apr 06 03:03:01 Because it freezes. Apr 06 03:03:06 Oh, good idea Apr 06 03:03:12 Thanks for the advice :) Apr 06 03:03:23 What would be a good sleep time Apr 06 03:03:26 For that thread Apr 06 03:03:31 So that it isn't just killing the cpu Apr 06 03:03:31 why does it need to sleep? Apr 06 03:03:32 may not be the answer to your question, but its good advice Apr 06 03:03:58 Won't it just kill the cpu if it's checking if a variable is true, returns false and trys again Apr 06 03:04:10 T-Dub|DlolPics callbacks Apr 06 03:04:12 Like how ever many times a second a thread exicutes Apr 06 03:04:13 asynctask Apr 06 03:04:18 I don't know what a callback is. Apr 06 03:04:24 or you can use a countdown latch Apr 06 03:04:28 dont just loop checking x Apr 06 03:04:34 have it call a function when shes all done Apr 06 03:04:58 Is that process call "callbacks" because I don't understand however I can google. Apr 06 03:05:11 just look up asynctask Apr 06 03:05:18 Ok, is that android or java thing? Apr 06 03:05:21 now a days thats the easiest way to do background worker Apr 06 03:05:37 and then you get onPostExecute for hiding dialog or whatever Apr 06 03:05:42 android Apr 06 03:06:18 Thanks Apr 06 03:19:08 svchost: one reason why this may be so, is that andy rubin primarily gauages the success of android based on # of activations per day, not on developer revenue ;) Apr 06 03:19:50 so features that empower developers are - secondary Apr 06 03:19:56 (at least) Apr 06 03:20:19 yeah, which is foolish Apr 06 03:20:24 g00s: I'm partially thinking it might be evidence behind Google being rather disorganized ;) Apr 06 03:20:30 and its why android is a joke to many people Apr 06 03:20:34 because of their awful app store Apr 06 03:20:39 it gets slammed in the press constantly Apr 06 03:20:40 awful? Apr 06 03:20:48 yes.. their app store is shit Apr 06 03:21:02 garbage Apr 06 03:21:05 p_l: this came out very recently, the uh struggle, between a few people including the guy they just let go who lead up the android market Apr 06 03:21:18 svchost: Hmm.. I stopped paying attention to "press" for a long time Apr 06 03:21:31 good for you, but you're in the minority, buddy Apr 06 03:21:36 so you live in your isolated little bubble Apr 06 03:21:39 while android gets laughed at Apr 06 03:21:40 and mocked Apr 06 03:21:41 why did you set him off again? Apr 06 03:21:47 oh oh Apr 06 03:21:48 minority? Apr 06 03:21:51 i had no idea Apr 06 03:21:53 android has >50% of marketshare Apr 06 03:21:57 hard to say it's in the minority Apr 06 03:21:58 svchost: majority didn't have episodes where they seriously considered bombing a newspaper Apr 06 03:22:05 irrelevent, its app store gets almost no use Apr 06 03:22:11 nobody uses it because its garbage Apr 06 03:22:15 nobody develops for it Apr 06 03:22:17 because its garbage Apr 06 03:22:20 lol Apr 06 03:22:25 doesn't seem like nobody Apr 06 03:22:26 your statements are unfounded, and just trolling Apr 06 03:22:30 its filled with junkware and trash Apr 06 03:22:31 ok so anyhow, there is an opportunity to do a service like this https://testflightapp.com/ Apr 06 03:22:46 maybe svchost will do it :D Apr 06 03:22:47 apple is a horrible company and they dont deserve to win, but google is just letting them win Apr 06 03:22:50 yes, there's a lot of junkware... that's the price of creating an open system Apr 06 03:22:53 svchost: please stay on topic Apr 06 03:22:58 Apple is the 99% Apr 06 03:23:03 lol Apr 06 03:23:04 no Apr 06 03:23:09 no, apple is emphatically the 1% Apr 06 03:23:13 no fucking way. Maybe in small pocket bubbles Apr 06 03:23:36 Steve Jobs is now dead and therefore has more influence as a pseudo-deity. Apr 06 03:23:53 The thing is, Android is slowly winning through a completely different mechanism Apr 06 03:24:12 namely, spreading its HCI model Apr 06 03:24:27 I'm so used to it I can't stand iOS Apr 06 03:25:09 Is there a random method? Where you put like random(2,6) and it will "randomly" choose a number from 2 to 6 Apr 06 03:25:18 iOS: "Why would you want to use more than one app at a time?" Apr 06 03:25:19 T-Dub|DlolPics: part of Java API Apr 06 03:25:25 Hmm Apr 06 03:25:28 Not working Apr 06 03:25:30 Are there caps? Apr 06 03:25:40 T-Dub|DlolPics: ... search java documentation? Apr 06 03:25:56 ASSUME = Make an ASS of U and ME Apr 06 03:25:59 pragma`, i wouldnt Apr 06 03:26:03 because apple is god Apr 06 03:26:09 that random statements looks like something out of ruby Apr 06 03:26:19 idamn it i hate it - my favorite shirt became itchy Apr 06 03:26:36 g00s: old news Apr 06 03:26:40 haha Apr 06 03:26:43 we knew it was itchy 5 hours ago Apr 06 03:26:43 I have never had an item of clothing become itchy, except for after haircuts. Apr 06 03:26:52 pragma` +1 Apr 06 03:27:46 no seriously, my room mate throws the crazies shit in the washing machine. i bet a thorn got stuck in my shirt Apr 06 03:27:59 Then again, I've never used starch or any chemicals other than simple laudry detergent. Apr 06 03:29:00 Then again, I never cared much for clothes or fashion in the first place. I'm content to wear the same t-shirt months in a row, even well after it is thread-bare. Apr 06 03:29:11 It only gets softer. Apr 06 03:29:23 And my man-musk is soothing. Apr 06 03:31:39 Most of my t-shirts are unravelling around the neck and hems. Apr 06 03:31:50 It's so comfortable. Apr 06 03:32:34 How can you have a thread that didn't create the view, change the view's settings? Apr 06 03:32:50 goose musk is better Apr 06 03:32:52 Pass a reference to the view to the thread. Apr 06 03:32:58 I'm getting this error: 04-05 20:31:58.767: W/System.err(28185): android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. Apr 06 03:33:04 Or declare it final and share it with the thread's class. Apr 06 03:33:16 Oh, right. Apr 06 03:33:19 I declared it as public? Apr 06 03:33:20 What am I babblign about? Apr 06 03:33:27 You ahve to touch views on the UI thread Apr 06 03:33:38 Use a handler or runOnUiThread or any of the various thousands of methods Apr 06 03:34:57 Thanks Apr 06 03:35:29 hi Apr 06 03:35:46 T-Dub|DlolPics: asynctask has certain methods that only run on the ui thread Apr 06 03:35:54 update the view from those methods Apr 06 03:36:02 are certain variables that are used globally writable? Apr 06 03:36:05 * pragma` personally uses Thread and Handler rather than AsyncTask Apr 06 03:36:10 * pragma` is masochist. Apr 06 03:36:11 like the gps ll storage Apr 06 03:36:26 there seems to be multiple coordinates stored on a razr Apr 06 03:36:38 one is live, what is the other coords for.. tower location? Apr 06 03:36:43 anybody know? Apr 06 03:36:54 I looked into asynctask, it's way out of my league. I don't get it at all. Maybe a later date, I'll just not having a loading thing. After all it only takes like 3 seconds Apr 06 03:37:21 attaching similar tasks to required processes? Apr 06 03:38:04 can i run the jdk remote on a vps centos? Apr 06 03:38:10 thanks Apr 06 03:39:20 * blast0id|sleep is away: I'm busy Apr 06 03:39:46 xbp: I think the location data goes through the location manager. It's not *normally* writeable by other parts than system components Apr 06 03:40:54 * pragma- ponders the situation. Apr 06 03:41:50 Yes, this nick is an improvement. Apr 06 03:42:33 oy Apr 06 03:42:51 p_l: I suppose it's stored in different locations and the memory is allocated during the boot Apr 06 03:43:02 global variables are weird in android Apr 06 03:43:46 global variables are the same as in any java application Apr 06 03:43:53 they aren't weird in android Apr 06 03:44:04 they're about the same as in any application and not just java, as well Apr 06 03:44:21 ... Apr 06 03:44:26 >_> Apr 06 03:44:35 it's not Atari OS. Apr 06 03:45:36 Location system is normal IPC service (IIRC) that connects with location provider deamons (among them, rild - for towers, and whatever is handling GPS) Apr 06 03:45:58 network/network passive/gps Apr 06 03:46:08 there are multiple stored long/lat values Apr 06 03:46:18 im guessing realtime phone location, tower location Apr 06 03:46:30 i wrote an app that sniffs all activity Apr 06 03:46:33 its interesting to watch Apr 06 03:47:00 xbp: Location Manager caches previous data so that it can provide faster fix Apr 06 03:47:14 so in my content provider, my uri.getLastPathSegment() isn't an _id to match my uriMatcher.addURI(PROVIDER_NAME, "Selected_Drinks/#"...). Not sure why. It seems to be the name of the table. http://pastebin.com/G8AbBjTk Apr 06 03:47:24 also, the "A" in AGPS stands for mixing in tower data (usually) Apr 06 03:47:49 Ah, MITDGPS Apr 06 03:48:11 I can see why they named it AGPS instead. Definitely catchier. Apr 06 03:49:26 why "DGPS" in the name? (or rather, what stood for MITDGPS?). Because DGPS used correctional towers and afaik was deployed only in Europe (in USA... I'm not sure of how legal it would be.) Apr 06 03:50:12 hmm... I guess legal, but probably not "liked" Apr 06 03:51:50 "mixing in tower data global positioning system" Apr 06 03:51:53 <[deXter]> Say all, anyone has success using openJDK recently to create apps? Apr 06 03:52:30 What can causes FrameLayout to cover over the TabWidget? Apr 06 03:53:53 Is it better (in terms of efficiency) to declare your variables private if you don't going to let other classes access them? Currently I haven't even been declaring public/private, just like "String hi = "hi";". But if it's more efficient to put private I can, anyones thoughts? Apr 06 03:54:06 *Aren't Apr 06 03:54:55 T-Dub|DlolPics: It doesn't make a difference Apr 06 03:55:05 Alright, thanks. Apr 06 03:55:53 it could make *theoretical* difference, but I don't think dex uses that Apr 06 03:56:33 (and Java is incapable of doing that in bytecode I think, but whatever JIT/AOT compiler used could do) Apr 06 03:56:39 So good practice, just use private if I don't intend to allow classes to use em? Apr 06 03:56:48 *other classes Apr 06 03:56:59 T-Dub|DlolPics: yeah Apr 06 03:57:14 K, thanks. Apr 06 03:58:18 Thank you everyone for the help, I apologize that I'm annoying and ask a bunch of questions. Night. Apr 06 04:02:24 hey guys, is there a way to get the 16 character android ID using the simulator? It's always 15 characters for me. Apr 06 04:04:31 Snuupy I woudnt count on it being unique, 16 characters or any other number of fixed characters Apr 06 04:04:39 ron_frown: why's that? Apr 06 04:04:44 <[deXter]> WTf, "Intel Hardare Accelerated Execution Manager is not compatible with Linux." :( Apr 06 04:04:46 because its not guarenteed Apr 06 04:04:55 ron_frown: I thought all Android ID's were 16 characters. Apr 06 04:05:03 this references that: http://codekiem.com/2012/02/24/apk-downloader/ Apr 06 04:05:05 I've seen gobs of devices that a) used the same id (I've got about 200 devices at the office that way) Apr 06 04:05:28 b) I've seen custom roms fudge that information and have same unique id's Apr 06 04:05:43 c) I think the id's can pretty much be anything within reason Apr 06 04:05:48 ron_frown: but does the simulator generate a unique ID, or is there a way to get this ID? Apr 06 04:05:57 or can I force generate it? Apr 06 04:06:23 ? Apr 06 04:07:02 Which part didn't you get? Apr 06 04:07:11 why do you need it Apr 06 04:07:32 to get APK's off Google Play with the above link. Apr 06 04:08:25 wow Apr 06 04:08:31 Hmm? Apr 06 04:08:46 I dont know Apr 06 04:08:58 emu was obviously designed NOT to run market Apr 06 04:09:02 oh. okay. =\ Apr 06 04:09:11 I dont think they are going to make it easy to go installing whatever apps you want Apr 06 04:09:21 ron_frown: I got it to run, and it can install apps (though it's on 1.6) Apr 06 04:09:35 I just can't find the 16 character Android ID that's "supposed" to be there. Apr 06 04:09:46 (if it were a real device) Apr 06 04:09:57 I just find the .apk I want, and adb install blah.ap Apr 06 04:10:06 right, sometimes you can't find that apk file. Apr 06 04:10:07 the market online has a install app now Apr 06 04:10:17 that triggers installing Apr 06 04:10:23 if you do infact have play connecting Apr 06 04:10:33 yep, it won't link to the simulator. Apr 06 04:26:35 Urgent question: Is there any way to not let android show this popup: "xxx is not responding. Would you like to close it? 'Wait' 'Okay'"? I'm running some network stuff that take more than 2 minutes. Apr 06 04:27:03 this popup even shows with my ProgressDialog running! Apr 06 04:27:17 thanks in advance for all the help! Apr 06 04:28:10 threads! Apr 06 04:28:19 ? Apr 06 04:28:21 im having trouble understanding layout rotation for Android.. I set my screenOrientation = sensorLandscape and my layout doesnt animate to the opposite landscape side.. it just appears.. Apr 06 04:28:26 any help thanks.. Apr 06 04:28:31 can you be more specific Jak_o_Shadows? Apr 06 04:28:46 though, since you're already doing network stuff, shouldn't you already be doing threads, as it doesn't let you do networking on the main thread. Apr 06 04:28:56 Threads, running in a different process. Apr 06 04:29:04 an intentService can be a handy way of oding this Apr 06 04:31:59 if I do a manual animation with ani.xml then my ui gets rotated but not my touches.. I'm sorry i come from ios.. but I'm getting better at Android.. thanks Apr 06 04:47:47 romainguy: I found this: https://github.com/hamsterready/dbpreferences Apr 06 04:48:00 Just a heads up. I'll see which solution is easier to go with... Apr 06 04:52:27 Though it looks old and unused heh Apr 06 04:52:43 is there any way to let android never show the "xxx is not responding. would you like to close it?" popup without using threads, because the chunk of code must be executed in sequence. Apr 06 05:00:00 tttuuu uses lock and threads Apr 06 05:00:03 to achieve that Apr 06 05:00:14 you may spawn a thread Apr 06 05:00:34 and then set a global variable inside Apr 06 05:00:41 and then start a network thread with locks Apr 06 05:01:00 and then after that thread is finished Apr 06 05:01:05 pass to the next step Apr 06 05:01:36 but I can't do threading Apr 06 05:01:39 UnknownzD Apr 06 05:01:49 ........... Apr 06 05:01:50 everything has to be executed in sequence Apr 06 05:01:52 even if it blocks Apr 06 05:01:53 learn to do it then Apr 06 05:02:15 hmm g00s u there? Apr 06 05:02:29 teach him if you can ..... coz I don't mess with android much :P Apr 06 05:05:46 tttuuu: that dialog shows because your app is not responsive, that is, it won't respond to *system* signals as well Apr 06 05:05:53 http://www.nytimes.com/2012/04/06/technology/to-fill-out-its-app-store-microsoft-wields-its-checkbook.html Apr 06 05:06:18 because he do network code on main thread Apr 06 05:06:22 tttuuu: you can shunt the actual operations into a *single* thread. DO NOT BLOCK THE *UI* Apr 06 05:06:39 "Microsoft teamed up with Nokia" <----- lol @ this Apr 06 05:07:01 Because the former employee from Microsoft has become the CEO of Nokia Apr 06 05:07:09 thats why they have "teamed" up Apr 06 05:07:27 dealing with java on Mac os x makes me want to rage Apr 06 05:07:45 the obviously go out of their way to fuck this up Apr 06 05:08:47 "Microsoft teamed up with Nokia" <----- lol @ this Apr 06 05:08:51 last ditch eff0rts Apr 06 05:08:58 i can't believe people would buy a windows phone Apr 06 05:09:00 massochism Apr 06 05:09:19 "only if it runs windows 95" Apr 06 05:11:31 why the fuck doesn't chrome let me disable these shitty animated ifs Apr 06 05:11:34 *gifs Apr 06 05:11:39 god damn it a hate computers Apr 06 05:13:29 romainguy: have you seen http://developer.android.com/reference/android/content/Context.html#MODE_MULTI_PROCESS ? Apr 06 05:14:27 the text there: "This behavior is sometimes desired in cases where the application has multiple processes, all writing to the same SharedPreferences file." directly contradicts "Note: currently this class [SharedPreferences] does not support use across multiple processes. This will be added later.", and given androids dodgy docs, I'm not sure which to believe Apr 06 05:17:00 yeah that reads pretty sketchy Apr 06 05:18:59 xbp but now they moved one step forward as using metro UI on Windows 8 Apr 06 05:19:06 anyway I think that sux Apr 06 05:21:01 whatever the equivalent is on wp7, i hope they have a better listview :P Apr 06 05:51:38 Hi Apr 06 05:51:45 can i use custom tiles with android mapview Apr 06 06:07:06 is there any way to let android decide which file to open from assets depending on device language? Apr 06 06:07:23 i want to show some stuff in a webview, in several languages Apr 06 06:08:51 hm i could have it open a file and have android decide the filename from a resource string Apr 06 06:14:22 shithead ganup Apr 06 06:14:53 wrong window sorry Apr 06 06:41:51 bundles are parcels, right? Apr 06 06:42:00 er, parcelable* Apr 06 06:43:20 http://pastie.org/3737376 is giving me a RuntimeException, saying it can't marshal the data because it's non parcelable...but I understood this to be the correct way Apr 06 06:52:31 * g00s rages at mac os and its fucked up java shit Apr 06 06:57:05 cheers Apr 06 06:59:27 "noooorm!" Apr 06 07:12:29 g00s, woot_ Apr 06 07:14:40 i have talent and time, and need money. what are the best places to look for contract gigs? Apr 06 07:17:03 tophyr, I have found several gigs through "local" companies Apr 06 07:17:08 well, local and local. Same country at least Apr 06 07:19:37 just recruiting companies, or..? Apr 06 07:20:53 Nah, I contacted some companies after people wanted app for their services Apr 06 07:21:02 then some activity at a local forum Apr 06 07:21:11 and some companies have eventually started contacting me Apr 06 07:23:07 gotcha Apr 06 07:23:11 word-of-mouth type thing Apr 06 07:23:21 Guess so Apr 06 07:23:45 It's a rather active forum as well, and I have a signature there. Might be some googling as well. Apr 06 07:24:09 Bought ad-words ads as well. Google got their cash but I dont think the outcome was good :P Apr 06 07:25:11 holy fuck, what a nightmare Apr 06 07:25:25 had to nuke my workspace .metadata dir for eclipse Apr 06 07:25:37 so it would not hang on the JREs pref tab Apr 06 07:26:00 java, eclipse, and mac os x can burn in hell Apr 06 07:27:09 lol Apr 06 07:27:15 What did you do? Apr 06 07:27:39 Used eclipse on osx for a year. Two weeks ago I had to retire eclipse since it started to act up. But now it's better than ever. Apr 06 07:27:58 eclipse is a bit too complex, for real Apr 06 07:28:01 Find that it doesnt bug out as much as my windows comp did with eclipse. Apr 06 07:28:09 the next version is supposed to be one that focuses on cleanup or something Apr 06 07:28:25 but don't dare install betas in case ADT doesn't work in it Apr 06 07:29:12 the way lion manages JVMs, kinda like (but much more stupidly) than debian alternatibes - is a fucking abomination Apr 06 07:29:33 it manages JVMs? All I have ever done is dump the openjdk on it Apr 06 07:29:43 or whatever it suggests by default Apr 06 07:29:50 alankila: which OS X version ? Apr 06 07:29:55 I have half thought about installing java 7 because even my servers use it nowadays Apr 06 07:29:59 lion Apr 06 07:30:15 it must be the first time when I get something deployed to server before desktop Apr 06 07:30:16 where do you get the JDK from ? i got it from apple's website Apr 06 07:30:22 yes. Apr 06 07:30:36 yeah, the dmg with the pkg file, it fucked up the symlinks Apr 06 07:30:51 i had update 1 from Nov installed, which was 1.6.0_29 Apr 06 07:31:12 then i just clicked the installer for the one on April 3, because of that big fiasco Apr 06 07:31:28 it installed 1.6.0_31, but hosed a few things along the way Apr 06 07:31:50 in the mean time, i had to much around all the directories, symlinks, in /Library and /System/Library Apr 06 07:31:54 *muck Apr 06 07:32:00 Am I the only one left on SL? Apr 06 07:32:19 I ran into issue in "new server" wizard on eclipse this week... See, I thought to upgrade my year old tomcat6 install to latest that I was using from eclipse workspaces Apr 06 07:32:31 as soon as I deleted that, eclipse no longer could create more tomcat 6 servers Apr 06 07:32:55 I tried tomcat 7 but found out that it breaks the "serve modules without publishing" feature which is essential for decent development experience of java websites Apr 06 07:33:29 alankila: try play maybe Apr 06 07:33:36 everybody likes to play Apr 06 07:33:39 easiest way around that is to just put the directory back that you deleted, but just in case you don't do that, you go into each workspace settings and teach eclipse to forget the tomcat6 directory in 2 separate config files Apr 06 07:33:44 :D Apr 06 07:34:07 one of them is particularly bizarre, a key = value file where the value is XML fragment, stringified Apr 06 07:34:37 but nothing unusual, java software tends to focus on abstractions and it works, so nobody cares. Apr 06 08:03:04 Alright so no matter what I do I cannot get a OnInfoListener to work. I was thinking I would just set up a timer that ticks every 10 seconds, and on each tick would grab the metadata and see if it changed. before I do this, does anyone have any better ideas? Apr 06 08:33:20 hi all Apr 06 09:41:10 Hello guys, I am encountering a screen size problem during the test of my application, my application runs perfectly on any screen with resolution 480x800 but looks really bad on 240x320 (3.14 inches) , also I am enable to configure my layout to auto-detect that screen size... any opinion on this matter would be appreciated ! Thanks Apr 06 09:42:53 oh, one more thing, I am specifying almost all dimensions on my layout elements with dp measurement , Apr 06 09:47:15 elwardi you need to mess with things like fill_parent and layout weight and experiment until you can get things to scale Apr 06 09:47:29 dp measurement is fine mostly i think Apr 06 09:47:39 but for things that fill a screen etc use fill_parent etc Apr 06 09:48:03 when you get it right (takes a bit of experimentation to get your head around it) most things will scale ok Apr 06 09:52:18 http://www.theverge.com/2012/4/6/2929707/google-tablet-july-launch-exclusive Apr 06 09:53:12 gaz` : thnx, i just realized that my app depends on screen aspect ratio, nd not on density and that is hard to controle for android because of the diversity of these android devices, thnx anyway :) Apr 06 09:54:52 one more thing, is there anyway other to make the layout auto adjusted according to screen size and aspect ratio ? Apr 06 10:01:58 may I overload the ListView to return the real adapter ? Apr 06 10:08:52 the 'real adapter'? Apr 06 10:10:57 MDijkstra, Returns the adapter currently in use in this ListView. The returned adapter might not be the same adapter passed to setAdapter(ListAdapter) but might be a WrapperListAdapter Apr 06 10:11:22 as I have a local reference to my CustomAdapter I'd like to return my type Apr 06 10:13:00 well, there's a probably a reason for that, so no, I wouldn't do that Apr 06 10:13:09 of course, you are free to add getCustomAdapter() Apr 06 10:13:16 just don't see why you would Apr 06 10:13:53 if you must have an instance of your adapter, you could always do: Apr 06 10:14:37 ListAdapter a=listView.getAdapter(); Apr 06 10:15:21 if(a instanceof WrapperAdapter) { a=((WrapperAdapter)a).getWrappedAdapter(); } Apr 06 10:15:36 something like that Apr 06 10:15:55 I think I am totally overengineering my app Apr 06 10:16:05 but as the interface the listview uses to talk to the adapter is fixed Apr 06 10:16:13 I don't see the point of adding stuff to the adapter Apr 06 10:16:45 my adapter is wrapping a custom "collection" of items Apr 06 10:16:57 the items are contained in the model Apr 06 10:17:22 so the controller add a new itam in the controller, then tell the ListView that the items are changed Apr 06 10:17:37 so ... I have to call notifyDataSetChanged() from poutside Apr 06 10:18:40 ah funny Apr 06 10:19:02 I just find out that sometimes I get past SensorEvents Apr 06 10:19:38 hmm i really dont understand getview in an arrayadapter, surely position 0 is always the first element, im trying to populate 2 rows each time, but i actually cant figure out the logic to get it right Apr 06 10:20:35 aLeSD: oh, yeah, so simply store the adapter in protected YourAdapter mAdapter; Apr 06 10:20:44 gaz`, when the position is visible it is called to show the view Apr 06 10:20:47 aLeSD: as well as passing it to listView.setAdapter() Apr 06 10:20:59 that way you'll always be able to reach it Apr 06 10:21:18 MDijkstra, ok Apr 06 10:21:24 so weird, like my first row i want to get the 0 element and the 1 element to populate first row, then next time i want the 2nd element, and 3rd element, next 4th,5th.. but something somehow messes up Apr 06 10:21:49 ??? Apr 06 10:22:09 gaz`, you won't it decide when to get the View Apr 06 10:22:12 all im doing different to normal is i have 2 image views per row and i want to populate them Apr 06 10:22:27 im confused as hell this simple logic is humbling me badly Apr 06 10:22:40 doesnt help im under immense pressure too Apr 06 10:22:44 gaz`, put them in a layout Apr 06 10:22:59 well yeh i am, but thing is each row has 2 things i need to fill Apr 06 10:23:00 and pass the layout in the getItem Apr 06 10:23:13 so my row has IMAGEBUTTON1, IMAGEBUTTON2 Apr 06 10:23:24 and i want position and position+1 to do this Apr 06 10:23:43 ah im confused Apr 06 10:23:44 let me think Apr 06 10:23:44 nightmare Apr 06 10:24:07 gaz`, you want to create the view and them set the images of the 2 ImageView Apr 06 10:24:11 gridview? Apr 06 10:24:23 no its a linearlayout with 2 image buttons in per row Apr 06 10:24:44 gaz`, and what do you want to do ? Apr 06 10:24:47 where are you getting the img resources from? Apr 06 10:25:13 i thought it would be if (position==0) get 0 and 1, else get position+2 and position+3 Apr 06 10:25:15 hmm Apr 06 10:25:23 images are in a list all ready and waiting Apr 06 10:25:29 it is a bug that I am getting past SensorEvents ? Apr 06 10:26:08 gaz`, I don't understand Apr 06 10:26:15 i know its very hard to explain Apr 06 10:26:29 tell by the user point of view Apr 06 10:26:30 ok imagine a normal situation where you populate one row with each item from the list Apr 06 10:26:36 using position that is passed into getView Apr 06 10:26:50 ok Apr 06 10:26:55 is it a cursor adapter? Apr 06 10:27:12 so its simple just myItem = items.get(position); myImageView.setImage(myItem.image) Apr 06 10:27:19 thats how all my normal lists work Apr 06 10:27:39 its a list? Apr 06 10:28:14 apart from this one, where i want to populate 2 imageViews, like myItem1 = items.get(position); myImageView1.setImage(myItem1.image); myItem2 = items.get(position+1); myImageView2.setImage(myItem2.image); Apr 06 10:28:17 yes its a list Apr 06 10:28:19 gaz`, store the View is a bad idea Apr 06 10:28:35 gaz`, it's better to create them in getItem Apr 06 10:28:36 im not storing a view? Apr 06 10:28:58 well its work perfectly for me for ayear or 2 this way Apr 06 10:29:04 and should work here Apr 06 10:29:15 ok Apr 06 10:29:46 hello Apr 06 10:29:51 gaz`, the point is that listView is garbaging the view that are not visibles Apr 06 10:30:03 im not sure that is the point Apr 06 10:30:09 unless position is getitng messed up Apr 06 10:30:18 it's not Apr 06 10:30:19 :) Apr 06 10:30:24 well im utterly confused Apr 06 10:30:53 I tell what I understood Apr 06 10:31:26 in Adapter.getItem .. you want to set the images in the Layout ant then return the layout Apr 06 10:31:32 isn't it ? Apr 06 10:32:20 erm Apr 06 10:32:21 yeh Apr 06 10:32:46 if i just do one at a time like usual it works fine Apr 06 10:32:51 and you don't know how to reach the ImageButton from the layout ? Apr 06 10:32:52 but my second imageview isnt populated Apr 06 10:33:04 no i can do that Apr 06 10:33:14 i just want to work out what i need to add to position Apr 06 10:33:22 so i can get n and n+1 Apr 06 10:33:24 on each row Apr 06 10:35:09 http://pastebin.com/WGsGzAtR Apr 06 10:35:27 gaz`, so you want from outside the adapter get the Layout in position(n) ... then do something like Layout.getImageButton(i).setImgae(...myimage) Apr 06 10:36:44 the code above seems to repeat some Apr 06 10:37:04 you have to make sure if your view is recycled, that you unset all images Apr 06 10:37:12 but usually one would use a gridview for this Apr 06 10:37:27 and I will use BaseAdapter Apr 06 10:37:33 extend BaseAdapter Apr 06 10:37:58 yeh, the view is not the issue here tho, just my utterly terrible maths Apr 06 10:38:04 I dunno how ArrayAdapter works ... but you are mixing stuffs Apr 06 10:41:21 hello Apr 06 10:41:25 hi Apr 06 10:41:54 virtx,do you know how can we send the message to other sip user? Apr 06 10:41:56 is there a way to read deleted sms? Apr 06 10:42:37 virtx,i am new in android i dont know about message feature.. Apr 06 10:42:52 try to read sipdroid source Apr 06 10:43:04 http://code.google.com/p/sipdroid/source/browse/#svn%2Ftrunk Apr 06 10:44:11 but in that i cant found meassge feature.. Apr 06 10:44:27 text msg? Apr 06 10:44:39 well use xmpp as whatsapp :) Apr 06 10:44:45 ya Apr 06 10:45:12 but where i used this? Apr 06 10:45:52 http://vidorsolutions.blogspot.it/2011/01/writing-xmppjabber-chat-application-for.html Apr 06 10:48:36 virtex,but in this tell like it is use for xmpp client but i want for sip user so it is use ? Apr 06 10:51:17 I need help installing jogl in windows, where should I go? Apr 06 10:53:37 hi Apr 06 10:53:48 hello Apr 06 10:55:33 I need help installing jogl in windows, where should I go? Apr 06 10:56:20 ricvail #jogl Apr 06 10:56:30 oh wait its empty Apr 06 10:56:42 #lwjgl Apr 06 10:56:53 virtx: there isn't even an official way to read non-deleted sms Apr 06 10:56:55 if u mean lwjgl Apr 06 10:57:32 i have no idea what lwjgl is Apr 06 10:57:34 readme, so i cant backup incoming/outcoming sms? Apr 06 10:58:09 virtx: you can capture incoming sms with an undocumented broadcast, and there's also undocumented contentprovider you can use to read existing and such, but I dont' recommend the latter Apr 06 10:58:13 i am just struggling to get opengl in my projects so i can learn it and then use it in android Apr 06 10:58:34 yeh opengl is so primative and silly Apr 06 10:58:39 the reason is that any OEM can change the SMS app and change the storage strategy Apr 06 10:58:42 so your app will break Apr 06 10:58:55 readme: what is this undocumented thing? and why you don't racommend? Apr 06 10:59:00 you've got to write your own SMS app and storage to guarantee some sort of functionality Apr 06 10:59:03 ah Apr 06 10:59:42 my idea is to backup all sms in realtime Apr 06 10:59:52 so i sync it with my gmail account Apr 06 11:00:50 you can backup all incoming for sure, but if you want to make sure you get all the outgoing ones, you should write your own app and tell the user to use that app if he wants them backed up Apr 06 11:00:58 that way your app will work on more phones Apr 06 11:01:19 ah, ok so i've to use my app for send sms Apr 06 11:01:21 but even the broadcast used to capture incoming sms is not documented and could disappear Apr 06 11:01:24 yes Apr 06 11:01:30 unless you want to be unstable Apr 06 11:03:04 so there isn't content://sms/outcoming ? Apr 06 11:03:35 i see content://sms/sent Apr 06 11:04:15 https://gist.github.com/2318886 Apr 06 11:04:25 virtx: they exist, but they are not guaranteed to work on all devices Apr 06 11:04:30 and are undocumented Apr 06 11:04:50 ah Apr 06 11:04:57 uhm, and this android.provider.Telephony.NEW_OUTGOING_SMS ? Apr 06 11:05:02 Link? Apr 06 11:05:26 If that works, you can just add that broadcast into the code in my gist Apr 06 11:05:32 then you've got a net to catch in and out Apr 06 11:06:18 readme: http://gbandroid.googlecode.com/svn-history/r46/trunk/MobileSpy/src/org/ddth/android/monitor/observer/AndroidSmsWatcher.java Apr 06 11:06:18 Mip Apr 06 11:06:33 Hell, I'd try it Apr 06 11:06:39 thanks for the info Apr 06 11:06:47 Meme Apr 06 11:08:25 virtx: i've updated my gist to include that other action. I think that it is now the bare minimum code to do what you are trying Apr 06 11:09:00 i'm reading the code, yes Apr 06 11:10:55 what does onSmsReceived do? Apr 06 11:11:48 it is abstract, you can extend my class then instead of looking at all the boilerplate code just implement onSmsReceived and it gets called for any incoming or outgoing sms Apr 06 11:12:42 a good addition might be a bool incoming Apr 06 11:12:52 but not sure if that is reqd Apr 06 11:13:12 well, i try to implement it, i code on android from 3 days :D Apr 06 11:13:34 just pull my file into your project, extend it, like you do any class Apr 06 11:13:36 i've problem with R.id yet :D Apr 06 11:13:45 then in your manifest, point the receiver tag to the class you made, not mine Apr 06 11:27:18 ok ive given up oin that approach is there a way to add stuff to a row but have it so 2 rows are on one line Apr 06 11:29:07 jesus wept Apr 06 11:29:12 all i want to do is have 2 images per row Apr 06 11:29:18 why is this so tough Apr 06 11:34:36 MDijkstra how would using a grid layout simply this? Apr 06 11:34:43 i basically do just want a grid of images Apr 06 11:39:09 gaz`: then every item would contain just one image Apr 06 11:39:12 instead of two Apr 06 11:39:22 and the adapter becomes a bit simpler Apr 06 11:40:05 that and you don't need imagebuttons anymore, since you can simply detect the 'griditem selected' event Apr 06 11:48:46 oh Apr 06 11:48:53 that sounds like what i need, u know of any example code? Apr 06 12:14:36 ahhh ... design error Apr 06 12:28:42 boy they really know how to make simple problems into nightmares at google Apr 06 12:31:36 ... sounds to me like something that was obvious for grid layout approach Apr 06 12:33:27 maybe Apr 06 12:33:41 never used it before Apr 06 12:39:46 but even then trying to follow their examples is ridiculous Apr 06 12:45:48 hmm getView() isnt being called Apr 06 12:51:05 hello Apr 06 12:53:11 hi Apr 06 13:07:06 I am committing a shared preferences file in the onCreate(). So does this thing mean the commit wil happen every time I run the application? Apr 06 13:11:19 everytime the application is started, yes Apr 06 13:12:27 are all the listener to be in the Controller ? Apr 06 13:12:35 ozo, So how do I avoid this? I want to add it oly once. Apr 06 13:12:50 Rrjois: Take a look at this: http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle Apr 06 13:16:42 readme: http://www.apriorit.com/our-company/dev-blog/227-handle-sms-on-android Apr 06 13:16:48 try this, it's cool Apr 06 13:17:00 did it finally, there seems to be a white border aroudn my gridview, is this normal? anyone know how to get rid of it Apr 06 13:19:52 so i have this game that is going to be mostly menu driven in terms of actually playing it (it's a simulation game ala something like 'game dev story'.. you think theres any reason to make it 3d, or should i just release it as a 2d game, since most of the actual actions you take will be menu based anyways, and a 3d element would really be mostly window dressing.. Apr 06 13:20:25 aha android:listSelector="@null Apr 06 13:20:53 probably not svchost Apr 06 13:21:04 if it sells like crazy u could always release that as a nice update later Apr 06 13:21:17 game dev story was nice but them menus are well fiddly Apr 06 13:23:54 virtx: cool article Apr 06 13:26:16 svchost: That's really a design decision. The 3d graphics would add a wow factor and probably bring bigger sales, although you'd have to factor in the costs of increased support. Apr 06 13:29:14 anyone know how i can do overlay InfoWindow in google maps on android? Apr 06 13:35:56 fBirD: Not natively. See https://github.com/jgilfelt/android-mapviewballoons Apr 06 13:36:57 OpenGlRenderer is out of memory! Apr 06 13:37:31 hmm anyone know how i can have a list of images, where the list appears and then they appear once theyve finished downloading (in their own thread) Apr 06 13:40:43 http://stackoverflow.com/questions/3374228/downloading-images-in-background-while-showing-the-listview Apr 06 13:41:22 question: where to store the state of my app and when to resume it ? Apr 06 13:41:30 s/when/where/ Apr 06 13:41:53 kamoricks, I set the propetary for radeon and it works like a charm Apr 06 13:42:52 aLeSD: While you wait for someone clever to give you a proper answer, why not go have another look at the activity lifecycles? Apr 06 13:43:05 lol ... you right Apr 06 13:43:27 kamoricks thks Apr 06 13:47:05 The proper answer is what Ankhwatcher said. Look at the activity lifecycle and how you should save/restore state w/in. Apr 06 13:50:10 hmm my progress bar sort of hangs for a second when im downloading stuff - why would that be the downloaded stuff has its own thread Apr 06 13:50:59 i think its onSaveInstanceState alankila Apr 06 13:51:01 aleb Apr 06 13:51:03 aLeSD! Apr 06 13:51:11 gaz`, what ? Apr 06 13:51:22 where to store state Apr 06 13:51:43 soz got ur name wrong was using tab completion Apr 06 13:51:46 hence aLeSD! Apr 06 13:51:49 when i finally got it right Apr 06 13:54:05 Any ideas why my app currently looks like this: http://j.mp/Ic3bsL while running on my tablet? It's a listview populated by a cursor loader. Apr 06 13:54:06 ah thanks Apr 06 13:55:12 This is showing in the log: OpenGlRenderer is out of memory! Apr 06 13:55:30 woah Ankhwatcher Apr 06 13:56:51 hi guys Apr 06 13:56:51 Ankhwatcher: pretty sweet. Apr 06 13:56:57 I have strange error Apr 06 13:57:05 Ankhwatcher: does that happen reproducably? Apr 06 13:57:05 The tablet is running a somewhat unstable version of CM9, so that might be part of the problem. Apr 06 13:57:09 ..... Apr 06 13:57:10 yes. Apr 06 13:57:11 lov: yes Apr 06 13:57:12 yes it might. Apr 06 13:57:21 Ankhwatcher: disable hardware accel for that activity, see what happens Apr 06 13:57:35 lov: is that done in the manifest? Apr 06 13:58:06 lov is it normal that sometime I am getting past SensorEvents ? Apr 06 13:58:12 yes it is, I'll give that a go Apr 06 13:58:36 why would a progress bar stop? Apr 06 13:58:47 When I try to get last sent sms from content provider I got it with "Android SDK 4.0.3" but when I want to get it with the same code but different sdk "Google APIs SDK" I have 0 sms Apr 06 13:58:50 it stops while images are coming down, is it cause i kicked these threads off from ui thread? Apr 06 13:58:53 gaz`: that's a pretty fucking open ended question. Apr 06 13:59:01 Anybody already got this error ? Apr 06 13:59:08 gaz`: are you maybe blocking from GC? Apr 06 13:59:22 dont think so Apr 06 13:59:26 welp Apr 06 13:59:29 its when it starts grabbing images Apr 06 13:59:33 profile the method, look at logs, idk. Apr 06 13:59:40 are you grabbing images on the UI thread maybe? Apr 06 13:59:43 (ARE YOU SURE?) Apr 06 13:59:57 blocking the UI thread would prevent your progress draws from updating Apr 06 14:00:15 aLeSD: idk, phone firmware could be shitty :> Apr 06 14:00:17 seems to work tho Apr 06 14:00:20 until images come down Apr 06 14:00:23 ... Apr 06 14:00:29 lov it's the galaxy nexus Apr 06 14:00:33 10:00:21 < lov> are you grabbing images on the UI thread maybe? Apr 06 14:00:34 10:00:24 < lov> (ARE YOU SURE?) Apr 06 14:00:34 10:00:37 < lov> blocking the UI thread would prevent your progress draws from updating Apr 06 14:00:34 everything its doing on ui thread and it still works before that Apr 06 14:00:40 ... Apr 06 14:00:43 wait no seriously Apr 06 14:00:47 you're actually doing IO on the UI thread Apr 06 14:00:52 did you turn off strict mode or something? Apr 06 14:01:06 aLeSD: welp. Apr 06 14:01:14 aLeSD: write a test case, submit a bug on b.android.com Apr 06 14:01:20 hmm im not sure what im doing this class is a total mess Apr 06 14:01:52 and stress levels are rising fast Apr 06 14:01:59 wasted whole day on this when i should have been coding other features Apr 06 14:02:32 making this asynchronous is going to be a bigger pain Apr 06 14:02:34 yeh i am doing it on ui actually, Apr 06 14:02:37 will swap Apr 06 14:02:41 MYSTERY SOLVED. Apr 06 14:02:44 also, turn on strict mode. Apr 06 14:02:52 dont even know what it is :) Apr 06 14:02:54 * Ankhwatcher notes that lov appears to be a multi-user conversation system, capable of carrying out a great number of conversations on different topics at once. Apr 06 14:02:55 .... Apr 06 14:02:58 get the fuck out. Apr 06 14:03:04 hah Apr 06 14:03:12 Ankhwatcher: thats because multiple people all ask me questions Apr 06 14:03:23 gaz`: no seriously this was introduced like a year ago Apr 06 14:03:29 to pretty huge fucking fanfare Apr 06 14:03:35 hah Apr 06 14:03:38 so was fragments Apr 06 14:03:41 and theyre gaaaayy Apr 06 14:03:48 O_o Apr 06 14:03:57 thanks, lov Apr 06 14:03:59 :> Apr 06 14:04:00 I was about to do it Apr 06 14:04:09 haha Apr 06 14:04:10 git Apr 06 14:04:28 git out Apr 06 14:04:30 either way, once you put this in an asynctask you'll have other problems Apr 06 14:04:32 im only half way thru a book Apr 06 14:04:38 and i bet its older than 1 yr :) Apr 06 14:04:50 wait Apr 06 14:04:51 number of fucks given: 0 Apr 06 14:04:54 a) how do you deal with load requests that complete out of order Apr 06 14:04:54 a book is out of date? Apr 06 14:05:23 actually, just a :p Apr 06 14:05:42 make them sequential requests Apr 06 14:05:44 lov: I can't disable hardware acceleration (the easy way) because my project is level 8. Apr 06 14:05:53 Ankhwatcher: so? Apr 06 14:06:04 you can still specify that Apr 06 14:06:10 it just won't do anything on older versions Apr 06 14:06:22 evancharlton: can you actually configure that on older versions of android? Apr 06 14:06:40 k I got it Apr 06 14:06:52 evancharlton: lint doesn't like it, how do you do it on lower levels? Apr 06 14:06:52 Ankhwatcher: compile against a newer api. Apr 06 14:07:03 another error from android emulator :( Apr 06 14:07:11 If you don't know the difference between minsdk, targetsdk and build target, you're gonna have a bad time Apr 06 14:07:14 you can tell lint to ignore it or just make it a warning Apr 06 14:07:29 SimonVT: :D Apr 06 14:07:41 EvOoX-: another error within your code :( Apr 06 14:07:57 The internets are strong in evancharlton Apr 06 14:08:12 evancharlton: nop Apr 06 14:08:18 SimonVT: dude I'm a pro at internetting Apr 06 14:08:19 evancharlton: it's a reported bug :) Apr 06 14:08:34 ^_^ Apr 06 14:08:39 love the way u reserve ops til needed then throw em away vol :) Apr 06 14:08:39 EvOoX-: there are plenty of reported bugs :) Apr 06 14:10:00 all this UI thread nonsense eh :) Apr 06 14:10:12 yay i fixed it Apr 06 14:10:14 Apr 06 14:12:31 lov: doesn't compiling againt a newer api greatly increase my chances of screwing everything up? Apr 06 14:12:42 no, why would it? Apr 06 14:12:55 the problem problem is if you're using one of a couple of api methods that have gone away entirely Apr 06 14:13:02 and in that case you just have to use reflection Apr 06 14:13:04 well the system will stop warning me if I use a package unavailble at api 8 Apr 06 14:13:13 Ankhwatcher: lint will warn you Apr 06 14:14:04 and you can use macros to say "naw its cool I know what I'm doing here" Apr 06 14:14:10 lov it happends sometimes at the same time for all the sensors I am listening to Apr 06 14:14:41 aLeSD: write up a test case that emits sensor information, log that information, submit to b.android.com Apr 06 14:14:50 there's literally nothing I can do to help Apr 06 14:14:51 evancharlton: okay then, I'm off to change my api level. 13 seems like a good choice. Apr 06 14:15:11 lov ... no problem. My app will show the problem Apr 06 14:17:21 lov is there a way to deactive the Log.d ? Apr 06 14:17:44 I mean I used a lot in my app and I want to deactive to publish it Apr 06 14:18:19 yeah, delete it Apr 06 14:18:32 lol Apr 06 14:18:46 public static final boolean LOG_D = false; ... if (DEBUG) { Log.d("Tag", "Message"); } Apr 06 14:18:49 aLeSD: I'm serious Apr 06 14:19:08 leaving it in there is wasteful; you still allocate strings and all that crap only to throw it away Apr 06 14:19:27 s/LOG_D/DEBUG/ Apr 06 14:19:41 ok I see Apr 06 14:19:57 now I need only to parcelable all the stuff Apr 06 14:20:04 and I think it will be hard Apr 06 14:21:22 why do you need to make everything parcelable? Apr 06 14:21:36 I am just thinking Apr 06 14:21:50 evancharlton, it's the first time that I have to store the state of an app Apr 06 14:22:27 HI, I have a big list of states along with the language spoken in each state. I want to store them in form of a dictionary.Can someone please suggest me way to o it. Apr 06 14:22:35 in my app there are chains og Observer that are attached to an Observable Apr 06 14:22:56 So I have to store the graph plus the settings of each node Apr 06 14:23:02 evancharlton, suggestions ? Apr 06 14:23:34 HI, I have a big list of states along with the language spoken in each state. I want to store them in form of a dictionary.Can someone please suggest me way to do it. Apr 06 14:24:13 aLeSD: remember that you only have a certain amount of data that you can stuff into a Bundle Apr 06 14:24:26 it might be better to store the state and just recreate it next time Apr 06 14:24:54 everythingWorks, You mean to store the structure of the graph and recreate it later ? Apr 06 14:25:01 not the graph Apr 06 14:25:27 Why is onMeasure() called twice, even though the screen orientation doesn't change or anything? Apr 06 14:25:32 (extending FrameLayout) Apr 06 14:25:36 What Apr 06 14:25:43 aLeSD: yeah. I'm not sure what you're doing, but it might be better Apr 06 14:25:48 everythingWorks: he missed me and hit you Apr 06 14:26:07 Ok Apr 06 14:26:48 Rrjois: there's a lot of options. A database, or a static map in a class. Apr 06 14:26:59 Rrjois: is there something else to this that makes it an actual question or what Apr 06 14:27:51 lov, I tried using shred preferences. But It takes a lot of tiime to load it. even If i run it on a thread. i run it oly for the first time the app is loaded. Apr 06 14:28:10 shred preferences \m/ Apr 06 14:28:15 * evancharlton headbangs Apr 06 14:28:17 pretty fucking metal Apr 06 14:28:43 Rrjois: shared prefs are for storing and handling preferences, general user state (sometimes), etc. Apr 06 14:29:47 lov, Ok I will try with databases then. So does it mean its not good to use shared preferences for such big data? Apr 06 14:30:03 Rrjois: will this data ever change? Yes or no Apr 06 14:30:14 lov, no Apr 06 14:30:24 Then why are you storing them in USER PREFERENCES? Apr 06 14:30:46 hell, why are you even storing it? Why are you not just putting it into a map in a class and calling that map? Apr 06 14:31:12 lov, just to save up time n space. Dont know if it wil do it thought Apr 06 14:31:18 though* Apr 06 14:31:29 you're not saving time or space by doing it that way, I guarantee it. Apr 06 14:31:40 Does this data come with the app, or are you downloading it later? Apr 06 14:32:02 sms' are stored on local database? and if yes, i can read from it directly? Apr 06 14:32:03 If it comes with the app, either put it in a text file and parse the text file at runtime, or just store it inside of a class directly. Apr 06 14:32:18 virtx: yes, and not unless you pull the database and do it manually. Apr 06 14:32:34 lov, it comes with the app. I have 2 arrays(35) . I run a loop n make thm into a dictionary. Apr 06 14:32:50 virtx: use the actual methods for reading the SMS content because the storage is an implementation detail; it doesn't actually have to be a database and may not be in another phone. Apr 06 14:33:00 Rrjois: instead of storing the content in arrays, store it in a map. Apr 06 14:33:06 use a hashmap or something Apr 06 14:33:26 lov, i want to a dump of sms for backuping Apr 06 14:33:34 virtx: ok, great, I don't really care Apr 06 14:33:53 virtx: there are real, solid methods for doing this which are officially enumerated and which will not break due to implementation changes. Apr 06 14:33:59 I do not understand why you are trying to do this the hard way. Apr 06 14:34:15 I do not understand what you are not getting by doing it that waty Apr 06 14:34:17 *way Apr 06 14:34:56 lov, ok. But even if I use a map I need to enter the details(state->language) manually right? Apr 06 14:35:14 lov, sorry if I am being a noob :) Apr 06 14:35:43 YOU'RE ALREADY DOING THIS! Apr 06 14:35:50 You already have these arrays Apr 06 14:35:54 instead of doing Apr 06 14:36:16 String keys = ["a", "b", "c", ... ]; String values = ["1", "2", "3", .... ]; Apr 06 14:36:20 Rrjois: a map outperforms an array for retreiving an element Apr 06 14:36:31 that is, by value Apr 06 14:36:32 do map.add("a", "1"); map.add("b", "2"); .... Apr 06 14:36:35 nto by index Apr 06 14:36:51 you can use the static initializer for this Apr 06 14:36:52 i.e. Apr 06 14:37:08 lov, Yes I got it.:) Wil try it out now. Apr 06 14:37:19 static final HashMap langMap = new HashMap(); static { langMap.add("a", "1"); .... } Apr 06 14:37:34 pretty print your source code, et voila Apr 06 14:38:07 lov oh ok. I got it now. Wil try it Apr 06 14:38:09 static final HashMap langMap = new HashMap(){{ put("blah", "blah"); put("blah", "blah"); }}; syntactic sugar Apr 06 14:38:29 Hey all, anyone know what my options are for consuming RTMP streams in my app? Apr 06 14:38:33 I.e. lov's examlpe decalorified! Apr 06 14:38:35 HDroid: show off. Apr 06 14:38:39 :P Apr 06 14:38:56 luxurymode: 1) fork 2) knife 3) spoon Apr 06 14:39:25 lov, lol. what OSS projects are out there? can't seem to find much... Apr 06 14:39:37 you can't find oss projects? Apr 06 14:39:41 have you tried swinging your arms? Apr 06 14:39:56 evancharlton, for RTMP client libraries for android... Apr 06 14:40:48 that could have to do with the fact that i typed "rtp" in my search instead of "rtmp" lol Apr 06 14:40:52 but still ..not a ton Apr 06 14:46:52 trying to launch a ProgressDialog from inside an AsyncTask triggered by an OnClickListener on a button, but I can't seem to get a reference to the activity to put into the progress dialog show() Apr 06 14:47:15 rvsjoen: OuterClass.this Apr 06 14:48:03 heh Apr 06 14:48:06 now I feel silly Apr 06 14:48:08 thanks Apr 06 14:48:12 np Apr 06 14:48:31 at least you asked an answerable question Apr 06 14:48:35 that makes you one of the few all day Apr 06 14:49:20 whut Apr 06 14:49:25 rvsjoen: don't do that Apr 06 14:49:44 rvsjoen: your asynctask should be static, meaning OuterClass.this won't work Apr 06 14:49:53 and if your asynctask isn't static, you did it wrong :) Apr 06 14:50:56 hmz Apr 06 14:51:02 http://codepad.org/SphmLcV4 Apr 06 14:51:10 it seems to be working though Apr 06 14:51:55 yeah, try putting your activity through an orientation change Apr 06 14:52:09 such as a rotation Apr 06 14:52:36 evancharlton: it's possible to keep a static reference to an AsyncTask that is declared as a regular inner class, and that will work fine that way Apr 06 14:52:46 seems to work ok Apr 06 14:53:11 rvsjoen: keep the reference to the instance of the asynctask static, as evan says Apr 06 14:53:59 wow, it's been a while since I've had to dig this up: http://evancharlton.com/thoughts/rotating-async-tasks Apr 06 14:54:08 rvsjoen: ^ Apr 06 14:54:17 readme: yeah, tha would work as well Apr 06 14:54:48 great, thanks Apr 06 14:55:10 matter of preference i suppose Apr 06 14:55:16 good to mention this point though Apr 06 14:55:22 i hate when I use an app that crashes when I rotate teh screen Apr 06 14:55:32 readme: totally Apr 06 14:55:43 readme: his wouldn't crash, it would just restart the login process Apr 06 14:59:33 anyone have any idea where i can find some accessible rtmp resources to test out some stuff? Apr 06 15:03:49 so I just have to figure out how to work this example into the onclick listener Apr 06 15:10:19 lov, I am not able to make a hashmap static. Its giving me error Apr 06 15:10:53 cause of which I am not able to access it anywhere else in the program. Apr 06 15:11:03 you can have a static hashmap. Apr 06 15:11:42 define the values of the hashmap in a static scope thusly: static { hashMap.put(key, value); } Apr 06 15:12:00 moonlightcheese, Its telling me I can have oly final But not static. Apr 06 15:12:31 is this in an inner class? Apr 06 15:12:35 lov, evancharlton disabling hardware acceleration has fixed my rendering issues on my tablet. Thanks. Apr 06 15:13:38 evancharlton, no its int the oncreate() Apr 06 15:13:58 moonlightcheese, Tried it. Same error. Apr 06 15:14:07 Rrjois: pastebin what you're doing Apr 06 15:14:15 evancharlton, yes Apr 06 15:14:18 wait, are you trying to make a local variable static? Apr 06 15:14:27 because that's ... not how it works Apr 06 15:15:05 public static final Map testMap = new HashMap(); Apr 06 15:15:07 static { testMap.put("key", "value"); } Apr 06 15:15:13 that is perfectly legal my friend. Apr 06 15:16:40 moonlightcheese, will try that. Apr 06 15:17:18 Ankhwatcher: I'd strongly suggest that you consider putting the stock firmware back on the device, or at least a stable CM build, and seeing if the issue disappears. Apr 06 15:17:25 if it does, I'd strongly recommend NOT using unstable CM builds :> Apr 06 15:17:39 evancharlton, moonlightcheese This is my code. I have tried both the ways http://paste.pocoo.org/show/577022/ please let me know wats wrong Apr 06 15:17:51 they are in the onCreate() Apr 06 15:18:01 goddamnit Apr 06 15:18:11 this is failing because you're doing it in onCreate Apr 06 15:18:16 Rrjois: that's not helpful Apr 06 15:18:18 Rrjois: This code should live OUTSIDE of onCreate Apr 06 15:18:20 lololol. Apr 06 15:18:30 Rrjois: I VERY strongly recommend that you learn java before you worry about Android Apr 06 15:18:38 #java can help you out Apr 06 15:19:16 lov, thanks for tht. may be I am missing out on my basics. :) Apr 06 15:19:30 evancharlton, moonlightcheese lov thanks for the help :) Apr 06 15:19:31 you definitely are; you need to have a firm grasp on OO programming before you can do anything else Apr 06 15:19:47 along with an understand of what scoping is and how it works Apr 06 15:19:56 if I launch an Intent in the onCreate function of an Activity, will that Activity continue running ? Apr 06 15:20:03 (i.e. static variables vs instance variables vs method scope variables) Apr 06 15:20:14 rvsjoen: yes, until it stops :> Apr 06 15:20:19 rvsjoen: yep. Apr 06 15:20:21 lov, yes I wil surely look into that. Apr 06 15:20:34 (that is, android reclaims your activity) Apr 06 15:20:38 any way I can pause it until the Activity launched by the Intent is finished ? Apr 06 15:20:45 or am I thinking the wrong way Apr 06 15:20:52 rvsjoen: it is paused. Apr 06 15:21:09 rvsjoen: look up the activity lifecycle graph. Apr 06 15:21:31 http://developer.android.com/reference/android/app/Activity.html Apr 06 15:22:03 god this google io thing is depressing. Maybe the big g should just sell the tickets on ebay themselves. Apr 06 15:22:39 ok I think I need to rethink this problem, i've been trying to launch an intent with a login screen for users that are not authenticated Apr 06 15:23:47 maybe I should just use the login screen as the entry point and start the main activity if the user is already logged in Apr 06 15:24:07 rvsjoen: either way would work. the latter would probably be simpler. Apr 06 15:24:26 yeh, and I won't have to muck about with the backstack to make it all intuitive Apr 06 15:24:50 you shouldn't have to muck around with the backstack... Apr 06 15:25:18 if I have the main activity launch the login activity, pressing the back button will go back to the main activity, even if the user is not logged in Apr 06 15:25:21 anyways Apr 06 15:25:25 i'll do the latter and see how that works out Apr 06 15:25:35 so launch and finish() Apr 06 15:26:07 I somehow can't close some android-specific windows in Eclipse (e.g. AVD manager). There is just no window frame (ubuntu, current eclipse/ADT etc.). any idea? Apr 06 15:26:08 ^^ Apr 06 15:26:10 you could override the back button and disallow the user from leaving the login screen. Apr 06 15:26:17 Kopfgeldjaeger: alt-f4 Apr 06 15:26:31 moonlightcheese: don't do that ಠ_ಠ Apr 06 15:26:33 Kopfgeldjaeger: intellij. Apr 06 15:26:37 rvsjoen: have a class that overrides activity as your base class, that checks your login state in onCreate. if you're not logged in, have it call the log in activity and then finish() Apr 06 15:26:51 moonlightcheese: not helpful in either comment. Apr 06 15:27:02 lov: So simple, yet so helpful. Thanks. Now I just wonder why that happens at all Apr 06 15:27:12 pff. Apr 06 15:27:31 as I learnt recently, in activity's onPause start a service, and in service's onCreate start the activity. User will not be able to leave app.- Apr 06 15:27:37 Kopfgeldjaeger: My AVD manager on ubuntu has the standard close/minimize buttons, so I think something is in a bad state on your machine. Apr 06 15:27:44 alankila: awesome Apr 06 15:28:02 Maybe a gnome 3-specific problem, yeah Apr 06 15:28:54 you mean something like this, right ? http://pastebin.com/a3H12R01 Apr 06 15:30:07 not quite. Apr 06 15:30:08 if you check for the token in onResume, the user will never be able to continue using the rest of the app without authenticating. Apr 06 15:30:45 public class MyBaseActivity extends Activity { public void onCreate(Bundle bundle) { super.onCreate(bundle); if(notLoggedIn()) { Intent i = new Intent(Log in); startActivity(i); finish(); } } } Apr 06 15:31:13 any1 know where to put the description of an accessability service so it shows up in the accessability service manager? Apr 06 15:31:16 public class MyRegularActivities extend MyBaseActivity { ..... public void onCreate(Bundle bundle) { super.onCreate(bundle); ... } } Apr 06 15:32:52 I really only have one base activity and one login activity Apr 06 15:33:05 hm Apr 06 15:35:20 return; after finish(); seems to help Apr 06 15:35:30 Kopfgeldjaeger: gnome3 is kinda buggy. I tried it yesterday and discovered a bug that causes windows to jump to the wrong display Apr 06 15:37:00 readme: for me, some applications are automatically started on my second monitor, but only if I usually use them there. that's quite handy, actually Apr 06 15:40:06 readme: ugh, don't get me started on gnome3 Apr 06 15:40:10 what a pile of shit Apr 06 15:40:48 everybody is trying to do crazy new paradigm shifts.. howabout something that works like mac or windows, and does it well? Apr 06 15:41:46 change for the sake of change = bad Apr 06 15:45:20 Change should be driven by whatever is necessary to allow the documentation to be written, accurately, as haiku. Apr 06 15:47:28 rephrase that statement in the form of a haiku please Apr 06 15:47:32 evancharlton: to add a launcher in gnome3 for a program that is installed in your home directory, you need to use alacarte menu editor or edit the gnome menu data manually Apr 06 15:47:37 :) Apr 06 15:47:47 one of the reasons I had to revert to mate immediately Apr 06 15:48:20 yeah, I'm still running 10.04 because the new ubuntu versions are just so bad Apr 06 15:48:57 switch to linux mint, it comes with mate Apr 06 15:49:13 I was running ubuntu, switched to mint, perfectly happy with it Apr 06 15:49:29 can anyone recommend some books or tutorials for android game programming? I'm pretty good with java but new to game and android programming Apr 06 15:49:55 mudzereli: step zero is learning android fundamentals; d.android.com Apr 06 15:50:01 mudzereli: GORILLAS.BAS Apr 06 15:50:05 Has ubuntu become bad outside of its default desktop environment? Apr 06 15:50:30 Gumboot: let's just say that Unity is the worst thing ever Apr 06 15:50:39 of all the things, it's the worst. Apr 06 15:51:05 I really dunno how which way take to store my stte Apr 06 15:51:39 Back in my day the default window manager (as it was at the time) wasn't such a significant thing. What mattered was what was under the hood. Apr 06 15:51:47 Maybe they're all the same under the hood, now. Apr 06 15:51:48 so ... asking : I have a chain of MyNode extends Observable implements Observer in my Activity. Apr 06 15:51:52 bonnet? Apr 06 15:51:54 what's the word? Apr 06 15:52:00 Could someone suggest me how to store it ? Apr 06 16:10:42 is there a simple way to tell android which activity to load based on device? Apr 06 16:10:50 maybe something in the mainifest? Apr 06 16:11:42 You can enable/disable activities in the manifest based on device configuration (with bools in values) Apr 06 16:14:23 http://developer.android.com/reference/android/os/Build.html Apr 06 16:14:31 Build.MANUFACTURER Apr 06 16:14:45 or model or whatever. Apr 06 16:16:48 SimonVT: and what intent-filter would that be? Apr 06 16:17:01 it wouldn't be an intent-filter Apr 06 16:17:20 Apr 06 16:17:22 No intent filter, just android:enabled="@bool/isThisEnabled" Apr 06 16:18:37 You could use a trampoline activity that would inspect the device information, launch a new appropriate activity, and finish itself. Apr 06 16:20:34 hmm. i think i have something else. Apr 06 16:20:40 lov: thanks for the kicker. Apr 06 16:22:19 EvilPenguin: set your trampoline activity to Theme.NoDisplay Apr 06 16:22:19 btw Apr 06 16:24:06 evancharlton: im not going to make a trampoline activity :P Apr 06 16:26:33 How can I uninstall multiple android packages at once? Apr 06 16:26:33 I tried "adb uninstall *foo*" but it didnt work (should uninstall all which packagename contains foo) Apr 06 16:27:00 you can't Apr 06 16:27:10 you have to run adb uninstall multiple times, more or less Apr 06 16:27:26 you might be able to do some crap like adb uninstall {com.foo.bar,com.foo.baz} but I doubt it Apr 06 16:28:00 okeeey Apr 06 16:30:50 I have a horizontal LinearLayout in which I use fragmentmanager to add fragments, now.. as the fragments are not declared in the XML is there any way to set the weight of each fragment ? or any other way to make the first fragment occupy 25% of the screen space Apr 06 16:31:07 When I put something in a static block, it's initialized when the class is loaded. So does that mean it's going to be in memory for an undefined amount of time that I can't control, but most likely the whole time my program is running? Apr 06 16:31:16 static fields, that is Apr 06 16:31:39 evancharlton: if shell expansion worked for {package1,package2} it would work for * Apr 06 16:31:42 unless of course I set it to null Apr 06 16:31:52 evancharlton: likely the command only takes one parameter Apr 06 16:31:59 birbeck: yeah Apr 06 16:32:08 birbeck: why would * work though? it's not files Apr 06 16:33:22 {x,y} expands to the full path. /foo/bar/{1,2} is equivalent to /foo/bar/1 /foo/bar/2 Apr 06 16:35:20 i meet with a new company today, can finally start looking to get out of this place Apr 06 16:35:48 i loved my job for 6 months, still love android dev, but the last month here has really gone down the tubes Apr 06 16:37:48 nice Apr 06 16:37:51 good luck Apr 06 16:39:27 thanks Apr 06 16:40:49 been wanting to get on the google wallet team, but google only contacts me for junior java/python jobs Apr 06 16:49:19 yesterday someone was telling me how google wallet would replace wallets, then he was pissed when I told him how phones run out of battery but wallets dont Apr 06 16:49:58 lol Apr 06 16:50:08 That's a feature, automatic limit on spendings Apr 06 16:51:11 should be interesting after the txvia acquisition Apr 06 16:52:22 i think my company would be pretty pissed if i joined paypal Apr 06 16:52:33 Hi! I have an app. that has two activities. one of them has potralit with vertical orientation and the other one has lanscape with horizontal orientation. when you press back button the at the lanscape orientation it needs to go to the other one. but the other one gets drawn horizontally. the api I used is 7. Apr 06 16:53:44 vudu: is this in the emulator, have you tried on a phone? Apr 06 16:54:10 it works fine on the emulator Apr 06 16:54:26 anyone here use unity? i'm curious how you can allow a user to control an object in the game.. like so if i allowed it, a user could grab a ball and pick it up and drop it or move it or whatever Apr 06 16:54:44 by that i mean, is that something theyve built in, or would that be something i'd have to try and create? Apr 06 16:54:59 vudu, interesting, i have only seen that happen on the emulator Apr 06 16:55:56 vudu: if the activity requires portrait, you can declare that in your manifest (or code), and it should switch back Apr 06 16:56:29 is there a example/tutorial on how to use NotificationCompat.Builder for status bar notifications? Apr 06 16:56:46 *an example Apr 06 16:57:30 wreiner I'm sure there is. I can show you how I used mine if you like. Apr 06 16:57:55 Ankhwatchere: oh that would be perfect Apr 06 16:58:13 damnit keyboard Apr 06 17:00:44 The API is pretty self-explanatory tbh.. setTicker, setContentTitle, setAutoCancel, etc.. They're basically named after the fields/setter parameters in Notification Apr 06 17:00:48 wreiner: Here's my code: http://pastebin.com/Hqs8tX89 here's the documentation http://developer.android.com/reference/android/support/v4/app/NotificationCompat.Builder.html Apr 06 17:01:23 Ankhwatcher: thanks i'll read that Apr 06 17:01:56 wreiner: good luck Apr 06 17:02:19 Is there a way to set a listview to automatically scroll down when a new item is added? Apr 06 17:04:40 i suppose there is no way do not provide an intent? i want to use the notification for a service and there isn't really an activity for it Apr 06 17:11:00 wreiner: I find it hard to believe that there's no relevant activity for your service Apr 06 17:11:11 not even one that explains what it is or how to turn it off? Apr 06 17:11:27 Ankhwatcher: thank you - works like a charme. Apr 06 17:12:12 another app finished Apr 06 17:12:16 man this one's elite! Apr 06 17:12:27 evancharlton: oh i thought the intent should be related to the event itself. so i just fire up my configuration intent, sure. Apr 06 17:12:55 If nothing else, at least fire an intent that takes the user somewhere to disable the notification Apr 06 17:14:03 sounds reasonable. i'll make it so. thanks. Apr 06 17:15:12 Anybody know what the name of the layout is for the standard android push notification? Apr 06 17:15:20 android.R.layout.? Apr 06 17:15:38 .. push notification? Apr 06 17:15:46 finally updating to adt r17, been using beta 1 of r17 since it came out Apr 06 17:16:18 Chronax: thats just a status bar notification… if you are wanting to display a notification Apr 06 17:16:49 Huh? Apr 06 17:16:58 I want to know what layout is being used in the pulled-down notification. Apr 06 17:17:20 Right now I'm using a custom layout. Apr 06 17:17:26 I'd prefer to use the stock Android layout. Apr 06 17:17:42 if you want to use the stock layout, you dont supply a layout Apr 06 17:17:49 Soo.. Just don't set a custom layout? Apr 06 17:17:56 Ahh, I see. Apr 06 17:18:05 The way my code is structured, I have to provide a layout, unfortunately. Apr 06 17:18:13 I'd like to plug in the various values . Apr 06 17:18:20 it will do that for you Apr 06 17:18:32 So structure is differently :p Apr 06 17:18:36 It might not even be public Apr 06 17:18:56 icon, tittle, message, badge, etc all all provided by the os Apr 06 17:21:17 Oh, I see. Apr 06 17:21:29 So I can't specify get references to those and provide values? Apr 06 17:21:40 you probably can, but you shouldn't Apr 06 17:22:26 set the values and then call setLatestEvent() or whatever, dont remember off the top of my head Apr 06 17:22:51 http://developer.android.com/guide/topics/ui/notifiers/notifications.html should be helpful Apr 06 17:24:03 and as mentioned above, use notification.builder for 3.0+ or notificationcompat.builder if you are using the compat library Apr 06 17:28:10 so whats this "intel atom x86 system image" and "intel hardware accelerated execution manager" that i see in android sdk manager? are they required for the new hardware accelerated avds? Apr 06 17:28:29 Yep Apr 06 17:28:37 Install the second one Apr 06 17:28:42 Create an AVD with the first one Apr 06 17:29:19 ^ as target Apr 06 17:29:24 ok, so instead of arm v7, specify intel atom Apr 06 17:30:17 Well.. You choose the x86 system image as target, like you'd choose Android 2.1 as target Apr 06 17:30:19 yay, added android:install and android:run to my sbt plugin Apr 06 17:30:40 There's only that one target so far (API10) Apr 06 17:30:57 heh, 10 doesnt even run that bad Apr 06 17:31:05 so theoretically its gonna be much smoother running x86 images, while still maintaining ARM compatibility of your app? Apr 06 17:31:14 actually 10 runs great with snapshots enabled Apr 06 17:31:22 Ravenheart, ndk code will need to be rebuilt Apr 06 17:31:55 Yeah, birbeck .. kinda disappointing Apr 06 17:32:06 i mean the java code Apr 06 17:32:11 normal app :) Apr 06 17:32:21 yes, java code should run identically on x86 Apr 06 17:32:26 Could've at least make an ICS image, so we could run tablets Apr 06 17:34:33 SimonVT: well i thought this mac might actually be useful for once, apparently not Apr 06 17:35:03 oO Apr 06 17:35:09 SimonVT: by the time 11+ get x86 (emulation?) then they will have linux support Apr 06 17:35:22 Pretty sure it works on linux already Apr 06 17:35:46 i read that it was only supported on windows and mac Apr 06 17:36:18 so this unity3d thing.. its pretty cool.. makes 3d development way easier Apr 06 17:36:31 gnome shell way better Apr 06 17:36:35 http://developer.android.com/guide/developing/devices/emulator.html#accel-vm Apr 06 17:36:38 They have linux instructions Apr 06 17:39:03 SimonVT: so this is like the android x86 project but google and not running in virtualbox/vmware? Apr 06 17:39:21 SimonVT: bitch bitch bitch Apr 06 17:39:23 It's all intel Apr 06 17:39:27 lov: perforce Apr 06 17:39:39 GAH Apr 06 17:39:41 * lov hisses Apr 06 17:40:06 :D Apr 06 17:41:48 cooldman224: unity3d is a game sdk, not the unity launcher for ubuntu :) Apr 06 17:42:46 birbeck: oh whoops :D Apr 06 17:43:18 cooldman224: simple mistake Apr 06 17:44:58 I want to move a image every 1 sec, but Thread.sleep() don't work Apr 06 17:45:32 >_> Apr 06 17:45:39 use a new thread thx Apr 06 17:45:42 and/or handlers Apr 06 17:46:29 handlers? what keyword should I search for? Apr 06 17:46:48 Handler? Apr 06 17:47:15 That is what I would search for ;P Apr 06 17:48:50 thanks Apr 06 17:49:56 hey darkgerm, go to d.android.com Apr 06 17:50:01 see the search bar in the top right? Apr 06 17:50:04 type works into there Apr 06 17:50:05 has anyone installed the intel haxm? Apr 06 17:53:06 lov: thanks Apr 06 17:53:45 hey guys, I've got a simple animation for my button, like jump for 10 pixels after pressing it, and when it jumps it gets cut by it's borders, how can I make it jump outside it's top border? Apr 06 17:54:17 cooldman224: it's just like any other emulator image from a user perspective Apr 06 17:54:23 just update the sdk and you will have it Apr 06 17:54:52 readme: yeah well the dang thing won't install when i have a core i7 Apr 06 17:54:57 and one more question, how to make those animations smoother? I've got all the work after pressing the button in a separate thread, but it still not as smooth as I want it to be Apr 06 17:54:58 SimonVT: the intel x86 images dont have google apis Apr 06 17:55:05 i think the vt-x option might be disabled in the bios Apr 06 17:55:16 so cannot add a google account for c2dm or google maps Apr 06 17:55:31 lov: like this? http://files.evancharlton.com/works.png Apr 06 17:55:51 cooldman224: yeah, that would probably cause a problem. It works fine on my amd machine. Apr 06 17:56:02 :D Apr 06 17:56:20 evancharlton: yes just like that Apr 06 17:56:30 then you type all sorts of other things too which is neat Apr 06 17:56:32 redme: how?1?!? you hax0r. requires an intel proc Apr 06 17:56:50 birbeck: Yeah :F Apr 06 17:57:23 cooldman224: wouldn't it need any x86 machine? Apr 06 17:57:45 perhaps I'm derping here, but I thought it was more about the architecture than the CPU manufacturer Apr 06 17:58:05 evancharlton: Hardware Requirements: Intel(R) processor with support for VT-x, EM64T, and Execute Disable Bit Apr 06 17:58:11 from the readme Apr 06 17:58:35 I'm assuming there might be undocumented opcodes that intel uses Apr 06 17:58:42 ah Apr 06 17:58:44 (or documented but proprietary) Apr 06 18:01:23 which adt should i use with galileo Apr 06 18:01:34 the most recent one Apr 06 18:01:48 17 doesnot work Apr 06 18:02:02 and i dont know ow to download the previous ones? Apr 06 18:02:13 define "does not work" Apr 06 18:02:26 galileo might just be too old Apr 06 18:02:57 yeah, you're like 2 versions out of date, most recent version is indigo iirc Apr 06 18:04:03 yes but indigo doesnot allow me to update sofyware :( i says your eclipse has not benn configured properly Apr 06 18:04:33 how work ADT and other android plugins on eclipse indigo ? Apr 06 18:04:48 does anyone know how to keep inner interface method params using proguard? I have -keepparameternames set, but it only keeps non-inner class method parameters Apr 06 18:11:12 arg i've still not figured out my fragment/tab issues if anyone is around from yesterday Apr 06 18:11:39 bah, this intel image doesnt even have english (gb) Apr 06 18:16:22 i r has fix3d it! Apr 06 18:19:15 soooo much faster Apr 06 18:24:03 sounds like HTC is hurting badly Apr 06 18:26:04 ActionBar with Tabs. Each tab is a Fragment. When i change tab the Fragment is destroyed and i lose the "SavedInstanceState". Is this the intended way for fragments to behave in actionbar tabs? Apr 06 18:26:49 afreq, no idea, but if you want it to save state, then setRetainInstance, or save it in onSavedInstanceState Apr 06 18:26:51 g00s > oh? :o Apr 06 18:27:14 If you remove(...) them, yes, the framework wont save state Apr 06 18:27:27 pfn: Yeah i've done that. The fragment is still destroyed. Apr 06 18:27:32 what SimonVT said Apr 06 18:27:54 hackkitten: story is behind a paywayy but , "Facing more intense competition from rivals Apple and Samsung, HTC announced on Friday that its pre-tax profits fell by almost 70 percent." Apr 06 18:28:00 *paywall Apr 06 18:28:04 ouch :o Apr 06 18:28:28 SimonVT: i "replace" the content. Apr 06 18:28:35 * pfn wonders why his package task is running twice Apr 06 18:28:57 That's the same as remove(..)ing the old, and add(...)ing the new Apr 06 18:29:51 SimonVT: I can't see any alternative at this point? Am i being silly. I fixed yesterdays problem by using replace. Apr 06 18:30:18 You can hide(...) or detach(...) Apr 06 18:30:22 anyone here using os x lion, who updated their jdk within the last few days to 1.6.0_31 ? Apr 06 18:30:55 i dont update, i like mac viruses Apr 06 18:31:01 (lion has only had 2 JDK updates, this is the one from April 3) Apr 06 18:31:05 birbeck: heh :D Apr 06 18:31:49 SimonVT: yeah ok. I'll try but i'm suspecting i'm going to be returning to previous issues. Also, when I switch back to the first tab, which contains a list populated on first creation, the data is still in list. Apr 06 18:33:01 If you keep a reference to the fragment, its instance variables will still be there Apr 06 18:33:24 But if you removed it, the framework wont save state for your on e.g. orientation change Apr 06 18:33:59 SimonVT, I have to save a graph of of Observable / Observers in a Bundle ... How will you do ? Apr 06 18:34:50 I'd use one of the put* methods, and pass it a key along with the data Apr 06 18:35:38 SimonVT: thanks. Apr 06 18:35:42 SimonVT, I mean I have to store the info of the kind of node of the graph and the connection Apr 06 18:36:23 aLeSD: So convert it to a data type Bundle supports Apr 06 18:36:50 Serializable Apr 06 18:38:08 bummer, sounds like the google tablet is being pushed back to at least july Apr 06 18:38:21 Now i get a blank screen when i flip back to the tab. i'm an experienced programmer and i'm finding this messy. Apr 06 18:38:50 mmm ... it can't wirk Apr 06 18:39:10 I can't access the list of Observers of a Observable Apr 06 18:40:56 * g00s watched idly as aLeSD seems to be doing weird things Apr 06 18:41:26 g00s: this is android. it's always weird. Apr 06 18:42:40 I've seen some of your code, it's not android that's making it weird Apr 06 18:42:40 Oh, thought it was aLeSD saying that Apr 06 18:42:49 heh Apr 06 18:43:06 * pfn wonders what other goodies he can add to his sbt plugin Apr 06 18:43:09 afreq: http://pastebin.com/7Fh7gdWb Apr 06 18:44:22 SimonVT: thanks again. I'll give this approach a go. Apr 06 18:44:56 Ok ... I am alone and scared in front of the Bundle Apr 06 18:45:44 aLeSD: i wish i could see my bundle right now....bundle oh where art thou... Apr 06 18:48:11 hey guys, I have a question, do I need to do something with an asynctask after executing it, because it hangs in the thread list and just waits there Apr 06 18:49:31 stiggpwnz: offer it a drink. or if you want it to leave politely point at the door. Apr 06 18:49:56 afreq, yeah but what about the memory and stuff? Apr 06 18:50:34 .... when you say "hangs in the thread list" Apr 06 18:50:36 stiggpwnz, the thread always sticks around in the pool Apr 06 18:50:39 do you mean the list of threads that the debugger? Apr 06 18:50:44 it's fine, don't worry about it. Apr 06 18:50:47 hm Apr 06 18:50:48 stuffpwnz: as for the stuff...you should have got a pre nup. memories last for every though you can't change that. Apr 06 18:50:52 i just got my HTC One X Apr 06 18:50:54 as long as your background stuff terminated, the thread is dead and you can ignore it. Apr 06 18:51:02 * pfn looks at other cool stuff he can do with IDevice in ddmlib Apr 06 18:51:09 and the touchscreen is ignoring a horizontal row sometimes Apr 06 18:51:17 lov, yes, thread list in the debugger Apr 06 18:51:26 has anyone heard of that issue? Apr 06 18:51:31 yeah, there's threadpooling going on that you don't need to worry about. Apr 06 18:51:37 i can clearly mark it with drawesomething Apr 06 18:52:04 g00s I do use it, but i'm about to go pass out for a bit Apr 06 18:52:08 feel like crap Apr 06 18:52:26 g00s androidplot that is, but I think the version I have is the pre-open sourcing Apr 06 18:52:46 one more thing, I've bound one activity to a service, but i have two Binder Threads, is it ok? Apr 06 18:52:50 t0mless: ok, i was looking at version 0.5.0 Apr 06 18:53:00 Binder Thread #1 and Binder Thread #2 Apr 06 18:53:07 achartengine had a 1.0 release, but the demo still looked and behaved like shit Apr 06 18:53:21 I remember looking at achartengine Apr 06 18:53:27 t0mless: what has been your experience with androidplot so far ? Apr 06 18:53:27 and that it was ugly Apr 06 18:53:31 yeah Apr 06 18:53:40 works pretty good :) Apr 06 18:53:53 i thought it was dead there for a while - no activity Apr 06 18:54:02 there was something quirky about it... but I can't remember what it was Apr 06 18:54:25 i dont think it has pinch / zoom / pan , right ? Apr 06 18:55:01 It didn't in the version I had Apr 06 18:55:30 ok - thanks t0mless :) Apr 06 18:56:01 SimonVT: urg. I just get blank tabs with that. I added a bit to check if the fragment is null to init it. Apr 06 18:57:03 JakeWharton_, you should use android-sdk-plugin 0.2.0, now with android:install and android:run tasks, heh Apr 06 18:58:05 JakeWharton_, also fixes a bug I think I added into 0.1.0 need to mkdir -p bin/res or aapt fails, ugh Apr 06 19:00:26 you ever notice how its much easier to love attractive people? Apr 06 19:00:57 maybe you should ask that in #superficial Apr 06 19:01:06 also, wanted to know, which HTTP client is better for frequent api queries the standart one from java 6, or from the apache commons? Apr 06 19:01:20 is there a way to get a callback when a fragment transaction animation is complete? Apr 06 19:01:32 im just saying.. they dont have to be as nice in order to love them Apr 06 19:01:45 svchost, it is offtopic, and I really don't care Apr 06 19:01:45 any act of kindness by an attractive person is amplified Apr 06 19:01:59 not a conversation that is needed in here Apr 06 19:02:18 svchost: when you say love do you mean...love them? or looove them? knowhatimean? Apr 06 19:02:53 love Apr 06 19:02:59 but also loooove Apr 06 19:03:09 please stop Apr 06 19:03:17 he asked me dude. calm down Apr 06 19:03:26 it is off topic Apr 06 19:03:27 geez. so sensitive. Apr 06 19:03:38 svchost: IRC is no place for chit chat :D Apr 06 19:03:50 afreq, this channel has a purpose Apr 06 19:03:54 yes, i forgot. internet relay chat is not to chat in. Apr 06 19:04:24 last warning Apr 06 19:04:55 so... how about that android development.. click listeners or whatever.. Apr 06 19:05:13 i hate android development Apr 06 19:05:29 wtf? i was talking about android.. Apr 06 19:05:39 are you kidding Apr 06 19:05:53 you are extremely immature Apr 06 19:06:06 @michaelnovakrj: he was talking about android. Apr 06 19:06:12 svchost: The problem is you still don't understand the purpose of this channel. It isn't a chat channel, generally. It is a channel for professionals to ask and be asked actual questions. Apr 06 19:06:38 He was being a smartass Apr 06 19:06:49 afreq, knock it off. there's no need for smartasses in here Apr 06 19:07:08 @michaelnovajkr: don't call me an ass. you ass. Apr 06 19:07:29 yes. i understand. you are using internet relay chat for something it isnt intended for. which is why i switched the topic to android stuff. like activities.. how about those? what do you guys think of setConentView()? Apr 06 19:07:34 I think it's pretty cool stuff.. Apr 06 19:07:38 ladies... Apr 06 19:08:00 svchost, this isn't a debate Apr 06 19:08:08 i dont understand.. Apr 06 19:08:13 what do you think of setConentView() Apr 06 19:08:20 do you think its cool? Apr 06 19:08:54 hey a friend of mine said he just got banned here by some douche Apr 06 19:09:07 canadiancow|work, you should pick better friends Apr 06 19:09:10 hehe Apr 06 19:09:11 lol im joking Apr 06 19:09:11 When I try to stop my location updates after my application has been destroy and recreated it does not work. http://pastebin.com/27px8TSQ I think the problem might be that the locationlistener is being recreated. Is there a way to bundle them? Apr 06 19:09:21 only briefly watched it happen on my other ocmputer Apr 06 19:09:59 Ankhwatcher, you shouldn't attempt to hold that state Apr 06 19:10:09 I'd kill it and recreate it Apr 06 19:10:45 michaelnovakjr: but I need the location updates to run the background, that's the idea. Apr 06 19:10:52 So... where do I get a list of "?android:attr/*" ? Apr 06 19:10:53 service? Apr 06 19:11:14 shoerain: look at the docs for R.attr Apr 06 19:11:29 That should've been straightforward, thanks though SimonVT Apr 06 19:11:39 Ankhwatcher, run your location code in a service if you want it to survive outside the scope of the activity lifecycle Apr 06 19:11:43 Yes, that sounds like a service + broadcast solution? Apr 06 19:11:56 michaelnovakjr: okay, I'll look into it. Apr 06 19:17:32 Hi all Apr 06 19:18:05 is there a way to get a callback when a fragment transaction animation is complete? Apr 06 19:18:31 anyone has a problem with the built in camera app not saving a images to the sdcard? Apr 06 19:18:52 my phone which is a htc desire s is set to charge only Apr 06 19:19:00 hey folks, is this the right channel for a newbie asking how to set up an new Ubuntu to build android apps? Apr 06 19:19:44 but when I call the activity it returns the uri fine and a thumbnail in the data but theres no image saved to the uri I set Apr 06 19:19:50 afeijo, http://developer.android.com/sdk/installing.html Apr 06 19:20:44 afeijo, dont use the eclipse that comes in the repos, go for the one on the eclipse website Apr 06 19:20:58 MickeySoFine, cant I use komodo? Apr 06 19:21:19 I've been happy with my repo Eclipse so far... Apr 06 19:21:22 afeijo, not really sure why you would... Apr 06 19:21:26 ok Apr 06 19:21:32 IntelliJ is awesome too Apr 06 19:21:46 dunno never used it for any development. best just stick with eclipse as its whats been proven to work Apr 06 19:22:15 afeijo: start development with Eclipse. Move over to another IDE if you want once you know your way around the Android API. Apr 06 19:22:40 +1 to that Apr 06 19:22:42 Ologn, IntelliJ is actually far easier to configure than Eclipse is Apr 06 19:22:43 Ologn, I'll do that Apr 06 19:23:03 far better IDE all around than eclipse Apr 06 19:23:18 I'm a long time programer but didn't touch mobile languages yet. My strong languages are delphi and php Apr 06 19:23:34 I'm assembling an virtual ubuntu specially for android Apr 06 19:24:00 afeijo, emulator won't really perform great in a vm Apr 06 19:24:04 afeijo, what will you be deploying the vm on? Apr 06 19:24:17 php programmers are anything but ;-) Apr 06 19:24:23 vmware workstation 8 Apr 06 19:24:27 pfn :ppp Apr 06 19:24:37 afeijo, you can get the sdk for win/mac/linux Apr 06 19:24:39 pfn: :P Apr 06 19:24:48 I used virtualbox for years, recently tested that last vmware and I like it Apr 06 19:25:04 I'm very happy with Eclipse, for the most part. It doesn't seem to always handle library projects with grace, but it's ok. Apr 06 19:25:08 that's great, but the emulator is going to be insanely slow Apr 06 19:25:12 yeah afeijo you can get eclipse for all those platforms too Apr 06 19:25:31 * alankila wonders if anyone tried android-x86 virtualbox images for developent Apr 06 19:25:35 Knossos, IntelliJ does a great job of handling dependencies Apr 06 19:25:35 michaelnovakjr, I have a strong machine with i7 3.06 ghz and 16gb ram, not a single of my VMs run slow Apr 06 19:25:42 or that new haxm stuff, although I couldn't immediately find a system image for haxm Apr 06 19:25:57 afeijo, have you ran any emulated software on a vm? Apr 06 19:26:03 afeijo: Have you tried tablet sized Honeycomb/ICS emulators yet? Apr 06 19:26:09 no... Apr 06 19:26:12 lol Apr 06 19:26:17 lol Apr 06 19:26:23 anyone know how to get the built in camera to save to the sdcard? Apr 06 19:26:25 :/ Apr 06 19:26:29 The main reason I use Eclipse is I use Eclipse for PHP as well, so I am extremely familiar with the IDE. Also, it is the IDE that is always the example in the Android docs. Apr 06 19:26:41 MickeySoFine, there's a bunch of stackoverflow threads on the camera image saving Apr 06 19:26:47 does flash counts? that run slow on linux. period. heh Apr 06 19:26:57 flash doesn't count Apr 06 19:27:09 Knossos, I started to use komodo for php/jquery recently Apr 06 19:27:10 I will have to look into IntelliJ. I have heard a lot of good things about it. Apr 06 19:27:11 michaelnovakjr, yeah i know I've been through them all and I'm getting no joy with those answers Apr 06 19:27:32 I know some cameras have issues with using the native app Apr 06 19:27:38 well I'll try with my plan, if that proves to sucks, I will report to you guys and try to install it in my host system :) Apr 06 19:27:46 JakeWharton_: ping Apr 06 19:28:04 afeijo: there's actually no reason to install linux image for android app development... for android itself development maybe Apr 06 19:28:05 but my device is a newish phone and I dont think it should be happening Apr 06 19:28:24 htc does stupid crap, could be anything Apr 06 19:28:24 I have a htc desire s Apr 06 19:28:49 is it better to just make my own camera activity then? Apr 06 19:29:32 that's your call Apr 06 19:29:58 huh? camera does save to the sdcard by default Apr 06 19:30:18 my xoom cannot save files in my sdcard btw, damn bug Apr 06 19:30:36 pfn, i've seen issues with htc devices behaving differently Apr 06 19:30:44 well, there's some emmc thing Apr 06 19:30:52 afeijo: iirc, that's not a bug Apr 06 19:30:59 pfn, It should but all I get is a uri and a thumbnail which I can then save to the sdcard from code Apr 06 19:31:12 is it possible to store the type of a class inthe bundle to recreate it later ? Apr 06 19:31:15 MickeySoFine, so save it to sdcard from code Apr 06 19:31:22 aLeSD, sure, why not Apr 06 19:31:29 pfn how ? Apr 06 19:31:37 aLeSD, by saving the name of the class Apr 06 19:31:39 and recreating it later Apr 06 19:32:04 pfn the image it returns in code is a thumbnail and not the full size image Apr 06 19:32:08 evancharlton, yes it is, xoom was released without that ability Apr 06 19:32:21 evancharlton, later they released a patch that should fix it Apr 06 19:32:26 lol Apr 06 19:32:27 pfn : MyClass o = new Bundle.getString("name"); ? Apr 06 19:32:36 aLeSD, no, why would that work Apr 06 19:32:45 aLeSD: sounds like you are reinventing Parcelable? Apr 06 19:33:12 alankila, pfn I have to store an Observable ... it's not parcelable Apr 06 19:33:14 or maybe ObjectInputStream Apr 06 19:33:19 aLeSD, so make it parcelable Apr 06 19:33:19 aLeSD, sounds like you need to look up Parcelable Apr 06 19:33:31 aLeSD, failing that, come up with your own serialization scheme Apr 06 19:33:49 afeijo: I believe the SD card in xoom has very limited capabilities, even after the patch. I'm not sure what they are offhand, but it wouldn't surprise me if pictures didn't get saved there. Apr 06 19:33:51 * alankila notes that class Foo extends Observer implements Parcelable { ... stuff ... } Apr 06 19:33:58 pfn I have no access to the list of Observers in Observable class Apr 06 19:34:03 so? Apr 06 19:34:11 aLeSD: so add it? Apr 06 19:34:15 and if you have to parcel your observers, I'd argue you're doing it wrong Apr 06 19:34:18 evancharlton, in mine, it does not work at all. It is in readonly mode Apr 06 19:34:30 afeijo: yeah, I think that's the intended functionality Apr 06 19:34:37 bah Apr 06 19:34:44 I should have get an samsung tablet Apr 06 19:35:19 right sod it I'm off to drink until I can even say android! Apr 06 19:35:22 ok ok ... I am totally nooby on PArcelable serailizable and Bundle .... what I have is a graph of Node extends Observable implement Observer ... Node1 extends Node ; NodeN extends NOde Apr 06 19:35:42 I want to store the graph and recreate it ... I dunno which way Apr 06 19:36:21 sounds like xml Apr 06 19:36:25 shall I try to install the 4.0 ROM in my xoom?? Apr 06 19:36:25 serialize to xml string, save to disk Apr 06 19:36:28 read to disk to restore Apr 06 19:37:28 wow 17.54% of my users are on ICS Apr 06 19:37:38 canadiancow|work, whats your sample size? Apr 06 19:37:46 what's your target audience? Apr 06 19:37:47 ~10k Apr 06 19:37:50 geeks :D Apr 06 19:38:01 im not trying to make some blanket statement Apr 06 19:38:05 just that a lot of MY users are on ics Apr 06 19:38:10 my sample size is only 1000 Apr 06 19:38:12 WELL BRAGBRAGBRAG Apr 06 19:38:44 pfm so you suggest to not use Bundle but to create a config file ? Apr 06 19:38:57 at what interval/rate should one push c2dm notifications Apr 06 19:38:58 24% of my users are on ics, but my sample size is 1000 Apr 06 19:39:01 Is it possible to send a reference of one of my classes to a new activity? Apr 06 19:39:08 100% of my users are on ics, but the sample size is 1 Apr 06 19:39:13 100% of my ICS users are on ICS or newer Apr 06 19:39:20 +1 Apr 06 19:39:24 lol Apr 06 19:39:32 you know what's annoying? a feature i wrote may or may not be malfunctioning Apr 06 19:39:34 and it's a holiday Apr 06 19:39:36 0% of my users run my app Apr 06 19:39:37 have none Apr 06 19:39:38 aLeSD, no, config files don't go in bundles Apr 06 19:39:39 so instead of not working Apr 06 19:39:40 i'm working Apr 06 19:40:02 but I need to build 3 apps... bah Apr 06 19:40:29 so get to work Apr 06 19:40:43 aye aye sire! Apr 06 19:41:12 pfn, yes ... I mean that I will note use the Bundle ... I will use a config file to store the graph Apr 06 19:41:37 that's better cause the user could store the created graph for a next use Apr 06 19:42:03 wute Apr 06 19:42:04 wut* Apr 06 19:42:15 I will put in the Bundle which config file the app was using Apr 06 19:42:34 pfn is what you meant ? Apr 06 19:42:37 what are you talking about Apr 06 19:42:50 canadiancow|work: me ? Apr 06 19:42:54 yes Apr 06 19:43:11 why do you keep talking about a Bundle Apr 06 19:43:14 yea Apr 06 19:43:20 I am totally nooby on PArcelable serailizable and Bundle .... what I have is a graph of Node extends Observable implement Observer ... Node1 extends Node ; NodeN extends NOde Apr 06 19:43:24 you're probably better off just serializing the whole thing Apr 06 19:43:37 Bundle is meant for a set of KVPs Apr 06 19:43:48 do you really have N subclasses of Node? Apr 06 19:43:54 that too Apr 06 19:43:56 evancharlton, yes Apr 06 19:43:58 wat Apr 06 19:43:58 LOL Apr 06 19:44:02 lern2oop Apr 06 19:44:03 I'm afraid to ask why Apr 06 19:44:12 evancharlton, ask please Apr 06 19:44:17 WHY Apr 06 19:44:25 "why?" Apr 06 19:44:33 N subclasses is ok... painful, but ok Apr 06 19:44:35 because Apr 06 19:44:37 each node process the data in and send out Apr 06 19:44:41 pfn: disagree Apr 06 19:44:44 each node do something Apr 06 19:44:49 ... Apr 06 19:44:57 busy nodes ! Apr 06 19:44:58 is it normal behaviour that streaming mp3 ¨glitches¨ when for example the screen rotates? I´m using the AudioTrack class for the streaming, decoding is done by helix, an optimized arm decoder Apr 06 19:44:58 like filter , FFT Apr 06 19:45:21 when you say "N" do you mena like 1000, or 3 Apr 06 19:45:26 I was starting building a simple app to show the sensors events Apr 06 19:45:27 aLeSD: and the best name you could come up with was Node[1...N] ? Apr 06 19:45:28 anyway Apr 06 19:45:43 aLeSD: Bundle is basically just HashMap Apr 06 19:45:45 I totally overengineered the stuff ... And now I have a framework to process signals Apr 06 19:46:28 evancharlton, it was an example . BridgeNode extends Node , NullNode extends Node , ViewNode extends Node Apr 06 19:46:30 Would I be right to think that the location I get in onTouch is not the exact place my finger is? It seems it's a little bit below my fingertip each time. Maybe it varies by hardware too? Apr 06 19:46:35 well Apr 06 19:46:36 no Apr 06 19:46:45 aLeSD so what's the problem, exactly? Apr 06 19:46:49 ViewNode extends Observer Apr 06 19:46:50 you want to save it and restore it? Apr 06 19:46:56 canadiancow|work, yes Apr 06 19:47:08 have you tried just implementing Serializable Apr 06 19:47:11 and writing it to a file Apr 06 19:47:31 canadiancow|work, I never did it ... so I am just asking the right way Apr 06 19:47:48 I've used ObjectOutputStream as poor man's database Apr 06 19:48:12 aLeSD, i would try just making Node implement Serializable Apr 06 19:48:13 canadiancow|work, you mean serializa each node ? Apr 06 19:48:15 and writing it out to disk Apr 06 19:48:17 it stores entire graphs at once, but serialized objects mut implement Serializable. Apr 06 19:48:22 no, serialize the graph Apr 06 19:48:32 which is an API of no methods, so not hard to implement Apr 06 19:48:35 which will, in turn, serialize each node Apr 06 19:49:14 canadiancow, first ... Observable is not serailizable Apr 06 19:49:31 ... Apr 06 19:49:38 Observable is an interface, is it not? Apr 06 19:49:48 canadiancow|work, I told you ... it's my first time ,... just learning Apr 06 19:49:51 lol Apr 06 19:49:51 I thought parcelable was preferred over serializable when it will work Apr 06 19:49:55 you know you can implement multiple interfaces, right? Apr 06 19:50:01 jeppy, emphasis on "when it will work" Apr 06 19:50:07 canadiancow|work, wait ... I have no access to the list of Observable Apr 06 19:50:08 and it's faster in some cases Apr 06 19:50:21 canadiancow|work, wait ... I have no access to the list of Observer Apr 06 19:50:24 but if you just want to save it for later, i'd use serilalizable Apr 06 19:50:36 aLeSD, well i dont know what you do or do not have access to Apr 06 19:50:47 lol Apr 06 19:50:51 you right Apr 06 19:51:02 aLeSD: to make an object Serializable, you just add "implements Serializable" to it, and make sure any members it has that are objects are also serializable. Apr 06 19:51:20 and any Lists you have, and such, better have serializable elements, too. Apr 06 19:51:36 or are transient Apr 06 19:51:54 readme, so I don't need to access to the Observable.list ? Apr 06 19:52:05 have you ever used transient? Apr 06 19:52:07 i havent Apr 06 19:52:09 aLeSD: i'm not sure, I just jumped in Apr 06 19:52:16 lol Apr 06 19:52:22 NicolasGramlich: thanks, I'll have to look into that Apr 06 19:52:51 by the way I have to find a way to save on a file the graph ... cause the user could need to store an use case Apr 06 19:52:55 a graph Apr 06 19:53:27 oh. my. god. Apr 06 19:53:36 class Graph implements Serializable Apr 06 19:53:40 class Node implements Serializable Apr 06 19:53:40 for stable data, I recommend not parcelable and not objectoutputstream but something like json Apr 06 19:54:04 you probably want to implement serialization and deserialization manually in order to have fairly clean implementation and human-readable output. Apr 06 19:54:16 FileOutputStream f_out = new FileOutputStream("myobject.data"); Apr 06 19:54:17 ObjectOutputStream obj_out = new ObjectOutputStream (f_out); Apr 06 19:54:17 obj_out.writeObject ( myObject ); Apr 06 19:54:24 objectoutputstream can do this, but you have to deal with serialVersionUID Apr 06 19:54:26 canadiancow|work: geez, use a pastebin Apr 06 19:54:31 n00b Apr 06 19:54:47 Anyone successfully written a reliable application that uses the ADK? Apr 06 19:54:48 three lines is acceptable imo Apr 06 19:54:56 chainfire Apr 06 19:54:58 I can't seem to get reliable connect/disconnect events Apr 06 19:55:02 canadiancow|work: i kid Apr 06 19:56:29 ok I will try Apr 06 19:56:32 new branch Apr 06 19:57:52 if i use a jar in my project, do I need to set it as "exported"? my app fails in runtime with a NoClassDefFoundError without it and works with it, but it wasn't there before. Did something change with the ADT or did this maybe get unchecked accidentally? Apr 06 19:58:43 hi all Apr 06 19:58:56 hi QubeZ Apr 06 19:59:10 grantland: i believe it only needs to be exported if you are working with either a test project or library project Apr 06 19:59:18 yo readme Apr 06 19:59:27 that the export setting allows it to be referenced from other projects in the workspace Apr 06 19:59:53 readme: would there be something else causing the NoClassDefFoundError? (I'm the one compiling the .jar if that makes a difference) Apr 06 20:00:50 I have read a lot of posts about problems with jars since the adt have changed Apr 06 20:01:00 i am not sure what your particular setup is so I can't say Apr 06 20:01:19 I changed to ADT17 and my project broke too. I had to move my "lib" to "libs" Apr 06 20:01:34 QubeZ: it was already in `libs` so that's not the issue Apr 06 20:01:51 ok im late to the conversation, but just throwing it out there =) Apr 06 20:02:33 QubeZ: sorry, it's helpful as I read that somewhere else too. you actually didn't miss anything at all Apr 06 20:02:58 http://code.google.com/p/android/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars&groupby=&sort=&id=27490 Apr 06 20:03:04 is this relevant grantland Apr 06 20:03:06 I'm using ant and a modified -compile that let's me use multiple source.dir directories Apr 06 20:03:25 http://stackoverflow.com/search?q=adt+17+jar Apr 06 20:03:33 not the only one having problems, i assure you Apr 06 20:03:40 grantland: http://tools.android.com/recent/dealingwithdependenciesinandroidprojects read this? Apr 06 20:04:25 hello I am creating my content provider but in my query method uri.getLastPathSegment() is not the ID instead it seems to be the table name. I am not sure what is wrong. http://pastebin.com/WhVEAZTG Apr 06 20:04:27 SimonVT: I'll check it out, thanks! Apr 06 20:04:39 readme: these look good, i'll check them out Apr 06 20:16:33 readme: it looks like this guy's solution was the same as I found: http://code.google.com/p/android/issues/detail?id=27490#c8 Apr 06 20:21:22 cooldman224: take the slashes of the end of "Selected_Drinks/" and "Categories/" Apr 06 20:21:30 in the urimatcher Apr 06 20:22:10 canadiancow|work, Apr 06 20:22:21 jeppy: doh! i hope it wasnt that simple Apr 06 20:22:29 All of the fields in the class must be serializable. If a field is not serializable, it must be marked transient. Apr 06 20:23:06 that might not be the only problem Apr 06 20:23:25 so I can't serialize Observable .... but I can create an implementation of Observable that will be Serializable Apr 06 20:24:01 yes... Apr 06 20:24:15 cooldman224: are you sure you're sending an id in the content uri? Apr 06 20:24:23 jeppy: :( its not. Well my switch statement isn't finding the Selected_Drinks_ID so it isn't being sent by my cursorloader. Take a look at line 58 Apr 06 20:24:36 jeppy: It isn't Apr 06 20:24:52 it should be sent 31 but sent 30 Apr 06 20:25:00 in the switch Apr 06 20:26:57 cooldman224: SELECTED_DRINKS should not try to append an id because if there is an id then it would match SELECTED_DRINKS_ID Apr 06 20:27:55 jeppy: yeah I took that case out since it was wrong. now it is defaulting to the throws exception Apr 06 20:28:10 just take that line out Apr 06 20:28:17 129 Apr 06 20:29:40 you should pass an id in to onCreateLoader, or have on reachable through a member variable perhaps Apr 06 20:29:57 one* Apr 06 20:31:44 cooldman224: pass an id to onCreateLoader using the Bundle Apr 06 20:32:25 jeppy: where is the id or the call coming from? Apr 06 20:32:56 line 45 Apr 06 20:35:50 anyone using HoloEverywhere through Maven? Apr 06 20:36:24 jeppy: ok. Now it is telling me column _id doesn't exist, when it does.... Apr 06 20:38:14 jeppy: ill pastebin it Apr 06 20:39:16 how do you pass a value to a service while starting it? Apr 06 20:39:25 readme QubeZ: follow up, eclipse was derping and wasn't creating "Android Dependencies". Basically I restarted eclipse a few times and it finally showed up. Removed the .jar as an external library (and re-imported the projects to clear lint errors) and it all works! Thanks guys. I really hate eclipse... Apr 06 20:39:36 Ankhwatcher, can probably set intent extras Apr 06 20:39:40 grantland: haha nice! Apr 06 20:42:22 jeppy: http://pastebin.com/nz7zKzkh Apr 06 20:42:48 content providers require an _id column Apr 06 20:43:06 pfn: ta Apr 06 20:43:12 You mean cursoradapter Apr 06 20:43:26 pfn: its there, check my create table statement Apr 06 20:43:44 You need to actually query the id Apr 06 20:44:02 it wont pass it, passes the table name instead Apr 06 20:49:47 My debugger is failing to hit points in the onCreate and onStart of my service, this is how I'm starting it http://pastebin.com/sa3ixTgH Apr 06 20:50:17 What should I be doing differently Apr 06 20:51:11 Ankhwatcher: hit points? you have breakpoints set there? Apr 06 20:51:37 readme: yes Apr 06 20:51:39 couple other things: you don't need getApplicationContext() unless you need a reference that survives the death of your activity Apr 06 20:51:53 or Service.. Apr 06 20:51:57 just use "this" Apr 06 20:52:21 I can't see breakpoints in your code snippet... so I can't really help Apr 06 20:52:31 make sure you're running in debug mode Apr 06 20:52:58 also know that your startService() is an asynchronous call Apr 06 20:53:06 readme: the breakpoints are in the service where they would have to be hit. I can't use this because it is in a view.OnClickListener Apr 06 20:53:25 Ankhwatcher: OuterClass.this Apr 06 20:53:51 Show me the service code Apr 06 20:53:58 and mark off where your breakpoints are with comments Apr 06 20:54:38 readme: I changed to OuterClass.this and crashed. Mission acomplished. Apr 06 20:55:23 Ankhwatcher: you mean your breakpoint was hit? Apr 06 20:56:06 readme: no I mean it crashed the app as soon as I pressed the button. Apr 06 20:56:15 readme: you ever get lost in a first person shooter? Apr 06 20:56:16 probably because your other code is horribly wrong Apr 06 20:56:26 Ankhwatcher: yeah, I have Apr 06 20:56:42 readme: you can always tell you are going the right way if there are still people shooting at you Apr 06 20:56:51 that's how I feel about new code Apr 06 20:57:16 yeah, when you are figuring it out a crash can be good :) Apr 06 20:57:58 doh Apr 06 20:58:07 It's not crashing for anything my service is doing Apr 06 20:58:15 stacktrace Apr 06 20:58:19 it's crashing because I just deleted the line that got context for the toast Apr 06 20:58:33 yeah, just pass 'this' to the toast as well Apr 06 20:58:43 kinda forgot it was serving a dual purpose Apr 06 21:01:59 bah, it's still not starting the service, here's the service code: http://pastebin.com/QBPY0MYz Apr 06 21:05:09 Hey guys. I'm trying to center a GridView in a RelativeLayout (with: android:layout_centerInParent="true") but the Grid stays at the top. Any Ideas? Apr 06 21:05:17 Ankhwatcher: check the return value of startService Apr 06 21:05:28 Ankhwatcher: I bet the service is declared incorrectly or not declared in your manifest. Apr 06 21:05:43 fixed it Apr 06 21:06:02 I left out the .gps before the name in manifest Apr 06 21:07:18 readme: thanks Apr 06 21:09:11 * ctate . o O ( better yet, don't use toasts :) ) Apr 06 21:09:12 http://uxdesign.smashingmagazine.com/2012/04/05/art-of-launching-app-case-study/ Apr 06 21:10:45 I thought pressing the stop for my location services had crashed my tablet for a second there. then I realised it ran out of battery. Apr 06 21:13:15 i launched an app 2 weeks ago and now i have $500 000 Apr 06 21:15:40 okay, I must be stupid.I'm trying to set one ViewGroup to Holo.Theme.Light, but am not getting any luck. This is what I put as an attribute of the View: ` style="@android:style/Theme.Holo.Light" ` -- I'm using regular 'ol holo for everything else, though. Apr 06 21:16:57 o wait, that was in a dream Apr 06 21:18:05 Themes are for activities Apr 06 21:19:46 oh-ho! Duy. Hm... Apr 06 21:21:15 Am I looking for Widget.Holo.Light? Or... Apr 06 21:21:50 woo can't wait to submit this update :) Apr 06 21:23:52 Hey guys. I'm trying to center a GridView in a RelativeLayout (with: android:layout_centerInParent="true") but the Grid stays at the top. Any Ideas? Apr 06 21:24:10 heh, i just saw the most awesome review of one of my apps Apr 06 21:24:40 link? Apr 06 21:24:43 "I know that because I don't have an iPhone, I'm missing out. I hear it all the time. But I love my Droid, and refuse to switch, even if the apps aren't as good. I stumbled upon a blog post..." Apr 06 21:25:02 is it necessary to call SQLiteStatement.close() if the DB is left open for the entirety of the application lifecycle? Apr 06 21:25:09 pfn: https://plus.google.com/u/1/b/116307550095881280053/116307550095881280053/posts/gamzJwCcHY9 Apr 06 21:25:51 herriojr: close it when you're done wiht the *statement* Apr 06 21:26:35 having it open can keep hold of some resources, in older versions of Android Apr 06 21:27:01 actually now that i think of it, even in ICS Apr 06 21:27:13 ctate: sure ok Apr 06 21:27:29 ctate: thanks Apr 06 21:30:00 statement? I thought it was ok to open in onCreate and close in onDestroy (or onStart / onStop) Apr 06 21:31:01 birbeck, nice review Apr 06 21:31:24 well its kinda meh, i just liked the intro Apr 06 21:31:32 lol Apr 06 21:31:38 i need to make my iphone/android comparison video Apr 06 21:31:40 but ill take any good press Apr 06 21:31:50 birbeck, positive overall, so that's good Apr 06 21:32:01 and it's honest Apr 06 21:32:35 i just cant wait to release my new product Apr 06 21:32:49 what's your new product? Apr 06 21:33:05 a mobile wallet Apr 06 21:33:13 boku.com Apr 06 21:33:28 oh, not your personal project Apr 06 21:33:33 no Apr 06 21:33:48 but i did the android app and half the iphone app Apr 06 21:35:03 indeed, how is it positioned vs goog wallet and isis? Apr 06 21:36:07 neither were direct competitors, not until google decided to go the carrier strategy as well Apr 06 21:36:33 though since we are not only nfc, its something that can be used today, anywhere Apr 06 21:36:41 but this is non-US huh Apr 06 21:37:00 for our initial launch partner yes Apr 06 21:37:15 but we are signed with mastercard and are in talks with many partners in the us Apr 06 21:37:21 how does this interop if not nfc? Apr 06 21:37:22 pfn Apr 06 21:37:43 Chainfire, someone asked about successfully using usb Apr 06 21:37:47 pfn, cloud payments Apr 06 21:38:15 traditional credit cards or pre-paid accounts linked to your phone, as well as nfc and nfc stickers Apr 06 21:38:38 so chrome to moible stopped working for me weeks ago Apr 06 21:38:42 is it working for other people? Apr 06 21:39:02 canadiancow|work, I just used it earlier today and it worked Apr 06 21:39:07 canadiancow: no problems with it, other than it always locks the ui thread Apr 06 21:39:31 bbl Apr 06 21:40:05 hmm i just never get it on my phone Apr 06 21:40:17 and it makes me sign in through chrome every time Apr 06 21:40:23 or it asks me "which account" Apr 06 21:40:24 re-register Apr 06 21:40:40 probably an oauth problem Apr 06 21:41:09 same issue from all my computers though Apr 06 21:41:11 and to both my devices Apr 06 21:41:45 it works to all of my devices from chrome and firefox Apr 06 21:42:03 i just removed the plugin from chrome Apr 06 21:42:04 reinstalled Apr 06 21:42:06 reregistered Apr 06 21:42:08 still nothing Apr 06 21:42:12 and I'm logged into multiple Google accounts Apr 06 21:43:11 Works fine here ;d Apr 06 21:43:58 :( Apr 06 21:44:05 could cyanogenmod be causing an issue? Apr 06 21:44:15 (but fyi, it worked before) Apr 06 21:46:48 i really wish there was sexy block formation stuff for animation. animation.finished = { view.setVisibility(View.GONE); } Apr 06 21:47:07 animation.finished = new finishedListener() { }; whatever Apr 06 21:48:12 EvilPenguin, do it in something not java Apr 06 21:48:26 pfn: like objective-c :P Apr 06 21:49:13 don't need objc to so Apr 06 21:49:18 do that Apr 06 21:49:32 pfn: lol what? Apr 06 21:50:45 wooo setAnimationListener <3 Apr 06 21:53:48 hm, just wondering, do you guys use 'master' is deployable like git-flow or github-flow, or something like this ? http://www.ustwo.co.uk/blog/branching-strategies-with-git/ Apr 06 21:55:12 I don't Apr 06 21:55:40 that flow only works well for webapps that are hosted reallt Apr 06 21:55:44 internally, master is not generally releasable at any given time Apr 06 21:55:54 if that's what you mean Apr 06 21:56:41 git-flow is pretty popular, http://nvie.com/posts/a-successful-git-branching-model/ … but once i read that it has a script to enforce all its policies, i lost interested Apr 06 21:56:50 for most products, master is new development Apr 06 21:56:56 this looks like roughly the model we use Apr 06 21:57:00 new development in master Apr 06 21:57:11 [or in a separate dev branch if it's incredibly destabilizing] Apr 06 21:57:22 ctate: but git-flow is using [develop] for new development Apr 06 21:57:28 ok Apr 06 21:57:29 and actual releases cut from release branches that are cut late in the game, and stability-focused Apr 06 21:57:53 gitflow is basically good for saas with a single version Apr 06 21:58:02 plus a lot of automerge magic going on Apr 06 21:58:22 pfn: so it sounds like you use something more like this (http://www.ustwo.co.uk/blog/branching-strategies-with-git/) diagram at the bottom ? Apr 06 21:59:52 yeah, pretty similar to that Apr 06 22:01:45 ok, still learning git wrt branching. i was reading http://progit.org/book/ch3-4.html and chacon also uses master as 'most stable' Apr 06 22:02:08 this is what we did with ClearCase, which was the biggest pita EVAR Apr 06 22:02:33 if anyone is using a tool they hate right now, be glad you aren't using CC Apr 06 22:02:39 clearcase itself is the biggest pita Apr 06 22:03:20 oh god clearcase Apr 06 22:05:23 stop it Apr 06 22:05:27 you're giving evancharlton flashbacks Apr 06 22:05:36 Can anyone tell me how to go about using shared libraries on my host when compiling host executables in AOSP? Apr 06 22:05:41 I want to use libavutil and libavcodec, which I've installed on my dev box (32bit Ubuntu 10.04), in a piece of code that gets called inside qemu. Apr 06 22:05:45 I've been digging through the documentation and the Makefiles but so far I haven't figured out where to do the inclusion. Apr 06 22:05:53 i had to use cc in an environment with no cc admins, it was a nightmare Apr 06 22:06:04 (they were all laid off) Apr 06 22:06:19 How did you do it? Apr 06 22:07:35 just_some_guy123: i kinda didn't; i did my best Apr 06 22:08:10 Oh... So has anyone succeeded in building anything in AOSP using an external library? Apr 06 22:09:19 sounds like instagram had a very short qa cycle Apr 06 22:09:29 3 or more updates in the last 2 days Apr 06 22:10:46 well, when you sell shitloads of apps that work over 1700 different phones, i'm sure you find lots of weird things Apr 06 22:12:19 So say I was building AOSP from scratch, and I needed some function in some library, where would I change my Makefiles so that the library could be seen by the linker at build time? Apr 06 22:14:48 g00s: 1700 android 2.2+ devices with market access? Apr 06 22:15:00 i dont know which countries they launched in eithe Apr 06 22:15:07 birbeck: about that, yeah Apr 06 22:19:21 you know what google tv is awesome at? Apr 06 22:19:28 playing my music on my home theatre system Apr 06 22:19:31 ethernet? Apr 06 22:19:35 you know what google tv isn't awesome at? Apr 06 22:19:37 everything else Apr 06 22:19:39 stfu SimonVT Apr 06 22:19:40 :P Apr 06 22:19:47 :D Apr 06 22:19:54 static ip worked Apr 06 22:19:57 whats google tv :P Apr 06 22:19:58 do you have the logitech one or the sony one? Apr 06 22:19:59 it has some incompatibility with our dhcp server Apr 06 22:20:06 logitech revue x3 Apr 06 22:20:11 one at home, two at work Apr 06 22:20:25 the @Override annotation does not work in android, or do i have to set something before ? Apr 06 22:20:28 hopefully the 3.2 update improves things Apr 06 22:20:31 surely it can play netflix decently? Apr 06 22:20:46 canadiancow: im working on a gtv media player Apr 06 22:20:49 i dont use netflix Apr 06 22:20:50 i'd love to get mirroring from all my android devices to google TV Apr 06 22:21:00 thinking i might make it a launcher Apr 06 22:21:12 evancharlton would like that Apr 06 22:21:15 he loves his google tv Apr 06 22:21:34 maybe i could get him to partner with me Apr 06 22:21:58 my vision is to do something like xbmc, its very early on though Apr 06 22:22:05 birbeck: dude, make a great GTV media player and I will give you ALL the dollars Apr 06 22:22:17 does gtv not play media? Apr 06 22:22:19 go figure Apr 06 22:22:49 canadiancow: the interface sucks and you have to choose different apps, has no google movies and netflix is broken, has been for months Apr 06 22:22:55 iirc a bunch of the providers blacklist GTV Apr 06 22:23:01 so this will just be a frontend to a upnp server Apr 06 22:23:01 hulu and so on Apr 06 22:23:15 i can rent movies from the play store on my phone, tablet, and the web Apr 06 22:23:17 but not google tv Apr 06 22:23:24 i.e. the one medium i'd actually want to watch them on Apr 06 22:23:27 so instead, i pirate my shit Apr 06 22:23:32 so the blacklisting isn't working out very well Apr 06 22:23:48 http://theoatmeal.com/comics/game_of_thrones Apr 06 22:23:51 keep making it impossible to take my money, and you'll keep not getting my money Apr 06 22:23:56 yea i saw that Apr 06 22:24:17 canadiancow|work: I mean basically "here's my NAS, play some shit". My WD TV media box does this just fine but I'd love a great GTV interface Apr 06 22:24:28 all the GTV ones on the market are _terrible_ Apr 06 22:24:32 the one time i rented from google videos, 2 days before it was playstore, it wouldnt play on any of the 7 devices i tested Apr 06 22:24:39 couldnt get a license Apr 06 22:24:50 birbeck: did you request a refund? Apr 06 22:24:54 my samsung tv can stream from my computer already, so im not sure how useful it would be for me Apr 06 22:24:57 got it refunded and rented it from amazon Apr 06 22:25:25 evancharlton: the links for refund are broken, i had to try to play from a rooted device then request a refund that way Apr 06 22:25:40 lol Apr 06 22:25:49 how does it know if you're rooted? Apr 06 22:25:58 like could you just turn off app's root access in CM9 and make it think you're not? Apr 06 22:26:19 even if it worked, i shouldnt have to plug in a device via hdmi to the back of my google tv to watch a video from generic video source Apr 06 22:26:50 canadiancow: i have cm9 on my nexus s, neither play movies nor wallet work Apr 06 22:27:00 birbeck: can you point me to a broken refund link? Apr 06 22:27:07 even after wiping data and reinstalling the apps with root disabled Apr 06 22:27:13 hmm Apr 06 22:27:18 i used wallet on cm9 just fine Apr 06 22:27:21 until they blocked canada Apr 06 22:27:21 evancharlton: sure, let me find the purchase email Apr 06 22:27:36 canadiancow: wallet works, but still has the unsupported device message Apr 06 22:27:56 how can i tell Eclipse/Android to use JDK 1.6 so that i can use the @Override annotation ? Apr 06 22:28:00 thanks in advance Apr 06 22:28:10 and until the update a few days ago, it wouldnt even show that it is sending a transaction, show transaction history, or receipts Apr 06 22:28:40 since you have to tap several times to get merchants to read the nfc and there is no feedback on the device it is near useless Apr 06 22:28:55 but i used it today fine, even with the unsupported device message Apr 06 22:29:51 paissad: right click on project -> properties -> java compiler -> set compliance level Apr 06 22:30:04 evancharlton: the link is working now https://support.google.com/googleplay/bin/request.py?hl=en&policy=movies&contact_type=contact_policy Apr 06 22:30:45 another meeting, bbiab Apr 06 22:33:13 freecandy: thanks, it's okay now. Apr 06 22:40:45 canadiancow|work, just checking for /system/*bin/su is enough to see if you're rooted Apr 06 22:52:03 hi Apr 06 22:52:29 i'm root, how can I access to the textView of an application? Apr 06 22:52:37 i coded a heap dumper Apr 06 22:52:43 but its not in heap O_o Apr 06 22:59:31 o_O Apr 06 22:59:35 go to #android-root please Apr 06 22:59:40 should i use a factory that return an instance of java.sql.Connection or a Singleton ? (for the Connection that goes to the SQLite DB i plan to use) Apr 06 22:59:51 er Apr 06 22:59:55 factories should return factories Apr 06 22:59:56 why are you using java.sql.Connection Apr 06 22:59:57 which return builders Apr 06 23:00:03 which are configured via XML Apr 06 23:00:13 paissad: http://developer.android.com/reference/android/database/sqlite/package-summary.html Apr 06 23:00:21 unless you're intentionally hooking this up to the java.sql stuff Apr 06 23:01:53 lov: hmm, not trying to hook it up to java.sql stuff, .. i think, i should change my habit (way of thinking too) ... i'm from the Java world actually Apr 06 23:02:03 we can tell :P Apr 06 23:05:49 paissad: http://developer.android.com/guide/topics/data/data-storage.html#db Apr 06 23:06:07 You might want to just go over the android fundamentals stuff; you might find yourself reimplementing a lot of wheels Apr 06 23:06:32 okay Apr 06 23:13:11 why my protected void onSaveInstanceState (Bundle outState){ is not called ? Apr 06 23:14:43 I don't know, why? Apr 06 23:15:44 lov Apr 06 23:15:58 that's not why :( Apr 06 23:16:16 is it nomal that it is not called when I exit an activity ? Apr 06 23:16:37 I explain my pron Apr 06 23:17:19 the activity start ... it bind to a service (creating it) ... it starts the service (the service autostart itself) Apr 06 23:17:30 then the activity exits Apr 06 23:17:45 but the service stay there doing it's job Apr 06 23:18:02 cause it started itself Apr 06 23:18:11 .... if you call startService then the service will continue even after you unbind Apr 06 23:18:14 READ Apr 06 23:18:15 DOCS Apr 06 23:18:17 THE Apr 06 23:18:38 lov you speak to me like one year ago Apr 06 23:19:04 the behaviour is ok Apr 06 23:19:11 the user start the acitvity Apr 06 23:19:49 It's very normal for the user to do that Apr 06 23:19:57 bind the service ... stop the service (the service stops itself ) activity exits all good ... all done Apr 06 23:20:24 SERIALIZABLE Apr 06 23:20:25 and that part works like a charm Apr 06 23:20:32 i gave you the necessary code :( Apr 06 23:20:56 canadiancow|work, I have to fix the app lifetime ... serializable will be the next step Apr 06 23:21:11 so Apr 06 23:21:21 what I am seraching to do is: Apr 06 23:21:41 the service is acollecting (it measn it started itsefl) Apr 06 23:21:51 the usex exits the activity Apr 06 23:21:56 * SimonVT runs Apr 06 23:22:00 the user start the activity Apr 06 23:22:06 * g00s flies ! Apr 06 23:22:10 serializzzzzzzeeeeeeeeeeeeeeeeeeeeee Apr 06 23:22:12 * lov dances Apr 06 23:22:15 untz untz untz untz Apr 06 23:22:19 SERIALIZE Apr 06 23:22:20 THAT Apr 06 23:22:21 the user find the state of the Activity as before Apr 06 23:22:23 CLASSSSSSSSSSS Apr 06 23:22:24 yeah! Apr 06 23:22:26 rock Apr 06 23:22:56 I want to serialize but onSaveInstanceState is not called Apr 06 23:23:21 I know someone is getting angry Apr 06 23:23:29 is the activity being finished? Apr 06 23:23:30 So you don't need to fix the app lifetime, you need to understand if. If the Activity is finished, you wont get a callback to onSaveInstanceState.. That's not the point of that method Apr 06 23:23:32 is the user pressing back? Apr 06 23:23:36 lov yes Apr 06 23:23:39 if so, why would onSaveInstanceState be called??? Apr 06 23:23:42 lov yes Apr 06 23:23:46 that activity isn't getting recreated; Apr 06 23:23:52 a new one is going to be made because this one is being finished! Apr 06 23:23:53 ah Apr 06 23:23:59 that's a good answer Apr 06 23:24:16 If the user backs out of the activity, you need to lose all state. That's the expected behavior Apr 06 23:24:35 If the user presses home, you need to account of it being reclaimed by the system, hence onSaveInstanceState Apr 06 23:24:48 As well as all the configuration changes Apr 06 23:24:52 SimonVT, if I press home my app goes on PAuse Apr 06 23:25:37 SimonVT, you right Apr 06 23:25:45 is there a way I can change the width of a fragment when adding it to an activity ? Apr 06 23:25:47 onSaveInstanceIsSaved Apr 06 23:26:39 If someone buys my app, how long does it take to update on the play developer console? Apr 06 23:26:43 lov I will put you in the credis Apr 06 23:27:22 problem being, I have two fragments, which on their own should take up the entire width of the screen, but when added together, they should share the screen and use 50% each Apr 06 23:28:37 ok I am drunk Apr 06 23:28:41 I can't go on Apr 06 23:28:55 I am the Buckowsky of java Apr 06 23:32:29 Zacharias3690: time.. the console doesn't update very often Apr 06 23:33:02 rvsjoen: You should probably put a container for each fragment in your layout Apr 06 23:36:08 I have a strong feeling by TabListener will turn into a steaming pile of shit if I do that :P Apr 06 23:36:12 but i'll give it a shot Apr 06 23:42:07 evancharlton: still around? Apr 06 23:43:29 yeah for a few Apr 06 23:43:30 what's up? Apr 06 23:43:36 I'll be on later when I get home, most likely Apr 06 23:43:59 any feature requests for a gtv media player? Apr 06 23:44:07 ooo Apr 06 23:44:14 shoot me an email and I'll give you a list Apr 06 23:44:17 * evancharlton @gmail Apr 06 23:44:30 <— @gmail.com Apr 06 23:44:35 alright Apr 06 23:44:36 but sure Apr 06 23:47:20 is it possible to find all classes who have implemented a specified interface or abstract class from the CLASSPATH (if i may express myself this way ^^) Apr 06 23:48:01 maaaaaaaaaaaaaaaybe but even if it is possible you have left the path of wisdom Apr 06 23:48:08 what the heck are you actually trying to accomplish? :) Apr 06 23:48:41 its hard to reflect on the path of wisdom; all roads lead to nowhere Apr 06 23:48:43 [you can't guarantee that anything you find is actually loadable, btw, because people can and do deliberately take advantage of java's lazy-load features to manage compatibility etc] Apr 06 23:51:29 I hate minified js Apr 06 23:51:35 makes debugging so terrible Apr 06 23:54:05 paissad, don't think so on android... in java, you can reflectively do classpath scanning, but it's painful either way Apr 06 23:54:39 pfn: yes, i guess, .. even in Java, its already painful Apr 06 23:54:44 thanks Apr 06 23:57:15 If you flash a bad boot image, does your phone boot into recovery? Apr 06 23:57:37 #android-root Apr 06 23:58:01 okay thanks Apr 07 00:19:50 I want to make an app using the default theme for version (Dark for 2.x, Holo for 3 and 4), there is a method for that? Apr 07 00:19:52 everyone gone home for friday? :-/ Apr 07 00:20:09 waltercool, sure, define your own themes.xml in values Apr 07 00:20:18 and make a values-v11/themes.xml Apr 07 00:20:49 my project's res direectory is getting nasty :( Apr 07 00:20:51 so your app uses Theme.MyCopy; and Theme.MyCopy extends Theme.Dark in values/themes.xml and Themes.Holo.Dark in values-v11/themes.xml Apr 07 00:20:58 so unnastify it Apr 07 00:21:07 pfn: ahhh, a values-v11 will be just for api11 or >11? Apr 07 00:21:12 lol Apr 07 00:21:14 waltercool, 11+ Apr 07 00:21:19 blah, id hate to ask this here, but android-root is dead :| . I'm trying to sbf a friend's droid 2, and its showing up as Flash QSC6085 in RSD lite.. is this normal? Apr 07 00:21:22 pfn: Nice! Thank you! Apr 07 00:21:39 http://android-developers.blogspot.com/2012/01/holo-everywhere.html Apr 07 00:21:41 I do that for day/night mode in my irc client Apr 07 00:21:55 That's a great resource for "Using Holo while supporting Android 2.x" Apr 07 00:22:03 on pre 3.0, I have Theme.Dark/.Light, on 3.0+ it's Theme.Holo.Dark/.Light Apr 07 00:22:09 ghchinoy: I read that, but I don't undersand this, thanks Apr 07 00:22:16 people should say FU to holo and actionbar on <3.0 Apr 07 00:22:18 drawable drawable-hdpi drawable-hdpi-v11 drawable-hdpi-v9 drawable-large-hdpi drawable-large-mdpi drawable-mdpi drawable-mdpi-v11 drawable-mdpi-v9 drawable-v12 drawable-xhdpi drawable-xhdpi-v11 drawable-xlarge Apr 07 00:22:32 Ah, well, check the section that starts with "Using Holo while supporting Android 2.x" - that's exactly what pfn's saying. Apr 07 00:22:32 Same, canadiancow|work .. Trying to clean it up a bit right now :p So much shit Apr 07 00:22:37 v9 v11 are probably for status bar icons Apr 07 00:22:52 canadiancow|work, why so many variations, yuck Apr 07 00:22:55 v12 is for the new widget support Apr 07 00:23:06 i dont like anything with "large" in it Apr 07 00:23:17 i think large-hdpi was to "support the note" Apr 07 00:23:24 and large-mdpi was to "support the kindle fire" Apr 07 00:23:45 Heh, you should blog that somewhere Apr 07 00:24:08 blog what Apr 07 00:24:22 What you think those versions are for, I like that. Apr 07 00:24:27 err Apr 07 00:24:30 its not "what i think" Apr 07 00:24:34 those are from my app Apr 07 00:24:37 i know exactly what they're for Apr 07 00:24:51 but you just said "i think..." Apr 07 00:25:00 well ok those TWO i didnt specifically work on Apr 07 00:25:03 but im pretty sure Apr 07 00:25:05 the rest, i know Apr 07 00:25:08 Ok Apr 07 00:25:17 like just read http://developer.android.com/guide/practices/ui_guidelines/icon_design_status_bar.html Apr 07 00:25:22 that will tell you what half of them are for :P Apr 07 00:25:55 It doesn't say the devices, though. Apr 07 00:26:44 I get when trying to laucnh on phone: No suitable AP found. was that that mean? googling doesnt give me anything. Apr 07 00:26:52 the devices i dont agree with Apr 07 00:26:55 and i wouldnt use it like that Apr 07 00:26:56 its bad Apr 07 00:27:39 hey guys.. hate to ask this here, but android-root is dead... i'm trying to rsd lite a droid 2 via .sbf, and its showing up as a "Flash QSC6085"... is this normal? Apr 07 00:27:40 mrBG, be much more specific Apr 07 00:27:53 Zerkz, just keep waiting Apr 07 00:27:59 because no one here cares Apr 07 00:28:08 and if we did, we'd be in #android-root Apr 07 00:28:15 K. Apr 07 00:28:16 that's unfortunately true, Zerkz. Apr 07 00:32:03 is there any way to style action modes? Apr 07 00:32:24 probably, yeah Apr 07 00:32:40 I'm gonna guess it's actionModeStyle, or something similar Apr 07 00:32:43 pfn: And how do you fix the "No resource found" with values-v11 with Theme.Holo Apr 07 00:32:59 waltercool, be more specific Apr 07 00:34:04 pfn: With values-v11/themes.xml , using @android:style/Theme.Holo I get a No resource found error Apr 07 00:34:19 You need to build against API11+ Apr 07 00:34:30 waltercool, your targetsdk is too low Apr 07 00:34:59 I'm sorry, but what's the main difference between targetsdk and minsdk? Apr 07 00:35:10 targetsdk is what you build against Apr 07 00:35:16 minsdk it's your sdk and targetsdk it's your max? Apr 07 00:35:18 minsdk is the minimum version you want to be able to run Apr 07 00:35:23 no Apr 07 00:35:25 max sdk is max Apr 07 00:35:45 No, build target is what you build against :P targetsdk tells android what kind of compatibility to apply Apr 07 00:35:47 dont' use max Apr 07 00:36:07 depends on your app Apr 07 00:36:13 no. just don't. Apr 07 00:36:14 I need to go re-build my apps with a maxsdkversion Apr 07 00:36:25 since those fuckers at google keep making them not work ;-) Apr 07 00:36:30 targetsdkI was just using minsdk, but targeting to all devices between my min and 4.0 Apr 07 00:36:35 minSdkVersion is the lowest API level that you promise your app will run on Apr 07 00:36:55 targetSdkVersion is the version of the API that you build against, defining the latest version of the API that you want to be able to call from within your app Apr 07 00:37:34 * pfn needs to rebuild bluetooth keyguard with maxsdk=7 and honeybar with maxsdk=13 Apr 07 00:37:44 but oh well, I'll let people give me negative reviews cuz they don't work... Apr 07 00:37:55 too lazy to bother rebuilding with a max Apr 07 00:38:06 So, if I want to use Holo and support 2.x, I should I use a higher api? Apr 07 00:38:11 yes Apr 07 00:38:16 but targeting to 7? Apr 07 00:38:18 no Apr 07 00:38:21 target11 or higher Apr 07 00:38:28 oh, min is 7 Apr 07 00:38:39 you target the version that has the features you want to use Apr 07 00:38:47 and how android handles the different functions? Apr 07 00:38:48 you set min to be the minimum version you want capable of running your app Apr 07 00:39:05 on different devices Apr 07 00:39:06 if you want old versions to run your app, do not reference apis and resources that are not available in the older version Apr 07 00:39:14 e.g. values-v11 for the holo theme Apr 07 00:39:45 there is a method to avoid unsupported methods on minsdk? Apr 07 00:39:51 no Apr 07 00:40:04 I heard adt17 has options to warn, dunno Apr 07 00:40:47 so do library projects under adt 17 finally work sanely? i heard a lot of gripes about that Apr 07 00:40:56 (for previous adt versions) Apr 07 00:41:04 oh, so I will develop my app with api 7 and "change it" to 14 finishing Apr 07 00:42:35 that's pretty painful to do Apr 07 00:43:22 or should I use adb for that (I just have ICS as physical device) Apr 07 00:45:29 lint will warn you Apr 07 00:47:00 SimonVT: Woah, sure?? That would help a LOT development (I haven't tried before) Apr 07 00:47:12 I wish lint operated against bytecode and not source, though Apr 07 00:47:29 Yes, waltercool Apr 07 00:47:58 Pretty sure it does when it comes to target api, pfn Apr 07 00:47:59 oh, it does Apr 07 00:48:03 excellent Apr 07 00:48:07 I guess I should start running lint Apr 07 00:48:18 It depends on the check iirc Apr 07 00:48:29 But target api should be bytecode Apr 07 00:48:47 wow, that is pretty schnazzy Apr 07 00:49:03 is there an annotation for hiding lint warnings? Apr 07 00:49:10 yeah Apr 07 00:49:17 but i forgot :) Apr 07 00:49:33 Something like @SuppressLint ? Apr 07 00:49:53 And @TargetApi(x) for.. yeah Apr 07 00:50:11 ugh, it doesn't scan bytecode for resource ids, oh well Apr 07 00:51:42 I guess --disable UnusedResources will have to do Apr 07 00:52:25 You can create a lint.xml in your project, just put stuff there Apr 07 00:52:45 but yeah, an annotation to suppress lint warnings would be nice Apr 07 00:52:46 So, that's why with last adt I was forced to specify a minsdk and targetSDK Apr 07 00:53:22 Apr 07 00:54:51 pfn, when I said "something like @suppresslint?" I meant there's an annotation that's called something like @SuppressLint to ignore checks Apr 07 00:55:03 SimonVT, it's not in the sdk if so... Apr 07 00:55:14 git grep @interface doesn't find any annotations in frames/base Apr 07 00:55:24 You need to include sdk/tools/annotations.jar Apr 07 00:55:42 oh Apr 07 00:56:00 Yeah, adt does this for you, I had to do it manually in intellij Apr 07 00:57:28 http://i.imgur.com/1xfEx.jpg Apr 07 00:57:30 :D Apr 07 00:57:52 had bacon, so i thought i should post XD Apr 07 00:59:50 Question about R - if I import other code into my project, should I rename the packages so they'll find my /res folder or include import mypackage.R at the top of all the java files? Apr 07 01:00:12 Neither Apr 07 01:00:31 If you're talking of android library projects Apr 07 01:00:34 import mypackage.R where necessary Apr 07 01:04:16 It's not a library project - I'm basically merging two projects. Apr 07 01:05:06 Well yeah, then you need to update the imports to match the package in your manifest Apr 07 01:06:50 It seems that that keeps a weird division between the old and new packages; some have an import statement at the top and some find R naturally. What is the point? Apr 07 01:07:22 You don't need to import classes that are in the same package Apr 07 01:09:27 Oh, so only the main package doesn't need the import statement? Apr 07 01:10:47 right Apr 07 01:12:15 And is there a way to tell it to pull in mypackage.R every time it needs to, or do I have to edit all these files manually? Apr 07 01:15:36 I hate javascript so much sometimes.... Apr 07 01:15:46 edit files manually Apr 07 01:17:29 lulz.. so stop messing with it :p Apr 07 01:20:26 OK, thank you. Apr 07 01:24:03 Sooo Apr 07 01:24:29 Anyone android wizard willing to help me out for a while. I have what I assume isn't a simple question. Apr 07 01:25:05 *answer, more so. Due to the fact I have no knowledge of how to go about doing it. Apr 07 01:30:02 T-Dub|DlolPics, google smart questions esr Apr 07 01:30:03 and read it Apr 07 01:31:01 Hi -- I just changed ids in my app's menu.xml and now eclipse won't build any more, because it won't regenerate R.java. Apr 07 01:31:26 quickest fix is probably reinstalling.. Apr 07 01:31:31 Any tips on how to get it to generate a new R ? I've been going through http://stackoverflow.com/questions/885009/r-cannot-be-resolved-android-error but nothing there seems to help. Apr 07 01:31:48 or changing the xml back Apr 07 01:32:01 Reinstalling what? Apr 07 01:32:16 eclipse Apr 07 01:32:35 Ouch, really? Just to get it to rebuild an app? Apr 07 01:32:42 Greetings all. Is there a way to download a VM for the Samsung Galaxy Tab so I can test my app against it? Apr 07 01:32:55 try changing the XML back.. Apr 07 01:33:03 why did you change it in the first place? Apr 07 01:33:14 I need some new ids because I want to add a couple of menu items. Apr 07 01:34:13 And then, when it wouldn't build because of R, after reading that stackoverflow thread I also tried changing every id that had uppercase to all lowercase, but it didn't help. Apr 07 01:36:46 Restart eclipse, rebuild project Apr 07 01:36:55 Check console to see where in your xml you fucked up Apr 07 01:37:34 I tried that (restart eclipse, make a one-char change to the .java file and click save), no errors in the console. Apr 07 01:37:38 But still no R. Apr 07 01:37:52 And tons of red all through my .java file everywhere it refers to an id. Apr 07 01:38:23 Though it's a bit hard to watch for errors in the console because when I click back in the .java pane, the console disappears Apr 07 01:38:35 so I have to call it up again after saving (and maybe it's forgotten any errors by then) Apr 07 01:38:50 fix your xml Apr 07 01:39:14 probably a syntax error Apr 07 01:39:30 pfn: I'd love to, but how do I find out what eclipse doesn't like about it if there are no errors? Apr 07 01:40:29 How do I even know which xml file to fix? Apr 07 01:41:44 learn to use other tools like xml lint Apr 07 01:44:46 So there's no way to fix this within eclipse? Apr 07 01:45:42 can someone help me flash clockworkmod recovery? Apr 07 01:45:57 akk: i've had eclipse get wonky before, and i had to reinstall eclipse in another directory before. silly, sometimes, but iirc, it worked ;0 Apr 07 01:46:12 akk, buy opening every xml files in verifying manually Apr 07 01:47:34 sound it out if you don't understand speech recognition for the lose Apr 07 01:49:02 linuxgecko: When you reinstall eclipse, do you have to re-hook up all the android stuff? I remember that taking me forever the first time. Apr 07 02:01:02 HEY EVERYBODY!!! HOW DO YOU INCLUDE SYSTEM LIBRARIES WHEN COMPILING EXTERNAL APPS IN AOSP? Apr 07 02:01:12 REPLY IN ALL CAPS FOR GREAT JUSTICE!!! Apr 07 02:02:49 MOO! Apr 07 02:11:17 So I think I figured out how to set a ringtone for a specific contact assuming I have the contact id, but I don't know how to do that. Is there a easy class or something that will automatically open your contacts and return the id of whatever contact the user chooses? Apr 07 02:18:59 hello Apr 07 02:19:09 has anyone here heard or used openstdy.com? Apr 07 02:19:18 *openstudy.com Apr 07 02:19:28 you could be the first! Apr 07 02:20:03 HacDan: i've already used it, and am thinking of writing an android app for free to help learning and others to learn Apr 07 02:20:40 HacDan: may be i should take permission of openstudy.com developers or owners but even without their own client API or so, I want to see if I can Apr 07 02:20:41 Mavericks: thats a great idea Apr 07 02:20:50 just deploy a android app based on whatever's available Apr 07 02:21:16 i just want peopel to learn and there are many i know who can't wait to learn on the go, with an android app.as you can imagine Apr 07 02:21:17 build your own api =) Apr 07 02:21:28 QubeZ: thanks. it really helps :) Apr 07 02:21:51 HacDan: right but is it possible ? i don't want to end up in some sort of trouble for doing it. Apr 07 02:22:10 Mavericks: thats you? Apr 07 02:22:34 i mean i don't mind ending up in trouble for that but it will suck if all of a sudden the people using android app for openstudy.com realize it's not available anymore Apr 07 02:22:46 that's stopping any effort to help them learn or Apr 07 02:23:11 QubeZ: I didn't understand your last mssage Apr 07 02:23:14 *message Apr 07 02:23:26 Mavericks: is that your effort (openstudy)? Apr 07 02:23:50 QubeZ: oh, no no, lol I wish. it's a dedidcated team. I think they're Apr 07 02:24:30 QubeZ: i'm just an active member of it and keep helping in certain study groups wherever I can and tell it some if I feel it helps them Apr 07 02:25:18 QubeZ: they're at http://openstudy.com/about-us Apr 07 02:26:31 QubeZ: although I suspect they might be working on an android version already in which case Apr 07 02:33:56 SWEET Apr 07 02:33:58 Got it :D Apr 07 02:34:11 Most advanced thing I've done so far. So bad I basically used other people's methods :( Apr 07 02:34:16 *To Apr 07 02:49:29 QubeZ: like someone here gave an advice on what to keep in mind for writing one : http://openstudyfeedback.uservoice.com/forums/95895-customer-feedback/suggestions/1966207-bring-on-mobile-site-?tracking_code=1461a060b6e30dcbef9313867d182475 Apr 07 02:54:40 I have a method that changes the ringtone of a specific contact to whatever sound you choose, but how do you change it back to default Apr 07 02:54:54 Is there a universal string that respresents "default ringtone" Apr 07 02:55:10 T-Dub|DlolPics: look at the api docs **** ENDING LOGGING AT Sat Apr 07 02:59:58 2012