**** BEGIN LOGGING AT Mon Nov 12 02:59:58 2012 Nov 12 03:47:31 Wow lorem ipsum filler text was originally used 1500 Nov 12 03:47:34 *in the 1500s Nov 12 03:53:51 yep it's almost as old as printing itself Nov 12 03:54:01 How long can a broadcasting reciever run before ANR? Nov 12 03:58:31 lasserix, 5 seconds i think Nov 12 03:58:37 but don't block that thread Nov 12 03:58:47 use a thread or async task Nov 12 04:00:11 even if it's 1 second running time? Nov 12 04:00:22 seriously you shouldnt have to ask Nov 12 04:00:33 I do I haven't worked with these before Nov 12 04:00:42 its the same thing everywhere Nov 12 04:01:02 if theres a chance something is gonna hang up or run ever so slightly longer than a second or two Nov 12 04:01:08 just asynctask is Nov 12 04:01:12 that's what I figured but just checking Nov 12 04:01:33 Can you use an asynctask to handle app widget updates? Nov 12 04:01:42 I see people using services online Nov 12 04:06:01 how to change/update the content of a foreground-service's custom Notification (RemoteViews layout) ? Nov 12 04:06:18 usually i'd just play with the Notification and notify() with the right ID, but in this case it's with a RemoteViews & layout xml Nov 12 04:08:49 Can anyone recommend resources about Java instrumentation? Nov 12 04:08:58 err, android instrumentation Nov 12 04:25:08 canadiancow: you around? Nov 12 04:25:14 yessss Nov 12 04:33:36 how can i manipulate my RemoteViews layout from within my (foreground-started) Service Nov 12 04:57:32 I currently had superuser *chainsDD version* installed (which was built into the rom-cyanogenmod 7.2 stable for evo shift) and I want to switch superuser apps to superuser 1.20 by Chainfire and I am trying to uninstall the chainsDD version, but it does NOT show up in titanium backup, so I then proceeded to open up the app list and LONG press on the icon and dragged to the trashcan, which Nov 12 04:57:33 offered to uninstall the update for the program, not the program itself, so I uninstalled update, went to googleplay to reinstall and uninstall, but it still shows up..any ideas as to why? Nov 12 05:03:31 How do I use an intentservice to update specific app widgets since AppWidgetManager.update(comp name, remoteviews) will update all instances with this remoteview? Nov 12 05:04:48 ah good ole widgets.. haven't touched those since 2.1 Nov 12 05:06:05 those are the worst Nov 12 05:06:17 anyways anyone know the answer to this? Nov 12 05:06:38 AppWidgetManager has an updateAppWidget(int appWidgetId, RemoteViews remoteViews); to update by id rather than component Nov 12 05:08:15 yeah I was using it but that wasn't the problem ughh figured it out thanks tho Nov 12 05:09:52 anyone know how to check running services on ics? Nov 12 05:11:27 Or another question is everytime I am binding a remoteviews instance to an appwidget id via AppWidgetMananger.update(id, views), this is replacing the previously bound remote views? Nov 12 05:13:56 yes, and you want each update to be complete as it's cached and the launcher will only get the most recent update if it's just starting or rotated or whatever Nov 12 05:14:21 (there is a partiallyUpdateAppWidgetId that does not save state, i think Honeycomb and higher only) Nov 12 05:17:31 http://pastebin.com/XfrTMJC7 anyone know what this means ? when looking at the error dump the string seems to be incomplete because it is very long ... but i do not know if this is a result of the debugger ot because java strings has a max length or something ?? Nov 12 05:28:35 kevinb thanks Nov 12 05:31:26 are there any BT Apps available to test throughput in SPP Profile Nov 12 05:32:04 whats the standard in android to send people to an email, would it be sending them to a mailto: ? Nov 12 05:34:08 QcMat: the standard way is to use the browser Nov 12 05:34:16 or the default email client Nov 12 05:34:32 by use the browser, you mean sending them to a mailto Nov 12 05:34:33 ? Nov 12 05:34:43 in the same way i'd send them to a website Nov 12 05:36:00 QcMat: when you use the browser, i mean the android web browser Nov 12 05:43:45 if I have res/values and res/values-v12 each with dimensions, and a set of textsize dimensions, do I have duplicate them in v-12 dimens.xml? Nov 12 06:30:58 My activity binds to the android MarketBillingService, passing a ServiceConnection object, to initiate a billing request to Google Play. The response is received by a BroadcastReceiver object. This receiver must now reply by sending another message to the MarketBillingService. I am confused about how I can do this. If the BroadcastReceiver is dynamically registered from the activity, Nov 12 06:30:58 then I could pass a reference to the activity and it would work...but then the receiver would stop receiving when activity changes. Therefore, I have statistically registered the receiver in my manifest...and now, I am not sure how to call non-static methods on the activity from it... Nov 12 06:35:11 mahamoti interface? Nov 12 06:35:33 lasserix, eh? Nov 12 06:36:25 nm Nov 12 06:36:54 mahamoti check out MaximumGoat answer http://stackoverflow.com/questions/2463175/how-to-have-android-service-communicate-with-activity Nov 12 06:37:41 I already have two-way communication between background services, I know how to do that Nov 12 06:38:50 in this case, the service is external to my app..and I communicate TO it by binding to the service from application, and I receive communication FROM it by a BroadcastReceiver. Nov 12 07:07:12 How can I get a reference to a textview in a layout defined in xml in a service? Nov 12 07:08:01 mmaybe getContext.findViewById Nov 12 07:08:53 or ((Activity)getContext()).findViewbyId()... hmm seems like a service shouldn't be coupled to a view though Nov 12 07:08:55 findViewById is not a method of app/base context get methods Nov 12 07:09:14 yes yes I know, I just need to get a paint associated with the textview so I can do some measurements Nov 12 07:10:28 i would do a callback interface n use observer pattern, with service as subject and activity as observer Nov 12 07:11:09 uhh this is for updating an app widget Nov 12 07:11:49 since textviews in app widgets don't support scrolling nor do app widgets host custom views and ellipsize is broken on >3.1 or something I have to write something to ellipsize my textviews appropiatly Nov 12 07:12:35 ah, hmmm Nov 12 07:12:57 how do you normally update an app widget's vies? remote views something or another, yeah? Nov 12 07:13:01 yeah Nov 12 07:13:13 and why won't that suffice Nov 12 07:14:12 I'm not sure you can get a paint object from a remote view? Nov 12 07:15:37 hey guys Nov 12 07:15:46 hey sunny_slls Nov 12 07:15:47 is anyone using andengine for game development Nov 12 07:15:57 hey speakingcode-wor Nov 12 07:16:38 i don't, sorry. don't do any game development Nov 12 07:16:50 i have checked out andengine examples but its library is broken. I tried adding the andengine src to it but it doesn't work Nov 12 07:16:54 please help Nov 12 07:22:20 hey guys Nov 12 07:22:36 hi Nov 12 07:23:49 hey timemage : sorry to bother you but are you timroes ? Nov 12 07:24:12 So i'm having a problem, 11-11 23:23:10.741: D/tag(9576): java.io.FileNotFoundException: /mnt/sdcard/Stacks It/test: open failed: ENOENT (No such file or directory) Nov 12 07:24:48 stackIt.getFileIO().writeFile("Stacks It/test"); Nov 12 07:25:03 if i dont add the "/" it saves fine, but I need it to save to a directory Nov 12 07:25:07 and idea how I could do that Nov 12 07:25:44 KaiKai: maybe you should try creating the directory first Nov 12 07:32:50 p_l: thanks, fixed with mkdirs Nov 12 07:47:48 anyone using andengine ? Nov 12 07:47:52 i need some help Nov 12 07:48:14 sunny_slls: libgdx > andengine :) Nov 12 07:48:21 they have an IRC as well Nov 12 07:48:48 KaiKai: ya but they are not as active in irc Nov 12 07:49:12 KaiKai: are you telling me to use libgdx ? Nov 12 07:50:00 sunny_slls: i find the people on libgdx irc to help with many of the problems Nov 12 07:50:10 sunny_slls: im currently not using libgdx, but I have used it before Nov 12 07:50:31 KaiKai: ok Nov 12 07:51:01 how to display button's ID? instead of 0x0001212 int from R.java? Nov 12 07:51:48 woozly: i dont understand what youre trying to do could you be more specific? Nov 12 07:52:17 woozly: but I believe you can create non R.java buttons through code Nov 12 07:53:42 anyone know the math of how much memory it takes to load a jpg with specific resolutions, assuming RGB888? Nov 12 07:54:49 decompressed size is width * height * 4 Nov 12 07:55:10 and that's in bytes, right? Nov 12 07:55:13 yeah Nov 12 07:55:44 loading will also create some garbage, IIRC it's like 16KB for inTempSize if you don't specify one, and another 16KB for the buffered reader Nov 12 07:55:58 but those can be freed later, just more work for the GC Nov 12 07:56:54 someone loaded a huge splash screen causing xhdpi to crash. wanna set some standards in the company so our backgrounds doesn't exceed, say 16mb of memory, ever. Nov 12 07:57:06 i'll do some math, thanks kevinb. Nov 12 07:57:14 no problem Nov 12 07:57:41 hey guys, I know this is java related but I hope you can help. What is the reason to use abstract classes other tahn for organizing problems Nov 12 07:57:42 ? Nov 12 07:58:09 KaiKai: think of it as a cookie cutter for making other classes Nov 12 07:58:24 read about them in the official java tutorial on oracle's website Nov 12 08:00:30 look around the android SDK and try to find some methods that you use that take an abstract type as their parameter (either defined by an abstract class or interface) Nov 12 08:01:10 by doing this, you can write methods that can handle one 'basic' type but then pass many different concrete types and it still works :) Nov 12 08:02:37 tdignan, okay thanks, so its basically there to make things more flexible? Nov 12 08:03:08 in R.java I have record: button1=0x7f060004; Nov 12 08:03:16 Just wondering how long does a Clockwork ROM Manager > Backup Current ROM operation usually take? Nov 12 08:03:31 from onClick event listener, how I can get 'button1' ? instead of 0x7f060004 Nov 12 08:03:39 I need a variable name of button which was clicked Nov 12 08:03:42 Matto4-NZ: minutes usually Nov 12 08:03:59 KaiKai: understanding this will let you write more extensible typesafe programs. Nov 12 08:04:13 woozly: use R.id.button1 Nov 12 08:04:22 been 5 mins and mines still at backing up boot.img Nov 12 08:04:26 woozly: new Button(R.id.button1); Nov 12 08:04:27 f2prateek: fp Nov 12 08:04:39 anything to check if it never gets any further? Nov 12 08:04:45 I mean, I need to get string which will contain button's ID Nov 12 08:04:51 button doesn't take id as the first param to its constructor Nov 12 08:05:01 then I can compare it with one which I has Nov 12 08:05:09 :/ Nov 12 08:05:35 Okay, how to get intent which call Activity? Nov 12 08:05:50 Intent extra? Nov 12 08:05:51 woozly: there's a getIdentifirer method if thats what you mean Nov 12 08:06:08 woozly: just getIntetn(*) in the activity Nov 12 08:06:17 *getIntent() Nov 12 08:06:42 Matto4-NZ: might be slower for older phone, mine takes 5 mins for gnex Nov 12 08:07:18 it's pretty new, ZTE v970 Nov 12 08:07:36 Matto4-NZ: #cyanogenmod Nov 12 08:11:43 Okay! Thanks for your help guys! Nov 12 08:14:19 hiii Nov 12 08:14:24 i need help Nov 12 08:14:31 for android development Nov 12 08:14:38 someone help Nov 12 08:16:55 * lasserix throws a life safer from the boat Nov 12 08:17:08 Guest you can just ask your question Nov 12 08:17:45 i have the source code Nov 12 08:17:54 but i am unable to run it Nov 12 08:18:04 i am using ecliose Nov 12 08:18:10 *eclipse Nov 12 08:18:26 a dialogue box comes up Nov 12 08:18:46 which source code are you refering too? Nov 12 08:19:03 and says the app can not be started Nov 12 08:19:06 :( Nov 12 08:19:21 my source code is of an app that i have created Nov 12 08:19:32 have you got any apps to work? Nov 12 08:19:34 can you gie me your id Nov 12 08:19:39 hmmm Nov 12 08:19:44 id? Nov 12 08:19:49 probably not. Nov 12 08:19:59 k:( Nov 12 08:20:10 i dont know what you mean by id Nov 12 08:20:17 i have sample project they are working perfectly Nov 12 08:20:27 mail id Nov 12 08:20:36 no sorry I have enough as it is Nov 12 08:20:38 so that i can get help Nov 12 08:20:54 do you know how to use logcat? Nov 12 08:21:00 yaa Nov 12 08:21:08 i know Nov 12 08:21:11 what does logcat say about how it crashes? Nov 12 08:21:11 it is showing Nov 12 08:21:19 some execption Nov 12 08:21:24 usually it'll give you a line number that is causing the problem Nov 12 08:21:30 should i paste it here ? Nov 12 08:21:39 not here use pastebin or something Nov 12 08:21:43 just the parts in red Nov 12 08:22:03 hmmm Nov 12 08:22:19 11-12 13:30:44.893: D/AndroidRuntime(304): Shutting down VM Nov 12 08:22:20 11-12 13:30:44.893: W/dalvikvm(304): threadid=1: thread exiting with uncaught exception (group=0x4001d800) Nov 12 08:22:20 11-12 13:30:44.913: E/AndroidRuntime(304): FATAL EXCEPTION: main Nov 12 08:22:20 11-12 13:30:44.913: E/AndroidRuntime(304): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{in.co.sdslabs.iitr.Multi/in.co.sdslabs.iitr.Multi.Splash}: java.lang.ClassNotFoundException: in.co.sdslabs.iitr.Multi.Splash in loader dalvik.system.PathClassLoader[/data/app/in.co.sdslabs.iitr.Multi-2.apk] Nov 12 08:22:20 11-12 13:30:44.913: E/AndroidRuntime(304): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585) Nov 12 08:22:20 11-12 13:30:44.913: E/AndroidRuntime(304): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) Nov 12 08:22:20 11-12 13:30:44.913: E/AndroidRuntime(304): at android.app.ActivityThread.access$2300(ActivityThread.java:125) Nov 12 08:22:21 11-12 13:30:44.913: E/AndroidRuntime(304): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) Nov 12 08:22:21 11-12 13:30:44.913: E/AndroidRuntime(304): at android.os.Handler.dispatchMessage(Handler.java:99) Nov 12 08:22:22 11-12 13:30:44.913: E/AndroidRuntime(304): at android.os.Looper.loop(Looper.java:123) Nov 12 08:22:22 11-12 13:30:44.913: E/AndroidRuntime(304): at android.app.ActivityThread.main(ActivityThread.java:4627) Nov 12 08:22:23 11-12 13:30:44.913: E/AndroidRuntime(304): at java.lang.reflect.Method.invokeNative(Native Method) Nov 12 08:22:35 ths is the problem Nov 12 08:22:48 for future reference don't paste like there here Nov 12 08:22:52 use paste-bin.com Nov 12 08:22:59 okkk Nov 12 08:23:01 sorry http://pastebin.com/ Nov 12 08:23:05 hmmm Nov 12 08:23:06 i know Nov 12 08:23:34 did you add the activity to your manifest? Nov 12 08:23:35 http://pastebin.com/xQKCuDmN Nov 12 08:23:42 hmmm Nov 12 08:23:49 everything is there Nov 12 08:24:25 Splash is an activity with a splash screen? Nov 12 08:25:08 Everytime you add an activity that you want to be able to launch you have to add it into your manifest for it to be able to launch Nov 12 08:25:28 no Nov 12 08:25:32 probably not Nov 12 08:25:37 the first activity is usually added by eclipse as long as you check "create activity" in the wizard Nov 12 08:25:51 that is probably your problem Nov 12 08:25:57 actually i have taken this fom a .apk file Nov 12 08:25:58 google how to add an activity to the manifest Nov 12 08:26:06 okkk Nov 12 08:26:12 will it suffice ? Nov 12 08:27:29 hi all: anyone knows of a way of convering a simple svg drawing into a set of calls to android.graphics.Canvas? Nov 12 08:30:33 is it necessary to put all source file in src folder only ? Nov 12 08:30:50 can I put these file in a separate files? Nov 12 08:31:11 ... Nov 12 08:31:56 Guest14615: you can specify multiple src directories in eclipse Nov 12 08:32:15 *.* Nov 12 08:32:27 * adq backlogs Nov 12 08:32:48 i had smc / ragel generate code and put it in gen/src/blah or something Nov 12 08:33:56 sweet ! http://javadoc.bugaco.com/com/sun/java/swing/plaf/nimbus/InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter.html Nov 12 08:33:57 okk !!! if there are so many packages in src ? so what package name should be given in the app start panel query in eclipse ? Nov 12 08:34:02 (google checkout seems to have frozen, (here) we are the 12 nov, I don't see paiment from yesterday but from the 10 and before) Nov 12 08:34:25 Guest14615: wat Nov 12 08:34:28 .. Nov 12 08:34:55 Guest14615: you're telling us you've done the app and ask such stupids questions... I really doubt you've done it Nov 12 08:36:48 Guest14615: are you sure you don't want to start by learning Java and then moving on to Android SDK? Nov 12 08:41:00 Anyone know of a utility class that will split a string up into chunks of a fixed length without breaking words? Nov 12 08:43:54 lasserix: can you give a example of what you want? String.split (regex) doesn't work for you? Nov 12 08:45:57 I am using a paint from a textview to determine what substring I can fit into a textview, I dont want this to split up a word. Nov 12 08:47:46 nm Nov 12 08:50:43 http://qz.com/26244/how-a-20-tablet-from-india-could-finish-off-pc-makers-educate-billions-and-transform-computing-as-we-know-it/ Nov 12 08:52:00 curious, with the economics, what specs this has and what version of android Nov 12 08:53:58 it's probably on par with crappy chinese $45-$80 tablets Nov 12 08:54:47 and won't cause any real change Nov 12 08:55:40 give 'em away to the poor, and they'll use it to d/l pron, not to educate themselves Nov 12 08:56:36 lasserix: String.split ("\\s") should do the trick.. Nov 12 08:56:43 looking at how tablet & phone are used, it's not for education :-) looking at what kind of software on it is a success: entertainment Nov 12 08:56:46 i gave away my spare n7 to my relative yesterday. he was thrilled Nov 12 08:56:50 low or high cost do not matter. Nov 12 08:57:13 yeah, media consumption Nov 12 08:57:16 adq: well, they'll also be vehicle for textbooks, so yes, they'll be used for education too Nov 12 08:57:37 the research i think is very ambiguous on whether tech helps learning Nov 12 08:57:40 agreed, but it does not convert "non-reader" into reader Nov 12 08:57:45 seems like its more of a distraction Nov 12 08:57:47 Sculptor: that view that poor would just use it to see porn is rather reducionist. Maybe some will, maybe someother will learn something new. Nov 12 08:58:07 anyway :D gogogogo code!!! Nov 12 08:58:59 adq: that's because primary consumers of tablets are wealthy folks who can usually afford decent education Nov 12 08:59:04 whatever we do, we must not encourage women to read - it is medically proven to overheat their brains Nov 12 08:59:14 lol :D Nov 12 08:59:15 lasserix: after the split you get a array of Strings. Then you can use a StringBuilder and append more "words" until you get a string that doesn't fit anymore. The previous one would be the one you want. Nov 12 08:59:53 yeah, i can see some poor girl in pakistan getting acid thrown on her for having a 'media consumption device' Nov 12 09:00:11 DeviantPeer what's the \\s? Nov 12 09:00:41 lasserix: regular expressions (http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html#sum) Nov 12 09:01:00 lasserix: \s matches any white space. Nov 12 09:01:04 DeviantPeer ahh thanks man, that is a good way to do it Nov 12 09:01:19 DeviantPeer, yeah, i know. was kinda telling a joke Nov 12 09:01:30 :) Nov 12 09:02:07 goos: i think the problem is that the tech isn't really up to the point of educating yet... did you ever read Neal Stephenson's Age of Diamonds? Nov 12 09:02:15 *err The Diamond Age Nov 12 09:02:44 anyways what I mean is that the highest edu tech has gotten us as far as teachign basic skills is something like mathblasters Nov 12 09:02:47 lasserix: well... an important point in Diamond Age was the content included in the book Nov 12 09:02:57 which is probably illegal in several countries Nov 12 09:03:28 in the Diamond Age there was a "smart book" that was essentially an intelligent, personalized Siri type OS that worked with a particular child Nov 12 09:03:31 * p_l haven't finished Diamond Age, but recalls a short description of what the "manual for young lady" was supposed to include Nov 12 09:03:37 yeah exactly Nov 12 09:03:57 until edu tech hits that point, most of the stuff won't be much more than math blaster esque Nov 12 09:04:04 lasserix: IIRC it included enough stuff to educate someone to point of taking over the country, iirc Nov 12 09:04:14 what is IIRC? Nov 12 09:04:21 If I Recall Correctly Nov 12 09:04:38 ahh well I won't spoil the ending.. ;p Nov 12 09:04:48 that is, the book was supposed to educate a rather important girl about important topics like runnign a big multinational ;) Nov 12 09:04:48 not entirely unrelated to the HEAP from cryptonomicon Nov 12 09:05:12 I mean the problem is you have something like wolfram alpha but no one but people who understand the math will use it, when it's really a great tool to teach about math Nov 12 09:05:49 lasserix: also, we aren't that far from getting there... what we need is actually better content to put in and better educational ideas Nov 12 09:06:09 the tech isn't that far, and can be faked with online offerings Nov 12 09:06:37 yeah i think that's another thing: how do you balance automation with humanization? I mean a tablet is wonderful, but without an instructor it's like a textbook. If you're into that stuff, sure dive in but that's not the case for most kids Nov 12 09:07:28 in some ways it's throwback to the "old" AI, which these days goes around mutiliated under names of KBE or - *shudders* - "Business Rules Automation" and such Nov 12 09:07:28 *an "educational" tablet i mean Nov 12 09:08:16 i'm pessamnistic. i mean, Pearson and others like Brooks/Cole seem to think tablets are for DRM'd rent-only time-bombed expensive textbooks Nov 12 09:08:50 except the fact so much of the information is online for free Nov 12 09:09:07 g00s: OLPC-like tablet would be interesting Nov 12 09:09:41 p_l: thats what that Aakash 2 is supposed to be Nov 12 09:09:43 goos: i mean like do you exepct khan academy to go pay-per-view at somepoint? Nov 12 09:09:56 oh, i dont know anything about those guys Nov 12 09:10:16 or MIT opencoursware to be paid/subscription base? Nov 12 09:10:16 g00s: OLPC is, IMO, more about the software they made to put there Nov 12 09:11:00 i wanted to work on an OCW course, but it used a dead tree book which wa svery expensive, and i had to put it on hold Nov 12 09:11:46 p_l: ok; i never saw the sw Nov 12 09:12:12 DeviantPeer I won't have any problems if the split.\\s array turns out to be like length 3000? Nov 12 09:12:26 *i am doing this in a background service Nov 12 09:12:30 lasserix: i would avoid regex / split if you could Nov 12 09:12:47 Why's that? Nov 12 09:13:02 its often inefficient compared to alternatives Nov 12 09:13:11 but maybe thats what you really need Nov 12 09:13:17 true Nov 12 09:13:29 And do you have any other recomendation? Problem is I need some way to properly ellipsize a long string for an app widget, since <3.0 ellipsizing is broken, and app widgets are fixed in size Nov 12 09:13:54 lasserix: you can also just search for the next space and try to see if the substring fits. Nov 12 09:14:14 lasserix: more or less the same idea but without spliting the entire string. Nov 12 09:15:43 I'll get it working and compare, thanks Nov 12 09:16:06 lasserix: but String.indexOf (" ", last_knot_space_index) will work only with spaces Nov 12 09:16:27 lasserix: while regex \s works with tabs, newlines, etc. Nov 12 09:16:43 yeah Nov 12 09:16:52 the incoming text could be anything Nov 12 09:17:41 'ello Nov 12 09:17:44 lasserix: you could also still use the split with a limit of 2 Nov 12 09:18:15 lasserix: then adding the first and if it doesn't work slit the rest in two and append the first resuts, and so on, and so on. Nov 12 09:19:15 DeviantPeer I have a maximum of 17 possible lines to fill so I think i can cap it Nov 12 09:22:11 Quick (weird) problem - I have a viewpager fed by a fragmentstatepageradapter. My fragments are created like so: http://pastebin.com/R3BCeQ1G Nov 12 09:22:19 The problem happens in the follow scenario Nov 12 09:23:17 Let's say that I'm in the middle of the pager, so I have my n-th fragment, (n-1)-th and (n+1)-th fragment in memory... if I go the the right, the (n-1)-th fragment becomes my (n+1)-th etc Nov 12 09:24:39 Now the problem is that the setBitmap function isn't called the moment the fragment is instantiated - it waits until the image is downloaded... so if I rapidly swipe to one side, quickly altering positions of fragments... I will get to the point that the if(initialized==true) line never returns true. Nov 12 09:25:15 if I were to quickly swipe from position 5 to 15, then go back a few slots, the setBitmap function would never do anything. Nov 12 09:26:07 with the initialized boolean I keep track if the layout is inflated and I have a handle on the imageView view in it. Nov 12 09:26:22 those thigns I do in the onCreateView() method, but something goes avry Nov 12 09:42:06 Tee_Pee: are you lazy loading them, i.e. you're not going to load them until you swipe to that screen Nov 12 09:42:11 if a device doesn't have any buttons and uses only on-screen buttons and if an app goes full-screen and hides the buttons, how do you bring them up? (home, back, etc) Nov 12 09:42:17 wtf is up with eclipse's run menu :| Nov 12 09:42:40 who uses eclipse? Nov 12 09:42:40 tdingan - they get loaded when they get to be adjacent to the current one, so yeah Nov 12 09:43:05 But I've tracked the problem down to onCreateView() not being called before setBitmap for whatever reason Nov 12 09:43:12 pragma-: i try to use vim for this but it just isn't as fast. Nov 12 09:43:16 i settle for vrapper Nov 12 09:43:55 Tee_Pee: well it sounds like you solved it! Nov 12 09:44:00 just use a boolean Nov 12 09:44:16 Here's the kicker though Nov 12 09:44:32 so ok, setBitmap gets called first, fine... I set a private imageuri variable to whatever the URI is Nov 12 09:45:01 in my onCreateView() I've got if(this.imageuri != null) { setBitmap(imageuri); } Nov 12 09:45:06 But at that point, imageuri is null again. Nov 12 09:45:19 I'll try passing the imageuri as an argument to the newInstance method Nov 12 09:45:49 are you creating a fragment for each page ? Nov 12 09:45:52 :| Nov 12 09:46:19 of course, I can hardly keep 2000 fragments in memory. Nov 12 09:46:27 They're generated as they come Nov 12 09:46:49 you could also have just one fragment, and you only change the data inside it Nov 12 09:47:14 I do have one fragment layout and one custom fragment class, if you are referring to that :P Nov 12 09:47:31 has someone here ever tried to sign a zip update for android? Nov 12 09:47:33 but from what you're saying there's really no way for us to help you. it is some problem in your code that you need to handle with the debugger Nov 12 09:47:40 aye Nov 12 09:47:42 I had a similar problem the other day : Nov 12 09:48:18 if only I could remember what the cause was Nov 12 09:48:39 well i try to sign a zip update with signapk.jar Nov 12 09:48:44 but verification fails on device Nov 12 09:58:46 How would I make my app run in the background and wait for input while in the background? Specifically, wait for an NFC device to come into contact with the phone, and then do a task. Nov 12 10:00:17 broadcastReceiver ProfOak_ Nov 12 10:01:18 Thanks, I'll look into it: Ivru Nov 12 10:16:39 I have a library project containing native libraries (in libs/armeabi). Now, with another project depending on this library project, the native libraries does not seem to be included. Is there a way to include those as well in the dependant project? I get unsatisfied link error trying to run it. Nov 12 10:28:09 Hello, i the DialogFragment docs it says i should import the class manualy if i plan to support android < 3.0. no sure how to do that, any suggestions? Nov 12 10:29:31 viran: I'm pretty sure it means you should add the support library Nov 12 10:29:49 then import android.support.v4.app.DialogFragment Nov 12 10:31:01 thanks Nov 12 10:33:28 eclipse doesnt seem to find android.support Nov 12 10:33:38 wellp, looks like I'll be using intellij this morning. Nov 12 10:33:53 my eclipse is busted and probably needs to be reinstalled Nov 12 10:34:19 DysonReturns: do i need to manually install the support libraray? Nov 12 10:34:33 i tried to create a new workspace to resolve the issue.. I went to get a coffee down the street, came back, and it was still creating the workspace :D Nov 12 10:35:06 viran: in eclipse you can right-click project -> Android Tools -> Add support library Nov 12 10:35:53 tdignan: if you are lazy just reboot, it save my eclipse 10 times last week Nov 12 10:36:04 baptistem: rebooting hah Nov 12 10:36:14 I seriously doubt that will fix it Nov 12 10:36:25 it's probably tripping on something in ~/.eclipse Nov 12 10:36:32 I installed a few plugins that might have messed it up Nov 12 10:36:39 it depend on what it's infinite-looping Nov 12 10:36:42 viran: otherwise download it via the sdk manager, and it should be /extras/android/support/v4/android-support-v4.jar Nov 12 10:36:55 viran: and then add it to your libs/ folder Nov 12 10:36:56 DysonReturns: thanks a lot Nov 12 10:37:04 np Nov 12 10:37:09 tdignan: last time it was aptana for me Nov 12 10:37:20 baptistem: I get an NPE in parseSdkContent and then the next thing after I restart it is a SIGSEGV :) Nov 12 10:37:24 baptistem: nice Nov 12 10:37:59 it won't cripple my workflow, because I know how to work from the command line and in intellij Nov 12 10:38:04 but man.... :| Nov 12 10:38:14 4.2 definitely has some regressions. Nov 12 10:39:31 i use 3.8.2 Nov 12 10:39:39 yeah, I might downgrade Nov 12 10:39:41 anyway I moved to intellij, android support is better (especialy for catlog) Nov 12 10:39:45 4.2is really bad, I hate to say it Nov 12 10:40:16 yeah, intellij's logcat is nicer Nov 12 10:40:24 you can find the stacktrace with the 'up the stracktrace' button Nov 12 10:41:13 tdignan: and you can do human copy/paste Nov 12 10:41:46 greets Nov 12 10:42:40 that's the same problem with DDMS tools from sdk, if you have a multi-lines log forget about copy it.. Nov 12 10:43:03 baptistem: in the project explorer I guess but -- I don't fancy the keybindings Nov 12 10:43:13 I think ideavim is a bit better than vrapper Nov 12 10:43:15 as well Nov 12 10:43:40 I only was using eclipse because the new version of the eclipse adt tools came out and I wanted to try them Nov 12 10:44:11 but the builds in intellij.. that's what gets on my nerves. unlike eclipse, you have to wait. Nov 12 10:45:20 I have to wait in eclipse too but afair less... Nov 12 10:45:37 but I really miss a good logviewer.. Nov 12 10:46:28 when I get mad at the logcat I just use adb logcat and grep Nov 12 10:47:41 oh that was slick Nov 12 10:47:54 I just noticed that intellij can look at your lib project deps and automatically pull them in Nov 12 10:48:02 I was sitting here adding one lib project after another Nov 12 10:48:08 assuming I'd have to add them all manually. Nov 12 10:48:44 even if you have to add them by hands, you can make a file selection in the window iirc Nov 12 10:49:07 my project is using only 4 right now :) Nov 12 10:50:51 that may be fast then :) Nov 12 10:51:01 new intellij is playing so much nicer with xorg, too Nov 12 10:51:13 i filed some bugs related to focus over the summer Nov 12 10:51:20 they fix the menu/submenu issues? Nov 12 10:51:25 it seems! Nov 12 10:51:29 that the menu focus is correct now Nov 12 10:51:33 but I may be jumping the gun Nov 12 10:52:02 oh great! I will test it with dual-screen where it was buggy Nov 12 10:52:55 yeah, I am always finding bugs in software because I have multi-monitor Nov 12 10:53:05 it makes me think why so many devs working on these projects dont...? Nov 12 10:53:20 there is an 8 year old multi-monitor bug in firefox, for ex. Nov 12 10:53:33 still unfixed :P Nov 12 10:53:44 cause multi-monitor isn't mainstream yet Nov 12 10:54:01 I used to work with a guy who had literally 10-20 monitors in his office Nov 12 10:54:05 all angled around him Nov 12 10:55:17 while(screen++) { bug++ } Nov 12 10:55:30 I remember using an IDE that worked well multimonitor Nov 12 10:55:40 last time that happened was >10 years ago, I think Nov 12 10:55:48 but you don't remember the name? :D Nov 12 10:55:54 Oh I know the name Nov 12 10:55:58 Borland Delphi Nov 12 10:55:59 what a beautiful thing! intellij is running smooth and saving the day :) Nov 12 10:56:34 it worked great multimonitor... I don't get why all these IDEs of the past X years try to cram everything in a single screen Nov 12 10:56:48 I don't have 3 monitors so I can watch pr0n on two of them Nov 12 10:56:58 eclipse totally shows too much bloat on its default java perspective Nov 12 10:57:12 and on the DDMS view it's the same things Nov 12 10:57:16 outline, I never use that view :) Nov 12 10:57:33 I run DDMS as a separate app, not inside Eclipse Nov 12 10:57:42 ^ Nov 12 10:57:50 the standalone ddms is a fairly solid piece of work Nov 12 10:58:04 yup but same shit with copy/past Nov 12 10:58:23 baptistem: you use linux? Nov 12 10:58:27 yes Nov 12 10:58:36 yeah, copy and paste is bad on linux Nov 12 10:58:39 in general Nov 12 10:58:44 I discovered a major issue with xclip Nov 12 10:59:06 type: printf "%q" "" Nov 12 10:59:15 then copy paste that with xclip and hit enter Nov 12 10:59:32 not the command line xclip but the middle mouse Nov 12 10:59:52 Oh wait, that's actually the terminal emulators fault Nov 12 10:59:52 I never got issues with this before, here it copy the entire line, timestamp, process, level, begenning of the message Nov 12 11:00:09 ah yeah, that happens Nov 12 11:01:40 the DDMS in windows work better? Nov 12 11:06:05 grmbl I hate when adb think that reinstalling is stupid Nov 12 11:11:54 I wouldn't know :) Nov 12 11:12:12 I did try developing in windows for a week or so when I got this new laptop, because hell, why not Nov 12 11:12:19 the whole time was unpleasant Nov 12 11:13:03 ok i'm out Nov 12 11:16:10 is there a way android way for the DateTime.Tick property of .net? Nov 12 11:17:00 SystemClock.uptimeMillis() Nov 12 11:17:08 or smth Nov 12 11:29:35 hi Nov 12 11:32:21 how to detect which pointer is moving on the display? i always get pointer id = 0 for moving? Nov 12 11:42:01 What are peoples' opinions of app rating prompts? Nov 12 11:42:45 make a app rating prompt prompt... Nov 12 11:42:50 it depends Nov 12 11:43:08 in absolute numbers, they probably increase your rating count which can be good Nov 12 11:43:30 on the other hand, you're giving the user a useless prompt, and if that user would be me, I would never use anything you're involved with every again Nov 12 11:43:31 Estel: 1.) Make sure your app works 2.) Add "don't bother me again" Nov 12 11:44:01 Estel: data usually shows you get alot of additional positive ratings if your app looks nice and works flawlessly Nov 12 11:44:06 Personally I hate them, but I'm looking for a cogent argument against them Nov 12 11:44:20 (since people are biased towards negative ratings) Nov 12 11:44:22 you're wasting people's valuable time Nov 12 11:44:36 for negative: someone has to click "don't bother me again" once Nov 12 11:44:38 if done properly Nov 12 11:44:44 it annoys people if done wrongly Nov 12 11:45:07 Chainfire oh yeah because you wouldn't want to keep them from going back to facebook, angry birds etc Nov 12 11:45:07 ;p Nov 12 11:45:30 thats a waste of time they choose themselves Nov 12 11:47:02 Hmm, the default on this library seems to require 15 launches over at least a month, which seems a high threshold. Especially as I expect the average for this app will be < 5 user sessions per install. Nov 12 11:47:31 launches for what? Nov 12 11:47:35 the prompt? Nov 12 11:47:56 Launches of the app, before the prompt is displayed Nov 12 11:49:19 Estel: that seems a same default :) Nov 12 11:49:57 Hey, im trying to use the support library to open a dialog box using DialogFragment. there's now show() function in the support library version. there's a show(FragmentManager, String) functtion. how do i get the fragmentManager? google tells me about getSupportFragmentmManager() but im not sure how to get to it. Nov 12 11:50:22 Using getSupportFragmentManager() from your activity should return a fragmentmanager object Nov 12 11:52:32 Estel: that function is unknown in my activity class. getSupportFragmentManager() and this.getSupportFragmentManager() are undefined Nov 12 11:53:07 What class does your activity extend? Nov 12 11:53:27 Activity Nov 12 11:53:46 Try extending FragmentActivity Nov 12 11:53:56 (The one in the support library) Nov 12 12:08:28 have developpers who publish apps on google play recently received mail(s) from ppl working @rim.com (blackberry)? Nov 12 12:10:50 adq: no rim mail here. but sufficient other app marketing spam Nov 12 12:11:51 yeah Ge0rG :| i'm making a compilation of these marketing spam Nov 12 12:12:00 i will soon publish them somewhere Nov 12 12:12:12 adq: I can forward my spam to you too :P Nov 12 12:14:09 later on, why not Ge0rG! I've noted your nick so I will ask you later for more spammm Nov 12 12:23:40 Ahh to have ellipsizing textview in app widget on <3.0 phones ahh what gloriousness. Nov 12 12:25:32 HI i looking for some informatins about Android history, can you help me ? :-) Nov 12 12:26:18 check the svn :) Nov 12 12:26:34 check wikipedia Nov 12 12:26:58 I cannt use wikipedia ... Nov 12 12:27:34 iwant: i have a wikipedia2irc gateway Nov 12 12:28:32 look at wikipedia sources Nov 12 12:28:41 monsti how it can help me ? Nov 12 12:28:57 check the wiki references Nov 12 12:29:15 you are beyond help Nov 12 12:40:06 I just installed new ABS into eclipse but get a lot of must ovveride annotation errors in the library, is there something I'm missing? Nov 12 12:45:50 when streaming a videoview and jumping in time with the mediacontroller. shouldn't it work jump in time then? Nov 12 12:46:32 or do I have to do something manually? Nov 12 12:46:51 anyone? http://stackoverflow.com/questions/13178022/addaccountexplicitly-throws-illegalstateexception-caused-by-securityexception Nov 12 13:40:14 salve a tutti Nov 12 13:40:33 ciao Nov 12 13:41:22 ciao Bithuntero Nov 12 13:45:19 ho un superpad 6 che ha 1 giga di ram ddr ma perchè ha libera solo 176 mb? Nov 12 13:47:23 come posso verificare quanta ram reale ho? Nov 12 13:48:04 Bithunter: are you dumb ? Nov 12 13:48:43 what dumb? is it a software? Nov 12 13:48:56 we don't speak italian Nov 12 13:49:47 ok... no problem... dumb? Nov 12 13:53:20 i have a superpad 6, the ram is tot 1 gb but free is only 176 mb... why? Nov 12 13:54:50 ok... see later... bye at all :-) Nov 12 14:07:55 I got 100Mo free, app is uncompressed =20Mo, compressed 2Mo and adb sayed insufficient storage Nov 12 14:13:15 Is it possible to put force a text view to show in the same view where a webview is fillin the screen? Nov 12 14:36:09 <{V}> I see TARGET_SHLIB_SUFFIX being used in shared_library.mk of the android build system, anyone know which file is responsible for assigning a value to it (it=TARGET_SHLIB_SUFFIX) ? Nov 12 14:40:38 hello Nov 12 14:42:34 does anyone know how implement an onClick in a webview Nov 12 14:44:56 docmur: if no normal way works, then using a javascript interface and binding a onclick event on the HTML body Nov 12 14:45:04 it's ugly, but it should work at least Nov 12 14:46:47 Well my initial problem is that I want to use a GestureListener in the WebView to pick up a swipe on the screen. This gesture listener will pick up everywhere BUT the webview. Nov 12 14:55:33 hello all. Does anyone know how to put this table (http://ligabernardino.com/index.php?option=com_joomsport&view=ltable&sid=8&gr_id=0&Itemid=128) in a layout and update it when phone connect to net? Nov 12 14:57:41 preferably you'd get the data source they use. Otherwise you'll have to get some sort of html handling library like mechanize or something, fetch that, parse the html, populate a layout. Attach a network state listener. You'll most likely have to use a service, too. Nov 12 14:57:59 beyond that, I avoid having to parse raw html in java as much as possible. I'm sure there's plenty of libraries to do it. Nov 12 15:01:59 dragorn: that sound heavy for a newbie like me... Nov 12 15:02:09 yup. You didn't pick a simple project to start with Nov 12 15:07:23 <{V}> nevermind my question. Found it in the platform/build core/combo/ .mk's. (decided to grep for SHLIB_SUFFIX rather than TARGET_SHLIB_SUFFIX, silly me for not thinking of it sooner) Nov 12 15:12:56 Hi guys.. Nov 12 15:13:24 I need some help in android.. Nov 12 15:13:36 hope you have some spare time..? Nov 12 15:13:45 are there decent opengl es tutorials out there Nov 12 15:14:08 <{V}> curlyreggie, topic says "Ask your question, don't ask to ask" Nov 12 15:14:39 has anybody worked on WiFi connectivity in android? Nov 12 15:15:25 i need to connect to a wifi host via my smartphone Nov 12 15:17:50 curlyreggie: developer.android.com, look under WifiManager Nov 12 15:18:01 thanks.. Nov 12 15:18:12 curlyreggie: if you're trying to define network connections, that's where you do it. If you're trying to say "make a tcp connection to a device on wifi", then that's standard java network io Nov 12 15:18:33 the issue is wifiManager.getConfiguredNetworks has a saved list after connection and connects to a host different from the SSID that I provide Nov 12 15:19:18 i use a simple code as this --> http://stackoverflow.com/questions/5264739/android-wifimanager-always-returns-true Nov 12 15:20:05 the thing is my SSID is connected successfully on installing the app.. but not after that! Nov 12 15:24:03 if I have a layout which contains a webview and textview and the webview fills the entire screen is there a way to force the text view to show up, this is the layout code. http://pastebin.com/veu21sU9 Nov 12 15:25:36 dragorn: any good youtube tutorials to get me started on that task? Nov 12 15:26:03 vascobnunes: no idea. I don't parse html on android. Nov 12 15:30:47 dragorn: so how would you do this? my idea is to make a small sports club app, and as such the championship table is essential... Nov 12 15:34:11 vascobnunes: pretty much what I told you. Parse the html. Use networkmanager listeners to figure out when you're on wi-fi. You'l have to figure out how to parse the html; i'm sure there's libaries out there. I don't use them, so you'll have to do some research. Nov 12 15:35:31 dragorn: ok. thanks a lot. I'll be looking into it later on today... Nov 12 15:36:21 mechanize is pretty good,I don't know if there's a java port of it. Nov 12 15:45:04 I'm trying to register my gesture in a webview, I put the gesture onTouch event call in Action Down in the WevView Touch but it never gets called, one know why this wouldn't work: http://pastebin.com/esEvVRcE Nov 12 15:54:57 dragorn, TagSoup is the thing to use: http://home.ccil.org/~cowan/XML/tagsoup/ Nov 12 15:57:52 I have a TabWidget. After filling in data in one of the tabs (linearview), I want to clear the data. A fresh start - just redraw the screen. invalidate() on the linearview does nothing for me. How do I achieve this? Nov 12 16:02:46 How do I have a ViewGroup redraw? I just want to clear all and start over fresh when the user clicks a button Nov 12 16:04:45 i've subclassed alertdialog to make my own 100% custom settings window… how do i set the height/width of it? Nov 12 16:04:59 ramvi: invalidate()? Nov 12 16:05:24 ultra-: I read on stack overflow that invalidate would redraw the view Nov 12 16:05:31 But I'm not getting that result Nov 12 16:05:46 requestLayout()? Nov 12 16:11:47 ultra-: Tnx, but nothing happens. I'm guessing it's because the LinearLayout is a child of a TabWidget. What do you think? Nov 12 16:14:19 i don't think so… i'm able to call invalidate() to specific views i've subclassed and it redraws Nov 12 16:21:42 hi, I need to hide system navigation bar, how is that possible? Nov 12 16:21:45 how do i make a view display over the top of another full, not full screen Nov 12 17:02:43 hello i have a simple question atleast i think so... how do i open the sdk tools from java like traceview Nov 12 17:02:53 or 9patch Nov 12 17:06:22 somebody around here using ORMlite with android? Nov 12 17:07:13 hi all. anyone know how to draw text within a bonding box (auto changing the size of the text depending on available pixels)? Nov 12 17:07:27 monsti: yes Nov 12 17:08:54 DeviantPeer, on a canvas in onDraw method with canvas.drawText Nov 12 17:09:46 and the size of text can be adjusted with the "Paint" you pass in parameters Nov 12 17:10:19 adq: yes, but it's a fixed size, Nov 12 17:10:34 nop with the paint, you can based on your bound give a dynamic size Nov 12 17:10:44 but you will have to do tuning on the size :/ Nov 12 17:11:16 adq: yes.. it's that tunning that I wanted to know is there was already a "proper" way of doing. Nov 12 17:11:29 DeviantPeer: can i ask you a question via query? Nov 12 17:11:31 i've never found a proper way :/ Nov 12 17:11:59 like mPaint.setTextSize(mRectf.width() / 7); Nov 12 17:12:16 i had to take little screen and enormous screen to have the feeling this division will be ok in this rect Nov 12 17:12:24 by using extreme size, you can figure it out Nov 12 17:12:32 monsti: if you must, but on the channel is better, as other people will also see. Nov 12 17:12:44 (this is what i called "tuning" :/ ) Nov 12 17:12:57 adq: yupiii! magic numbers. :D Nov 12 17:13:11 it really depends on your bounds Nov 12 17:13:36 for the same view, depending the case, i used /7 (c.f. aove), /14 and /5 Nov 12 17:13:44 simply because the width was not the same :| Nov 12 17:13:57 it's totally not a "proper" way Nov 12 17:14:03 but i've never found one ;( Nov 12 17:14:31 s/aove/above/ Nov 12 17:15:12 DeviantPeer, looking forward if you find a "proper" way :-) Nov 12 17:15:58 (maybe it would implies to have a px to dp conversion, but I was too lazy to go so far) Nov 12 17:16:16 Hey there. Some Googlers online? Nov 12 17:17:57 adq: I'll try to find something.. Nov 12 17:39:08 Hey gang, trying to figure out how to force a linear layout and all of it's children in a layout to use a different theme. I've got this so far, http://pastie.org/5366929, not sure how to apply it. Thanks in advance Nov 12 17:39:54 fakingfantastic: you have a layout in a layout in a layout? Nov 12 17:40:41 monsti: yeah pretty much it's like … more stuff You can't use a ContextThemeWrapper for anything if you've already inflated the views Nov 12 17:41:06 It needs to be passed in the constructor Nov 12 17:41:50 <[7]> damn, this wifi roaming race condition bug report isn't getting any attention.... Nov 12 17:41:56 <[7]> https://code.google.com/p/android/issues/detail?id=38830 Nov 12 17:42:02 SimonVT: agh ok, how can I pull off what I'm describing Nov 12 17:42:08 <[7]> I bet there are *thousands* of users plagued by this! Nov 12 17:42:33 fakingfantastic: LayoutInflator.from(myThemedContext).inflate(..) Nov 12 17:42:49 ^that Nov 12 17:44:34 SimonVT: evancharlton thanks again, guys. Ill try it out Nov 12 17:44:59 Did you try and just set the style attribute in xml? Nov 12 17:54:43 anyone? Nov 12 17:57:15 Jokr: why not just ask your question? Nov 12 17:57:24 i did Nov 12 17:57:49 this is what i wrote: how do i open the sdk tools from java like traceview, 9patch etc... Nov 12 17:58:05 what do you mean "open them from java"? Nov 12 17:58:38 issue the command to open them Nov 12 17:58:58 To start Traceview, enter the following command from the SDK tools/ directory: <--- that is from developers.android Nov 12 18:06:31 do u understand? Nov 12 18:07:23 Get a trace file, type traceview yourfile in a terminal Nov 12 18:07:44 Provided the tools directory is in your PATH Nov 12 18:07:52 (OS dependent) Nov 12 18:13:08 Does anyone have an idea where to look in the Android source code to solve an issue where I have to reenter the SIM PIN code regularly? Nov 12 18:13:42 Hi! Nov 12 18:13:55 marcreichelt: hey there Nov 12 18:14:16 In a local Android app I need sort of my own resource qualifiers Nov 12 18:14:30 ? Nov 12 18:14:48 so e.g. I need 'language' and 'custom1' Nov 12 18:14:56 and maybe later also 'custom2' Nov 12 18:16:02 That's not supported Nov 12 18:16:16 Is this possible in any way? The only other possibility I could think of is loading the strings completely on my own (Java-based), but that totally destroys the nice resource usage like android:text="@string/stringid" Nov 12 18:16:18 I am not able to use a public arraylist inside an onItemClick listener of a listview Nov 12 18:17:02 any reasons, if I use the .size(), I can get the accurate length of the arraylist Nov 12 18:17:29 SimonVT, any other ideas? Nov 12 18:17:44 I know it's not supported, but I definitely need this feature Nov 12 18:17:50 at least somehow Nov 12 18:17:53 Why do you need custom qualifiers? Nov 12 18:18:28 because there are different variations of the App, which I can't handle at compile time Nov 12 18:18:34 the App has different configurations Nov 12 18:18:37 like what Nov 12 18:18:45 and based on the configuration, the strings change heavily Nov 12 18:19:00 let's say the app works in different cities (same country) Nov 12 18:19:12 and the strings differ a lot between these cities Nov 12 18:21:15 The same apk? Nov 12 18:21:20 exactly Nov 12 18:21:23 SimonVT, evancharlton: So I'm dumb, just remember this is all for a fragment. So i CAN in fact simply inflate the fragments view with a ContextThemeWrapper… thanks again for all your great advice Nov 12 18:21:25 but the city can change Nov 12 18:21:58 I am creating a customtextview from textview in my android app. In the xml file where I create the view , android:textColor or andriod:textSize tags are not showing ? Any idea what might be the issue ? Nov 12 18:22:33 SimonVT: how do i get the traceview file? Nov 12 18:23:00 Jokr: http://developer.android.com/tools/debugging/debugging-tracing.html Nov 12 18:23:13 marcreichelt: You'll have to handle it in code Nov 12 18:23:23 SimonVT, that's bad :/ Nov 12 18:23:47 because I would like to be able to use Nov 12 18:24:39 I could think of a custom view - while string/resource points to a string resource with an identifier Nov 12 18:24:59 and it automatically loads the string based on the app configuration and locales Nov 12 18:25:18 but that way I will have to completely re-implement the automatic locale system from Android Nov 12 18:26:15 You could make a different app for each city :p Nov 12 18:27:17 bad :/ Nov 12 18:34:34 i dont know why people complain about windows needing reboots. i jsut had to reboot linux because it was totally unusable after the weekend Nov 12 18:35:06 What made it unusable? Nov 12 18:35:23 fatal: cannot exec 'vi': Operation not permitted Nov 12 18:35:33 my git configuration had disappeared Nov 12 18:35:35 etc etc Nov 12 18:35:46 never had those problems on windows :) Nov 12 18:37:09 Sounds very bizarre Nov 12 18:37:35 SimonVT: thanks Nov 12 18:38:29 I can't think how a Linux install would go bad like that over a weekend with nothing else happening Nov 12 18:40:10 i accidentally suspended it on friday Nov 12 18:40:18 but yea Nov 12 18:40:21 woke it up, and it was fucked Nov 12 18:43:12 did anyone got chance to read my question Nov 12 18:49:12 Looney, i dont udnerstand Nov 12 18:49:21 what do you mean it doesnt work with a "public" arraylist Nov 12 18:50:18 I declared an ArrayList as public with reasonable scope Nov 12 18:50:35 "as public with reasonable scope" I don't think you understand what those words mean Nov 12 18:51:21 If you can't access it, the scope is obviously not reasonable enough Nov 12 18:52:17 public ArrayList aList = new ArrayList(); almost immediately at the start of activity Nov 12 18:52:36 Pastebin some code.. Nov 12 18:52:41 sure Nov 12 18:57:45 Anyone know anything about testing in-app purchasing? Nov 12 18:58:21 Spent ages struggling to get it to work. I believe the code is correct, but I get a 500 response code. Nov 12 18:59:17 Hi Nov 12 18:59:18 wooh, ios version complete, now to try and work out how to fit this incredibly skeumorphic design into Holo Nov 12 18:59:27 Google tells me that I can't use my main developer account to do test purchases. So I set up a second account on my device, and then added it as a test account. However the billing only ever seems to pick up the first account. Nov 12 18:59:28 http://pastie.org/5367322 please overlook poor patie commenting Nov 12 18:59:43 Estel: easy: don't :D Nov 12 19:00:03 g00s: but I really like the design of the iOS one xD Nov 12 19:00:18 Is there a way to know how much in app purchases you have had on android, anybody know?? Nov 12 19:00:22 Really want to retain at least a few elements of it in Android Nov 12 19:00:22 Estel: did you ask your users if they like it :) Nov 12 19:00:55 Is there a way to know how much in app purchases you have had on android and all related staff, anybody know?? Nov 12 19:00:55 somel ike, some dont. i like what somebody called it 'visual masturbation' Nov 12 19:01:16 It yes, yes, but it also sets a tone and ambience for the app Nov 12 19:01:37 As there's nothing necessarily wrong with gratuitous masturbation. Nov 12 19:01:45 Is there a way to know how much in app purchases you have had on android and all related staff, anybody know?? Nov 12 19:02:31 SimonVT: looks like you got busy ;-) Nov 12 19:03:07 And what's the issue Nov 12 19:03:21 I get Nov 12 19:03:47 Stream Player debugging ( 775): someone clicked null in my Logcat Nov 12 19:04:04 from the Log.d line Nov 12 19:04:54 g00s: don't get me wrong, I love Holo, I'm just unsure where to draw the line between it and brand identity Nov 12 19:04:55 strangely when I replace the end of line with Integer.toString(channelUrl.size()) Nov 12 19:05:11 I get 5 which is the correct length of the List Nov 12 19:05:25 Estel: i see brand identity and use of skeuomorphism as orthogonal things Nov 12 19:05:56 g00s: well, have a screenshot: http://bit.ly/TvwGNq Nov 12 19:06:22 Estel: restaurant ? Nov 12 19:07:05 i hate t admit, the design language is nice Nov 12 19:07:10 cute Nov 12 19:07:17 I don't see any issues with your code Nov 12 19:07:47 perhaps could be emulator problem ? ? Nov 12 19:07:58 I am testing it on emulatore Nov 12 19:08:04 *emulator Nov 12 19:08:11 I want to set my actionbar to use a banner background image instead of the home icon. The background image is fine but the home icon is still showing up, how do I turn that off Nov 12 19:08:37 because I also have seen SO about this issue and its not much reported one Nov 12 19:08:37 Attach the debugger, inspect your list Nov 12 19:09:06 inspect list? which step Nov 12 19:09:17 the filling or the displaying Nov 12 19:10:05 nice work Estel ;-) Nov 12 19:10:12 From your click listener Nov 12 19:10:23 Anywhere you know the list is filled Nov 12 19:10:34 uh oh, so apple is getting $8/android phone from htc now … on top of whatever ms gets. Nov 12 19:11:09 g00s: thanks ^^ I can't take credit for the design, but can you understand why I'd want to try and retain elements in Android? Nov 12 19:11:11 I have used the crude .size method which gives the correct size and have checked that .add is not adding null Nov 12 19:11:37 but I will double check it first thing in morning, gotta get to bed Nov 12 19:11:48 Estel: not really, i guess i dont understand (from the screenshot) how the chrome helps usability; thats what matters most Nov 12 19:11:53 will let you know as soon as I get it done Nov 12 19:12:12 I don't think it helps usability, but quality of visual design is, imo, a strong USP Nov 12 19:12:19 thanx for taking a look at my pastied SimonVT Nov 12 19:12:26 over and out for now Nov 12 19:12:29 Estel: what was USP ? Nov 12 19:13:23 unique selling point Nov 12 19:14:09 And there's a value in having a consistent visual style between platforms, though definitely not with respect to navigation/user interaction Nov 12 19:15:49 Estel: i think a good moto is 'content is the interface'. shifting to this thinking requires focus on interaction, not chrome and stuff Nov 12 19:16:17 the visual design hasa lot of effort into it; but maybe its just me … i get tired of these things in about 5 minutes Nov 12 19:17:11 you can keep the branding w/o all the gratuitous graphics everywhere Nov 12 19:17:57 what is the function of the app ? Nov 12 19:18:30 Discovering locations. Nov 12 19:18:40 Usually casual browsing Nov 12 19:19:16 also, the reason why i dislike skeuomorphism is that data tends to become more interconnected and ephemeral; borrowing skeuomorphs becomes more difficult and tenuous Nov 12 19:19:38 Estel: what kind of locations? Nov 12 19:19:55 is there a website that'll generate nice and shiny phone mockups with a screenshot .png? Nov 12 19:19:56 Pubs, Restaurants, days out, shops, all in one city Nov 12 19:19:58 just guessing, i would think this is an app for listing antique stores .. based on the VDL Nov 12 19:20:04 rumor has it there is a google tool that does this? Nov 12 19:20:29 In particular, they're places that are more niche and hidden away and not necessarily on the beaten track Nov 12 19:28:46 How do you disable the home icon in the action bar, I tired setHomeIconEnabled(false) but that didn't work, I tired setting the background image andthat didn't work :S Nov 12 19:30:55 docmur: what do you mean disable? remove it or just make it not do anything? Nov 12 19:31:21 I just want to hide it, I'm talking icon in the top of the bar Nov 12 19:32:33 Something like setDisplayShowHomeEnabled Nov 12 19:33:57 Has anyone here worked on the WebView code in the AOSP? Nov 12 19:34:14 Ya that works, it gets ride of the background to but thats fine Nov 12 19:38:49 is it possible to activate the touch output overlay through USB debugging? Nov 12 19:41:55 SimonVT: i have 2 classes that implements parceable Rate and RateList which i use to pass from my service via Intent to a broadcast receiver the problem im have is retrieving the Arraylist from the intent Nov 12 19:42:46 http://www.google.ca/imgres?um=1&hl=en&sa=N&biw=1280&bih=960&tbm=isch&tbnid=OIfJuUGe-4VKJM:&imgrefurl=http://docs.xamarin.com/Android/Guides/Platform_Features/Introduction_to_Ice_Cream_Sandwich&docid=-MIlQO9op26UhM&imgurl=http://docs.xamarin.com/%2540api/deki/files/2185/%253D25_-_ActionBarTabs.png&w=978&h=912&ei=_1ChULzvNsKYqgGLoIDYDw&zoom=1&iact=hc&vpx=788&vpy=481&dur=113&hovh=217&hovw=232&tx=80&ty=117&sig=107248167587320730811&page= Nov 12 19:44:25 SimonVT: http://pastebin.com/2tvgHThe Nov 12 19:45:02 yes, don't do that Nov 12 19:45:20 Just Rate should implement Parcelable Nov 12 19:45:32 Then don't subclass arraylist, and use Bundle.putParcelableArrayList Nov 12 19:47:29 Does anyone know why webview is sending "HTML5VideoView" instead of "VideoView" to onShowCustomView? Nov 12 19:47:42 This seems to be some code that was recently added to the AOSP. Nov 12 19:47:57 SimonVT: ok so i can just use Rate alone as parceable and leave out the Ratelist class all together? Nov 12 19:48:08 Yes Nov 12 19:49:49 i am using Intent to send it so i just create the intent in my service file and use i.putParcelableArrayListExtra("Rate_Value",Rates); Nov 12 19:50:13 thats fine too right? Nov 12 19:50:44 Same thing Nov 12 19:50:57 It just wraps Bundle.putParcelableArrayList Nov 12 19:52:14 ok how do i retrieve that from the intent Nov 12 19:52:23 in the broadcast receiver Nov 12 19:52:58 since : Bundle extra = intent.getExtras(); ratelist = extra.getParcelableArrayList("Rate_Value"); the second statement fails Nov 12 19:53:13 How does it fail Nov 12 19:53:19 You probably have to cast it Nov 12 19:53:26 for android resources, what's the priority for xlarge vs w1200dp Nov 12 19:53:46 w1200dp > xlarge Nov 12 19:54:18 I thought so.. perhaps not on Nooks? fucking things. Nov 12 19:55:23 theres a nook that big? Nov 12 19:56:09 most xlarge devices would only match w1200dp in portrait Nov 12 19:56:09 1200dp seems big Nov 12 19:56:13 err Nov 12 19:56:16 landscape** Nov 12 19:56:16 land Nov 12 19:56:51 From what I can see in HTML5VideoViewProxy.java, and from my testing, video is either told to always come up in fullscreen mode, or it is only told it can play inline after exiting fullscreen mode. Nov 12 19:56:52 https://github.com/android/platform_frameworks_base/blob/master/core/java/android/webkit/HTML5VideoViewProxy.java Nov 12 19:57:29 Do I need to compile an older version of /system/lib/webcore.so to get video to play inline by default? Nov 12 20:00:20 - Element type "TableLayout" must be followed by either attribute specifications, ">" Nov 12 20:00:27 i totally am closing this element Nov 12 20:00:50 http://pastebin.com/U5ERz9ta Nov 12 20:01:10 can anyone comment on why this is giving me a problem on line 18 Nov 12 20:01:10 You're missing a > Nov 12 20:01:12 Like it says Nov 12 20:01:58 i closed table row tho Nov 12 20:02:07 You didn't close TableLayout Nov 12 20:02:07 i close it in line 30 Nov 12 20:02:13 Line 17 Nov 12 20:02:14 Add a > Nov 12 20:02:20 i closed table layout on line 60 tho Nov 12 20:03:06 did i not? Nov 12 20:03:16 21:02 Line 17 Nov 12 20:03:16 21:02 Add a > Nov 12 20:04:46 If this channel (#android-dev) is where developers who work on apps for Android chat, where do developers chat that actually develop Android itself? Nov 12 20:04:59 not on irc, generally Nov 12 20:05:16 In their office at google Nov 12 20:05:24 check out the android-platform, android-contrib, android-building google groups Nov 12 20:05:43 SimonVT++ Nov 12 20:06:06 simon Nov 12 20:06:13 canadiancow / SimonVT - the new Nook HD+ is 1920 x 1280 (1280 x 800dp)(ish) Nov 12 20:06:39 http://pastebin.com/ZdSjiAsy Nov 12 20:06:43 line 18 has a > at it Nov 12 20:07:22 Noone said line 18 Nov 12 20:07:54 eclpise did :( Nov 12 20:08:07 preds, so if it's 1280x800dp, then it's only w1200dp in landscape mode Nov 12 20:08:17 when it's portrait it's w800dp Nov 12 20:08:30 and it's always sw800dp Nov 12 20:08:45 ya, and the issue here is actually I have w1200dp-land and h1200dp-port resources Nov 12 20:08:58 the w1200dp-land works fine, the h1200 doesn't Nov 12 20:09:24 this works on other 1280 devices though (asus tfxxxt) so I assume they've fucked with something Nov 12 20:10:10 going to measure the view in code and see what it reports itself as.. Nov 12 20:10:25 you should be able to get the exact configuration of the device Nov 12 20:13:16 greets Nov 12 20:14:01 do any seasoned android developers have personal recommendations for html5 app frameworks for android? Nov 12 20:14:38 SimonVT, , thank you Nov 12 20:14:48 i have checked more examples of code to find the solution Nov 12 20:15:11 now i feel like an idiot Nov 12 20:15:15 You don't need to read examples, you just need to learn xml syntax Nov 12 20:15:25 dude i could have swore there wasnt a closing > there Nov 12 20:15:44 im relying too much on the book i am learning from Nov 12 20:17:47 roger_rabbit, why not just make it a website Nov 12 20:18:06 i want it to be installable via the app store and support push alerts Nov 12 20:19:34 a website would suffice, except I need a daemon to listen in the bg for emergency alerts, then go fullscreen when it recieves one Nov 12 20:19:41 roger_rabbit: GCM? Nov 12 20:19:54 also would like it to run as default screensaver and lock screen Nov 12 20:20:06 GCM Nov 12 20:20:08 * roger_rabbit googles it Nov 12 20:20:33 google cloud messaging... Nov 12 20:20:39 yeah Nov 12 20:20:43 that's for the alerts Nov 12 20:20:51 that lock screen will torment you tho Nov 12 20:21:00 i thought there may have been an html framework of the same initals sorry Nov 12 20:21:34 * TheFred goes to check pizza Nov 12 20:30:37 are there any caveats i need to keep in mind when setting a menuitem icon? i've got a drawable and have set it but the menu item shows up blank. Nov 12 20:31:24 SimonVT: did u receive my last msg? Nov 12 20:34:52 damn.. in some phones the canvas calls to draw no simple paths don't work. :/ Nov 12 20:35:43 DeviantPeer, damned fragmentation Nov 12 20:35:53 damned carriers, and manufacturers Nov 12 20:36:11 Sculptor: I only have a htc desire here with me, with a rom that might be the problem... Nov 12 20:36:25 meh, i don't take custom roms into account Nov 12 20:37:32 Sculptor: but drawPath with a Path with quad doesn't seam to work. Nov 12 20:37:38 damn Nov 12 20:37:56 it works ok in the emulators from 2.1 to 4.1 :D Nov 12 20:38:16 sad Nov 12 20:38:38 it's a bit anoying... because quads (and I guess the other curves) are native Nov 12 20:38:49 but I would guess this to be a rom problem. Nov 12 20:39:19 make a small test case, and people will run it Nov 12 20:39:32 I can do that. Nov 12 20:40:55 but not today. Nov 12 20:41:02 :) Nov 12 20:41:35 i once discovered a sin() problem as problem of a GUI issue :) Nov 12 20:41:45 this took me ages to find Nov 12 20:42:31 Hey, is there any way to start an activity from an UncaughtExceptionHandler? I looked at Acra's source and they seem to use a toast. I want an activity. I tried wrapping it in Looper.prepare() etc in a thread, but no matter what I get an AndroidRuntimeException: cannot start activity from non-activity context. Is there a trick I can use? Would starting a service to start the activity work? Nov 12 20:44:24 Unless a Service is an Activity, I'd say no Nov 12 20:45:18 Ah, I found the answer. Nov 12 20:45:26 You write the data to a file then check for it when the app is restarted. Nov 12 20:45:42 wonder how Launcher is started from the zygote.. totally not a usable solution here, just curious now Nov 12 20:46:34 tdignan: yeah, when you get an UncaughtExceptionHandler, your app is now dying and you can only handle shutting things down. Nov 12 20:48:28 SimonVT: i have a service that gets data from a C# webservice (ksoap) broadcasts the values through an intent. A broadcast receiver that receives that value and stores it, and an Activity that registers that broadcast receiver and get the value from it in a AsyncTask. The problem im having is that im getting an exception thrown in one of the threads any ideas? Nov 12 20:49:06 Check the stacktrace, solve the problem Nov 12 20:49:16 jokr: learn to code unit tests Nov 12 20:52:50 i have been using breakpoints to search through Nov 12 20:53:34 if I have a RelativeLayout and I have 2 identical items inside it, one set wtih alignParentLeft="true" and the other with alignParentRight="true", is there a way I can stick another layout (perhaps a LinearLayout) in the space between those two guys and have it grow to fill that space? Nov 12 21:00:43 SimonVT: thanks, for your time Nov 12 21:02:08 is there a trick to getting the Graphical Layout of an xml to display a custom view at the proper size when it contains a drawable? For some reason, this drawabe is showing up huge on the graphical layout Nov 12 21:03:58 tnzr: for your first question, try toRightOf=id of the left-aligned item, toLeftOf=id of the right-aligned item Nov 12 21:04:44 for your second question i'm not sure what you mean, can you detail please? Nov 12 21:05:36 ivdorelian: cool will do.. the second question is more of an eclipse thing I guess..the graphical layout of this layout i'm building is showing one of the custom views as all blown up to some way large size Nov 12 21:05:46 so the preview looks nothign like it does on the device Nov 12 21:06:30 ah Nov 12 21:06:40 sorry, i'm not familiar with eclipse Nov 12 21:06:54 yeah no worries..it was kind ofa shot int he dark :) but your first answer worked, thanks! Nov 12 21:06:59 np Nov 12 21:09:11 humm.. it seams that the interpretation of Matrix.transform is also a bit random. It may or may not destroy the path provided. Nov 12 21:09:15 lol Nov 12 21:09:18 this is fun Nov 12 21:10:12 does anyone know where I can find out more info about the device-specific key that was newly added to JellyBean? Nov 12 21:10:21 Sculptor: and that's why the path were not being drawn on the device. Nov 12 21:10:30 I always see summaries of it, but never any detailed information on how it works Nov 12 21:10:44 sorry, was watching london finals Nov 12 21:10:55 scrolling up Nov 12 21:11:19 ooook Nov 12 21:11:28 Sculptor: using Matrix.transform (origPath, destPath) doesn't work. And when trying to use a copy with new Path(orig) it also doesn't show the path. Nov 12 21:11:47 Sculptor: no prob. keep watching the telly Nov 12 21:11:50 :D Nov 12 21:12:45 sleepster: I believe Android_ID is also a device-specific key but it wasn't added on jellybean. Nov 12 21:13:15 thanks KaiKai Nov 12 21:14:02 sleepster: are you talking about encrypted APKs or something else? Nov 12 21:14:10 sleepster: what you should note though, is it can be changed but it is pretty complex procedure for a casual player Nov 12 21:14:17 evancharlton: you can encrypt your apks? Nov 12 21:14:30 evancharlton, yeah that's the one :) Nov 12 21:14:53 evancharlton, I am trying to find a way to read the encrypted APKs so I can scan them Nov 12 21:15:03 I am writing a piece of security software that requires scanning APKs Nov 12 21:15:17 and if they are encrypted, then I am pretty much screwed :( Nov 12 21:15:44 I have access to the entire AOSP as I am making system modifications to handle this problem Nov 12 21:16:07 so I was thinking that I can decrypt it just to scan it, and then encrypt it and leave it secured on the device Nov 12 21:16:55 the unencrypted APK is in /mnt/asec/packagename-1/pkg.apk Nov 12 21:17:03 can't access it as a normal user but at the system level you can Nov 12 21:17:58 how can you encrypt the apk? in jvm one could use a special class loader for that, but with dalvik I don't even know if that's possible. Nov 12 21:18:10 thanks kevinb Nov 12 21:18:24 but if one can inject a classloader in a app then all hell will break loose... :D Nov 12 21:18:37 DeviantPeer, I can make modifications to the OS for this so I would just create a system app to access the files Nov 12 21:18:51 or open the unecyrpted APK and map the file into the regular Apps process space Nov 12 21:18:54 so it can access it Nov 12 21:19:00 sleepster: ahh.. so the OS still has access to the encryption key Nov 12 21:19:05 got it. Nov 12 21:19:22 well that part I am not too sure about :) but from kevinb's comment above, it looks like that is the case Nov 12 21:19:22 but that doesn't add much to security... Nov 12 21:20:16 dalvik must be able to load a class.. for that it need to read it from the encrypted apk. Nov 12 21:20:24 but I'm on very thin ice here.... Nov 12 21:21:25 DeviantPeer: you can use classloaders in app Nov 12 21:21:37 i've done it before to implement plugins Nov 12 21:21:54 tdignan: nice. never tried with dalvik Nov 12 21:22:02 DexClassLoader iirc Nov 12 21:37:52 lov: code for handling those exceptions is working nice now :) Nov 12 21:38:00 and it's several SLOC shorter than acra Nov 12 21:38:28 of course, it doesn't have most of acra's features. but I consider that another plus. Nov 12 21:45:18 Why does the kindle fire hd 7" have a density of 1.5, while the Nexus 7 has a density of 1.33125? Nov 12 21:45:59 where can i find a list of valid values to use when trying to configure the Nov 12 21:46:20 android:displayOptions attribute for my action bar in styles.xml? Nov 12 21:46:42 I know from other examples I can use things like 'showHome|useLogo|disableHome' Nov 12 21:47:03 but is there like a definitive list somewhere that has all of the options? Nov 12 21:50:28 im drawing on top of a listview, and i've made an implementation work with mWindowManager.addView() -- i just stumbled across ListView.DispatchDraw(), anyone out there ever faced with the choice to use either? which one did you use? why? Nov 12 21:51:50 iirc i used WindowManager.addView() because i had remembered seeing it in one of the API demos --so i got it from there Nov 12 21:52:35 luxurymode: classic android ballsup vis-a-vis "logical density". Kindle is probably trying to stick to one of the quantized buckets (240ppi) whereas nexus 7 is sneakily trying to behave more appropriately. Nov 12 21:54:27 how do you find people to work with for android projects? Nov 12 21:55:09 the same way you find people to work with for any project Nov 12 21:58:57 kbs, N7 is using one of the quantized buckets Nov 12 21:58:59 tvdpi Nov 12 22:01:39 canadiancow: ah, ok. It's the kindle that's incorrectly doing the 240dpi bucket then. Nov 12 22:01:50 I really hate dp Nov 12 22:02:34 dp is awesome Nov 12 22:02:34 kindle isn't an android device, so it can do whatever it wants Nov 12 22:02:41 it doesn't have to adhere to the cdd or pass the cts Nov 12 22:03:19 dp is not good because the same 7inch device with different resolutions result in differently sized controls Nov 12 22:03:27 could someone help me with my shader? it works fine on desktop, but behaves really strange on android Nov 12 22:03:48 kbs, thats becasue amazon did it wrong Nov 12 22:03:57 canadiancow: not talking about the kindle fire Nov 12 22:04:08 thats becasue did it wrong Nov 12 22:04:34 if you have device A, a 7inch device with 160ppi, and device B, a 7 inch device with 180ppi, they both get quantized to the 1f density bucket Nov 12 22:04:54 true Nov 12 22:04:59 therefore, a 160dp line is 1 inch on device A, and smaller than 1 inch on device B Nov 12 22:05:10 "to the 1f density bucket" <-- ? Nov 12 22:05:34 evancharlton: the problem is that logical densities on android are quantized Nov 12 22:06:50 evancharlton, it's treated as mdpi == 160dpi Nov 12 22:06:57 so everything assumes it's 160 Nov 12 22:07:07 right, but what's 1f? Nov 12 22:07:19 hi all! IS it possible to save fragments's backstack on onConfigurationChange in painless way? Nov 12 22:07:20 (1.0 float) Nov 12 22:07:46 why didn't you just say mdpi? Nov 12 22:07:47 but okay Nov 12 22:08:19 the displaymetrics.density == 1 for mdpi Nov 12 22:08:21 iirc Nov 12 22:09:39 yeah. the 'logical density' is 1 for a 160ppi device, and everything keys off that. Unfortunately, because these densities take discrete values, devices that fall in-between either have too small, or too large controls. Nov 12 22:11:57 hello all Nov 12 22:12:17 although, as a windows developer, the alternative is arbitrary dpi values whihc are a PITA Nov 12 22:12:38 How do you handle configuration changes and persisting fragments backstack? Nov 12 22:12:56 i'm trying to use jsoup to parse some html, but failling... Nov 12 22:13:02 I personally think the best alternative is css pixels, which are defined to be both resolution and device-size/distance independent. [it's an angular dimension] Nov 12 22:13:04 can anyone help out? Nov 12 22:13:07 pls Nov 12 22:13:30 but pts on android at least gets you out of the resolution gotcha Nov 12 22:14:08 couldn't you manually resize everything to a percentage of the screen? that way nothing should be too small or too large on in-between devices Nov 12 22:14:52 ivdorelian: right -- you can certainly code it by looking at the true screen ppi, and scale stuff -- but wouldn't it be better if this was a system-wide solution? :-) Nov 12 22:15:20 like I said, pts gets to the point where you can avoid the resolution gotcha already. Nov 12 22:15:43 so, 72pts is always 1 inch on all android devices (well, that's the theory at least.) Nov 12 22:16:23 but this has the gotcha that 1 inch on a tv sceen is probably not the right answer compared to 1 inch on a mobile phone. hence, the best solution might be somethig like the css3 standard pixel Nov 12 22:17:06 yup, true Nov 12 22:21:02 how do I import a jar java library into my project? Nov 12 22:24:14 is the device specific-key related to the IPackageManager::installPackageWithVerification ? Nov 12 22:24:28 can't seem to find the source for this unfortunately Nov 12 22:29:46 http://pastebin.com/ewdYWRL0 Nov 12 22:30:10 why does nothing happen when i click my datepickerdialog with the variable known as btDate? Nov 12 22:31:34 is it possible ina RelativeLayout to have a View position itself below an object with its vertical centerline aligned with the object it is located under? Nov 12 22:34:26 Hello Nov 12 22:34:41 i'm idiot Nov 12 22:34:52 and you are a sucker Nov 12 22:34:55 bitches Nov 12 22:35:39 well then Nov 12 22:35:50 thanks for the reality check, fxzrsygh Nov 12 22:37:01 Hello World button pressed Nov 12 22:37:28 yes is a test just to see if it will type of Nov 12 22:38:10 twisted fork handles north fork handles Nov 12 22:38:29 note de cuba los electoral window Nov 12 22:38:47 window exit Nov 12 22:39:25 ... someone left a markov chain on? Nov 12 22:39:33 It seems we're approaching the end of the world :) before the maya date Nov 12 22:39:46 sorry, wrong window Nov 12 22:39:57 p_l: yes :( Nov 12 22:43:34 any of you ever use AllJoyn? Nov 12 22:43:37 don't. Nov 12 22:43:45 adq: well, mayans didn't prophesize an end of the world. they planned a huge party for equivalent of a millenial "new year" celebration Nov 12 22:44:09 dudes and dudettes, the mayans didn't prophesize anything. their slab of stone just ran out of space. Nov 12 22:44:45 maraz: actually it didn't, they supported wrap-around and extensions, and there are mentions of celebrations planned way past 2012 Nov 12 22:44:46 p_l, yeahhhhh! was joking :-) Nov 12 22:44:58 p_l: i know. Nov 12 22:45:00 :) Nov 12 22:45:18 maraz: but it's fun to poke in those doomsayers ;D Nov 12 22:45:22 indeed it is Nov 12 22:46:25 p_l, I think it's psychological and each generation of humans see the end of the world or the doom in their own window of lifetime Nov 12 22:47:06 hey folks, when it comes to handling user editable layouts is json and databases the way to go? Nov 12 22:47:26 i think we're doomed in the next few decades, heh. speed it up :) Nov 12 22:47:48 g00s: you want moar doom? Nov 12 22:47:55 http://www.youtube.com/watch?v=IM1-DQ2Wo_w Nov 12 22:47:56 :D Nov 12 22:48:27 no, see, thats MOAR doom !... Nov 12 22:48:35 ahah Nov 12 22:49:11 i would rather our androids overthrow us - at least we'd know its 'our' fault... Nov 12 22:49:34 they would probably crash in the process Nov 12 22:49:47 TheFred: sounds neat :-) how are you representing the layout within the code? Just as a set of plain java objects? Nov 12 22:49:58 p_l, g00s & TheFred: http://korben.info/wp-content/uploads/2012/03/fin-du-monde.jpg (just for relaxing) :) Nov 12 22:50:19 kbs: to be honest im not sure - im getting a lot of user requests so im exploring sane options Nov 12 22:51:06 but at this stage im strongly considering xml Nov 12 22:52:04 TheFred: gotcha. any textual format is probably better than serializing objects, but you probably already are way past that pothole :-) Nov 12 22:53:31 kbs: what im aiming for is a view that the uses can edit the button (think programmable remote control) Nov 12 22:53:40 *buttons Nov 12 22:54:09 aah. So it's for the functionality behind the controls, rather than the layout itself? Nov 12 22:54:51 kbs: yes, so once a command is entered against a button the button name/label can then be called from voice recognition Nov 12 22:56:19 that's a neat idea. [As an fossilized lisper, i'd love to see more actual programmable uis, but I have a feeling this isn't the direction that would make sense for your app] Nov 12 22:57:35 hmm, wonder if I can release an almost unstarted app by Wednesday afternoon? Nov 12 22:57:53 kbs:then you'd love the end result: integration between my app and AutoKey for ubuntu Nov 12 22:58:12 Estel: dont try it, it'll end in tears Nov 12 22:58:53 Im staying you cant do it, but in the past when uder pressure simple mistakes can cause a huge about of re-work and/or embarresment Nov 12 22:58:53 Estel, it's do-able if you have already lot of refactorisable bricks Nov 12 22:59:00 and if you don't plan to sleep a lot :) Nov 12 22:59:18 sleeps for the week, not the weekend? Nov 12 22:59:28 I think I can reuse some code from another project Nov 12 22:59:42 does Android Billing have to be implemented statically? Nov 12 22:59:47 for sure, you should shutdown irc :p Nov 12 22:59:56 lol, so true Nov 12 23:00:28 xD Nov 12 23:00:40 KaiKai, http://developer.android.com/guide/google/play/billing/index.html I don't know more than that :| Nov 12 23:00:50 I'll start at work tomorrow; far more sensible Nov 12 23:01:25 procrastination is already there lol Nov 12 23:01:29 +1 Nov 12 23:04:47 heh: it seems someone else hit a problem with dynamic views from databases: rotations. Nov 12 23:09:36 adq: good one :) Nov 12 23:11:43 http://pastebin.com/ewdYWRL0 Nov 12 23:11:44 why does nothing happen when i click my datepickerdialog with the variable known as btDate? Nov 12 23:13:54 factory80: you need to insert logging to help debugging Nov 12 23:14:37 factory80: method names are case sensitive Nov 12 23:14:44 ie, you have OnCreateDialog Nov 12 23:14:48 but you need onCreateDialog Nov 12 23:15:00 i did not know this :( Nov 12 23:15:14 well caught Nov 12 23:15:17 if you put @Override above the method declaration it'll error if you're not overriding a method Nov 12 23:15:23 which is useful in catching these kind of errors Nov 12 23:15:40 also, showDialog is deprecated Nov 12 23:15:45 MDijkstra, so line 29 needs to have onClickListener Nov 12 23:15:52 no Nov 12 23:16:04 and doesn't my @suppresswarnings take care of showDialog being depracated? Nov 12 23:16:13 line 45 needs to be: Nov 12 23:16:17 @Override Nov 12 23:16:28 protected Dialog onCreateDialog(int id) { Nov 12 23:16:42 does anyone know if there are any good tutorials on providing an account system that performs background sync that an application tha can talk to? Nov 12 23:16:52 I see what you are saying Nov 12 23:16:54 d.a.com seems a bit sparse in information in thsi area Nov 12 23:16:54 factory80: it takes care of the warning, it doesn't take care of the fact that the method is deprecated Nov 12 23:17:03 i keep getting crashes caused by RuntimeException: startPreview failed at android.hardware.Camera.startPreview(Native Method) Nov 12 23:17:10 factory80: ie, if your engine warning light is on you can choose to ignore it Nov 12 23:17:10 MDijkstra, , what do you do to get around the method being depracated? Nov 12 23:17:20 this code was working an hour ago, no code changes Nov 12 23:17:28 factory80: use the new way of showing dialogs Nov 12 23:17:30 device has a rear camera Nov 12 23:17:33 through dialogfragments Nov 12 23:17:41 but if this is simply an exercise it's alright I guess Nov 12 23:17:49 MDijkstra, i can't, this is a assignment where i am required to follow a pretty narow set of guideliens Nov 12 23:17:52 deprecated simply means this method will be removed in the future Nov 12 23:18:08 if that's not a problem in this case it's fine to suppress the warnings Nov 12 23:18:20 we used gallery in a previous exercise and i thought we just did the @suppresswarnings and it took care of it Nov 12 23:18:31 hy all Nov 12 23:18:38 now that the crash has happened once, it happens every time i try to open the camera Nov 12 23:18:40 how can I change the max value of a sekkbar? Nov 12 23:18:43 *seekbar Nov 12 23:18:47 and then when it crashes, it doesn't close the app Nov 12 23:19:49 my process is still active, except there are other undefined behaviors happening Nov 12 23:20:21 do you guys just keep doing exercises over and over to get in the habit of coding right? Nov 12 23:20:44 factory80: it's just experiance Nov 12 23:21:06 I still do periodic test apps for things and i've been a developer for 15 years Nov 12 23:21:15 yeah, you learn by doing if you understand the fundamentals Nov 12 23:21:35 there are things that nearly every developer runs into Nov 12 23:21:40 factory80: what exercises? Nov 12 23:22:08 any exercises.....that ask you to use some widget or this or that Nov 12 23:22:17 sometimes its good to revist some tutorials, knowledge its like muscles: use it or lose it Nov 12 23:22:55 i'm frequently having to do new stuff so learn as part of that Nov 12 23:23:08 yeah, and the most important android API page is (IMO) http://developer.android.com/guide/components/fundamentals.html Nov 12 23:23:17 +1 Nov 12 23:23:21 dang. Nov 12 23:24:18 I feel like Android lacks stability at times though with their docs. Noticed it very much while trying out Android In App Billing Nov 12 23:24:52 I'm thinking about doing a blog series about Android for iOS developers Nov 12 23:25:14 since a lot of people are confused about the application model in android, assuming it to be equal to iOS Nov 12 23:28:50 howdy Nov 12 23:29:24 factory80: find something unique and try to implement it Nov 12 23:29:47 doesn't even have to be new, just not something the platform already provides Nov 12 23:31:53 whats that, karakuri Nov 12 23:32:32 he was asking about exercises to get better at coding Nov 12 23:32:40 oh Nov 12 23:32:49 reddit.com/r/dailyprogrammer Nov 12 23:33:30 www.codecademy.com also google Code Katta n do those Nov 12 23:33:36 Hello, is somebody who can help me with motion events?:) Nov 12 23:36:03 can anyone help a newbie? whats wrong here? http://pastebin.com/9nCPpGyc Nov 12 23:39:20 anyone know of a good place that covers step by step tuts for android dev? there is other stuff like learnpythonthehardway etc was hoping there where some kind of site dedicated to teach android dev.. except developers.android.com Nov 12 23:42:01 so the CameraPreview in API Demos, if I run it and then turn the screen off and on again, i return to the camera preview. Nov 12 23:42:29 but in my app if i turn the screen off while in my camera preview activity, it crashes Nov 12 23:42:51 vascobnunes: networking in main thread, "teste" not defined in the scope ... the code is broken Nov 12 23:42:51 I've got an ImageView with width=250dp and height=wrap_content. When I load an image that is tall and thin, it fills the entire height of the image view, and in centered horizontally within the 250dp width. How can I make it align to the right if it isn't filling the whole width? Nov 12 23:44:03 ejcweb: try setting android:scaleType to fitStart? Nov 12 23:44:13 ecjweb have you tried gravity? and android:scaletype Nov 12 23:44:34 hmm, image view doesn't appear to have gravity Nov 12 23:44:48 shrug :-) Nov 12 23:44:51 interesting Nov 12 23:45:03 was just a guess Nov 12 23:45:15 mine is too, but i feel like i played with that before... Nov 12 23:45:37 alankila: can you explain? Nov 12 23:45:37 I guess in the worst case I could resize the image view width to match the actual image width, but that doesn't seem very elegant. Nov 12 23:45:40 vascobnunes: no Nov 12 23:46:48 alankila: no? Nov 12 23:47:48 no. Nov 12 23:48:48 why not resize the image Nov 12 23:48:54 real simple function Nov 12 23:49:34 alankila: alright Nov 12 23:49:38 I guess what I really want is max-width = 250dp; I don't know if there is such a property for views though. Nov 12 23:50:19 ejcweb: a question: why can't you just make the image wrap_content as well and put it in a container that allows setting its gravity to right Nov 12 23:51:01 alankila: Because I want the image to scale down to 250dp width when it is larger than that. Nov 12 23:51:14 The image could be of any dimensions. Nov 12 23:53:37 In fact, I hope that simply setting layout_width="wrap_content" and android:maxWidth="250dp" will achieve what I want. Nov 12 23:55:47 hello Nov 12 23:55:55 I need some help Nov 12 23:56:16 try asking Nov 12 23:56:29 you;ve now wasted the time where I could have answered :) Nov 12 23:56:44 can i target android 2.2 with the latest api Nov 12 23:57:05 as long as you install that build target Nov 12 23:57:12 this4: see minSdk Nov 12 23:57:50 all my apps target 8 but I;ve just installed fresh with teh 8, and 16 apis Nov 12 23:58:00 so I need to download API 8 for 2.2 and API 15 for ICS Nov 12 23:58:15 8 stuff will run on ics Nov 12 23:58:32 just for ICS specific stuff, you need to install that build target and target it as needed Nov 12 23:59:30 this4: you should be able to build a program in api16, and then just set minsdk to 8 in the manifest. Provided you did not use features of the SDK that aren't available on api8, it should run on api8 Nov 12 23:59:54 still confused... I am new to android...(what a dumb) Nov 12 23:59:56 the reverse is also possible Nov 13 00:00:11 that is, simply install sdk8 and let the device's natural backwards compatibility handle it Nov 13 00:00:17 install 8 built target, set target api and minapi level to 8 Nov 13 00:00:20 enjoy :) Nov 13 00:01:38 ok better ... I want to target 2.2 and 4.03 so I need API 8 and api 15 correct? Nov 13 00:02:24 that's what the sdk manager says :) Nov 13 00:02:32 this4, what do you mean "target" Nov 13 00:02:56 build apps that run in 2.2 and 4.03 ICS Nov 13 00:03:06 ok no you dont need two SDKs for that Nov 13 00:03:15 if you want a good looking app and know what you're doing, you just need 15 Nov 13 00:03:21 if you dont know what you're doing, use 8 Nov 13 00:03:48 I need to execute a subclassed asynctask through a static method any ideas? Nov 13 00:04:18 got u now thanks.. Nov 13 00:04:36 i have done some more research Nov 13 00:04:38 KaiKai, what does that mean Nov 13 00:04:47 new WhateverSubclass().execute(); Nov 13 00:05:00 how can I achieve to set a float value to be 0.7 instead of 0.694342424 ? Nov 13 00:05:18 gregtom6: when you specify 0.7, you get the closest approximation to 0.7 there is available in the base-2 notation Nov 13 00:05:30 gregtom6: I highly doubt your attempts to set a float to 0.7 are resulting in it being ~ 0.694. Nov 13 00:05:36 http://pastebin.com/xQHBEwfN - my text output is for when a user selects a date should say "You are set for..." Nov 13 00:05:50 but instead the text output is garbled Nov 13 00:06:00 I want to get that round Nov 13 00:06:03 well I have arguments coming in from a broadcast receiver and the method being called is static, and I need to do take those arguments and verify them on a server so I need to do a HTTP post with asynctask. The problem is I can't make the asynctask static because I need to pass Context to the Asynctask. Nov 13 00:06:07 I don't know how to say it in english Nov 13 00:06:13 gregtom6: then round it to 1 digit using something like String.format Nov 13 00:06:16 or MessageFormat.format Nov 13 00:06:19 I want a shorter value Nov 13 00:06:32 another one is in the SDK manager v 18 under ubuntu I don't see sample apps?? Nov 13 00:06:35 gregtom6: binary floating-point values will never be exactly 0.7. Nov 13 00:06:49 So basically, I cant execute my asynctask froma static method because the asynctask is not static Nov 13 00:06:53 it doesn't should be Nov 13 00:06:56 gregtom6: see String.format("%.1f", x) Nov 13 00:07:13 the output is you are set for 22-android.widget.TextView@40ffcdd8-2012 Nov 13 00:07:20 gregtom6: base-2 notation is like that. You can't represent 1/3 exactly in base-10, either. Nov 13 00:07:40 because it's like 0.333... and never terminates. Think of base-2 as something similar. Some values are exact in it, others are not. Nov 13 00:08:02 another Q plz Nov 13 00:08:18 in the SDK manager v 18 under ubuntu I don't see sample apps?? Nov 13 00:09:19 v18? Nov 13 00:09:22 waht are you looking at Nov 13 00:09:24 from the android web they also have sample and doc?? Nov 13 00:10:11 yes SDk Manager rev.18 Nov 13 00:11:21 ok thanks for your help I will try another time.. Nov 13 00:12:50 go read d.android.com Nov 13 00:13:28 thanx bye Nov 13 00:13:59 i have RelativeLayout and inside i have a small imageview on top of a larger imageview. the larger imageview changes size according to screen resolution, but i want the smaller imageview to stay in a specific location inside the image Nov 13 00:14:34 how to do this with RelativeLayout or other layout? Nov 13 00:16:52 be more specific Nov 13 00:18:17 what are my options for making my own settings screen that overlays the main view and doesn't take up the whole screen? Nov 13 00:18:25 do i have to subclass alertdialog or is there another way? Nov 13 00:18:59 the larger image has a small box and inside this box i want the smaller image view Nov 13 00:19:10 "inside" Nov 13 00:19:13 i mean on top Nov 13 00:20:58 the larger imageview is set to match_parent Nov 13 00:21:13 so it changes sizes according to screen res Nov 13 00:21:37 ultra-, dialogfragment Nov 13 00:21:39 the smaller imageview should be always inside the box which is in the image Nov 13 00:21:51 ok i'll look it up, thanks Nov 13 00:22:10 ant0n10, so you just want like...a framelayout? Nov 13 00:22:16 with an image on an image Nov 13 00:23:58 but i cant place the small image where i want Nov 13 00:33:51 why not Nov 13 00:33:53 where do you want it Nov 13 00:35:08 hey now canadiancow there are children in here Nov 13 00:39:38 ok i can, but still not what i wanted Nov 13 00:39:58 i use dp Nov 13 00:40:09 so i set marginLeft to some value and marginTop Nov 13 00:40:11 when using inflater.inflate, how can i pass in a class of my own that subclasses relativelayout? Nov 13 00:42:38 whats wrong with this? http://pastebin.com/Ve4yBy3i anyone? Nov 13 00:43:08 vascobnunes stacktrace would be nice Nov 13 00:43:10 or maybe Nov 13 00:43:12 waht its not doing Nov 13 00:43:37 what's wrong is that you're doing network on the main thread Nov 13 00:43:51 networking in main thread and some bugs with the "testa" Nov 13 00:44:03 oh wait those are gone now Nov 13 00:44:10 networking in the main thread :o Nov 13 00:44:40 networking on the main thread is like ass-to-mouth Nov 13 00:44:57 JakeWharton great for you, not so great for the woman? Nov 13 00:45:00 * Jug6ernaut could do without that vison Nov 13 00:45:02 j/k Nov 13 00:45:02 ok, so networking should be something to happen when user clicks button (for example)? Nov 13 00:45:14 just needs to happen on another thread Nov 13 00:45:19 vascobnunes: it has to be asynchronous relative to the UI Nov 13 00:45:36 vascobnunes: see AsyncTask, learn to love-hate it like the rest of us Nov 13 00:45:43 lol Nov 13 00:45:56 AsyncTask is a great way to delegate operations to a background thread but don't use them to scale all of your asynchronous operations across the entire app Nov 13 00:46:26 wonder if we can expect android to adopt newer versions of java Nov 13 00:46:34 use some more advanced features of the newer os Nov 13 00:46:35 er Nov 13 00:46:39 newer sdks Nov 13 00:47:03 ron_frown glwt Nov 13 00:47:16 haha Nov 13 00:47:23 I wasnt getting my hopes up Nov 13 00:47:31 dont know if its even any better Nov 13 00:47:38 hehe Nov 13 00:47:39 me nether Nov 13 00:47:40 I just want to have a layout with a table that gets updated (from a website) when user connects to net Nov 13 00:47:44 Java 7 wouldn't add too much Nov 13 00:47:48 tho i hear java8 brings some cool stuff Nov 13 00:47:50 but newer c# and such has some BITCHIN async stuff Nov 13 00:48:08 Java 8 probably will have some cool stuff (and Java 9) Nov 13 00:48:32 I didn't work out how the C# new async stuff actually worked. I guess I missed the point somehow. Nov 13 00:48:35 * Jug6ernaut personally is waiting for java 15 Nov 13 00:49:03 all I saw was a lot of warnings that summarized to 'this stuff is powerful but tricky' and that's a major turn-off for me. Nov 13 00:50:57 also the 'await' part was really weird. Usually you don't do it this way. You give a callback to any async system, and the callback fires when it can. awaiting rather defeats the whole point Nov 13 00:51:11 hey now canadiancow there are children in here Nov 13 00:51:12 oh you Nov 13 00:51:20 now you have one thread doing the work and another stuck waiting for it -- barely better than just doing the work in the main thread in the first place Nov 13 00:51:23 :o Nov 13 00:51:38 alankila how to use it or how it works internally? Nov 13 00:51:53 ron_frown: just confused about the whole design notion, especially the 'await' part. Nov 13 00:51:58 for reason I explained Nov 13 00:52:24 that stuff is more for the being able to execute something and expect a response back without necessarily having to have callbacks Nov 13 00:52:56 execute a synchronous method that wraps asynchronous functionality Nov 13 00:53:08 maybe they just do everything in this async style and the execution doesn't just block in await but rather resumes elsewhere where it can Nov 13 00:53:11 in that case I can kinda understand it Nov 13 00:53:36 just look at android shit Nov 13 00:53:54 where the model is setting up callbacks... its SUPER fucking easy for shit to get out of hand quick Nov 13 00:54:01 with timing etc Nov 13 00:54:35 I don't see that the async-await is any different from setting up callbacks. In both cases the program's execution is partially out of order Nov 13 00:54:41 i'm trying to subclass DialogFragment… in the example, it uses this: View view = inflater.inflate(R.layout.fragment_edit_name, container); Nov 13 00:54:54 but I understand there's *less* callbacks to write. One of java's real bummers is that it doesn't have nicely usable method references. Nov 13 00:54:56 rather than use r.layout.fragment_edit_name, how can i use my own layout that i've made? Nov 13 00:55:13 so you can't just say "yo, call foo() when done", you pass a new Runnable() etc. that calls foo(). That's so much visual noise. Nov 13 00:55:15 i have a relativelayout that i'm trying to use, but i get errors related to xml Nov 13 00:56:05 alankila consider any sort of tiered code (probably not ideal for android anyway) Nov 13 00:56:11 if java would have method and property references, it'd immediately start rocking in my mind, because making anonymous inner classes just for gluing shit together gets pretty old fast Nov 13 00:56:14 you may have to pass callbacks WAY down Nov 13 00:56:21 however Nov 13 00:57:19 ron_frown: yeah, i would like google to tell us wtf they are going to do with java Nov 13 00:57:34 what do you mean Nov 13 00:57:40 because of sun's shenanigans? Nov 13 00:57:44 i'm starting to see libraries that /should/ be usable on android but aren;t , because they use nio.2 or something Nov 13 00:58:14 and plus, he, why the fuck cant they tell us Nov 13 00:58:24 ? Nov 13 00:58:34 i mean, for an open source project, they leave us totally in the dark Nov 13 00:58:56 haha Nov 13 00:58:59 no roadmaps, adoption schedule (we'll support java x by Y), etc Nov 13 00:59:09 no documentation on the source much at all Nov 13 00:59:32 java 7 is definitely a support problem at the library level, because you'd need to ship parts of the class library somehow in your apk Nov 13 00:59:32 even the source generally isnt very full of comments etc Nov 13 00:59:48 I can imagine it's a problem, but not having java 7, 8, or what-have-you will be a major problem so that has to change Nov 13 00:59:50 is there a way to test what a "paid" app would do from within the emulator? Nov 13 01:00:23 like I'd like to pretend I was installing a paid app from the google store and see where everything goes Nov 13 01:00:25 if that makes sense Nov 13 01:00:48 doesnt to me Nov 13 01:00:51 its not gonna be different AT all Nov 13 01:00:56 than if you installed from adb Nov 13 01:02:19 now i'm testing out the LMAX disruptor library on android, and for some reason it seems to go tits up Nov 13 01:02:33 never heard of that Nov 13 01:02:34 but works fine on OpenJDK. this is becoming a major PITA Nov 13 01:03:08 isnt android java implementation jsut a subset of java anyway Nov 13 01:03:20 sometime i see a lib that looks cool, but i dont fully understand it - so I play around with it . that is the case with this one; typically you would use the disruptor pattern for something like software pipelines Nov 13 01:03:42 but it has a nice concurrency library that i am looking at Nov 13 01:04:06 ron_frown: well, yeah kinda, but Harmony … fucking harmony :X Nov 13 01:05:33 yep Nov 13 01:05:46 so the nexus 4 isnt going to be released at midnight? Nov 13 01:06:02 honestly I understand why java exists as a core for android... and that wasnt really even googles choice Nov 13 01:06:08 how do you make a pice code run in a new seprate thread from the main one ?.. Nov 13 01:06:18 but I think if it were in the cards licensing wise, c# and .net would be a much much much better solution Nov 13 01:06:39 hah, samsung galaxy S3 stores your google password in plain text in the s-memo apps sqlite db. fail Nov 13 01:06:58 lol, nice one Nov 13 01:07:01 i dont think samsung should be allowed to write software Nov 13 01:07:08 there needs to be some sort of international ban Nov 13 01:07:17 I've seen some of htc's source Nov 13 01:07:25 EVX: see asynctask for a packaged solution for this Nov 13 01:07:26 I would say the same for them Nov 13 01:07:50 ty Nov 13 01:08:24 all code is awful, I think the practical attitude is that does it work and fill user need? if yes, then whatever. There are no style points. Nov 13 01:08:38 at least only very few people care about the style points Nov 13 01:08:43 I do Nov 13 01:08:56 I'm not a nazi when it comes to style guidelines etc Nov 13 01:09:03 just the conceptual solution Nov 13 01:09:25 I like stuff to be elegant, and built well so that its a good foundation for future development Nov 13 01:09:34 obviously that cant always happen Nov 13 01:09:40 but some of this shit was... .bad Nov 13 01:09:42 alankila: i usually agree with you, but i dont think security is style points :) Nov 13 01:09:56 especially passwords in plaintext - no excuse Nov 13 01:10:03 EVAR Nov 13 01:10:19 there are no way to autologin with password without storing it in what is effectively plaintext. Nov 13 01:10:19 even if it was base 64 encoded or rot13 Nov 13 01:10:23 anything better than nothing Nov 13 01:10:27 hey peeps, I got a GNex i9250 today and the device isn't showing up in adb. I'm currently running OSX Lion Nov 13 01:10:34 alankila depends on the other end Nov 13 01:10:38 no matter how many layers of crypto there is, if it's automatically undoable, then all it amounts to is obfuscation. It's rather fundamentally at the same level. Nov 13 01:11:10 unreal31337 you got a vmware vm running? Nov 13 01:11:15 so the real question is: who can read that file? if everybody, then that's security fail. If only the application itself, then yawn Nov 13 01:11:20 @ron yeah I do Nov 13 01:11:30 should I close it? Nov 13 01:11:48 at the bottom make sure the android device or whatever is not connected to vm Nov 13 01:11:51 how can a layoutinflater inflate a custom layout that's not xml? Nov 13 01:12:04 ultra-: is that a trick question? Nov 13 01:12:16 nope Nov 13 01:12:18 layoutinflater, afaik, only works against some specific preprocessed xml crap Nov 13 01:12:30 for other cases, there's 'new FooView(context)' Nov 13 01:12:30 just closed it, about to see if it works Nov 13 01:12:51 ah… i was just looking at an example for something and didn't really put much thought into it Nov 13 01:13:12 still nothing... Nov 13 01:13:24 ah, then use getDialog().setContentView Nov 13 01:14:00 ultra-: if it accepts a View instance, I'm not sure. Might be it's hardwired to do the layoutinflater route every time. But you can get the root view/parent view, or set it Nov 13 01:14:03 ultra-, that is still going to take a View that has either been inflated or created in java Nov 13 01:14:31 passing a resource identifier to a layout will inflate that Nov 13 01:14:44 that passing in R.string.foo and check the exception Nov 13 01:15:06 setContentView() accepts a view Nov 13 01:16:25 it will accept either a View or a layout resource id Nov 13 01:16:26 I'm looking for some examples of clever ListView or GridViews in apps - anyone have any that come to mind? Looking for some inspiration. Nov 13 01:16:50 mdkess what are you trying to do Nov 13 01:17:01 roger_rabbit: from shroomery? Nov 13 01:21:15 yep i'm confused… i'm using this example: http://android-developers.blogspot.com/2012/05/using-dialogfragments.html Nov 13 01:21:42 and where it inflates the pre-made xml layout, i want to use my own layout that subclasses relativelayout Nov 13 01:22:27 then have your root view in the xml be Nov 13 01:23:57 Jug6ernaut, not really anything interesting, just exploring. Displaying a list of products, but really I'm looking just for some inspiration. Nov 13 01:24:28 look at all the google apps Nov 13 01:24:33 g+ Nov 13 01:24:45 even the google IO app was very well done Nov 13 01:25:31 ok thanks birbeck Nov 13 01:26:24 ultra-, did you understand that? i think your question has more to do with how to use a custom view in an xml layout than it does with dialogs, fragments or inflating Nov 13 01:26:52 it does… your answer isn't something i'm familiar with… very new to all of this, really Nov 13 01:27:10 i'm figuring out how to do it right now Nov 13 01:27:21 but yeah it does make sense Nov 13 01:27:28 ultra-, http://developer.android.com/training/custom-views/create-view.html Nov 13 01:28:06 that shows how to subclass a view and put it in an xml layout. then you inflate it just like any other view Nov 13 01:28:16 ok, thanks Nov 13 01:28:37 of course you can extend RelativeLayout instead of View Nov 13 01:29:52 yeah that's what i did Nov 13 01:30:12 that i'm familiar enough with, i'm just reading on how to use it via xml Nov 13 01:39:35 i am the worst at javascript Nov 13 01:41:11 canadiancow: i'm sure there is a microframework to help you with that Nov 13 01:41:26 i'll prefer a "ok it works now" and then i never touch it again Nov 13 01:41:29 :D Nov 13 01:41:36 my first attempt was failed Nov 13 01:41:45 it wouldnt ahve made it through a compiler Nov 13 02:32:07 im new to this so any help would be greatly appreciated. im working on the multiplayer app "collaborative writing", where players join a game with several players, and input sentences one at a time. after every player has submitted a sentence they collectively vote on which one is the best and that sentence gets selected to be a part of the story. They do the process over and over again Nov 13 02:32:07 so that a story develops. i have a webserver with a sql database, and i have to make use of GCM. i've been bending over backwards to organize the php and the tables in the simplest way possible. someone mentioned looking into ORMs, can anyone explain how they can help me? Nov 13 02:34:18 profligacy: wrong channel? You're asking about an ORM for a php application? Nov 13 02:34:27 then where should i be asking ? Nov 13 02:34:50 #php maybe? Nov 13 02:35:56 ********** Nov 13 02:36:13 Oh, now we all know maslen's password Nov 13 02:36:26 Sorry for asking twice; some time has passed, so there might be someone new online who could help me... I've written a GL shader that behaves nicely on desktop, but gives incorrect results on Android. Anyone experienced in those? Nov 13 02:36:26 hunter2 Nov 13 02:37:04 I wish there was some big UGLY error when you tried binding to a service that didn't exist (as per the manifest file) Nov 13 02:39:49 preds: no luck in #php Nov 13 02:40:38 profligacy: somebody responded to you in under a minute Nov 13 02:40:54 no preds Nov 13 02:40:58 that was the 2nd time i posted Nov 13 02:41:00 the same thing Nov 13 02:41:18 preds, somebody mentioned that i cna make use of shared google docs, any idea how that would work? Nov 13 02:41:42 profligacy: it sounds like you need somebody to help you with this, and I don't mean a stranger on the internet Nov 13 02:43:14 its a semester prject Nov 13 02:43:18 and i really dont ahve much time Nov 13 02:43:37 better get off IRC and get to work then Nov 13 02:43:56 i need help Nov 13 02:43:57 direction Nov 13 02:44:06 i hate ppl like you that offer no help Nov 13 02:44:09 and just criticize Nov 13 02:44:17 leave me alone if youre not going to help Nov 13 02:44:21 im trying to get help Nov 13 02:45:18 profligacy: You have a professor. You give the school lots of money, some of which goes to him, so that he will help you. Take advantage of his time. Nov 13 02:45:29 go and see your professor, if you're unable to google search "PHP ORM" nobody on irc is going to want to help you Nov 13 02:45:51 youre nto going to believe me Nov 13 02:45:55 but hes not supposed to help Nov 13 02:46:12 its the last course, a rite of passage if you will, to the major Nov 13 02:46:21 Sucks for you then. Nov 13 02:46:29 when's it due? Nov 13 02:57:57 its due in the end of december **** ENDING LOGGING AT Tue Nov 13 02:59:57 2012