**** BEGIN LOGGING AT Wed Mar 28 02:59:59 2012 Mar 28 03:09:07 er... content resolver? Mar 28 03:18:08 hopefully that was the last bug in my game's physics engine :) Mar 28 03:19:24 I'll bet you $10 it isn't :P Mar 28 03:24:17 Leeds: i'll rejoice in that it's at least the last I know of, at this moment. heh Mar 28 03:52:10 My mobile internet proxy seems to corrupt some responses from the Twitter server (ie. returning nothing when I'm expecting a JSON response). If I use WiFi, I don't get this problem. Is there anything I can do? Mar 28 03:54:04 i also sometimes get empty response Mar 28 03:54:18 just request again, i think it's throttling on twitter's side Mar 28 03:54:33 ugh why the fuck can i not backup without /sdcard Mar 28 03:54:36 i only have /emmc Mar 28 03:54:44 djshotglass: do you have an app dev question? Mar 28 03:54:56 my bad i thought this was root Mar 28 03:54:57 lol Mar 28 03:55:00 np Mar 28 04:00:27 hi Mar 28 04:00:50 are you using orm-libaries in your androidproject? Mar 28 04:01:03 anyone here that has experience with activeandroid? Mar 28 04:03:23 morning all! Mar 28 04:05:38 I'm porting the kernel to the HTC Whitestone. I've gotten it to boot (that was hard -_-). Now I'm running into the following problem: The touchscreen is reading vertical coordinates fine but nothing is happening on the X axis. Nothing at all. (Evidenced by adb getevent). What could be causing this? Mar 28 04:43:53 =) =) =) AndEngine works on BlueStacks! (At least, but probably not limited to the latest GLES2 branch.) =) =) =) Mar 28 04:59:44 I've got a question... I found out that even when the user isn't interacting with my app (and thus, nothing on screen should be changing), its still constantly updating itself. Any idea why this might be? Mar 28 05:15:26 What happens when my BroadcastReceiver receives several broadcast messages at the same time? Is it called separately for each? Mar 28 05:16:02 Has anyone here implemented a facebook-style slider menu with the compatibility layer action bar? Mar 28 05:22:03 anyone see an issue with this? http://pastebin.com/j1DNGXr1 it keeps crashing Mar 28 05:23:00 says its an unprasealable date, so what is parsealable? Mar 28 05:24:33 Bear10: search "Parcelable" on d.android.com Mar 28 05:24:45 no i dont think it has to do with that Mar 28 05:24:48 it's an interface you must implement to serialize your object. Mar 28 05:24:50 your mixing things up Mar 28 05:25:13 o Mar 28 05:25:23 this has to do with the rules or something of the formatting Mar 28 05:25:25 you're the one who didn't spell a word correctly that's directly in front of your face Mar 28 05:25:34 but I'm mixing things up? I see. Mar 28 05:25:36 Parseable* Mar 28 05:25:43 thank you Mar 28 05:25:45 even then i used an S :P Mar 28 05:26:03 getDateTimeInstance() instead Mar 28 05:26:05 it should work Mar 28 05:26:19 let's give it a whirl Mar 28 05:26:37 Quick question... I found out that even when the user isn't interacting with my app (and thus, nothing on screen should be changing), its still constantly updating itself. Any idea why this might be? Mar 28 05:26:50 Readme, still get the same issue Mar 28 05:27:07 java.text.ParseException: Unparseable date: 2012-03-31 17:00:00 Mar 28 05:27:20 interested about another thing Mar 28 05:27:24 item.getDate = "2012-03-31 17:00:00"; Mar 28 05:27:28 System.out.println(format.parse(item.getDate())); Mar 28 05:27:32 why do you invoke the string as a method? Mar 28 05:27:47 is it an inaccurate paste? Mar 28 05:28:00 Is there any reason why my BroadcastReceiver would be receiving my broadcast intents I'm sending twice? Mar 28 05:28:42 I make it log a message when an intent is received in onReceive, and when I sendBroadcast from another app, I'm seeing the message logged twice sometimes :/ Mar 28 05:28:50 readme, what do you mean i invoke it as a string? Mar 28 05:29:08 why am i setting it? (i dont, its just for the pastebin so you could see the format im using) Mar 28 05:29:41 Bear10: you are setting getDate to a string, then you're calling it as if it were a method Mar 28 05:29:50 http://developer.android.com/reference/java/text/SimpleDateFormat.html Mar 28 05:29:52 that should do the trick Mar 28 05:29:54 readMe, yeah the item.getDate was just for you to see the value Mar 28 05:29:59 there are a few different date formats Mar 28 05:30:07 i tried tampering with SimpleDateFormat too to no avail Mar 28 05:30:20 are you using android.*dateformat or java.text.*DateFormat Mar 28 05:30:25 java.text.* Mar 28 05:31:56 Bear10: i've got some code here that I used SimpleDateFormatter in Mar 28 05:32:03 show me your SimpleDateFormatter attempt Mar 28 05:32:09 SimpleDateFormat* Mar 28 05:32:12 let me rewrite it Mar 28 05:33:48 think i almost got it Mar 28 05:34:35 readme, Sat Mar 31 17:00:00 GMT+02:00 2012 Mar 28 05:34:35 , is how its formatting, i'm going to have to change it's output Mar 28 05:35:23 "yyyy-MM-dd HH:mm:ss" Mar 28 05:35:35 now make sure it also works on phones that use another date notation Mar 28 05:35:37 readme, what i'm trying to get done is for the date to take in the format i provide, and output the Year-month-day, hour:minute:second, but respective to the country Mar 28 05:36:21 readme, http://pastebin.com/YTcGe91G <-- is my attempt Mar 28 05:38:39 Bear10: and you're passing in a string of the form "yyyy-MM-dd HH:mm:ss" or can it contain other things? Mar 28 05:39:10 always the same string form Mar 28 05:39:35 and why doesn't it work? Mar 28 05:39:39 it looks fine. Mar 28 05:39:50 readme, it "parses" but not correctly Mar 28 05:39:59 what is the result, and what is the expected result? Mar 28 05:40:06 the output im receiving is: Sat Mar 31 17:00:00 GMT+02:00 2012 Mar 28 05:40:26 and the desired output is? Mar 28 05:40:39 i want to output, all in niumber format with no timezone stuff Mar 28 05:40:54 show me an example string Mar 28 05:42:16 For europe: "dd-MM-YYYY HH:mm:ss" and for US: "MM-dd-YYYY HH:mm:ss" Mar 28 05:43:08 thats my ideal output Mar 28 05:43:23 i think in DateFormat there was something like "SHORT" that i could specify which would do that Mar 28 05:44:20 looking at the examples in more detail Mar 28 05:47:07 hmm Mar 28 05:47:09 maybe number format Mar 28 05:47:41 I know what is wrong now Mar 28 05:47:53 you are outputting the Date returned by format.parse(), which is a generic Date instance Mar 28 05:48:13 to output it in the format you desire, you need to take the return value of format.parse and feed it into format.format() Mar 28 05:48:24 * readme looked at his old code Mar 28 05:48:53 lets give it a whirl Mar 28 05:48:58 thanks for the help readme Mar 28 05:49:01 np Mar 28 05:49:04 will let you know rightn ow Mar 28 05:49:09 I'm positive of it ;) Mar 28 05:49:29 CLOSE :P Mar 28 05:49:33 not quite there hahaha Mar 28 05:49:40 SimpleDateFormat is just a formatter, you can use it like this: String date -> SimpleDateFormat -> Date instance or Date instance -> SimpleDateFormat -> String date. Mar 28 05:49:52 You will probably need to use two SimpleDateFormat Mar 28 05:50:01 one for reading the string, and one for generating the correct output. Mar 28 05:50:57 example http://pastie.org/3682681 Mar 28 05:51:06 should be able to adjust your date formats and use my class Mar 28 05:51:18 seems like i might Mar 28 05:52:01 will give that a shot maybe itll be better Mar 28 05:52:03 thanks Mar 28 05:52:05 np Mar 28 06:02:39 readme, i think i almost found a perfect solution Mar 28 06:04:52 format.parse(dateString).toLocaleString(); does ... Mar 31, 2012, 5:00:00 PM, for US and 31/03/2012 17:00:00 for Spain Mar 28 06:05:16 not so bad, though it could be even better Mar 28 06:05:44 yeah Mar 28 06:05:53 How should I design my broadcast receiver to be able to deal with lots of broadcast intents simulataneously? Mar 28 06:06:03 you can define your own output by passing the result of format.parse back to the SimpleDateFormat Mar 28 06:07:50 readme, i think where im having trouble is understanding where, 1) you specify the pattern coming in, and 2) the pattern going out Mar 28 06:08:17 ejcweb: avoid keeping state Mar 28 06:08:33 Bear10: SimpleDateFormat inFormat = new SimpleDateFormat() Mar 28 06:08:42 SimpleDateFormat outFormat = new SimpleDateFormat() Mar 28 06:08:44 ah Mar 28 06:08:47 so there is no specifying Mar 28 06:08:50 thats why you said i need 2 Mar 28 06:08:54 outFormat.format(inFormat.parse(string)) Mar 28 06:08:58 gotcha Mar 28 06:09:40 ejcweb: since the docs say Normal broadcasts can come in undefined order, any storage you touch that isn't defined as a parameter or inside of a method will need to have access to it synchronized Mar 28 06:09:48 best way to deal is to avoid using global state Mar 28 06:11:02 readme, it worked like a charm Mar 28 06:11:02 you the man Mar 28 06:11:34 :) Mar 28 06:11:35 readme: Ok, so in my case the BroadcastReceiver takes the message passed in the Intent, and posts it to Twitter. I run into problems currently when multiple Intents are received quickly. Do you think I should add the messages to a list for the actual Twitter posting bit to work through? Mar 28 06:12:03 ejcweb: paste code Mar 28 06:13:46 readme: http://pastebin.com/cTJK3dgU Mar 28 06:14:46 How many intents does it take to cause an issue? Mar 28 06:14:57 does TwitterClient access any static fields? Mar 28 06:16:30 that's a lot of tweets then Mar 28 06:16:55 readme: Even just 3 at the exact same moment, it just leads to a single one being tweeted. Mar 28 06:17:14 ejcweb: it sounds like TwitterClient might not be thread-safe. Mar 28 06:17:28 do you have the source of TwitterClient? Mar 28 06:17:55 i think you should consider that twitter is not allowing you to tweet 3 times a second Mar 28 06:18:01 ah, that's probably it Mar 28 06:18:25 you'll have to queue your tweets up and process them every x seconds Mar 28 06:18:29 so you dont' get throttled. Mar 28 06:18:31 xorgate: Hmm, I don't get an exception for that though. I'll try queueing them up for now. Mar 28 06:19:02 exception? if it's actually happening you will not hear about it Mar 28 06:19:06 they will just ignore you Mar 28 06:19:14 anyway: check it Mar 28 06:27:41 http://stackoverflow.com/questions/9862230/how-to-style-actionbarsherlock-4-x Mar 28 06:27:47 maybe someone could help me plz Mar 28 06:27:50 thx in advance! Mar 28 06:54:26 http://www.theatlanticwire.com/technology/2012/03/suddenly-microsoft-hippest-tech-company-around/50402/ Mar 28 06:58:57 guys how do i disable (uninstall/unlink) android from my eclipse. is there a tutorial on how to do so? Mar 28 07:16:07 morning, i just get my first Android phone and i wish to do some programming on it. I come from GNU/Linux and i wonder if there "Home folder where i can put .MyAppConfigDir" where can i put some stuff for my app? Mar 28 07:17:01 gabriel9|work - that all goes into various directories automatically when an apk is installed Mar 28 07:18:06 so if i create some .dirConfig can any other app write in it? Mar 28 07:18:19 it is secure problem if it can't Mar 28 07:18:20 no Mar 28 07:18:28 apps are sandboxed Mar 28 07:19:07 and in that sandbox also goes .configDir in "home folder" Mar 28 07:19:58 gabriel9|work: for storing application preferences, use SharedPreferences Mar 28 07:20:37 i wish to port some apps from linux, and i know how to use .confFile Mar 28 07:21:09 confFolder Mar 28 07:21:49 but if there is problem with sec i need some time to learn all new stuff and that is the problem. I don't have time Mar 28 07:22:24 gabriel9|work: you can use a configuration file, but there are two problems with the approach: one, if you use a configuration file and keep it in the apps private storage, no one will be able to edit it with a text editor. Mar 28 07:22:42 two, if you put it in external storage, *anyone* including malicious apps can write to it. Mar 28 07:22:48 (linux suffers from this problem as well) Mar 28 07:22:52 yes Mar 28 07:23:21 if your app is going to gain any popularity i'd highly discourage putting the preferences in a world writable location. Mar 28 07:23:24 but you can Mar 28 07:24:01 http://developer.android.com/guide/topics/data/data-storage.html Mar 28 07:29:10 hi Mar 28 07:29:18 why it fails on prepare() ? http://pastebin.com/1dGQaGth Mar 28 07:30:17 hi all Mar 28 07:30:24 virtx: the value of e.getMessage() would probably help. Mar 28 07:31:09 readme, on emulator it fails with status code: 4 Mar 28 07:32:14 virtx: what is the value of e.getMessage() in your catch block? Mar 28 07:32:25 you're not printing the stack trace or the message.. those are important data Mar 28 07:32:29 readme, i'm running on emulator now, wait a sec Mar 28 07:33:22 hrm, can I remove the title from the actionbar somehow? Mar 28 07:34:29 readme: so for sensitive data i shuld use storage which is sendboxed Mar 28 07:35:00 gabriel9|work: yeah Mar 28 07:35:07 and for some regular stuff i can put it in "home" folder with prefix . and then pray to gods that no one will touch them :D Mar 28 07:35:21 there is no /home Mar 28 07:35:47 some apps use /sdcard/appname for non-critical data Mar 28 07:35:55 data that should be allowed for the user to touch Mar 28 07:36:27 ok Mar 28 07:37:07 there is no home, ouch :/ Mar 28 07:37:21 i always have home in my machines Mar 28 07:38:20 readme: 03-28 09:37:01.532: E/AudioRecordTest(582): /sdcard/audio.3gp: open failed: EACCES (Permission denied) but i've in manifest file Mar 28 07:39:41 virtx: paste AndroidManifest.xmkl Mar 28 07:39:44 .xml* Mar 28 07:39:47 ok Mar 28 07:40:10 oh NM, you need READ_EXTERNAL_STORAGE Mar 28 07:40:14 they are separate perms. Mar 28 07:40:18 what was the #channel for android platform development? Mar 28 07:40:33 readme: http://pastebin.com/qBPKABvW Mar 28 07:40:40 ah! Mar 28 07:40:42 read too Mar 28 07:41:26 Guys, how do I remove the title from my actionbar? Mar 28 07:42:55 readme: NM it now works without READ permission too... that is really strange... Mar 28 07:43:13 virtx: what changed that made it work the first time? Mar 28 07:43:44 the -sdcard file in the emulator conf were wrong :P Mar 28 07:43:51 i test it on device now... Mar 28 07:46:48 nobody knows? Mar 28 07:48:33 readme: well it works without change :) Mar 28 07:48:53 Insayne: something like http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=android+remove+title+actionbar ? :) Mar 28 07:50:06 apple, most of those arent clear on my previous issue - If i build for minSDK level 8, what would happen then? Mar 28 07:52:36 Insayne: try it? Mar 28 07:53:05 heh, I suppose Mar 28 08:44:31 how to get online with USB connection? Mar 28 08:53:58 Hark! Mar 28 08:54:13 A lark lurks among the murky waters. Mar 28 08:55:35 Is it possible to see which API level my app is currently running on ? Mar 28 08:55:53 nvm Mar 28 09:30:55 hi Mar 28 09:32:03 can I dynamically put the AndroidManifest's android:versionName variable in an textview ? Mar 28 09:32:15 yup Mar 28 09:32:27 Leeds: how? Mar 28 09:32:37 hang on, let me check how I did it Mar 28 09:33:04 getPackageManager().getPackageInfo(getPackageName(), PackageManager.GET_META_DATA); Mar 28 09:33:49 hmm... can't remember what app I did it in :) Mar 28 09:33:53 but that sounds about right :) Mar 28 09:35:10 mango-, Leeds: okay, nice, but can I have something like @string instead ? Mar 28 09:36:55 there's no resource link, but above code + .versionName gives you a String Mar 28 09:40:18 mango-: ok then, I can still but some code and do a replace Mar 28 09:41:32 yes Mar 28 09:42:23 mango-: your command doesn't work Mar 28 09:42:59 "Doesn't work" is an insult to programmers. Mar 28 09:43:42 hi Mar 28 09:44:02 mango-: Unhandled exception type PackageManager.NameNotFoundException Mar 28 09:46:46 if you don't know what that is, i recommend a java basic tutorial on exceptions Mar 28 10:08:03 i need to style a listview like a notepad (with lines). even if the list isn't full, the rest should look like a notepad. how do i accomplish that without having to add empty elements to my adapter Mar 28 10:09:21 siyb: I would proably do a custom row that has the line pattern to it Mar 28 10:10:35 JoeTheGuest: the problem is, that if there are not enough elements in the listview, the "notepad" looks broken Mar 28 10:10:48 Oh forgot about that. Mar 28 10:11:19 Uhh, Wait, why are you using a list view? Mar 28 10:12:39 Is this the area that the person would be typing into or is this like a list of notes you have written and you can choose one Mar 28 10:19:55 i updated to sdk17 Mar 28 10:20:07 is there a way to put source/docs in the "Android dependencies" container? Mar 28 10:21:14 JoeTheGuest: a list of notes someone has written Mar 28 10:25:13 siyb: I would go take a look at what others have done maybe. Mar 28 10:25:46 You can always just put a static image in the background and then have the list scroll ontop of it. Mar 28 10:26:41 JoeTheGuest: a static image is no option (unfortunately) and i could find nothing regarding my problem on stackoverflow / google Mar 28 10:27:07 Check the market and maybe decompile their apk to take a look at their xml's. Mar 28 10:27:20 wtf is wrong with sdk17 - it took me one day to detect - this is a pre-beta1 release :) Mar 28 10:27:22 Or you could always write your own custom view. Mar 28 10:29:57 JoeTheGuest: ok thanks for the advice Mar 28 10:30:19 siyb: start with the xml stuff. Check out apktool on google code. Mar 28 10:31:13 JoeTheGuest: decompilation is not an issue for me, finding an app that does what i want to do is ;) Mar 28 10:32:02 siyb: https://play.google.com/store/apps/details?id=com.xtakagi.android.memopad&feature=search_result#?t=W251bGwsMSwyLDEsImNvbS54dGFrYWdpLmFuZHJvaWQubWVtb3BhZCJd Mar 28 10:32:49 https://play.google.com/store/apps/details?id=com.socialnmobile.dictapps.notepad.color.note&feature=related_apps#?t=W251bGwsMSwxLDEwOSwiY29tLnNvY2lhbG5tb2JpbGUuZGljdGFwcHMubm90ZXBhZC5jb2xvci5ub3RlIl0. Mar 28 10:33:41 Here is another nice one. http://kan.gd/1ive Mar 28 10:36:27 JoeTheGuest: cheers ;) Mar 28 10:52:13 http://stackoverflow.com/questions/9862230/how-to-style-actionbarsherlock-4-x Mar 28 10:52:18 maybe someone could help me plz Mar 28 10:54:24 Hello i use ActionBarSherlock Version 4.0.0 and i dont know how to change/style the title text, under version 3.5 i used @style/abTextStyle. but that doenst work in version 4.0.0. Mar 28 10:56:55 ctate: before I disconnected last night, I noticed you explaining the "protected" modifier to someone. just so I'm clear, "private" means only the class instance can access it (and no external or subclasses), while "protected" allows just subclasses? Mar 28 10:57:14 and the default, if not specified, is private? Mar 28 10:57:24 anyone, feel free to chime in Mar 28 10:58:15 yes Mar 28 10:58:47 is it recommended to explicitly label private members as such? I see that a lot of examples don't. Mar 28 10:59:51 and to be honest I have been coding in java for over a year and no one has properly explained protected to me until just now :P Mar 28 11:00:53 the answer I got before was "I just know you are supposed to use it on all these" while contributing to an open source project Mar 28 11:01:04 no idea, personally i don't bother Mar 28 11:01:05 is protected when you can access only within the same project? Mar 28 11:01:15 within the same class Mar 28 11:01:17 like private Mar 28 11:01:22 but subclssses can access them Mar 28 11:01:28 yeah, sry I said it wrong Mar 28 11:01:42 it's "inherited" XD Mar 28 11:01:59 by subclasses Mar 28 11:02:24 I used to make them all public and name them starting with lowercase if it should only be called from an instance or subclass of that instance Mar 28 11:02:32 I now see the silliness of that Mar 28 11:02:59 anyone know any documentation on actionbarsherlock apart from the samples ? Mar 28 11:03:08 it's cool learning new things everyday, I guess this is the reason such channels exist Mar 28 11:03:17 *nod* Mar 28 11:04:45 I am a beast at programming logic but I am constantly humbled when it comes to languages themselves Mar 28 11:05:18 yeah I get you Mar 28 11:05:43 i have invalid resource directory name: in drawable-sw600dp-hdpi with Apktool v1.4.3, as i fix that ? Mar 28 11:06:04 ICS apk Mar 28 11:09:35 seams that apktool 1.4.3 fails with folder numbers Mar 28 11:19:16 If my phone has a messenger application installed, and I get notifications, etc - is it possible for me to read those outside that application? Mar 28 11:22:26 for example, whatsapp - i wish to listen to its notifications - how would I go about doing so ? Mar 28 11:22:40 root66: No modifier: all classes in the same package can access it - Protected: All classes in the same packages and all subclasses can access it Mar 28 11:24:44 my DateFormatter displays HH instead of the actual value... dd.MM etc works :( Mar 28 11:24:50 No access modifier is also known as package private Mar 28 11:24:58 is my questions stupid... or badly asked? Mar 28 11:32:57 so who picked up an iphone yesterday Mar 28 11:33:18 why yesterday? Mar 28 11:37:34 Can I listen in on another applications broadcaster ? Mar 28 11:39:25 whats the difference between a source folder and a normal folder in eclipse? Mar 28 12:08:25 so Activity class is like Context class? Mar 28 12:10:19 virtx: an Activity is a Context Mar 28 12:10:38 the Activity has a context itself Mar 28 12:10:43 its like a tree Mar 28 12:10:56 so in my activity class "this" is always a Context? Mar 28 12:11:32 Activity extends Context. So yes, Activity is a Context Mar 28 12:11:45 ok Mar 28 12:11:46 And if "this" refers to the Activity, it is a Context Mar 28 12:25:24 can a manifest have several package sections? Mar 28 12:25:35 i want to import the facebook sdk into an existing project.. Mar 28 12:33:06 tapas: isnt there instructions for doing that? Mar 28 12:33:56 Hello Mar 28 12:39:24 mikedg: found them.. Mar 28 12:45:38 anybody know about how to get callstate of sip calling receiver? Mar 28 12:48:21 anybody there? Mar 28 12:48:41 no :P Mar 28 12:48:53 neither the east nor west coasts are awake Mar 28 12:48:57 wait a couple hours, try again Mar 28 12:49:28 lov, u r there na ... Mar 28 12:51:56 hellp Mar 28 12:52:07 when i call any function from onendcall() method of sipaudiocall listener the that will give me exception like RuntimeException Can't create inside thread that has not called looper.prepare().what is this..? Mar 28 12:52:13 jagruti_: I don't know the answer to your question about SIP though. Mar 28 12:52:27 is there some one who is facing problems on using android NDK Mar 28 12:52:32 ok thanks lov fro your reply Mar 28 12:52:33 jagruti_: run it on the UI thread, use a handler, etc. Mar 28 12:52:56 before you ask me "HOW DO I HANDLER????" please use google. Mar 28 12:53:21 lov,i am not stupid for that.. Mar 28 12:53:52 jagruti_: do a google search for "Can't create inside thread that has not called looper.prepare()" Mar 28 12:54:16 ok Mar 28 12:55:55 Anyone have experience with grabbing the drawing cache from a View? I'm calling getDrawingCache() with this code and it is returning null. The expected result is to return the drawing cache of the view. http://pastie.org/3685182 Mar 28 12:56:12 (as a bitmap) Mar 28 12:59:39 HAHA view.postDelayed I love you! Mar 28 12:59:46 I thought this might be the issue Mar 28 13:00:02 never mind guys, I have already solved it. Mar 28 13:00:06 back to code :) Mar 28 13:01:38 hello ron_frown Mar 28 13:02:13 who can tell me where this error comes from ? ...http://pastebin.com/bVQcFmFm (i checked the code in line 64 is only bSave.setOnClickListener(this); which is correct in my eyes) Mar 28 13:03:04 Surfer2010: NPE. Line 64, Stamm6.java. Pretty clear. Mar 28 13:03:20 Surfer2010: From just that line, bSave is null. Mar 28 13:04:19 kamoricks .... how can bSave be null ? ... it is defined and initialized Mar 28 13:04:44 Apparantly it isn't initialized Mar 28 13:04:54 Surfer2010: did you run the code in the debugger? Mar 28 13:05:11 Button bSave; and bSave = (Button) findViewById(R.id.bSave); Mar 28 13:05:32 So you don't have a button with the id bSave in your layout, or it isn't inflated Mar 28 13:05:48 hello guys Mar 28 13:06:04 hi Tux Mar 28 13:06:08 i created an apk file for my application and i want to try it on the emulator Mar 28 13:06:16 how can i install the apk on the emulator? Mar 28 13:06:34 i am using Linux Ubuntu and i have android sdk Mar 28 13:06:41 wait Tux-Tn i have alreday done this .. Mar 28 13:06:49 adb install your.apk Mar 28 13:07:00 SimonVT, adb isn't on tools Mar 28 13:07:10 SimonVT, i searched the web and i find only this solution Mar 28 13:07:14 No, it's in platform-tools Mar 28 13:07:14 i think it's old Mar 28 13:07:33 oh yeah SimonVT you rock Mar 28 13:07:36 If you checked tools you'd see the file called abd_has_moved.txt Mar 28 13:08:03 SimonVT, i check tools with terminal without doing a ls Mar 28 13:10:26 hello Tux-Tn Mar 28 13:10:52 write og adb Mar 28 13:11:17 Tux, og adb in command line Mar 28 13:11:28 THX jagruti_ but SimonVT give my already the solution Mar 28 13:11:33 and it works Mar 28 13:11:42 ok Mar 28 13:11:48 i will make a link in /usr/bin for adb Mar 28 13:12:16 or you could just modify your PATH Mar 28 13:12:16 If you have developed two apps on Android .. A and B .. is it possible in some way to kill B from A? Pretty much just forwarding the question from a mate, not an Android developer myself Mar 28 13:13:00 oehman: generally no. Mar 28 13:13:05 IPC Mar 28 13:13:11 oehman: also, define "kill" Mar 28 13:13:27 Process A says to process B: shutdown now Mar 28 13:13:31 wongk, two paths with tools and platform-tools :/ Mar 28 13:13:34 let me rephrase Mar 28 13:13:36 define "shutdown" Mar 28 13:13:39 can anybody know about sip calling? Mar 28 13:13:46 Tux-Tn: ok? Mar 28 13:13:47 do you want to kill the process, or do you want to stop an activity, or a service, or something else Mar 28 13:15:54 basicly kill the process, entire app.. "kill" as in shutting it down.. Mar 28 13:16:47 oehman: in theory you could use a broadcast, IPC, or some other method to call System.exit. This won't prevent the process from being restarted later, however, and is generally the worst way to handle "quitting" in android. Mar 28 13:17:15 There's no way for B to "force" A to shut down without A supporting some sort of method to allow it to happen, which means that you'll also need A to check who is sending this request (checking the signature of whoever is binding to it, etc) Mar 28 13:17:37 this kind of question almost always belies a misunderstanding of how Android works Mar 28 13:18:19 oehman: Finish(); from the Activity in question, in any way Mar 28 13:18:36 Its difficult when I basicly got the question from a mate who wondered if I knew how it worked on Android.. but thx for your answer! Clears things up Mar 28 13:18:37 Mikellip: not.... really the question but ok whatever. Mar 28 13:18:40 you don't necessarilly /have/ to check the sender, if you just want some sort of generic 'remote control' Mar 28 13:19:03 wongk: that leaves your app horribly vulnerable however and is almost always a bad idea, unless you really do want to expose a "kill me" method to the world. Mar 28 13:19:19 hard to know w/o the use case Mar 28 13:19:41 oehman,write finish() that will stop the activity which is last call .. Mar 28 13:19:52 i believe you can laso tie a permission to it? Mar 28 13:19:55 >_< Mar 28 13:20:05 so anybody have an android build server on amazon ec2 or anything cool? Mar 28 13:20:17 Finish needs to be triggered somehow, and as lov said, beware of how you expose that kind of method Mar 28 13:20:18 wongk: right, but any application can request that permission, unless the system only provides that signature for systemOrSigned or soething Mar 28 13:20:33 Mikellip: finish() works for activities. It doesn't help for Services or really anything else. Mar 28 13:20:45 sure, and if you mark it as dangerous the user will see it quite visibly Mar 28 13:20:46 TachyonDev: no but feel free to make one Mar 28 13:20:52 wongk: so? Mar 28 13:20:57 wongk: here is the typical user interaction Mar 28 13:21:06 lov: well im just asking if anybody has experiance with one Mar 28 13:21:09 Super Farts 3D Live Wall Paper Free! has requested permission "Brick" Mar 28 13:21:18 User: I don't understand what this is so OK! :D Mar 28 13:21:37 not my problem :P Mar 28 13:21:49 wongk: if you're the one developing the app with the kill switch it is :D Mar 28 13:23:02 Hi, is there a one-liner for displaying simple debug output strings in a dialog or such? Mar 28 13:23:50 DarsVaeda: aside from toasts, new AlertDialog.Builder(this).setText(text).create().show(); (only run in the UI thread!) Mar 28 13:23:55 DarsVaeda: there is for logcat, not a dialog Mar 28 13:24:28 boo, where's the fragment? :P Mar 28 13:24:36 alternately, set up your onCreateDialog and onPrepareDialog to handle bundles and use showDialog(DIALOG_DEBUG_MESSAGE, errorBundle()); Mar 28 13:24:59 ok thanks Mar 28 13:25:28 DarsVaeda: check out android.util.Log; Mar 28 13:26:53 okay I'll do Mar 28 13:28:53 is importing and exporting from a SQLiteDB to a txt file easy or hard to code? Mar 28 13:29:30 that's a very subjective question Mar 28 13:29:30 Surfer2010: read from db, write your file... no, not hard Mar 28 13:29:47 Surfer2010: Sounds like a fairly easy task to code, if there isn't already anything in the SDK that has that. Mar 28 13:30:57 SipAudioCall.Listener listener = new SipAudioCall.Listener() { Mar 28 13:30:58 @Override Mar 28 13:30:58 public void onCallEnded(SipAudioCall call) { myfunction();}} when i write this then i will give me runtime exception like can't create handler inside thread that has not called Looper.prepare(); why this is come? Mar 28 13:31:16 I know MySQL has "select into outfile", where you specify a file to be written from whatever you select from a table Mar 28 13:31:41 Maybe look into it if you don't want to do your own Mar 28 13:32:11 is there any method in the sql who helps doing that? Mar 28 13:32:45 jagruti_: http://bit.ly/HeTOLH Mar 28 13:35:37 wongk,i have already serach but i cant get any solution which will help me Mar 28 13:35:58 Whats the best way to open an Wav file and being able to iterate through its samples in Android? Mar 28 13:36:08 the first 2 hits clearly state the issue Mar 28 13:36:20 so perhaps ask a more specific question Mar 28 13:37:13 its not actually space it is continue code Mar 28 13:40:25 how can i link a different class dynamically in NDK depending on the platform version? Mar 28 13:41:23 C++ doesn't work like java Mar 28 13:41:54 wongk,i got solution Mar 28 13:43:16 yeah, baby, released a new update Mar 28 13:43:17 feels good Mar 28 13:43:37 made 8 brand new screenshots Mar 28 13:45:37 Greets guys. ( http://pastebin.com/gx6s3udL ) I get a viewgroup as a bitmap, then I want to destroy the viewgroup's contents, but paint the original bitmap. removeAllViews() changes the bitmap. how do i avoid this. Mar 28 13:45:59 the snippet is short and explains allot better. Mar 28 13:48:39 how can i check if a string contains a specific String ? Mar 28 13:49:28 String test = "blabla-Mode1" if(test == * + "-Mode1") ... ?! Mar 28 13:49:36 kinda like that ?! Mar 28 13:49:58 ~javadoc String.contains(*) Mar 28 13:50:25 Err. http://docs.oracle.com/javase/6/docs/api/java/lang/String.html#contains(java.lang.CharSequence) , since we don't seem to have javadoc here. Mar 28 13:53:14 what is the current version for this app? https://play.google.com/store/apps/details?id=com.googlecode.iptableslog Mar 28 13:55:18 * hackkitten is trying to decide between the Samsung Galaxy W and Huawei U8850 ATM Mar 28 13:55:22 How do I get the samples from an audio file in android? ( want to iterate through them, .wav format ) Mar 28 13:55:34 I don't like the cheap plastic feel of the former Mar 28 13:55:47  never heard of the latter ;) Mar 28 13:59:06 oehman > Chinese brand, pretty famous :) Mar 28 13:59:23 yeah heard of the brand, aint got a clue bout the phones though ^^ Mar 28 13:59:47 I'm using the U8800 ATM Mar 28 13:59:49 it's nice Mar 28 14:00:06 solid phone Mar 28 14:00:24 just no Android 2.3+ for it without going with custom ROMs :) Mar 28 14:00:50 the U8850 has an aluminium unibody Mar 28 14:00:54 which is a big plus Mar 28 14:01:58 Never even heard of the brand. Personally, I'm holding out for a Galaxy S3. Mar 28 14:05:18 oehman: you want to use the AudioTrack class for some things. Look around in the android.media package. I'm unsure of whether there are any low-level commands exposed that will parse a resource and turn it into a track for you, or whether you need to do that yourself. Mar 28 14:06:02 someone drew me a calf but what he meant was sock Mar 28 14:10:04 morning hackkitten. Mar 28 14:10:14 mewning~ Mar 28 14:10:36 kamoricks > Huawei is well-known outside the US :) Mar 28 14:12:49 lov > ok, thx. I'll have a look there. So used to how its done on iOS. Surprised there was no obvious way to do it on Android. Trying to assist an Android developer whos recreating my iOS code on Android Mar 28 14:14:01 any generally good practices to prevent reverse engineering of your sourcecode? beyond proguard Mar 28 14:14:29 You use proguard to reduce application size, not to prevent reverse engineering. Mar 28 14:14:38 There is no way to prevent a .dex file from being decompiled. Sorry. Mar 28 14:15:32 yea thats not true, that is not proguards first object ive ;) else it would be called "proSizeReducer" Mar 28 14:15:42 and yes i know, thats why i said best practices Mar 28 14:16:25 Jug6ernaut: Have you looked at proguard decompiled source? All the variables have terrible identifiers and it breaks all your switch statements. But no, that's the best you're going to get. The issue is that Dalvik bytecode is human-readable. Mar 28 14:16:44 write your code in such a manner that maintaining or extending it just isn't worth the effort ;) Mar 28 14:16:46 Well. Not human-readable, but it's a set of opcodes, which converted into mnemonics, are tantamount to Java code. Mar 28 14:17:08 remount failed: Operation not permitted Mar 28 14:17:13 wongk lol Mar 28 14:17:17 kamoricks yea i have Mar 28 14:17:38 ive never had problems with switch statements being broken b4 Mar 28 14:17:46 proguard breaks switch statements? Mar 28 14:17:49 me either Mar 28 14:17:57 guys ^ this is what i get when i try to "adb remount" after rooting my phone. it worked BEFORE though! what is this?? Mar 28 14:18:03 * Jug6ernaut guesses he goes native Mar 28 14:18:04 i thought a developer could possibly know Mar 28 14:18:06 *Decompiled* proguard code is invalid. Mar 28 14:18:10 remount failed: Operation not permitted Mar 28 14:18:15 ahh Mar 28 14:18:22 androot: #android-root Mar 28 14:18:41 SimonVT: ah, yeah but they recommended that maybe a dev could know because you know the system internals Mar 28 14:26:05 Greets guys. i get a bitmap from a view.getDrawingCache. How would i keep that bitmap as at the time of screenshot? After myView changes the bitmap changes too. ( http://pastebin.com/gx6s3udL ) Mar 28 14:26:36 any ideas as to why getSupportActionBar() would return null in onCreate() of SherlockFragmentActivity ? Mar 28 14:26:59 trying to get rid of the home icon and text Mar 28 14:27:19 [10:18:06] *Decompiled* proguard code is invalid. Mar 28 14:27:23 what do you mean "invalid" Mar 28 14:28:20 rvsjoen: You're not using the sherlock themes Mar 28 14:29:52 Hey all. We've developed a backup application and just added in the backing up of applications, but when we go to restore the applications via an ADB install, they're all showing as non-market applications (which is to be expected), but we'd like to see if we can get them to show as market applications somehow. Do you know if this is even possible without going to every single application's market page and requiring the user to cli Mar 28 14:30:33 so you're duplicating adb backup's functionality? :) Mar 28 14:30:41 you can only do that on a rooted device sha1sum, i think Mar 28 14:30:45 canadiancow|work: it's more complex than that. Mar 28 14:30:47 it involves modifying packages.xml Mar 28 14:30:56 canadiancow|work: the backup/restore is only one part of the application :) Mar 28 14:31:09 yeah, think about the sandbox Mar 28 14:31:12 hmmm, sucks. Mar 28 14:31:37 well, would you want another app to clear all those associations? :) Mar 28 14:31:46 you don't have to modify packages.xml, but you do have to have root Mar 28 14:32:06 http://developer.android.com/reference/android/content/pm/PackageManager.html#setInstallerPackageName(java.lang.String, java.lang.String) Mar 28 14:32:49 well, I guess root isn't part of that, unless you're talking about resigning the installer package Mar 28 14:33:19 will the market pick up that the application has been previously installed via the market ? Mar 28 14:33:39 aka if there are updates released later, will it recognize that the package was previously downloaded from the market and provide update notifications? Mar 28 14:34:16 or I guess I should get in the habit of saying "play store" now Mar 28 14:34:17 heh Mar 28 14:34:26 JakeWharton: you lurking? Mar 28 14:34:29 meh, everyone knows what the market is Mar 28 14:34:41 simonvt: I need to do something other than add android:theme="@style/Theme.Sherlock" to the tag ? Mar 28 14:35:23 Leeds: yeah but that still doesn't help me get rid of my habit of looking for an icon in applications that says "market" instead of "play store" Mar 28 14:35:26 :) Mar 28 14:35:56 sha1sum: I don't know what Play Store considers one of the applications under its control Mar 28 14:36:05 my entirely - sometimes spectacularly - non techie boss came over to me yesterday to ask me what this new 'play' thing was, and if it was only for games Mar 28 14:36:42 hi, what "name" do i need to give to retrieve the settings from my PreferenceActivy in another activity? Mar 28 14:37:37 kevwilde: try YOUR.PACKAGE.NAME_preferences Mar 28 14:38:26 Leeds: can i simply hardcode it? Mar 28 14:38:33 I do... Mar 28 14:38:33 hmmm.... how would one even go about testing that? Mar 28 14:38:51 I mean, I can install the package via ADB but I can't exactly spoof a market update Mar 28 14:39:36 How do I handle Location updates? How do I tell if I have GPS or not? Mar 28 14:39:58 isProviderEnabled. Right, thanks. Mar 28 14:40:38 By anychance someone here knows how to program using OpenCV for Android? I am looking around the internet , but there I can't find much help. I would like to know where to start, i need to do rather simple app but I have no experience in computer vision. Mar 28 14:41:16 sha1sum: publish a test app on Play Store, rev it whenever you need to Mar 28 14:41:21 Leeds: thanks, that worked Mar 28 14:41:27 Trudko: /j #opencv Mar 28 14:41:34 kevwilde: you're welcome :) Mar 28 14:41:54 evancharlton: thx I am there already, but a lot of folks there who use pure open cv(c/c++) Mar 28 14:42:02 kevwilde: for the record, I think I found it by saving settings on the emulator - or another rooted device - and just going and looking what the filename was... Mar 28 14:42:19 lol, cool thanks :) Mar 28 14:42:55 evancharlton: good call. thanks. Mar 28 14:43:07 hi to all Mar 28 14:52:56 oehman: wait until VJTachyon comes online. He'll be happy to help and/or tell you all about his virtual turntable app. Mostly the latter. Mar 28 14:53:13 :P Mar 28 14:55:43 lov: lol Mar 28 14:55:49 i think he quit android though :( Mar 28 14:58:06 haha Mar 28 15:01:22 a TextView has a drawableLeft... how do i set this programatically? Mar 28 15:01:59 kevwilde: setCompoundDrawables Mar 28 15:02:00 kevwilde: setCompoundDrawableLeft Mar 28 15:02:19 Or what evancharlton said Mar 28 15:02:27 ok, thanks Mar 28 15:04:02 hello all Mar 28 15:04:08 kevwilde: my bad, that api doesn't exist, use what evancharlton said Mar 28 15:04:50 thanks evancharlton & AlCapwn Mar 28 15:08:32 hi, i'm quite new to android, i just put together my hello world app and while it runs fine on the AVD, when i try to install it on my cell, it just says "Application not installed" Mar 28 15:08:50 there is no older version of the app installed, as i haven't managed to make it install even once Mar 28 15:10:11 ... any ideas why? :) Mar 28 15:11:26 Anyone using ActionBarSherlock together with ViewPagerIndicator here? Trying to get my app to compile with ADTv17 with no luck... Mar 28 15:12:06 entity: anything in logcat Mar 28 15:12:44 Btw: ActionBarSherlock 3.4.2 not 4.0 (have not migrated yet) Mar 28 15:12:47 evancharlton: nothing that would make it any clearer to me, but i'll post it somewhere Mar 28 15:12:55 meh, even setTheme(com.actionbarsherlock.R.style.Theme_Sherlock); getSupportActionBar().setDisplayShowHomeEnabled(false); throws a nulpointer Mar 28 15:15:41 rvsjoen: Set the theme attribute in your manifest Mar 28 15:16:33 This is stupid, does eclipse cache classes? I'm getting a NoSuchMethodError after adding an extra parameter to a constructor, even though I've dealt with all the syntax errors that popped up as a result. Not to mention, it's not recognizing any of my new changes :| Mar 28 15:17:06 evancharlton: http://pastebin.com/DUMRWx30 Mar 28 15:17:24 im scared to engage eclipse to upgrade to ADT17 Mar 28 15:17:54 shoerain: Do a full rebuild every compile. Mar 28 15:18:22 kamoricks: I also did a 'clean' followed by a 'run'. Do you mean something else by a full rebuild? Mar 28 15:18:31 QubeZ me too.. esp cause of the proguard changes Mar 28 15:18:40 shoerain: No, that should fix it. Mar 28 15:18:50 took me quite a while to get proguard to behave with native code Mar 28 15:19:04 simonvt: I already did that, http://dpaste.com/722842/ Mar 28 15:19:22 kamoricks: I've already done that though. Also quitting eclipse. Only thing I haven't done is a reboot followed by running Eclipse (Windows 7 here) Mar 28 15:19:29 the actionbar itself works, but I get a null pointer from getSupportActionBar() Mar 28 15:20:42 rvsjoen: Try and set targetSdkVersion to 15 Mar 28 15:22:34 E/PackageParser( 230): Package com.pcstudio.gasgame has no certificates at entr Mar 28 15:22:37 y res/layout/main.xml; ignoring! Mar 28 15:22:38 shoerain: ^ Mar 28 15:23:01 shoerain: for some reason your APK is either not signed or malformed Mar 28 15:23:23 evancharlton: eh? Are you sure you mean me? Mar 28 15:23:39 alright, just a sec, have to create a new AVD Mar 28 15:23:48 evancharlton: do i have to sign the app to get it to run? I thought i had to do that only when i want to publish it Mar 28 15:24:09 Apps always need to be signed Mar 28 15:24:19 entity: it always needs to be signed with _something_; ADT should already sign it with a debug key, though Mar 28 15:24:36 shoerain: sorry, I meant entity Mar 28 15:26:02 i see Mar 28 15:26:14 so how do i get it signed with a debug key? Mar 28 15:26:33 thats the default when you compile and push the app to emu/phone Mar 28 15:26:52 unless you're using some strange way to built the apk Mar 28 15:27:03 you can Android Tools -> Export Signed Application to go through the wizard to sign with your prod key Mar 28 15:27:14 QubeZ, I got a question for you Mar 28 15:27:19 i'm using eclipse Mar 28 15:27:22 is there any way to request a re-measurement of a view without giving any of the widthSpec/heightSpec? Mar 28 15:27:28 and the Export an unsigned APK button Mar 28 15:27:43 and then i send it to my cell over bloutooth Mar 28 15:28:35 erm... you're asking why "export an unsigned APK" doesn't sign your APK? really? Mar 28 15:28:52 well yeah i didn't know it had to be signed Mar 28 15:29:00 why aren't you using USB debugging? Mar 28 15:29:07 Is there a generic approach to being able to listen-in on another applications broadcast/notification ? Mar 28 15:29:25 dang, i'm not able to launch an api15 AVD, keep getting com.android.ddmlib.InstallException: device not found Mar 28 15:29:30 Leeds: i am... i think? Mar 28 15:29:38 Insayne: only possible way is to register yourself as an accessibility app Mar 28 15:29:50 entity: do you know the difference between bluetooth and USB? Mar 28 15:29:52 thats dangerous territory Mar 28 15:30:00 Leeds: i should think so Mar 28 15:30:03 Leeds, aha - and how would i figure out what the destination broadcast is ? Mar 28 15:30:11 Why can I not a MapActivity from within another Layout? Mar 28 15:30:43 mikedg... my ofifce would disagree Mar 28 15:30:54 can I as an accessibility app run as a service? Mar 28 15:31:31 im fairly sure for you to classify your app as an accessibility app, you would need to meet some requirements otherwise you'd get booted from the market. Mar 28 15:31:34 assuming Mar 28 15:32:36 i have a ListView where all text is shown dark greyish, even if i do textView.setTextColor it doesn't change. Is this normal behaviour? Mar 28 15:32:56 Insayne: just match their intent filters, but if they're targeting via component or setPackage(), you won't be able to intercept, afaik Mar 28 15:33:21 you could probably do some accessibility hacking, but at that point I would think about what on earth you're actually trying to do Mar 28 15:33:26 evancharlton, how can I find out which way they do it ? Mar 28 15:33:26 kevwilde: how are you changing your color? Mar 28 15:33:41 tv.setTextColor(R.color.scanned_in); Mar 28 15:33:45 when u have an image in xml like lets say a splash screen, when u switch to a new actiity does android clear up the memory used by that image? Mar 28 15:33:57 Insayne: I suspect I'm going to regret telling you about this, but aapt dumptree is what you want Mar 28 15:34:15 okay, i will go google it and shut up :P Mar 28 15:34:34 kevwilde: R.color.scanned_in is a resource id, not the actual color. You need to use Resources.getColor() first Mar 28 15:34:46 SimonVT: oh, thanks! Mar 28 15:34:54 kevwilde: common mistake Mar 28 15:35:03 one i've made tons of times Mar 28 15:35:24 SimonVT: setTextColor taks an int Mar 28 15:35:25 takes* Mar 28 15:35:32 Colors are ints Mar 28 15:35:36 0xAARRGGBB Mar 28 15:35:57 lies Mar 28 15:36:02 kevwilde: just do the getResources().getColor(R.color.scanned_in) Mar 28 15:36:17 QubeZ: ok, thanks Mar 28 15:36:30 * SimonVT slaps canadiancow|work Mar 28 15:36:35 well thank SimonVT (again)... im just re-iterating. Mar 28 15:36:37 QubeZ: and from where do i get the getResources() ? Mar 28 15:36:49 hi SimonVT Mar 28 15:36:51 SimonVT: thanks :) Mar 28 15:36:53 kevwilde: its part of Activity, if you are inheriting Activity or ListActivity Mar 28 15:37:06 QubeZ: i'm doing this in my adapter Mar 28 15:37:06 evancharlton, one more question related... I need to dump the apk of that application, and run aapt dumptreeon it, correct? Mar 28 15:37:11 yes Mar 28 15:37:15 just getReso, let it autofill Mar 28 15:37:18 which will give me access to its manifest, where i can read its intentions, etc Mar 28 15:37:24 kevwilde: then you need to use your context Mar 28 15:37:25 kevwilde: Context.getResources Mar 28 15:37:30 i.e. Context.... Mar 28 15:37:49 oh... never really understood the Context part in android Mar 28 15:38:08 kevwilde: you should learn about it -- critical... otherwise you have leaks all over the mofo place Mar 28 15:38:22 oh Mar 28 15:38:27 got it working, thanks everyone :) Mar 28 15:38:36 is there an article on dev.android.com about it? Mar 28 15:38:45 im sure there is Mar 28 15:38:57 there is Mar 28 15:39:15 the title is something about avoding leaks Mar 28 15:39:41 http://developer.android.com/resources/articles/avoiding-memory-leaks.html <-- good resource Mar 28 15:39:43 ok, thanks! Mar 28 15:39:58 the bottom half talks about Context but you should read the whole thing Mar 28 15:40:06 there will be a quiz on it at 4pm UTC Mar 28 15:40:23 a quiz that i'd fail lol... i better go read it (again) Mar 28 15:40:34 apparently you have 20 minutes :P Mar 28 15:40:39 QubeZ: sorry, can't, evening classes ;) Mar 28 15:40:50 slackers, excuses! Mar 28 15:41:08 QubeZ: lies lies , damn lies! Mar 28 15:41:14 also slightly true Mar 28 15:41:18 heh Mar 28 15:41:30 actually im in edt, you missed the quiz :P Mar 28 15:41:43 friggin dst Mar 28 15:42:01 we'll have to reschedule... also I need to learn remedial math again Mar 28 15:42:07 4pm UTC is in 20 minutes... EVERYWHERE! Mar 28 15:42:31 there you go Mar 28 15:42:36 with the exception of australia... probably Mar 28 15:42:57 there you write the two upside-down, i believe Mar 28 15:43:06 evancharlton, it says there is no androidmanifest.xml and thus dumping has failed - you got an idea why it would do so ? Mar 28 15:45:11 Is there a way to get older versions of the SDK tools for legacy projects? Mar 28 15:45:33 I'm creating a custom view, but what's the best way to make sure only 1 part of my view can be selected/active at any one time? Mar 28 15:46:09 Is it possible to take a drawable R.drawable.tick and make it smaller? Mar 28 15:46:18 At the moment I'm simply checking that each other component isn't selected, but should I have some variable to keep track of currentlyselected? Mar 28 15:46:22 Insayne: I doubt that very much. What app are you trying to inspect? Mar 28 15:46:38 Xperimental: a current SDK can build apps for old versions of Android... Mar 28 15:46:54 evancharlton, whatsapp Mar 28 15:47:15 there's no way it doesn't have a manifest Mar 28 15:47:29 well its the error I get - maybe badly dumped apk then? Mar 28 15:47:38 or you did it wrong Mar 28 15:47:53 +1 Mar 28 15:47:55 C:\Program Files (x86)\Android\android-sdk\platform-tools>aapt.exe dumptree C:\Whatsapp.apk C:\w Mar 28 15:48:08 ERROR: dump failed because no AndroidManifest.xml found Mar 28 15:48:30 Insayne: oh bah, I meant aapt dump xmltree Mar 28 15:48:36 ah... Mar 28 15:48:37 Leeds: correct, but unfortunately there are some errors... Mar 28 15:48:40 yeah... okay :P Mar 28 15:48:47 Insayne: aapt dump xmltree Whatsapp.apk AndroidManifest.xml Mar 28 15:49:00 * Amphoras sigh Mar 28 15:49:16 or just use apktool Mar 28 15:49:16 I hate stupid users who rate 1 star because they can't read Mar 28 15:49:20 Whatsapp is your app? Mar 28 15:49:35 i fit was his app he wouldnt need to get the manifest this way Mar 28 15:49:41 no, of course not Mar 28 15:50:01 ah ok, thats what i get for getting into the convo late. Sorry. Mar 28 15:50:11 Amphoras: I hate stupid devs who think I'm going to read their 4,000-character description for their unintuitive app Mar 28 15:51:19 evancharlton: download a todo list app and rate it 1 star "doesnt buy my groceries" Mar 28 15:51:27 some people don't even read the first line of the description Mar 28 15:51:28 I hate stupid users who download apps they refer to as "unintuitive". Mar 28 15:51:37 i have 1900 character description *ouch* Mar 28 15:51:46 canadiancow|work: "but I don't want to do anything" Mar 28 15:51:48 but its not about "dont do this" "it doesn't do that" Mar 28 15:52:23 It always amuses me when there are apps like the Temple clone malware/junkware, with hundreds of 1-star reviews, yet loads of people keep downloading them Mar 28 15:52:26 ty evancharlton Mar 28 15:52:31 Temple run* Mar 28 15:52:37 may I paste you 2 lines in pm ? Mar 28 15:53:00 Insayne: go ahead; can't promise I'll be able to help you Mar 28 15:53:04 ofc Mar 28 15:53:09 evancharlton: my description is only 1717 chars :P Mar 28 15:53:12 or that, even if I can, I will :P Mar 28 15:53:19 Amphoras_: that's about 1700 more than I'll read Mar 28 15:53:27 it says On custom roms such as CyanogenMod, it will not allow you to use Google Videos and similar apps on a rooted phone. Mar 28 15:53:50 I tried setting android:theme="@style/Theme.Sherlock" on the and also in _all_ the activity declarations, in addition I tried using setTheme() in onCreate(). the google gods suggested that getSupportFragmentManager().executePendingTransactions(); might help, but no luck there either... Mar 28 15:53:52 some rates it 1 start saying Did not work on N1 with CM7.2 Hides SU binary so well, that you might loose root access altogether. Even then Pingit detects that I have root. Mar 28 15:54:44 description should describe the app -- it doesn't necessarily mean its a manual evancharlton Mar 28 15:54:58 app still needs to be intuitive Mar 28 15:55:22 [11:53:18] Amphoras_: that's about 1700 more than I'll read Mar 28 15:55:26 reminds me of a review of words with friends Mar 28 15:55:29 "how do u play" Mar 28 15:55:45 if a user rates an app bad, its a good reason to rethink that portion of the app. It may not be necessarily a productive comment but in there is room for improvement. Mar 28 15:55:50 canadiancow|work: step 0: get friends Mar 28 15:56:54 woohoo. found the url of the r16 tools... Mar 28 15:57:18 you guys/gals up'd to ADT17 in Eclipse? I'm terried to do so. Mar 28 15:57:24 im using 17 Mar 28 15:57:24 But i want the new emu features Mar 28 15:57:24 Woo, you figured out how to change a 7 to a 6 in an url :p Mar 28 15:57:27 it's teh awesome Mar 28 15:57:34 SimonVT: +1 Mar 28 15:57:56 i'll upgrade after this next build Mar 28 15:58:27 SimonVT: wow he's such a hacker Mar 28 15:58:56 SimonVT: :D Mar 28 15:58:58 ADT 17.0 + Eclipse 3.7.2 on OS X 10.7.3 here. works well. Mar 28 15:59:03 If you can build your app with ant, adt17 will work fine Mar 28 15:59:07 platform tools 17 was supposed to fix some ant bugs, but it introduced enough new bugs that I'm yet again holding out for the next version. Mar 28 15:59:18 seems like I'll be on 15 for a long, long time unless I decide to use eclipse. Mar 28 15:59:36 abaratican: a lot of folks are claiming it to be a "bug" that they are having issues with external dependencies (jar files) and lib projects Mar 28 15:59:49 but in reality, it was buggy before and the bugs you depended on were fixed :) Mar 28 16:00:03 it was bugged before, and is bugged still in a different way. Mar 28 16:00:12 with respect to the build system? Mar 28 16:00:25 with respect to dependencies, as you mention. Mar 28 16:01:26 anyway with api 15 you can fix all the library woes by wrapped every .jar file into a dummy android library project Mar 28 16:01:48 because ant deals with those correctly and wont give you "class already added" exceptions as punishment for poperly setting up dependencies. Mar 28 16:02:33 i have a a build system that is 8 different projects Mar 28 16:02:40 4 of those are anroid projects Mar 28 16:02:50 4 are strict java projects, and theres jar files scattered throughout Mar 28 16:02:52 and it works fine Mar 28 16:02:59 (f.ex, if a library needs ActionbarSherlock, but I don't need to know that, and my project needs that library as well as actionbarsherlock, I should really be including actionbarsherlock as a dependency for both, however because ABS uses the compatibility library, the jar will be added twice if you do this and give you an error) Mar 28 16:03:35 you can fix that by making your project "aware" that the library uses ABS, to ensure the jar is only used once.. or wrap the lib in a jar Mar 28 16:03:40 mikedg: using eclipse, or ant? Mar 28 16:03:44 both Mar 28 16:03:58 guessing you aren't having multiple dependency paths reaching the same jar file then Mar 28 16:04:34 this is a pastebin with the class, manifest and stack trace http://pastebin.com/qTquCcMp Mar 28 16:05:09 mikedg: add the compatbility library to a library project, and also to your main project that uses it, and watch it crash and burn =) Mar 28 16:05:59 i have the compatability jar in 2 projects Mar 28 16:06:01 Eh, that was one of the fixes in r17 Mar 28 16:06:04 well 3 Mar 28 16:06:06 it doesn't crash and burn anymore Mar 28 16:06:07 and it works fine Mar 28 16:06:32 SimonVT: it was, but it introduced some other issue I can't recall.. I updated and had other issues so just downgraded again. Mar 28 16:06:50 because you probably didnt fix the old issue Mar 28 16:07:04 if you had it working in an old version you broke a bunch of stuff to work around bugs Mar 28 16:07:28 * abaratican is curious what you think the old issue was. Mar 28 16:07:32 I have 4 libraries and my main project.. Main project and 1 library project references ABS. Main project, 1 library project and ABS has the support library.. All builds well Mar 28 16:07:49 SimonVT: and if you add the support .jar to both your project and ABS? Mar 28 16:07:49 I've upgraded to r17, seems ok so far - AVD api15 emulator is pretty damn slow though! :( Mar 28 16:07:50 you are never going to upgrade Mar 28 16:08:11 abaratican: I added the support library to 3 projects, including ABS and my main Mar 28 16:08:25 rvsjoen: 03-28 16:02:23.843: E/AndroidRuntime(572): Caused by: java.lang.ClassNotFoundException: Mar 28 16:08:28 Not null pointer Mar 28 16:09:20 Caused by: android.view.InflateException: Binary XML file line #7: Error inflating class fragment Mar 28 16:09:29 damn, pasted the wrong stacktrace Mar 28 16:09:33 just a second Mar 28 16:09:39 rvsjoen: I'm gonna go ahead and guess you somehow fucked up your dependencies Mar 28 16:10:08 http://dpaste.com/722877/ Mar 28 16:10:09 there Mar 28 16:11:28 Wait, what Mar 28 16:11:36 is this an activity IN a tabhost? Mar 28 16:12:02 Yeah, good luck Mar 28 16:12:02 yes, its a SherlockFragmentActivity inside a tabhost Mar 28 16:12:06 Protip: Use fragments Mar 28 16:12:44 [12:12:02] yes, its a SherlockFragmentActivity inside a tabhost Mar 28 16:12:45 lol? Mar 28 16:12:49 yo dawg Mar 28 16:12:52 i heard you like tabs Mar 28 16:12:52 is appending -vXX to a res folder a standard android convention? i.e. can I add it to any folder and have the contents target that version? Mar 28 16:12:55 Has anyone heard anything about this book? http://www.amazon.com/Professional-Android-Programming-Mono-NET/dp/1118026438 - I'm not an android developer but I thought this might be a cool way to start learning since I don't really recall very much Java. Mar 28 16:13:13 code1: yes Mar 28 16:13:26 Any folder in res/ can have those qualifiers Mar 28 16:13:33 evancharlton: cool Mar 28 16:14:00 SimonVT: and you can target any version? Mar 28 16:14:28 Yes Mar 28 16:14:37 nice Mar 28 16:14:55 if it's e.g. -v10, any api10 device or above will use resources in that folder Mar 28 16:15:33 SimonVT: could you even do it with drawable-vXX ? Mar 28 16:15:38 yes Mar 28 16:15:39 http://developer.android.com/guide/topics/resources/providing-resources.html Mar 28 16:15:42 Read up on it Mar 28 16:15:47 Any folder in res/ Mar 28 16:15:51 thanks Mar 28 16:18:04 so I should be using some other class to provide tabbing when using ABS ? Mar 28 16:18:39 Well, the actionbar has tabs Mar 28 16:19:02 If you insist on using tabhost, the javadoc for tabactivity has a sample on how to use fragments with tabhost Mar 28 16:19:02 can those tabs link to a different activity instead of a fragment? Mar 28 16:19:23 Having activities in tabs is deprecated Mar 28 16:20:17 ok Mar 28 16:23:37 what was the problem with using activities with tabs? Mar 28 16:24:11 fragments are The Way Mar 28 16:25:27 yeah I need to look into fragments but atm I'm developing for pre-fragment devices (I know there is a compat lib). Mar 28 16:25:53 briefly though why are fragments The Way (tm) Mar 28 16:26:11 I have http://pastebin.com/2AP47DuW . Why am I getting an NPE? The drawable obviously exists, or it wouldn't have a R.drawble handle. Mar 28 16:26:25 fragments are the direction the platform is taking Mar 28 16:26:44 the biggest case is to support different layouts for different screen sizes Mar 28 16:26:50 I've got a bit of a question. If I turn on the "Show screen options" option in te developers settings, my app seems to update constantly. (The screen is constantly flashing.) Is this an issue? Mar 28 16:27:00 ok, so... with TabHost.TabSpec I use setContent() to specify which intent it should contain, is there something similar in the actionbar ? Mar 28 16:27:21 wongk: yeah makes a little more sense looking at the docs Mar 28 16:27:43 wongk: I suppose it mostly to support tablets as well as phones right Mar 28 16:28:08 and TVs, and ... Mar 28 16:28:18 Mar 28 16:29:32 ;) Mar 28 16:29:36 Activity is quite heavy. It's horribly inflexible (not easily ported to e,g, tablets). Communication betweens tabs or tab/parent is hell Mar 28 16:30:11 Whilte fragment is quite lightweight, easily shared between phones, tablets, tv's. Easy to communicate back to parent activity Mar 28 16:30:50 SimonVT: can't argue with the first 2 points, haven't had any probs with commication between tabhost and activity Mar 28 16:32:59 <`z> bye i'm going, night. Mar 28 16:34:51 Meh, I don't know, I vaguely remember it being annoying Mar 28 16:35:42 SimonVT: it could be easier but it works. Maybe I'll use Fragments in v2 Mar 28 16:36:17 oopsy Mar 28 16:36:28 On the emulator, with the debug key, my google map does not load. Is this normal? Mar 28 16:37:03 Napalm: Are you the Napalm who added me in draw something? Mar 28 16:37:11 yup Mar 28 16:37:15 hah Mar 28 16:37:20 Emulator has Google APIs in the AVD, phone thinks it has internet, no netdelay, signed with debug key and AndroidManifest.xml is using my Google Maps Android API key generated from said debug key.. Mar 28 16:37:42 kamo u need a Google maps key Mar 28 16:37:59 Yep, got that, same key I'm using to sign my APK for debug. Mar 28 16:38:27 kamoricks: you need a maps API key Mar 28 16:38:33 not your debug keystore key Mar 28 16:39:15 QubeZ: This would be of the form 0Kq1kJCHetrF-5u41aXFP_aDH81N9llGbH_muRQ , and obtained from the google maps API website? Mar 28 16:39:23 yes Mar 28 16:39:34 QubeZ: And would be provided to the element through a android:apiKey="that" attribute? Yes. I've done this. Mar 28 16:39:51 k Mar 28 16:41:01 well I am new to this new channel ..... however as I have experienced a problem today, just want to ask if you guys have the same problem or not Mar 28 16:41:20 did anyone of you experience Google Play Store server error problem in the last few days? Mar 28 16:41:32 and you're targeting Google Inc.:Google APIs ? Mar 28 16:41:42 UnknownzD: I haven't and I'm on there like few times a day Mar 28 16:41:57 :\ Mar 28 16:42:18 wangenma: My AVD has that enabled. My AndroidManifest.xml looks like http://pastebin.com/S3d2gTEb . Mar 28 16:42:48 kamoricks: Permissions go outside the tag Mar 28 16:44:02 well coz it is a bit weird that the problem has extended to older version of com.android.vending (from the original apk file provided by Samsung) ...... and I have to fix it by deleting the /data/data/ com.android.vending folder Mar 28 16:44:09 SimonVT: And that was it. Thanks. Mar 28 16:44:17 all uses* tags go outside? Mar 28 16:44:23 No Mar 28 16:44:28 btw where is android log located by default? Mar 28 16:44:29 Check the documentation Mar 28 16:44:33 It tells you where they go Mar 28 16:45:02 meh, dont care enough to bother :P Mar 28 16:46:08 hrm, when i see variable names in source they are often named mFooBar, what is the m for? Mar 28 16:46:14 member Mar 28 16:46:20 class member Mar 28 16:46:39 oh ok Mar 28 16:47:25 so if it's in a class outside of a method that is a class member right? Mar 28 16:47:33 UnknownzD: ping Mar 28 16:47:42 lol wat Mar 28 16:47:52 or am i retarded Mar 28 16:47:52 go back to your #chatulous channel to hf plx :P Mar 28 16:47:57 NOU Mar 28 16:48:42 DigitalKiwi read the following book for basic OOP concept (however it is using C++) ---> Teach Yourself C++ in 21 days Mar 28 16:49:19 Now that I have a map, I don't have an overlay. What's wrong with http://pastebin.com/0q3ZWrNS ? I'm not even seeing where the NPE is coming from... the Drawable, maybe? Mar 28 16:49:26 rule of thumb: if there is a time frame in the title, it's not a good book :P Mar 28 16:49:40 Looks pretty spot-on the example. Mar 28 16:49:52 erm i'm not a newb i just am confused sometimes :( Mar 28 16:50:31 lol passing a null ptr? lol Mar 28 16:50:41 well wongk it is a good book coz it talkes about vtable as well Mar 28 16:51:01 when you want to do some hacks over existing OOP libraries ..... you always need that technique Mar 28 16:51:16 hmm my tag is not honoring spaces Mar 28 16:51:34 QubeZ: <[![CDATA ]]>, perhaps? Mar 28 16:51:36 anyway still no one answer my question lol -----> where is the log located by default in android? /data/log? Mar 28 16:51:37 Test does not contain spaces on left and right side Mar 28 16:51:46 heh... Mar 28 16:51:59 I thought it honored it within the tags, guess im wrong Mar 28 16:52:38 damn I hate to see my android become unstable after enabling verify bytecode prop Mar 28 16:52:51 not much way to debug it through :< Mar 28 16:53:06 QubeZ: It matters within tokens. Whitespace is a separate token from tag content. XML parsing rules are arbitrary but consistent. You want a CDATA escape around the tag contents. Mar 28 16:53:28 QubeZ: Blame xml Mar 28 16:53:37 looks like \u0020 will work for me Mar 28 16:54:03 Why would you want space at the beginning or end tho.. Is there not a better solution? Mar 28 16:54:51 SimonVT: I have something like "Optimal Path - 2012-03-28", I'd like to preserve the spaces for String: "Optimal Path - " Mar 28 16:55:03 so I can use it as a resource then just append the date after that string Mar 28 16:55:08 better way to do this? Mar 28 16:55:58 %s ? Mar 28 16:56:13 getString(R.string.optimal, "2012-03-28") Mar 28 16:56:37 blah blah %s Mar 28 16:56:44 ^ Mar 28 16:57:07 got it, will do that. thanks. Mar 28 17:02:06 http://dpaste.com/722904/ anyone have a clue why i'm getting that ClassCastException ? Mar 28 17:04:12 rvsjoen, so it's this line: mFragment = Fragment.instantiate(mActivity, mClass.getName()); ?? Mar 28 17:04:22 has anyone here used HockeyKit for beta app distribution? Mar 28 17:04:29 pretty slick Mar 28 17:04:44 rvsjoen: You're still trying to use activities in your tabs ;/ Mar 28 17:05:53 i'm misunderstanding something fundamental here... Mar 28 17:06:04 yep. Mar 28 17:06:14 I thought activities was a way to "separate" sets of fragments (fragments which belong to the same activity) Mar 28 17:06:19 (like that fragments arent activities) Mar 28 17:07:00 all I want is two tabs, one which has a list of items (one fragment), and one which has a list + a detail view (two fragments) Mar 28 17:07:05 public class DriftsmeldingerActivity extends SherlockFragmentActivity .. And then you try to instantiate it with Fragment.instantiate .. can you see how that might not work? Mar 28 17:07:14 SherlockFragmentActivity is an.. Activity Mar 28 17:07:19 SherlockFragment is a Fragment Mar 28 17:07:30 LIES Mar 28 17:07:43 your face is a lie Mar 28 17:07:43 SherlockService is an Activity Mar 28 17:07:49 ..and it's filled with cake. Mar 28 17:07:49 and SherlockActivity is a fragment Mar 28 17:09:10 can a fragment contain several other fragments ? Mar 28 17:09:26 yes Mar 28 17:09:47 Please don't put fragments with an ui in a fragment Mar 28 17:10:01 viewpager Mar 28 17:11:02 ok, so... I create one SherlockFragmentActivity which has the tabs in it, and then in each of the tabs I use a SherlockFragment Mar 28 17:11:25 in one of the two SherlockFragments, I inflate a layout which has two additional fragments in it Mar 28 17:11:32 would that be a sane approach ? Mar 28 17:11:58 no Mar 28 17:12:04 that's a "yo dawg" Mar 28 17:12:11 you can't "yo dawg" with fragments Mar 28 17:12:26 yo kitteh? Mar 28 17:12:28 i think you're missing the point of a fragment Mar 28 17:12:35 lol Mar 28 17:13:00 So, if I wanted to back up Accounts as part of backup/restore in my app, I can get the list of accounts, and I can get the type and name of the account, but I'm not sure how I'm going to get the rest of the information in order to re-add the account. Mar 28 17:13:13 sha1sum, not even adb backup/restore does that :( Mar 28 17:13:18 I've been staring at the Account and AccountManager API for a while now and I can't really find anything that gets all user data Mar 28 17:13:48 well, I can get account information on a basic level (even passwords), but the userdata is what I'm wondering about how to retrieve. Mar 28 17:13:48 no kidding Mar 28 17:14:14 rvsjoen: Have you read any of the Fragment documentation on the dev site? Mar 28 17:14:27 I just wanted to find some way to grab it all, serialize it, store it on external storage, then wipe, unserialize, add account. Mar 28 17:14:30 I read everything I could find Mar 28 17:14:34 twice Mar 28 17:14:56 problem is I can't make the connection between whats on the dev site and ABS Mar 28 17:15:09 there's always something "different" which makes my world turn into shit Mar 28 17:17:26 if my asynctask isnt an innerclass of my activity how do i update the UI in onpostexecute() Mar 28 17:19:38 holycrap that was so close.. Mar 28 17:20:43 [13:13:48] well, I can get account information on a basic level (even passwords), but the userdata is what I'm wondering about how to retrieve. Mar 28 17:20:46 you can get passwords o.O Mar 28 17:23:01 brx_: pass a reference from your activity to your asynctask class? Mar 28 17:23:16 but a reference to what exactly? Mar 28 17:23:31 to what you want to update Mar 28 17:23:47 ahh Mar 28 17:24:03 didnt think it would be that simple Mar 28 17:25:00 you might even want to use a WeakReference to make sure you asynctask class isn't holding on to the reference too long Mar 28 17:25:40 how can I transform an downloaded image to make its background colors transparent ? Mar 28 17:25:57 and in case the task runs after the activity is paused or stopped Mar 28 17:26:41 maxagaz: the background of the actual image you just downloaded? Mar 28 17:26:44 aleb: thanks Mar 28 17:26:51 alex7: yes Mar 28 17:27:15 hm, I'm not familiar with image manipulation on android Mar 28 17:28:01 maxagaz: do you control the images which are being downloaded? Mar 28 17:28:19 alex7: no Mar 28 17:29:04 alex7: well, until a certain limit, but I'm unable to make its background transparent Mar 28 17:29:39 why not? Mar 28 17:29:44 just use pngs Mar 28 17:30:40 maxagaz: what is the "background" Mar 28 17:30:46 is it every white pixel? every pink pixel? Mar 28 17:31:07 is the "background" nonuniform? Are there pixels with "background" colors elsewhere in the image that aren't part of the "background" ? Mar 28 17:31:33 You could always take the Bitmap, edit it, and for each pixel with 0xFFFFFF set the alpha to 0 or something Mar 28 17:31:37 then save the image, etc Mar 28 17:31:45 alternately, just fucking add an alpha layer to the source image. Mar 28 17:32:22 I'd like to do that with android (ImageMagick): convert -fuzz 5% -transparent "#ddddff" foo.png bar.png Mar 28 17:32:29 lov: I set the background of my app to be transparent, but my desk isn't showing underneath my buttons. Help? Mar 28 17:32:54 evancharlton: move the device 1 foot perpendicular to your view and retry. Mar 28 17:33:06 maxagaz: ok, swell. Have fun developing a tool. Mar 28 17:33:13 maxagaz: or are you looking for the doMyJobForMe bin? Mar 28 17:33:22 lov: now I can't see my mousepad Mar 28 17:33:24 evancharlton: Cut a hole in the back of your phone Mar 28 17:33:26 duh Mar 28 17:33:38 evancharlton: mail the device to me, I'll let you know when I fix it. Mar 28 17:34:37 lov: is easy to take the Bitmap, edit it, and for each pixel with 0xFFFFFF set the alpha to 0, that sound to be what I need Mar 28 17:35:27 maxagaz: http://developer.android.com/reference/android/graphics/Bitmap.html Mar 28 17:35:30 glhf Mar 28 17:36:25 glhf? I get the gl but what's the hf? Mar 28 17:36:31 have fun Mar 28 17:36:41 ah Mar 28 17:38:18 lov: okay thanks Mar 28 17:40:46 at least now I can start the application view the first tab, view the second tab, then it crashes with http://dpaste.com/722932/ when switching back to the first tab again Mar 28 17:41:12 Where can i download the latest platform-tools (aapt.exe)? Mar 28 17:41:24 I don't really want to update the entire SDK/ADT Mar 28 17:41:27 developer.android.com Mar 28 17:42:02 rvsjoen: this looks promising in your log: Duplicate id 0x7f040029, tag null, or parent id 0x0 with another fragment for no.karmoyrk.fragments.DriftsMeldingerListFragment Mar 28 17:42:03 maxagaz: the SDK is decoupled from the API sdks now. Mar 28 17:42:05 er Mar 28 17:42:10 magnets: the SDK is decoupled from the API sdks now.~ Mar 28 17:42:19 alex7: indeed, trying to figure what id it's talking about Mar 28 17:42:20 magnets: download the sdk from d.android.com, only select the sdk tools. Mar 28 17:42:47 can you post the xml so I can see what line 7 is? Mar 28 17:42:56 http://dpaste.com/722936/ Mar 28 17:43:16 I have android-sdk_r17-windows.zip but it doesn't contain aapt.exe Mar 28 17:43:37 I believe aapt is in the tools Mar 28 17:43:39 I have a feeling I shouldn't have a fragment inside a fragment like that Mar 28 17:43:45 but i'm not sure how to get around it Mar 28 17:44:15 has anybody used AtLassian Bamboo as an android build server? Mar 28 17:44:50 magnets: aapt is in platform-tools Mar 28 17:45:13 Doesn't look like I can manually grab the tools, apparently I can only install/update via the manager http://developer.android.com/sdk/tools-notes.html Mar 28 17:46:11 What's the general consensus: have the same look and feel for your app on all devices, or use holo for later devices? Mar 28 17:46:20 the latter Mar 28 17:46:30 rvsjoen: http://developer.android.com/guide/topics/fundamentals/fragments.html Mar 28 17:46:38 unless you're dramatically customizing your theming, you should try to stick to the device theming. Mar 28 17:47:02 TachyonDev: just use Jenkins. Mar 28 17:47:06 code1, use device look and feel throughout Mar 28 17:47:13 TachyonDev: and if you want it IN THE CLOUD!!!! use CloudBees Mar 28 17:47:59 lov: apparently we already have a license for bamboo Mar 28 17:48:12 and? Jenkins is free. Mar 28 17:48:40 0 vs 2 - I guess the latter it is! ;) Mar 28 17:48:54 alex7: yeh, i've been reading that over and over. just can't get my head around how to handle having tabs _and_ multiple fragments in a tab at the same time, without using activities Mar 28 17:49:25 I mean, if you want to use it to integrate with JIRA or whatever, that's fine, but don't just use it because you have it. Mar 28 17:49:47 rvsjoen: if you're going to have fragments, just go whole hog and do it all with fragments. Mar 28 17:49:55 rvsjoen: kick your tabs to the curb Mar 28 17:50:02 rvsjoen: http://developer.android.com/resources/samples/Support4Demos/src/com/example/android/supportv4/app/FragmentTabs.html Mar 28 17:50:47 lov: that's what i'm trying to do Mar 28 17:51:21 I've noticed a few layout misalignments with the holo theme, I suppose you're risking display issues with the latter Mar 28 17:51:40 that example is using TabHost, which is what i'm trying to move away from in favor of fragments :/ Mar 28 17:51:44 hrm, some of my values are not updated from the xml, is there a way to force it ? Mar 28 17:52:12 clean your project Mar 28 17:52:53 rvsjoen: have a look at more of the example code here: http://developer.android.com/resources/samples/Support4Demos/index.html Mar 28 17:56:28 :) Mar 28 17:57:47 I can probably also use the api13+ demos if i'm using ABS Mar 28 17:58:35 rvsjoen, the android-support library has demos showing how to use tabhost with fragments Mar 28 17:58:37 rvsjoen: abs? Mar 28 17:58:44 actionbarsherlock Mar 28 17:58:50 ah, understand. Mar 28 17:59:16 pfn: I was told not long ago in here that I shouldn't be using tabhost Mar 28 17:59:20 so i'm slightly confused Mar 28 17:59:42 how else are you going to switch between fragments? Mar 28 17:59:50 with the ActionBar Mar 28 18:00:01 like this https://github.com/rvsjoen/Android/blob/rodekors/HelloWorld/src/no/karmoyrk/RodeKorsActivity.java Mar 28 18:00:23 it's currently working, it just doesn't work when I switch back to a tab I have seen before Mar 28 18:00:25 I haven't gotten a chance to play with the action bar yet so Mar 28 18:02:39 With regards to display: I have a linearlayout with three sections that have a layout_height="wrap_content" and equal layout_weight but the middle section has two parts with only one being visible at any one time. The problem is they are slightly different hieghts and so when visibility changes, the other sections move slightly. Does that make sense and is there a way to solve this? Mar 28 18:03:29 ok, maybe im going mad, I have a val sent to 0.75, when I look at it in the debugger, I see 6K something :s Mar 28 18:03:44 Nothing has a specific height in pixels as I want to keep the layout fluid. Mar 28 18:04:05 rvsjoen, well, you can use tabhost... at least given that it's an example of how to do so in the support demos Mar 28 18:04:19 rvsjoen, tabhost sucks in general though... a better approach is to use something like viewpagerindicator Mar 28 18:04:44 code1: If you are using layout_weight, set the size in the direction it stretches to 0dp Mar 28 18:04:53 this covers pretty well what I want to do Mar 28 18:04:56 http://developer.android.com/resources/samples/Support13Demos/src/com/example/android/supportv13/app/ActionBarTabsPager.html Mar 28 18:05:04 SimonVT: Is this the recommended approach? Mar 28 18:05:08 but not when one "tab" needs to have multiple fragments Mar 28 18:05:17 everythingWorks: Yes Mar 28 18:05:22 (if yes, can you provide a link, please? ) Mar 28 18:05:33 Don't have a link, but I can tell you why Mar 28 18:06:45 SimonVT: what do you mean by "set the size in the direction it stretches to 0dp" Mar 28 18:07:01 hmm Mar 28 18:07:07 http://www.newegg.com/Product/Product.aspx?Item=N82E16820231533 Mar 28 18:07:09 SimonVT: go on ;) Mar 28 18:07:12 i wonder if two sets of those would fit in my laptop Mar 28 18:07:23 * Drakonite pokes TachyonDev Mar 28 18:07:39 along with two of these: http://www.newegg.com/Product/Product.aspx?Item=N82E16820233221 Mar 28 18:07:42 Drakonite: yo Mar 28 18:07:44 if you provide a weight for any view in a linearlayout, it has to do 2 layout passes. First pass, it measures all the views with their defined size. Second pass, it splits any left-over space between views with weight. During the first pass, LinearLayout skips any view with size = 0 (saves a lot of calculations) Mar 28 18:09:07 but if your view is wrap_content and weight=1 it measures it twice Mar 28 18:09:20 The in app billing stuff is kinda complicated at the first look i think. Probably could have been made easier :/ Mar 28 18:09:41 code1: If your linearlayout orientation is vertical, set layout_height to 0dp on any view with a weight Mar 28 18:10:14 k:) Mar 28 18:10:32 hey guys is it possible to switch only part of the screen? Mar 28 18:10:46 switch what Mar 28 18:11:27 I have a screen in my app and there is a part B inside of it and i was wondering if i can switch this part B and replace it by a new layout Mar 28 18:11:36 and switch back and forth Mar 28 18:11:49 SimonVT: and the horizontal ones? Mar 28 18:11:56 ok so I finally found some problem regarding the market "Server Error" issue Mar 28 18:11:58 03-29 01:15:53.787 7276 7288 E Volley : [14] BasicNetwork.performRequest: Unexpected response code 400 for https://android.clients.google.com/vending/api/ApiRequest Mar 28 18:12:23 code1: Well, if your orientation is horizontal, you would set width to 0 Mar 28 18:12:27 I'm still trying make transparent the RED colored pixels of an image, but it doesn't work, can someone see the problem in this code: http://pastebin.com/7fWxFV9J Mar 28 18:12:39 ? Mar 28 18:13:14 damn silly Google Mar 28 18:13:21 guys navigate to https://android.clients.google.com/vending/api/ApiRequest plx Mar 28 18:13:37 it says the cert there is invalid Mar 28 18:13:40 "You attempted to reach android.clients.google.com, but instead you actually reached a server identifying itself as *.google.com. This may be caused by a misconfiguration on the server or by something more serious. An attacker on your network could be trying to get you to visit a fake (and potentially harmful) version of android.clients.google.com." Mar 28 18:13:50 no wonder why the Google Play Store stop working atm Mar 28 18:14:56 unknkownzd it works for me Mar 28 18:15:03 (the play shop) Mar 28 18:15:06 not for everyone Mar 28 18:15:21 just google "Play Store server error" Mar 28 18:15:58 you can see a bunch of stuffs appeared ....... some says that it is related to region (fixed the problem by using US VPN) Mar 28 18:16:26 hmmm I will see if the cert is different in US or not Mar 28 18:17:37 maxagaz: the hell is 16711680 Mar 28 18:17:46 SimonVT: Thanks, that seemed to have fixed it thanks. Is it some kind of hack? Mar 28 18:17:46 maxagaz: you can use hex in your code Mar 28 18:17:53 0xFFFF0000 is probably what you meant Mar 28 18:17:56 http://stackoverflow.com/questions/9862230/how-to-style-actionbarsherlock-4-x Mar 28 18:17:58 Hello i use ActionBarSherlock Version 4.0.0 and i dont know how to change/style the title text, under version 3.5 i used @style/abTextStyle. but that doenst work in version 4.0.0. Mar 28 18:18:08 code1: No, it's just how weight it work. it distributes any leftover space Mar 28 18:18:09 maxagaz: consider attaching the debugger and seeing if you're ever actually getting a pixel with that value. Mar 28 18:18:23 code1: So if your views are wrap_content, they will first take up any space they need. THEN leftover space is distributed Mar 28 18:18:38 also, instead of calling getPixel a zillion times (expensive) get the array backing the bitmap, iterate over that, modify it, and then set the bitmap w/ it. Mar 28 18:19:09 lov: thanks so much :-) Mar 28 18:19:14 SimonVT: so it only works with layout_weight and wrap_content? Mar 28 18:19:20 what? Mar 28 18:19:31 0dp Mar 28 18:19:45 it works with wrap_content as well, just not how you'd like Mar 28 18:19:50 maxagaz: the number you passed in the args is 0x00FF0000, so I'm not surprised nothing matched it. Mar 28 18:19:55 maxagaz: try passing 0xFFFF0000 Mar 28 18:20:08 sorry I meant you replace wrap_content with 0dp Mar 28 18:20:15 (do mind your primative signing as well) Mar 28 18:20:47 lov: yes, indeed, it works perfect with 0xFFFF0000 Mar 28 18:21:12 SimonVT: Would leaving out layout_width have the same effect as 0dp? Mar 28 18:21:22 What means 'developer payload' in terms of in app billing? Mar 28 18:21:34 Okay, example. You have two views that are wrap_content and weight=1. The linearlayout is 100px tall. View1's content is 20px tall, View2's content is 30px tall. They are measured to be that cus you specified wrap_content. The linearlayout then has 50px left to distribute between any view with weight. Since View1 and View2 has the same weight, they each get 25px. View1 now has 45px, while View2 ha Mar 28 18:21:34 s 55px. Mar 28 18:21:53 If they were both set to 0dp, the linearlayout would have 100px to distribute. 50px for each Mar 28 18:22:20 No, you need weight since that tells linearlayout you want it to distribute remaining space Mar 28 18:22:41 SimonVT: Would it matter if i pass fill/match_parent instead? Mar 28 18:22:58 So... I'm still having a trouble on a handful of devices with OOM. Loading HUGE bitmaps into a ViewPager. Thinking about trying to use OpenGL textures in the ViewPager as a workaround. Any thoughts or suggestions? Mar 28 18:22:58 everythingWorks: Then there wouldn't be any space left to distribute Mar 28 18:23:10 i understand. Mar 28 18:23:28 No, the bitmaps don't exceed the screen-size; in fact, they're returned from a REST API to mirror the device's screen size. Mar 28 18:23:52 Back to my question, what means 'developer payload' in terms of in app billing? Mar 28 18:23:53 SimonVT: thanks, makes sense. Mar 28 18:24:00 Gotta go bye all Mar 28 18:24:56 I have a screen in my app and there is a part B inside of it and i was wondering if i can switch this part B and replace it by a new layout and switch back and forth Mar 28 18:25:26 Chronax: maybe you're trying to hold too many of the images in memory? Mar 28 18:25:30 Surfer2010: strongly consider using another activity instead of switching layouts. Mar 28 18:25:37 Yes, you can do this, but it's usually the wrong thing to do. Mar 28 18:25:46 Surfer2010: or use a fragment Mar 28 18:26:39 mh okay so you would rather have a new class+layout and switch back and forth between them? Mar 28 18:27:06 hmm how can I report a problem to android dev? Mar 28 18:27:12 in Google group / where? Mar 28 18:27:25 I want to replace my sgs II with a g. nexus :p Mar 28 18:28:56 > http://www.youtube.com/watch?v=Y7yN2EK7ahU&feature=uploademail Mar 28 18:30:44 I'm trying this method, http://pastebin.com/y4k1rTib to get my machine to recognize my Samsung Young as a debugging device in Eclipse, because for now all "adb devices" shows is the "??????????? no permissions" while lsusb shows my Samsung plugged in Mar 28 18:31:10 the first time I did this, it worked after maybe 20 times of trying and I don't know what made it work in the end, but it did Mar 28 18:31:13 and now it won't again Mar 28 18:31:53 alex7: I'm destroying them manually when they go out of View, so there are always 3 in memory at a time. Mar 28 18:32:04 Any other thoughts or suggestions? Anybody get around OOM Exceptions using OpenGL for large bitmaps? Mar 28 18:32:20 how big are the images Mar 28 18:32:24 also, that bug in Eclipse that prevents me from editing XML files using the XML editor or editing the Manifest using the Manifest editor, IS STILL THERE Mar 28 18:34:46 alex7: They're big. > 10MB each after decompressing. Mar 28 18:34:59 I don't want to subsample them, because it destroys the quality. Mar 28 18:35:04 And they're not too big for the user's screen. Mar 28 18:35:26 how about tiling them? Mar 28 18:35:43 1024x1024x32bit? Mar 28 18:36:37 Quick question ... Any idea why this ( http://pastebin.com/222f0hRZ ) gives the wrong year? Really appreciate it Mar 28 18:36:57 android.database.sqlite.SQLiteException: unable to open database file Mar 28 18:37:04 i dont see any x86 system image in my sdk manager, anyone have this issue? I only see the ARM EABI image. Mar 28 18:37:12 huh, I wonder why that happens Mar 28 18:37:18 QubeZ: There's only an api10 image so far Mar 28 18:37:23 I'm noticing TONS of suspicious NTP queries from suspicious hostnames on my device Mar 28 18:37:45 QubeZ: the only one is for 2.3.3 Mar 28 18:37:49 SimonVT: nuts, they dont really make that piece of information in the forefront do they Mar 28 18:38:01 * pragma_ suspects his device might be a botnet slave Mar 28 18:38:11 * pragma_ happily spies on the traffic Mar 28 18:38:14 was hoping to play with ICS because my current ICS in emu barely loads then dies (unreachable from eclipse) Mar 28 18:38:27 you can run that in a vm Mar 28 18:38:32 separately Mar 28 18:39:07 alex7: Yeah, I like the idea of tiling them. Mar 28 18:39:11 i dont even see the x86 image under my 2.3.3 folder options Mar 28 18:39:13 Have you done that before successfully? Mar 28 18:39:32 wait, nvm... i see it. Ok Mar 28 18:39:33 pfn which app is that? Mar 28 18:39:35 Chronax: not for android, but yes Mar 28 18:39:41 alex7: was that comment about running that in a vm for me? Mar 28 18:39:48 QubeZ: yes Mar 28 18:40:03 UnknownzD, crash report for my IRC client Mar 28 18:40:03 On another note, intellij 11.1 has just been released Mar 28 18:40:16 QubeZ: http://www.android-x86.org/ Mar 28 18:40:17 ah so it is your own db file Mar 28 18:40:28 thought it is an db file for official app lol Mar 28 18:42:26 ok 4.0.4 is out Mar 28 18:43:04 zomg i want one Mar 28 18:43:05 http://store.makerbot.com/replicator-404.html Mar 28 18:43:15 UnknownzD: oh? it got pushed? Mar 28 18:43:33 https://groups.google.com/forum/?fromgroups#!topic/android-building/YoBlTfntDvo Mar 28 18:43:41 according to someone in CM channel :P Mar 28 18:43:41 it is being pushed as we speak Mar 28 18:43:41 have anyone needed to send in their IO Tablet for repair? Mar 28 18:43:45 nice Mar 28 18:43:55 Zooklubba: no.. just angry ICS isnt on it yet Mar 28 18:44:58 bah, scumbag listview. Even if a view is disabled and no divider is drawn, it still reserves the space for the divider... Mar 28 18:45:01 okay so we have about 3 hours or so to wait Mar 28 18:45:03 local samsung support is a bit sketchy. They can see that samsung registered it and it has around 3 years warranty. I told them I got it as a gift at Google I/O but they still insist of me giving them a receipt. Mar 28 18:45:21 heh Mar 28 18:46:29 SimonVT: listView.setDivider(null); Mar 28 18:46:42 alex7: I still want divider on enabled items Mar 28 18:46:46 ah Mar 28 18:46:51 Zooklubba, the io tab has its own support group in Samsung Mar 28 18:47:09 pfn, so who should I call in order to send it in for repairs :P? Mar 28 18:47:18 at least that was the case last year Mar 28 18:47:41 but also in the us, dunno about intl Mar 28 18:48:47 poor us intls, lol Mar 28 18:51:23 All of my OOM Exceptions are occurring here, though: BitmapFactory.decodeByteArray(bytes, 0, bytes.length, options); Not sure if there's much I can do about that with respect to tiling. Mar 28 18:51:28 Any other suggestions guys? Mar 28 18:51:30 i'm creating a simple custom view extending the default class View and drawing some stuff in the Canvas in the onDraw method. all works if i put my view inside a LinearLayout but if i put my custom view inside a scroll view if is not shown. any idea? Mar 28 18:51:34 I've been struggling with this for weeks. Mar 28 18:52:33 with the last sdk, it's still not possible to set the startColor of an xml shape ? Mar 28 18:52:42 (programmatically) Mar 28 18:53:25 Chronax, the only answer, if you can't reduce the size of the bitmaps, is to do all image processing in native code Mar 28 18:53:50 pfn: That's what I was afraid of. Looks like the stock Google gallery app does that. Mar 28 18:54:13 I wonder how llvm bc works... Mar 28 18:54:23 renderscript is kinda interesting if it were more generally applicable Mar 28 18:54:45 it appears actionbarsherlock 4.0 adds a blue border beneath the actionbar. Mar 28 18:54:50 * abaratican wonders how to get rid of it. Mar 28 18:55:03 Set a different background Mar 28 18:55:44 Chronax: unfortunately, you're stuck. mallocs in native code don't count against your java heap limit, so do your work there if possible. Mar 28 18:55:54 just be super careful of leaks, etc. Mar 28 18:56:46 Hey, i've spent a long time looking for a good facebook SDK tutorial online ( including facebooks own ), is there one which anyone would particularly recommend? I found myself on page 10 of my google search so thought best to ask - finding facebook integration very hard but I need to use the facebook SDK rather than any other. Mar 28 18:56:57 lov, pfn: Thanks, guys. Any chance one of y'all has a lead on a native Bitmap JNI example? Google's not immediately finding much for me. Mar 28 18:57:12 the stock gallery app... Mar 28 18:57:26 you just named your own example Mar 28 18:57:39 pfn: Unfortunately, I don't think the native stuff is packaged with the Android source. Mar 28 18:57:43 Just the Java pieces. Mar 28 18:57:48 I doubt that Mar 28 18:57:54 wrongo Mar 28 18:58:09 Chronax: worst case scenario pull the android source from git and go diving there Mar 28 18:58:10 Really? Mar 28 18:58:27 it includes all of the sample apps, etc. Mar 28 18:58:41 then again, can't find any instance of loadLibrary in Gallery or Gallery2 Mar 28 18:58:47 hey, is anyone else having issues building master - failures to compile OpenFST? Mar 28 19:00:58 Guys, am I crazy to consider OpenGL for a ViewPager? Mar 28 19:01:05 Would that even work? Feels like I'm mixing oil and water. Mar 28 19:04:03 not really. Mar 28 19:04:26 er Mar 28 19:04:29 I don't think you're crazy Mar 28 19:07:14 Using the emulator, i have multiple devices of different versions which work fine. But i have 1 device running 4.0.3, which i can debug/run my app on once, then adb loses its connection to it. 'adb devices' shows no connected devices. Anyone experienced this? Mar 28 19:12:09 damnit it want that makerbot Mar 28 19:12:13 -it Mar 28 19:12:15 +i Mar 28 19:12:45 I can't think of any reason why playing pipe/fdreopen tricks on stdout in JNI would cause a problem for dalvik, can anyone else? Mar 28 19:13:00 since stdout is normally unused Mar 28 19:14:50 Doesn't stdout get sent to logcat? Mar 28 19:15:05 I think it depends on the version; i know i've seen some stdout output Mar 28 19:15:12 but I don't recall seeing it previously Mar 28 19:15:26 so long as it isn't the exclusive logcat channel I don't think I care if I lose it Mar 28 19:16:06 so the thing is i've got a large binary which, while I have the source, would be a problem to rewrite. I can NDK it into a shared lib and turn that into a java thread with some jackassery with assembling an argv and calling main() via jni Mar 28 19:16:59 but since it expects to write its data to stdout, I figure I can nuke the existing stdout fd and then pass it up via java/io/FileDescriptor to turn it into a java stream of output Mar 28 19:17:03 how can you change the page of a viewpager without it animating across every intermediate page? Mar 28 19:17:11 but that'll capture the entire processes stdout, not just the thread Mar 28 19:17:19 maybe I could do it as an independent process service Mar 28 19:17:31 oh nvm, i see the second form of setCurrentItem Mar 28 19:17:49 * pfn likes the scrolling across intermediate pages Mar 28 19:18:11 pfn: I'm using it in this case with ViewPagerIndicator, so it appears to be tabs to the user Mar 28 19:18:29 abaratican, but you're also swiping between pages right? Mar 28 19:18:45 pfn: yes, and the swiping I do indeed want to animate, just not when i select a page on the tab bar Mar 28 19:19:23 * pfn uses it with tabs as well Mar 28 19:19:26 and I leave it animating, heh Mar 28 19:19:28 hmm pfn what is the name of your IRC client? Mar 28 19:19:33 UnknownzD, qicr Mar 28 19:20:04 What's qicr stand for anyway? Mar 28 19:20:25 nothing really Mar 28 19:20:31 just some random name I came up with Mar 28 19:20:32 well pfn I have tried another IRC client once ... but it causes epic battery drain Mar 28 19:20:44 UnknownzD, staying connected will cause epic battery drain Mar 28 19:20:47 I was hoping to get an IRC client with less battery drain Mar 28 19:21:00 unless you use a hosted irc solution, like irccloud Mar 28 19:21:07 and use c2dm to push messages Mar 28 19:21:17 I'm not interested in writing a server-side component for an irc client in any case Mar 28 19:21:26 It has to keep your device awake at all times.. Radio running etc Mar 28 19:22:30 yea I know .... actually I am thinking of making a BNC that works for android client Mar 28 19:22:46 that pushes update to the client once new message is received Mar 28 19:22:55 or using time based batch processing Mar 28 19:23:05 won't really save much battery if you're on a lot of channels Mar 28 19:23:21 screen + irssi Mar 28 19:23:45 thats why I think it have to transform into batch processing as real time processing causes epic battery drain Mar 28 19:24:01 if you don't want your chat messages arriving in real time, sure Mar 28 19:25:23 well pfn makes such an IRC client for everyone :P Mar 28 19:25:23 probably something you'd want to tune to if you're in the foreground, device is asleep, etc Mar 28 19:25:51 if my phone was asleep I'd have no problem getting updates every 30 seconds or something Mar 28 19:25:52 * pfn despises using irssi from connectbot Mar 28 19:25:55 such a terrible experience Mar 28 19:26:17 when is your mal...errr, alternative coming out? Mar 28 19:27:10 qicr has been on market as a beta for a few months now Mar 28 19:27:24 what does that acronym stand for Mar 28 19:27:27 dragorn: Even 30 seconds wont let the device sleep very much Mar 28 19:27:29 nothing Mar 28 19:27:43 abaratican, an intentional typo of irc plus a q, I suppose Mar 28 19:27:44 like quicker Mar 28 19:27:48 * pfn shrugs Mar 28 19:27:54 * readme has qicr Mar 28 19:29:18 readme, I take you still prefer screen + irssi though Mar 28 19:30:07 pfn: no, I was suggesting it as an alternative for someone who wanted to save battery Mar 28 19:30:29 Im using a split actionbar. Is there a way to force a specific single item to be displayed in the top bar? I do not really care about the rest of the items. Mar 28 19:30:41 I see Mar 28 19:30:49 mgj, set your item order Mar 28 19:30:58 mgj, first items show in the top bar Mar 28 19:31:02 overflow shows up in bottom Mar 28 19:31:30 You would think so, but that is not the case for MapActivities (Google maps). Every item is displayed on the bottom bar Mar 28 19:31:31 * readme needs to figure out a way to get notified of /msg's, maybe a plugin for irssi that calls an API, that pushes a notification to my phone Mar 28 19:31:47 readme: write a C2DM plugin :) Mar 28 19:31:50 readme, that would be pretty easy to do Mar 28 19:31:55 readme: I'd buy that app Mar 28 19:31:55 yeah, it would Mar 28 19:31:59 but you'd need an app on the phone to receive a c2dm message Mar 28 19:32:07 evancharlton: a customer :)!!! Mar 28 19:32:11 * readme goes to work Mar 28 19:32:23 evancharlton, how much would you pay for that app Mar 28 19:32:25 :p Mar 28 19:32:35 but the downside of c2dm is that the sender needs to be registered Mar 28 19:32:35 readme: I'll buy it, rate it one star, then do a chargeback Mar 28 19:32:46 readme: i'd buy that app Mar 28 19:32:59 storkme: 1 star and chargeback or for real? Mar 28 19:33:02 for real Mar 28 19:33:05 alright Mar 28 19:33:13 as long as it worked and wasn't awful etc Mar 28 19:33:15 I have to do my duty, then Mar 28 19:33:25 readme: just have it send an email to @.com Mar 28 19:33:36 like 1235467890@vztext.com or whatever it is Mar 28 19:34:03 presumably the app could just register for c2dm on boot though right? like chrome2phone does? Mar 28 19:34:21 storkme, c2dm receivers are a manifest receiver Mar 28 19:34:40 but you'd have to do the authing or something? Mar 28 19:34:42 storkme: mhm, it'd be a background app Mar 28 19:35:11 evancharlton: yeah, that's certainly a way of doing it, but with push, I can get a rich notification Mar 28 19:35:18 storkme, so there's nothing to register on boot Mar 28 19:35:27 s/a rich notification/rich/ Mar 28 19:35:28 and an excuse to write something that uses c2dm Mar 28 19:35:31 hah Mar 28 19:35:31 a rich notification to go with your money-filled wallet after making this app Mar 28 19:35:52 alright well I'm going to go write this before someone takes the idea Mar 28 19:36:07 readme, you still need to integrate it into a client, though Mar 28 19:36:39 just use GAE and an irssi plugin right? Mar 28 19:37:04 (better yet you should open source the whole thing so idiots like me can learn from it <3) Mar 28 19:37:09 pretty much Mar 28 19:37:09 (I'll still buy it!) Mar 28 19:37:19 (I'll steal your code and sell it myself!) Mar 28 19:37:51 * pfn open-sourced his remote control app... Mar 28 19:37:55 pfn: I'll integrate it into two clients! And maybe three! Mar 28 19:38:04 isn't there a regular in here who has an open source app which sells on the market? Mar 28 19:38:06 I need to do something to make that app more user-friendly Mar 28 19:38:08 something to do with radios.. Mar 28 19:38:11 storkme, georg Mar 28 19:38:14 storkme, the aprs thing Mar 28 19:38:35 pfn: when in doubt, more viewpagersa Mar 28 19:38:43 if that doesn't work put some viewpagers in your viewpagers Mar 28 19:38:47 storkme, the app itself doesn't do anything, heh Mar 28 19:38:55 storkme, it's all about the website, which I haven't really invested anything into Mar 28 19:38:59 make it not do something with more viewpagersa Mar 28 19:41:27 who could i e-mail to ask about getting my app "featured" for a bit? Mar 28 19:41:29 bboboddqwoqwdobubqwdo qwuowqd owduqowuqdoudqwoudwoudwdqow dqwo dqwdboqdwb Mar 28 19:42:05 JakeWharton: you lurking? Mar 28 19:42:43 jabo, if you paypal $100 USD, i'll set that up for you Mar 28 19:42:51 paypal me* Mar 28 19:44:25 Jabo: does your app not suck? Mar 28 19:46:15 what? Mar 28 19:47:48 Does your app suck or not? Mar 28 19:48:20 no it doesn't suck Mar 28 19:48:40 it's nothing special, just a bit of fun for spring break Mar 28 19:48:44 but it doesn't suck Mar 28 19:49:30 Jabo: paypal me $100, I'll get it featured. Mar 28 19:49:52 how about, no? Mar 28 19:50:35 Then no featuring for you! Mar 28 19:51:24 * mgj was hoping for some mikedg trolling. Guess not... Mar 28 19:51:43 do you know why i get the error "remount failed: Operation not permitted" when i adb remount? Mar 28 19:54:10 ok, so when using ActionBar to supply tabbing, how would I go about adding multiple fragments to a single "tab" Mar 28 19:54:38 essentially, having what is described in the "Design Philosophy" at http://developer.android.com/guide/topics/fundamentals/fragments.html in one of the tabs Mar 28 19:56:41 androot: you need root to do that Mar 28 19:57:07 dont you? Mar 28 19:57:22 yes you do Mar 28 19:57:32 androot: go to #android-root Mar 28 19:57:37 wongk: no it worked before too Mar 28 19:57:39 if I have 3 fragments, FragmentA, FragmentB and FragmentC, I need A to display in the first tab, and B + C to display in the second tab Mar 28 19:57:43 wongk: and, i do have root Mar 28 19:57:50 androot: apparently not :X Mar 28 19:57:54 TachyonDev: you also think i need root for that? well no it worked before too Mar 28 19:58:07 remount allows you to access the root shell Mar 28 19:58:14 androot: you're probably not rooted. Go to #android-root. Mar 28 19:58:20 TachyonDev: no, it simply remounts the /system as read/write Mar 28 19:58:29 adb remount only works if adbd runs as root Mar 28 19:58:31 lov: i dont need root for that, it works on very stock phone Mar 28 19:58:36 yes, yes you do. Mar 28 19:58:39 and it does not by default on any user device Mar 28 19:58:42 I can assure you that remount requires root. Mar 28 19:58:49 adb remount only works on eng phones Mar 28 19:58:52 lol Mar 28 19:58:56 pfn: or userdebug Mar 28 19:58:56 pfn: yes, which it never does, not even when you are rooted. if you do "adb root" (to run adbd as root) you get the error: Mar 28 19:58:59 right Mar 28 19:59:05 ctate, er, yeah, something like that Mar 28 19:59:08 "adbd cannot run as root in production builds" Mar 28 19:59:16 androot, right, only on userdebug and eng builds Mar 28 19:59:17 there you go Mar 28 19:59:18 pfn: so it can never run as root even if you have local root via su Mar 28 19:59:27 >_< Mar 28 19:59:31 TachyonDev: what? it worked before just fine Mar 28 19:59:35 androot: you asked your question, you got your answer, whether or not you want to accept it. Mar 28 19:59:35 ugh Mar 28 19:59:42 (3:59:09 PM) androot: "adbd cannot run as root in production builds" Mar 28 19:59:51 lov: no, i demonstrated how the answers so far dont make sense.. Mar 28 20:00:00 what answers don't make sense Mar 28 20:00:01 androot: are you using a production build? Mar 28 20:00:02 fine. Mar 28 20:00:06 quite straightforward if you ask me Mar 28 20:00:16 TachyonDev: the conclusion is that adb remount does not require adbd runs as root... because IT WORKED BEFORE! Mar 28 20:00:17 adb shell; su; mount; mount -o rw,remount (params go here) Mar 28 20:00:20 go hog wild Mar 28 20:00:28 androot: what worked before on what Mar 28 20:00:29 TachyonDev: i am using a normal phone, not a nexus or wahtever Mar 28 20:00:32 let us know how that goes. Mar 28 20:00:33 adb shell su -c 'mount -o remount,rw /system' Mar 28 20:00:36 androot: doesnt matter what phone you are using Mar 28 20:00:38 TachyonDev: adb remount worked before i rooted it Mar 28 20:00:39 ^^ Mar 28 20:00:58 pfn: i know that works, but i want to understand why adb remount doesnt work Mar 28 20:01:00 androot, adb remount never works on production roms Mar 28 20:01:07 never, does not ever Mar 28 20:01:07 pfn: it worked before Mar 28 20:01:10 no, it didn't Mar 28 20:01:11 androot: what firmward, software, and phone is it? Mar 28 20:01:14 it just failed silently, perhaps Mar 28 20:01:15 if adb remount works on a stock phone w/o rooting, then the manufacturer really, really fucked up. Mar 28 20:01:16 pfn: ? but i used it Mar 28 20:01:21 what phone is this Mar 28 20:01:24 but it did not work Mar 28 20:01:25 you should strongly consider filing a bug report Mar 28 20:01:35 pfn: maybe it failed silently thats possible, but then why do i now get the error and not before? Mar 28 20:01:36 androot, either that or you overlooked the error message Mar 28 20:01:38 it's a pretty huge security hole to allow writable access to system Mar 28 20:01:44 androot: because the binary change Mar 28 20:01:49 you flashed it with a new firmware Mar 28 20:01:51 androot, my opinion is that you overlooked the error message Mar 28 20:01:54 this isn't fucking rocket science. Mar 28 20:01:59 lov: you dont get it .. its not writeable.. its still protected by fs permissions obviously Mar 28 20:02:01 and yeah, if you flashed a new rom, the error message can potentially change Mar 28 20:02:06 pfn: no srsly Mar 28 20:02:17 yeah how many gurus does it take telling you that you are wrong Mar 28 20:02:19 guys, i have an app that i code the code from here...http://code.google.com/p/obdroid/source/checkout, for some reason there is a menu item that scans the bluetooth, but, the funcion never gets called, the class exists and the function exists, but its never called, and i dont get 1 single error Mar 28 20:02:21 pfn: i did not flash a rom, i simply copied su into /system/bin Mar 28 20:02:27 .... Mar 28 20:02:27 gahahaha Mar 28 20:02:30 androot, then you overlooked the error message previously Mar 28 20:02:32 you didn't root your phone moron. Mar 28 20:02:41 lov: yeah great argument.. try to stay factual Mar 28 20:02:45 look. Mar 28 20:02:47 go to #android-root Mar 28 20:02:50 pfn: no i am fairly sure i didnt Mar 28 20:02:52 lov, I root my phone by copying su into /system/bin :p Mar 28 20:02:55 I can guarantee that adb remount DOES NOT WORK on production devices Mar 28 20:03:08 and if it DOES work on a production device there is a severe security hole that the manufacturer should know about Mar 28 20:03:10 pfn: i rooted my phone, copied su over, chmodded 4755 it Mar 28 20:03:17 lov, with a few steps before hand to make /system/bin writable, of course Mar 28 20:03:24 pfn: natch :P Mar 28 20:03:27 lov: well as pfn said maybe it failed silently before, still weird that now i get the error Mar 28 20:03:36 androot, anyway, you most likely overlooked the error Mar 28 20:03:47 pfn: hmm ok weird... im fairly sure i didnt Mar 28 20:04:02 adb remount will never ever work on a production phone that passes CTS Mar 28 20:04:06 ever Mar 28 20:04:16 evancharlton: what is cts? Mar 28 20:04:21 compatibility test suite Mar 28 20:04:34 if it has market/play store, it passed CTS Mar 28 20:04:38 evancharlton: but pfn said it works on all userdebug and eng builds Mar 28 20:04:47 those aren't release builds. Mar 28 20:04:53 androot: and none of those are certified for CTS Mar 28 20:04:53 english builds? Mar 28 20:04:58 androot, eng = engineering Mar 28 20:05:00 *shakes head* Mar 28 20:05:02 lol ah Mar 28 20:05:07 okay Mar 28 20:05:16 androot: do you have a question about android app development? are you an android app developer? Mar 28 20:05:27 lov: sure, just not now Mar 28 20:05:32 ok Mar 28 20:05:43 lov: well this is fairly relevant for app dev testing Mar 28 20:05:54 remounting system as writable? Mar 28 20:06:01 lol Mar 28 20:06:01 Unless you're working with an oem I don't see how Mar 28 20:06:08 maybe i am Mar 28 20:06:19 and even then, if you are rooting instead of building the os yourself Mar 28 20:06:22 much as I like to joke about how horribad oems are, I doubt you are. Mar 28 20:06:24 ok thanks anyway all Mar 28 20:06:25 you are on the wrong road Mar 28 20:06:30 lol.. Mar 28 20:07:33 a last question: how exactly is adb remount implemented? is it just the adbd executing mount -o remount,rw -t rfs /dev/block/stl9 /system basically? Mar 28 20:07:42 effectively. Mar 28 20:07:46 thanks Mar 28 20:08:00 most likely Mar 28 20:08:14 and can you also tell me why you asked whether the phone is rooted? rooted doesnt imply adbd runs as root right? so rooting itself should not fix it? Mar 28 20:08:45 yeah it actually kind of does. Mar 28 20:09:06 well ... no Mar 28 20:09:12 ok adbd basically uses su to execute the command? Mar 28 20:09:13 adbd still won't remount even if you have root Mar 28 20:09:19 you have to change to userdebug or eng Mar 28 20:09:28 ^^ Mar 28 20:09:31 but that's just a line in a text file Mar 28 20:09:36 androot: repo sync Mar 28 20:09:45 androot: make Mar 28 20:09:51 to be clear, "rooting" refers to getting local root, as well as flashing the device with an engineering rom. Mar 28 20:09:54 yeah that'll answer his questions Mar 28 20:09:57 TachyonDev: are those commands i should run? Mar 28 20:10:03 * TachyonDev snickers Mar 28 20:10:03 androot: no Mar 28 20:10:08 lov: yes i dont mean flashing a rom Mar 28 20:10:11 thanks evancharlton Mar 28 20:10:44 androot: if you are testing system privledged applications or something, you should be running your own source builds Mar 28 20:11:14 yawn Mar 28 20:11:16 can the userdebug / eng also be set via setprop? Mar 28 20:11:26 androot: no Mar 28 20:11:33 ok Mar 28 20:11:47 ok thanks guys Mar 28 20:11:59 androot: http://source.android.com/source/initializing.html Mar 28 20:12:33 btw while i googled i found different locations of the /system partition, but somehow /dev/block/stl9 seems to work, is it universal? Mar 28 20:12:41 thanks TachyonDev Mar 28 20:13:09 androot: just guess and check if you want to brick your device Mar 28 20:13:33 hehe Mar 28 20:13:35 evancharlton: ? Mar 28 20:13:50 no, it's not universal Mar 28 20:15:32 pfn: so if i had no google, how would i find the /dev/block? Mar 28 20:15:45 by inspecting the output of mount Mar 28 20:17:10 pfn: it shows something else, but the command still works. hm Mar 28 20:17:35 androot, newer versions of toolbox may ignore the device part of the mount command Mar 28 20:17:38 ok I created a whole new project and stripped down the problem as far as I can, this should show what i'm trying to do... http://dpaste.com/723002/ basically, one activity with two tabs, first tab shows fragment a and fragment b, second tab shows fragment c. if anyone has a clue whether or not this is even possible using fragments I would appreciate it Mar 28 20:17:50 pfn: ah Mar 28 20:17:56 let me try that Mar 28 20:18:39 rvsjoen, sounds like it should be possible Mar 28 20:19:13 must be some alias Mar 28 20:19:35 I know, and i've been banging my head against the wall to make it happen for the best part of the day now Mar 28 20:20:10 the showstopper is currently a java.lang.IllegalArgumentException: Binary XML file line #7: Duplicate id 0x7f050001, tag null, or parent id 0xffffffff with another fragment for no.karmoyrk.FragmentA Mar 28 20:20:43 rvsjoen, so look at the mentioned xml and fix i Mar 28 20:20:45 t Mar 28 20:21:01 I can't find anything wrong with the xml file Mar 28 20:21:37 rvsjoen: You've got a duplicate ID. Mar 28 20:23:22 the only duplicate IDs I can find are the ones on line 218, 229 and 241, but I tried changing those to testA, testB and testC already Mar 28 20:24:02 Fragments in fragments are still not supported Mar 28 20:24:24 correct, you cannot nest fragments Mar 28 20:24:45 then how can I put two fragments inside a tab (a tab which is also a fragment since i'm using ActionBar) Mar 28 20:26:07 tabs are not fragments :o Mar 28 20:26:22 mine are Mar 28 20:26:29 I think Mar 28 20:26:44 http://developer.android.com/guide/topics/ui/actionbar.html#Tabs Mar 28 20:26:46 according to that Mar 28 20:27:17 Right, so.. Mar 28 20:27:33 if you need two fragments in your content when a tab is clicked.. Add a layout which holds two fragments Mar 28 20:27:40 Don't add a fragment which adds a fragment Mar 28 20:28:03 I thought that was what I did (line 175 in the pastebin) Mar 28 20:28:12 hm Mar 28 20:28:18 by layout you mean View ? Mar 28 20:28:59 yes Mar 28 20:29:18 You can add any content when a tab is clicked Mar 28 20:31:33 the tab select is handled by the TabListener which adds a fragment, in this case Mar 28 20:31:39 so I need to modify it somehow Mar 28 20:32:10 Yes, modify it to add two fragments. For this you need two contains, one for each fragment Mar 28 20:32:24 hi all... is it possible so have different drawable items based on language? Mar 28 20:32:40 Yep Mar 28 20:32:46 Same way you do localization Mar 28 20:33:23 SimonVT, how? drawable-hdpi-en? Mar 28 20:33:31 Exactly Mar 28 20:33:54 Tho look up the ordering of those qualifiers Mar 28 20:34:07 I think language needs to be before dpi Mar 28 20:35:04 SimonVT, but this is the system language? any way I can control it? Mar 28 20:35:25 yes, this is the users chosen language Mar 28 20:35:30 rvsjoen, if you want to nest fragments, you need to do it programmatically Mar 28 20:35:35 The language the user wants to use Mar 28 20:35:44 You can probably change it, I don't know how Mar 28 20:36:09 there has to be something like UIActivityIndicatorView for android? Mar 28 20:36:25 without making a frame by frame animation :/ Mar 28 20:36:31 tbh I don't really care how its done, as long as I can show two fragments in one of the "tabs" :P Mar 28 20:36:39 i'll look into both ways Mar 28 20:36:50 hi Mar 28 20:36:51 i have a custom adapter inflating a listview (the listview is made of a normal texview and 2 hidden textviews). the problem is that each listview row is not clickable...i checked the layout xml files and seem ok...what could it be? Mar 28 20:37:01 thanks Mar 28 20:37:42 yo someone make me an app Mar 28 20:38:40 Hey, is there anyone here with experience with the facebook SDK for android? I'm SO close to having what I need, i'm just a bit stuck with something. Mar 28 20:39:41 My question is: when I call facebook.dialog, it opens up a webview, which is very square with a X in the top left ( it's fairly horrible ), is there an easy way to make this show with nice rounded edges etc? It should be something within the SDK I think, as most apps have this. Mar 28 20:39:44 I'll post a quick screenshot Mar 28 20:41:36 http://minus.com/mg6utFaHf Mar 28 20:41:47 Hi ,just a question about webview, when I update it's content, the height isn't recalculated (hopefully this word exists). how can I force my app to do so ? Mar 28 20:42:42 I tried invalidate but it doesn't seems to work Mar 28 20:49:02 hi! Mar 28 20:49:04 <`teh1> best free android barcode genrator? Mar 28 20:50:43 the zxing is usually the one installed Mar 28 20:50:49 just called Barcode Scanner i think Mar 28 20:51:01 yeah barocde scanner Mar 28 20:51:04 someone make me an app Mar 28 20:51:07 i'll pay Mar 28 20:51:10 pm me brahs Mar 28 20:51:38 So I guess nobody knows :/ Mar 28 20:51:53 everyone is too busy PMing me Mar 28 20:53:03 <`teh1> QubeZ: barcode generator. not scanner Mar 28 20:53:10 <`teh1> barcode generator library Mar 28 20:53:18 <`teh1> so i can generate barcodes within my app yo dawg Mar 28 20:53:19 Lieutenant: read the topic: Please don't advertise websites, jobs, or contracts Mar 28 20:53:33 I have two layouts: 1) Main.xml(with Linearlayout tag) and 2)Input.xml(there are an EditText and button); When i inflate LinearLayout(from Main.xml) with Input.xml, the virtual keyboard doesn't appear, when I click on EditText. Mar 28 20:53:35 `teh1: oh shit, my bad Mar 28 20:53:41 oh wtf Mar 28 20:53:43 multi-tasking to0 much :\ Mar 28 20:53:44 i didnt know that Mar 28 20:53:55 then how do i get someone to make me an app? Mar 28 20:54:12 that is a weird channel rule, but alas it is the rule (atm) Mar 28 20:54:17 you ask on a job board, Lieutenant Mar 28 20:54:19 Lieutenant: rentacoder and other sites Mar 28 20:54:22 elance.com Mar 28 20:55:12 wow that takes too much work Mar 28 20:55:14 fuck that Mar 28 20:55:22 tough I guess if you take it on pm, might not be a big deal? Mar 28 20:55:33 just don't spam with requests Mar 28 20:55:34 sounds like you're really excited about your app, Lieutenant Mar 28 20:55:44 lolol Mar 28 20:56:01 u know those "screenshot" apps? Mar 28 20:56:03 i need a modified version where you can "scroll" though a list. and it continuously screenshots the page while you're scroling, and stitches it together to create one long (vertical) screenshot of the area you scrolled through Mar 28 20:56:10 [main.xml: ] + [Input.xml: ,