**** BEGIN LOGGING AT Sun Feb 12 02:59:56 2012 Feb 12 02:59:59 Hey guys Feb 12 03:02:58 whats going on guys Feb 12 03:03:22 hello, anyone here who is in the java channel, please send a invitation to the java channel. Feb 12 03:03:45 sorry, should be please send me a inviation Feb 12 03:04:13 i have an activity to display a pic, either from my camera result, or from gallery (outside the app, using intent filter). From my own app i'm trying to fabricate an intent similar to what the system would generate, using ACTION_SEND and EXTRA_STREAM. The example code i took uses getExtras().getParcelable(Intent.EXTRA_STREAM). This returns a URI. I get a URI from the camera-intent, but Feb 12 03:04:13 how do I stash it in EXTRA_STREAM so it will be read properly? Feb 12 03:11:39 I...wow... Feb 12 03:12:02 There is a preinstalled uninstallable that appears to be an advertisement for a paid service. Feb 12 03:12:25 I need to get into the business of being completely terrible at everything, because apparently that's where the real money is. Feb 12 03:12:47 buying that phone was a good start :0 Feb 12 03:13:18 This will be a tax writeoff. Feb 12 03:13:42 How can I make my Android device to display a selector for my desired launcher on boot? Feb 12 03:22:36 ryden if you have the selector things done, you can listen to android.intent.action.BOOT_COMPLETED Feb 12 03:22:58 Thanks! I will check! Feb 12 03:23:10 Going to launch my first Adwhirl - Inmobi/Admob app real soon. Will also be my first Inmobi app. Feb 12 03:23:39 My luck it will get 200 downloads in the next year - and all this ad juggling will be for naught. Feb 12 03:30:41 I thought the reason netflix didn't landscape was my phone's fault, but apparently they just hate keyboards. Feb 12 03:34:40 xorgate, the selector things are that my application appears when I press the "Home" button, right? Feb 12 03:35:04 And when I said "there is a" I should have said "there are multiple". Feb 12 03:35:12 ryden i dont know what you mean by that Feb 12 03:35:36 xorgate, what do you mean by "the selector things"? Feb 12 03:36:12 And unrelated to all this, are all widgets now resizable or can you still restrict that? Feb 12 03:36:15 ryden you started it :) 'how can i display a selector' Feb 12 03:36:33 Anyone know how i can make onscreenkeyboard change text of a button? Feb 12 03:36:50 xorgate, I mean the selector that shows up when you press the Home button :P Feb 12 03:36:55 and in a classic avoidance of 'i dont know what he means' i answered only the part about starting on boot Feb 12 03:37:00 i have a button that picks contacts, i want a way to be able to enter custom phone # so i have long click open onscreenkeyboard Feb 12 03:37:15 ryden i dunno i dont have that Feb 12 03:37:27 awww :-( Feb 12 03:37:32 Thanks anyway, xodbx . Feb 12 03:37:38 xorgate* Feb 12 03:37:41 ^_^ Feb 12 03:38:03 i have my activity started when using share in the gallery, only the icon that's used in the share-apps-list is huge. what do? Feb 12 03:38:34 make it using the eclipse icon maker? Feb 12 03:39:17 file -> new -> Asset Set Feb 12 03:39:36 yech now i gotta start eclipse Feb 12 03:39:51 what were you using? Feb 12 03:40:03 careful, you might find other useful tools within as well Feb 12 03:40:05 anyway the problem is more 'what size should i use' and where should i say to use it Feb 12 03:40:19 probably action bar Feb 12 03:40:52 Oh ha ha he he, video rentals are not available because my device is rooted. Feb 12 03:40:58 I believe that is a fair tradeoff, Verizon. Feb 12 03:42:02 I wonder what it would take to get a job in Verizon's AD deparement. Feb 12 03:42:24 Anyone know how i can make onscreenkeyboard change text of a button? I have a button that picks contacts, i want a way to be able to enter custom phone # so i have long click open onscreenkeyboard Feb 12 03:42:56 Hi, can SL4A allow perl scripts to be executed/used in Android? Feb 12 03:43:43 Can anyone suggest an IRC client that will allow to use Perl scripts on Android? Or a solution? Feb 12 03:43:43 Scripts can be run interactively in a terminal, in the background, or via Locale. Python, Perl, JRuby, Lua, BeanShell, JavaScript, Tcl, and shell are currently supported Feb 12 03:43:46 It should, yeah. Feb 12 03:44:14 can anyone help with my problem? Feb 12 03:44:54 Thanks, NightmareApps, MalRD Feb 12 03:45:03 np Feb 12 03:45:19 NightmareApps: I'm not entirely sure what you're stuck on. Feb 12 03:45:44 i need a way for my pick a contact button to be able to enter a custom phone # Feb 12 03:46:00 so my solution (unless theres a better way) is to long click to open numeric keyboard Feb 12 03:46:49 so you want to change the text of the button? o_O Feb 12 03:47:26 also if anyone knows how to fix this i'd be much obliged :) http://i.imgur.com/9nh7j.png Feb 12 03:47:52 yeah i want the numeric keyboard to be able to type out the text of my button Feb 12 03:48:15 or, maybe pop up a little dialog box that says "Enter custon number" and a textfield below Feb 12 03:48:29 ok so then do that and call setText() Feb 12 03:48:51 Hello! I can connect to my host via the emulator. But I can't seem to ping a machine that is on my local network from my actual handset. The other way around it doesn't work either. However everybody can ping the router. Is this specific to my network or does it have something to do with android? Feb 12 03:48:56 can i set text of an alert box? Feb 12 03:49:48 or, how do i get the input from my keyboard and setText() with it Feb 12 03:50:38 NightmareApps you start something that will let you type text, then get that text and do myButton.setText( "bla" ) Feb 12 03:50:52 you need to think about how the data flows in your app Feb 12 03:53:40 uhm, but how would I like, show something where i can type into and setText() of my button Feb 12 03:54:26 ah, an alert with textfield could work. Feb 12 03:57:09 Hi there Feb 12 04:01:37 well i think i need to provide a label in the intent-filter of 48x48 (hdpi). But I'm not sure... Feb 12 04:01:44 s/label/icon Feb 12 04:02:57 is it possible to boot a rom from usb flash drive as well? i know you can from sdcard Feb 12 04:03:10 on a android tablet Feb 12 04:03:33 if you can boot it from the adb shell you can do it from a flash drive too Feb 12 04:03:42 it has to be flashed to read from that device Feb 12 04:05:21 xbp: interesting.. Feb 12 04:05:45 xbp: so a bootable rom ? Feb 12 04:09:59 I am looking at adb usage.. whats the syntax to boot a rom from adb shell ? Feb 12 04:10:28 i have a rom and ubuntu.zip .. i like to try both Feb 12 04:10:42 axisys: you seem to be mistaking this channel for #android-root Feb 12 04:10:42 i am using my ubuntu laptop Feb 12 04:11:09 Leeds: oops.. no wonder my question was not getting response :-) Feb 12 04:11:15 Leeds: thanks a lot.. heading there Feb 12 04:50:48 how can i make an intent to share using twitter/facebook etc, where i attach a picture and supply text? cant find anything on the pic Feb 12 06:23:07 Hey guys, I can't seem to get my app working properly. this app is supposed to let me alternately tap buttons - once on the left, once on the right (repeatedly). But right now, I can only tap on the left button (for both players), no matter how many times I tap. Feb 12 06:23:11 Here's the code: http://pastebin.com/V2Fqf6hb Feb 12 06:40:02 hello, I am getting a null pointer exception error when calling a string in a file that isn't "strings.xml" through res.getString(R.string.mystring). The resources are loaded and the xml file is in the values under res Feb 12 06:40:27 eclipse seems to recognize the file as I have no compilation error Feb 12 06:43:27 nevermind Feb 12 06:43:34 I found my problem... Feb 12 06:47:42 congrats Feb 12 06:48:06 thanks :) Feb 12 06:48:51 my problem however..>.< Feb 12 06:51:16 have you tried following the behavior with LogCat by adding Log.d() to your code? Feb 12 06:51:17 maybe you busted your screen by tapping too hard ;0 Feb 12 06:51:32 xorgate: lol it's on a sim Feb 12 06:51:47 I wish it was because my screen broke lol Feb 12 06:52:09 probably not! fixing code cheaper than fixing screen Feb 12 06:52:13 dont use context=this Feb 12 06:52:19 just use this Feb 12 06:52:32 haha Akuma but not as frustrating Feb 12 06:52:35 xorgate: me? Feb 12 06:52:39 I feel you Feb 12 06:53:07 xorgate: I'm not sure what the line final Context context = this; does \= Feb 12 06:53:15 but isn't it to make a new activity or screen or something? Feb 12 06:53:34 im sure you can combine those 2 onclicks in 1 Feb 12 06:53:54 xorgate: I'm not sure how. Feb 12 06:54:13 that line stores a reference to this (your current activity) in a field Feb 12 06:54:19 inside the current activity Feb 12 06:54:21 uhh...okay? Feb 12 06:54:33 am I supposed to combine those two clicks in one? Feb 12 06:54:33 snuupy.mSnuupy = snuupy Feb 12 06:54:36 kinda useless ;0 Feb 12 06:54:42 lol ouch Feb 12 06:55:08 so instead of final Context context = this;, I use final Context = this;? Feb 12 06:55:09 the code is almost the same Feb 12 06:55:18 no you delete the entire line Feb 12 06:55:31 oh. Feb 12 06:55:38 okay.. Feb 12 06:55:41 and vow never to write any such thing again Feb 12 06:55:43 but how's that supposed to solve it? Feb 12 06:55:48 it's not Feb 12 06:55:51 xorgate: it was from an example I've had Feb 12 06:55:57 wasn't sure what it did, but it worked Feb 12 06:56:00 so I just kept it there Feb 12 06:56:41 playerar = (Button) findViewById (R.id.buttondsaright); Feb 12 06:56:41 playerar = (Button) findViewById (R.id.buttondsbright); Feb 12 06:56:44 there's your problem Feb 12 06:57:15 those aer two lines in the code Feb 12 06:57:39 but what's wrong witht hem? Feb 12 06:57:40 them* Feb 12 06:57:45 they're both linked to the xml file Feb 12 06:57:47 player a left, player b left, player a right, player a right Feb 12 06:58:00 yep, that's right Feb 12 06:58:13 are you sure that a shouldnt be a b Feb 12 06:58:50 what are their line numbers? Feb 12 07:00:39 make your activity implement View.OnClickListener, override the onClick(View view) method, and determine which button was pressed inside that Feb 12 07:00:53 and setOnClickListener( this ) for all buttons Feb 12 07:01:17 you have 4x basically the same code Feb 12 07:01:21 yeah, I do xD Feb 12 07:01:31 I'm not sure if I can mush it all into one though Feb 12 07:01:46 I've done java before, but Android seems really weird, and I just started in it Feb 12 07:01:54 in developing for android* Feb 12 07:02:06 think EJB? Feb 12 07:02:23 and Stateful beans? Feb 12 07:02:32 xorgate: but how do I determine which button's pressed? Feb 12 07:02:51 I thought it was by using the line playeral.setOnClickListener (new View.OnClickListener () Feb 12 07:02:53 you can compare the parameter 'view' to playeral and such Feb 12 07:03:50 I don't really get it - what does the code look like? Feb 12 07:04:01 also about my comment earlier, you set playerar to a-right and immediately after to b-right Feb 12 07:04:19 what's wrong with that? Feb 12 07:04:24 After the left is tapped Feb 12 07:04:27 the right is enabled Feb 12 07:04:55 a = 1; a = 2; what is a ? Feb 12 07:05:21 where do you see that? Feb 12 07:05:29 i pasted two lines Feb 12 07:05:33 oh Feb 12 07:05:34 and i think you didnt see the problem in them Feb 12 07:05:35 2 Feb 12 07:05:37 lol Feb 12 07:05:55 a is 2...I don't get how that applies to my code. Feb 12 07:06:03 line 29 Feb 12 07:06:54 playerar = (Button) findViewById (R.id.buttondsbright);? Feb 12 07:07:07 that is your a = 2 Feb 12 07:07:10 now look at the line above Feb 12 07:07:34 ahh needs to be br Feb 12 07:07:37 not ar Feb 12 07:07:56 copypaste is evil Feb 12 07:07:56 right. Feb 12 07:07:59 try to avoid it Feb 12 07:08:00 it is >.< Feb 12 07:08:08 lol it's the most useful and horrible tool Feb 12 07:08:11 hence, combine the click handlers Feb 12 07:08:15 thanks xorgate, trying again now Feb 12 07:08:30 do you think I should do it now, or after I've fixed everything? Feb 12 07:08:43 i'm not sure how I would put it all in one chunk Feb 12 07:08:59 well it's quite ugly already :) Feb 12 07:09:02 what exactly is the game? Feb 12 07:09:04 haha yeah it is Feb 12 07:09:16 xorgate: would you like a screenshot? Feb 12 07:09:21 first one to 10 wins? Feb 12 07:09:27 yeah, xD Feb 12 07:09:36 left right left right etc. Feb 12 07:09:40 xorgate: still doesn't work ): Feb 12 07:09:41 ok Feb 12 07:09:48 still doesn't let me tap the right button Feb 12 07:10:37 new code: http://pastebin.com/pBz7NDwb Feb 12 07:10:40 what do you mean doenst let me ta Feb 12 07:10:41 p Feb 12 07:10:52 they're buttons are they not Feb 12 07:11:03 let me rephrase Feb 12 07:11:05 xD Feb 12 07:11:09 they can be tapped Feb 12 07:11:18 but they won't add to the counter. Feb 12 07:11:49 xorgate: would giving you the source help? Feb 12 07:11:55 on button press, decide player A or B Feb 12 07:12:11 for A and B, remember which button (left or right) needs to be tapped Feb 12 07:12:23 and on a correct tap, switch Feb 12 07:12:33 isn't that what's done right now? Feb 12 07:12:40 yes, that's exactly what I want to do Feb 12 07:12:42 yes, uglily Feb 12 07:12:51 use your programmer brain Feb 12 07:12:59 haha, my code is ugly Feb 12 07:13:22 but it's not working the way it's supposed to Feb 12 07:13:31 I want to fix that before making it pretty Feb 12 07:13:38 unless making it pretty makes it get fixed? Feb 12 07:13:52 look at the mess you're in :) Feb 12 07:14:00 why would you not want to clean it up Feb 12 07:14:00 lol Feb 12 07:14:11 yeah, it should be cleaned up. Feb 12 07:14:19 remove it all Feb 12 07:14:30 and do as i said with 1 onclick handler Feb 12 07:14:41 and put all logic in 1 place Feb 12 07:14:56 okay, I'll try that Feb 12 07:17:57 whenever you notice you're basically doing the same thing twice you should get uneasy and think of a way to do only 1 thing Feb 12 07:18:12 that's what programming's about Feb 12 07:21:57 alright. Feb 12 07:22:07 how do I determine which button it is? Feb 12 07:22:13 whether if it's al, ar, bl, br Feb 12 07:22:18 you get a View as param Feb 12 07:22:34 this is a button Feb 12 07:23:30 found a tutorial Feb 12 07:24:12 xorgate: but if the code is still the same after i've made it pretty Feb 12 07:24:18 how is it supposed to fix whatever problem i have now Feb 12 07:24:34 its not about making it pretty but more about making it less prone to errors Feb 12 07:24:45 but are there any errors right now? Feb 12 07:24:58 you said the program was not behaving as it should Feb 12 07:25:06 yeah, it's not Feb 12 07:40:46 well a good and unexpected reboot fixed my problems \o/ Feb 12 08:15:19 Hi, can anyone tell me how I can find out which phone/operator pairs support the native SIP/VOIP libraries? Feb 12 08:37:26 Is there a way to turn a byte[4] into an integer, other than manually shifting etc? Feb 12 08:50:34 JakeWharton: btw, with latest ESXi it should be possible to run Windows with "console" access - USB passthrough for input, and DirectPath for GPU access :) Feb 12 08:51:36 jorgenpt i guess you could try multiplications.. in the end you're looking at 4 operations Feb 12 08:51:44 jorgenpt: google. Feb 12 08:51:55 I was wondering if there was something like casting a pointer in C. Feb 12 08:52:05 neekers: I tried that first, couldn't find anything useful Feb 12 08:52:26 http://stackoverflow.com/questions/4492711/java-convert-byte-to-integer Feb 12 08:52:35 dude, it was the second hit. Feb 12 08:55:15 How do i make my BroadcastReciever call methods from the Activity that fires it? Feb 12 08:55:49 Can i make the broadcastreciever fire in the activity, rather than extending in a new class? Feb 12 08:57:46 neekers: Ah, ByteBuffer. I missed that part of the answer. Feb 12 08:59:36 Thanks! Feb 12 09:13:35 hello, I'm trying to send an http post request using org.apache.HttpPost. When I do setEntity(new UrlEncodedFormEntity(nameValuePairs)); it seems like nothing is set onto the HttpPost Feb 12 09:14:33 I check the outgoing request qith Log.d("debug", "Request: "+httppost.getRequestLine) Feb 12 09:14:46 which displays only the basic url but none of the parameters Feb 12 09:17:08 Do you guys use an issue trackign system? Feb 12 09:17:11 tracking, even. Feb 12 09:18:02 Can i make the broadcastreciever fire in the activity, rather than extending in a new class? If not, how do i start a method from broadcastreciever Feb 12 09:22:40 if i wanna have an APK in the market thats seperate just for xhdpi devices, can i remove the assets from the mdpi/hdpi folders and just have the xhdpi folder? and specify just xhdpi in manifest Feb 12 09:22:56 and also have the other APK support just mdpi/hdpi devices Feb 12 09:23:03 and have no xhdpi folder Feb 12 09:24:40 no one? Feb 12 09:26:11 docvile: read closely through multiple apks article Feb 12 09:26:20 i have them all open ATM Feb 12 09:26:37 and i understand all the details to the proper versioncodes, Feb 12 09:26:45 and the way it supplys them to the proper screen size Feb 12 09:26:55 but it focuses more on how to create library projects Feb 12 09:27:26 and not the bottom line if all my assets are specific to screen size, do i need the other mdpi/hdpi folders to be in the project anyway, if its only for XHDPI, and vice versa Feb 12 09:28:06 don't include the asset folders for resources that you aren't going to use, even if empty, would be what I am thinking Feb 12 09:28:21 omg Whitney Houston is dead Feb 12 09:28:31 i didnt mean asset folder, im refering to asset as the images/resources used in each dpi folddr Feb 12 09:29:15 docvile: don't include them Feb 12 09:29:34 IMHO best is to have a script that removes the stuff you don't need Feb 12 09:30:03 all the images, [8] are specific in size, and take up about 3mb per screen size Feb 12 09:30:27 so im trying to keep the APK at 3mb and have 3 seperate APKS to support mdpi/hdpi/xhdpi instead of having a 9-12mb file size Feb 12 09:30:46 no resources are being used across all screen sizes other than the icon. Feb 12 09:31:18 i understand how to define it in the manifest, i was just hoping some one can verify that i could remove the folders for the sizes not compatible with Feb 12 09:33:31 jakewharton: are you active right now? Feb 12 09:40:05 How can i call a method in background every set interval? Feb 12 09:40:53 A service Feb 12 09:41:19 Does the service have to be subclassed? Feb 12 09:41:51 im not sure what you mean by that but it's just something that runs in the background. Feb 12 09:42:12 Well i was using an alarm manager but it had to be subclasses, so i couldnt use any of my methods Feb 12 09:42:42 http://developer.android.com/reference/android/app/Service.html Feb 12 09:43:19 http://marakana.com/forums/android/examples/60.html Feb 12 09:43:23 yeah see the service has to be in its own class that extends service Feb 12 09:43:24 There is some example code. Feb 12 09:43:41 with that, all my methods don't work.. Feb 12 09:43:56 What do you mean by they don't work. Feb 12 09:44:02 how do i call them? Feb 12 09:44:18 i'd have to make them static and then certain stuff doesn't work Feb 12 09:44:23 instantiate the oject then call the methods Feb 12 09:44:26 ^ Feb 12 09:44:31 ho Feb 12 09:44:32 how Feb 12 09:44:32 JoeTheGuest: NightmareApps never had contact with RPC Feb 12 09:44:46 p_l ? Feb 12 09:45:11 NightmareApps: let me guess, you want the service to call something in your Activity? Feb 12 09:45:13 NightmareApps you need to create an object of that class and then you can call the methods like normal. Feb 12 09:45:28 yes p_l Feb 12 09:45:32 Use an interface. Feb 12 09:45:35 not sure how :P Feb 12 09:46:01 NightmareApps: then instead of Service, you need to start a thread with a Looper which will call that method regularly... Feb 12 09:46:18 I recommend hitting books about programming and java, btw Feb 12 09:46:34 will that work in background (when app isnt showing) Feb 12 09:46:50 NightmareApps Do you need this to run even if the app isn't running or will it only be doing then when the app is open. Feb 12 09:46:58 NightmareApps: ... I think you need to rethink your app Feb 12 09:47:05 It needs to run when it isn't running Feb 12 09:47:12 You need a service then. Feb 12 09:47:15 NightmareApps: And some people don't die when killed Feb 12 09:47:49 Then use a Service, and make the methods to be called *not* be part of Activity - create your own utility classes for that, instantiate them, etc. Feb 12 09:48:22 NightmareApps or make them static and pass in the information that can't be static. Feb 12 09:48:25 so all my methods need to be in a seperate, regular (non extended) class and then call them like utility.myMethod(); ? Feb 12 09:48:42 No, Utility u = new Utility(); then u.myMethod Feb 12 09:49:03 Learn some basics of Object Oriented Feb 12 09:49:13 NightmareApps: Learn some basics of Java Feb 12 09:49:28 ah so my activity calls my alarmmanager, then the alarm manager says Utility u = new Utility(); and calls u.methodName(); Feb 12 09:49:37 10 points to anyone who can help me with http://groups.google.com/group/android-c2dm/browse_thread/thread/c562c4a9388ce817 Feb 12 09:50:34 NightMareApps: in reference to "go learn some java" here is good start http://docs.oracle.com/javase/tutorial/java/concepts/index.html Feb 12 09:50:49 ... Feb 12 09:51:06 im aware on how to code in java, i just was asking what the best way is cause i don't know android specifics Feb 12 09:51:08 i went from marathon rons of copy n paste test runs to actually knowing what the hell was going on in about a week Feb 12 09:51:26 ah, wasnt sure, i just jumped in when i seen that same thing said to someone, that was said to me plenty of times Feb 12 09:51:29 Android is Java, they just created their own API's/ Feb 12 09:51:36 NightmareApps: "non extended class" suggests otherwise Feb 12 09:52:03 Lol.. Feb 12 09:52:21 just trying to help :D Feb 12 10:09:06 Does anyone know how to get a unique calendar ID? _id is a sequential int, and I need to store data outside of the calendar that can be tied back to a particular calendar Feb 12 10:09:32 I saw when I made a shared calendar it got an id of asdasdsdijo3rrtg09j24hgr98hfwoisehsidhv98erv@google.com or something like that Feb 12 11:06:07 trinode: create a uuid Feb 12 11:07:29 I am using a startActivity method and am getting an ActivityNotFound exception after my app crashes. How should i take care of this? Feb 12 11:07:43 i am passing the required intent as the parameter Feb 12 11:11:10 arkiver: are you sure you have it declared in your manifest? Feb 12 11:16:43 wabz, do i need to declare the intent in the manifest ? Feb 12 11:16:58 i have put an intent-filter though .. Feb 12 11:17:28 Feb 12 11:17:48 wabz, http://pastebin.com/TMk4Z8pn Feb 12 11:17:50 the label thing is not needed.. Feb 12 11:17:51 this is my manifest Feb 12 11:18:45 and this is my java file : http://pastebin.com/DVfzVMm5 Feb 12 11:19:44 well my dns has died, cna't get to pastebin Feb 12 11:20:10 you don't declare the intent, but you need to have the Activity you're trying to start up listed, like Aeefire said Feb 12 11:21:21 ok right dns came back, looks like you're starting ACTION_DIAL, not your own activity sorry Feb 12 11:25:55 wabz, Yes. basically i am listing contacts in my app. and on clicking i want to dial that phone number Feb 12 11:52:45 Hello can I use Ruby to Write Apps ? Feb 12 11:54:01 The "main" language is Java, support for anything else would probably be sketchy at best Feb 12 11:55:15 really ? Feb 12 11:55:31 in theory, JRuby works to some extent Feb 12 11:55:48 there is also Duby, which looks like Ruby but compiles to Java Feb 12 11:56:51 scala works pretty well from what I' ve heard Feb 12 11:56:55 i think dat dere pfn uses it Feb 12 11:57:05 (lawd knows he doesn't shut up about it :p) Feb 12 11:59:00 ExtremeDevilz: have a look at rhodes, which allows ruby apps on both iOS and Android Feb 12 11:59:52 hey Ge0rG Feb 12 12:00:54 hey dang :D Feb 12 12:01:19 sup :D Feb 12 12:04:17 weekend. and debugging a nasty gremlin bug eating the last bytes of a .txt.gz file sent via email from android Feb 12 12:04:35 must be OWA related in some way Feb 12 12:08:19 anyone know how to get a unique ID for a calendar? (not the sequential int _id)? Feb 12 13:35:56 why isnt it possible to change textsize of hint :/ Feb 12 13:35:59 I am see this line of code on a java file, "EditText editText;" can i ask what it means ? Feb 12 13:36:29 I am currently studing Java and I would like to know if that is an Android specific thing or Javaninc ? Feb 12 13:36:54 it's a Java Object(TM) Feb 12 13:37:02 defined in the android libraries Feb 12 13:37:16 so uhh... both i guess Feb 12 13:38:09 so EditText is the object or editText ? Feb 12 13:38:20 EditText is the object Feb 12 13:38:29 and the latter what ? Feb 12 13:38:38 editText is the name of the variable that is of type EditText Feb 12 13:38:38 You should probably start with simple Java tutorials before jumping into Android Feb 12 13:38:45 following the standard java naming conventions Feb 12 13:38:48 ^^ that Feb 12 13:39:00 storkme, THX Feb 12 13:39:03 fields are defined as: Type field; Feb 12 13:39:22 or ClassName fieldName; Feb 12 13:40:16 so it is a variable that holds the EditText object, is that correct ? Feb 12 13:40:25 yes Feb 12 13:40:52 Thank you guys Feb 12 13:42:17 anyone used the new calendar api? Feb 12 13:58:05 JakeWharton, https://plus.google.com/u/0/106557483623231970995/posts/8yMMcvJgSwJ Feb 12 14:02:05 Thanks man! Now I can throw out several days of code I wrote to replicate this :-) Feb 12 14:02:15 (not being sarcastic) Feb 12 14:09:02 Hi all Feb 12 14:10:06 * storkme flinches a little bit every time someone with 'noob' or 'newb' in their name joins the channel Feb 12 14:10:24 why ? Feb 12 14:10:45 and what does storkme flinches mean ? Feb 12 14:10:49 no reason :( Feb 12 14:10:57 ohhh Feb 12 14:11:13 hello, if anyone is interested I released new file manager for android about two week ago. https://market.android.com/details?id=cx.ath.arggu Feb 12 14:11:18 It is under GPLv3 license Feb 12 14:11:30 there is still some bugs and not all features are yet implemented Feb 12 14:12:02 im developing best logical game ever :P Feb 12 14:12:50 im mean the idea is really cool but probalby impossible to achave but some fraction of it is Feb 12 14:14:05 does any one know how can i make my custom view behave like a button when i clicke on it ? for example it changes color for blue for a sek or somethig like that. Like the views inside the listview Feb 12 14:15:57 use a selector Feb 12 14:16:05 or if it's a custom view do it yourself :) Feb 12 14:17:14 ehhhh Feb 12 14:18:34 i thought that i can just set some variable to true or something in the super class like setClicable(true) or something like that Feb 12 14:18:54 JakeWharton, how do you suggest to use loader with ActionbarSherlock 4? getSupportLoader is of course missing…. Feb 12 14:24:57 anyone noticed anything fishy on 16bit bitmaps on ICS Feb 12 14:25:47 can't pinpoint it yet, but getting funny screenshots from users Feb 12 14:25:57 all with Galaxy Nexus Feb 12 14:27:08 rciovati: Do you mean getSupportLoadermanager()? Use FragmentActivity Feb 12 14:29:48 SimonVT, yes i do. and actually i use it becase i've implemented the action bar with the ActionBarCompat tutorial that uses FragmentActivity. Now i'm trying to switch (or preparing my app to) to ActionbarSherlock 4.0 but i can't understand how to use loaders with it. Feb 12 14:30:56 http://beta.abs.io/ download the patched support lib and use it like you always did Feb 12 14:35:37 thanks, but if i let my activities extend SherlockActivity (that doesn't extend FragmentActivity but just Activity) how can i get it working? Feb 12 14:35:56 Use FragmentActivity Feb 12 14:36:47 SimonVT do you know if there is a way to indicate that my cutomveiw was clicked e.g changing backgroud color for a sec. Like the listveiw does ? Feb 12 14:37:06 15:15 use a selector Feb 12 14:37:09 As the background image Feb 12 14:37:36 if i use FragmentActivity i miss action bar sherlock functionalities, or not? :P Feb 12 14:37:53 No, that's why you use the patched support lib Feb 12 14:37:59 SimonVT is juts wanted to make suer that ther is't any simpler way Feb 12 14:38:06 no, i respond myself Feb 12 14:38:08 It's a pretty simple way Feb 12 14:39:30 setting some built in avriable to true would be even simpler like isClicable or somethinkg lie that but It looks like ther isnt such thing Feb 12 14:43:04 I am using google http client library for downloading and parsing json files. Feb 12 14:43:12 It uses a common library guava.jar Feb 12 14:43:19 actually while im readint about the selector thing is seems really cool :) Feb 12 14:43:29 That library is abt 1.7 MB in size Feb 12 14:43:38 anyone know their way around calendarcontract? Feb 12 14:44:07 My final apk size increases by about 800 KB due to its inclusion Feb 12 14:44:20 any way to reduce that swell in apk? Feb 12 14:44:36 I must be using very small subset of guava Feb 12 14:50:59 SimonVT, thanks i got it working :) now i have another problem, i get two actionbars :D Feb 12 14:51:45 Didn't remove your compat actionbar? Feb 12 14:55:10 i did, but i get that just in one activity :S Feb 12 14:56:01 Remember to use Theme.Sherlock Feb 12 14:58:05 i set android:theme="@style/Theme.Sherlock.Light.DarkActionBar" to the application Feb 12 14:58:21 but also with android:theme="@style/Theme.Sherlock" is the same Feb 12 14:59:28 has anyone managed to make the san-angeles sample from the ndk work? Feb 12 15:00:03 I've got a HTC Legend with CyanogenMod7 (android 2.3.7), but it crashes when starting up Feb 12 15:00:10 and it crashes on the emulator too Feb 12 15:00:40 however, i've got another gles 1.0 application running just fine Feb 12 15:06:05 ah.. fixed it somehow.. wtf Feb 12 15:09:25 hello Android people! Feb 12 15:10:45 I have a question related to SQLite and ListView. Is it possible to refresh the value of only ONE entry of the ListView once it is populated? The ListView takes its datas from an SQLite DB via a Cursor. Feb 12 15:11:50 sometimes when i start my emulator it takes very long and my cpu wizzles and eventually i need to cancel it and do it again. any one having same problem? Feb 12 15:12:40 I display a list of entries with a little star icon near each entry. When the user clicks on the star, it becomes full or empty, indicating that this entry is in favorites. This action sends an SQL query to the DB in order to update it favorite status. All is working fine but if I don't refresh ALL the list of the ListView, the icon looses its status when it becomes hidden during a scroll in the list Feb 12 15:13:29 the documentation says that I must update all the cursor. But it's too heavy Feb 12 15:13:47 the list is quite long Feb 12 15:13:50 any idea? Feb 12 15:15:35 one idea is to not use the cursor directly but wrap each row in a object instead Feb 12 15:16:10 then you can modify one object + write to DB to get the behavior you want Feb 12 15:16:59 so that would mean to use a ListView with objects that are not cursor related. Then I get the entries from the cursor only when I want to get all the list, then convert each item of this list to an object and deal only with object? Feb 12 15:17:08 Hum it may be a solution Feb 12 15:17:25 yes Feb 12 15:17:45 I will try that and check the performances Feb 12 15:17:48 thx for the idea! Feb 12 15:18:00 it is also much nicer not messing with column indices Feb 12 15:18:04 sure Feb 12 15:20:54 or you can call getColumnIndex on the cursor with the column name Feb 12 15:21:32 sure, that's what I already do Feb 12 15:21:45 shouldn't be much of a performance hit Feb 12 15:21:54 it's just a hashmap lookup Feb 12 15:44:32 SimonVT so i place my selector xml in a color folder ? Feb 12 15:45:04 i got this error tag requires a 'drawable' attribute or child tag defining a drawable Feb 12 15:45:18 In drawable Feb 12 15:46:11 Well yes, you have to define a drawable for the different states Feb 12 15:46:56 do you have any tutorial on now to do that step by step? Feb 12 15:47:27 Not really Feb 12 15:47:34 Check the framework drawables, see how they do it Feb 12 15:48:05 i have used this http://stackoverflow.com/questions/1219312/android-selector-text-color they put selector in the color folder Feb 12 15:49:13 That's for stuff like textcolor Feb 12 15:50:26 i thought i can use same thng for backgroud Feb 12 15:51:23 Try it Feb 12 15:51:46 Might work Feb 12 15:52:29 Quick question, Feb 12 15:52:37 is there a NON crap file browser available/ Feb 12 15:52:45 Astro does its job, but while looking like a nightmare. Feb 12 16:01:29 can i grab the db my app has created? and how? Feb 12 16:01:37 i want to email it to a friend :0 Feb 12 16:01:45 several ways Feb 12 16:01:55 adb pull /data/dat/com.package.name/datbases/database . Feb 12 16:02:02 or get the app to copy it to the sdcard Feb 12 16:02:34 ok ill try that Feb 12 16:02:41 ddms won't let me see /data Feb 12 16:04:14 canadiancow: I could not do that yesterday (couldn't adb pull from anywhere, not just the data directory). In the end, I had to cp it to the sdcard to have access. Feb 12 16:05:26 hm im a noob with adb, it says permission denied when i try to enter a dir in /data Feb 12 16:07:24 are you rooted? Feb 12 16:07:43 :/ that'll be it Feb 12 16:08:08 adb docs dont mention anything about that Feb 12 16:08:18 maybe they just refer to emu Feb 12 16:09:18 yawn, moving stuff to styles Feb 12 16:09:30 Yeah, they're not very clear about that. Feb 12 16:09:31 Taking more time than I imagined Feb 12 16:09:53 Additionally Feb 12 16:09:56 I think I asked this before Feb 12 16:10:01 but I can't find it in the logs. Feb 12 16:12:23 I want to change the way Music applications on Android handle tags, but I can't seem to find any information about gaining Google Music functionality without being the Google Music application. Feb 12 16:13:16 There's no API for Google Music Feb 12 16:13:40 Right, which is what I assumed. Feb 12 16:15:03 cheers fellas got it done Feb 12 16:15:22 So what I was looking at doing was seeing how I could wrap the application and handle tags myself, but it seems like everything's too locked down for it to work properly for any music that isn't on the device (which isn't a dealbreaker for me, but it is annoying). Feb 12 16:15:30 I'm wondering if I've missed any obvious solutions? Feb 12 16:15:41 hm i want to make the selection of a spinner item optional, so by default it should show sth like "Select option"... how can i achieve that ? Feb 12 16:18:34 is there a method to override when the spinner pops up ? Feb 12 16:18:50 guess what, blackberry playbook doesn't allow rand() (have to use random() instead like a mac-bag) and even sqrt()! not even sqrtf() or sqrtl() <--- even though it's documented there Feb 12 16:19:38 I've reworked my app a bit (was 1 file with several kloc, separating into classes now), and I've made an abstract class for my acitivies to define some common methods. The thing is, some of my activities use a google map and has to be extend MapActivity, so my abstract class will have to extend mapactivity rather than activity Feb 12 16:19:48 is this the best way to go? Feb 12 16:20:37 yeah you have to use ^1/2 instead of sqrt there... Feb 12 16:21:26 heisenmink: yeah, I don't even think there is any other way Feb 12 16:21:54 Dany0: Ok, thanks. I wish java had multiple inheritance Feb 12 16:22:16 class XActicity extends ActivityBase, MapActivity { Feb 12 16:22:17 It's possible to put images in a gallery object, right? Feb 12 16:26:54 hey guys... i have a framelayout, with 2 views in it.... one is supposed to be an overlay. it works well, but for some reason, you can see through the view that's on top Feb 12 16:27:58 Yuyo, try setting a background color Feb 12 16:28:09 on that view Feb 12 16:28:15 ah, yes, i tried that now Feb 12 16:28:32 i was using a background image... seems it had a bit of transparency.. duh Feb 12 16:28:58 thanks, heisenmink Feb 12 16:31:03 I'm on a windows machine and in need to create a .keystore file (for phonegap) Feb 12 16:31:14 .. and having hard times achieving that Feb 12 16:31:34 atm, I've downloaded 'Keytool IUI' Feb 12 16:32:00 sean`, you can do it with the java runtime Feb 12 16:32:40 heisenmink, JDKokay Feb 12 16:33:03 I don't remember how exactly, I did it a long time ago Feb 12 16:33:05 heisenmink, I haven't downloaded the android sdk tools for windows yet Feb 12 16:33:11 I assume I'll need those? Feb 12 16:33:35 to make android apps you need the sdk and the target platform Feb 12 16:33:51 and preferably eclipse with adt Feb 12 16:34:58 heisenmink, I'm using phonegap Feb 12 16:35:24 heisenmink, https://build.phonegap.com/docs/android-signing Feb 12 16:36:06 oh, then you won't need anything afaik Feb 12 16:36:14 well, yeah Feb 12 16:36:14 I have no experience with phonegap Feb 12 16:36:16 I need a .keystore file Feb 12 16:36:36 I'm trying to unlock the .keystore file achievement :p Feb 12 16:36:56 http://developer.android.com/guide/publishing/app-signing.html#cert Feb 12 16:37:02 "keytool -genkey -alias seanTheAppGuru -keypass gobbletygock" Feb 12 16:37:21 keytool is located in your jdk or jre folder Feb 12 16:37:35 okay Feb 12 16:37:40 so first up to install jdk Feb 12 16:37:58 yea Feb 12 16:37:59 I'm okay with stuff that's already set up Feb 12 16:38:06 but when it comes to it stuff, I'm lost Feb 12 16:38:21 like, it isn't possible for someone else to make a .keystore Feb 12 16:38:34 huh? Feb 12 16:38:46 huh?? Feb 12 16:39:04 *everyone* makes a keystore Feb 12 16:39:11 yeah, I know Feb 12 16:39:16 but for me it's not possible to have someone else do wit Feb 12 16:39:17 it8 Feb 12 16:39:19 it* Feb 12 16:39:29 the keystore is your proof of ownership of the app afaik, you need it to make new versions of your app and push to the android market Feb 12 16:39:33 in my near people i know circle Feb 12 16:40:02 sean`: are you saying you're not capable of making a keystore? Feb 12 16:40:20 hah. no Feb 12 16:40:34 because... if you are, you're also in the wrong channel Feb 12 16:40:42 capable, but just too eager to start working Feb 12 16:42:01 not incapable, just impatient? :) Feb 12 16:42:07 exactly Feb 12 16:42:17 if I had one, then I would've been finished by onw Feb 12 16:42:19 now* Feb 12 16:42:36 you've all been there Feb 12 16:43:26 no, most of us have been to d.android.com and followed the instructions there, because we want to make Android apps... Feb 12 16:43:37 burn Feb 12 16:43:45 Don't judge a book by it's cover Feb 12 16:44:05 it's a pretty descriptive cover so far, but okay Feb 12 16:44:15 I love this Feb 12 16:44:27 but, another time Feb 12 16:44:36 not here to troll Feb 12 16:48:55 https://p.twimg.com/Ald6OJ8CMAAaRUD.png Feb 12 16:51:39 amazing Feb 12 16:51:45 ohhh man Feb 12 16:51:52 im feed up Feb 12 16:52:13 drawables selectors ... Feb 12 16:53:33 eya Feb 12 16:53:36 lotta people here! Feb 12 16:53:44 okay, I will be quick in & out :) Feb 12 16:53:55 i have got here ROM from some HTC Endeauver (duh) Feb 12 16:54:02 unreleased device, some beta or w/e ROM Feb 12 16:54:06 friend asked me to dump it Feb 12 16:54:19 I expected the system.img from rom.zip to be some regular fs image Feb 12 16:54:21 but... nope Feb 12 16:54:23 let me link it to you Feb 12 16:54:38 try #android-root Feb 12 16:54:56 hmm #android-dev is about Java apps development rather android itself? :( Feb 12 16:59:14 It says right there in the topic what it's about Feb 12 17:00:08 Android application development -- Feb 12 17:00:16 might be related to developing apps for android images Feb 12 17:00:27 Developing apps for android Feb 12 17:00:54 oh god, it is that bad, enjoy. Bb Feb 12 17:18:03 hey SimonVT Feb 12 17:19:16 im palying aroud with that drawable thing Feb 12 17:20:43 it's kinda annoying because all i want is change the backgroud color but i need to provide images to do that ? Feb 12 17:21:25 hm creating a database is a lot faster on emu than on my phone o_O Feb 12 17:32:49 hi. how should workspaces in eclipse be handled? where do you create a new app without seeing an old app in the package explorer? Feb 12 17:33:11 i am confusedabout how to handle the creation of a new app Feb 12 17:33:15 what is the best practice Feb 12 17:33:50 i would prefer a new workspace for the new app, but when creating a new workspace the old app still appears in the package exploere Feb 12 17:34:07 any clarification please Feb 12 17:34:09 why don't you want to see the old app in the workspace? Feb 12 17:34:28 heisenmink : should i see all the old apps in the package exploere? Feb 12 17:34:38 is that how eclipse works? Feb 12 17:35:26 what is the point then of workspaces if I still see the same old app in a new workspace? Feb 12 17:36:26 gappie, workspace is a set of projects Feb 12 17:36:30 eatch app is a single project Feb 12 17:36:39 (sometimes more, but rarely) Feb 12 17:36:50 if you switch workspace to the same folder you'll of course get the same project sets Feb 12 17:37:06 if you want to switch apps just close the other app project and you're done Feb 12 17:37:38 Need help with network connection over a 3g carrier : Despite of correct apn settings, unable to connect, no 3g sign appears? Feb 12 17:37:39 Mavrik : but i chose a new empty folderand still saw the old app in package explorer. this normal? Feb 12 17:37:48 nope Feb 12 17:37:52 you messed something up :) Feb 12 17:38:49 so how would i then go about creating a new workspace with no pre existing appsin the package explorer? Feb 12 17:40:32 Thanks for no help at all :) Feb 12 17:40:54 lol Feb 12 17:41:18 Androidnewbe :) Feb 12 17:41:27 hoipoi, maybe you shouldn't ask Android usage questions in the development channel Feb 12 17:41:32 hoipoi, are you an Android developer? Feb 12 17:41:37 No? Go to #android. Feb 12 17:41:51 Dude , I tried there too , I promise Feb 12 17:42:00 No one reeplies :( Feb 12 17:42:06 Replies* Feb 12 17:42:56 Hehe, no I am not a developer, I am a destroyer to be more specific :P Feb 12 17:43:21 But hey Androidnewbe, you cared, :) thanks a lot Feb 12 17:45:28 hoipoi hwat was the issue ? Feb 12 17:46:12 hoipoi: That's unfortunately very much a "go talk to your carrier" problem; there's no generic fix. Maybe your device wasn't provisioned correctly, maybe it has a radio firmware bug, plenty of possibilities but none of them are debuggable by a user. Feb 12 17:46:14 hoipoi just randomly pick like 20 guys form the right panel :) like i do Feb 12 17:46:46 Ohh Feb 12 17:46:56 I'm testing an update I've created - the current app is in the market, the new app is fully signed but not yet in the market, so I simply download it onto my phone Feb 12 17:47:12 it replaces the original, but the old icon remains in the applications list Feb 12 17:47:24 and if I click the old icon I get the message it's no longer installed Feb 12 17:47:28 iivvoo: bug in your home screen Feb 12 17:47:46 bug? Feb 12 17:47:49 iivvoo: Probably fixable by restarting it Feb 12 17:48:03 moving to sdcard (and optionally back to phone) fixes things Feb 12 17:48:04 Thanks ! That gave me a direction :) Androidnewbe Feb 12 17:48:10 iivvoo: your home screen has a bug that isn't detecting the app changed. Feb 12 17:48:23 ah… htc's homescreen you mean Feb 12 17:48:33 I thought you meant my initial / start view Feb 12 17:48:39 it may be getting confused because it's a market app and you're not installing the update via the market; they may be trying to optimize things Feb 12 17:48:54 dragorn so everything will work if it's a "real" update through the market? Feb 12 17:48:58 that's somewhat what I expected Feb 12 17:49:04 no, your home launcher, whatever you're running - htc I guess. the moto home screen caches icons and such and messes up all the time Feb 12 17:49:32 I'll try restarting and see if that works Feb 12 17:49:44 iivvoo: not necessarily; i've got market apps that don't update icons in the home screen on moto, it's just a caching issue. eventually something will trigger a re-gen of the icon cache in the home screen and the new one will show up. Restarting maybe, clearing cache from app manager, maybe Feb 12 17:49:58 is there a way to simulate/test an "update" from the market? Feb 12 17:51:01 I don't think so; in theory doing an adb install calls the same stuff but I've definitely seen the market get cranky and unhappy with mixed updates from in and out of market, so i think there's some more magic under the hood Feb 12 17:51:10 do i have to use drawable in order to change backgroud color on my view when focused or clicked ? Feb 12 17:51:27 perhaps sould try an adb install - this is just an http download of the apk Feb 12 17:51:47 dragorn: market has its own database to track between market and device Feb 12 17:51:57 iivvoo: you could try; also try uninstalling the original first Feb 12 17:52:11 it can sometimes get out of sync Feb 12 17:52:30 p_l: yeah, I know. I'm not sure if that can cause the homescreen problems or not, there's so many variants. Feb 12 17:53:42 dragorn uninstalling will probably work - that's what I had to do previously (also because of the debug key being used, so no update/replace was possible) Feb 12 17:57:26 a restart has the expected effect, so let's blame it on caching / not standard update procedure Feb 12 17:57:39 thanks for helping :) Feb 12 18:05:31 can someone please hepl me with this fucken irritating workspaceshit in eclipse?!! Feb 12 18:05:58 if i create a new workspace my old appsare still listed in the package explorer Feb 12 18:06:49 e Feb 12 18:07:31 my new benchmark scene: http://img1.uploadscreenshot.com/images/orig/2/4203540662-orig.png Feb 12 18:07:36 cool, eh? Feb 12 18:07:58 the tank scene http://img1.uploadscreenshot.com/images/orig/2/4108181751-orig.png and the heart scene http://img1.uploadscreenshot.com/images/orig/2/4108184045-orig.png Feb 12 18:08:28 gappie: file > switch workspace > other > select folder for your workspace Feb 12 18:09:17 SimonVT : yes thanks i have done that, but still my old project appears in the package explorer Feb 12 18:09:32 i want to split my personal apps from my work apps Feb 12 18:10:29 what is the default behaviour of a view when focused or clicked ? Feb 12 18:10:40 SimonVT : is this normal? Feb 12 18:10:46 gappie: I'd use working sets instead Feb 12 18:11:04 gappie: If your projects are still there, you haven't switched workspace Feb 12 18:11:21 SimonVT : i have Feb 12 18:11:21 Just a new empty folder called "WorkWorkspace" or whatever, switch to that Feb 12 18:11:29 create* Feb 12 18:11:34 SimonVT : done thatmultiple times Feb 12 18:11:49 old app always still in package explorer Feb 12 18:11:59 Then I have no idea what you're doing wrong Feb 12 18:12:00 am imissing something Feb 12 18:12:05 driving me crazy Feb 12 18:13:10 gappie: on the package explorer dropdown thingy, select the "Select working set..." menu Feb 12 18:13:42 create working sets for your work and personal projects, add your projects to appropriate working sets Feb 12 18:13:49 then switch between them as needed Feb 12 18:16:49 1. close eclipse 2. create new folder 3. open eclipse and under File-switch workspace-other I choose the new folder. 4. then eclipse restart and the old work project is still in the package explorer window. Whatam i missing? do not want to see the work apps. Feb 12 18:18:08 what is the point of a workspace if the apps are listed in all of the workspaces?? Feb 12 18:18:31 ? Feb 12 18:18:45 i dont think you know what a workspace is Feb 12 18:18:58 canadiancow|work : pleasedo tell then Feb 12 18:19:30 you're doing something wrong Feb 12 18:19:32 workspaces are for work Feb 12 18:19:37 funspaces are for fun! Feb 12 18:19:38 mitchnull : is using working setsthe only way to split my work and personal projects? Feb 12 18:19:39 if you create a new workspace, it wont have any of your old projects Feb 12 18:19:47 no Feb 12 18:20:01 i use them all the time, because i need different versions of library projects in each of my main projects, and i cant have two of the same projects in one workspace Feb 12 18:20:03 canadiancow : then what are the correct steps? Feb 12 18:20:29 file->switch workspace->other Feb 12 18:20:33 enter a new directory Feb 12 18:20:36 ok Feb 12 18:20:41 and it should open you a blank workspace Feb 12 18:20:50 not happening Feb 12 18:20:56 how can that be Feb 12 18:21:15 Eclipse messing up Feb 12 18:22:25 what?! just chose a folder on the desktop and it created a clean workspace. old projects gone Feb 12 18:22:29 eclipse you suck Feb 12 18:22:36 agreed lol Feb 12 18:22:38 it's weird Feb 12 18:22:52 waisted 3 hourson this Feb 12 18:26:25 in my case sometimes when I click on the error in logcat it opens an old file and point to an error in the old line number Feb 12 18:29:15 How can/should i securely submit highscore data? Feb 12 18:32:08 totally secure high scores are almost impossible. The only way I can think of to do it would be to feed a stream of game state to the server, and have it validate the data and calculate the score. But even then, it would potentially allow scripted game run-throughs Feb 12 18:32:39 * Gambit- buffs his nails, "JesusFreke, that's totally a solved problem." Feb 12 18:33:37 oh? :p Feb 12 18:33:43 JesusFreke, of course, you sacrifice quite a bit on the other two legs of the tripod, but it's pretty doable. More so on certain game types. Feb 12 18:34:00 everythingWorks, what kind of game, what are you securing it against, who are you securing it to? Feb 12 18:34:06 nail-buffing is a homosexual activity Feb 12 18:34:09 JesusFreke, Yeah; think MMO's, same concept. Feb 12 18:34:21 pragma_, does that turn you on? Feb 12 18:34:28 Gambit-: yeah, bend over, please. Feb 12 18:34:51 Gambit-: right. on MMOs, everything is server-side Feb 12 18:35:00 all the world state, etc. Feb 12 18:35:01 JesusFreke, yup. Same concepts apply. Feb 12 18:35:02 depends on the MMO Feb 12 18:35:11 Gambit-:... that's exactly what my suggestion was :p Feb 12 18:35:12 but enjoy your generic view on MMOs Feb 12 18:35:48 someone could suggest me a good tutorial for aidl ? Feb 12 18:36:00 there's a really good one at http://google.com Feb 12 18:36:01 Okay, true, JesusFreke :) Feb 12 18:36:06 lol pragma Feb 12 18:36:38 pragma_'s going for the annoying-dick-of-the-day award, it looks like. Feb 12 18:36:45 lol Feb 12 18:37:20 * pragma_ overachiever. Feb 12 18:37:31 JesusFreke, I've seen some interesting techniques that don't involved complete state mirroring, but most of them fall over on binary modification. Feb 12 18:37:36 pragma_: pft. it wasn't even a lmgtfy link :) Feb 12 18:37:49 i'm too hip for lmgtfy Feb 12 18:37:50 Gambit-: yeah, that's exactly the problem. you can't trust the client Feb 12 18:37:51 lol Feb 12 18:38:25 JesusFreke, yup; though you can do some mitigations, such as monitoring interrupt timings, and comparing against a md5sum of other saved highscores, looking for a conflict. Feb 12 18:38:35 pragma_, tx Feb 12 18:38:41 aLeSD: glad to help Feb 12 18:38:54 there's lots and lots of mitigations, but I doubt everythingWorks is even paying attention anymore Feb 12 18:39:21 yeah, of course Feb 12 18:39:31 aLeSD: please go to my linkedin page and +1 me for providing excellent assistance Feb 12 18:40:55 lol Feb 12 18:41:34 linkedin has +1's? I thought that was just a gplus thing Feb 12 18:42:30 I have a design doubt: I am using aidl to pass service some params ... bit I'd like the service work as an Observable notifying clients about new data. Which is the right way to do it ? Feb 12 18:43:11 I particular I use AIDL to pass the service a Sensor class .. is it possible ? Feb 12 18:44:50 only if Sensor is parcelable Feb 12 18:46:11 or Serializable Feb 12 18:47:38 it's not Feb 12 18:47:41 good start Feb 12 18:48:13 granted, you might have to use a Bundle to wrap the serializable object :) Feb 12 18:48:16 how can i install android sdk to ubuntu 11.10? Feb 12 18:48:27 I don't think you can use a serializable directly in the aidl Feb 12 18:48:38 I don't recall for sure Feb 12 18:50:25 I will send something different to identify the sensor. But my very doubt is on how to send the data to the apps Feb 12 18:50:38 yeah, that sounds like the way to go Feb 12 18:50:52 I mean collecting sensor data and send it in "multicast" Feb 12 18:51:02 ah Feb 12 18:51:29 JesusFreke, yeah IDL to identify the sensor to collect from and something to send the data Feb 12 18:52:10 I was thinking in Observer pattern .. but I can't as they are different processes Feb 12 19:04:22 hey Feb 12 19:05:25 rock Feb 12 19:07:16 heisenmink, thanks for your input btw Feb 12 19:07:18 all worked out fine Feb 12 19:21:46 How would one dismiss a DialogFragment from a thread and avoid the IllegalStateException that is raised when the activity is not visible (that is, when the user presses the home button and the DialogFragment wants to be dismissed)? Try-catch seems ugly, so should I have some flags? Or is there another, better method to dismiss a DialogFragment? I can't really say I understand Fragments that well. I read somewhere that you should use Feb 12 19:22:52 In app set up, it seems like the purchases all go to the developer. Is there a way to delegate payments to another account (in this case the client)? Feb 12 19:28:21 chip2n: commitAllowingStateLoss instead of commit Feb 12 19:29:58 I'm storing some stuff in a file-backed GZIPOutputStream and send it as email right after the .close(); more often than not the attachment is missing some bytes at the end :( Feb 12 19:31:33 SimonVT: I don't really use commit() at all it seems. When should you use it? After some calls like remove() and addToBackStack()? Feb 12 19:32:03 Aren't you using a FragmentTransaction to remove the DialogFragment? Feb 12 19:33:33 Yes, I call the remove() method, but it seems to work without a commit :S Feb 12 19:34:23 Is there an equivalent to a pointer to a list? I need to tell the next activity which list to use after onClick Feb 12 19:34:35 I didn't really see it in use in the FragmentDialog example either, just simply fragmentTransaction.remove(dialog). Feb 12 19:36:30 The list is static, I don't want to pass a copy of it for obvious reasons Feb 12 19:36:32 show(FragmentTransaction, String) calls commit Feb 12 19:36:39 That's why they don't call it in the example Feb 12 19:37:07 But commit will throw an exception if your Activity is in the background Feb 12 19:37:42 SimonVT: Aha, so the remove() part gets commited as well? That makes sense, so the commit() IS needed when I will remove the dialog? Feb 12 19:37:49 Well, the allow state loss one Feb 12 19:38:15 yes Feb 12 19:38:22 Thanks! Feb 12 19:51:38 I have a problem: I have a SurfaceView and I have overwriten the onTouchEvent method. I get the coordinates of the touch using the getX() and getY() methods. However the getY() method returns the Y coordinate including the height of the status bar. What I need is the Y coordinate inside the SurfaceView. How can I get it? Feb 12 19:57:56 What would be the easiest way to communicate between a computer and an android app? USB or ethernet? Feb 12 19:58:05 not ethernet. I ment internet Feb 12 20:00:14 depends what for Feb 12 20:01:18 Hey I'm a bit confused about the action in the intent filter field of the manifest, do you choose these actions from a list or just make them up? Feb 12 20:02:24 storkme: for an example: to sync if both an app on the phone and a program on my computer is to do something at the same time Feb 12 20:02:51 syncing stuff is generally done over the internet Feb 12 20:05:45 what would generally be done with USB? Feb 12 20:06:45 As4xk: by the device? Feb 12 20:08:02 if i implement the selector for a LinearLayout how can i trigger the selecotr begaviour programatically ? any idea? Feb 12 20:18:54 Androidnewbe: The selector? Feb 12 20:29:34 anyone willing to test alpha version of my benchmark? Feb 12 20:36:01 heho Feb 12 20:39:32 does anyone happen to know a osm map/tile/whatev mapview that allows using offline osm data? Feb 12 20:39:57 http://stackoverflow.com/questions/9252468/zoom-an-imageview-with-center-pivot Feb 12 20:52:42 linux crashed and now eclipse won't render layouts in the layout editor Feb 12 20:52:48 how do I fix it Feb 12 20:52:56 any cache that I can remove? Feb 12 20:54:54 clean project? Feb 12 20:55:50 that did it Feb 12 20:56:05 thanks Feb 12 20:56:10 no prob (: Feb 12 21:18:45 get IntelliJ :) Feb 12 21:21:19 how does that help? Feb 12 21:25:24 you get rid of problems Feb 12 21:28:32 how is removing a feature you need instead of fixing it a solution? Feb 12 21:29:38 Hey, why do i have to buy my own app on Android Market Feb 12 21:29:55 you don't? Feb 12 21:30:05 you can simply build it for yourself Feb 12 21:30:17 Rather, you can't Feb 12 21:30:34 ie, you uploaded an apk to the store Feb 12 21:30:37 did there use to be a thing where you could give away 100 free copies via codes or something? Feb 12 21:30:42 install that same APK on your device Feb 12 21:34:16 also, does anyone at all know a way to get a unique ID for a calendar? (not _id) if you browse to google calendar in a browser each calendar has an ID like a38dnj3hsd7in327hcds78h23hjdh9823d@google.com that would be good, but I don't think the API allows access to it Feb 12 21:34:23 a composite id would be ok too Feb 12 21:34:28 but I'm stuck Feb 12 21:37:00 hi. I'm working on a live wallpaper app for 2.2+. my problem is that I see no simple way to tell when the wallpaper changes from "preview mode" to normal mode (the GL surface is kept intact by android, there are no surface events). this is a problem because this switch to normal mode can also involve a rotation (landscape->portrait) and I can't detect that and it screws up my rendering Feb 12 21:42:00 nooba: register your service as a broadcastreceiver for android.intent.action.CONFIGURATION_CHANGED Feb 12 21:42:08 nooba: then pull the new orientation from that Feb 12 21:42:44 MDijkstra: I'll look into it, thanks Feb 12 21:43:10 maybe there's a stackoverflow post explaining it in more detail Feb 12 21:43:20 ah yeah, there is: Feb 12 21:43:25 http://stackoverflow.com/questions/4625167/how-do-i-use-a-service-to-monitor-orientation-change-in-android Feb 12 21:43:58 thank you Feb 12 21:49:34 MDijkstra: do you know if maybe it's possible to ignore the orientation altogether, always use the basic mode in my renderer (be that landscape or portrait, doesn't matter) and just handle rotation from the app itself? Feb 12 21:53:46 hmm Feb 12 21:53:50 sucks Feb 12 21:53:57 can't set a price for something after I set it as free Feb 12 21:55:30 nooba: I've never written a live wallpaper, don't know how it reacts if you rotate Feb 12 21:55:40 or how it should, rather Feb 12 21:56:07 I don't know if the stock launcher supports rotation at all Feb 12 21:56:15 doesn't on the GN Feb 12 21:56:53 I can't post a reply to review on my own app/ Feb 12 21:56:55 ? Feb 12 21:57:23 nooba: Can you not just override onConfigurationChanged? Feb 12 22:00:24 SimonVT: in SurfaceView? Feb 12 22:00:39 Yeah, it's a View, isn't it? Feb 12 22:00:44 so for c2dm you have to register with your google account before it'll work~? Feb 12 22:00:46 MDijkstra: the problem is that the wallpaper selector app supports rotation while the launcher doesn't Feb 12 22:00:53 SimonVT: I'll try Feb 12 22:04:09 has anyone ever been able to sign up for c2dm? Feb 12 22:04:42 SimonVT: I don't get an onConfigurationChanged call in the view :( Feb 12 22:05:33 Has anyone noticed that when you use user-defined ?attrs/, the graphic layout doesn't show them? Feb 12 22:05:43 In the eclipse layout editor. Feb 12 22:06:30 Is there a way to fix it so that doesn't happen, like with a build config or something? Feb 12 22:06:40 Are there any recommendable android crash reporters? Besides the market one, which only works for published apps. Feb 12 22:07:40 vadi2: flurry can do this although I'm not sure I can recommend it Feb 12 22:07:49 it's not really designed for errors Feb 12 22:09:09 Hm, I just want something that can capture the bt for my betatesters to send (for whom anything manual logcat related would be over the top) Feb 12 22:09:22 MDijkstra: thanks for the ideas but sadly this doesn't help either, I don't get a config change event when returning to the home screen from the wallpaper picker Feb 12 22:09:50 vadi2: if it's a standard java backtrace, I think flurry does that automagically, but I haven't looked deeply into it Feb 12 22:09:57 Hmm, I just encountered a weird thing. When I do a HTTP post in my main thread (yeah, I know, the app freezes for a while), it works just fine but when I put that exact same code inside an AsyncTask, it just wont post. It's like it just skips everything in doInBackground(). There's no exceptions either :S Feb 12 22:11:29 im trying to write a unit test for my login activity. user enters username and password and clicks login. an async task runs and either displays an invalid log dialog, or starts a new activity and finishes itself. im new to unit tests, but this doesnt seem like a scenario that can be tested. Feb 12 22:12:06 testing my login procedure via standard junit is working, but i wanted coverage of the android activities Feb 12 22:13:40 MDijkstra: scratch that, I was running the wrong version. your solution works. thanks a lot! Feb 12 22:24:33 hello, when i try and run a "repo init -u", the repo initializes to the wrong directory. does anyone know how to change this? specifically my terminal is sitting in /home//git-repos, but the repo gets initialized to /home/ instead Feb 12 22:26:50 anyone know anything about icon guidlines for when your app shows up in the share-listview in another app? If i use the listview icon guidelines my icon is smaller than the others. I can't find anything on the subject Feb 12 22:29:03 pfn Feb 12 22:29:57 Hey Feb 12 22:30:04 hi Feb 12 22:30:28 How are y'all today? Feb 12 22:30:44 massive homered Feb 12 22:30:48 And more importantly, which ICS phones do y'all like? Feb 12 22:30:56 galaxy nexus Feb 12 22:31:01 Considering the SGS2 on T-Mobile. Feb 12 22:31:07 I heard mariah Carey uses one Feb 12 22:31:17 No way. Feb 12 22:31:23 I bet she clicks on advertising. Feb 12 22:31:26 Kinky bitch. Feb 12 22:31:39 * Zeeshan_M gets hot under the collar Feb 12 22:32:19 Chronax: mine is still stuck on 2.3.3 Feb 12 22:33:59 I'm on 2.3.6, and how am I supposed to develop for 4.0 on device? Feb 12 22:34:11 Use the emulator Feb 12 22:34:15 Wish the Nexus existed on T-Mobile. Feb 12 22:34:21 Well, yeah... that's why I said _on device_. Feb 12 22:34:24 it does Feb 12 22:34:35 Buy a nexus s on ebay Feb 12 22:34:39 buy a galaxy nexus, put a sim card in it, done. Feb 12 22:34:46 Or that Feb 12 22:34:54 But I need it to work on T-Mobile. Feb 12 22:35:04 why wouldn't it Feb 12 22:35:06 Do all the Galaxy Nexus phones have GSM / SIM card capability? Feb 12 22:35:21 no some of them come without sim card slots Feb 12 22:35:23 you need to check Feb 12 22:35:45 if it has the code 'gULL1B3' written inside the battery cover there's no sim card Feb 12 22:35:57 but it should say on the listing when you buy it Feb 12 22:36:00 Chuckle hut. Feb 12 22:36:30 :< Feb 12 22:38:04 Chronax: buy from EU Feb 12 22:38:39 also, if you don't need phone functionality, Verizon's devices go really cheap Feb 12 22:43:07 p_l: I dig it. Feb 12 22:43:31 you can get GN (CDMA/LTE) on swappa for under $500 Feb 12 22:43:51 Well, isht. Feb 12 22:43:57 I'm seeing some on eBay for around $650. Feb 12 22:44:03 That's a little too steep. Feb 12 22:44:29 get a Nexus S and flash ICS on it? Feb 12 22:46:18 Probably just by a SGS2 and hope it upgrades soon. Feb 12 22:46:23 s/by/buy Feb 12 22:46:28 I *swear* that was a typo. Feb 12 22:46:41 March? At least for international, iirc, it was March/April Feb 12 22:47:04 T-Mobile's 'special' SGS2 is a completely different device Feb 12 22:47:39 and is more different from GN than Exynos-based ones (different GPUs etc.) Feb 12 22:54:09 iirc samsung also made non-exynos SGS2's for a while when they couldn't produce them fast enough Feb 12 22:54:15 iirc with tegra2's Feb 12 22:55:03 I think those got renamed as Galaxy R or something like that Feb 12 22:55:27 USA T-Mobile's SGS2 HD or something like that is a weird Quallcomm thingy Feb 12 22:58:08 mikedg what Feb 12 23:18:39 Hi guys. Anyone here that can tell me how I can edit my buil.prop? I've used mount ro/rw to remount system, but still no luck Feb 12 23:33:33 Is gson recommendable over the default json facilities in the api? Feb 12 23:34:07 if you want built in serialization Feb 12 23:36:57 Hm, looked about - I don't need it to be perf-sensitive yet as I'm not dealing with a lot of data, so I'll stick with the default Feb 12 23:37:03 http://martinadamek.com/2011/02/04/json-parsers-performance-on-android-with-warmup-and-multiple-iterations/ seems to point towards jackson for heavy work Feb 12 23:39:39 yeah Feb 12 23:39:43 jackson for heavy work Feb 12 23:40:03 as jackson uses streaming apis instead of the DOM model standard json uses Feb 12 23:40:30 like with xml, if you're looking at a lot of data you wanna use streaming instead of dom parsers Feb 12 23:48:28 just a few quick questions, I don't need to know how to do it, just whether it is possible Feb 12 23:48:50 1. can I scale down a date picker/time picker Feb 12 23:49:09 2. can I put a dialog where I want on the screen Feb 12 23:49:32 I'll look up the answers myself, I just want to know whether I would be wasting my time doing so Feb 12 23:50:21 scale down? Feb 12 23:51:14 how much control do I have over the size of a datepicker Feb 12 23:51:26 and the shape Feb 12 23:51:40 not a lot i guess Feb 12 23:51:51 you can always make your own Feb 12 23:52:40 I was thinking of this one slider date/time picker Feb 12 23:53:47 the idea is that the moving the slider moves the time exponentially Feb 12 23:54:15 (exponential or some other math function that is practical) Feb 12 23:54:36 but if I can make the date picker of android waste less screen space that would be fine too Feb 12 23:55:04 mrenouf, awesome! precisely why I love me some open source Feb 12 23:56:04 JakeWharton, yessir... thank you for getting that ball rolling Feb 12 23:57:56 what is it with tablets and proprietary connectors Feb 12 23:58:07 can they not please make a standard for this?? Feb 13 00:01:06 xorgate: tnx Feb 13 00:03:01 [23:57] what is it with tablets and proprietary connectors Feb 13 00:03:01 [23:58] can they not please make a standard for this?? Feb 13 00:03:28 To make money. If you didn't need their replacement component, then where do they squeeze you for more money? Feb 13 00:03:48 I'm not sure about that Feb 13 00:03:51 The EU is slowly forcing companies to stick with a common power adapter method for laptops and mobile phones thankfully. Feb 13 00:04:44 Why do you think they spend money and resources inventing a new method to connect to a micro-USB adapter on their device? Feb 13 00:05:25 There's two issues. Feb 13 00:05:27 1: the USB standard does not allow for enough current to even keep a tablet topped up while it's on. Feb 13 00:06:00 which means: 2: There is no established standard, so everyone makes their own Feb 13 00:06:08 Aaaah, you raise a good point. Feb 13 00:07:10 Zeeshan_M: also, common power adapter in laptops is tricky, very tricky Feb 13 00:07:10 In some cases, they can innovate and make a better product, in the case of the transformer, designed with docking in mind Feb 13 00:07:57 not many accessories for devices these days, especially tablets. everything is either wireless or USB Feb 13 00:08:08 so its really just a standards vacuum Feb 13 00:08:20 p_l: Can you expand on your comment? Feb 13 00:08:37 but yes, it does allow for charging $30 for power cables :-( Feb 13 00:08:58 What kind of issues are in the air that forces engineers behind laptop power adapters to go-ahead and come up with a new adapter? Feb 13 00:09:33 Zeeshan_M: wildly different power intake Feb 13 00:10:16 and the fact that if you give the same connector, it will make someone stick an adapter incapable of sustaining it, or worse, with completely different voltage and amperage Feb 13 00:11:10 I've seen laptops with standardized connectors, but those were big honky machines of yore that took 230V directly Feb 13 00:11:28 Aaah, yes. Again, my lack of thinking before comment caught me off guard. Feb 13 00:11:52 I had a terrible time trying to get a Dropad (cheapish Android tablet device) to work with a UK power adapter. Feb 13 00:12:12 It was a nightmare to ensure the converter was safe and outputting to the correct values that the US adapter expected. Feb 13 00:13:50 now take into account that a low end laptop or an ultraportable will have wildly differing power intake compared to something like Eurocom's Mobile Workstation series, which regularly support server cpus inside (think Xeon etc.) Feb 13 00:15:11 nod Feb 13 00:15:31 many of consumer laptops will have ~65W PSU, while my first one in 2005 had a 100W (discrete graphics, dual core etc.) Feb 13 00:16:00 my current one has a 90W I think, so that the extended battery charges faster Feb 13 00:18:02 phones can somehow manage, tablets too (just use a damn multi-cable solution, like hard drives...) Feb 13 00:18:45 90 is kinda standard for "fast charger" on a typical 15" Feb 13 00:19:03 but it can get by on 65 Feb 13 00:19:17 but those get quite warm, make me nervouce Feb 13 00:19:21 *nervous Feb 13 00:20:09 mrenouf: now imagine that the laptop has a 6-core Xeon, 12G of DDR3 ram and two 1.5G-totting GPUs, and runs something heavy Feb 13 00:20:39 yeah I know. I understand the laptop issue Feb 13 00:21:17 I had a hard drive enclosure that fixed the amperage problem by using two powered USB2 sockets, one of them with a vampire tap basically Feb 13 00:21:24 but in the area of 20W / 2Amp tablets, I think we can find an acceptable standard. I just want to be able to have a spare cable on hand for charging Feb 13 00:21:47 sorry, I meant 10W Feb 13 00:32:24 so I'm currently using a WeakHashMap to map views to some object Feb 13 00:32:32 yep Feb 13 00:32:35 except I made the mistake of having a reference to the view inside the object Feb 13 00:32:38 good strategy Feb 13 00:32:42 bad Feb 13 00:33:04 not really a mistake, as it's necessary for the object's purpose but it's causing the view hierarchy to be leaked Feb 13 00:33:23 is just using a weak reference inside the object as well the proper solution? Feb 13 00:33:35 actually Feb 13 00:33:41 yes Feb 13 00:33:54 you just want to keep the view weakly-reachable Feb 13 00:34:32 You can use a single WeakReference Feb 13 00:35:24 Makes sense too since the object should no longer be reachable once the View goes away since the hashmap should automatically clear it Feb 13 00:36:01 normally it would, but right now the object pins the view and hence the object ;-) Feb 13 00:36:07 nasty cycle Feb 13 00:36:35 yeah Feb 13 00:36:46 the object is used for animating 3.0+ properties on pre-3.0 Feb 13 00:37:05 not sure how else to hold on to them Feb 13 00:37:53 sure could use some Groovy syntax here: mView.get()?.invalidate(); Feb 13 00:39:29 you're not using Guava right? because this needs to be small w/minimal deps? Feb 13 00:39:42 correct Feb 13 00:39:57 but I could pull some collections out if they're not too complicated Feb 13 00:40:27 I was going to say MapMaker/CacheBuilder but that's not worth the trouble to try to pull out. Feb 13 00:44:24 Is there an alternative to registerForContextMenu? Feb 13 00:44:48 If you just override PrepareContextMenu is that enough? Feb 13 00:48:54 why can't you use registerForContextMenu? Feb 13 00:50:58 If a view references the object that references the view that's ok right? (no hash map) Feb 13 00:51:25 IS that a general question? Feb 13 00:51:32 Or a response to something before I got here. Feb 13 00:51:53 sort of both Feb 13 00:52:11 i'm optimizing references for better GC Feb 13 00:52:28 and also fixing leaking view hierarchies Feb 13 00:52:37 Ah. Feb 13 00:53:02 Because I think in general it's fine for two things to reference one another as long as it's not cyclical. Feb 13 00:53:15 Not sure if it's best practice. Feb 13 00:53:37 In the sense that I actually have no idea what best practice is, not because I think it's not. Feb 13 00:55:16 hi there Feb 13 01:03:36 Ok. WTF. The whole point about the ability to disable applications in ICS was to counter pre-installed crapware. Feb 13 01:03:52 I am making a notification for a widget and am running into a wired problem Feb 13 01:04:03 But I'm looking at all the stuff on the Transformer Prime, and many/most have disable DISABLED! Feb 13 01:04:05 a 2.3.7 phone is not displaying the notification Feb 13 01:04:08 a 4.0 is Feb 13 01:04:10 why is this possible? Feb 13 01:04:19 after another day of fighting with music tags, I've got to ask Feb 13 01:04:28 you can mark them as needed Feb 13 01:04:34 why does such a simple thing seem so difficult for devs to implement correctly? Feb 13 01:04:59 MalRD: do you know how shitty the tags systems are? Feb 13 01:05:03 hi Feb 13 01:05:07 MP3 is a particular offender Feb 13 01:05:25 Can anyone tell me if there is ever an occasion where "adb" must be run with permissions in Windows? Feb 13 01:05:26 ID3v2 is crazy Feb 13 01:05:30 Yeah, I know the ID3 spec. Feb 13 01:05:34 IDv1 was the best :) Feb 13 01:05:51 +3 Feb 13 01:06:20 what spec? Feb 13 01:06:27 it's heap of crap on crap Feb 13 01:06:47 has anyone ever had to open a prompt as an administrator and launch adb? Feb 13 01:06:59 with v1 being the retarded dog that couldn't remember its name Feb 13 01:07:35 ;) Feb 13 01:07:35 id3v2 varients, mostly. Read up on them when I was wondering if my troubles were caused by improperly tagging things (no, it was not). Feb 13 01:07:54 v2 otoh forgot such a simple thing as "version" tag Feb 13 01:10:31 why would a company (ASUS) think that people would prefer to use their branded Email client over the ICS one? *sigh* Feb 13 01:10:55 I suppose you weren't here yesterday for my huge carrier manufacturer complaintfest Feb 13 01:11:06 but I believe it can be boiled down into "fing morons" Feb 13 01:11:24 has anyone some experience with notifications? Feb 13 01:11:49 https://github.com/DooMMasteR/StratumsphereStatusWidget/blob/master/src/org/stratum0/statuswidget/StratumsphereStatusProvider.java Feb 13 01:11:55 I know... just... gah Feb 13 01:12:04 and could say why this notification does not get displayed on a 2.3.7 device Feb 13 01:12:12 DooMMasteR, avoid taking surveys, instead, just ask your question and await an answer :-) Feb 13 01:12:15 but on a 4.0 it does Feb 13 01:12:20 I thought. Ooh, stock ICS! noo. They even have a task manager in there for some reason that can't be removed. Feb 13 01:12:24 same reason HTC thinks people wants Sense Feb 13 01:12:25 Zeeshan_M: :) Feb 13 01:12:31 and Samsung thinks people want TouchWiz Feb 13 01:12:49 JakeWharton: personally I'm quite happy with SGS2's TouchWiz ;) Feb 13 01:12:55 there's one labeled "cmclient" which has ALL KINDS of scary permissions, a generic icon and not even a hint a what it does Feb 13 01:13:16 I've only uses Sense and TouchWiz for about 2 minutes each Feb 13 01:13:22 that was enough to know that I didn't want either Feb 13 01:13:28 hehe Feb 13 01:13:40 mrenouf: it is probably waiting there for you to use a VPN or something like that so it can call cops on you for being a terrorist Feb 13 01:13:41 DooMMasteR, not off hand, but the way you worded your question suggests API level differences. Use "apianalysis" tool to figure out if you're using an API call that isn't supported in 2.3.7 Feb 13 01:13:41 I see why people like them, they're just not for me Feb 13 01:13:41 It seems wired as the widget still runs fine on the 2.3.7 device but yet it does not show the notification -.- Feb 13 01:13:45 http://adt-addons.googlecode.com/svn/trunk/apianalysis/ Feb 13 01:13:55 No, even Asus couldn't leave well enough alone, they messed with the status/settings panel Feb 13 01:14:06 Zeeshan_M: I buld it against android-8 as target Feb 13 01:14:13 so it should not… Feb 13 01:14:22 JakeWharton: well, I *did* switch to different launcher etc. and TouchWiz mainly went away Feb 13 01:14:27 JakeWharton: i've been having this discussion for about the past month, native vs. website wrapper... Feb 13 01:14:38 I love how there are built-in applications that have stupid permissions. Feb 13 01:15:11 andIamgoingtocomplainaboutthebuiltinadvertisementapplicationsthatcantbeuninstalledthxverizonmotorolawhoever Feb 13 01:15:22 but annnnywho Feb 13 01:15:58 JakeWharton: there are an awful lot of people that are wanting the flexibility of a website wrapper like phonegap/sencha touch and it seems to be gaining momentum. what do you think? Feb 13 01:16:47 p_l, nfc, bluetooth, GPS, "directly call phone numbers", browser history, contacts, read SMS, write to SD, change audio settings, reorder running apps, change wifi state, .... tons more Feb 13 01:16:50 Have there been any attempts for betterMusic tagging, other than...what is it, APE? Feb 13 01:16:57 this is all one one single app Feb 13 01:17:01 kill it with fire Feb 13 01:17:03 Can't even think of anything else. Feb 13 01:17:09 Zeeshan_M: how can I install that in Eclipse? Feb 13 01:17:28 whats wrong with properly designing a mobile website Feb 13 01:18:08 storkme: do you get more requests for native or for mobile websites? Feb 13 01:18:34 bit of both but mostly native Feb 13 01:19:36 i just dont like putting my native skills on the back burner as i spin cycles writing websites Feb 13 01:19:40 I've released my app to the market. Thank you all for your help Feb 13 01:19:44 p_l, would *you* willingly install an app like that from the market? Feb 13 01:21:16 im of the opinion that things like phonegap and titanium just make bad apps, if you try to do anything facy with them youre better off usingnative, if not doing anything fancy then do a nice website Feb 13 01:21:51 i guess you might struggle if you want a lot of static data accessible offline though Feb 13 01:23:32 i just finished a native app and the client now wants me to make a similar sencha app for another company. i have a custom control in the native app and its going to be quite interesting figuring out how to make it in html5/css/js... Feb 13 01:23:32 mrenouf: ... depends Feb 13 01:23:46 technically all apps using root have *all* permissions Feb 13 01:23:52 unless you run a heavily modded system Feb 13 01:24:44 neekers, depends on the company and app Feb 13 01:24:55 for the job I am leaving right now I told them to do a wrapper Feb 13 01:25:15 we are a two-man dev team and don't have the resources to write full-fledged apps for 3-4 platforms Feb 13 01:25:38 so I just made the CSS for the webapp responsive and am going to wrap it using one of those solutions Feb 13 01:25:38 yeah... i see that as an issue for a lot of companies Feb 13 01:26:28 Someone on Slashdot put it well Feb 13 01:27:12 The phonegap/HTML5 multi-platform app does OK, until someone does a good native app that eats your lunch Feb 13 01:27:28 i think that android engineers arent quite so hung up about the website wrappers like phonegap for some reason. if you mention phonegap in #iphonedev, they go rabid pretty quickly Feb 13 01:27:35 Lotus 1-2-3 took over spreadsheets because they focused on the IBM PC Feb 13 01:27:52 i think they see it as a threat to thier livelihood Feb 13 01:28:09 i think the apps they produce are crap and a mockery of the power of each platform Feb 13 01:28:16 heh Feb 13 01:28:16 that being said, NOT having any app is worse Feb 13 01:28:36 but the apps look good. :) Feb 13 01:28:49 yeah on froyo maybe Feb 13 01:28:58 neekers: not really Feb 13 01:29:18 Also, they tend to be obviously ill-fitting, with iOS interface usually Feb 13 01:29:58 yeah I hate that Feb 13 01:30:01 the apps that i said looked good, i meant ios Feb 13 01:31:13 I wish there was resource filtering on the src/ directory :) Feb 13 01:31:21 well, i'm not thrilled about having to write website wrappers but i think its prudent to get into it... and also, work is good. Feb 13 01:31:27 They talk about Android fragmentation...I think Jake is right in the center of that vortex for Android Feb 13 01:32:12 Going Actionbar or not is a huge fork in an Android app, unless you use ABS Feb 13 01:32:24 fork it Feb 13 01:33:02 And why the hell would I use anything non-ABS? To capture the 2% or so Honeycombs and ICSs out there? Why bother implenting Actionbar without ABS? Feb 13 01:33:22 s/implenting/implementing Feb 13 01:34:26 it solves a use case that a lot of people want Feb 13 01:34:34 some don't want it Feb 13 01:34:35 some do Feb 13 01:34:41 some like doing things more manually Feb 13 01:34:45 you can't please everyone Feb 13 01:35:08 I'm just trying to make it as easy as possible so people can stop dicking around with backporting themselves and write the actually app's substance Feb 13 01:35:16 *actual Feb 13 01:36:18 is there a good resource to read about map overlays? a friend is using some vector graphics to overlay google maps and the performance is really slow when they try to scroll around the map. any ideas? Feb 13 01:36:32 Is it possible to see the layout xmls that are used for listview preview options? Feb 13 01:41:33 simple_list_item_1/2.xml Feb 13 01:41:51 slow scrolling maps... not a problem that excites me a whole lot... -.- Feb 13 01:41:55 thanks! Feb 13 01:42:51 is he creating an overlay and adding it to the map? Feb 13 01:42:58 yes Feb 13 01:43:09 neekers: what devices? Feb 13 01:43:43 p_l: i didn't ask them that, but i'm going to assume relatively newer devices Feb 13 01:43:43 how many items? Feb 13 01:44:05 here is the iphone app, they are porting to android, http://itunes.apple.com/us/app/sportsmanregs-big-game-regs/id453994962?mt=8 Feb 13 01:44:27 neekers: cause even a relatively new device, if it's a tablet with Tegra2, might choke on drawing maps with overlays ;) Feb 13 01:45:06 p_l: that's what i suspected, that it may not be a software problem... Feb 13 01:45:24 the ios app in that link does the same thing and is fairly responsive Feb 13 01:45:46 Tegra2 afaik had issues with drawing fast enough. A4 and A5 had afaik better memory bus Feb 13 01:45:59 you can see the pastel covered overlays (hunitng areas). that is what's slow Feb 13 01:46:03 https://market.android.com/details?id=com.rabblesoft.widdlyscudsthree Feb 13 01:46:06 I just put that on the market Feb 13 01:46:41 p_l: can you think of a way to rule out or determine if the problem is hardware based? Feb 13 01:47:30 is it a native app hkhalid? Feb 13 01:47:34 neekers: test different size mapviews (and different overlays), and time it Feb 13 01:47:58 i have a db and some pics in /assets or sdcard. I want to be able to download a json containing updates (or the entire db) and more pics. Any thoughts on how to do this properly? I'm concerned about the update interfering with normal running of the app Feb 13 01:48:10 also, see if you can connect a profile to it, and check which functions require how much time Feb 13 01:48:57 p_l: ok, thanks. i was going to ask g00s if he would have a crack at fixing it. i like the thought of profiling it Feb 13 01:49:04 storkme: what samples version is it in? I have a whole lot of them and didn't find that exact name Feb 13 01:49:30 Hello, I am experimenting with draw 9patch and I'm trying to get an image that can stretch across the screen, but after setting it up with the draw-9patch tool and setting it's layout to fill_parent in the layout xml, it doens't stretch the the width of the screen. Does anyone have any ideas on why it's not doing that? Feb 13 01:49:53 did you mark the streching areas? Feb 13 01:50:00 I believe so Feb 13 01:50:08 It's a 5x20px black bar Feb 13 01:50:21 s/bar/line Feb 13 01:51:13 vadi2 should be in res/layouts for any platform you choose Feb 13 01:52:42 I only get list_item_checkbox, list_item_icon_text, and simple_list_item_checkable_1 even on 15. I'll look further, then... Feb 13 01:54:12 Any word on when the ICS OTA will roll out to the AT&T Nexus S (i9020a)? Feb 13 01:54:35 This is a link to the image I'm using and it's code in the layout XML: http://pastebin.com/CVzg2rd4 Feb 13 01:56:57 Is there any data on ICS phone sales/upgrades vs GB sales/upgrades to give a better idea on adoption? Feb 13 01:57:26 I've heard that GB was at 50%+ and ICS was at about 1%. Feb 13 01:57:29 Yeah Feb 13 01:57:48 MalRD, ICS is on 1% of handsets, namely the Galaxy Nexus and those brave souls who run custom ROMs. Feb 13 01:57:59 Like me Feb 13 01:58:20 I've run it on HTC HD2 before, and it isn't even a Android mobile device. Feb 13 01:58:29 MalRD: ask in a year Feb 13 01:59:45 Zeeshan_M: hmm that tool does not show any other errors Feb 13 01:59:58 the SDKversions and target are identical Feb 13 02:12:53 I Feb 13 02:13:04 I'm looking to setup android dev. environment in windows Feb 13 02:13:24 http://developer.android.com/sdk/installing.html Feb 13 02:13:35 from the guide, I'm setting Eclipse classic, JDK, Feb 13 02:14:07 but its usually rarely that simple, sometimes you need older versions of stuff Feb 13 02:14:13 like should I stick to JDK6? Feb 13 02:14:27 storkme its jquery mobile and java Feb 13 02:14:41 storkme does that anger you Feb 13 02:15:18 jjjjjjjjjjqyereujyh. Feb 13 02:15:48 I hate when techniques that I use successfully in one place inexplicably fail in others Feb 13 02:16:20 like when you pick up chicks Feb 13 02:16:47 yeah Feb 13 02:17:01 first time it goes well and then the second time they're all like 'VerifyError' Feb 13 02:17:01 That can be successful? Feb 13 02:17:18 In that case, you should verify the error! Feb 13 02:17:19 the trick is to not let them verify Feb 13 02:17:58 that sounded a bit rapey Feb 13 02:18:08 back to coding! Feb 13 02:19:53 I'm successfully making calls to a custom setTranslationX implementation to translate a method but when doing it a second time I get a ton of invocation exceptions Feb 13 02:20:47 y u no animate?!? Feb 13 02:24:16 Hmm.. Feb 13 02:24:51 xorgate kirby rapey? Feb 13 02:26:16 I don't really understand this. Feb 13 02:26:38 I've got an app that's compatible with Honeycomb and more recent. Feb 13 02:26:44 So I use version codes or whatever. Feb 13 02:27:26 But if I try and use a 2.3.3 target, VERSION_CODES.ICE_CREAM_SANDWICH is not found. Feb 13 02:27:48 thats cause at that time ICS wasnt around yet Feb 13 02:27:54 Yeah. Feb 13 02:28:00 target ics if you want a constant from ics Feb 13 02:28:03 Yeah Feb 13 02:28:09 Why would you ever use version codes. Feb 13 02:28:34 for example 3.0 uses a different drawing mechanism, i check this in my 1.6 app Feb 13 02:28:40 otherwise it bugs on 3.0+ Feb 13 02:28:44 Right. Feb 13 02:28:51 The constant is how you check, though. Feb 13 02:29:15 yes well i felt wild and wrote 11 (i think) Feb 13 02:29:15 RMapZero, for this: http://pastebin.com/RFaj6Cgq Feb 13 02:29:22 you only check for older than you target Feb 13 02:29:24 never newer Feb 13 02:29:48 Oh, ok. Feb 13 02:30:08 How do I create an emulator with a 4.0.3 api for the build, then run on 2.3.3 Feb 13 02:30:37 you dont build on an emu i hope Feb 13 02:30:40 make a 403 emulator and a 233 Feb 13 02:31:17 Hey guys.. I've got a tricky problem. For some reason "sudo adb start-server" works, but "gksudo adb start-server" does not. Feb 13 02:31:19 Right, did that. Feb 13 02:31:24 i use version codes all over the place Feb 13 02:31:44 Yeah, I assume that I'm fucking things up. Feb 13 02:31:59 I have built the app on 4.0.3 already. Feb 13 02:32:03 But I want to run it in an emulator. Feb 13 02:32:07 On 2.3.3 Feb 13 02:32:16 so set minSdkVersion to something lower Feb 13 02:32:21 ^ Feb 13 02:32:29 Then run it on a 2.3.3 emulator Feb 13 02:32:31 and targetSdkVersion to 14 Feb 13 02:32:33 or 15 Feb 13 02:32:54 make sure it's 11+ for action bar and 14+ for HW accel Feb 13 02:32:54 Yeah Feb 13 02:32:59 minSDK is 7. Feb 13 02:33:16 what's the target? Feb 13 02:33:27 14 I guess. Feb 13 02:33:41 launch the 2.3.3 emulator Feb 13 02:33:44 and once it's up Feb 13 02:33:50 debug/run Feb 13 02:34:52 I see. Feb 13 02:34:56 Lemme try that. Feb 13 02:35:58 how would I go about having pan/zoom ability on a picture, almost similar to how the maps app has it? Feb 13 02:36:20 shiiiiit Feb 13 02:36:28 i ran git clean -fdx without thinking Feb 13 02:36:54 jon-: I think it's a gesturelistener. Feb 13 02:37:20 Or onTouchListener and then test vs. gestures. Feb 13 02:37:29 MotionEvent.ACTION_UP, etc. Feb 13 02:37:40 RMapZero: is it relatively easy to do? Feb 13 02:37:58 I was told I could make it in a web view (I don't recall the "actual" view name), and sort of do it that way Feb 13 02:38:34 jon-: I think so. It's just like switch(event), then implement the appropriate methods for resize/pan. Feb 13 02:38:43 I dunno, don't know anything about web views. Feb 13 02:40:28 JakeWharton: backups? Feb 13 02:46:23 Any chance the files are still in Eclipse's editor? Feb 13 02:50:24 Anyone who wants to be in my Android Developers circle on G+, post your profile link! Feb 13 02:54:37 mrenouf: that went down well... Feb 13 02:54:45 hehe Feb 13 02:54:58 pity post: https://plus.google.com/101483146097744099844/posts Feb 13 02:55:38 Well I got a ton of others, but I thought it'd be interesting to follow the channel regulars too Feb 13 02:55:40 ok, i should not be giggling. :) Feb 13 02:55:44 wow I don't post much public stuff :p Feb 13 02:55:53 since you asked so nicely... https://plus.google.com/u/0/113204943296608641880/posts Feb 13 02:55:53 Already got Jake, and his ABS page Feb 13 02:56:10 not that it's a particularly Android-related profile... Feb 13 02:56:10 this c2dm thing is so busted Feb 13 02:56:15 https://plus.google.com/u/0/113281581900262531501/posts Feb 13 02:56:18 theres mine too Feb 13 02:57:28 its not necessarily just for following you guys though, I can share android-specific stuff with the right circles, so as not to overwhelm family and non-techie friends :-) Feb 13 02:57:37 I don't understand why, when I do a ClientLogin auth with service a2cdm it gives me an Auth token when I clearly can't use it Feb 13 02:57:56 as the account hasn't been associated with the service or something, who knows **** ENDING LOGGING AT Mon Feb 13 02:59:58 2012