**** BEGIN LOGGING AT Sat Aug 11 02:59:58 2012 Aug 11 03:27:42 i got my first smartphone recently and I'm looking forward to deving on it, my version is 4.0.4 on the phone but the tutorial recommends installing the 4.1 sdk, will my program run on the phone if I select the latest android sdk to build against? Aug 11 03:42:57 i guess using 4.1 works Aug 11 03:53:02 hi, anybody has the experience with install a cocos2d(-x) game to android? Aug 11 03:55:26 using ndk Aug 11 04:05:48 are layout params consistent? Aug 11 04:06:05 as in, if i remove a view, should it shrink automatically or should i set new layout params? Aug 11 04:06:21 i'm removing items from a table row but it seems to be keeping the same size Aug 11 04:06:36 leaving blank space Aug 11 04:23:37 hello Aug 11 04:25:41 I'm getting a weird issue on some devices if I create a RandomAccessFile object, I eventually get a SIGSEGV in my app even if I do nothing but close the object Aug 11 04:27:14 hmm, nice concept http://mapsaurus.com/ Aug 11 04:27:22 if I don't use a RandomAccessFile at all, I don't experience any SIGSEGV anymore Aug 11 04:29:00 ohoh, its ron_frown ! Aug 11 04:29:05 ? Aug 11 04:29:18 heh, they are already OTA'ing Curiosity's systems Aug 11 04:29:59 apparently its easier to OTA a rover millions of miles away than many android phones, amazing ! Aug 11 04:30:14 ron_frown: yes, you ;) Aug 11 04:30:36 its easy to release ota's to android hardware, just hardware for major manufacturing companies to maintain their roms with new hardware always coming out Aug 11 04:30:47 make otaupdate Aug 11 04:30:50 done Aug 11 04:31:03 oh yeah, there is a new website / service for special roms now Aug 11 04:31:11 i only barely read about it Aug 11 04:31:11 yeah I dont get that Aug 11 04:31:46 does anybody here use eclipse on a mac? Aug 11 04:31:49 all that REALLY matters is you get the proper update.zip in the sdcard and you write the approprate data to the cache partition Aug 11 04:31:56 ultra- i do Aug 11 04:31:58 http://developers.slashdot.org/story/12/08/09/2251253/custom-android-rom-developers-get-ota-update-capabilities-like-carriers Aug 11 04:32:05 ultra-: me too Aug 11 04:32:05 when i try to scroll up from logcat, it constantly resets back to the bottom and it's driving me insane Aug 11 04:32:14 oh, yeah. heh Aug 11 04:32:18 theres a down arrow with a line under it Aug 11 04:32:22 hit it to pause logcat buffer Aug 11 04:32:22 OR Aug 11 04:32:24 i always use logcat in a console (xterm) window Aug 11 04:32:28 adb logcat at command line Aug 11 04:33:24 ok that seemed to do it Aug 11 04:33:28 still figuring all this out :) Aug 11 04:36:18 so, sorry to ask, but do you guys own android phones and not iphone? Aug 11 04:38:10 i have an android phone and an ipod touch, soon some wp8 device Aug 11 04:38:19 wp8 Aug 11 04:38:29 i coded for .net compact, i think it was winmobile 6 Aug 11 04:38:35 in c#… i actually enjoyed it Aug 11 04:39:03 wp8 is WinRT w/o JS i guess. its getting close to release and still few details Aug 11 04:39:15 its gonna bomb Aug 11 04:39:17 i like the .net 2d drawing library… i wrote most of my controls from scratch Aug 11 04:39:36 ron_frown: i don't think so Aug 11 04:39:36 yeah i don't think windows phone is going anywhere Aug 11 04:39:45 i never see anybody who owns one Aug 11 04:39:53 haven't checked the market share Aug 11 04:39:59 still terrible Aug 11 04:40:17 i think they just got in too late Aug 11 04:40:31 I am the biggest supporter of ms's .net platform Aug 11 04:40:34 i have a windows mobile 6 phone for work, because of a certain program we need to run… it's so awful Aug 11 04:41:01 ron_frown: i like coding with it but i don't have a need anymore… just java, c, and python Aug 11 04:41:20 but winrt is already getting a ton of negative publicity and its not even out Aug 11 04:41:25 its like vista all over again Aug 11 04:41:29 i don't even know what that is Aug 11 04:41:35 doesnt matter what they do, or how they do it Aug 11 04:41:37 they will fuck i tup Aug 11 04:41:39 vista where you can't even release an IP Aug 11 04:41:49 i hate it when this deuchebag basically takes my app description and lifts it for his own app, which is similar Aug 11 04:42:18 i've been hesitant to describe any app i'm working on Aug 11 04:42:24 if hardware vendors have to pay for licensing the os, might as well just go with android Aug 11 04:42:38 even tho what i'm doing is a very specific use and requires python server code on mac/pc Aug 11 04:43:23 although i've only been coding with android for < 1 week Aug 11 04:43:54 man, if i was getting into mobile now, i would wait for a few months and just read basic mobile UX stuff Aug 11 04:44:25 mobile is what is important, specific techs and platforms are not Aug 11 04:45:05 designing a good mobile ux is very different than designing a static-context app, like a website, desktop app, etc Aug 11 04:46:33 and why i disagree with ron_frown , is that part of mobile UX is now multi-device experience Aug 11 04:46:52 and i think MS is in a great spot to leverage this with their new platform Aug 11 04:46:59 and ecosystem Aug 11 04:47:17 just like apple is. android, i fear will remain a consumer plaything with a much smaller ecosystem Aug 11 04:47:17 except honestly most platfoms ux doesnt map 1:1 anyway Aug 11 04:49:27 disagreement is weak, fight to death for honor Aug 11 04:50:37 it's going to be hard for MS to do anything with such a weak UI and weak platform. at least when Android wasn't number 1 it was clear the platform was fundamentally superior to iOS and had the potential to be better. Aug 11 04:50:45 sounds to me like g00s is jsut a bit more of an optomist than myself Aug 11 04:51:10 ron_frown: i dunno, but the next 6 mos will be exciting :) Aug 11 04:51:19 I think once jellybean was released Aug 11 04:51:22 android cleaned house Aug 11 04:51:54 as soon as it lands on more handsets, I think its gonna be hard for anyone to catch up Aug 11 04:52:11 i think where android will shine, is when oems use or repurpose it for something else - like this camera i am reading, will be using android instead of whateverthefuck they used before Aug 11 04:52:18 ahha Aug 11 04:52:20 android goign to be sued out of existence by steve jobs biographer Aug 11 04:52:22 you should see what I did with andorid Aug 11 04:52:29 and i can write a special app for my camera, that adds a feature it doesn't normally have, that is awesome Aug 11 04:53:21 java being a POS could be an issue at somepoint Aug 11 04:53:35 far, android doesnt really run a java vm Aug 11 04:53:42 Hello. Im a "total" Android noob. Any suggestion from where to start about compiling from source for Android (linux stuff)? Also I got a impression thats possible to have a remote prompt over ADB driver, is this correct? Any clue ? Aug 11 04:53:42 dalvik whatever Aug 11 04:53:45 all incarnations of java suck Aug 11 04:53:47 it is different Aug 11 04:53:50 for reasons i dont fully understand Aug 11 04:53:58 I cant find rsync on busybox :( Aug 11 04:54:05 well it's clear you don't even know what Java is Aug 11 04:54:07 so maybe that's it Aug 11 04:54:22 java actually has a lot of saving graces... the hotspot stuff makes java excel at server stuff Aug 11 04:54:28 lots of people write bad java Aug 11 04:54:31 lol Aug 11 04:54:43 I dont like java because c# owns java's nuts Aug 11 04:54:58 C# is awesome but I loathe .net Aug 11 04:55:04 i'd love C# compiling to the JVM :) Aug 11 04:55:09 yeah they managed to not screw up c# Aug 11 04:55:15 Its a world of pros & cons. Its kinda pointless comparing, in a practical sense. Aug 11 04:55:16 DanDare: look at the android ndk if I understand correctly what you are trying to do Aug 11 04:55:17 other that via distribution limitation Aug 11 04:55:26 meh theres a lot of shit thats bad about java, but not usually the stuff automatically bitch about with very little knowlege Aug 11 04:55:29 mr6, alright. Thanks, will take a look. Aug 11 04:55:56 its not slow by nature, the UI doesnt have to suck by nature Aug 11 04:56:17 so I have a android:windowBackground style set, and relevant drawables in drawable-land-xhdpi, drawable-xhdpi etc. This works okay when the app is first started - but on rotation it doesn't go and get the -land one (or the other way around if it was started in landscape). How can I get around this? Aug 11 04:56:37 stop handling configuration changes? Aug 11 04:56:38 DanDare: it is the native toolchain for Android so you can, for instance, port existing C/C++ code to the mostly ARM ABIs Aug 11 04:56:43 I'm not Aug 11 04:56:44 and actually the .net clr is bitchin Aug 11 04:56:50 DONT LIE TO BE WABZ Aug 11 04:56:50 mono is bitchin as well Aug 11 04:57:00 me Aug 11 04:57:08 i'm out Aug 11 04:57:30 :( Aug 11 04:57:31 mr6, cool. Sounds complex but well, gonna check about it Aug 11 04:58:00 Hi, was wondering if this is indeed the 'right' way to check if a device has a camera (facing away from the screen) --> http://www.mkyong.com/android/android-how-to-check-if-device-has-camera/ Aug 11 04:58:04 I mean, even if your code is OK, the environment in quite different, and I dont know how much :p Aug 11 04:58:10 *much its different Aug 11 04:59:10 hmm, i just want rsync Aug 11 05:00:13 Well, I think I can get rsync somewhere out of busybox Aug 11 05:01:34 hmm, I fixed it by putting the drawable xml in -land as well (even though it's exactly the same) Aug 11 05:01:40 seems like a bug Aug 11 05:22:20 Hi, I'm trying to create a function called IsCameraSupported in a class called NativeHost that will basically check if the device has a camera (facing away from the device). I'm getting tripped up on initializing the context and was wondering if anyone could help me. This is what I have so far --> http://pastebin.com/UTZgLUk0 . Thank you very much. Aug 11 05:35:24 aLearner is NativeHost an activity? How is it getting the context? Aug 11 05:40:50 Galaktik: Thank you. It doesn't look like NativeHost has an activity. Aug 11 05:41:23 Galaktik: It Aug 11 05:41:52 yea Aug 11 05:41:57 Galaktik: Oops - sorry. It's just a class by itself. That's why this is tripping me up. How do I get the context if there's no activity? Aug 11 05:41:58 make your class extend Activity Aug 11 05:42:10 or try getApplicationContext() Aug 11 05:42:24 maybe try that first . Aug 11 05:42:45 devslash: Which one? try getApplicationContext()? Aug 11 05:42:50 yes Aug 11 05:43:02 DanDare: yeah, you can probably find an arm-rsync read to go, but since this is android-dev i was compelled to give the dev answer :> Aug 11 05:43:04 are you getting a runtime error at the momeny Aug 11 05:43:07 moment Aug 11 05:43:21 devslash: Thank you. So, something like this? Context context = getApplicationContext(); Aug 11 05:43:30 yea Aug 11 05:43:52 that DOES return a context although your class doesn't extend activity so hopefully it will still work Aug 11 05:44:17 devslash: Not run the code yet - Eclipse seems to be complaining (cannot convert from NativeHost to Context) Aug 11 05:44:30 which line ? Aug 11 05:44:58 devslash: Line # 6 --> http://pastebin.com/UTZgLUk0 Aug 11 05:45:37 change that to Context context = getApplicationContext(); Aug 11 05:46:28 devslash: Thank you very much. Let me try that. :-) Aug 11 05:46:41 ok Aug 11 05:47:31 no problem Aug 11 05:47:40 I'm glad to be the one helping this time Aug 11 05:47:45 devslash: how can you call Context#getApplicationContext() without a reference to a context? Aug 11 05:47:47 usually I'm in here asking all the questions Aug 11 05:48:06 devslash: Now Eclipse says ---> "The method getApplicationContext() is undefined for the class NativeHost" Aug 11 05:48:11 ahh Aug 11 05:48:12 ok Aug 11 05:48:20 you need to have your class extend Activity Aug 11 05:48:30 devslash: That's cool. Thanks for trying to help me out. Aug 11 05:48:31 aLearner: you need to pass a context to your NativeHost constructor Aug 11 05:48:37 devslash: no Aug 11 05:48:45 you don't Aug 11 05:49:06 ok Aug 11 05:49:12 if you already have a main Activity Aug 11 05:49:26 do something like this Aug 11 05:49:37 So something like this --> http://pastebin.com/F0smEKQX Aug 11 05:49:37 change public boolean IsCameraSupported() to public boolean IsCameraSupported(Context c) { Aug 11 05:49:54 devslash: Oh OK. Sorry. Aug 11 05:50:05 your class has a main activity right ? Aug 11 05:50:26 devslash: Yes, it does - but it's in another class. Aug 11 05:50:30 ok Aug 11 05:50:32 doesn't have to be a main activity, it can be any android component Aug 11 05:50:40 how do you call IsCameraSupported() Aug 11 05:51:19 devslash: It's a little complicated - I call it from a C++ file since I'm developing using the NDK. :-/ Aug 11 05:51:43 ok... Aug 11 05:51:48 devslash: Or at least that's what I think. I'm super new to this. Aug 11 05:51:58 i haven't dealt with that Aug 11 05:52:06 i write my android apps in pure java Aug 11 05:52:28 devslash: That's very cool. What if we were to ignore the C++ component. How would we go about solving this, then? Aug 11 05:52:37 ok Aug 11 05:52:55 do you call IsCameraSupported() from your C++ code ? Aug 11 05:53:26 devslash: Yes - and it in turn calls the Java implementation of IsCameraSupported() Aug 11 05:53:32 aLearner: I already told you the solution Aug 11 05:53:47 it is very simple Aug 11 05:53:48 mr6: I'm sorry - I must've missed that. Aug 11 05:53:56 mr6 couldn't he then do MainActivity.this.getApplicationContext() Aug 11 05:54:19 mr6: You said ---> you need to pass a context to your NativeHost constructor Aug 11 05:54:27 devslash: no, what does 'this' refer to then? Aug 11 05:54:41 to the main activity Aug 11 05:54:42 aLearner: yes Aug 11 05:54:53 mr6: I guess my next question would be to ask how I would go about doing that... Aug 11 05:54:55 because he is calling IsCameraSupported() from C++ code Aug 11 05:54:59 devslash: no, it won't, 'this' is his NativeHost object Aug 11 05:55:12 i said MainActivity.this Aug 11 05:55:14 not just this Aug 11 05:55:23 devslash: that is non-sensical in this case Aug 11 05:55:28 why? Aug 11 05:55:44 doesn't that reference the MainActivity class that loads initially Aug 11 05:55:52 devslash: because NativeHost is not a sub-class of MainActivity Aug 11 05:56:04 devslash: no, you are confused Aug 11 05:56:04 i dint think that matters Aug 11 05:56:08 dont Aug 11 05:56:28 ok maybe you know better… aLearner good luck mr6 can help you Aug 11 05:56:45 devslash: Thank you for your help! :-) Aug 11 05:56:51 devslash: try it in a simple case if you don't believe me Aug 11 05:56:52 np Aug 11 05:57:09 mr6: How do I pass a context into my NativeHost constructor? :-? Aug 11 05:57:13 devslash: go into some other class that isn't called MainActivity and try to reference it that way Aug 11 05:57:21 ok Aug 11 05:57:27 hang on Aug 11 05:57:31 need to fire up eclipse Aug 11 05:57:38 aLearner: ok Aug 11 05:58:03 aLearner: so like you said, leaving JNI out of this for a moment Aug 11 05:58:16 mr6: Yes... :-) Aug 11 05:58:51 if you are in an android component, such as an Activity or Service, and assuming NativeHost is not a singleton or static class... Aug 11 05:58:55 hello! Aug 11 05:59:25 just set it up so you can do 'NativeHost nh = new NativeHost(this)' Aug 11 05:59:34 mr6: You're right I am indeed in an Activity and NativeHost is not a static class (not sure what singleton means)... Aug 11 06:00:08 then in NativeHost constructor set a private class member = to the context you passed in Aug 11 06:01:43 aLearner: making any sense? Aug 11 06:02:55 mr6: Thinking over it...This is what I have so far --> http://pastebin.com/gQ5QBfHa ... I don't understand "then in NativeHost constructor set a private class member = to the context you passed in" yet... Aug 11 06:04:01 aLearner: just a heads up that I'm not going to look at your code, just discuss it here :> Aug 11 06:04:14 mr6: I still need to pass in the context in the constructor as you suggested --> public NativeHost(Context context) Aug 11 06:04:32 not a policy on the channel or anything i just don't feel like clicking links ha Aug 11 06:04:44 mr6: That's cool. Whatever makes you comfortable / happy. Aug 11 06:05:51 mr6: So this line --> NativeHost nh = new NativeHost(this); needs to be in "public class MainActivity extends Activity" - right? Aug 11 06:06:15 aLearner: so I'm saying that in NativeHost you should have a private class member 'Context c' for instance, that you set in the contstructor Aug 11 06:06:39 aLearner: and keep in mind 'this' is an object of type Context Aug 11 06:07:04 technically Activity, but for now you can consider it a Context since it subclasses it Aug 11 06:07:31 aLearner: and yes, that line can go in MainActivity Aug 11 06:08:09 mr6: Thank you very much. But if that line goes in MainActivity it's still unclear how nh will be used in NativeHost :-/ Aug 11 06:08:20 wut Aug 11 06:09:16 Look i don't know what you are trying to code exactly, that is up to you, I made teh assumption for simplicity that you were creating an instance of 'NativeHost' in this activity Aug 11 06:09:37 mr6: You're right. This indeed true. Aug 11 06:10:46 the goal was just to get a Context instance into a NativeHost instnace, go try to make that work, if that doesn't work in your app's architecture then come back and re-phrase the question if you can't figure it out still Aug 11 06:10:46 mr6: Actually - I take that back - I need to check more carefully. Aug 11 06:11:10 mr6: Thank you very much for your help. Let me see if I can piece things together. Aug 11 06:12:24 aLearner: yeah hope it points you in the right direction, though I think if you really are using JNI it is going to get more complicated Aug 11 06:14:49 mr6 yea i guess that works Aug 11 06:14:51 mr6: Thank you for your insight. It turns out that the class NativeHost is _not_ instantiated in the class 'MainActivity'... Aug 11 06:15:31 Maybe Context context = MainActivity.this Aug 11 06:16:18 Galaktik: Thanks...But you're suggesting I put this line in NativeHost? Aug 11 06:16:23 I always end up fighting for my life when dealing with context. I ussually find it easier just to pass it as they say Aug 11 06:16:30 Yes Aug 11 06:16:37 Galaktik: Ah OK - thank you. Aug 11 06:17:58 Galaktik: Nope that doesn't work either because of scope issues...I need to piece together mr6's solution :-) Aug 11 06:19:23 I've been developing an app lately and making rather quick progress given the circumstances. One of my current issues is rather mundane, but seeking out the cleanliness factor, I need to have it checked and fixed. Aug 11 06:20:48 aLearner: Yeah it doesn't work often for me but figured it was worth a shot. mr6 probably does have the best solution for this Aug 11 06:21:26 I have a custom class keep track of certain data modified while using the app. onDestroy(), this class is serialized (successfully) to the external storage. onCreate() it is then loaded. Aug 11 06:22:04 This whole process works like a charm. My issue seems to be a leak durring the onDestroy when I run a 'MediaScannerConnection.scanFile' Aug 11 06:22:36 Galaktik: No worries. Thank you for your input. Aug 11 06:25:05 Previous coding tid-bits leads me to believe this is an issue with the event that activates the service. Is it that the function performs a non-blocking action that allows the onDestroy to finish before the service is completed? if so, how would I prolong this? Aug 11 06:25:09 Komack57: I don't have anything on that for you right now. Sounds simular to what I'm aiming to tackle next in my app Aug 11 06:26:06 Galaktik: it's a very useful function for apps that need to have persistant data :P Aug 11 06:28:33 Everything in my code SEEMS to work... i can exit the program, load it back up, and everything's fine. The file IS accessible (as it should be), just this error report isn't very... clean XD Aug 11 06:30:47 hi all Aug 11 06:31:08 Hello QubeZ! Aug 11 06:31:37 sup Galaktik Aug 11 06:32:14 mr6: I finally understand what you were suggesting. Took a while, but now I see your solution end to end. Aug 11 06:32:28 mr6: Thank you for pointing me in the right direction. :-) Aug 11 06:33:10 QubeZ: Just looking at some tutorials working out some things on my app. How about you? Aug 11 06:33:20 fixing bugs in mine :) Aug 11 06:33:56 aren't we all XD Aug 11 06:34:07 if you aren't fixing bugs, you aren't working on it XD Aug 11 06:34:13 Komak57: true dat Aug 11 06:34:34 i'm nearing 1000 downloads and want to keep the updates going to hopefully keep the word spreading Aug 11 06:35:03 I am still in dev stages. Almost there though! Aug 11 06:35:06 whatcha workin on? Aug 11 06:36:05 Its an App for Restaurants. Something like OpenTable Aug 11 06:37:08 mmm, how i'd like to put mine on the market, but mine's for a corporation i work with. As i don't particularly have direct authorization to be developing it, i don't even know if ill get compensation. But it helps with my work, and itll help with my co-workers, so it's worth the effort. Aug 11 06:38:56 I get the joys of Web Services and SQL Injection prevention soon for database connection soon. At least the android side will be fairly easy. Or so I think. Aug 11 06:39:33 I've got quite a bit of SQL experience behind me :P you'll do just fine Aug 11 06:40:04 Just, don't get lazy about the security, kay? Aug 11 06:40:39 Oh I won't. Been reading up big on the security side. Aug 11 06:41:02 I heard rogue SQL statement and realized that was very bad lol Aug 11 06:41:26 preventing sql injection on android is pretty easy using parameterized queries Aug 11 06:43:30 -blinks- i don't think i've heard the term SQL injection Aug 11 06:47:25 anyways, it's late :3 was nice chatting with you guys. wish someone knew a fix to my bug Aug 11 06:47:41 whats the bug? Aug 11 06:47:45 SQL Injection is probably the most common SQL-related attack Aug 11 06:47:47 Komak57: I was looking for my bookmark on it. Check it out. Bad stuff Aug 11 06:48:11 Galaktik: just gimme the short version, i can put 2 n 2 together XD Aug 11 06:48:36 QubeZ: I have a leak when running MediaScannerConnection.scanFile onDestroy() Aug 11 06:48:36 Putting a SQL statement in a web form attempting to get a rogue statement to pass to the database Aug 11 06:49:25 Galaktik: ahh, okay Aug 11 06:50:34 Galaktik: i prevent most of that with a socket server rather than a direct sql feed (keeping sql local-only) Aug 11 06:50:39 classic example is ' OR 1=1; -- Aug 11 06:50:49 in password field Aug 11 06:51:27 though that also involves unsecured passwords in databases :P Aug 11 06:52:10 (or from XKCD, Little Bobby Tables. His name ended with '; DROP DATABASE students; -- Aug 11 06:52:13 ) Aug 11 06:56:08 does anyone know the google page for e4gt cm9 bugs? Aug 11 06:56:28 cant find it on xda Aug 11 06:56:36 No passwords, just information that if it can be exploited would probably keep me out of Google Play Aug 11 07:04:23 oh noes, Galaktik's app is gonna leak credit card info! Aug 11 07:08:05 Komack57: No CC info either, just user info I don't want anyone to get their hands on Aug 11 07:30:44 Is it possible to show the in-app billing interface as a dialog..i.e. without switching activities? Losing GL context sucks..:(.. >= android 2.1 btw Aug 11 07:32:21 if not..i'm wondering if it is safe to use a modified GLSurfaceView so you don't lose hte context. Aug 11 08:16:08 I'm working with tabs, and I get the error "Fragment is already added", even if I check if it is added or not through Fragment.isAdded() Aug 11 08:16:13 see http://pastebin.com/rA788wna Aug 11 08:16:36 why does it happens? doesn't "isAdded()" check if the Fragment is added or not? Aug 11 08:33:48 can I have some fragments added and switch from one to another? how? Aug 11 08:35:41 replace() crash if the new fragment was already added, even if I check it Aug 11 08:38:28 guys, actually thinks are quite simpler than android, sorry, I have to say it Aug 11 08:58:03 So, I handle optionselect event from the options menu and call finish() which ahould Aug 11 08:58:15 Should stop the program, and it does Aug 11 08:58:38 But once I fire it up some stack variables are not reset Aug 11 08:58:53 As if the program never stopped. Aug 11 08:59:31 Any ideas? Aug 11 09:18:56 hi Aug 11 09:19:04 how can I have some fragments and switch (display) from one to another? Aug 11 09:19:14 how cna i create a horizontal scroll Aug 11 09:19:27 to change emotion https://www.dropbox.com/s/6qgy4c82cqhwxci/scrollswipe.png Aug 11 09:20:14 pepigno75, http://developer.android.com/reference/android/widget/HorizontalScrollView.html Aug 11 09:21:17 Utopic: ok but how can i move scroll step by step Aug 11 09:22:00 I don't know... doesn't the mouse works for that? Aug 11 09:23:32 Utopic: no Aug 11 09:24:36 if you want to change an image, just change it Aug 11 09:25:02 there's no need of a scroll Aug 11 09:30:58 yoh Aug 11 09:32:17 yoh Aug 11 09:36:07 are the developer console device stats documented anywhere? Aug 11 09:36:36 in particular, id like to know how active users is calculated, as it is evidently not the difference between total installs and total uninstalls Aug 11 09:38:28 im mainly curious as my retention rate has been very steady, and ive suddently had a big jump in installs, no uninstalls, but a /decrease/ in active users, which seems counterintuitive Aug 11 09:39:12 would also be interesting to know whether debug builds corrupt these values Aug 11 09:42:19 I've got an ArrayList that stores type "Agent" - many of the items I add to it however implement different interfaces (ex: Selectable). How can I quickly find all of the objects that implement a particular interface? Aug 11 09:43:32 loop through the list, if you dont want to use instanceof you could wrap them all in a container of some kind and set flags to indicate what type to cast them to Aug 11 09:44:42 That's what I'm doing now but coming from Python this is a bit cumbersome Aug 11 09:45:44 back, just managed to nudge the wifi toggle on my laptop :S Aug 11 09:45:56 Bacta, did you get my reply / did it make sense to you? Aug 11 09:46:14 Hi robb_www: Yep, here's my reply: That's what I'm doing now but coming from Python this is a bit cumbersome Aug 11 09:47:01 python almost certainly does the same behind the scenes Aug 11 09:47:05 In some ways it doesn't feel right to be throwing everything in a single ArrayList but I use that in my main game loop to draw everything Aug 11 09:47:30 Well Python doesn't have generics Aug 11 09:49:38 yer, but python doesnt need it since they have duck typing Aug 11 09:49:59 Besides the point really Aug 11 09:50:14 I guess I wanted to know whether Java has something similar to list comprehensions Aug 11 09:50:25 I haven't coded in Java for many years Aug 11 09:51:17 basically whenever people write code in declarative or dynamically typed languages, i think its important to consider how a statically typed imperative language would perform the same task Aug 11 09:52:51 So your suggestion is to use instanceof? Aug 11 09:53:00 It's what I'm doing right now but it's pretty dirty Aug 11 09:53:11 Which makes me wonder whether a single list is the right thing to do Aug 11 09:53:47 instanceof would work, but reflection is slow, a container class shouldnt add much overhead and imho is preferable Aug 11 09:54:58 That may be what I'm doing already but can you elaborate? A container class? Aug 11 09:55:10 1 sec ill illustrate on pastebin Aug 11 10:03:44 Bacta, so, this might not actually compile exactly as-is, but should give you the idea ;) Aug 11 10:03:50 http://pastebin.com/e01nNcWB Aug 11 10:03:56 thanks Aug 11 10:05:08 so in the second case your creating new AgentWrapper instances with type suitably set to either PERSON or MONKEY, and on that basis the code can easily tell how to handle it /without/ using instanceof or other parts of the reflection API Aug 11 10:05:12 mmm that's sort of what I've done Aug 11 10:05:26 the 2nd one is superior, which have you done? Aug 11 10:05:31 the first Aug 11 10:05:38 thought so Aug 11 10:05:45 and as you said it's a bit flaky Aug 11 10:06:08 it does work, theres just the usual trade-off between memory and processing resources Aug 11 10:07:23 how bad is instanceof in terms of performance? Aug 11 10:08:01 Bacta: should be ok Aug 11 10:08:17 its a common operation that i think is somewhat optimized Aug 11 10:08:51 yep, my bad, looking at stackoverflow the argument is actually that using reflection is against the spirit of OO programming, rather than cost Aug 11 10:09:28 Doesn't really feel right design wise Aug 11 10:11:23 g00s do you have any idea how active users is calculated? Aug 11 10:11:32 nope Aug 11 10:11:56 pitty, thanks anyway Aug 11 10:22:05 Are there any APIs for doing event driven programming in Android? Aug 11 10:22:14 Defining my own events etc.? Aug 11 10:25:36 Is there a way to display html content without having to call Html.fromHtml() in code? Aug 11 10:25:51 anyone knows if i can get the device phonenumber from sims serialnumber if the number is not stored on the card? Aug 11 10:27:34 blacki|dl: it seems that we can only get the IMSI from the SIM Aug 11 10:28:09 hoangtran whats an IMSI? Aug 11 10:28:19 how can I have some fragments and switch (display) from one to another? Aug 11 10:29:00 on my phonecard the serial includes some parts of the phonenumber Aug 11 10:29:25 I get "Fragment already added:" if I call replace() twice with same fragment Aug 11 10:29:26 blacki|dl: http://en.wikipedia.org/wiki/Subscriber_identity_module#International_mobile_subscriber_identity_.28IMSI.29 Aug 11 10:30:01 even if I check it with (fragment.isAdded() ) Aug 11 10:30:09 blacki|dl: is phonecard == SIM ? Aug 11 10:30:28 hoangtran: yes Aug 11 10:31:20 hoangtran: i can get the IMSI? wehre the last digits are the MSIN (phonenumber) Aug 11 10:32:32 blacki|dl: you can get imsi: String imsi = ((TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE)).getSubscriberId(); Aug 11 10:33:47 blacki|dl: I have no idea about the relation between IMSI and phone number Aug 11 10:34:22 hoangtran: thats what the wiki article says :) Aug 11 10:34:47 blacki|dl: and on some devices, you can see this value in the About Phone screen :) Aug 11 10:34:51 If I draw a View on my Canvas, will the View keep all of it's Events? For example, can I call View.isPressed() to see if the user is clicking the drawn View? In other words, is the Canvas object of Android a bit more sophisticated then that Canvas element of HTML5 and Canvas object of J2ME? Aug 11 10:35:43 hoangtran: in my special case its empty :) Aug 11 10:36:57 hoangtran: and my subscriberID does'nt owns parts of my number :( Aug 11 10:37:43 for explantation... i need the number to auth on a service that will be bound to the mobilenumber and not to the device Aug 11 10:37:55 blacki|dl: not so special, I guess :), most of the guys around me don't see it on their phone. Aug 11 10:39:08 i think i have no number on my sim cause its very old... i think i got it in 2000 Aug 11 10:39:12 blacki|dl: regarding the relation, we hadn't found a way to get the phone number programmatically, so we're having to prompt the user for that values, seems abit shame Aug 11 10:39:41 hoangtran: but how can i promise that it is the right number? Aug 11 10:40:54 blacki|dl: in my case, no way from the app itself, we use other 'traditional' approach: confirm by sms/email, ... Aug 11 10:41:40 hoangtran: yes, confirmation by sms could be the only way but at the moment its a loan problem :) Aug 11 10:42:22 hoangtran: so i need to register user with number an IMSI to bind the account to the SIM ? Aug 11 10:43:32 I don't know if it is really unable to the the phone number programmatically (as a security related decision), or it's just me haven't found out the way to do it Aug 11 10:43:53 :) Aug 11 10:44:22 currently that's what we do, IMSI + IMEI for the SIM/account Aug 11 10:45:00 hoangtran: no, i think some of the providers dont store the number on the sim... as i say in my case its partly in hte serial number Aug 11 10:46:15 yeah, as a developer, I still want to be able to get it programmatically :D Aug 11 10:46:33 hoangtran: say the number is +4917012345678 and the serial is xx49123xxxxxx45678x Aug 11 10:47:43 in the UK mobile phone numbers are often not stored on the sim, and arent available from the IMEI etc.. Aug 11 10:48:02 hoangtran: whats about your serial can you reproduce that? Aug 11 10:49:41 I think I'll look at the data to see if the relation (if any) is reliable enough Aug 11 10:50:23 we are talking about grabbing the mobile phone number from serial numbers arent we? Aug 11 10:50:34 hoangtran: let me know. i would miss the cell number but i could compare the last part of the number to the userinput Aug 11 10:51:02 just brainstorming robb_www Aug 11 10:51:10 dont all countries support PAC codes yet? Aug 11 10:51:35 which makes the relationship between any serial number and the phone number entirely transient Aug 11 10:51:54 blacki|dl: I don't have access to the data right now, just found this: http://stackoverflow.com/questions/2480288/get-phone-number-in-android-sdk Aug 11 10:52:00 robb_www: what does "yet" mean? Aug 11 10:52:32 "yet" as in PAC codes have been in use for almost 10 years now Aug 11 10:52:44 you can migrate your telephone number between services Aug 11 10:53:06 so serial numbers have no reason to contain the telephone number Aug 11 10:53:11 robb_www: seams my sim is older :) Aug 11 10:53:25 its not a SIM issue, its a service provided by the operator Aug 11 10:53:59 your SIM should be equally capable of handling a different mobile phone number, without the serial number of the SIM being changed Aug 11 10:54:12 robb_www: but can you programmaticly ask the provider for the mobilenumber? Aug 11 10:54:35 blacki|dl: no Aug 11 10:54:36 not unless they provide you with some kind of API, which I would be strongly doubtful of, and it would not be standardised Aug 11 10:54:55 *nod* @ what SpeedEvil said Aug 11 10:55:11 not easily. your phone isn't informed of its number. Aug 11 10:55:25 so it´s a save way to bind the account on the IMSI if i will bind it to the simcard Aug 11 10:55:37 it may have a 'own number' record added to the sim Aug 11 10:56:07 IMSI is unique to a user, and stored on the SIM, so that sounds legitimate yes Aug 11 10:56:31 sim can change without number change though. Aug 11 10:57:00 true Aug 11 10:57:27 i hear usernames and passwords are good for keeping track of users Aug 11 10:57:38 is this just for device app locking? Aug 11 10:57:52 yes, but user names and passwords can be stolen :) Aug 11 10:58:16 no, its for authentification against an online service Aug 11 10:58:19 also, note that if I see two apps, I'm picking the one that does not have phone access perm Aug 11 10:58:46 plus, do you want me able to use it with my nexusn7? Aug 11 10:59:22 dont know, why you schould not be able? Aug 11 10:59:27 no sim Aug 11 10:59:37 in that case... no Aug 11 10:59:46 k Aug 11 11:00:23 are you able to use whatsapp with your nexus? Aug 11 11:00:45 dunno Aug 11 11:00:50 try :) Aug 11 11:01:28 I guess not Aug 11 11:01:50 ActionBarSherlock is such a pleasure to work with Aug 11 11:01:54 searching the store for whatsapp does not give an popular app Aug 11 11:02:53 so i think its unnessesary for trendy applications to run on nexus:D Aug 11 11:03:11 why? Aug 11 11:03:30 https://play.google.com/store/apps/details?id=com.whatsapp&hl=de Aug 11 11:03:58 it IS quied popular :) Aug 11 11:04:31 that being said it looks terrible Aug 11 11:05:07 terrible? Aug 11 11:05:18 i dislike these services with an intense burning passion Aug 11 11:05:35 blacki|dl: I may be wrong, but I don't think you're at millions of users yet. Therefore, what products with millions of users do is of questionable value. Aug 11 11:06:14 If you can be usable on devices whatsapp isn't, that's a clear win. Aug 11 11:06:19 for every mobile phone service that exists there are >10 services which attempt to replace it - but all require that their users get everyone they know to sign up to use the same service. its a viral market in something entirely unnecessary Aug 11 11:06:31 And robb_www's point too. Aug 11 11:07:29 On principle, I'm in 'die in a fire' mode about these sorts of services, as at best they mean I have to create a random account to look at content. Aug 11 11:07:37 Sent to me by a user. Aug 11 11:07:49 just an example for an well used app with sim binding :) Aug 11 11:08:02 Fair enough. Aug 11 11:08:18 anyway, nexus 7 will bring new first-time users, you probably want to get their attention Aug 11 11:08:44 how can I replace a fragment of a view, and get back to the original fragment once the second is destroyed? seems I'm not able to use the stack Aug 11 11:08:55 Even if you want to limit the functionality in some way. Aug 11 11:09:00 And i thing in the audience of teenagers only prestige counts Aug 11 11:09:07 my user-base is so incredibly tiny :) it feels strange to be giving this kind of advice Aug 11 11:09:10 See apple :) Aug 11 11:10:11 * SpeedEvil wishes play store search diddn't suck. Aug 11 11:10:25 * robb_www wish stats were accurate and updated daily Aug 11 11:10:32 Especially on device. Aug 11 11:10:46 I mean - if you're on the first page of results, it's OK. Aug 11 11:11:10 But if you scroll to the third page, you then have to remember your place on the list, and scroll back to that when you've looked at an app Aug 11 11:11:29 my market is epicly niche, nobody will ever find the app by randomly browsing, so out of maybe 5 results im likely to hit the top 3 Aug 11 11:11:29 It actively discourages looking at the bottom of the list Aug 11 11:11:43 What is it? Aug 11 11:12:00 its a BibTeX reference manager for academics Aug 11 11:12:07 Neat. Aug 11 11:12:16 Something that I don't have a use for alas. Aug 11 11:12:20 exactly :P Aug 11 11:12:37 im feeling happy having gained ~70 users in 2 weeks Aug 11 11:12:40 I'll keep it in mind in case I go back to uni, and become a prof. Aug 11 11:13:03 hehe, uni pay is good Aug 11 11:13:18 but no job security Aug 11 11:13:37 I want to create a single Date object with year, month, day, hours, minutes, seconds, AM_PM. As I see there is no combined picker for the date and time, how can I create a single date object with these two pickers? Aug 11 11:14:11 create a gregorian calendar, set the fields as required, then get the date from the calendar Aug 11 11:14:39 and you probably want to use the same calendar for your subsequent call to SimpleDateFormat Aug 11 11:14:45 robb_www: When using calender, I see there is no such methods like setHour() or setMinutes() etc Aug 11 11:14:56 .setField is what you need Aug 11 11:15:06 robb_www: ok, let me try that Aug 11 11:15:44 is there some way for me to check validity of a cloud messaging device id? Aug 11 11:19:11 i wonder how well the n7's are selling Aug 11 11:23:57 hey g00s Aug 11 11:24:14 my N7 i got from I/O has a dead pixel Aug 11 11:24:30 and i hear lots of other compliants about them, but they are still selling Aug 11 11:24:37 that just shows you how popular they are Aug 11 11:25:59 no problems with mine Aug 11 11:26:01 great little device Aug 11 11:26:12 i think 6 out of the 15 or so people i work with already have one Aug 11 11:26:41 also thinking of getting one, when it comes out here Aug 11 11:27:03 i'm just sad it doesn't have a weather widget :< Aug 11 11:27:24 xorgate: where is here Aug 11 11:27:36 netherlands Aug 11 11:28:10 nice Aug 11 11:28:51 its good there, went to enschede a year or so ago Aug 11 11:29:01 i couldnt believe how flat everything was Aug 11 11:29:08 landscape wise that is Aug 11 11:29:18 xorgate: ^ Aug 11 11:29:52 it's quite efficient ;) no running uphill Aug 11 11:30:03 gtg Aug 11 11:30:22 :) laters Aug 11 11:40:47 hey Napalm Aug 11 11:41:22 cool, i hope to get one soon Aug 11 11:41:40 g00s: you been on the XDA sub-forum for them? Aug 11 11:42:03 no … never been to the xda forums actually Aug 11 11:42:20 :O Aug 11 11:43:01 g00s: http://forum.xda-developers.com/forumdisplay.php?f=1673 Aug 11 11:43:07 lots of things competing for my limited money soon - iPod touch with iOS6, n7, or wp8 device Aug 11 11:43:14 (for dev, of course) Aug 11 11:43:32 ah, thanks Aug 11 11:43:38 im really glad that i got a N7 Aug 11 11:44:04 yeah? Aug 11 11:44:07 how you using it? Aug 11 11:44:44 dev, emails, reading books, watching movies Aug 11 11:45:15 I think its a little small Aug 11 11:45:29 I had an 8.1 and I think it was perfect Aug 11 11:47:28 ive got a Galaxy Tab 10.1 Aug 11 11:47:37 and its just too large Aug 11 11:47:41 its nice and all Aug 11 11:47:42 I agree Aug 11 11:47:50 but with the high res of the N7 i think its perfect Aug 11 11:49:48 Hi! Is it possible to inflate menu from menu.xml to or something similar to display it on activity as list? Aug 11 11:54:25 i had a transformer prime, that was too big Aug 11 11:55:51 anyone have tips on how to integrate actionbarsherlock into my new app? i want it to be compatible with 2.1, i dont know if i should have multiple activities for each version before 3.0, or somehow get it all working on one activity Aug 11 12:16:01 hello Aug 11 12:16:02 i need import binary data in sqlite Aug 11 12:16:11 but i never do it Aug 11 12:25:50 hey guys Aug 11 12:26:08 question: Aug 11 12:26:23 mrweed? Aug 11 12:26:38 cyanogen mod branch: ics means: ice cream sandwich aka android 4something, or not? Aug 11 12:26:55 4.0 Aug 11 12:26:58 but after installing that rom, i am still on gingerbread Aug 11 12:27:02 ... Aug 11 12:27:14 2.3.7 Aug 11 12:27:18 how can this be? Aug 11 12:27:24 then I think you did something wrong. Also, android modding is #android-root Aug 11 12:27:26 heres a link Aug 11 12:27:27 http://download.cyanogenmod.com/?device=p970&type=RC Aug 11 12:27:51 can t do something wrong becouse i flashed it with clockwork mod Aug 11 12:28:08 yes, i know but in android-root no one is answering atm Aug 11 12:30:27 Hello - can I browse AOSP without syncing the whole repo? I want the JB desk clock source code, and syncing all the data is not cost effective on my connection :) Aug 11 12:36:34 Hello, im trying to detect if a viewpager is scrolled to the left or right, i have been struggaling with this for day can someone please help me? Aug 11 12:37:13 friktion: are you serious? Aug 11 12:37:27 Yes i am fully serious Aug 11 12:37:47 http://developer.android.com/reference/android/support/v4/view/ViewPager.OnPageChangeListener.html Aug 11 12:38:06 want to see some magic Aug 11 12:38:22 yea? Aug 11 12:38:39 you using the support library? Aug 11 12:38:47 Yes Aug 11 12:42:50 Napalm: I am fully aware of onpagechangelistener -.- the problem is that the offset goes from 360 to 0 when going right and from 0 to 360 when going left Aug 11 12:43:03 so? Aug 11 12:43:05 wait a sec Aug 11 12:43:39 I think i know a solution now ^^ if i create an offset of the offset then i think i get what i neeed, im waiting... Aug 11 12:48:21 hi all Aug 11 12:48:42 can anyone help me wit some problem? Aug 11 12:51:36 http://pastebin.com/mFeUtmQt log Aug 11 12:52:51 friktion: http://pastebin.com/ZstBemby Aug 11 12:53:21 friktion: flip the < > conditions if required Aug 11 12:54:10 Thanks!!!! That was nice of you :) Aug 11 12:54:25 friktion: like i said, magic! Aug 11 12:54:26 :P Aug 11 12:54:58 http://pastebin.com/Bc9CHG5h - source. No error in compile, but app not set wallpaper Aug 11 12:55:10 zznob: it does tell you, background ANR and your cpu load is pretty damn high Aug 11 12:55:34 thats why Aug 11 12:55:50 a onReceive has limited cpu time Aug 11 12:56:03 you need to fire off a thread/asynctask Aug 11 12:56:21 wait Aug 11 12:56:22 ignore me Aug 11 12:56:27 how? Aug 11 12:56:59 ok its how your handling your async task Aug 11 12:57:03 one moment Aug 11 13:04:51 Napalm, I see now that you made it so that we detect right to left after scroll has been made, i want it to detect that directly Aug 11 13:05:38 friktion: what do you mean? Aug 11 13:07:32 Napalm: When im touching the screen and moving my finger to the right i want it to know, now its scrolling to the right, i can do that, but halfway it thinks it is going back because offsetpixels goes from 0-360 to the right, and 360-0 to the left Aug 11 13:08:08 if it would go 0-180 to the right and 0-(-180) to the left, it would be perfect :D Aug 11 13:08:37 guys did you have Cell Object SQLite for eclips? Aug 11 13:11:56 ?????????? Aug 11 13:13:20 exooooooooooooo Aug 11 13:16:16 zznob: http://pastebin.com/jhgFUFNs Aug 11 13:17:26 friktion: what is the purpose of this requirement, their might be a better way of achieving your goal Aug 11 13:18:44 Napalm: I want the pages to crossfade, dunno how else this is achieved Aug 11 13:20:04 Napalm: each page has an image, that is what is crossfading, if that makes this easier Aug 11 13:20:38 friktion: do you want the amount of crossdfade controlled by the position of the scroll? Aug 11 13:21:37 Hi all - I'm doing some research into porting applications from the desktop to Android. I was wondering if anyone had suggestions for apps that had been ported? (I'm interested in applications like vlc and winamp that have been ported, rather than webapps like facebook) Aug 11 13:22:12 Hi, I need a little help regarding the camera. I successfully managed to retrieve the raw data from a preview, now I'd like to take the raw data from the takePicture method. I read that some cameras don't have enough buffer size to implement the rawPictureCallback (which is the case of my Nexus S): is it possible to create programmatically such a buffer so to be able to retrieve the raw data? thanks. Aug 11 13:22:20 Napalm: Yes that is what i want Aug 11 13:22:44 friktion: what api level are you coding for? Aug 11 13:22:47 min Aug 11 13:24:00 7 at the moment, but i am dynamic so if it requiers higher i am okay Aug 11 13:27:29 anyone? Aug 11 13:27:33 friktion: just going to wip up an example Aug 11 13:31:02 Napalm: okay :) Aug 11 13:37:41 whip Aug 11 13:38:13 lash Aug 11 13:39:48 ok no one :'( thanks anyway Aug 11 13:42:21 k Aug 11 13:49:09 i'm dynamically making my own class extending scrollview… in that i put in a horizontalscrollview… the app runs fine until i hit the home key, then i get an exception saying scrollview can only host one direct child Aug 11 13:49:27 i can't even see anywhere i'd be putting another view into the class Aug 11 13:49:41 and it's odd that the error doesn't show up until i hit the home key Aug 11 13:49:48 ultra-: its called debugging, use it Aug 11 13:54:15 well i do have logcat running, that's where i got the message from Aug 11 13:55:04 i suppose maybe it's bombing because i didn't implement some methods Aug 11 14:00:14 ultra-: open your eyes Aug 11 14:00:28 start your app in debug mode Aug 11 14:00:32 forget logcat Aug 11 14:01:17 ok Aug 11 14:01:21 first week of android programming Aug 11 14:03:19 got it running, thanks Aug 11 14:05:28 kind of a 'duh' moment anyway… i was adding the view from onWindowFocusChanged, so of course it'll try to add another view Aug 11 14:21:14 what does setting android:imeActionId do on a TextView control? Aug 11 14:29:18 is vitamio dead? Aug 11 15:00:17 I define buttons and textviews in my oncreate method as final. I decided to movr the declarations to become class variables and although it compiles it causes my app to hang. Aug 11 15:00:44 Where could I be wrong? Aug 11 15:30:14 hello everyone Aug 11 15:41:05 hey guys Aug 11 15:41:28 i got a little question considering animations overridePendingTransition Aug 11 16:23:26 hello Aug 11 16:23:43 hi TheFred Aug 11 16:33:11 I knew there was only one! Aug 11 16:33:46 TheBunny: what is this the highlandeR? Aug 11 16:34:49 hmm, bunny vs penguin, fight! Aug 11 16:36:27 I really need coffee before that ;) Aug 11 16:37:03 is it avorpal bunny? Aug 11 16:37:41 you can all just beat up on my broken ContentProvider if you'd prefer Aug 11 16:40:25 Hey, Aug 11 16:40:48 If I want to unlock the screen of my device after the initial boot from adb or similiar, how would I do that? Aug 11 16:41:14 I found the 'adb shell inputevent 82' method which only works if the device has 'unlock on Menu button press' enabled. Aug 11 16:41:45 It's a test device and the best solution for me would be to get rid of the initial lock altogether. But programmatically removing it would work too. Aug 11 16:43:26 kakazza: seems you want http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_DISMISS_KEYGUARD Aug 11 16:43:35 remember to disable it for release though Aug 11 16:46:25 Thanks, will take a look Aug 11 17:11:54 i just saw this and i lol'd Aug 11 17:11:56 http://s3-ec.buzzfed.com/static/enhanced/web04/2012/8/9/13/enhanced-buzz-18943-1344535003-16.jpg Aug 11 17:12:22 :D Aug 11 17:13:24 howdy Aug 11 17:13:35 canadiancow: lols Aug 11 17:13:42 JakeWharton: If I had to use one of the yet unmerged pull requests of ABS, but still use ABS as a git submodule, how would I do that? Can I have a commited, patched version of a class and use that instead of the one provided by ABS? Aug 11 17:13:43 i can't wait for the next season of fringe Aug 11 17:15:45 doc_savage: Nice, that worked. It seems better than the old KeyguardLock method which completely disabled it. Aug 11 17:16:18 kakazza: cool, that was new to me too, although I rarely used KeyguardLock anyway Aug 11 17:17:08 Yep, my activity shows, once I finish(), the lock is there again. Aug 11 17:20:48 anyone know has tested titanium appcelerator? Aug 11 17:21:01 looks like off-topic but its not :P Aug 11 17:27:20 i'm using facebook SSO, it crashes because the phone has no facebook app installed, is there any workaround aside from other signin option? Aug 11 17:28:24 check if the package is installed ? Aug 11 17:28:45 I am trying to work with the NDK from inside the eclipse environment and I cannot seem to get it to find the jni.h. There is a lot out there on the issue but it all points to the newer versions of ADT,CDT and NDK that I already have. Aug 11 17:28:49 there's a way to test if somebody will handle the intent, brainv Aug 11 17:28:55 use that to find out if you can send it Aug 11 17:29:08 or I imagine that is what you are doing. I'm not sure why it would actually crash. Aug 11 17:29:15 because intent who goes to nobody causes nothing to happen Aug 11 17:29:59 nullpointer exception probably? Aug 11 17:30:39 it says something like this 08-12 01:31:56.898: E/AndroidRuntime(3109): Caused by: java.lang.NoClassDefFoundError: com.facebook.android.R$drawable Aug 11 17:31:11 Aeefire alankila the easy way is to check if the package exist? Aug 11 17:31:27 there is a class PackageManager or something Aug 11 17:31:46 it says something like this 08-12 01:31:56.898: E/AndroidRuntime(3109): Caused by: java.lang.NoClassDefFoundError: com.facebook.android.R$drawable => this points to a different error, nothing to do with facebook imho Aug 11 17:31:56 ah Aug 11 17:31:57 sry Aug 11 17:32:01 sure it has to do with fb Aug 11 17:32:05 my failure. Aug 11 17:32:11 but ya.. check packageManager Aug 11 17:32:57 ok. thanks guys, i think that would be a great solution for now. thanks again Aeefire alankila! Aug 11 17:36:07 how can I have some fragments and switch (display) from one to another? Aug 11 17:36:17 or how can I replace a fragment of a view, and get back to the original fragment once the second is destroyed? seems I'm not able to use the stack Aug 11 17:38:04 Can ask someone to reply. I need to know if my questions to this channel are making it at all. Aug 11 17:40:17 jshanab: what's upp Aug 11 17:42:46 jcromartie. Thanks. I have asked a few questions over the course of the last week and I never got a response, so I wasn't sure if my irc client was hosed. I am trying to get eclipse to find the jni.h I want work in the IDE Aug 11 17:43:18 jshanab: maybe they are over everybody's head Aug 11 17:44:27 NP, silence could mean either so I needed to check. Aug 11 17:46:27 Hey guys. How to add swap support to kernel? Aug 11 17:46:41 I am not sure where to put what path. jni.h is part of java but is for c++, there are about 10 of them on the Mac's HD. I would expect the ADT or NDK plugin to set it up but somehow I mised it Aug 11 17:47:06 What are you gonna swap to? Aug 11 17:47:33 Sdcard swap partition jshanab Aug 11 17:47:56 I got samsung galaxy y pro Aug 11 17:47:59 swapping on android is not necessarily very useful. Applications are designed to die transparently. Aug 11 17:48:36 reloading them from their state is about as fast as swapping them back in. Back in the day a lot of people tried adding swap to android and I guess very few people do that anymore. Aug 11 17:48:39 The memory model is on the assumption all the memory is at the same cost, but I would expect an sdcard to have a very slow write Aug 11 17:48:40 jni.h should be under android-ndk-rV/platforms/android-VV/arch-ARCH/usr/include Aug 11 17:48:52 other part of the reason is, of course, that there's around 500 MB of memory or more on phones nowadays Aug 11 17:49:23 Ologn. thanks. (I like that handle. Big-O of log(n) ) Aug 11 17:49:27 JNI is how C/C++ can hook into Java...or Dalvik, as the case may be Aug 11 17:49:48 Ologn: more like vice versa, isn't it? :-p Aug 11 17:50:08 but sure, it also has the means for C to call java methods Aug 11 17:50:22 well basic reason why I want swap is my phone had 289 mb ram n I got only 20 mb free. Aug 11 17:50:28 Plus I want to learn. Aug 11 17:50:29 yes Aug 11 17:51:34 So can anyone help me? Aug 11 17:52:17 Xtreme: probably not. It sounds like you're on a misguided path. And it's off-topic here anyway, this is for application development. Aug 11 17:52:27 Ologn. That path is in the paths and symbols in the c/c++ options in eclipse. What is the preprocessor include paths? It has a bit red X about not identifing toolchain language Aug 11 17:53:54 Xtreme. if it follows the path of normal kernel development you have to format the partition and compile the feature into a kernel. I would assume it has not been compiled in on android. What Filesystem is in the android kernel anyway? Aug 11 17:56:46 anyone know if there's any decent IP-rated waterproof android phones out there nowadays? Aug 11 17:56:48 my defy is dead Aug 11 17:57:47 Sorry got dc Aug 11 17:58:08 Ok, so my last question was where can I get help for this issue? Aug 11 17:58:13 jellydonut: nothing easily available, I think. And Defy wasn't that good, iirc Aug 11 17:58:24 i want to communicate with my appengine app using https, any pointers? i need to implement ssl or sth? Aug 11 17:58:29 jellydonut: though I seem to have heard something about some new Defy Aug 11 17:58:57 well there's the defy+ Aug 11 17:59:07 and no, defy isn't/wasn't good, but it was decent for what it was. Aug 11 17:59:08 Anyone? Aug 11 17:59:13 and held up to abuse.. until now Aug 11 17:59:16 so someone added a .jar to our project, but when I check out the changes on my machine, the IDE doesn't seem to recognize the jar as having any contents Aug 11 17:59:29 and it doesn't seem to be able to build with the classes contained in the jar Aug 11 17:59:38 I can unzip the jar manually and I see packages Aug 11 18:17:52 what the hell could be going on if the post params from DefaultHttpClient request dont reach the server? Aug 11 18:31:22 how can I go about disabling or delaying the screen lock (I tried using KeyguardManager, but it's depreciated/doesn't appear to work consistently)? Aug 11 18:32:41 do you want to prevent the screen lock timer from triggerin Aug 11 18:32:57 or do you want to prevent user from pressing the power button Aug 11 18:33:26 you can prevent the screen lock timer by using wake lock Aug 11 18:33:57 aolin: the former. and FLAG_DISMISS_KEYGUARD is not an option either and I want to do this in the background/without an Activity. Aug 11 18:34:22 ok. Wake Lock should work then. Aug 11 18:34:29 I don't want to use a WakeLock for battery reasons. Aug 11 18:35:03 whats the point keeping the screen lock away, but not the screen turned on ? Aug 11 18:35:06 it Aug 11 18:35:15 s unlikely that user can read the screen Aug 11 18:35:39 it makes possible to input random data :P Aug 11 18:36:10 I want to prevent the lock when I'm at home/I know the phone won't be stolen. Aug 11 18:40:47 I looked at DeviceAdmin as well, but nothing there was apparent to me. Aug 11 19:16:01 so this is probably going to sound really dumb Aug 11 19:16:28 but when i create a project in Eclipse that targets SDK 16, but has a min SDK of 10, does that mean it will work on Android 2.3.3 and above? Aug 11 19:16:37 I have a feeling it's more complicated than that. Aug 11 19:18:05 HorizonXP: these are explained in the android developer website. minsdk means "I promise not to call methods that don't exist on this version", targetSdk means "tested to work correctly on this version of SDK". Aug 11 19:18:30 the targetSDK is useful when android needs to determine what backwards compatibility measures it needs Aug 11 19:19:01 I have not read this code, though. I imagine it's such a blast, or it might be widely dispersed all over the sourcecode Aug 11 19:19:54 i'm reading the uses-sdk right now Aug 11 19:20:33 "I promise not to call methods that don't exist on this version" <- well.. :p Aug 11 19:21:41 More like "I promise it will work on this api level" .. you can call all the methods that don't exist on this platform you want, as long as you check the api level of the device first Aug 11 19:22:00 I'm going to have to do more reading Aug 11 19:22:16 because right now, my app is mostly just UI, while I scaffold it Aug 11 19:22:23 well, in that case you don't actually call the nonexistent method, simonvt, so I'm still right Aug 11 19:22:38 and when i dropped the targetSDK to API level 8, it started complaining about XML errors and R not being found Aug 11 19:22:47 Hah, that is true Aug 11 19:23:00 But you also promise the same for 11, you didn't mention that :P Aug 11 19:23:12 so i would guess that there are a lot of changes between API level 8 and Level 15/16 Aug 11 19:23:24 HorizonXP: more likely ADT just made some sort of poo-poo Aug 11 19:23:30 minsdk != targetsdk != build target Aug 11 19:24:15 http://simonvt.net/2012/02/07/what-api-level-should-i-target/ Aug 11 19:24:17 so is it best to compile against the latest target possible, and ensure that I don't call new APIs (or check before I do) to maintain backwards compatability? Aug 11 19:24:19 I wrote this, explains it a bit Aug 11 19:24:42 or should I compile it for the lowest API level I want to target, and rely on forwards compatability ? Aug 11 19:24:45 SimonVT: I'll check that out Aug 11 19:25:15 You should always target the newest api level possible Aug 11 19:25:39 Why limit users with a JB device to what was possible in gingerbread? Aug 11 19:28:51 SimonVT: fair enough, and I would understand if I was able to add a nice feature like NFC Push or something Aug 11 19:29:05 but i'm not at that stage yet, right now I'm just trying to get my UI going Aug 11 19:29:25 well, how does Facebook and twitter do it for their apps? Aug 11 19:29:55 i know they just stick webviews in there, but there has to be some UI degradation they're doing across API levels... right? Aug 11 19:30:03 * HorizonXP doesn't have an older Android device to try Aug 11 19:31:09 hi everyone, i want a toast to display "hello 1" when button 1 is pressed and "hello 2" when the other button is pressed, i am still confused when looking at this code http://www.passsy.de/activity_with_multitouch_for_buttons/ for multitouch, can anyone help me with this? Aug 11 19:33:45 testt, what does a toast have to do with this code? Aug 11 19:34:03 testt, what does a toast have to do with this code? Aug 11 19:34:12 I like toast Aug 11 19:34:42 haskeller: this code is for enabling multitouch so that i can press many buttons at the same time Aug 11 19:35:14 testt, describe exactly what you want. Aug 11 19:35:52 You want the first toast to disappear if I tap the second button? Aug 11 19:37:03 after modifying a Window background with setBackgroundDrawable() how do you reset the window background to the default background (a gradient on ICS) ? Aug 11 19:38:39 Same way Aug 11 19:40:05 hi again i was disconnected Aug 11 19:40:07 sorry Aug 11 19:40:58 basically, this example http://www.passsy.de/activity_with_multitouch_for_buttons/ shows how to press multiple buttons at the same time but i was unable to find where i should put event handling code where i could perform actual work when one of the buttons are pressed Aug 11 19:42:00 haskeller: i was able to compile and run the code, i can touch many buttons at the same time, but where to place event handlers so that i can know the buttons that are pressed? can anyone figure out? Aug 11 19:42:16 http://developer.android.com/reference/android/view/View.OnClickListener.html Aug 11 19:44:13 haskeller: you didn't look at the source properly, there is already setOnTouchListener(this) set but the class handles multitouch in a confusing way, if you could help me understand then i'd be grateful Aug 11 19:45:08 haskeller: did you look at this? http://www.passsy.de/activity_with_multitouch_for_buttons/ Aug 11 19:49:29 haskeller: it seems like you were not able to help me Aug 11 19:49:59 It seems so. Aug 11 19:51:28 haskeller: probably i need to create a new class that extends Button and overrides the onTouchEvent() event handler Aug 11 19:51:40 it does seem like you should just set a click listener Aug 11 19:51:54 Probably? Aug 11 19:52:14 Why don't you try the solution? Anythin will do. You'll get feedback anyway. Aug 11 19:52:27 SimonVT: i would like the event to fire when the button is just, not when it is released, the click listener doesn't work until you have released the button Aug 11 19:52:53 Of course not, you don't know if it's a click until it's released Aug 11 19:52:55 i would like the event to fire when the button is just pressed*, not when it is released, the click listener doesn't work until you have released the button Aug 11 19:53:10 Hi! I'm developing an app where its possible to change e.g. tire pressure unit between "bar" and "kPa". What is best practice when saving the value in SQLite? I mean if the user saves the value as "bar", and then changes to show values in "kPa", should I re-save the value in database as kPa and keep track of which type the value are currently saved in? Or is it better to always e.g. save in "bar", and only convert th Aug 11 19:53:10 e value to show in "kPa" to the user if that unit type is selected? Aug 11 19:54:09 meck0, I'd save in kPa because it's standard Aug 11 19:54:21 testt, start with the basics here: http://developer.android.com/guide/topics/ui/ui-events.html Aug 11 19:55:07 joel135, okay, but in general is it better to do so? Because I have the same issue with e.g. distance unit (km or miles) Aug 11 19:55:39 Data is data. Aug 11 19:55:43 meck0, it doesn't really matter Aug 11 19:56:01 You save data. You might retrieve information. Aug 11 19:56:17 Ok, I'll stop. Aug 11 19:58:53 haskeller, ok, then I'll save values in one format and don't change format to save in. Since it feels unnecessary to keep track of which format each value is saved in. Better to only convert and show in other format for the user if desired, not edit db-value in those cases. Aug 11 19:59:55 But you are, after all, storing the format. Aug 11 20:00:20 say, "bar". If that's what the user wants, show it. If not, convert it. Aug 11 20:02:50 hi Aug 11 20:02:59 anyone awake? Aug 11 20:03:49 if someone knows how to implement 10 bands equalizer, please teach me Aug 11 20:04:29 haskeller, yes of course, but its possible to change unit formats in my app. So, I wondered if a user want to use kPa instead of bar, if I should keep track of which format a value are saved in db or not. Because if not, I'll force the user to actually save in bar even though he/she may want to only use kPa. But it sound good to save in only one format, and if the user wants to show in only kPa, I'll simply convert t Aug 11 20:04:29 he values and show in the other format without changing db. Aug 11 20:04:34 I was doing it for almost 7 hours Aug 11 20:05:47 I will wait for callling me. :-) Aug 11 20:06:11 Yes. Define "I'll save everything in bars" or the like and you'll be fine. Aug 11 20:06:47 choijuho, are you serious? Aug 11 20:06:50 an offtopic question, i have a 4.6GB file, android doesn't let me copy it to the sdcard, the sdcard has 13GB, how much MB should i split the file into? its some fat32 kind of file size limit? Aug 11 20:07:32 You should split it, and FAT32 has a limit. Aug 11 20:08:43 haskeller, thanks a lot for your advice! Aug 11 20:08:46 haskeller: into files of how much MB? can i split it into 3GB one file and 1.6GB other file? Aug 11 20:09:08 is it a 4GB limit or 2GB limit i am not sure Aug 11 20:09:13 testt Aug 11 20:09:18 hello Aug 11 20:09:25 choijuho hello Aug 11 20:09:44 do you know about Equalizer class well? Aug 11 20:09:56 I'm from korea Aug 11 20:10:06 sux english. blame me Aug 11 20:10:12 choijuo: i think haskeller is a pro on this topic Aug 11 20:10:18 oh... Aug 11 20:10:24 really? Aug 11 20:10:58 choijuho: i have tried only with the MediaPlayer class Aug 11 20:11:11 testt: i see Aug 11 20:11:32 and its .start() method is the only thing i have used so far! Aug 11 20:11:56 I'm in trouble doing 10 band Equalizer Aug 11 20:12:01 haha Aug 11 20:12:04 you funny Aug 11 20:12:10 :) Aug 11 20:12:29 I didn't sleep at last night! Aug 11 20:12:35 t.t Aug 11 20:12:39 we can tell Aug 11 20:12:52 choijuho: i am a newbie in android sorry, maybe haskeller can helo Aug 11 20:12:55 help* Aug 11 20:12:58 or someone els Aug 11 20:12:59 We see one of you guys on the news every single day. Aug 11 20:13:00 else* Aug 11 20:13:11 Close WOW, and eat something. Aug 11 20:13:30 hehe Aug 11 20:13:36 he hasn't slept, working on the Equalizer class ... Aug 11 20:13:37 I know Aug 11 20:13:45 i am going to bed Aug 11 20:14:07 2 years ago, Romain Guy gave some tips to me hehe Aug 11 20:14:28 I didn't come to here for last 2 years :/ Aug 11 20:14:46 choijuho: so you have been using android api for 2 years ... Aug 11 20:15:15 almost I was lazy for last 2 years Aug 11 20:15:37 So, seven hours. What have you come up with? Aug 11 20:15:41 since this year, I started programming again Aug 11 20:15:59 haskeller well.. Aug 11 20:16:12 choijuho: i started about a month ago, leslie on this channel helped me before Aug 11 20:16:58 haskeller : I tried to calculating by bit at band level Aug 11 20:17:12 but there was limit of band level Aug 11 20:17:17 so it also failed Aug 11 20:17:58 testt : ok you will be good android developer :) Aug 11 20:18:09 choijuho: ty Aug 11 20:19:17 testt : I thought I could develop similar Power-Amp. but I met wall in front of 10 band Equalizer Aug 11 20:20:02 maybe I and my team mates have to decline app price under 4$ :( Aug 11 20:20:05 choijuho: i am trying something like midi file creation and stuff, but i am learning it first Aug 11 20:20:34 it seems to be great Aug 11 20:21:08 in fact, I'm a geek but I never know about audio. Aug 11 20:21:16 Ah, the pricing. Aug 11 20:21:31 haskeller : heh :P Aug 11 20:21:56 choijuho: implement 2 band equalizer, expand from there? Aug 11 20:22:32 haskeller : no. since 2.3, 5 band equalizer is supported Aug 11 20:22:43 oops Aug 11 20:22:55 *not haskeller Aug 11 20:23:15 sorry Aug 11 20:24:14 p_l|ssh-broke : I'm not familar about using mIRC. sorry Aug 11 20:26:04 p_l|ssh-broke : If I go to 2 band equalizer, it will be free ap Aug 11 20:26:07 app* Aug 11 20:27:35 hmm Aug 11 20:28:19 guys are working hard maybe.. Aug 11 20:30:41 I'm boring even though I've not solved my app's problem yet. somebody play with me Aug 11 20:33:51 choijuho: ah, you're using framework's equalizer Aug 11 20:33:56 simple uestion but if I wanted two column layouts of buttons, would that just be two linear layouts? Aug 11 20:33:57 or something like that? Aug 11 20:34:05 choijuho: I thought you coded your own :) Aug 11 20:34:07 p_l|ssh-broke : yup Aug 11 20:34:55 p_l|ssh-broke : At first, I tried to customzing frameworks' equalizer Aug 11 20:35:20 if you're coding your own, start with 2 band, then work your way up Aug 11 20:35:39 p_l|ssh-broke : but failed. and then I tried to doing bit calculation but there was limit of band level, so also failed Aug 11 20:35:49 I don't remember everything, but I think starting with 2 band you get basic parts to make any number up Aug 11 20:36:19 that would be operating directly on the samples, of course Aug 11 20:36:36 p_l|ssh-broke : 2 band equazlier without using framework, do you mean this? :) Aug 11 20:37:00 *equalizer Aug 11 20:38:13 p_l|ssh-broke : can I do it? I have been just able to implement jog shuttle(rotary dial) for myself(own code) Aug 11 20:38:33 p_l|ssh-broke : I'm also like newbie :-[] Aug 11 20:39:21 p_l|ssh-broke : jog shuttle is for my app after benchmaking Power-AMP Aug 11 20:40:08 choijuho: I'm not talking about UI part, I'm talking about actually manipulating samples Aug 11 20:40:19 the maths should be easily lookupable online Aug 11 20:40:35 * p_l|ssh-broke seems to recall something about FFT, but is not sure - DSP is not his area of expertise Aug 11 20:41:02 p_l|ssh-broke : hmm... math.. Aug 11 20:42:38 p_l|ssh-broke : I hate math in deed. But If there is not other way for 10 ban equalizer, I will accept your advice ;] I will start to surfing web Aug 11 20:42:42 p_l|ssh-broke : ty Aug 11 20:43:24 choijuho: later you can get into coding it faster with NEON and such Aug 11 20:45:24 p_l|ssh-broke : haha. I can't do like it. hmm web surfing is not easy t.t Aug 11 21:03:09 p_l|ssh-broke : If I implement Equalizer in java, how to apply to MediaPlayer instance in Android? Aug 11 21:03:50 I already found basic algorithm for simple equalizer Aug 11 21:03:52 not sure if you can Aug 11 21:04:01 I think Power-Amp bypassed MediaPlayer totally Aug 11 21:04:03 p_l|ssh-broke : heh Aug 11 21:04:23 p_l|ssh-broke : hmmm Aug 11 21:04:37 p_l|ssh-broke : Oh my god Aug 11 21:07:10 p_l|ssh-broke : maybe NDK need? I think so. But I don't have experience about using NDK Aug 11 21:08:15 yep. Lots of learning before you... oh the places you'll go! ;P Aug 11 21:12:46 looks like hollywood finally recruited google to do their bidding in anti-piracy effortts Aug 11 21:13:17 well, i guess it was inevitable since they also need to be a content distribution company Aug 11 21:14:13 "Sites may not know about, or have the ability to easily challenge, notices sent to Google. And Google has set up a system that may be abused by bad faith actors who want to suppress their rivals and competitors," wrote John Bergmayer, a senior staff attorney with the digital rights group Public Knowledge. yeah, this is going to work well Aug 11 21:22:52 nice presentation on multiscreen patterns http://www.slideshare.net/preciousforever/patterns-for-multiscreen-strategies Aug 11 21:23:49 Thank you. Aug 11 21:26:27 hi there Aug 11 21:26:59 i have some kind of "config" object what shal be a adapter to getSharedPref. stuff Aug 11 21:27:12 so public class InterfaceSettings extends Activity right? Aug 11 21:27:46 if i do so, im unable to call it with a "InterfaceSettings savedSettings = new InterfaceSettings();" from the 'real' activity Aug 11 21:27:58 08-11 23:24:07.645: E/AndroidRuntime(6594): Caused by: java.lang.NullPointerException Aug 11 21:27:58 08-11 23:24:07.645: E/AndroidRuntime(6594): at android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java:146) Aug 11 21:28:10 null pointer *grrr* Aug 11 21:28:35 any hints on where to start? just experimenting around.. Aug 11 21:29:47 You do not manually instantiate activities Aug 11 21:30:57 so that means i cant use the SharedPrefs. stuff "like that"? Aug 11 21:31:29 It means you can't do InterfaceSettings savedSettings = new InterfaceSettings() if it's an activity Aug 11 21:32:34 y, point "i need to new it diffrent" or "sharedPrefs is not what i should use there"? or is the complete thinkpath already nonsense? ;D Aug 11 21:32:54 directly talking to a conetntprovider/sqlite? Aug 11 21:33:22 I doubt you want an activity Aug 11 21:35:44 that might be true ;D as saied, just poking around and strumbled uppon http://mobile.tutsplus.com/tutorials/android/android-application-preferences/ Aug 11 21:36:43 so what should i be looking for then? using a sqlite? Aug 11 21:36:57 Use sharedpreferences if you want Aug 11 21:37:03 Just don't make your wrapper an activity Aug 11 21:37:46 how? removing the extends brings me a "The method getSharedPreferences(String, int) is undefined for the type InterfaceSettings" Aug 11 21:38:02 do i just need to modify the call in "SharedPreferences savedInterfaceSettings = getSharedPreferences("eKomiInterfaceSettings", 0); "? Aug 11 21:38:31 getSharedPreferences is a method on Context Aug 11 21:38:38 Soo.. pass a context to your wrapper Aug 11 21:41:10 hm, so in the wrapper a "private Context nonsensename" would already do the trick? that seems weird to me, i asume it must be the upper context inerhittet trought all the layers or similar? Aug 11 21:43:13 If we want two columns of buttons on the layout, would it be a relativelayout iwth two linear layouts on it? Aug 11 21:43:49 nm Aug 11 21:50:09 are there any good articles that explain how to do up navigation right with SDK < 16? Aug 11 22:24:35 Are their any non-toy examples of using NDK? Real c++ I mean with classes and things like multiple cpp files in multiple sub directories? Aug 11 22:24:38 i think even the android team can handle up correctly :D up navigation behaves differently in the contacts app on ICS an JB Aug 11 22:25:37 izibi: maybe look at what iosched does Aug 11 22:47:35 Is it possible to show the in-app billing interface as a dialog..i.e. without switching activities? Losing GL context sucks..:(.. >= android 2.1 btw Aug 11 22:48:14 I think something got generated wrong and I don't know how to fix it. Aug 11 22:48:15 http://pastebin.com/Pst5Edfd Aug 11 22:48:24 It should be an easy solution I think. Aug 11 22:51:19 Tracks did you put that on Eclipse? Aug 11 22:51:26 yeah Aug 11 22:51:36 it has an unknown error not telling me what it is. Aug 11 22:52:26 Since I haven't read anything you've said before - if you did - those are two different files, yeah? Aug 11 22:52:36 no just one Aug 11 22:52:52 ido all the strings go under ? Aug 11 22:53:08 (And I was afraid of asking my last question.) Aug 11 22:53:26 Sure, but what about those buttons? Aug 11 22:53:33 shoudl it be