**** BEGIN LOGGING AT Tue Jul 24 02:59:58 2012 Jul 24 03:00:08 regular image works, but from picasa no luck Jul 24 03:01:15 even this is null Jul 24 03:01:24 in = new FileInputStream("/picasa/item/5700317762880285214"); Jul 24 03:11:02 ok I found a way Jul 24 03:11:02 InputStream is = getContentResolver().openInputStream(selectedImageUri); Jul 24 03:11:02 Bitmap bm = BitmapFactory.decodeStream(is); Jul 24 03:16:44 Cannot complete the install because one or more required items could not be found. Jul 24 03:16:44 Software being installed: Android Native Development Tools 20.0.1.v201207132230-403220 (com.android.ide.eclipse.ndk.feature.group 20.0.1.v201207132230-403220) Jul 24 03:16:44 Missing requirement: Android Native Development Tools 20.0.1.v201207132230-403220 (com.android.ide.eclipse.ndk.feature.group 20.0.1.v201207132230-403220) requires 'org.eclipse.cdt.feature.group 0.0.0' but it could not be found Jul 24 03:16:44 " Jul 24 03:17:04 any thoughts Jul 24 03:17:10 this was while downloading the adt Jul 24 03:20:18 any idea why this code gives the current month at 06 instead of 07. everything else is fine {device.getTitle() + " " + c.get(Calendar.YEAR)+ "-" + c.get(Calendar.MONTH) + "-" + c.get(Calendar.DAY_OF_MONTH) + "-" + files.length+ ".png";} Jul 24 03:20:41 months are zero-indexed if I recall correctly Jul 24 03:20:47 because yay java Jul 24 03:21:19 http://developer.android.com/reference/java/util/Calendar.html#JULY Jul 24 03:21:21 yep ^ Jul 24 03:28:42 f2prateek: use a formatter Jul 24 03:28:51 your code is not locale agnostic Jul 24 03:30:18 ryanm, JakeWharton thanks :) Jul 24 03:41:16 do we always have to wait until the virtual device boot? it takes more than 20 seconds every time I try to test my app Jul 24 03:41:53 why are you rebooting it every time ? Jul 24 03:42:33 because it's a heavy process Jul 24 03:42:52 you can test on a device if you want to shift the load to something else Jul 24 03:42:56 it's taking 25% of my processor and 400MB of RAM! Jul 24 03:43:29 well it is an emulator, what do you expect Jul 24 03:43:49 25% means 100% of a core Jul 24 03:43:59 bankai_, it's not "normal" Jul 24 03:44:09 the other way to achieve that is with while(1); Jul 24 03:44:13 try running it over an ssh -X lol it's much more painful Jul 24 03:44:54 ie, this simulator is probably in a busy waiting loop Jul 24 03:45:18 it's not a simulator, it's an emulator Jul 24 03:45:31 err, emulator* Jul 24 03:46:16 600MB Eclipse, 400MB the emulator lol Jul 24 03:46:43 it could be worse I guess Jul 24 03:53:41 you could be a BlackBerry programmer Jul 24 03:53:43 :) Jul 24 03:56:14 I'm trying to simulate a single tap event in a webview (load url at x, y), starting from a longpress or double tap. Jul 24 03:56:48 Any idea how to do that? I'm trying things like super.onTouchEvent(e) from my gesture listener, passing in the event from the longpress. Jul 24 03:57:54 But it's still acting like a longpress -- is there something I can change in the MotionEvent to make it look like a single tap? Jul 24 03:58:51 I'm having trouble figuring out how MotionEvents specify what type of event they are. Jul 24 04:03:46 Or is there a way to get the url of a link at a particular x, y in a WebView? Jul 24 04:04:26 (not seeing anything like that in the WebView docs, alas) Jul 24 04:18:14 Is it a bad idea to use a SQLite database without a content provider if i won't be sharing the database with other applications? Jul 24 04:18:20 Or should I always go through a content provider? Jul 24 04:18:34 twoshot_: no need for content provider Jul 24 04:18:42 thanks Jul 24 04:21:32 hello Jul 24 04:22:14 i want to save a file, what control do i have to use to choose directory ? Jul 24 04:22:36 what kinda files are you saving? Jul 24 04:22:55 it is a text file Jul 24 04:24:44 kken: you can control the directory structure all you'd like on the sdcard or under your application folder. Jul 24 04:25:19 see Environment.getBlablaSomethingAboutExternalStorage() or Context.getFilesDir(), respectively. Jul 24 04:25:42 ok thank you very much, bankai you too Jul 24 04:26:07 morning all Jul 24 04:27:57 * jasta scratches his head trying to figure out how the hell to test this stuff without a spare galaxy nexus :) Jul 24 04:28:33 jasta, try a Kindle fire - cheaper. Jul 24 04:28:53 i am trying to test some platform hacking Jul 24 04:28:59 I'd sooner recommend a Nexus 7 Jul 24 04:29:08 ahhh Jul 24 04:29:10 i guess i could roll back to ics or something and deploy to something like a sensation with cyanogenmod Jul 24 04:29:14 but what a pain Jul 24 04:29:27 but damnit i really just wish the emulator GPU emulation worked better Jul 24 04:29:45 i wonder, is the gpu emulation any more stable on windows? perhaps i could get a virtual machine going here Jul 24 04:30:00 jasta, there's an old saying Linux devs use when someone makes a comment like that.. Jul 24 04:30:47 "Stop wishing and start coding" Jul 24 04:30:54 :D Jul 24 04:31:41 im actually trying to decide if it makes sense trying to get the emulator working or just go the lame ass route of building and hacking cyanogenmod on some older phone to do this Jul 24 04:31:52 actually, if you are on Linux, it could be the DRM driver you are using. Are you using the vesa driver in X? Jul 24 04:31:57 that latter approach seems awfully round-about to just enable verbose debugging in webkit :) Jul 24 04:32:16 TRUE_mnky: hehe, what? how old are you? :) Jul 24 04:32:39 jasta, well, Slackware 3.0 was my first Linux distro Jul 24 04:34:19 jasta, and I was in Physics 1 Honors when the space shuttle Challenger exploded, and I was sitting in the middle of Operation Desert Shield for my 21st birthday. All in all, OLD! Jul 24 04:34:49 i didn't need all that, just wondering if i was using the vesa driver in X was enough Jul 24 04:35:12 jasta, it is still the default for Slackware Jul 24 04:35:38 I'm having some problems with a RelativeLayout that includes a Fragment and a FrameLayout Jul 24 04:35:42 I just hacked my xorg.conf file to improve some of the settings. Jul 24 04:36:09 The FrameLayout acts as a container for another Fragment that I'd like to swap in and out and it's has a ListView Jul 24 04:36:51 The initial Fragment is supposed to be aligned to the RelativeLayout's bottom edge but it seems to be disappearing/getting squashed by the ListView Jul 24 04:37:32 I had this working pre-Fragments but I can't seem get it to work now I'm upgrading Jul 24 04:38:07 My apologies for the vague description but I'm hoping someone might be able to point me in the right direction Jul 24 04:38:52 https://gist.github.com/3168073 Jul 24 04:40:27 jasta, this is my second - no, third - attempted foray into the mobile development arena. First was MIDP, then I took a break and tried to get into Blackberry, now I decided that Android is probably the best option. Of course, an iPhone app or two might be good if I can get a cheap Mac to run the dev kit on. Jul 24 04:43:04 TRUE_mnky: or get a hackintosh :) Jul 24 04:43:21 jasta: windows gpu emulation likes to die as well Jul 24 04:43:44 sometimes, when you *do* get gpu emulation supposedly working, you get horrible graphics quality Jul 24 04:44:13 p_l|home: well that's good to know, i guess Jul 24 04:44:24 p_l|home: right now it "works", but crashes quite a lot while i'm just tinkering with the browser Jul 24 04:44:28 f2prateek, thought about it. I'll check the specs on the latest powerbook and buy a comparable i7 PC, then install MacOS on it and save at least $1000 on it. Jul 24 04:44:31 hard crashes, emulator seg faults... Jul 24 04:44:33 also, how the fuck is asking about the vesa driver a sign of being "old"? Jul 24 04:44:48 TRUE_mnky: or install OSX under VMware ;) Jul 24 04:45:08 TRUE_mnky: save way more than $1000, and a lot more customisable Jul 24 04:45:25 the very limited bit of iOS hacking I did was this way (the company folded before we got anywhere with it, though) Jul 24 04:45:35 p_l|home: hehe, i haven't used that driver for like 10 years. Jul 24 04:45:41 yes, but VMWare requires a host OS... Which usually means Winblows. Jul 24 04:46:09 or OSX Jul 24 04:46:14 p_l|home: i wonder if just trying the emulator with a different driver would be fruitful? i could switch to an ATI card... Jul 24 04:46:22 I don't do Windows. Trust me, mine are kinda filthy. I need to take the hose to them so the property value doesn't go down further. Jul 24 04:46:30 curiously sparse info from google about gpu emulation stability issues. do they think it's working fine? Jul 24 04:47:02 TRUE_mnky: VMware fully supports linux Jul 24 04:47:38 in my case it just happens that the computer which can run virtualized OSX under VMware is also not mine and runs windows Jul 24 04:47:40 jasta, until I switched my xorg over to the radeon driver, I was having all sorts of performance issues, and was limited to 1024x768. Jul 24 04:48:08 TRUE_mnky: with the android emulator? Jul 24 04:48:10 just check /etc/X11/xorg.conf and see what the device section says. Jul 24 04:48:13 TRUE_mnky, I've been porting Linux (etc.) SDL games over to Android Jul 24 04:48:18 it sounds like you're talking about something different entirely Jul 24 04:49:22 p_l|home I know that VMWare supports Linux. I just don't have a license for the server or the desktop version. Jul 24 04:49:30 My only problem is the CTR for my kids-oriented games are rather low. This is due to either: the JNI way I do it makes it more difficult for me to place ads where I want them and it's due to that, or maybe kid's games just have a lower ad CTR Jul 24 04:50:47 TRUE_mnky: the server is actually free. ESXi core is also free Jul 24 04:51:09 vbox probably can run OSX too Jul 24 04:51:32 hmm... have to check in on that. I must be going on old info. I know they used to charge for them. Jul 24 04:51:59 TRUE_mnky: ESX (note lack of 'i') is still paid for even the core version, I think Jul 24 04:52:12 *workstation* is also paid Jul 24 04:52:27 VMware Server 1.0 and 2.0 were free, but are EOL and probably won't run OSX Jul 24 04:52:35 VMware for mac is also paid Jul 24 04:52:54 Player is free, and I seem to recall at least one OSX image floating around TPB that runs on it Jul 24 04:52:58 :) Jul 24 04:54:45 guys Jul 24 04:54:53 who was it that was developing an app for the red cross? Jul 24 04:57:32 yeah, Player I have. It's the Server or Workstation though that you need to create and manipulate memory in the images. Jul 24 04:58:25 I have an image of HaikuOS that I was trying to play around with. Jul 24 05:03:31 * TRUE_mnky is sleeping Jul 24 05:08:46 How do you handle different heapsizes? My app crashes on the emulator because the heapsize is too small, but not on my actual devices. Will the app crash on a device with too small of a heapsize or is this dynamically allocated? How should I approach this problem? I was thinking maybe I could filter out heapsizes that are too small in the manifest? Jul 24 05:09:39 is it possible to specifiy a different menu when in landscape mode? Jul 24 05:10:12 res/menu-land/ Jul 24 05:11:20 and would i have to invalidate the menu on oreintation change? or is the automatic? Jul 24 05:11:26 *that Jul 24 05:12:37 the activity is recreated on orientation change Jul 24 05:13:09 oh yeah, opps Jul 24 05:13:53 hmm lot of diff ideas about how to do splash screen Jul 24 05:14:32 my favorite: total omission Jul 24 05:14:59 better than a few secs black Jul 24 05:15:04 i think it looks great on iphone Jul 24 05:15:22 so do iOS users Jul 24 05:15:25 its for opengl app so that alters the standard splash screen recipe perhaps Jul 24 05:15:31 Hi, any ideas how one would set/override the library load path? I am looking to replace the loading of one of the system/lib libraries, an application loads it using System.loadLibrary( 'just-name' ) i.e. no full path, would there be a way to diverge it to one of my own libraries named the same? Jul 24 05:15:32 ah, ok Jul 24 05:16:23 the web tells me a theme is fastest way to have loaded, but then i may need to do some activity swap magic Jul 24 05:16:43 if i develop a game that makes me over 1 million I am giving 1% of my profits to JakeWharton Jul 24 05:17:43 OccultPaparazzi: the activity's decor view will be created before a single line of your code runs using the theme that's specified by your activity (or possible application) Jul 24 05:18:10 at the very least, using a theme to hide the title bar and set an appropriate windowBackground (your splash screen image perhaps?) is needed Jul 24 05:18:20 How do you handle different heapsizes? My app crashes on the emulator because the heapsize is too small, but not on my actual devices. Will the app crash on a device with too small of a heapsize or is this dynamically allocated? How should I approach this problem? I was thinking maybe I could filter out heapsizes that are too small in the manifest? Jul 24 05:19:52 yeah i would like to not use multiple activities Jul 24 05:25:25 ice: Wouldn't it be dependent on how much memory your emulator uses? Jul 24 05:26:06 The emulator has an adjustable heap size, but I'm scared of a device in the wild having a small heap size and crashing as well, or do real devices dynamically allocate the heapsize? Jul 24 05:28:00 depends on how you do your app, I guess you could then pass the surface view to OpenGL Jul 24 05:28:00 ice: you can approach this problem by making your application gobble less memory Jul 24 05:28:38 It processes a large image and I have already implemented the inSampleSize technique to reduce the memory Jul 24 05:35:56 ahh i see yeah i got it to work as application theme Jul 24 05:36:00 it pops up fast Jul 24 05:36:06 but then it goes black while texture loads Jul 24 05:40:19 can you simulate multi-touch on the emulator? Jul 24 05:40:24 i've never tried it Jul 24 05:41:01 using a tethered device, yes Jul 24 06:07:36 Okay, I got a nitpick about Android 4 that may be relevant to you Jul 24 06:08:34 If I use the getExternalStoragePublicDirectory() function on a program, does anyone know if the files that created saved in these public directories and in case of uninstallation of the program remain there or remove (with the app) ? Jul 24 06:08:37 Why don't older Android apps use the same Holo style as everything else, i.e. that grey/orange theme Jul 24 06:09:02 because they don't target a new API level Jul 24 06:10:49 akin to some apps on Windows still using Windows Classic widgets on XP and up? Jul 24 06:11:05 somewhat similar, yes Jul 24 06:12:28 But thenagain, if every other Android phone maker could re-skin Gingerbread entirely, why couldn't they make Gingerbread-level apps still have widgets that look like Holo? Jul 24 06:13:33 they very well could except when Android 4.0 came out they likely stopped efforts in customizing Gingerbread and went at customizing Ice Cream Sandwich Jul 24 06:15:00 like, why couldn't Android 4 skin the old Gingerbread apps to at least use the Holo color scheme instead of this unfitting orange/grey Jul 24 06:15:49 because the applications were not designed with the new style in mind Jul 24 06:16:45 all they have to do is update one integer in their manifest to denote their compatibility and it would use the new style Jul 24 06:17:07 until acknowledged by the developer the system cannot assume the app will look, feel, or function correctly with the new styles Jul 24 06:42:25 does ABS support share action provider in split action bar? Getting a NPE at line 11 http://pastebin.com/nbSJum6y Jul 24 06:45:05 getActionProvider is returning null Jul 24 06:47:00 oh didnt set up the share widget in the menu correctly Jul 24 06:49:07 any reason why the split actionbar would take up the whole screen? Jul 24 06:51:39 because it's an Android bug Jul 24 06:52:39 http://b.android.com/26027 Jul 24 06:53:51 oh thanks Jul 24 07:42:19 Hello there Jul 24 07:42:40 I'm designing a Login Activity need some design tips on it Jul 24 07:55:16 hello Jul 24 07:58:12 Is there a way to programmatically stop or pause the music played from a music player from within my app? Jul 24 07:59:04 <[[thufir]]> ernie`: I don't think so, because that music app *should* be in a sandbox, and your other app in a different sandbox. Jul 24 07:59:37 hmm.. bummer Jul 24 07:59:38 <[[thufir]]> that's like saying "I want my nifty app to store (intercept) the bank password in this other app" Jul 24 07:59:50 true Jul 24 07:59:55 how does something like tasker do that then? Jul 24 08:00:04 just that my app doesnt really work if you're listening to music Jul 24 08:00:10 <[[thufir]]> maybe tasker has privileges? Jul 24 08:00:22 <[[thufir]]> I'm just guessing. I do Java, not android. Jul 24 08:00:32 definitely works without root Jul 24 08:00:36 aha Jul 24 08:00:46 f2prateek: it just stops the process :P there are apis for that Jul 24 08:01:04 <[[thufir]]> that's not really "pausing" the music tho Jul 24 08:01:28 I thought maybe the music player serivce could be accessed somehow Jul 24 08:01:54 i thought that the apps sounds take over and android does it for you Jul 24 08:02:31 <[[thufir]]> there's only the one speaker, presumably. yeah, shouldn't the app in the ?foreground? have control of the sound? Jul 24 08:02:31 I can change the volume, and mute it.. but that doesnt really stop the music Jul 24 08:02:41 <[[thufir]]> lol Jul 24 08:02:43 [[thufir]]: yeah exactly Jul 24 08:04:31 I've seen people saying that the OUYA people haven't shown anything and that it won't go anywhere Jul 24 08:04:38 Haven't they shown video of the UI Jul 24 08:10:53 what's This Handler class should be static or leaks might occur? Jul 24 08:23:02 there might be some undocumented methods to do it Jul 24 08:24:15 Illustrious: http://stackoverflow.com/questions/11407943/this-handler-class-should-be-static-or-leaks-might-occur-incominghandler Jul 24 08:24:32 Illustrious: first hit on google :) Jul 24 08:29:51 hello Jul 24 08:30:03 when i hibernate my linux Jul 24 08:30:06 the clock of the emulator Jul 24 08:30:12 is delayed Jul 24 08:30:19 respect the systems clock Jul 24 08:30:23 o_O Jul 24 08:30:30 where can i report this problem? Jul 24 08:39:18 thx i have resolved Jul 24 08:40:52 sha0coder: is it possible to hibernate android device without android knowing it? Jul 24 08:41:30 Anyone else having problems with play store developer console? When trying to upload new apk I get error message An unexpected error occurred. Please try again later. Jul 24 08:41:36 sha0coder: i think it should not skip time forward itself, because you hibernated host system. On device, this should be impossible to do. Jul 24 08:41:55 jukidev: couple of people have been getitng it, just try again later Jul 24 08:42:32 I want to code widget style by java language but, i can't find any method Jul 24 08:42:35 is this wrong? Jul 24 08:42:48 f2prateek: oki thanks! Jul 24 08:44:25 does anybody know? Jul 24 08:45:12 EyesSoul: like this? http://developer.android.com/guide/topics/appwidgets/index.html Jul 24 08:46:52 pihhan, i dont know if system makes sigstop to the processes Jul 24 08:47:02 and the emulator implements incorrectly Jul 24 08:47:22 sha0coder: I'm sure they'd happily look at a patch Jul 24 08:48:16 Leeds, no time to patch :) Jul 24 08:48:27 i don't work for free :) Jul 24 08:48:36 yes, but exac i want without xml Jul 24 08:48:41 cygery*[:CA%E-yI!R7G,A sha0coder: then ask for a refund for what you paid for the SDK? Jul 24 08:48:58 works :) Jul 24 08:49:34 Hmmmmm anyone else unable to type with a real keyboard in the emulator? Jul 24 08:49:37 Leeds, are there already comments for your apps? Jul 24 08:49:51 I've only seen ratings (stars) but no text comments Jul 24 08:49:52 One machine started doing it, now a second one is doing it as well. Jul 24 08:50:00 erm, I've had apps out for years, so yes of course there are comments Jul 24 08:51:06 strange, maybe something wrong with my firefox Jul 24 08:51:15 firefox? Jul 24 08:51:40 yeah Jul 24 08:51:50 e.g. the HK weather alert is yours, right? Jul 24 08:52:27 yes Jul 24 08:52:46 on my browser there're no comments shown Jul 24 08:53:06 what URL? Jul 24 08:53:27 https://play.google.com/store/apps/details?id=org.vmlinuz.hkweather Jul 24 08:54:10 definitely shows reviews for me, in firefox and chrome Jul 24 08:54:20 is there a reason to build a cache layer to my SharedPreferences to avoid unnecessary read from disk, or are Android already doing this? Jul 24 08:55:09 EPG: what language do you use on play.google.com ? Jul 24 08:55:17 german Jul 24 08:55:42 same thing with chromium Jul 24 08:55:44 EPG: so there are no german comments Jul 24 08:55:45 is there anyway to change the margin of the title text in ABS? Jul 24 08:55:51 right, I have no reviews in German Jul 24 08:55:54 so theres more spacing between the icon and text Jul 24 08:56:02 only English and Chinese - which I can't read anyway! Jul 24 08:56:15 wth Jul 24 08:57:04 ok, changing language to english works, sry Leeds Jul 24 08:57:12 and thx appel1 :) Jul 24 09:03:22 what the... Jul 24 09:03:24 http://stackoverflow.com/questions/11235370/android-emulator-doesnt-take-keyboard-input-sdk-tools-rev-20 Jul 24 09:03:32 "Yeah, let's take that option out, no one's using it" Jul 24 09:08:16 <_Auron_> lulz Jul 24 09:10:29 HDroid: huh? you just have to enable hardware keyboard. Or am I missing something? Jul 24 09:11:27 appel1: yes... but why? I've never had to in the past. And why wouldn't I want to? Jul 24 09:11:44 Took me 15 minutes of research, I want to invoice Google. Jul 24 09:11:45 evil developers, making people *select an option* Jul 24 09:11:46 bastards Jul 24 09:12:06 Leeds: it's been the default since forever and now it's changed. Jul 24 09:12:09 HDroid: because you might want to test that your app works without a hardware keyboard? Jul 24 09:12:10 it's not been removed Jul 24 09:12:14 <_Auron_> there's no reason it should be disabled by default Jul 24 09:12:17 they just changed the default Jul 24 09:12:19 OH GOD NO, AN OPTION HAS CHANGED DEFAULT VALUE!!! Jul 24 09:12:22 which makes no sense still Jul 24 09:12:28 whatever Jul 24 09:12:34 but it's hardly the end of the world Jul 24 09:12:36 Maybe it is because MOST android devices don't have a hardware keyboard Jul 24 09:12:44 Then making that the defualt makes sense Jul 24 09:13:18 <_Auron_> in the end it doesn't really matter Jul 24 09:13:27 <_Auron_> you're aware of it, you fixed it. Jul 24 09:13:36 <_Auron_> fixed it for your needs anyhow Jul 24 09:13:40 What matters is that this cost me 15 minutes, and it's not the first time. I'm just annoyed. Jul 24 09:13:51 Excuse me for venting. Jul 24 09:16:04 So I figure you guys click the buttons with your mouse? :P Jul 24 09:19:16 HDroid, Nice name :D Jul 24 09:19:48 Heh thanks... H is my initial, though, so not as exciting as it looks. Jul 24 09:27:51 how the hell should i get access_token for authenicating on a site Jul 24 09:31:23 is there a way besides a] forwarding from the activity to the fragment b] setting onclick handlers manually from code, to have onClick attributes in Fragment layouts? Jul 24 09:32:49 http://developer.android.com/reference/android/view/View.html#attr_android:onClick Jul 24 09:33:12 it would be nice if one could specify a method using a fully qualified class name Jul 24 09:33:26 i.e. com.foo.bar.myfragment.onClickyClicky Jul 24 09:33:48 interesting question though, what instance of myfragment it should be bound to.. Jul 24 09:33:51 hmm Jul 24 09:45:45 what equivalence to php's associative, multi dimensional arrays can I use in Java/aAndroid? (i.e. echo $foo['country']['city']['population'];//655) Jul 24 09:46:09 hashmap Jul 24 09:47:29 hashmaps seem to be limited to k, v? Jul 24 09:47:44 so make the v another hashmap Jul 24 09:48:31 but I need the value to be (the php equivalent of) an associative array Jul 24 09:48:59 theres no such thing as an associative array in java, hash maps are the closest things Jul 24 09:49:03 welcome to ##java Jul 24 09:49:22 intact, i don't think it exists in any other language but php Jul 24 09:50:31 ok, than maybe im doing this wrong. I have a chink of data that i need to parse. First im splitting it by line breaks. Then im breaking up the line break by commas Jul 24 09:50:32 (I guess its similar to a csv file, although thats not what it is) Jul 24 09:50:47 the first "field" of every line is the key/identifier for that line Jul 24 09:51:11 how do I go about converting this to an object of sorts so that I can access specific bits of data? Jul 24 09:53:54 Hi. I'm using the eclipse plugin for android and a honeycomb platform. I want to install 2.x platform, but am a bit low on my bandwidth. One colleague has this platform installed. What files, apart from the {{sdk_root}}/platforms/android-xx directory, need to be copied to my installation in order to achieve this? Jul 24 09:54:32 hello, anyone knows a possibilitie to get statistic information about the play store. I am especially interested in the TOP 10 permissions :) Jul 24 09:56:27 CallumTaylor: i guess one could implement one that approximates the syntax in C++ using operator overloading.. Jul 24 09:57:04 though you would get something like myarray("foo")("bar")("baz") Jul 24 09:57:36 though not sure atm.. something like myarray.v["foo"].v["bar"].v["baz"] would definitely be possible though.. Jul 24 10:05:58 is there no possibilitie to get some information about the top requested permissions ? Jul 24 10:06:25 Pinas: doubt it, unless you go for some mass scraping, against TOS Jul 24 10:14:54 CallumTaylor: perl comes to mind Jul 24 10:22:03 hmm, i feel stupid.. i try to get the SQLiteOpenHelper to use a DB on the external storage (it can become huge) Jul 24 10:22:21 so i tried overriding getReadableDatabase and getWritableDatabase.. Jul 24 10:22:37 this must not be the correct way though.. Jul 24 10:22:56 cause onCreate is never called this way it seems Jul 24 10:23:18 Not sure that's possible Jul 24 10:23:41 Should be pretty easy to make your own wrapper around SQLiteDatabase tho Jul 24 10:24:45 http://stackoverflow.com/questions/5332328/sqliteopenhelper-problem-with-fully-qualified-db-path-name Jul 24 10:24:55 it seems since android 2.2 it's possible to use fully qualified DB names.. Jul 24 10:24:58 i'll try that first.. Jul 24 10:25:49 Oh nice Jul 24 10:26:03 Yeah, try that first :p Jul 24 10:28:21 seems to work :D Jul 24 10:30:01 Hi all Jul 24 10:32:16 if i load a shared library (.so) from app (using System.loadLibrary()) when the library is unloaded from system ? Jul 24 10:56:34 there is a channel for google app engine? Jul 24 10:59:39 one question, I am currently doing some research on data-stealing-apps and it seems that quite a lot apps "steal" the IMEI of the phone. I do know what the IMEI is, but I don't know why someone should steal it - what can I do with a stolen IMEI ?? Can someone help me here ? thx Jul 24 11:02:38 they can track the phone Jul 24 11:06:20 tracking in a way that they can identify a phone but not tracking the location ? Jul 24 11:07:56 yes it's unique to every phone Jul 24 11:14:46 yes Jul 24 11:14:49 not every phone has an imei Jul 24 11:14:53 and they shouldn't be using it Jul 24 11:15:08 err not everyone android device has an imei, I meant Jul 24 11:15:38 if it has a phone state, i.e can make calls and stuff it will Jul 24 11:15:39 do CDMA devices have IMEI? Jul 24 11:15:49 i don't think tablets have imei Jul 24 11:16:10 CallumTaylor: presumably they do if they have cell data Jul 24 11:16:22 yeah Jul 24 11:16:35 apparently CDMA has something similar with a different name Jul 24 11:16:46 imei = i'm extra intelligent Jul 24 11:17:09 I mightily eat Indian Jul 24 11:17:35 i masturbat- no. Jul 24 11:17:58 I masturbate extra intensive Jul 24 11:18:00 ly Jul 24 11:18:01 lol Jul 24 11:18:05 and there's the gutter... Jul 24 11:19:11 im flowin colder than weather in minnesota, gettin better spittin bolder, im evedently thee boss relevant for ions research me and find me in the ER Jul 24 11:19:22 eons* Jul 24 11:19:35 since you seem to have too much time, i am trying to display some text (light on the formatting, some italic a little bit bold maybe something you can "click" on). now I don't want a scrollbar, I want to habe "pages". what could I use to detect how much text does fit on the screen and where to beginn to draw the new page? Jul 24 11:26:08 look into a ViewPager Jul 24 11:26:23 there are very very limited use cases for measuring your own crap Jul 24 11:32:15 c Jul 24 11:39:50 Hello, Im trying to do some thread work on a custom class... the class is a subclass os RelativeLayout, now i need a way to get back onto the UI thread for that layout to do some ui work... i am not in an activity at this point. any one shed some light? Jul 24 11:40:26 there is a runOnUiThread function Jul 24 11:40:55 though it is on Activity Jul 24 11:40:57 http://developer.android.com/reference/android/app/Activity.html#runOnUiThread(java.lang.Runnable) Jul 24 11:41:03 Stormsys: the constructors for views have a Context argument Jul 24 11:41:17 Stormsys: that context is most likely your activity Jul 24 11:41:26 and what danharibo said Jul 24 11:41:30 (runOnUIThread) Jul 24 11:41:37 tapas, so your saying thats it probebly safe to cast the context? Jul 24 11:41:42 hey Jul 24 11:41:49 to activity Jul 24 11:41:51 how can I get if I'm in debug mode or not? Jul 24 11:41:53 Stormsys: i'd assume so.. Jul 24 11:42:10 Stormsys: anyways: by default all methods of a View are called in the UI thread Jul 24 11:42:18 Stormsys: do you spawn your own threads to do some work? Jul 24 11:42:23 yeah Jul 24 11:42:27 Stormsys: if so: yes, runOnUIThread Jul 24 11:42:28 ok Jul 24 11:42:48 yeah got it, i just didnt know that it was safe to cast the context Jul 24 11:42:52 thanks :) Jul 24 11:42:57 Stormsys: it's not always safe Jul 24 11:43:05 do a check Jul 24 11:43:07 someone might create your view manually without an activity around it :D Jul 24 11:43:08 before you do Jul 24 11:43:17 yeah, do instanceof Activity and handle the error state Jul 24 11:43:57 gotcha, thanks guys Jul 24 11:50:53 Or, you know, you could use the View.post(Runnable) method Jul 24 11:54:09 i was going to suggest that Jul 24 11:54:10 but then i didnt Jul 24 11:55:52 Casting the context might not always be safe, depending on how it's used Jul 24 11:56:43 /oin 'join 'android-root Jul 24 11:56:48 oops Jul 24 11:59:25 is it possible to read the android logs within an app ??? Jul 24 11:59:47 Pinas, you mean logcat? Jul 24 11:59:57 cr5315 yes Jul 24 11:59:59 if i have an array with stuff like A1, B6, D3, A2 etc, is there any built in sorting methods for getting it like A1, A2, B6, D3 ? Jul 24 12:00:38 Pinas, it is. I don't know how but the existance of aLogcat on Google Play confirms that it can be done. Jul 24 12:00:50 Pinas: on JB though you can only read your own log though Jul 24 12:01:45 How can I avoid `BitmapFactory.decodeByteArray` to cause an OutOfMemoryError? Jul 24 12:01:56 spobat: use less memory :) Jul 24 12:02:26 Decode smaller images Jul 24 12:02:39 hm.. it are basically images that were snapped from users Jul 24 12:02:40 (camera) Jul 24 12:02:57 I wonder why the phone can't handle its own images, :O Jul 24 12:03:36 and are there any api calls to read the logcat output on version < JB ??? Jul 24 12:03:54 what u trying to do pinas Jul 24 12:03:55 Pinas: on < JB you can read all logs Jul 24 12:04:16 Pinas: if it is for error reporting you could look into something like ACRA Jul 24 12:04:30 damn my heads not working i hate sorting Jul 24 12:04:45 don't decode a giant image Jul 24 12:05:35 basically I just need to know how I read the logfiles with the api or if I have to do it via a seperate process Jul 24 12:05:40 hm.. Jul 24 12:05:52 im storing a duplicate of the image as a byte[], obviously Jul 24 12:05:59 should I use a string or anything else instead? Jul 24 12:05:59 http://ideone.com/LZy8T Jul 24 12:06:04 spobat: what are you trying to do? Jul 24 12:06:11 capture an image and save it as jpeg Jul 24 12:06:23 the jpeg-saving process throws an outofmemoryerror Jul 24 12:06:25 Pinas you could just make a wrapper around your calls to log and store them somewhere Jul 24 12:09:02 appel1 is this the correct way to store the data? Jul 24 12:09:19 spobat: just write the byte[] to a file if you're using the jpeg callback. Jul 24 12:09:41 appel1 okay, shouldn't I compress the data? Jul 24 12:09:50 like, save it as jpeg with quality 60% or so Jul 24 12:09:51 I don't need to do this right now - I'm writing kind of a security guide and I currently write about possible information leakage, and debug outputs are a source of information leakage. And I seperated this information leakage chapter into two parts - gather information via the API (like SMS can be read directly via the api) and gather without the API (like reading files of other apps - of course just possible with root). Now i need to know Jul 24 12:09:52 where the reading logs part belongs to :) Jul 24 12:10:01 spobat: uhm, jpeg is compressed Jul 24 12:10:11 you didn't get the question, right? Jul 24 12:10:27 it can be compressed with 80%, with 100% etc.. Jul 24 12:10:51 spobat: the byte[] you get from jpeg callback already is compressed, or are you seeing something else? Jul 24 12:11:17 android seems to have a hell of a lot of issues with images Jul 24 12:11:20 weirdly Jul 24 12:11:21 at which ratio it's compressed, then? Jul 24 12:11:35 gaz` hm.. I agree, though :p Jul 24 12:11:43 I also don't like this veeery small memory limit. Jul 24 12:11:52 yeh me neither its ludicrous Jul 24 12:11:59 reuins many app ideas Jul 24 12:12:02 images use native memory Jul 24 12:12:05 its sufficient for normal apps but for image intensive apps its .. Jul 24 12:12:21 spobat: that I don't know Jul 24 12:12:27 CallumTaylor so u mean it doesnt come out of the heap used for the app? it does seem to tho Jul 24 12:12:33 appel1 okay Jul 24 12:12:36 no it comes out of native memory Jul 24 12:12:37 CallumTaylor what do you want to say? Jul 24 12:12:48 not see any evidence of that Jul 24 12:12:53 but im sure ur right Jul 24 12:13:01 then why do we always get out of memory etc Jul 24 12:13:03 dealing wieth images Jul 24 12:13:07 http://stackoverflow.com/questions/1945142/bitmaps-in-android Jul 24 12:13:29 because its too large Jul 24 12:13:32 there is still a limit Jul 24 12:13:36 Before 3.0 it was Jul 24 12:13:37 but its not limited to the app's memory Jul 24 12:14:06 SimonVT yeah, that was what I meant :) Jul 24 12:14:27 with all the android versions things are getting funny :> Jul 24 12:14:35 you don't need to process 2kx2k images if the screen is only 480x800 Jul 24 12:14:41 atleast its no j2me Jul 24 12:14:47 so use bitmap.options to sample it down Jul 24 12:15:10 also fragmentation will prevent you from allocating a large contiguous chunk of memory needed for a huge bitmap Jul 24 12:15:25 we need a mem.defrag :) Jul 24 12:15:58 that's extremely hard to do Jul 24 12:16:15 yeh what CallumTaylor said, bitmap.options will do it spobat Jul 24 12:16:33 I'll try! Jul 24 12:16:39 I guess you mean inSampleSize :> Jul 24 12:16:42 i was looking for the snippets i used Jul 24 12:16:43 yes Jul 24 12:16:50 somehow ive mislaid a project Jul 24 12:17:07 i have to deal with bitmaps all the time Jul 24 12:17:10 so i know your pain Jul 24 12:17:58 http://pastebin.com/f61YU7pd Jul 24 12:18:09 this is what i do to convert a 512x512 icon down to 60x60 Jul 24 12:18:16 sweet Jul 24 12:18:25 CallumTaylor do u know anything about tone mapping? Jul 24 12:18:25 nice Jul 24 12:18:39 its best to do this swell because the android scale sucks Jul 24 12:18:59 if you try squeeze a 512 image into a 60px view, its all pixelated and looks shit Jul 24 12:19:07 gaz`: converting an image to a different color? Jul 24 12:19:27 not really, i think its about comining 3 images into one Jul 24 12:19:31 like when u see hdr images Jul 24 12:19:35 combining Jul 24 12:19:42 https://github.com/scruffyfox/X-Library/blob/master/src/x/util/BitmapUtils.java Jul 24 12:19:42 trying to do that now but its damn hard Jul 24 12:19:47 this is my bitmap utility class Jul 24 12:19:57 i has aload of processing methods like merging images Jul 24 12:20:05 its slow because its not native Jul 24 12:20:07 but it works Jul 24 12:20:43 porter duff uses native code for its processing Jul 24 12:20:47 that's why its fast Jul 24 12:20:51 cool Jul 24 12:20:57 im considering doing it on the cloud Jul 24 12:20:57 just to recap, on android 3+ I can use as many images as I want without getting the app crashed due to an OutOfMemoryError? Jul 24 12:21:00 for speed Jul 24 12:21:09 yeah i would Jul 24 12:21:11 as long as you have the bandwith Jul 24 12:21:30 spobat i doubt it :) Jul 24 12:21:42 there is an option Jul 24 12:21:49 spobat: no Jul 24 12:21:50 for 3+ in the manifest to ask for more heap Jul 24 12:21:56 On 3.0+ bitmaps are stored in the heap Jul 24 12:22:05 that image class is very nice thx CallumTaylor Jul 24 12:22:09 thanks ^^ Jul 24 12:22:12 need to get some of my code on github Jul 24 12:22:25 altho itll be ridiculed :) Jul 24 12:22:34 yeah all my code would be though Jul 24 12:22:40 hehe Jul 24 12:22:41 its open source so I'm always looking for feedback Jul 24 12:22:49 fixes etc Jul 24 12:23:39 wonder what we would do without the web Jul 24 12:23:46 i just grab code from all over constantly Jul 24 12:23:51 spobat: You just need to be careful with how you memory you allocate.. Scale bitmaps down to the needed sizes, don't cache too many in memory, etc.. Jul 24 12:23:53 me too heh Jul 24 12:24:02 These are mobile devices, they don't have unlimited memory Jul 24 12:24:03 its the best way to code, take other peoples and learn from it Jul 24 12:24:10 k Jul 24 12:24:13 thats why i open source all my code Jul 24 12:24:15 i remnember waiting for "bum" (blitz user magazine) disk to arrive each month and being like oh wow Jul 24 12:24:33 once a month it wa slike a very limited 1 min net session Jul 24 12:24:43 all my code is mostly for others so i cant Jul 24 12:24:59 obviously i don't open source client projects Jul 24 12:25:02 i would probably get fired Jul 24 12:25:10 :-) Jul 24 12:25:39 CallumTaylor why inScaled is set in your code? Jul 24 12:25:51 uh Jul 24 12:25:52 good question Jul 24 12:25:58 i was probably lazy and didn't take it out Jul 24 12:26:10 i think its useless as you don't set the density properties Jul 24 12:26:20 ya Jul 24 12:28:16 are there predefined classes for List? Jul 24 12:28:20 I think I heared something about that Jul 24 12:28:26 IntList or sth Jul 24 12:28:30 heard* Jul 24 12:29:11 no, that's for a Map Jul 24 12:29:21 SparseArray Jul 24 12:29:25 can i get the application class from a context? Jul 24 12:29:25 there's also SparseIntArray Jul 24 12:29:28 SparseBooleanArray Jul 24 12:29:41 there's a weak reference hash map aswell Jul 24 12:29:51 thats not what he's talking about Jul 24 12:29:56 ya i know Jul 24 12:30:01 thought id just throw it out there Jul 24 12:30:26 Okay, thanks Jul 24 12:39:47 hello, i'm having trouble getting an APK on my emulator. logcat spits out the following error: http://pastie.org/4316421 Jul 24 12:40:03 i'm using unity right now to build and run the application Jul 24 12:40:29 google says it's some sort of permissions issue, but it's an emulator Jul 24 12:41:02 um Jul 24 12:41:08 why are you calling make_ext4fs O.o Jul 24 12:41:32 i'm not Jul 24 12:41:45 i've been able to install apps from eclipse to the emulator Jul 24 12:42:02 but that's what gets spit out when i attempt to run an example build Jul 24 12:42:06 Try and create a new emulator Jul 24 12:42:38 i can run apps from eclipse though Jul 24 12:42:43 so i dont think it's the emulator Jul 24 12:43:14 i think it's a unity issue, if anyone's ever even heard of unity Jul 24 12:44:12 http://stackoverflow.com/questions/9100252/how-do-i-install-an-apk-on-the-sd-card-only <-- could it be this issue Jul 24 13:04:36 I dont get it: I have a .jar package as part of my project (eclips), but im getting java.lang.NoClassDefFoundError on the libs?! Jul 24 13:04:48 (I have imports as well) Jul 24 13:05:21 make sure the export with apk is checked Jul 24 13:05:25 for the jar Jul 24 13:05:32 where? Jul 24 13:05:39 in the external library option Jul 24 13:05:41 when you added it Jul 24 13:06:29 libraries in 'libs' are automatically exported Jul 24 13:07:06 mbrevda: in the order and export tab, check the one that its looking for Jul 24 13:07:07 yay sorting commplete.. Jul 24 13:07:41 I right clicked on the project -> Build Path -> Add Libraries. No export option there... Jul 24 13:07:53 go to project properties Jul 24 13:08:03 then java build path Jul 24 13:08:07 then order and export tab Jul 24 13:08:42 ah! So why doesnt the Android x.x package need to be checked?! Jul 24 13:08:54 because its automatically exported with the app Jul 24 13:09:22 er, it's already available on the device, being that the device runs android Jul 24 13:09:25 ah. thanks - lets see if this works now Jul 24 13:09:40 yeah what wongk said Jul 24 13:10:14 yup! thanks Jul 24 13:10:30 btw - anyone using Guava HashBasedTable? Jul 24 13:10:37 logcat in eclipse sucks so bad Jul 24 13:10:45 yup Jul 24 13:10:47 especially on mac Jul 24 13:10:51 it lags like a motherfucker Jul 24 13:10:55 i don't even use the logcat view in eclipse, i use the command line Jul 24 13:11:01 it basically doesnt even work half the time here on win7 Jul 24 13:11:33 i don't want to dedicate space to it even if it did work Jul 24 13:12:01 command line like a baws Jul 24 13:12:33 is there any way to "dump" an array? (like javascript console.log(object)) Jul 24 13:13:03 im getting an array out of bounds exception, and I want to see whats actually in it Jul 24 13:13:15 mbrevda: take a look at my debug class https://github.com/scruffyfox/X-Library/blob/master/src/x/lib/Debug.java Jul 24 13:14:38 Can I detect which developer options are enabled? Jul 24 13:14:58 Such as "Kill activities immediantely" Jul 24 13:15:11 CallumTaylor: NOTHING else? Nothing in the debuger or something? Jul 24 13:15:18 * mbrevda is new to the java stuff Jul 24 13:15:56 not that i know of, you have to loop through and output each item Jul 24 13:15:59 mbrevda: why not just us ethe dbugger? Jul 24 13:16:05 feel free to c+p my source Jul 24 13:16:12 wongk: np, just tell me how :) Jul 24 13:16:23 er, look at the array in the debugger Jul 24 13:16:37 im not sure how to be more descriptive than that Jul 24 13:16:44 lol Jul 24 13:16:51 I have a breakpoint set, and I ran the app. Where do I see the array? Jul 24 13:17:09 debug view Jul 24 13:17:09 are you in the debugger perspective? Jul 24 13:17:14 yes Jul 24 13:17:24 then in the variables view Jul 24 13:17:41 or hover over it with your mouse cursor Jul 24 13:17:44 that window is empty Jul 24 13:17:55 then you're not stopped at the bp Jul 24 13:18:46 hmm, that could be. Why isnt it stoping there? Jul 24 13:18:57 because that code isn't being executed Jul 24 13:19:27 the error is past the breakpoint Jul 24 13:35:54 java.lang.NoClassDefFoundError: android.net.NetworkConnectivityListener Jul 24 13:35:54 at com.google.android.maps.MapActivity.onCreate(MapActivity.java:199) Jul 24 13:35:57 awesome Jul 24 13:37:51 that class doesn't seem to be documented Jul 24 13:38:27 agreed Jul 24 13:38:28 BUT Jul 24 13:38:34 it's MapActivity that uses it Jul 24 13:38:48 oh, yes, yes it is Jul 24 13:42:29 if i have a String[] array, can that be viewed in the debugger to see what in it (without CallumTaylor's class)? Jul 24 13:42:54 mbrevda yes Jul 24 13:43:01 how? Jul 24 13:43:04 but you probably have to write your own "tostring" method Jul 24 13:43:24 meh. I mean without anything? (aka JS's console.logobject)) Jul 24 13:43:50 arrays are fully expandable in the debugger Jul 24 13:43:51 insn't it kinda weird that java doesent provide a default toString() for arrays which calls the default toString() method of all elements? Jul 24 13:43:58 nothing required, it just works Jul 24 13:44:07 wongk: how? Jul 24 13:44:13 click it ^^ Jul 24 13:44:22 ~double Jul 24 13:44:28 not giving me anything Jul 24 13:44:49 hm.. Jul 24 13:44:55 then with `debugger` you probably mean `logcat` Jul 24 13:45:26 hmm - no. Think I got it now. Jul 24 13:46:45 theres no need for a to string method that writes each element Jul 24 13:46:54 just loop through and output each line Jul 24 13:48:12 mbrevda ? Jul 24 13:48:24 ? Jul 24 13:48:26 CallumTaylor I'd write a method :p Jul 24 13:48:32 hmm - no. Think I got it now. Jul 24 13:48:56 I dont, actually, but I think I see an error that might be causing it Jul 24 13:49:11 canadiancow|work: fun fact: If you write a class whose implementation already exists on the frameworks on the device, the one on the device will just override the one you package. Jul 24 13:49:22 canadiancow|work: so, you could just package that class in your app :> Jul 24 13:49:30 ~the more you know!~ Jul 24 13:49:54 that sounds like a ridiculous bugfix Jul 24 13:50:05 why dont i just include the entire android framework Jul 24 13:50:11 is it possible to use the google account on the device for oauth? Jul 24 13:50:58 funktronic: it's possible to get a google auth token for an account on the device Jul 24 13:51:10 but it's tied to a specific google service Jul 24 13:51:30 canadiancow|work: you either do that or MapsActivity doesn't work Jul 24 13:51:31 up to you :> Jul 24 13:51:36 on that one device :( Jul 24 13:51:55 ah, we have google oauth integrated into teh service and i'd *really really* like to avoid having users reenter their google user/pw just to sign into the app Jul 24 13:52:07 they need to release a static MapView library that doesnt need a special activity Jul 24 13:52:08 like ffs Jul 24 13:52:18 * canadiancow|work awaits AppCompat Jul 24 13:52:49 yes they do Jul 24 13:52:58 i used osmdroid, but the scrolling on it sucks so much Jul 24 13:53:07 had to change back to googlemaps Jul 24 13:53:47 actually that's a decent point Jul 24 13:53:54 im not really tied to gmaps on mobile Jul 24 13:54:05 and considering MapView hasnt been updated since cupcake... Jul 24 13:54:08 (for the most part) Jul 24 13:54:37 its bull shit, google maps on IOS is soooo much better than android, and google fucking own android Jul 24 13:54:42 its embarrassing Jul 24 13:55:02 how is it better actually? Jul 24 13:55:18 yea i dont agree with that Jul 24 13:55:23 mapview == cupcake maps == ios maps Jul 24 13:55:26 funktronic: have you looked into getting a token from AccountManager? Jul 24 13:56:04 appel1: looking at that Jul 24 13:56:36 i had worked on an android app that let you use a google acocunt on the device for app engine login Jul 24 13:56:46 krob: it renders nicer, the scrolling is smoother, it handles drawing points better, you can't wrap around the earth it has stricter bounds Jul 24 13:57:01 that requires the user to be signed up for app engine Jul 24 13:57:12 i dont think so Jul 24 13:57:19 i released it to a very limited number of people Jul 24 13:57:26 but i doubt every one of them was signed up for app engine Jul 24 13:58:28 it can't give you an auth token for app engine when that service isn't enabled for the user's account Jul 24 13:58:44 unless that service is "special" Jul 24 13:59:24 Hi. When i create a TCP server on android, and another application connects to the server (both are running on the same device, so the client connects to localhost), will that drain battery like any other open connection? Jul 24 14:01:33 not as much as using the radio Jul 24 14:01:55 but if the device isn't sleeping the battery is draining Jul 24 14:02:09 (more than if it were) Jul 24 14:02:16 so, using my setup the device won't go to (deep)sleep? Jul 24 14:02:34 not if you have a wake lock Jul 24 14:02:50 Hello everybody Jul 24 14:02:55 otherwise your app will cease to function once hte device goes to sleep Jul 24 14:03:15 wongk: mh, okay, thanks Jul 24 14:16:04 i have found something i don't understand, https://gist.github.com/2ba3ad2987cd8efe5c4b Jul 24 14:16:12 why is it like this? Jul 24 14:17:33 oh nvm, it removes the encapsulation of the jsonobject Jul 24 14:20:01 Does anyone have an issue with Wi-Fi simply freezing in Ice Cream? Jul 24 14:20:08 It won't turn on at all. Jul 24 14:20:48 The only way to fix it (if you call it a fix) is to completely wipe the device back to factory settings. This has happened already. Jul 24 14:21:00 Has anyone else had this problem? Jul 24 14:21:15 not me Jul 24 14:21:53 had this once on my SGS2 with ICS, rebooting helped.. Jul 24 14:22:17 Freezing in Ice Cream. I just know some Google employee put this bug in for the pun. Jul 24 14:22:34 lol Jul 24 14:22:59 my wifi stops sometimes Jul 24 14:23:06 but it seems to be a HTC One X-bug Jul 24 14:23:48 The connection dying is one thing. The entire Wi-Fi section of Settings is grayed out and waiting for adapter information. "Turning Wi-Fi on..." Jul 24 14:24:24 It can't even find its MAC Address. Jul 24 14:24:57 might be an hardware issue Jul 24 14:26:01 Jonathan_Eyre: funny, that used to happen all the time but for BT when I had ICS Jul 24 14:26:04 on my gnex Jul 24 14:26:30 Jonathan_Eyre same happened to my galaxy tab today Jul 24 14:27:02 Jonathan_Eyre wi-fi did not worked on android tab ,but same connection worked on laptop Jul 24 14:28:58 How energy efficient is using GCM when a device receives .. lets say, up to 200 messages per day? Jul 24 14:33:50 it depends on what it does with those messages. Jul 24 14:34:15 Papierkorb: depends on what the distribution is Jul 24 14:34:22 Papierkorb: and efficient compared to what Jul 24 14:35:01 compared to battery drain. like, most traffic in 10h of the day, the rest way less Jul 24 14:36:09 there will be battery drain of course Jul 24 14:36:24 it's still hard to answer your question without knowing against what you're comparing it Jul 24 14:36:38 are you going to poll for messages? what are your requirements? Jul 24 14:37:27 against having an open connection. i want to do some instant messaging. so, option A is having my irc client running all day long having an open connection, option B is using a proxy server and sending me new messages over the cloud using GCM Jul 24 14:37:55 Papierkorb: GCM actually keeps an open connection as well Jul 24 14:38:08 both are at least near realtime. polling every X minutes kills the 'instant' in messaging. Jul 24 14:38:12 however it's optimized so it doesn't wake up the device radio so often Jul 24 14:38:24 yes, but other services also use it anyway Jul 24 14:38:26 so compared to rolling your own, GCM is the better choice Jul 24 14:38:27 yeah Jul 24 14:38:33 okay, thanks Jul 24 14:38:40 just remember that every time you send a push the device radio and CPU will wake up Jul 24 14:38:48 which consumes some power :) Jul 24 14:39:31 okay. i'll try caching them on the server and just notify the device something is new so it updates the data when i unlock the screen. Jul 24 14:40:11 that's probably a good idea :) Jul 24 14:41:41 Hi everyone, someone can tell me a good way to reload webview(s) from Java (JSBridge) Interface on Android Jul 24 14:42:13 for the moment : loadUrl("javascript:window.location.reload(true)"); Jul 24 14:55:32 Hey guys, can anyone tell me if ICS has any built-in graphing API's? (say like the graph in the battery utilization menu in the settings) Jul 24 14:56:15 Radsr, that app is open source Jul 24 14:56:23 so worst case scenario, you could take a look at what they did Jul 24 14:56:31 canadiancow, Oh yeah I guess it is Jul 24 14:56:35 are there any better 9patch tools than draw9patch? Jul 24 14:57:02 gimp! ;) Jul 24 14:57:03 canadiancow|work: why not just use gimp or photoshop? Jul 24 14:57:25 i want something that will allow me to type in a string that gets displayed in the content area, and stretches it appropriately Jul 24 14:57:46 it would make it so much easier for me to teach people how 9patch works Jul 24 14:58:57 canadiancow|work: is this of any use: http://android-ui-utils.googlecode.com/hg/asset-studio/dist/nine-patches.html ? Jul 24 14:59:10 i've neve rused that tool Jul 24 14:59:54 Is there a good convention to use for the naming of In-app Product ID? Jul 24 14:59:58 oh wow that's nice Jul 24 15:00:03 <3 android asset studio Jul 24 15:00:04 does anyone know why location based on 3G only doesnt work good? Jul 24 15:00:24 I keep getting the same point over 100m of movement Jul 24 15:01:39 id still like to be able to treat it as a textview, wongk Jul 24 15:01:41 and enter some text Jul 24 15:01:44 to watch the stretching Jul 24 15:01:53 amro_: uh Jul 24 15:02:00 amro_: you mean cell tower lookup? Jul 24 15:02:09 your accuracy is going to be on the order of 1000m Jul 24 15:02:15 lov: something like that Jul 24 15:02:27 so, it is possible to get the same point? Jul 24 15:02:34 100 times Jul 24 15:02:35 cell tower lookup works by taking the ID of the cell tower you're connected to, sending it to google's server, and getting the location of that cell tower back Jul 24 15:02:38 yes, absolutely. Jul 24 15:02:41 unless i move 2km Jul 24 15:02:44 yes. Jul 24 15:02:54 it's better than nothing but wifi based lookup can be more like 30m Jul 24 15:02:59 and GPS can be even more precise Jul 24 15:03:06 Just went and read the source for the Battery thing, I don't understand what the hell is going on Jul 24 15:03:15 Course precision means just that. Jul 24 15:03:23 it'll tell you what town you're in, but that's about it. Jul 24 15:04:11 lov: tnx Jul 24 15:04:37 hmm... I thought the cell towers sent their GPS location in the radio data somewhere. It really has to ask google for that? Jul 24 15:08:26 alankila: it's totally possible that they do, but that's down at the radio layer Jul 24 15:08:32 I don't think that this is exposed at the frameworks level Jul 24 15:08:53 of course, it's possible that the LBS services that google uses have frameworks level stuff for that, but I'd be somewhat surprised Jul 24 15:08:57 hmm. Jul 24 15:09:05 you may be right, actually Jul 24 15:09:12 regardless, you're getting the location info of the tower, not you Jul 24 15:09:27 if you have the location info of several towers and the relative strengths, you can probably triangulate, but you're making some assumptions there. Jul 24 15:09:45 I DO know that wifi based lookup requires a network call Jul 24 15:09:51 (or at least I'm pretty sure) Jul 24 15:17:44 any idea why a n7 with 4.1.1 would be able to connect to a wifi network but a gn with 4.1.1 cant? Jul 24 15:17:48 same network, same credentials Jul 24 15:18:21 Yay, managed to port the cm numberpickerpreference to code that builds under the sdk Jul 24 15:20:38 canadiancow|work: signal strength, mac filtering Jul 24 15:21:07 signal strength is fine Jul 24 15:21:10 devices are side by side Jul 24 15:21:16 no mac filtering Jul 24 15:22:05 canadiancow|work: Can you get any debug off the AP about why it's rejecting? Jul 24 15:22:12 canadiancow|work: <-- wifi guy Jul 24 15:22:27 no Jul 24 15:22:30 it's a corporate network Jul 24 15:22:34 we have two "main" wifi networks Jul 24 15:22:40 one can access our staging server Jul 24 15:22:40 canadiancow|work: Depending how much you care, you could boot a livecd (or use a linux box you already have) and run kismet and get a log of why it's being rejected Jul 24 15:22:44 but my phone cant get on that one Jul 24 15:22:57 i dont care that muhc Jul 24 15:23:00 i'll just use a diff phone Jul 24 15:23:00 :P Jul 24 15:23:15 yea nexus one connects fine too Jul 24 15:23:17 I know what is is: FRAGMENTATION Jul 24 15:23:19 ah hah; so even if you do that, you couldn't send me the cap to look at Jul 24 15:23:36 canadiancow|work: what vendor is your corp wifi Jul 24 15:23:41 no idea? Jul 24 15:23:44 bubbleguuum: lol Jul 24 15:23:44 from now one I will invoque fragmentation every time X works on A but non on B Jul 24 15:24:12 it is even probably sensianolistic tech site worthy news Jul 24 15:24:12 i thought it might be a 2.4/5GHz thing but i forced my gn onto 2.4 and still nothing Jul 24 15:24:16 canadiancow|work: k. (I work for one of the major vendors, my "real job" is writing enterprise ap firmware :P ) Jul 24 15:24:56 are there any android apps you know of that would let me get some debug info? Jul 24 15:25:07 canadiancow|work: Generally if you can get on 5ghz, you want to be on 5ghz, unless it puts you on the edge of the coverage area Jul 24 15:25:14 oh i know Jul 24 15:25:15 WiFi anlizer ? Jul 24 15:25:16 Unfortunately android wraps most of that shit into their internals Jul 24 15:25:21 ah Jul 24 15:25:21 analizer Jul 24 15:25:36 so as a user app you can generally only get at the basic connection state Jul 24 15:25:39 and i only have linux in a VM Jul 24 15:26:13 dmesg and logcat MAY show something; if you can get any sort of reason code for the disassoc/deauth that'd help (if it's logged, it'll be logged as something like 'station deauthenticated with rc=10 or something' Jul 24 15:26:50 if you have a USB wifi nic you can shunt that into the VM and run kismet still (or even just tcpdump/wireshark after shoving it into monitor mode manually) but that's a fair bit of time investment Jul 24 15:27:09 also if you have the right kind of wifi nic I could give you the kismet port to android, but it's preeettty flaky right now Jul 24 15:27:20 and it has to be a rtl8187 because I haven't ported any of the other drivers to userspace yet ;P Jul 24 15:29:27 i just connected Jul 24 15:29:29 for fuck's sake Jul 24 15:29:34 after trying like >9000 times Jul 24 15:29:40 when i finally pull up logcat, it connects Jul 24 15:30:04 oh it might have been talking to a bad AP Jul 24 15:34:17 canadiancow no bad language here pls Jul 24 15:34:18 mystery solved Jul 24 15:34:57 wp-developer... Jul 24 15:35:07 er... :) Jul 24 15:35:48 lol. Jul 24 15:36:06 FRAGMENTATION Jul 24 15:36:59 wp-developer: fuck that Jul 24 15:37:06 How do I switch from the stock ICS blue swatches (as on the activity bar and http://developer.android.com/design/style/color.html) to the purple swatches? Jul 24 15:37:18 In my app ^ Jul 24 15:40:36 jstevans: toss in a bit of red paint Jul 24 15:40:53 Hahaha Jul 24 15:41:05 jstevans: click the link Jul 24 15:41:35 paypal all donations to theandroidhumorist@mikedg.com Jul 24 15:44:20 mikedg: ...? Jul 24 15:44:43 you click links when they are blue Jul 24 15:44:46 then they become purple Jul 24 15:44:53 cause you visited them Jul 24 15:50:21 hi, i have a probably more eclipse related question: is it possible with the android sdk to have run configurations use different source codes? (i am trying to have different configurations where one would have the urls for a remote machine and another one with the urls for my local machine) Jul 24 15:51:19 how can I trigger onPrepareOptionsMenu Jul 24 15:51:28 I want one of the menu icons to update Jul 24 15:51:54 aah got it invalidateOptionsMenu Jul 24 15:54:27 how can i change the selected colour state for the preference items? Jul 24 15:56:46 Are there any good apps that implement using nfc to initialise a wifi direct connection? Jul 24 16:05:37 what images are used for the focused state of the action bar in ABS? Jul 24 16:17:49 is it possible for an application installed on the SD card to have a broadcast receiver that will receive the ACTION_MEDIA_MOUNTED intent? I was told that it's not possible, but can't find any literature that backs that up. Jul 24 16:20:03 well Jul 24 16:20:12 the app can't really run if it's on the SD card and the SD card isn't inserted yet. Jul 24 16:21:22 lov: yeah, that makes sense. didn't know if they had thought of that and put a small delay in, perhaps. Jul 24 16:21:33 nope Jul 24 16:22:04 is there a suitable intent to listen for while on the sd card that you would compare to BOOT_COMPLETED while on the device? Jul 24 16:22:16 or another tactic for kicking off a process...something cool I've never even heard of? Jul 24 16:22:27 :) Jul 24 16:22:50 There are other broadcasts that the device sends periodically Jul 24 16:22:51 http://www.reddit.com/r/Android/comments/x2us7/dear_designers/ Jul 24 16:22:52 lolol Jul 24 16:22:55 such as screen on and screen off Jul 24 16:23:14 user_present too Jul 24 16:23:18 lov: yeah, that's kind of what I figured...pick the one that happens the most often and listen for it Jul 24 16:23:23 hacky, but it would work I suppose Jul 24 16:23:33 or a couple that happen most often Jul 24 16:23:39 S3nsat10n: why do you think you need that to happen tho Jul 24 16:25:05 mikedg: the library I'm working on currently listens for BOOT_COMPLETED to kick off a service that sticks around forever...I'd like to allow devs that use it to move their apps to sd card if they want Jul 24 16:25:20 is there a recommended, cheap phone most suitable for developing? Jul 24 16:25:27 the library isn't new, mind you...it's been around awhile and it just needs to evolve Jul 24 16:28:01 S3nsat10n: there are known limitations to using apps2sd Jul 24 16:28:49 most importantly that the OS, especially on older devices, can't guarantee sd card being present or not disappearing suddenly Jul 24 16:29:17 indeed there are Jul 24 16:29:38 you can also listen for "external mounted" or whatever it is Jul 24 16:29:41 "external available" Jul 24 16:29:43 something like that Jul 24 16:29:45 obviously it's not ideal to be running on the sd card, but it'd be nice to tell people that it's possible Jul 24 16:30:24 canadiancow|work: Not sure if this bug still exists -> http://code.google.com/p/android/issues/detail?id=8485 Jul 24 16:30:34 but it seems like apps on the sd won't receive that broadcast? Jul 24 16:30:49 * S3nsat10n assumes that was the intent you meant Jul 24 16:31:09 yea Jul 24 16:31:10 hmm Jul 24 16:31:11 dunno Jul 24 16:31:18 why do you want "boot completed" ? Jul 24 16:32:11 canadiancow|work: the library currently uses it to kick off a service that needs to be around forever Jul 24 16:32:20 FOREVER Jul 24 16:32:29 what library is this Jul 24 16:32:35 sounds like you need a server Jul 24 16:32:39 J2EE Jul 24 16:33:04 canadiancow|work: a push service Jul 24 16:33:20 why arent you just using gcm Jul 24 16:33:22 mikedg: J2EE is a cuss word Jul 24 16:33:46 anyone using leadbolt apps? Jul 24 16:33:49 canadiancow|work: it has support for that :) Jul 24 16:34:32 canadiancow|work: I know all of the alternatives...and I'm not building an app, just working on an existing library Jul 24 16:35:07 s/alternatives/push options/ Jul 24 16:35:50 android market / play store seems to be a bit low in the last few days Jul 24 16:36:17 recently the dev console was greatly bugged in terms of "images not available" and updating apps takes significantly longer. Jul 24 16:37:39 anyway, thanks for all your help guys...sounds like if I go down the sd card path, I simply need to piggyback on a couple oft broadcast intents. Jul 24 16:38:22 How do I change from the blue color palette (http://developer.android.com/design/style/color.html) in ICS to the purple one? Jul 24 16:39:52 i think you don't Jul 24 16:40:55 i guess its not windows phone Jul 24 16:40:57 !! Jul 24 16:41:16 I can't change the highlight colors from blue to purple in my app? Jul 24 16:41:41 i don't see what's the problem Jul 24 16:41:55 if you want to use a purple color then use one Jul 24 16:42:08 How would I do that? Jul 24 16:42:19 jstevans, you want to change it in your app or globally, in your app, find the appropriate theme setting and change it Jul 24 16:42:26 I want to make my Holo Light theme have purple accents instead of blue. Jul 24 16:42:28 and have your app use that theme Jul 24 16:42:41 so inherit Holo.Light and override the blue accents with purple Jul 24 16:42:48 pfn: where do I do that? Jul 24 16:42:59 in themes and styles.xml Jul 24 16:43:29 Yeah, but is there some global styles.xml that lists all of the things I need to change? Jul 24 16:43:34 yes Jul 24 16:43:38 Whaaaat Jul 24 16:43:42 themes.xml and styles.xml Jul 24 16:43:50 Where can I find those? Jul 24 16:43:51 included in the platform sdk Jul 24 16:43:53 I doubt that would make sense. Jul 24 16:44:05 destorying the rule of consistency.. Jul 24 16:44:31 Ohhhh yes, this is great. Thanks, pfn Jul 24 16:44:35 Thanks, spobat Jul 24 16:45:05 Wait Jul 24 16:45:08 In my colors.xml Jul 24 16:45:17 could I just specify my holo_blue_light as the purple I want? Jul 24 16:45:25 no Jul 24 16:45:36 because yours will be your.package.R.color.holo_blue_light Jul 24 16:45:42 Gahh. Jul 24 16:45:45 Holo.Light references android.R.color.holo_blue_light Jul 24 16:46:06 so you need to extend Holo.Light and reference your own R.holo_blue_light Jul 24 16:49:25 There's no chance of there being an example out there, is there? I can't find one... Jul 24 16:51:03 the examples are existing themes.xml and styles.xml Jul 24 16:51:18 I wonder which rom is better, jellybelly or vicious Jul 24 16:53:24 I wish rom creators would publish diffs so we could see what they screwed with exactly Jul 24 16:53:32 hah Jul 24 16:54:03 I hate implicitly trusting non-canonical builds Jul 24 16:54:24 like most provider builds :P ;) Jul 24 16:54:44 well, provider builds are canonical Jul 24 16:54:49 pretty much all 'roms' are hacked up Jul 24 16:56:57 has aosp been updated to build on ubuntu 12.04 yet... Jul 24 16:57:35 why would you want to build aosp Jul 24 16:57:55 it doesnt even have google apps Jul 24 16:58:40 i build it all the time for debugging Jul 24 16:58:58 oh i didn't realize this was mikedg we were talking about Jul 24 16:59:05 nevermind :) Jul 24 17:05:39 hello, when I need to read the content of the sdcard (external storage) I don't need any permission when API < 16 - right ? Jul 24 17:09:02 Has anyone played around with the Android AOA 2.0 specs yet? I am looking for some help/examples Jul 24 17:13:37 Guys, what's the default color of android actionbar Jul 24 17:15:47 my preferences dont seem to work - when i save to preferences and exit app, and come back and start it again - shouldnt the app used the exisiting prefereferences - how do i correctly check if preferences were set Jul 24 17:16:12 that is how do i specifiy the default values for preferences? Jul 24 17:16:46 reuf: there's a static method to set preferences from your preference xml values the first time Jul 24 17:17:18 aha Jul 24 17:17:20 PreferenceManager.setDefaultValues(this, R.xml.preferences, false) assuming you have a single preferences.xml Jul 24 17:17:27 perhaps you are not using this correctly? Jul 24 17:17:32 i didnt use xml at all Jul 24 17:17:35 thats the reason Jul 24 17:17:40 err... no Jul 24 17:17:49 what happens when i change preferences? where do they get saved? to xml again Jul 24 17:17:51 then you are doing something completely different from what I was guessing Jul 24 17:17:52 ? Jul 24 17:18:14 well if you use a SharedPreferences object they get saved to XML file privately eventually. Jul 24 17:18:29 aha aha Jul 24 17:18:33 reuf, did you commit changes? :) Jul 24 17:18:34 there's a protocol to change preferences: you request a preferences editor, use the editor to modify the prefs, then "commit" Jul 24 17:18:55 i understand Jul 24 17:19:01 i did commit changes Jul 24 17:19:05 and i screwed up my app Jul 24 17:19:24 alankila: thanks for the help Jul 24 17:19:32 it's a lot clearer now Jul 24 17:24:30 hi Jul 24 17:25:06 can someone point me to an example of implementation of free app that have a paid "key" version that unlocks content ? Jul 24 17:26:20 Estragon, that is a PC business model, but I can think of one. Communilator Jul 24 17:27:03 Estragon: there's a lot of apps that are free, but use in-app billing to remove the advertising Jul 24 17:27:09 I would consider that unlocking content. Jul 24 17:27:50 i've seen a number of android apps that do the key thing Jul 24 17:28:02 Apps that are older than in-app billing Jul 24 17:28:05 some poorly Jul 24 17:28:13 SimonVT: newer, too Jul 24 17:28:17 >.< Jul 24 17:28:20 Estragon, is that not sufficient: http://developer.android.com/guide/google/play/billing/billing_integrate.html ? Jul 24 17:28:33 nova launcher for instance, iirc Jul 24 17:28:35 Apps that are older than in-app billing, or made by devs who doesn't like their users :p Jul 24 17:28:50 ^^ Jul 24 17:28:55 SimonVT: eh. i have no issue with it as long as there's not a second icon Jul 24 17:28:58 Communilator in the free version can translate any text from one language to another. Then it will let you send that translation in an email or text. If you want to hear the text spoken, you have to pay extra. If you want to scan in a whole document and translate it, you pay extra. Jul 24 17:28:59 Hi all. Quick question; for a simple soundboard, with 9 audioclips averaging around 5 seconds each, what should I use for playing audio? a soundpool? Jul 24 17:29:12 but in-app billing is nice Jul 24 17:29:19 ThomQ: soundpool is probably fine Jul 24 17:29:24 in fact I already know about in-app billing for unlocking content / removing ads ... but I wanted to know how free / unlock key applications work. How to communicate between 2 apps ? (for example to check that the key app is installed) ? Jul 24 17:29:37 Estragon: please don't do this. Jul 24 17:29:48 im not going to implement it as it's kind of deprecated since in-app billing Jul 24 17:29:48 Estragon: having multiple apps was a workaround for the fact that in-app billing didn't exist. Jul 24 17:29:49 I am with lov. Jul 24 17:29:56 anyway Jul 24 17:29:57 but im curious about how it works Jul 24 17:30:01 HOW they did it could be a few ways Jul 24 17:30:12 then again it requires a lot of extra consideration vs an in-app link to the upgrade in the store .. users can't see that there's a paid upgrade, and upgrading has to be made obvious within your app Jul 24 17:30:13 one way could simply be to check for the existence of the other app, along with its signaturte Jul 24 17:30:15 lov; cool, I'll do that Jul 24 17:30:16 *signature Jul 24 17:30:17 thanks! Jul 24 17:30:36 alternately, you'd probably end up using AIDL Jul 24 17:30:41 oGMo: An extra app on play store isn't obvious either Jul 24 17:30:46 you could also communicate via broadcast intents too, I'm sure Jul 24 17:31:03 SimonVT: yes it is, because it's shown under other things you've developed and shows up when your app is searched for, often even generally Jul 24 17:31:24 i.e., it's not something a user has to specifically hunt down, vs an in-app upgrade Jul 24 17:32:20 I hardly ever check what else a developer has made Jul 24 17:32:26 well, back to fabricating a persona for job applications. I want to prove a point. Jul 24 17:32:31 If there are lots of similar apps, your paid version is going to be well down the page Jul 24 17:32:50 Either way you'll want to slap a button in the app to draw attention to it Jul 24 17:32:52 why would a user be on the app's google play page after they've installed it ? Jul 24 17:33:11 ah, your single data point has clearly disproven my argument! make no considerations at all and simply hide an in-app billing link! users will love it! Jul 24 17:33:21 hide it ? Jul 24 17:33:29 (hidden upgrade costs are also annoying) Jul 24 17:33:31 you can present it anyway you want, clearly going to lead to higher conversions to paid version Jul 24 17:33:32 Why hide it? Jul 24 17:34:02 You only speak from a single data point as well - you Jul 24 17:34:07 doogan: well, yeah, that's part of my point .. how to upgrade (in your UI) and how much etc is an important consideration Jul 24 17:34:10 To me, it's not obvious that there's an additional app Jul 24 17:34:22 Unless they advertise it somehow in the app Jul 24 17:34:30 But then, why even make it an additional app Jul 24 17:35:12 could put Lite & Pro in the app titles or something, if they're dissimilar enough to warrant separate apps Jul 24 17:35:28 if a user switches phone, they'll have to remember to install your app twice Jul 24 17:35:34 or you have lots of additional assets in the non-free version you don't want to manage Jul 24 17:35:35 vs a single install and a managed purchase Jul 24 17:35:36 I always check what else a developer has published Jul 24 17:35:44 i have an issue with the soft keyboard covering up an EditText, any way to force a scroll ? Jul 24 17:35:50 adjustPan doesn't seem to do the trick Jul 24 17:36:16 i often check a good dev's work myself, but the Play app just shows you some, too Jul 24 17:36:38 I figure if the developer makes one app I like, I'll probably like more of their apps Jul 24 17:36:50 yeah Jul 24 17:36:54 right i'm sure most of us do, but we're developers Jul 24 17:37:18 but that's aside from the point that play _already_ displays a few related apps to the one you're searching for Jul 24 17:37:27 hmm, is there some setting in mtp that only makes certain folders appear? Jul 24 17:37:28 s/searching for/looking at/ Jul 24 17:38:10 is there a name for the rule (a + b)^2 = a^2+ 2ab + b^2?...i cant remember it. Jul 24 17:38:43 square of sum? Jul 24 17:38:54 name? that's simple polynomial multiplication Jul 24 17:39:03 luxurymode: multiplication? distribution? Jul 24 17:39:08 it's a quadratic? Jul 24 17:39:09 luxurymode, http://en.wikipedia.org/wiki/Perfect_square_trinomials#Perfect_square_trinomials Jul 24 17:39:19 it's a "perfect square" :) Jul 24 17:39:42 i think square of sum is what i was looking for. i guess thats not the name, just the type of problem Jul 24 17:39:45 thanks all Jul 24 17:42:01 anyone using thunderbolt ads? Jul 24 17:42:58 I still get this when i copy leadboltcontroller.jar into libs: Error generating final archive: java.io.FileNotFoundException: ****\bin\classes.dex does not exist Jul 24 17:46:35 anybody any idea why this litle code to play a sound when pressing a button is giving me a Null-error? : http://pastebin.com/rhvmFVev Jul 24 17:47:25 I can't really tell from LogCat what is causing it Jul 24 17:47:52 ThomQ: stacktrace or gtfo Jul 24 17:47:58 see link in topic Jul 24 17:48:37 lol, you're a friendly chap, aren't you Jul 24 17:49:44 ThomQ: notice http://imgur.com/jacoj in /topic Jul 24 17:52:08 :P i'm on it Jul 24 17:56:33 hey everybody, Im working with gallery at the moment (trying to create level chapter selector for my game). An issue is: I'm overriding onFling method and need to scroll between pictures, I need tham to snap on Fling but I cannot find the right methot to do it, If I use scrollTo it doesn't scrolls smoothly, Is there's a way to do it by changing focus, something like setFocusToRightItem? Jul 24 17:57:11 hi, have this sqlite backend, in 1 table I have 3 fields F1, F2,... and the ID field. is there a way except manually checking first to make sure it the same row won't be inserted twice? i thought replace() but for it to work i think you need a UNIQUE on 1 field, my is a unique on the composite.. Jul 24 17:58:13 here's the stack chase: http://pastebin.com/7igSbwuz Jul 24 17:58:46 helped me locate that the nullreference comes from this line: three.setOnClickListener(new View.OnClickListener() Jul 24 17:59:17 There's no setContentView Jul 24 18:01:22 * Macca- waves Jul 24 18:02:01 so i have this Intent 'com.htc.HtcSoundEnhancerSetting.ShowSettingPage' -- which when i startActivity on it it shows a dialog to turn on/off Beats audio... i want to skip the dialog and just turn it on/off myself. Jul 24 18:02:08 anyone know what is problem with R. classe on eclipse on fresh ubuntu 12.04 version Jul 24 18:02:12 can anyone point me in the right direction? Jul 24 18:03:17 Novaa try to clear the project Jul 24 18:04:20 well i already did that... Jul 24 18:04:37 if it doesn't help restart eclipse, then restart computer, then reinstall eclipse, that what I was doing on 11.10, haven't had that issue with 12.04 Jul 24 18:04:44 ThomQ: think; what could be null in that line? Look at Simon's comment too Jul 24 18:05:02 Simon; setContentView was for me or dzan? Jul 24 18:05:24 hey guys how to scroll smothly with gallery? Jul 24 18:05:31 ThomQ, no answers to my question so for you probably :p Jul 24 18:05:50 haha omg, too n00by.. Jul 24 18:06:14 defuera: thank you for you help, yeah i know but i am having this with 2 diferent pc's ...already change eclipse version for Juno and nothing Jul 24 18:06:31 i am missing something Jul 24 18:06:36 is R class just missing? Jul 24 18:06:40 @ lov: yeah, its probably View, since the button is being declared above, and no mentioning of any errors in that.. Jul 24 18:06:52 yep Jul 24 18:07:27 have the project been imported? Jul 24 18:08:10 yes,but i tried with blank project and sample and still with same Jul 24 18:08:45 so there's 2 ways to import project Jul 24 18:08:53 try another one ) Jul 24 18:09:40 well but that isnt my problem because i still having the problem with blank or sample project Jul 24 18:09:50 Although.. Could it be that I use Button to find an imagebutton? Jul 24 18:09:57 It happend me a lot, man, I even created R.java myself ones Jul 24 18:10:10 13:59:26 < SimonVT> There's no setContentView Jul 24 18:10:14 mmm.. thats strange Jul 24 18:10:18 if there's no setContentView, there's no button to reference Jul 24 18:11:50 which other IDE is working well? Jul 24 18:12:10 intellij Jul 24 18:13:50 defuera: the exact problem is " R cannot be resolved to a variable" Jul 24 18:14:15 Nova, have got it from repository or installed manualy? Jul 24 18:14:21 Novaaa, clean the project. IT doesn't make sense, but it works Jul 24 18:14:48 Check if it exist in gen/your.project.name/R.java Jul 24 18:15:49 Has anyone played around with the Android AOA 2.0 specs yet? I am looking for some help/examples Jul 24 18:16:29 defuera i have the BuildConfig.java not R.Java :S Jul 24 18:16:33 there* Jul 24 18:17:02 TRUE_mnk: i did that overtimes but when i build it ...same problem appear Jul 24 18:17:27 Guys, How to upgrade indigo to Juno Jul 24 18:17:31 ? Jul 24 18:17:44 would I need to add Juno repo to update list? Jul 24 18:18:14 hemanshu, re-download, replace Jul 24 18:18:26 I advise against it, ADT hasn't been updated yet, alot of plugins don't work eiter Jul 24 18:18:42 @ lov: Ok cool, got setContentView, now im gettin a ClassCastException.. http://pastebin.com/1ASn1Xq7 Jul 24 18:18:57 caused by android.widget.Imagebutton Jul 24 18:19:19 Nova, I understand your pain, but I don't know what else to do, sorry man. I deleted and installed eclipse manually that time. Jul 24 18:19:20 replace BuildConfig.java to R.java maybe will help me now? hum Jul 24 18:19:25 rename* Jul 24 18:19:38 Mavrik: thanks, I'm in no hurry myself, I was hoping if it could be a little faster Jul 24 18:19:43 no Jul 24 18:19:50 that different thing Jul 24 18:19:55 u need them both Jul 24 18:20:19 ah Jul 24 18:21:34 i will try re-download android sdk...because i am using the same for both pcs Jul 24 18:21:39 that should be the problem Jul 24 18:21:49 thank you guys Jul 24 18:25:18 ThomQ: so fix it. Jul 24 18:27:36 good day everyone Jul 24 18:27:38 hey lov Jul 24 18:28:32 i need some assistance with theme is this the right please , if not please forgive me Jul 24 18:30:12 you would better of starting with the question itself dacs Jul 24 18:33:13 hello Jul 24 18:33:14 Hi Napalm Jul 24 18:33:23 lov: long time, hows things? Jul 24 18:33:29 dacs: if you mean a theme with your app, yes. If you mean changing the theme for the entire device, go to #android-root Jul 24 18:33:38 Napalm: alright, I guess Jul 24 18:33:55 did you get to go to I/O this year? Jul 24 18:34:16 nope! Jul 24 18:34:20 did not get a ticket. Jul 24 18:34:31 i managed to get a ticket, my first year Jul 24 18:34:38 this was my first year going Jul 24 18:34:46 new experience Jul 24 18:34:59 lov: been I/O before? Jul 24 18:35:52 lov: I'm trying to fix it, obviously :P I got this activity http://pastebin.com/TuFDfeWS causing the ClassCastException, and no clue on what I'm doing wrong Jul 24 18:36:26 Probably incorrectly casting something Jul 24 18:36:34 I though it was because I'm looking for a button, not for an imagebutton, but the examples and tutorials I've checked, they all do it like this Jul 24 18:37:05 http://developer.android.com/reference/android/widget/ImageButton.html Jul 24 18:37:13 ImageButton doesn't inheriet from button Jul 24 18:37:19 so you couldn't cast it to be a button Jul 24 18:37:20 ThomQ: simple answer, dont cast it, setOnClickListener is from view.View not Button Jul 24 18:37:47 so you either need to make it a button, or cast it to an image button, or don't cast it at all like Napalm said Jul 24 18:38:35 Ahh so I was on the right track.. Jul 24 18:38:56 ive been trying Imagebutton, instead of ImageButton.. There's inexeperience for you :P Jul 24 18:39:49 Napalm: yeah, I went a couple of times before. It's always an experience. It's less of a developer conference and more of a press event, though. Jul 24 18:41:40 true, i think the only thing i found at really interesting was this one http://www.youtube.com/watch?v=PwC1OlJo5VM Jul 24 18:41:58 i didnt even clock the ramifications on net access in that way Jul 24 18:42:08 so im glad i picked that up Jul 24 18:42:53 also the new ADK is interesting, need to play with that, and obviously the Jelly Bean info Jul 24 18:43:12 but JB is more system backend updates rather than API Jul 24 18:43:19 and the new developer console stuff is good Jul 24 18:43:19 @tomless: Making it a button, would mean I'd won't use ImageButton in the layout xml, right? Jul 24 18:43:40 Right Jul 24 18:43:40 correct Jul 24 18:44:07 hmm, that's seems like a big work around Jul 24 18:44:19 lov: theres some other info i need to read about, i hear good news about a google apps backend annotation system Jul 24 18:44:28 ThomQ: what are you doing? whats the problem Jul 24 18:44:30 ThomQ: ImageButton is not a child of Button Jul 24 18:44:36 that's why your cast is failing Jul 24 18:44:43 http://developer.android.com/reference/android/widget/ImageButton.html Jul 24 18:44:48 look at the parentage of ImageButton Jul 24 18:44:55 it's a child of ImageView Jul 24 18:44:58 ThomQ if you want to use ImageButton then cast it to an ImageButton Jul 24 18:45:03 lov: apparently you can xml annotate your api and google services will build a jar for your android app and a lib for iphone aswell Jul 24 18:45:07 instead of casting it to a Button Jul 24 18:45:17 which should hopefully close the api gap most apps have Jul 24 18:45:21 note, however, that VIEW has the setOnClickListener method Jul 24 18:45:29 so you don't even have to cast it, since findViewById returns a View type Jul 24 18:45:38 just call findViewById(R.id.whatever).setOnClickListener(...) Jul 24 18:46:19 Napalm: yeah, it's interesting Jul 24 18:47:37 lov, thanks for explaining, i'll try it that way Jul 24 18:49:01 tomless: I was trying that, but changing Button to ImageButton gave me the same errors Jul 24 18:49:18 have to reboot, brb to check lov's method Jul 24 18:57:28 Hmm.. I tried the following: http://pastebin.com/aDpyxXAS, wich gives me a android.app.SuperNotCalledException ( http://pastebin.com/1QjR8K6F ).. Jul 24 18:58:00 this was lov and napalm's suggestion right? : findViewById(R.id.but3).setOnClickListener(new View.OnClickListener() { Jul 24 18:58:18 yes Jul 24 18:58:43 ThomQ: your problem is no longer your cast Jul 24 18:59:14 ThomQ: your problem is you deleted the following line from the start on onCreate() .. add it back > super.onCreate(savedInstanceState); Jul 24 18:59:42 ThomQ: the error messages tells you exactly what you did wrong, read it next timer Jul 24 18:59:46 -r Jul 24 18:59:50 ahh ok thanks. That was one of the lines from the tutorial that I didn't understand Jul 24 19:00:13 yeah I couldn't find a Caused By in the log.. as you can tell, im a big n00b Jul 24 19:01:27 allright, it's finally working :) Thanks guys! Jul 24 19:04:53 how can i figure out if the navigation bar (for 3.0+) is currently visible? Jul 24 19:08:18 anyone know if you can share the google maps API key across app packages or if its checking against keystore AND app package? Jul 24 19:08:48 hi Jul 24 19:09:04 i'm trying to change the textcolor on one of my ABS submenu items, 30 min of google returnet nothing...only xml styling Jul 24 19:09:32 luxurymode: getActionBar().isShowing() Jul 24 19:12:14 ryanm, no i mean the bottom nav bar with the back and home buttons, etc Jul 24 19:12:28 also, gotta keep in mind some devices running ICS dont even have that, e.g. the S3 Jul 24 19:12:31 oh, sorry. one sec. Jul 24 19:12:54 i think its maybe getWindow().getDecorView().getSystemUIVisibility...? Jul 24 19:13:01 or that might only tell me if its dim or whatever Jul 24 19:13:06 id like to know if there at all Jul 24 19:13:57 any View.getSystemUiVisibility() should do it Jul 24 19:14:30 you're gonna want to bitwise and it with the various flags to find out exactly what mode it's in Jul 24 19:15:00 right Jul 24 19:15:02 gotcha Jul 24 19:15:05 thanks a lot Jul 24 19:17:39 hmm, but which of those actually amounts to it taking up any space on the screen? all but the full screen right? Jul 24 19:17:59 also, if theres no nav bar at all, what'll it return? Jul 24 19:24:24 luxurymode: I think the only one that makes it disappear completely is SYSTEM_UI_FLAG_HIDE_NAVIGATION Jul 24 19:24:38 yeah, thanks Jul 24 19:24:55 see the docs on that one for more info Jul 24 19:25:31 I'm trying to use the snapshot feature for development, but it's grayed out. The target sdk is android 4.0 with eclipse 4.2, anybody have an idea why it's grayed out? Jul 24 19:26:14 (How) can i read the contacts on the sim card through adb / shell? Jul 24 19:26:26 ryzngard: did you enable gpu accel? Jul 24 19:27:12 p_l|home: if it's not enabled by default then no Jul 24 19:27:21 weird Jul 24 19:28:11 zarac: I don't believe that you can. Jul 24 19:28:31 or rather, there's no default way to do it from the shell Jul 24 19:28:49 p_l|home: in looking for that option, I now see the quite obvious "Snapshot: Enabled []" that I missed on the settup. Just me being oblivious Jul 24 19:28:59 ah Jul 24 19:29:05 I thought *that* one was grayed out :) Jul 24 19:29:29 haha, no. I just didn't see it Jul 24 19:30:10 lov: Aight,thanks. :) Jul 24 19:31:33 does c2dm work in the emulaotr? Jul 24 19:32:14 not as far as I know Jul 24 19:32:20 emulator doesn't have any google services Jul 24 19:38:24 wasn't c2dm in some way special exception? Jul 24 19:39:00 to force a view to call onDraw, I should call invalidate right ? Jul 24 19:41:48 guys pls how can I show alertdialog just once on the first run of my app? Jul 24 19:41:56 not everytime i run it Jul 24 19:42:25 store a boolean in your application's preferences saying whether you've shown it or not Jul 24 19:43:22 oh got it, thanks :) Jul 24 19:48:03 Hello Jul 24 19:49:40 hey there Jul 24 19:49:46 I'm having slight trouble using a MediaPlayer sound, I want to be able to stop() the sound and reuse it, however it only works the first time (error start called in state 1 error (-38, 0)...) ) Jul 24 19:49:50 ello Jul 24 19:50:13 there must be some way to stop the sound from playing and be able to restart it Jul 24 19:51:22 can't really help. i'm not a mobile developer Jul 24 19:52:14 what do you mean by reuse? Jul 24 19:52:35 mantas322: prepare() ? Jul 24 19:52:52 before start()? okay i'll try that Jul 24 19:53:21 or pause() and start(), maybe a seekTo() in between Jul 24 19:53:28 if worst comes to worse, try putting stop(0 in a try catch, so it doesn't try to stop too much Jul 24 19:53:33 http://developer.android.com/reference/android/media/MediaPlayer.html is the media player state machine Jul 24 19:53:36 stop()* Jul 24 19:54:12 Anyone here worked on a custom mod before? Jul 24 19:54:40 wow, ics is on 10.9% of phones? Jul 24 19:55:08 jasta: probably closer to 12 % today if you extrapolate Jul 24 19:55:25 that's so much higher than i expected Jul 24 19:55:26 or even 13 %, actually. Jul 24 19:55:34 i thought it was still like 5% Jul 24 19:56:00 conversely, very surprised to find that froyo and eclair are >20% combined Jul 24 19:56:10 froyo's ancient Jul 24 19:56:15 media likes to make a story out of android upgrade troubles. Jul 24 19:56:41 i have froyo :) Jul 24 19:57:00 how do i factory reset a device :( Jul 24 19:57:03 to me , android is froyo and what the compat lives give :D Jul 24 19:57:04 g00s: as a dev device though right? Jul 24 19:57:13 should be an option through settings Jul 24 19:57:18 if i cant get in Jul 24 19:57:19 its my only device Jul 24 19:57:20 i dont know the unlock code Jul 24 19:57:31 ?? Jul 24 19:57:37 put it in download mode Jul 24 19:57:40 flash a custom rom Jul 24 19:57:41 win! Jul 24 19:57:51 "adb shell Jul 24 19:57:51 recovery --wipe_data" ? Jul 24 19:57:54 nm found the unlock code Jul 24 19:57:57 why do you need to factory reset? Jul 24 19:58:08 i needed to get rid of the unlokc code :P Jul 24 19:59:13 i "found" this phone and all Jul 24 19:59:15 it fell off a truck Jul 24 19:59:43 that's my phone Jul 24 19:59:46 please send it back Jul 24 20:00:09 in all seriousness though, couldn't you call them or their contacts and give it back to them? Jul 24 20:00:18 hhmm for every done item in my TODO list I add 2 more new items...it is not sustainable! Jul 24 20:00:58 hm, interesting stats http://www.fiercedeveloper.com/story/survey-ios-will-win-enterprise-market/2012-07-24 Jul 24 20:01:17 interesting change over time Jul 24 20:01:22 70 percent of developers are building applications for the enterprise market Jul 24 20:01:23 bullshit Jul 24 20:01:37 70 percent of developers who read "how to build an enterprise app" maybe Jul 24 20:02:00 enterprise mobile apps is probably one of the best opportunities now Jul 24 20:02:12 that and Appcelartor userbase is more likely to be enterprise developpers Jul 24 20:02:17 70% of developers using appcelerator claim too... Jul 24 20:02:56 * alankila idly wonders what it is that "enterprise" needs Jul 24 20:03:37 we have an app that tells us what's for lunch Jul 24 20:03:47 and probably does some other stuff Jul 24 20:04:08 canadiancow|work: is that always just "grass" for you ? :D Jul 24 20:04:12 anyone made a custom rom before from source? Jul 24 20:04:35 i made one from play doh Jul 24 20:05:02 close enough: where is the code that runs on first boot? Jul 24 20:05:10 okay, thanks guys! hb_sound.stop(); hb_sound.prepare(); hb_sound.seekTo(0); does what I wanted. Jul 24 20:05:29 I imagine the seekTo is useless Jul 24 20:05:55 we'll see about that Jul 24 20:05:57 Does start() include seekTo(0), I wonder? Jul 24 20:06:00 prepare should probably move to beginning of the sound anyway. Might be slightly less efficient than pause() followed by seekTo(0) though Jul 24 20:06:09 CurlyBrace: no Jul 24 20:06:16 CurlyBrace I dont think so cause im running into errors Jul 24 20:07:12 alankila Jul 24 20:07:15 its not useless Jul 24 20:07:23 really? alrighty then. Jul 24 20:07:27 it will restart the sound where it was stopped. Jul 24 20:25:45 I'd like to keep an Imagebutton pressed for a certain time (the time of the audioclip the button plays). How would I do that, what terms should I google for? Jul 24 20:26:36 any way to get rid of that top google search bar on the N7? I haven't been able to find a way... Jul 24 20:28:04 sygnous|mbpr: not without hacking the software Jul 24 20:28:20 it's actually "phone search" as much as it is google search, btw Jul 24 20:28:24 yeah, that's what I was thinking…. will need to wait for a rom I guess Jul 24 20:28:25 it searches apps, contacts, etc Jul 24 20:28:26 so i've finally released my app on the market, but for some reason i'm not seeing it in the search results Jul 24 20:28:34 it's been about half an hour; does it normally take a while? Jul 24 20:28:42 i heard about an hour Jul 24 20:28:48 Escherial: it can take time as local caches update. Jul 24 20:28:52 but yeah, give it some time.. Jul 24 20:28:57 as you might expect, google's infrastructure is heavily cached Jul 24 20:29:12 consistency is less important than speed Jul 24 20:29:16 jasta: makes sense :) i don't mean to be impatient, just not sure what to expect Jul 24 20:29:20 scaredy cats, those google people Jul 24 20:29:38 i was wondering if perhaps making it available only in the US is affecting things; i'm based in the us, but i wonder if their site is detecting that properly Jul 24 20:30:05 hey jasta Jul 24 20:30:07 long time Jul 24 20:30:10 hello Jul 24 20:30:18 just posted a new guide on XDA http://forum.xda-developers.com/showthread.php?t=1794203 Jul 24 20:30:32 I've got a TabActivity in which I have 3 different tabs (3 different activities), and I have a button in the parent TabActivity (the one containing the tabs) and with that button I want to update the 3 activities, how do I do that? I can upload a screenshot if it would clear things up Jul 24 20:32:05 nice one Napalm Jul 24 20:33:01 hey guys, does a view/layout have to be in a separate activity, or can i use one activity to display several views/layouts? Jul 24 20:33:19 http://i.imgur.com/cDqoC.png Jul 24 20:33:28 there's a picture to my problem Jul 24 20:33:36 Kaneda: I'd say yes.. But too big of n00b to be sure :P Jul 24 20:33:48 i'm stuck using one activity because of unity it seems Jul 24 20:33:56 kaneda^, it is technically possible to have more than one view in an Activity Jul 24 20:34:14 Ologn, ok, how do you think it's best to accomplish this, given that other threads may need to change the view Jul 24 20:34:53 i'd prefer not to have to use async task just to click a button Jul 24 20:35:13 kaneda^, as I said it's possible, as for best practices, whether or not it should be done regularly, I don't know Jul 24 20:35:29 i'm working on getting unity to invoke a second activity Jul 24 20:35:34 kaneda^, I just make two Views and do a setContentView on the new view when I want to Jul 24 20:35:37 but every time i try it has a fatal exception of some sort Jul 24 20:35:53 Multiple Views in an activity is quite common Jul 24 20:35:55 hmm, i tried this and i got an error referencing Loop.handler() Jul 24 20:36:02 Hi.I've got a question .... is better to use OpenGL ES 1.1 in dalvik or better Native. I like native more. Jul 24 20:37:33 kaneda^, just do a simple bare bones switch from one Activity to another, then build on it Jul 24 20:37:46 Ologn, i can't :/ Jul 24 20:38:21 I have my soundboard done. Its a bunch of imagebuttons, a soundpool, and OnClick methods to trigger the sounds. It works, but not too my liking: I'm going to use OnTouch to start playing, and I'd like the button to stay in Pressed state as long as the audio clip plays Jul 24 20:38:37 kaneda^, do a simple bare bones sample code and see if that works, then see if you can integrate that into what you're doing Jul 24 20:38:37 just what android needs :) Jul 24 20:38:45 Ologn, that's the first thing i tried Jul 24 20:38:46 how would I acomplish this, what am I looking for? Jul 24 20:38:59 kaneda^, did the simple activity switch work? Jul 24 20:39:04 it works outside of unity Jul 24 20:39:07 not inside of unity Jul 24 20:39:11 jonnyATroot: are you asking whether its better to use the opengl from java, or from native code? Jul 24 20:39:58 JesusFreke: I'm asking if there is difference in performace ... I wan't faster one Jul 24 20:41:32 kaneda^, are you using unity pro or the free one? Jul 24 20:41:41 jonnyATroot: just use C code then. Jul 24 20:41:44 Ologn, i'm using the trial, but i'll have a pro license within a couple of weeks Jul 24 20:41:46 jonnyATroot: I wouldn't expect a noticeable performance difference between them Jul 24 20:41:57 hey guys, I'm trying to get a button to blink a color. I'm setting the button color and then doing Thread.sleep(2000); Jul 24 20:43:15 but it doesnt like that blocking UI thread. Jul 24 20:43:16 Ologn, i'm getting closer to being able to launch an activity though Jul 24 20:43:18 :/ Jul 24 20:44:05 Ologn, now i think it's just missing something in the res folder in the unity project Jul 24 20:44:06 thx. And I have another one I heard that Shaders in 2.0 ES are slow is that true? Jul 24 20:44:21 Ologn, if i export my android project as a library project do the resources come w/ it? Jul 24 20:44:57 kaneda^, I've never made a library project Jul 24 20:45:07 Ologn, that's what one of the tutorials i read said to do Jul 24 20:45:14 but all of the tutorials point towards a non-existent unity doc Jul 24 20:46:11 i just opened the JAR and the resources are present :/ Jul 24 20:46:23 but i get this error when i go to launch my secondary activity: http://pastie.org/4326245 Jul 24 20:48:42 kaneda^, what are you developing with? Which IDE? Jul 24 20:49:12 Ologn, eclipse/unity/monodevelop Jul 24 20:49:21 I think I got a solution for what I wanted, but I keep getting errors: http://pastebin.com/L3z6ZRWD .. setOnTouchListener in the type View is not applicable, and OnTouchListener & MotionEvent cannot be resolved to a type. Anybody an idea on what I'm doing wrong? Jul 24 20:49:30 i'm doing the straight android stuff in eclipse and then the c# in unity/mono Jul 24 20:49:33 kaneda^, try cleaning the project and rebuilding Jul 24 20:49:39 Ologn, ok Jul 24 20:55:06 Ologn, same thing :| Jul 24 20:55:09 Hey guys! I'm using SoundPool.load to load sound effects from asset files, but sometimes I would get the same id returns for two different files Jul 24 20:55:27 so the wrong sound effect would be played, since I'm using the id as reference Jul 24 20:55:31 is there any way to avoid that? Jul 24 20:55:49 *the same id retruned Jul 24 20:56:18 p3sho: i would suspect instead that your analysis is incorrect and your code has a logic bug causing the same resource to be used instead. Jul 24 20:57:04 or you are unloading the old id, or something Jul 24 20:57:13 jasta, here's the relevant part: Jul 24 20:57:19 don't paste it. Jul 24 20:57:20 int assetIntID = soundPool.load(afd, 1); Jul 24 20:57:20 Jul 24 20:57:22 ok Jul 24 20:57:24 hahaha Jul 24 20:57:28 okay, stupid question.. I'm using a default button, which has those curvy corners, when I setbackgroundcolor it it fills the entire rectangle with w/e color. How can I get it back to original default state? Jul 24 20:57:31 well, then I just Log.d it Jul 24 20:57:40 if you want to paste your code, use a pastebin Jul 24 20:57:55 ^^ Jul 24 20:58:04 pastebin your code, attach a debugger. Jul 24 20:58:25 lov: how do I attach my debugger to pastebin? Jul 24 20:58:34 hehe Jul 24 20:58:37 iswydt. Jul 24 20:58:48 :) Jul 24 20:59:09 mantas322: the curvy corners are the default background Jul 24 20:59:11 mantas322: before you call setBackgroundColor do getBackground() Jul 24 20:59:25 hey Jakey Jul 24 20:59:26 :D Jul 24 20:59:41 http://pastebin.com/Jfr8w7kT Jul 24 20:59:58 im not happy with you, i tried and tried to contact you at I/O and me and justin just keep missing you Jul 24 21:00:05 so what would happen is that I would see in the logs "file1 loaded in 1", and then "file2 loaded in 1" Jul 24 21:00:15 JakeWharton: ^ Jul 24 21:01:03 mantas322: so save the background drawable and then re-apply it if you want to switch back Jul 24 21:01:19 hmmm Jul 24 21:01:29 yeah I/O was crazy Jul 24 21:01:38 missed a lot of things sadly Jul 24 21:02:02 yea, i text you a couple of times i was walking past Square Jul 24 21:02:08 :( Jul 24 21:02:20 next time im over, or if your over here, its beer time Jul 24 21:03:26 Ologn, any ideas? Jul 24 21:10:32 Ok, I got 99% of what I want, and only 1 error: http://pastebin.com/aTfNQHZy , with the error "The method setOnCompletionListener(MediaPlayer.OnCompletionListener) in the type MediaPlayer is not applicable for the arguments (new View.OnTouchListener(){})" ( line 30) Jul 24 21:10:33 sorry, line 34 on pastebin Jul 24 21:10:33 why isn't it appblicable, and what could I do to fix it? Jul 24 21:14:55 ThomQ: because MediaPlayer.OnCompletionListener and View.OnTouchListener are different classes? Jul 24 21:14:56 and by classes I mean interfaces, but the point stands. Jul 24 21:14:56 It shoudln't be in the ontouchlistener class? Jul 24 21:14:56 I'm a big n00b, only been at it for a week now, so bare with me :) Jul 24 21:15:16 you're trying to pass a View.OnTouchListener to something expecting a MediaPlayer.OnCompletionListener Jul 24 21:16:10 so I'd have to make changes in line 32, you mean? Jul 24 21:16:25 anyone knows what happens if you bindString 2 times in a row on an SQLiteStatement without clearing between? will it overwrite? ( don't want to bind every argument again in a nested loop ) Jul 24 21:16:30 line 34 Jul 24 21:16:41 In ActionBarSherlock (or in any action bar implementation, I guess) is there any way to prevent the tabs from collapsing up into the main action bar in landscape? To effectively force them to always exist on their own line? cc: JakeWharton Jul 24 21:19:31 No Jul 24 21:22:38 Chronax: no Jul 24 21:22:41 hey guys having this issue NAND: could not write file /tmp/android-jimisrvrox/emulator-q2bFty, File exists...even with show hidden nothing is in the folder...folder permissions are fine..if I delete the android folder first run says resource temporarily unavailable..any suggestions? Have already tried deleteing the emulator to no avail.. Jul 24 21:22:44 you've asked this question multiple times to multiple people Jul 24 21:22:59 fighting the platform on things like this will always yield bad results Jul 24 21:24:13 Le sigh. Jul 24 21:24:16 I know you're right. Jul 24 21:28:38 I'm running out of ideas why I would get the same resource id for different files using SoundPool.load. I'm not doing any unloading in between. The calls are made in different threads and I tried syncing them, but to no avail. Jul 24 21:37:31 setOnCompletionListener is giving me headaches.. This is my latest try: http://pastebin.com/7qEkj3vt.. Get errors starting from line 45, saying inCompletion cannot be resovled to a type Jul 24 21:38:34 you should consider reading a Java tutorial. You can't instantiate an instance of onCompletion because it's a method, not a type Jul 24 21:40:13 ThomQ: instantiate an anonymous OnCompletionListener instead Jul 24 21:40:20 well, I got it from a tutorial... Jul 24 21:42:25 Estragon: not sure what you mean. google isn't helping much either Jul 24 21:42:55 ThomQ: remplace onCompletion which is a method by OnCompletionListener which is an interface Jul 24 21:43:44 ThomQ: something like that http://pastebin.com/YXgZ9ggf Jul 24 21:46:10 yes, thanks Estragon.. Dumb of me.. it's working nicely now! :) Jul 24 21:48:26 Ologn, i'm continuing to experiment with different ways of setting the current view Jul 24 21:48:33 i'll post the errors as they arise Jul 24 21:49:30 Hi. Ever since I updated to the latest version of the ADT plugin for Eclipse, and the accompanying tools, keyboard support is off by default for new AVDs I create. I have to manually add it to the hardware list. How do I set the default to have keyboard support on? Jul 24 21:51:23 Ologn, http://pastie.org/4326549 Jul 24 21:51:52 this happens when i attempt to set the view like so: http://pastie.org/4326551 Jul 24 21:52:01 this is being invoked as a java plugin in unity Jul 24 21:53:34 if anyone has experience with making unity apps for android i'd love to pick your brains Jul 24 21:54:09 my main questions being about putting two views in an UnityPlayerActivity and then showing them on click Jul 24 22:01:56 has anyone identified the most ideal way of taking a video of your app on a device/ Jul 24 22:02:23 you could use an emulator and a screen capture software Jul 24 22:02:46 unfortunately I need it to be running on hardware Jul 24 22:06:42 well, if your device supports hdmi out, and you have something that can record from hdmi, that seems pretty optimal Jul 24 22:06:53 very last issue, before my first app is done.. Im making a soundboard, and I'd like it to be so that only 1 sound can be played / button can be pressed at a time. Im doing this through the boolean isplaying wich is checked before going into the subclasses.. https://gist.github.com/3172988 .. Only problem is, it isn't working.. Both buttons can be pressed and play sounds through eachother Jul 24 22:07:29 free 5star ratings for the one kind enough to help a n00b out ;) Jul 24 22:13:00 ThomQ: Could you disable all of the other buttons while something is playing? Then make a stop button that's enabled when something is playing. Jul 24 22:13:13 That way you wouldn't have to worry about people pressing the other buttons Jul 24 22:13:51 Hmmm, have to think about that Jul 24 22:14:12 extra button is probably not possible; the whole screen is already filled Jul 24 22:14:39 yah, just make a lock Jul 24 22:14:50 and test the lock w/ asynctask or whatnot Jul 24 22:15:13 yup Jul 24 22:15:27 a lock for the whole screen you mean? Jul 24 22:15:35 a button lock Jul 24 22:15:44 so each time a button click is detected it should query the lock Jul 24 22:16:21 googling button lock Jul 24 22:16:36 although that's basicly a bit what I've done already with the booleans.. At least I tried to Jul 24 22:17:05 if boolen = false, go play sound, set boolean to true, and at the end set it to false again Jul 24 22:17:17 What do you want to happen if a user clicks a button while the sound is playing? Jul 24 22:17:24 Nothing :) Jul 24 22:17:56 so you wrap your sound-playing code in an if(!playing) condition Jul 24 22:18:10 but it plays anyway Jul 24 22:18:27 yeah exactly: https://gist.github.com/3172988 Jul 24 22:18:34 maybe your boolean value is being set to true and prematurely set to false Jul 24 22:18:47 or whatever you have it Jul 24 22:18:48 i wrapped the whole button in the if (isplaying==false){ Jul 24 22:18:52 that's most likely the issue Jul 24 22:19:01 you need to wait for play finished to set isplaying to false Jul 24 22:19:38 yes, its set to false in the SetOnCompletionListener, so when the sound is stopped Jul 24 22:20:41 It sounds like SetOnCompletionListener is being called too early for you Jul 24 22:21:11 Ahh, no, I know that's correct. The button stays pressed when pplaying the sound, and stops being pressed when the clip is done Jul 24 22:21:21 What if you set a breakpoint on the area where isplaying is set to false? Jul 24 22:21:22 I set the boolean to false again right after that Jul 24 22:21:37 how would I send a boolean to the console? Jul 24 22:21:42 ok, im outa here Jul 24 22:21:44 so I could check in realtime Jul 24 22:22:20 You could do a bunch of Log.i or whatever Jul 24 22:22:51 The first thind I'd check is how soon isplaying is set to false. To me, that seems like the most likely problem. Jul 24 22:23:12 log.i(booleansname); should print it to the console? Jul 24 22:23:34 Log.i(Tag, Message) Jul 24 22:25:09 so for Message the Booleans name, and for Tag? Jul 24 22:27:30 tag can be anything Jul 24 22:28:32 haven't dealt with tags yet, only my first week with java :) So just a 1 or something would do? Jul 24 22:28:39 it's a string Jul 24 22:28:54 the point is to set it to something you can identify Jul 24 22:29:16 it's not uncommon to set a tag at the top of each class so you can see all of the messages from that class Jul 24 22:30:07 and then reference that.. so thats why Log.i("setlistener",isplaying); isnt working Jul 24 22:30:18 isplaying is the boolean's name Jul 24 22:30:25 okay, setting up the tag Jul 24 22:33:27 hmm setTag("setlistener"); & Log.i(Tag,isplaying); isn't working Jul 24 22:33:50 im going outside for a smoke. I will handle this problem in 5 minutes :P Jul 24 22:34:38 tag is fine Jul 24 22:34:43 isplaying.ToString() Jul 24 22:44:19 okay back Jul 24 22:44:36 Log.i(tag,isplaying.ToString()); isn't it either Jul 24 22:44:48 cant invoke ToString on a boolean Jul 24 22:45:16 i cant seem to get my custom dialog to show all of my text Jul 24 22:45:37 it happens only on gingerbread and works on 2.2, and 3.0+ Jul 24 22:45:46 I'm too used to the simple print(Time + isplaying); Jul 24 22:47:16 http://stackoverflow.com/questions/11639805/text-cuts-off-in-dialog-after-one-line-with-gingerbread-only Jul 24 22:48:54 toph123: wild guess, try changing your relative layout to fill_parent Jul 24 22:49:26 okay i'll try that Jul 24 22:49:39 Any idea on a standard hourly rate for Android programming? Jul 24 22:49:46 guys what if i delete proguard.cfg file? Jul 24 22:50:14 is it something i need to have? Jul 24 22:52:03 MetalGuru: I doubt you need it, it's used for proguard obsfucation, just move it somewhere else and see if the complier moans Jul 24 22:52:27 ok, because its bitching all the time about some errors in it... Jul 24 22:52:40 i deleted it, everything seems to work, just wanted to be sure about it Jul 24 22:54:10 changing to fill parent didn't work Jul 24 22:54:15 it still does the same thing Jul 24 22:57:41 it is still only giving me that first line of text, and that's it Jul 24 22:58:51 toph123: instead of
, try with \n Jul 24 22:59:09 I know you convert it to html, but might be worth a shot Jul 24 22:59:21 yeah, i tried with \n as well and it did the same thing :( Jul 24 23:01:12 the weirdest thing is it works on my 2.2, 4.0, and 4.1 avd's, but not my 2.3.3 avd Jul 24 23:01:20 this is strange to me.. : https://gist.github.com/3172988 .. I got 2 buttons playing sounds on Ontouch. Before the ontouchlisteneres, I check a boolean (isplaying), to see if anything else is playing; I don't want 2 sounds playing through each other.. Jul 24 23:02:07 Obviously it isn;t working. I set the boolean to true when playing a sound, and I don't even return it to false, just to check. The log on Isplaying is coming back True, but still it passes the if (!isplaying){ check.. Jul 24 23:02:16 What am I doing wrong here? Jul 24 23:05:15 ThomQ: The value just before the check is false Jul 24 23:07:15 is it line 18? private boolean isplaying = false; Jul 24 23:12:45 if (!isplaying) is always going to return true Jul 24 23:12:53 you're calling it in onCreate Jul 24 23:13:02 yeah it is line 18 that keeps setting the boolean back to false Jul 24 23:13:03 The check only happens once Jul 24 23:13:38 You should look at AsyncTask Jul 24 23:14:01 thing is, If i move the private boolean isplaying = false; to onCreate, where it probably should be, because it just has to be set to false once, at start, I get a whole other set of problems Jul 24 23:14:29 the check for isplaying shouldn't be done there Jul 24 23:14:53 I can't do it in the listener though Jul 24 23:15:15 You can do it in onTouch Jul 24 23:15:59 hmm, then I have to rename the onTouch event? Jul 24 23:16:39 here's what happens if I set boolean isplaying = false on line 23, inside onCreate Jul 24 23:16:56 I have to drop public, and then I have to call it final (according to eclipse) Jul 24 23:17:30 but then, if i want to change the boolean in onTouch, I get "The final local variable isplaying cannot be assigned, since it is defined in an enclosing type" Jul 24 23:17:32 Why do you need it to be public? Jul 24 23:18:04 yeah, I don't anymore, but I had to when it was on line 18 Jul 24 23:18:27 I've been following a lot of Eclpise's suggestions Jul 24 23:20:59 here's the updated code: https://gist.github.com/3172988 Jul 24 23:21:57 the boolean has to be set to false on create obviously, so it has to be in onCreate Jul 24 23:25:29 ThomQ: The conditional doesn't make sense there Jul 24 23:26:04 You should be wrapping mp1.start() and mp2.start() in the if(!isplaying) conditional Jul 24 23:26:16 because it's all happening onCreate, so im only checking at start wheter or not the boolean is false, right? Jul 24 23:26:17 otherwise it only checks once when onCreate is called Jul 24 23:26:26 You need it to happen on every touch Jul 24 23:26:36 yeah exactly, cool, I see it now.. Long day! :) Jul 24 23:28:47 Having said that, I think it would be better to just disable the buttons while something is playing Jul 24 23:29:10 update: https://gist.github.com/3172988 Jul 24 23:29:20 Ahh, how would I do that? Jul 24 23:29:28 Im almost there though Jul 24 23:30:02 only error now is "The final local variable isplaying cannot be assigned, since it is defined in an enclosing type" for line 41, when I try to set the boolean to true Jul 24 23:31:04 And if I don't set it to a final, I get: Cannot refer to a non-final variable isplaying inside an inner class defined in a different method Jul 24 23:31:39 Define it under your definition for TAG Jul 24 23:31:45 as private final boolean Jul 24 23:33:32 yes, its working :) Jul 24 23:33:34 Thanks man!! Jul 24 23:34:21 so, I have yet a lot to learn about java.. But, at least my first little app is done :) Jul 24 23:39:37 cool Jul 24 23:39:39 glad to help Jul 24 23:42:33 hey guys i am trying to set the callback for a surface view outside of the inner class Runnable; http://pastebin.com/5R4jxghR Jul 24 23:42:39 i forgot the syntax or what i need to set as final Jul 24 23:42:44 any idea what i am doing wrong? Jul 24 23:46:35 using the fragmentstatepageradapter and a Fragement where the fragment relies on an object. whats the best way to pass that object to the fragment? Should all objects for each fragement be stored on the activity and accessed through OnAttach? Jul 24 23:52:37 what's the write way to set an ImageView to fit a preview image say 100dp Jul 24 23:52:58 and auto-scale it, kinda like in html without specifying height and let it autosize Jul 24 23:53:08 joikus: scaleType Jul 24 23:53:23 ya I'm trying scaleType, but requires to specify a layout_height Jul 24 23:53:29 joikus: or wrap_content Jul 24 23:54:05 alright... Jul 24 23:54:31 aeos: What's wrong with storing the objects in the adapter? Is it an array or something like it? Jul 24 23:55:02 is there any global communities of games / app / mobile developers? Jul 24 23:55:06 Jul 24 23:55:19 this nicely displays my image, but completely pushed the other elements below it way down Jul 24 23:56:32 I am using a FragmentStatePagerAdapter which holds an array of objects, and then pass in the appropriate object when getItem is called, but when I rotate the phone it crashes. Jul 24 23:57:06 all the examples I have found only show how to provide a position. not the actual data itself Jul 25 00:00:07 anyone have idea why this is happening? ---> http://pastebin.com/Xeea3MN1 Jul 25 00:00:16 ok I found a way, I just specify some max layhout_height I wanted Jul 25 00:00:27 I have an activity that I use as splash screen, which is the first activity Jul 25 00:00:35 and thats where i am getting this error Jul 25 00:02:02 jahid: a) post your layout and b) clean your project Jul 25 00:02:48 Leeds, the layout is simple, here it is http://pastebin.com/p3s1er50 Jul 25 00:04:02 Leeds, cleaned the project, and it is still there Jul 25 00:05:40 trying to find out why my first TextView is being autofocused and the keyboard opens up Jul 25 00:05:45 when the activity gets created Jul 25 00:05:49 I don't want that Jul 25 00:05:50 or do I Jul 25 00:19:51 hi, i'm trying to implement a contentprovider, what is the base_path part of the uri supposed to be, Jul 25 00:22:57 hmm Jul 25 00:22:59 iv.setLayoutParams(new LinearLayout.LayoutParams(100dp,100dp)); Jul 25 00:23:11 how can I accomplish this, layout_width and layout_height in dp Jul 25 00:23:14 programmatically Jul 25 00:25:58 ggggrrrrrr layout..... Jul 25 00:31:01 joikus: http://stackoverflow.com/questions/2965662/how-do-you-setlayoutparams-for-an-imageview Jul 25 00:31:42 I have all my buttons to layoutheight 80dp and yet, they are different hieghts Jul 25 00:31:45 what the F Jul 25 00:34:29 Chrishas, but how do I specify in dip? Jul 25 00:37:04 int density = getResources().getDisplayMetrics().density; Jul 25 00:37:17 int dp = px/density; Jul 25 00:37:18 got it Jul 25 00:42:49 with android:layout, I know I can align & centerVertical / Horizontal, but how would I center something in between 2 other objects? Jul 25 01:10:06 ThomQ those only work with a RelativeLayout Jul 25 01:16:59 sleepybear: yeah exactly.. I've chosen to go with a tablelayout Jul 25 01:20:31 How could I set a tablerowheight to a certain percentage of the screen? Jul 25 01:24:37 Hey can anyone help me with a MediaPlayer problem? Jul 25 01:25:43 I am streaming, everything works ok, but if the device moves out of Wi-Fi reception and to the cell network, MediaPlayer stops and can't pick up again. Jul 25 01:26:09 Ideally I'd like it to be a seamless transition if there's audio in the buffer. Any ideas? Jul 25 01:28:49 I have a fragment activity with 3 fragments and another login activity. the login activity should only open if the user is not logged in already. in that case I dont want the fragment-activity to open yet since ive got a lot of stuff on create view that require the cookies created in the login part Jul 25 01:29:07 also I dont want to have the login activity open when its not needed Jul 25 01:30:10 how should I deal with this? atm im having the fragment activity as the main activity and have the login activity open on top of the main activity when neccessary Jul 25 01:30:57 sounds like you need a "master activity" that spawns the others as necessary. Jul 25 01:31:23 where you check if you're logged in Jul 25 01:31:59 okay, just versioned my app Jul 25 01:32:17 that master activity would just stay open in the background right Jul 25 01:32:34 and the actual activity with all the fragments running on top of that Jul 25 01:32:46 now the waiting game begins http://www.youtube.com/watch?v=ItLzdZV004s Jul 25 01:32:50 I guess, think of it like init Jul 25 01:33:37 if you're checking for network connectivity etc. on startup (while you show a splash - which you shouldn't but that's another story) you can check for login etc. Jul 25 01:34:06 If you require network connectivity for your app you don't really want to initialize anything if there's no network connection Jul 25 01:35:03 hm ok i guess I'll go for that. What's the deal with a splash screen Jul 25 01:35:57 Officially, they're not appropriate for Android, but if your app is going to hang on startup while doing initial setup, you're going to want something better than a white screen so go for it Jul 25 01:36:46 hey guys, I never developed mobile before, I downloaded the android-sdk-linux, what else do I need? what java version? Jul 25 01:36:55 oh hehe. a lot of applications have them, and actually I quite dislike some applications for not having one while taking a little while to start up, like camera zoom fx Jul 25 01:37:28 yeah exactly Jul 25 01:37:36 yakko what OS do you run? Jul 25 01:37:43 chuckk: Ubuntu 12 Jul 25 01:37:56 you have eclipse installed? Jul 25 01:38:11 can i make the init activity silently die after starting the "real main activity" Jul 25 01:38:28 chuckk: I was trying the titanium from appcelerator, but they just suck, I just formated my computer Jul 25 01:39:14 eSatsu: I don't think you should worry about it. It's a good place to start analytics etc as well, and to wrap everything for crash reporting Jul 25 01:39:16 chuckk: all I have is the android sdk and java jdk 1.6_33, just tell me which versions of stuff I should download Jul 25 01:39:40 download eclipse from eclipse.org Jul 25 01:39:50 it's not the best, but there are the most resources to help you Jul 25 01:40:02 okay Jul 25 01:40:04 chuckk: what is the best? Jul 25 01:40:26 IDEA is popular but it's personal preference Jul 25 01:40:40 Eclipse can be unstable once you put extensions into it Jul 25 01:41:00 it's a bit like Firefox in that regard, add-ons can take down the main program Jul 25 01:41:27 I would recommend eclipse anyway, I haven't tried Juno yet but I'm sure everything will be fine Jul 25 01:41:38 chuckk: just tell me what is a good one that you have used and know it works Jul 25 01:41:40 I'm sure there's numbered steps on android Jul 25 01:41:59 *android.com Jul 25 01:42:06 eclipse probably has the most tutorials, its fine as long as youre not overbloating it with extensions Jul 25 01:42:42 I use eclipse with the android SDK, the extensions are not important Jul 25 01:42:52 I'll tell you what: let me google that for you Jul 25 01:43:02 chuckk: lol Jul 25 01:43:22 eSatsu: I developed in Java for a while, so I don't think I'll get lost :) Jul 25 01:43:35 https://developer.android.com/sdk/installing/index.html Jul 25 01:43:35 anyways guys, should I use jdk 1.7 ? Jul 25 01:43:55 if youre used to eclipse before then why not use it for android as well Jul 25 01:44:01 I haven't seen a performance benefit and it's not what Android uses so I wouldn't bother Jul 25 01:45:41 I don't understand why my first get's focused and displays keyboard when activity gets created Jul 25 01:46:44 do you have requestFocus in your layout? Is it the only widget in the layout? Jul 25 01:46:53 chuckk: idea by jetbrains? Jul 25 01:47:24 honestly, if you have used eclipse before, and are just beginning Android development, leave IDEA for now. Jul 25 01:47:44 no requestFocus anywhere, no I have a ScrollView->LinearLayout->( TextView, EditText, View, TextView, EditText.. ) Jul 25 01:48:05 try putting android:windowSoftInputMode="stateUnchanged" in your manifest Jul 25 01:49:25 yep that worked Jul 25 01:49:29 :o) Jul 25 01:49:32 but is this frowned upon Jul 25 01:49:48 no, I prefer it to the alternatives Jul 25 01:50:17 ya I am building an Activity "add new item" with title, description, images, and a submit button Jul 25 01:50:30 dont want it to use half my screen with a keyboard onCreate Jul 25 01:50:34 ok thanks chuckk Jul 25 01:50:45 chuckk eSatsu: should I best just download a basic eclipse and add the sdk? Jul 25 01:50:59 yeah I would Jul 25 01:51:49 chuckk: which flavour would you pick? Jul 25 01:52:27 I don't do Java EE and I certainly don't use Eclipse for any other languages so whatever the basic is. Jul 25 01:52:37 What does it say on the page I linked you to? Jul 25 02:00:50 chuckk: where does it say that generally you shouldnt use splashes on android Jul 25 02:01:14 I must install a library from google play on the emulator, but none of my devices are supported so i cannot get the apk. What can i do? It doesnt seem like you can get Play on the emulator? Jul 25 02:01:30 I use splash on my hp tab. I HATE cm9 animation. Jul 25 02:01:55 well i dont think im gonna do anything on the splash screen thatd take any time so showing a splash for a split second would look dumb Jul 25 02:02:17 this is a good blog post about it http://android.cyrilmottier.com/?p=632 Jul 25 02:02:29 Its OpenCV Manager, i dont believe its distributed anywhere but Play Jul 25 02:02:42 OH APP splash screen Jul 25 02:02:48 that sucks hardarse Jul 25 02:02:50 mgj: download it onto your device and pull it Jul 25 02:02:58 my device is not supported Jul 25 02:04:07 do you know why it's not supported? e.g. dpi? Jul 25 02:04:48 (Sorry I keep getting disconnected) I have resolution problems http://imgur.com/a/eLFJx Jul 25 02:05:28 @eSatsu, if you have to check for network connectivity or make a network request (analytics, ads, check login) bear in mind the very high latency of 3G, a splash screen is better than a white screen I think Jul 25 02:05:57 My designer is saying in the first screenshot, the edges of the images are too blurry. The second image, I played with the 9patch and it came out like that Jul 25 02:06:22 chuckk, not API lvl 11 Jul 25 02:06:37 Being new, I'm not sure where to start debugging; the first thing we did is put an "L/M/H" on the textbox and it turns out every phone we tried was pulling the MDPI set Jul 25 02:07:08 I'm wondering if it's a code problem or a graphics problem, this is all that's in the xml (for the 9patch) http://hastebin.com/tepohapana.xml Jul 25 02:08:07 have you got a "drawable" res folder Jul 25 02:08:17 i.e. not dpi specific Jul 25 02:08:37 Not a base one Jul 25 02:09:02 or a nondpi one. Should I? Jul 25 02:09:13 no, I'm not suggesting that Jul 25 02:11:10 @mgj install the play store on an emulator >= API 11 Jul 25 02:11:40 how? Jul 25 02:11:46 using the cyanogen apk? Jul 25 02:12:06 pull the apk, rename it, push it, correct permissions Jul 25 02:12:08 chuckk: ok makes sense now. I still need to have the "splash" activity Jul 25 02:12:30 but it should be a very swift one and ill add no images there Jul 25 02:12:43 ahh from my device Jul 25 02:12:53 hmm but device is http://forum.xda-developers.com/showpost.php?p=28207664&postcount=243 Jul 25 02:14:20 @3sb maybe scaling? Jul 25 02:14:48 thank you Jul 25 02:18:38 @mgj no problem, you may also need GoogleLoginService.apk & GoogleServicesFramework as well depending on your configuration Jul 25 02:19:12 Is there a reason why an hdpi phone would be pulling from drawable-mdpi ? Jul 25 02:19:24 if scaling was enabled? Jul 25 02:20:16 i.e. anyDensity Jul 25 02:20:45 I don't think I've set that anywhere Jul 25 02:21:43 ooh I found a SO thread about something regarding min sdk version Jul 25 02:23:07 lol I wish I could find a SO thread about MediaPlayer dropping when the network changes Jul 25 02:23:34 hm, chuckk: do I need anything besides a simple check on whether some data exists in the sharedpref and launching the next activity as an intent based on that Jul 25 02:23:49 and put this activity as the launcher activity in the manifest Jul 25 02:24:07 it depends on your application but not really Jul 25 02:24:19 I find it helpful to draw up flowcharts of startup Jul 25 02:25:01 if you think contractually, just codify your preconditions in the launcher activity Jul 25 02:25:28 chuckk make one thn! Jul 25 02:26:22 lol I probably should but I normally end up fixing things with the NDK before anyone replies "known bug" Jul 25 02:40:57 Hi guys Jul 25 02:41:10 anyone wanna try out my new and improved doctor quiz game? Jul 25 02:41:30 #tumbleweed Jul 25 02:42:06 * mantas322 :< Jul 25 02:42:20 hey dantheman Jul 25 02:42:34 you there? Jul 25 02:42:36 dantheman Jul 25 02:45:02 Sorry mantas, no hard feelings, I'm the only one that answers so I thought it would be rude not to Jul 25 02:45:34 its okay. #sniffsniff Jul 25 02:48:30 go on then Jul 25 02:48:34 what's this game Jul 25 02:49:20 https://play.google.com/store/apps/details?id=MantasCode.RadQuiz Jul 25 02:49:22 :) Jul 25 02:50:19 installing, but I'll tell you straight away that the screenshots don't inspire confidence Jul 25 02:50:37 its a randomized multiple choice quiz game, based off the relationships of a medical imaging ontology Jul 25 02:50:54 XD yeah, its not the prettiest thing Jul 25 02:51:11 but maybe some medical students could use it to learn Anatomy better Jul 25 02:51:12 LOL, but no permissions is good Jul 25 02:51:36 I see some of the other medical quiz games out there, and im not impressed Jul 25 02:51:59 it's always a choice of four answers right? Jul 25 02:52:06 yes Jul 25 02:52:12 but randomized Jul 25 02:52:20 you should put a ninepatch in for the button background, the areas aren't delineated Jul 25 02:52:25 so you probably will never ever see the same answer set from the same question in your lifetime Jul 25 02:52:35 I might Jul 25 02:52:48 also when the music plays the counter stops, start it with an asynctask Jul 25 02:53:11 maybe not Jul 25 02:53:13 met a girl who claimed to be a neuroscience major at harvard the other night Jul 25 02:53:23 you can tell I'm not a radiologist! Jul 25 02:53:28 didnt even know the diffference between an amygdala and the dentate gyrus Jul 25 02:53:29 LOL ! Jul 25 02:53:44 lol dentate gyrus was just on screen Jul 25 02:53:48 yeah I really should have used async tasks Jul 25 02:53:50 and she wasn't impressed by my large hippocampus Jul 25 02:54:18 also the soft menu button is present on my ICS device but there is no menu content Jul 25 02:54:48 not sure what that is Jul 25 02:54:50 also put some padding/margin on the question Jul 25 02:55:02 but I will probably add another update soon Jul 25 02:55:34 giving the user an option of a bunch of check boxes, allowing certain relationship sets to be excluded Jul 25 02:55:36 the app is not obfuscated Jul 25 02:55:43 ? Jul 25 02:55:50 why should it be? Jul 25 02:56:17 I can fix your padding, add a 9-patch image for the buttons and have a much nicer looking app Jul 25 02:56:45 then I can add my ad hosting and upload it to the play store and take advantage of all the work you did building your database of questions Jul 25 02:56:49 Hail Chairman Mao! Jul 25 02:57:11 :D Jul 25 02:57:16 people can do that easily? Jul 25 02:57:23 Don't think it doesn't happen ALL THE TIME! Jul 25 02:57:51 I've had your app for under 10 mins and I could upload it with a different icon and my ad hosting in another 10 Jul 25 02:57:54 why shouldn't I/ Jul 25 02:58:11 because it would be illegal? Jul 25 02:58:19 in which territory? Jul 25 02:58:21 disingenuous Jul 25 02:58:27 "play store" territory Jul 25 02:58:38 i have connections in google play Jul 25 02:58:41 and i like mantas322 Jul 25 02:58:46 awe. Jul 25 02:59:27 brilliant, lucky mantas, could you provide the same service for the rest of us hardworking developers getting ripped off by the Chinese as soon as we hit 1000 installs, oh bovine avenger Jul 25 02:59:33 well then, I'll have to start obfuscating my apps from now on, and not post the source code on my blogs. **** ENDING LOGGING AT Wed Jul 25 02:59:58 2012