**** BEGIN LOGGING AT Wed Jan 09 02:59:59 2013 Jan 09 03:00:12 http://www.drdobbs.com/jvm/the-rise-and-fall-of-languages-in-2012/240145800 Jan 09 03:00:21 "However, I think the greater truth is that the language is in decline in its traditional settings, but that the popularity of Android has made up for the shortfall." Jan 09 03:00:27 aww, shit Jan 09 03:00:50 (about Java) Jan 09 03:01:29 what happened, probably, is .NET having more velocity than Java stuff as long as you're willing to run only on windows Jan 09 03:01:34 how Objc exists in any form is baffling to me Jan 09 03:01:35 :) Jan 09 03:01:44 jasta: it's not that bad Jan 09 03:01:56 better than C++ Jan 09 03:02:18 meanwhile Qualcomm robbed me of sleep Jan 09 03:02:42 p_l: perl is better than C++ Jan 09 03:03:06 a bit Jan 09 03:03:09 no, hehe, not true, but it did tickle me to say :) Jan 09 03:03:32 perl is in some ways very similar in its failings to C++ :P Jan 09 03:03:51 perl is dead - minecraft confirms it Jan 09 03:04:18 TIMTOWTDI etc. :) Jan 09 03:04:34 I use perl all the time. Jan 09 03:04:35 Leeds: ... dafuq? Jan 09 03:04:43 minecraft sucks. Jan 09 03:04:55 mind you, you aren't getting a flat what from me. Qualcomm used up my quota Jan 09 03:05:02 please... someone got that reference? Jan 09 03:05:19 Leeds: I don't play minecraft (it's vastly inferior to DF, after all) Jan 09 03:06:17 no? retro-slashdot-reference? Jan 09 03:06:26 people still read slashdot? Jan 09 03:06:44 no Jan 09 03:07:44 but back when they did, there was a running gag whenever something negative was posted that "X is dead/dying - netcraft confirms it!" Jan 09 03:07:45 oh god Jan 09 03:07:55 i still have slashdot on my google reader and it kills me every day seeing the headlines Jan 09 03:08:22 it's such rotten garbage now-a-days. Jan 09 03:08:32 Leeds: ahhh, netcraft Jan 09 03:08:34 just plain bad journalism. Jan 09 03:08:49 sorry, minecraft overrode possible understanding ;P Jan 09 03:08:54 jasta: it was never *good* journalism, but at least it was community at one point Jan 09 03:09:37 anyway, sorry, call that a failed attempt at a punny retro-reference Jan 09 03:10:43 Leeds: well yeah, but it's so bad that even lay persons can detect flaws or badly summarized articles Jan 09 03:10:52 it's so common place i'd say it's happenign on just about every article anymore Jan 09 03:11:01 it's been a zombie site for a long long time Jan 09 03:11:06 zombie? Jan 09 03:11:21 how so? Jan 09 03:11:38 oh, and in completely unrelated news, the walking dead game is really great. you guys have to buy it. Jan 09 03:11:44 badly summarized? They ever did something more than crappy misunderstood run-on sentence? Jan 09 03:11:48 romain tweeted about it a little while ago and damn he was right Jan 09 03:12:07 dead site still walking, with no sign of any direction or intelligence behind it Jan 09 03:12:27 I'm thinking of blowing the gaming budget on Bard's Tales, and few other things Jan 09 03:12:29 i think almost all social media suffers the same fate Jan 09 03:12:34 reddit now, HN next Jan 09 03:12:56 g00s: HN is already past that in a very specific way Jan 09 03:14:37 yeah HN fizzled out fast :) Jan 09 03:15:10 difference is that HN isn't trying to be a standalone commercially-viable site Jan 09 03:39:42 I never really read HN before November Jan 09 03:40:04 HN did get me to check out EC2 and things like that which was good... Jan 09 03:46:43 I'm using this http://reecon.wordpress.com/2010/04/25/uploading-files-to-http-server-using-post-android-sdk/ , to upload a database. However, my server reports the content-type as application/x-www-form-urlencoded , and fails, saying Invalid boundary in multipart form: '' (NB, server is in twisted python, but the content-type should be not that). Jan 09 04:00:11 Unlike intents, shared preferences don't allow serialized objects. Is it an anti-pattern to go ahead and serialize one - and store it as a string? Jan 09 04:01:44 is java Serialization still slow these days on dvm ? Jan 09 04:02:21 one of those things, that was a big topic long ago - not sure if it matters much any more Jan 09 04:06:43 i wonder if anyone stuffs JSON into SharedPrefs Jan 09 04:06:55 sounds kinda cheesy maybe Jan 09 04:13:17 well, i'm sure i'll have plenty more bad ideas before the week is up ;) Jan 09 04:19:50 Alright, I give up… is there some trick to making android:windowSoftInputMode="adjustPan" actually work? I have a pretty simple RelativeLayout activity with a handful of widgets on it, and when the soft keyboard comes up, it covers the bottom half of the view. Pretty common problem, from what I've discovered, but all the solutions tend to point to either adjustPan and/or some sort of ScrollView wrapper. None of those seem to do anything Jan 09 04:19:50 whatsoever. Jan 09 04:20:43 I'm trying to test in-app billing with an unpublished app. I'm getting an "item not found" error dialog from Google Play. Do I just need to wait a little while for the item to show up? Jan 09 04:24:20 bmwracer0: save it as a draft make sure its signed and make sure your items on the unpublished apk are published Jan 09 04:25:01 also make sure the apk youre running on your device is the same signed on which youve saved on dec console Jan 09 04:25:07 one* Jan 09 04:25:27 Trinity: Yeah it's the same signed apk. You mean put the item into the "to be activated" state? Jan 09 04:25:32 yes Jan 09 04:25:49 check over productId, and make sure the device youre using is a test account Jan 09 04:28:01 Sons of bitches... Sorry, but I can't stand people who are given something, and then criticize the person who gave it to them. Jan 09 04:28:35 Da_Rhyno: ? Jan 09 04:29:15 There's this one guy working on all the FreeBASIC compiler and libraries by himself, a guy asks for a recent build of it (one newer than the most stable build). Jan 09 04:30:37 So the coder gives him what he asked for. Well, it's not in a standalone zip, rather an installer. He starts complaining about it saying it's the "idiot's way of doing things" and goes on to say he won't use it. Jan 09 04:31:26 Trinity: in draft, same apk in both Play and on device (tried with both the developer account and another account which is in the testers list), item is in "Active" state. The id is "ad_free" in Play, as well as in the request in my activity. Any other ideas? Jan 09 04:31:59 it looks like the activity gets paused and recreated when the phone screen is flipped... Jan 09 04:32:10 cincinnatus: activityy lifecylce Jan 09 04:32:18 cincinnatus - hold up Jan 09 04:32:27 bmwracer0: wait a couple of minutes up to an hour or two Jan 09 04:32:39 bmwracer0: google billing always has shit errors rofl Jan 09 04:32:42 alright, I'm sure I'll let you know :P Jan 09 04:32:43 cincinnatus - Go into your manifest file. Jan 09 04:32:50 the xml one Jan 09 04:32:55 Let me know when you're there. Jan 09 04:33:08 bmwraer0: if you even wanted to expand to client > google > client > remote server Jan 09 04:33:17 let me know, its much secure and i'm working on a library for that Jan 09 04:34:30 Da_Rhyno: I'm there Jan 09 04:34:38 I have all my activities Jan 09 04:35:10 cincinnatus: whats your problem? Jan 09 04:35:31 In your element, Jan 09 04:35:46 well... essentially things get wiped off the map. It gets reloaded from scratch. Jan 09 04:35:50 some of my state includes objects Jan 09 04:35:51 Do you see something called android:configChanges? Jan 09 04:36:09 no, no configchanges Jan 09 04:36:12 Okay Jan 09 04:36:26 well, in your activity element, put this: Jan 09 04:36:43 android:configChanges="orientation" Jan 09 04:36:52 And see if that fixes it Jan 09 04:37:03 the documentation says it should be used as a last resort Jan 09 04:37:14 cincinnatus: you can set the activity's orientation in androidmanifest like da_rhyno suggested, but is this for a game? Jan 09 04:37:24 Trinity: what do you mean? like sending the purchase verification to a server I own? Jan 09 04:37:27 no, it's a map app Jan 09 04:37:32 bmwracer0: yea Jan 09 04:37:43 ah okay. right now I'm just doing something to disable ads Jan 09 04:37:52 bmwracer0: what happens with googles sdk for inappbilling, its relatively easy to hack Jan 09 04:37:55 Well, it's a way to avert the state change re-creating the app Jan 09 04:37:59 so I would have to save things like navigation parameters (origin, destination, etc) in shared prefs Jan 09 04:38:03 all data verification and nonce generation is done client sided Jan 09 04:38:08 Trinity: even v3 Jan 09 04:38:09 ? Jan 09 04:38:18 bmwracer0: from what i've read of it yes. Jan 09 04:38:33 Da_Rhyno: But wouldn't it prevent the automatic rescaling as well? Jan 09 04:38:48 bmwracer0: but for just disabling ads i believe v3 would be fine for recording the transactions Jan 09 04:38:50 I don't think so. Jan 09 04:39:10 That's handled by android:screenOrientation iirc. Jan 09 04:39:34 Do you have a device you can test it out with? Jan 09 04:39:36 still, what's the standard way of persisting state that consists of objects? I might have other scenarios too Jan 09 04:39:41 bmwracer0: keep in mind those who know how to hack it will always be less than those who might purchase it. if your app becomes relatively popular and people start spreading the hack online then thats when you have a problem. but otherwise i think you'd be fine Jan 09 04:39:45 like invoking another activity via intent and then coming back Jan 09 04:39:55 cincinnatus: can't you reload in onResume? Jan 09 04:40:15 You *could* try saving the data as an asset Jan 09 04:40:23 or onRestart() Jan 09 04:40:35 and then reloading it, if it doesn't reload in onResume Jan 09 04:41:27 i thought it was standard protocol to reload everything in onResume and onRestart Jan 09 04:41:28 Trinity: right, that's what I figured Jan 09 04:43:07 In onCreate(Bundle savedInstanceState), what does that parameter hold? Jan 09 04:43:36 I thought it contained stored data from a previously closed instance of it's Activity. Jan 09 04:44:02 Da_Rhyno: I believe you can save directly to that bundle in onPause/whatever Jan 09 04:44:32 not sure if you lose it if your application gets killed though Jan 09 04:44:55 Trinity - Yeah. In this book I've been reading, though, it says generally you save things as assets. Maybe it does lose it after the app gets killed. Jan 09 04:45:42 But that's strange, judging that onCreate comes up /before/ onRestart or onResume in the Activity Life Cycle Jan 09 04:45:45 in my experience i've always used either outputstream or preferences Jan 09 04:45:50 Ah Jan 09 04:46:20 but really, it depends on your applications. they all have their own benefits Jan 09 04:46:26 yeah Jan 09 04:46:41 outputstream sort of ensures that if your application gets removed and then the user reinstalled it they would keep their data Jan 09 04:46:48 unless they explicably deleted the data for that application Jan 09 04:53:16 Hi, anyone care to answer a question about WakeLocks? Jan 09 04:53:46 shoot Jan 09 04:54:14 So, I need to keep the CPU awake in an application where the service and the front end are split into 2 processes with android:process Jan 09 04:54:30 thast what wakelock is for Jan 09 04:54:40 question is... Jan 09 04:54:55 can I acquire a wakelock in one process and then release it in another process? Jan 09 04:55:41 even if the wakelock is static, my understanding is if run under different process, they'll be under different DalvikVM thus different classloaders, thus these will be different wakelocks? Jan 09 04:57:57 I believe you only need one instance of wakelock Jan 09 04:58:07 and as long as the activity that holds it doesnt die Jan 09 04:58:10 so...process A acquires wakelock, fires intent to start service B which runs in another process. Can I then release the wake lock inside the service thread? Jan 09 04:58:12 its fine Jan 09 04:58:40 yes you can, activity = ui, service = ui Jan 09 04:58:50 both are on the UI lifecycle Jan 09 04:59:05 but the service is explicitly specified to be run in another process Jan 09 04:59:21 anyone got a minute to glance at an Activity for me and tell me why it won't resize or pan when the soft keyboard comes up? Jan 09 04:59:24 i guess the question is... Jan 09 04:59:43 if I call PowerManager.newWakeLock with identical parameters, will I get the same wakelock? Hm... Jan 09 05:00:15 http://developer.android.com/reference/android/os/PowerManager.html#newWakeLock%28int,%20java.lang.String%29 Jan 09 05:00:24 "Creates a new wake lock with the specified level and flags. " Jan 09 05:00:38 Trinity: now I'm getting the following error from Play: "error retrieving information from server. RPC:S-5:AEC-0" Jan 09 05:00:59 bmwracer: what i meant by google billing is a piece of shit Jan 09 05:01:13 the impression from the API doc is that the wakelocks will be different between processes thus there is no way of transferring Jan 09 05:01:27 bmwracer: when i first started with billing it took me 20 days for google to solve an identical error Jan 09 05:01:50 bmwracer: http://www.youtube.com/watch?v=nI20hseZsZc Jan 09 05:01:56 but just to make sure - I've seen situations the docs had been a bit inaccurate :) Jan 09 05:02:08 thanks anyway... Jan 09 05:02:19 wolfier: i'd recommend to just run some tests with logcat Jan 09 05:02:27 that's a good idea Jan 09 05:03:39 thanks, gonna try this out.. Jan 09 05:05:58 Trinity: I can download other stuff from the market, etc. It's just when accessing my items in play Jan 09 05:06:04 via the api Jan 09 05:07:46 bmwracer0: i dont know what to tell you man, with billing its quite unpredictable Jan 09 05:07:50 what example are you using? Jan 09 05:08:01 the TrivialDrive and my own app Jan 09 05:08:15 hmm, have you added billing to manifest? Jan 09 05:08:27 yeppers Jan 09 05:08:28 maybe aidl? Jan 09 05:08:49 it's in both Jan 09 05:08:56 I don't think I'd have gotten this far without it Jan 09 05:09:48 try, https://developer.android.com/google/play/billing/billing_testing.html Jan 09 05:09:51 the last portion Jan 09 05:10:11 what helped fix my problem was I soomehow found a support thing where i can e-mail google Jan 09 05:10:20 and luckily for me they called me in 5 minutes and i reported the problem Jan 09 05:10:33 they told me it was a problem with their servers, my device, and my location or something like that Jan 09 05:10:59 after a couple of days it fixed itself Jan 09 05:12:20 got a link to that? Jan 09 05:12:33 sorry man, i cant find it anymore =[ Jan 09 05:12:41 it most likely got closed or something Jan 09 05:18:43 Trinity: I'm enraged :P The TrivialDrive demo app seems to be working, my app isn't ha Jan 09 05:19:25 hmm, what does logcat give? Jan 09 05:19:29 mind pasting it to pastebin? Jan 09 05:20:03 I'm still getting that RPC garbage on my own app Jan 09 05:21:04 so nothing in the logcat? Jan 09 05:21:15 check your pms Jan 09 05:21:50 kk Jan 09 05:22:52 for native android app, should it POST to server with aplication/json or application/x-www-form-urlencoded, which is more efficient? Jan 09 05:30:38 does anyone know if google in app billing still works when you publish to appbrain or amazon> Jan 09 05:36:09 I'm using this http://reecon.wordpress.com/2010/04/25/uploading-files-to-http-server-using-post-android-sdk/ , to upload a database. However, my server reports the content-type as application/x-www-form-urlencoded , and fails, saying Invalid boundary in multipart form: '' (NB, server is in twisted python, but the content-type should be not that). Jan 09 05:36:32 Hey canadian are you still here? Jan 09 05:46:10 good morning : ) Jan 09 05:54:48 Is there a way to fade an activity to grey.. almost like a half-opaque screen has been placed on top of the activity screen so nothing can be clicked? It would look similar to when a progressDialog appears, except I don't want any dialogs. Jan 09 06:10:36 hip2p: I've been using transparent dialogs for this Jan 09 06:12:28 hip2p: you can do it like this: https://github.com/adelnizamutdinov/Vibes/blob/master/src/com/stiggpwnz/vibes/fragments/TutorialFragment.java#L40-L56 Jan 09 06:13:05 thanks, stiggpwnz Jan 09 07:25:23 bloody typos. I did boundary as bondary Jan 09 07:28:04 The good part is you caught it. Jan 09 07:28:54 Had to go 3 or 4 levels deep into the standard python/twisted library to catch it. (The typo was in the android project though) Jan 09 07:58:27 Night_Raven Jan 09 07:58:30 damn it Jan 09 07:59:16 hello. I have LG Optinus One (P500) with Oxygen rom. How can install official LG rom??? Jan 09 08:00:08 ./join #android-root . This channel is for android appication development Jan 09 08:02:17 Someone remind me to write a service when I get back Jan 09 08:02:43 deepy, write a service that will remind you to write a service Jan 09 08:02:51 hi, anybody already using the google play private channels for distributing apps. we are trying to set it up and uploaded an app to the private channel but getting HTTP 500 when selecting the channel in the android device. anybody any xp? Jan 09 08:15:14 NightRavenXS: I don't know how to write a service but that actually sounds useful Jan 09 08:15:23 so I'll skip that and just make it fetch RSS or something like that Jan 09 08:16:47 you just gave me an app idea :D Jan 09 08:34:42 my app stats didn't update yesterday at all :o Jan 09 08:45:01 I was trying to get an ActionBar into my app Jan 09 08:45:17 But then I managed to do what I wanted to do with the menu button Jan 09 08:52:27 personally I dont like the concept of the android design guidelines Jan 09 08:52:43 it will make most apps all look and feel the same Jan 09 08:52:52 not sure I like that at all :) Jan 09 08:53:20 I hate apps that don't behave as expected Jan 09 08:53:27 i agree Jan 09 08:53:41 which the guidelines helps to deal with, if people follow them Jan 09 08:53:47 but expectation is not a path to a uniform design Jan 09 08:54:23 there are many elements of the guidelines that from a UI design stand are a bit.... well.... Jan 09 08:54:30 backward Jan 09 08:54:37 most people who don't follow the guidelines just fuck up their application trying to do an iOS copy Jan 09 08:55:06 but they're guidelines, not rules obviously ;) Jan 09 08:55:16 their choice to attempt a copy I guess Jan 09 08:55:18 I think it's more useful for people who don't know how android works Jan 09 08:55:26 Unless it's a game, use standard stuff Jan 09 08:55:36 but then again, there are things that iOS does that are simple yet far beyond android Jan 09 08:55:38 every iOS copy just fails on android Jan 09 08:55:49 Most of the upnp apps do that, and look lousy Jan 09 09:00:03 i think its best to follow the design guidelines, especially for navigation Jan 09 09:05:53 look & feel is different than that of course Jan 09 09:06:23 but I'm sure there's some exceptions where the guidelines won't work very well Jan 09 09:06:31 but I think it can be risky business Jan 09 09:08:02 risky if you haven't had experience in such things Jan 09 09:08:16 right Jan 09 09:08:52 you have to know what you're doing and how the platform behaves, not just assume it's just like iOS, like a lot of clients I've interacted with seem to do Jan 09 09:09:31 otoh, there are some design trends that transcend platform, such as "content is the interface" Jan 09 09:09:54 i guess its like anything, you can break the rules once you know them :D Jan 09 09:10:04 and do it with data to back up your decision Jan 09 09:10:20 err, is it 'okay' to use static functions on the Java side on things but then after the JNI translation have these methods call regular functions? Jan 09 09:10:24 in C++? Jan 09 09:10:29 never assume users have the same preferences as we do Jan 09 09:10:35 (whether dev or designer) Jan 09 09:11:24 the functions at the C++ side aren't even in a class, so I presume that makes them global? Jan 09 09:12:06 no that makes them free Jan 09 09:12:11 one sets up the graphical environment (OpenGL ES C++) and the other is the step() function to draw it Jan 09 09:12:18 hello peeps, what is the approach on supporting multiple languages in your android app ? Jan 09 09:12:23 Zharf: free? Jan 09 09:12:32 non-member functions in c++ are called free functions Jan 09 09:13:12 Zharf: ah, good! :) learned something already Jan 09 09:13:12 but I don't understand your question Jan 09 09:13:49 Zharf: I'm adapting an Android project to use another c++ lib, but where I first just drew a triangle, I now need to keep state Jan 09 09:13:57 eg have members that will keep said state Jan 09 09:14:14 you have static methods in a java class that you call from c++ and you want to call the non-static methods from the static ones? Jan 09 09:14:26 I call the c++ from Java Jan 09 09:14:33 Java > JNI > C++ Jan 09 09:14:58 static render() -> JNICALL blah blah render() -> render() Jan 09 09:15:12 ok so what's the problem? Jan 09 09:15:32 now these C++ functions are free functions, which can't save state Jan 09 09:15:42 so I should refactor them to live in a class Jan 09 09:15:52 which I then can assign members Jan 09 09:16:09 and use those members in the init() and step() functions Jan 09 09:16:29 you'll need an instance to call those functions on Jan 09 09:16:45 Zharf: indeed, but I don't know where I need to create it Jan 09 09:17:17 in the JNI call to init();? Jan 09 09:18:02 you can make the java call create it and return the pointer to java (as long) so the java can pass it along, or make it a singleton or something Jan 09 09:20:26 hmm yeah, I guess a Singelton would be the easiest to make sure it's visible to all c++ classes Jan 09 09:20:49 what would be the benefit of returning a pointer (long) to Java? Jan 09 09:20:59 you can have multiple instances Jan 09 09:23:48 so I'd best make a Core singleton Jan 09 09:24:15 which I'll then give an Core->getInstance()->init() and Core->getInstance() render Jan 09 09:24:38 and as the singleton isn't static, I can issue it members, right? Jan 09 09:26:09 singleton is just an object which will have only one instance ever Jan 09 09:26:17 and you don't need pointers to implement it Jan 09 09:27:24 by default, is the sqlite databases encrypted? Jan 09 09:27:36 nope Jan 09 09:27:49 wouldn't do much good anyway Jan 09 09:28:24 hmm, i think my uploading via form-multipost isnt' working well then. Jan 09 09:28:41 since you have to store the decryption key on the device, making decryption trivial Jan 09 09:28:52 Maurits_: what about encrypting the key? ;) Jan 09 09:29:04 what about encrypting the key of the key!? ;) Jan 09 09:29:11 with rot-26 Jan 09 09:29:22 That's gotta be secure right? Jan 09 09:29:23 double-rot-26 is stronger Jan 09 09:36:17 hmm, i can't pull a database off a virtual device Jan 09 09:38:12 Leeds: anything from CES catch your eye? only thing I found exciting was the lilliputian nectar Jan 09 09:38:27 but, i didn't read much about the show Jan 09 09:38:28 Xperia Z? Jan 09 09:38:36 neither did I Jan 09 09:38:45 yeah, dust and water resistant - nice Jan 09 09:38:48 but XZ is powerful and it's completely water resistant Jan 09 09:39:11 g00s, even Tegra 4 didn't catch your eye? Jan 09 09:39:50 hmm, we have to compare it to new stuff from qualcomm Jan 09 09:39:58 not sure who wins Jan 09 09:40:13 i think again they dont have LTE on chip Jan 09 09:40:29 so, again , more power for their solution because you need a separate chip Jan 09 09:41:13 meanwhile, seems like Intel was really laying it on thick with some new bogus marketing numbers Jan 09 09:41:28 again, will have to see the real benchmarks ;) Jan 09 09:41:54 there was a 24 inch android monitor Jan 09 09:42:02 god Eclipse is such a pos Jan 09 09:42:19 belgianguy, pos? Jan 09 09:42:22 annoying me with errors which aren't errors, just its inability to correctly identify includes Jan 09 09:42:34 having problems with R? Jan 09 09:42:37 :D Jan 09 09:42:43 NightRavenXS: expletives, no C++ Jan 09 09:42:43 it seems to me like google's android source uses git, yet its not a git repository? I'm trying to fork it into a github repo and keep all of the previous commits.... Jan 09 09:42:50 yet half of the repos i need aren't located on github.com/android, and I don't know how to fork from google source? Jan 09 09:43:01 wondering if anybody knew how? Jan 09 09:43:07 baseline align does not work when two elements does not have same parent? Jan 09 09:48:23 something15525: might want to start at http://source.android.com/source/index.html Jan 09 09:49:03 Maurits_: lol i know how to repo init and such Jan 09 09:49:25 Maurits_: but i want to know how to fork specific repos from AOSP into a git repo Jan 09 10:02:05 I made a custom dialog with an EditText and two buttons, when I click on one of the buttons I want to access the value entered Jan 09 10:02:26 I'm using ABS in my application and calling setTitle on ActionMode does not lead to any change in the action bar title Jan 09 10:02:27 any ideas? Jan 09 10:02:45 Judging from Google I need to journey to mount doom and back and everyone seems to suggest I go to Norway instead. How would I solve this and why isn't it just giving stuff as arguments to onClick? Jan 09 10:03:39 deepy: this is covered in the very first tutorial on the android site Jan 09 10:08:09 hi everyone Jan 09 10:08:49 I have a spinner that depending on the element selected changes the adapter in a listview Jan 09 10:09:28 the elements in the listview have a "self-delete" button, so they disappear from the view and the adapter (remove method in the adapter) and they do so Jan 09 10:09:38 Apart from the "why isn't it an arg" part I feel kinda silly now. but it does give me a NullPointerException without me having any good clue on why Jan 09 10:09:57 but when changing the selection in the spinner and getting back to the adapter where something has been deleted it will appear again Jan 09 10:10:04 any clue about this? Jan 09 10:28:47 Hey Jan 09 10:29:03 i found that my nexus 7 has no nativ support for divx or xvid, how do i add it? Jan 09 10:29:53 BrixSat: write new libraries for the GPU / video accelerator (or just compile libxvid for the CPU and use it in your player, or just download Daroon) Jan 09 10:30:52 Ge0rG: i use the native player encapsulated in an app, can i still use the compiled in the libxvid? Jan 09 10:31:02 BrixSat: don't think so Jan 09 10:31:24 I am not aware of means to extend the native video player with decoder libraries; but then again I did not look into it Jan 09 10:31:30 I think third-party media players mainly fall back to ffmpeg for unsupported codecs Jan 09 10:31:42 BrixSat: typically the supported video formats are dictated by the platform drivers Jan 09 10:31:56 well, VPlayer does use ffmpeg. Dunno about others Jan 09 10:31:58 probably so, yes Jan 09 10:32:28 humm any one of thoose players that have embeded codecs is open source? Jan 09 10:33:05 typically, their ffmpeg port/implementation is open, but their UI etc. isn't Jan 09 10:33:23 or the developers just don't care Jan 09 10:33:28 happens often enough Jan 09 10:33:38 i would just want the player it self the ui is not an issue Jan 09 10:35:40 https://sites.google.com/site/mxvpen/ffmpeg Jan 09 10:35:41 all the examples i saw use MediaPlayer.create(...) wich will lead me to the same point Jan 09 10:36:03 anyone knows some android lib that lets you cartoonize a given picture? Jan 09 10:36:06 just install vlc Jan 09 10:36:48 deebo: vlc will play the videos not be a video player inside my app Jan 09 10:37:14 Leeds: ive been there and that is " How to build FFmpeg for MX Player " for mx player, not the mxplayer it self Jan 09 10:37:21 ofcourse when I'm in the midst of an super complex debugging session, Eclipse crashed Jan 09 10:37:24 * belgianguy sighs Jan 09 10:37:54 BrixSat: correct - as I said, that's the open source ffmpeg library they use, not their proprietary UI etc... you get to take that ffmpeg library and embed it in your own app Jan 09 10:38:06 Fun fun fun! Jan 09 10:38:07 yes i know :( Jan 09 10:38:13 why dont you build something yourself based on gstereamer? Jan 09 10:38:24 but if they have done it... i was expecting some generous sould would make it open source Jan 09 10:38:44 valgrind: will look into it Jan 09 10:38:49 no, it's quite possible that nobody has written your app for you Jan 09 10:38:58 maybe there is some open source video player already... Jan 09 10:39:26 also, of course, as I said on #android - xvid is a pretty old codec nowadays anyway, so if you're planning to play your own video you should be looking at newer codecs Jan 09 10:40:24 not sure if there's some kind of free video player that you can embed, but actually you can create your own based on gstreamer, as i was saying... which is actually used by many many well known players Jan 09 10:41:24 it is actualy a vergy good idea for a project to dev a small simple player based on it Jan 09 10:42:40 https://github.com/commonsguy/vidtry iv found one here Jan 09 10:43:32 what is the manifest syntax to say that my app is using bluetooth, but does not depend on it being there? Jan 09 10:44:56 Ge0rG: uses-feature required="false" Jan 09 10:45:25 Leeds: is the BT uses-feature added implicitly if I request android.permission.BLUETOOTH? Jan 09 10:45:39 http://developer.android.com/guide/topics/manifest/uses-feature-element.html#bt-permission-handling Jan 09 10:45:50 Leeds: thanks Jan 09 10:46:24 how to align element relative to 2nd element center, like alignTop, or layout_below/above Jan 09 10:46:34 gstreamer for Android http://gstreamer.freedesktop.org/modules/gst-android.html Jan 09 10:48:22 baseline align does not work when two elements does not have same parent Jan 09 10:48:59 valgrind: that is for OS builders who want to replace Android's existing media framework with gstreamer - not useful for your typical app developer Jan 09 10:49:52 http://docs.gstreamer.com/display/GstSDK/Installing+for+Android+development is likely to be more useful Jan 09 10:50:18 i was checking that link rightnow Jan 09 10:54:54 is it possible to test for network connectivity from a service instead of a Broadcast Reciever? Jan 09 10:58:17 valgrind: the gts for android has no source code Jan 09 10:59:29 is there a more elegant way to stop communicating with an NFC tag than turning off the screen? Jan 09 11:02:50 hi, anybody already using the google play private channels for distributing apps. we are trying to set it up and uploaded an app to the private channel but getting HTTP 500 when selecting the channel in the android device. anybody any xp? Jan 09 11:03:39 has no sourcecode? have you checked the repository? Jan 09 11:03:50 the git repo i mean Jan 09 11:16:18 Is http://ormlite.com/ a recommended solution for persistence? Or stick with straight out boilerplate to sqlite Or an alternative? Jan 09 11:20:17 * Zharf would use ormlite Jan 09 11:25:06 has anyone used ABS? Jan 09 11:25:40 thanks Zharf I will give it a go :) Jan 09 11:38:36 g00s: I wonder if people would buy commercially-sold libs for developing on android... Jan 09 11:38:44 (outside of the well-established game engines) Jan 09 11:39:43 these hands-off demos of Ubuntu for Smartphones look awesome Jan 09 11:41:01 Chainfire: I'm not too enthusiastic about Ubuntu on smartphones -- frankly speaking, I don't have much trust in their dev. ability :) Jan 09 11:42:38 I wasn't either but these videos look pretty good Jan 09 11:42:49 Chainfire: "look" Jan 09 11:43:01 I feel a sense of dread of what I'd find if I look underneath Jan 09 11:43:23 isn't that true for all smartphones Jan 09 11:43:27 p_l: why , devs buy commercial iOS libs Jan 09 11:43:59 Chainfire: yes, but Ubuntu manages to make despair even on desktop Jan 09 11:44:11 *make me Jan 09 11:45:48 stiggpwnz: well, I haven't seen much of that in android area Jan 09 11:45:54 external services, yes, but not libs Jan 09 11:46:33 p_l: me neither, but maybe it's not time yet Jan 09 11:48:02 p_l: take Vitamio mediaplayer lib, they could make it commercial, and devs would buy it, I think Jan 09 11:49:02 p_l: because it's not so widely spreaded like ABS, for example Jan 09 11:49:56 p_l: and if they add, for example, streaming music caching, I would buy it myself Jan 09 11:50:20 p_l: because I'm struggling with this thing right now Jan 09 11:50:57 stiggpwnz: I was thinking of something along the lines of "sync support" lib, that would deal with synchronizing complex data between devices Jan 09 11:51:42 p_l: but it's not just lib, it will be a whole service Jan 09 11:51:58 p_l: with servers and everything Jan 09 11:52:31 nope Jan 09 11:52:41 it would contain both server and client software Jan 09 11:52:50 for integration with your own system Jan 09 11:53:04 (cause I don't wanna deal with things like privacy laws :D) Jan 09 11:53:06 how to get id of (View) passed to onClick function? Jan 09 11:53:21 view.getId() Jan 09 11:54:08 p_l: I think you should write one : ) Jan 09 12:01:48 params.addRule(RelativeLayout.ALIGN_BOTTOM, view.getId()); Jan 09 12:01:53 doesnt work as expected Jan 09 12:02:05 it doesnt dynamically move that layout Jan 09 12:02:08 stiggpwnz: well, it sounds like interesting project Jan 09 12:03:56 squ: maybe you forgot to remove some rule, maybe the view was previously aligned to top? Jan 09 12:05:48 ah yes! Jan 09 12:06:58 hm, but how to clear rules? Jan 09 12:10:52 squ: http://developer.android.com/reference/android/widget/RelativeLayout.LayoutParams.html#removeRule(int) Jan 09 12:13:39 how to enum values that are set? Jan 09 12:14:09 Does someone know how to use the clipboard service via adb shell for ICS or later? Jan 09 12:17:56 which values is that 2131296332 ? Jan 09 12:19:32 p_l: not sure; i thought there were a few offerings like that https://code.google.com/p/openmobster/ Jan 09 12:19:33 removeRule is not available in api 8 Jan 09 12:19:34 :( Jan 09 12:19:57 Chainfire: i was interested in Ubuntu Phone too, but i'm not very hopeful :( Jan 09 12:20:08 if anyone know ormlite && android... whats the purpose of this config file is it necessary or can I use annotations instead? http://ormlite.svn.sourceforge.net/viewvc/ormlite/examples/android/ClickCounter/res/raw/ormlite_config.txt?revision=2437&view=markup Jan 09 12:21:02 p_l: i've decided to never try and implement my own industrial strength middleware; i confess to just running for MQ or whatever when needed Jan 09 12:21:13 i'l never do a better job Jan 09 12:21:25 industrual strength middleware is a bitch to get right Jan 09 12:22:28 g00s: well, it's more a case of syncing the devices right - the server-side might connect to MQ or whatever Jan 09 12:24:13 hi guys i have a stream running on http://ip:8080 i would like to stream it on my android phone Jan 09 12:24:18 what is the easiest way? Jan 09 12:40:54 squ: I guess you'll have to always allocate new params from scratch, and add them to your view Jan 09 12:41:18 squ: i've never really worked with them before, so Jan 09 12:41:34 squ: my advices was mostly a suggestions Jan 09 12:43:47 ciphered: I don't know, try and google it: http://stackoverflow.com/questions/4068306/how-to-play-streaming-audio-video-from-a-url Jan 09 12:48:23 hmm, I have this include that works (doesn't throw an error) Jan 09 12:48:25 #include "../cots/bullet/src/BulletCollision/BroadphaseCollision/btBroadphaseInterface.h" Jan 09 12:50:42 but the .h file has includes that just say #include "LinearMath/btScalar.h" //for SIMD_FORCE_INLINE Jan 09 12:51:15 and if I add ${workspace_loc:/cots/bullet/src} to my Paths & Symbols, it still won't resolve Jan 09 12:51:41 is it something with the first include that might make the compiler look in the wrong directories? Jan 09 13:03:55 g00s: btw, did I tell you that I managed to get N4 to hang in normal use? :D Jan 09 13:08:20 hmm, I'm theorizing Eclipse can't work out my includes because ndk-build is doing the compiling Jan 09 13:08:43 how can one provide extra c++ include directories to NDK? in the makefiles? Jan 09 13:12:09 -I Jan 09 13:13:21 monsti: I addded LOCAL_C_INCLUDES := cots/bullet/src to Android.mk and Eclipse seems happy Jan 09 13:17:33 guys Jan 09 13:17:44 i need to develop a small software that streams a URL Jan 09 13:17:48 is that difficult? Jan 09 13:17:55 any APIs for that? Jan 09 13:19:50 or another solution is to stream the content in a webbrowser Jan 09 13:21:47 well, given that Flash is out, don't know what else would lend itself to streaming to all devices Jan 09 13:21:55 streams a url? What are you streaming ciphered Jan 09 13:23:50 re: dagger.. the following code startActivity(new Intent(c.get(),CreateActivity.class)); doesnt create "CreateActivity" using dagger, so @Inject fields are null. How can I fix this? Jan 09 13:24:03 i am streaming an ogg file Jan 09 13:24:16 i want people to via that stream from the webrowser Jan 09 13:24:21 on the android Jan 09 13:24:46 so only audio? Jan 09 13:24:48 how to block click to underlying element when it is overlapped ? Jan 09 13:24:59 doesn't MediaPlayer support audio streams? Jan 09 13:25:03 from the internets Jan 09 13:26:02 yep it does Jan 09 13:30:46 belgianguy: yes Jan 09 13:39:53 ok i am in android emulator how do you flip the window when it goes in to landscape mode Jan 09 13:41:03 ctrl-F12 should do it Jan 09 13:41:30 if you're on windows, at least. Jan 09 13:43:25 ty Jan 09 13:43:31 i am on win 7 Jan 09 13:44:12 Hi guys, is it poosible to start the menu activity at the click of a software button, rather than the hardware menu button on the device? Jan 09 13:44:32 why do you want to do this? Jan 09 13:46:45 spobat: Some client gave me an app to develop, it works fine with the phone but he can't get it to work on his Android goggles as he uses a remote which has no button to map with the 'Menu' button on the phone. Jan 09 13:46:49 someone here know how to climb in play search results beside changing your description or app name? Jan 09 13:47:25 nmvictor: do you mean the application launcher with menu? Jan 09 13:47:44 how long does it take the emulator to boot Jan 09 13:48:02 it's been going for 5 mins Jan 09 13:48:03 or are you/your client anyway developing deprecated apps, and you are talking about the menu key, that has been on old android phones beside the back key? Jan 09 13:48:23 nmvictor, openOptionsMenu Jan 09 13:48:42 timroes: not sure i meant that Jan 09 13:49:25 spobat: is it a global method, or how do i call it? on which object is it bound to? Jan 09 13:49:32 spobat: thanks btw, Jan 09 13:49:38 Activity Jan 09 13:49:55 okay so he is telling about the deprecated menu stuff Jan 09 13:49:59 it's a instance method bt Jan 09 13:50:10 I assume so Jan 09 13:50:33 spobat: yea, it. thanks a lot bro Jan 09 13:51:08 np Jan 09 13:53:58 does it have to be in landscape b4 i push ctrl-F12 Jan 09 14:08:02 Hey guys, how do I make a view which pops up a menu (without closing the previous Activity) and blurs the background? Jan 09 14:08:41 a dialog? Jan 09 14:09:19 jeppy, seems like it. I forgot the name, thanks a bunch :) Jan 09 14:10:07 search for how to do DialogFragment s Jan 09 14:11:15 Or if you don't support Fragments, there is also alertdialog.builder Jan 09 14:11:18 jeppy, that's compatible with API level 10 I think? Jan 09 14:11:52 Fragments were introduced in api 11 honeycomb Jan 09 14:11:57 >.< Jan 09 14:12:14 but support libraries allow them to be used back to api 4 Jan 09 14:12:28 Is there any way to run my emulator faster? It is way too slow. Jan 09 14:13:01 bluwhale, http://amitcs.wordpress.com/2012/12/07/how-to-speed-up-the-android-emulator-by-up-to-400/ Jan 09 14:13:16 run android in a virtualbox :) Jan 09 14:13:29 jeppy, support libraries? Jan 09 14:15:07 iLike, http://developer.android.com/reference/android/support/v4/app/package-summary.html Jan 09 14:15:19 it's in the SDK folder Jan 09 14:15:33 Cool, thanks :D Jan 09 14:16:05 iLike, also this: http://developer.android.com/tools/extras/support-library.html Jan 09 14:18:22 when using the support library for Fragments, be sure to call getSupportFragmentManager() where you would normally call getFragmentManager(). Also make sure you import classes from the support library where necessary (instead of the mainstream counterparts) Jan 09 14:44:54 Hi guys, which directory is available to write a file in it on android, other than on the SDcard ? Jan 09 14:45:11 H3bus, shared or just for temporary storage? Jan 09 14:45:13 I tried to write in /data, but i don't have access Jan 09 14:45:17 temporary Jan 09 14:45:28 H3bus, context.getCacheDir() Jan 09 14:45:35 will give you the cache directory meant for temporary storage Jan 09 14:45:49 Mavrik: great, i'll try that Jan 09 14:46:02 H3bus, context.getExternalCacheDir() will give you cache directory on SD card Jan 09 14:46:16 on most devices the first one is on /data partition and the second one is on /sdcard/.android/ Jan 09 14:46:26 but use those API calls to make sure it works everywhere :) Jan 09 14:46:43 H3bus: http://developer.android.com/guide/topics/data/data-storage.html Jan 09 14:46:46 hello Jan 09 14:46:56 i have an audio stream http://ip:8080 Jan 09 14:47:03 i would like to stream that in a browser Jan 09 14:47:06 including android browser Jan 09 14:47:19 so when a client go into http://server he can play the stream Jan 09 14:47:22 how can i do that? Jan 09 14:47:45 ciphered: you would need to use html5 player so the stream plays Jan 09 14:48:10 most modern browsers including android and iphone support html5? Jan 09 14:48:24 yes Jan 09 14:48:37 thank you Jan 09 14:48:39 the main reason of html5 is universality Jan 09 14:49:06 just check the stream format to be compatible with html5 of android Jan 09 14:49:20 the stream format is ogg Jan 09 14:49:28 its a source mp3 getting converted into ogg Jan 09 14:49:31 but its not a file Jan 09 14:49:34 its a stream Jan 09 14:49:41 so i need to point from html5 to a stream not to a file Jan 09 14:49:43 if the output stream comes in ogg its ook Jan 09 14:49:44 dunno if this is possible Jan 09 14:50:03 i have made apps that play stream nicely Jan 09 14:53:49 Thanks iLike Jan 09 14:54:04 hi, anybody already using the google play private channels for distributing apps. we are trying to set it up and uploaded an app to the private channel but getting HTTP 500 when selecting the channel in the android device. anybody any xp? Jan 09 14:58:43 Hi All!, What is the best option to get a crash log in Android, with an application that isn't in Play Store yet? Jan 09 15:00:15 anelrh26: for android < 4.1 you can just ask the user for using logcat reader or some other app, for 4.1+ you just can get the log in your app without any needed permissions Jan 09 15:00:43 anelrh26: you could also use com.nullwire.trace to capture app crashes Jan 09 15:01:58 Thanks Ge0rG! Jan 09 15:02:14 Hello! When layout called in View? Jan 09 15:02:35 according activity life cycle Jan 09 15:03:34 i.e. when i can run code which requires called layout method? Jan 09 15:03:54 xgear: According to the life cycle the layout should be called in the on create method Jan 09 15:04:33 so in onStart i can run my code? Jan 09 15:07:00 ***onCreate()*** Jan 09 15:07:01 Called when the activity is first created. This is where you should do all of your normal static set up: create views, bind data to lists, etc. This method also provides you with a Bundle containing the activity's previously frozen state, if there was one. Always followed by onStart(). Jan 09 15:07:15 ***onStart()*** Jan 09 15:07:16 Called when the activity is becoming visible to the user Jan 09 15:07:26 anelrh26: links to the documentation work just as well. Jan 09 15:07:47 oh ... Jan 09 15:09:14 so, i use this method to check if my text in TexView elipsized http://stackoverflow.com/questions/4005933/how-do-i-tell-if-my-textview-has-been-ellipsized but it works only after layout phase of View. Jan 09 15:09:57 in click listener of this view it works fine Jan 09 15:11:13 but i want to call it not "on demand", but i can't determine this time when this code will work Jan 09 15:16:35 xgear: it should work at any time after the textview has been laid out. Jan 09 15:16:58 iirc setContentView performs the layout immediately, so you should be able to call this after you call setContentView, set the text in your textview, etc. Jan 09 15:17:35 and if i call setText not in onCreate? Jan 09 15:18:04 maybe it will help me http://developer.android.com/reference/android/view/ViewTreeObserver.html Jan 09 15:18:40 evenin' folks Jan 09 15:18:47 I don't recall how the laying out works once you call setTextView. I'm pretty sure that invalidate() is called, though I don't know when you'd get the callback. Jan 09 15:19:13 Quick question - I am reading exif datetime info from an image, and all is fine and well, but I need to be able to change the format of the String in the exif to a different date format. Jan 09 15:19:25 i.e. I need to parse a date from a string without knowing what format that string will be in. Jan 09 15:20:40 Tee_Pee: http://developer.android.com/reference/java/text/DateFormat.html Jan 09 15:20:41 Tee_Pee: that's called mind reading Jan 09 15:20:47 try DateFormat.parse() Jan 09 15:20:53 hmm Jan 09 15:20:59 actually, no, that requires the format to be known ahead of time. Jan 09 15:21:15 try calling setLenient first? Jan 09 15:21:21 monsti - no, it's called generic case Jan 09 15:21:28 hold on, let me try Jan 09 15:21:33 lov: anyway thenks. :) Jan 09 15:21:37 *a Jan 09 15:22:28 Tee_Pee: well try guesing Jan 09 15:22:52 DateFormat and assume different formastrings - get the first match Jan 09 15:23:12 thats all compters can do in 2013 Jan 09 15:23:14 You don't understand - I need to parse a date from an image's exif... exif info is all but standardized. Different phone cameras might write it differently, and the user might have images made with cameras on the phone as well. Jan 09 15:23:43 yeah i understand ;) Jan 09 15:23:46 Yes, I am aware of that... but as lov pointed out, methods for this exist. Jan 09 15:23:46 Tee_Pee: take a look at http://stackoverflow.com/questions/3389348/parse-any-date-in-java Jan 09 15:24:44 That's a recipe for disaster.. there's just no difference between 01-02-2013 as the second of January and the first of February. Jan 09 15:25:11 Best you can do is poke around with a list of formats and an exception handler. Jan 09 15:25:16 Dudes lets say that a i have activities A,B,C,D i start with A. Then i go B->C->D . while cycling between D and C i want things to be added in A .How can i do this ? Jan 09 15:25:49 TheTrash: yeah - that's why i call this mind reading Jan 09 15:25:50 Parhs: put them in a database or other storage and look for them when you start 'a' Jan 09 15:26:23 TheTrash: also 12.12.13 Jan 09 15:26:30 what dragorn said Jan 09 15:26:39 have A check for values in its onResume or onStart Jan 09 15:26:42 monsti: that's an accurate description :D Jan 09 15:26:48 when 'a' is stopped it may not even exist anymore Jan 09 15:27:01 technically you could use some sort of observer, but yeah, A may be destroyed and recreated later Jan 09 15:27:04 TheTrash: well could be a time ;) Jan 09 15:27:11 lov: getViewTreeObserver().addOnGlobalLayoutListener - solution Jan 09 15:27:15 Haha yeah Jan 09 15:27:18 xgear: neat, good luck Jan 09 15:29:23 well, this is buckling up to become a nightmare on its own. Jan 09 15:29:27 Tee_Pee: http://code.google.com/p/metadata-extractor/source/browse/Source/com/drew/metadata/Directory.java public java.util.Date getDate(int tagType, @Nullable TimeZone timeZone) Jan 09 15:29:27 { Jan 09 15:29:32 hi, did anyone already solve this issue? http://stackoverflow.com/questions/14238366/list-map-marker-clicks Jan 09 15:29:51 "// This seems to cover all known Exif date strings" Jan 09 15:29:56 Not sure if he's right Jan 09 15:30:06 But he's obviously spent some time with it. Jan 09 15:30:29 Tee_Pee: While exif can be a mess I think date is fairly regular: YYYY:MM:DD HH:MM:SS Jan 09 15:31:37 Aye, but here's the thing... when I get images from the server, I always have the same format: yyyy-MM-dd'T'HH:mm:ss'Z' Jan 09 15:31:56 the problem is now the user uploading the image to the server Jan 09 15:32:15 I need to take whatever is in the exif and turn it into that same format, so I can do my local caching and sorting logic. Jan 09 15:32:47 the exif should always be YYYY:MM:DD HH:MM:SS in the date tag Jan 09 15:33:08 so you should be able to translate it easily Jan 09 15:33:57 that's what I'm wondering - can I rely that it will ALWAYS be in that format? Jan 09 15:34:26 when I call it via ExifInterface ei.getAttribute(ExifInterface.TAG_DATETIME) Jan 09 15:34:49 if they expect their exif data to be read by anything, yeah. Jan 09 15:35:02 Ugh, why is my ExifInterface.TAG_ORIENTATION always 1? Jan 09 15:35:46 your phone is in the closet. Good job on outing it. Ass. Jan 09 15:36:00 dragon if i dont want to use database as they are temp data where should i put them ? Jan 09 15:36:12 application context ? singleton ? Jan 09 15:36:14 lov, :( Jan 09 15:36:50 Tee_Pee since it is standard format i cant understand what is the problem Jan 09 15:37:30 Parhs - I was unsure whether there is an enforced standardization at all. I thought that it's locale dependant Jan 09 15:37:59 Parhs: use a singleton or something. It's really up to you, because you're the one who knows what kind of data this is. Jan 09 15:38:11 Don't use the application context unless you really need it for something. Jan 09 15:38:41 is it possible to stop a service plus all the theads started within it (as inner and anonymous classes) when the Activity goes to stop()/destroy() Jan 09 15:39:06 the service is bound to the activity in question Jan 09 15:39:55 Quick question about gestures: Are left/right/up/down operations not supposed to work that well with with gestureoverlayview? I have made so many of those gestures with the gesture builder, but still can't get very accurate results. Jan 09 15:39:57 Up/down/left/right gestures are detected very nicely with the gesturedetector Jan 09 15:39:57 Through the fling function. Jan 09 15:40:33 nmvictor: sure. Call stopService. The Service itself will have to handle the bookkeeping of ending all of the threads, etc. Jan 09 15:43:11 hi what audio format is supported in firefox? i am trying to use ogg in html5 not working fine Jan 09 15:43:13 please advise Jan 09 15:44:44 ciphered: google sometimes works ok if you use it https://developer.mozilla.org/en-US/docs/HTML/Using_HTML5_audio_and_video?redirectlocale=en-US&redirectslug=Using_HTML5_audio_and_video Jan 09 15:44:50 that seems to work Jan 09 15:44:56 thanks for the help anyone Jan 09 15:44:59 everyone* Jan 09 15:45:00 lov: Thanks, but I think I have stopService() in the activities onDestroy() but the thread still runs, sending Toast messages to screen even when I am on other activities. Any clue why? Jan 09 15:45:03 been a long day -_- Jan 09 15:45:34 The Service itself will have to handle the bookkeeping of ending all of the threads, etc. Jan 09 15:45:48 Hi guys, can someone tell me why aways when i want to Run app in Eclipse or when i want to export app i always get the aapt.exe stopped working error exception Jan 09 15:45:48 by which I mean "You will have to modify your service's onDestroy to handle stopping your threads, etc" Jan 09 15:46:12 DOSP: .... no? Sorry, file a bug on b.android.com? Jan 09 15:46:13 Hi. Is ANativeWindow_* functions thread safe? can't see any documentation regarding this. Jan 09 15:47:13 jadahl: not a clue. Take a look at the Window java class. Jan 09 15:47:17 i dont undestand the part about "file a bug on b.android.com ? ?? " Jan 09 15:50:45 lov : but some people say it is bad to use singleton or dangerous ? Jan 09 15:50:58 Guys, i want to know what is the audio supported format supported by firefox in android OS Jan 09 15:51:23 ciphered: Pretty sure .wav and .mp3, may be others. Jan 09 15:51:53 mp3? aare you sure you can play mp3 from firefox in android? Jan 09 15:51:54 coz its not Jan 09 15:52:10 Parhs: singletons can be abused, that doesn't mean that they're bad. Jan 09 15:52:35 ciphered: why are you asking us? Why aren't you asking mozilla? Jan 09 15:52:48 ciphered: Sorry, missed the firefox part. Not sure then, ignore what I said. Jan 09 15:54:02 lov: thanks. looked at the source code. doesn't look very thread safe. Window class had no thread documentation either. do you know about thread safeness regarding the Window class? Jan 09 15:55:17 Parhs: you can write it to an arbitrary file in your app data area for all it matters Jan 09 15:55:21 Guys please, its urgent , can someone help me why its always showing me a appt.exe stopped working and error exception? Jan 09 15:55:58 Parhs: or use sharedprefs or something. all depends what kind of data you have. Jan 09 15:56:27 if you're changing a UI state that occurs between activities, you probably really need to store it to a file, because otherwise your app will reset state if it gets unloaded from memory Jan 09 15:59:04 Heyho Jan 09 15:59:41 can someone help me with a ndk/.so library problem?^^ Jan 09 16:00:20 anyone with a gs3 know how to get it to not be so damn loggy about everything Jan 09 16:00:30 running adb logcat on it is super verbose Jan 09 16:03:03 funkbox: not really a whole lot you can do about that other than figure out what's spamming the log and uninstall it (and email the devs) Jan 09 16:03:06 or use filters Jan 09 16:03:19 (so you only see your app's log messages) Jan 09 16:03:43 Uninstall touchwiz, yeah right :P Jan 09 16:05:28 funkbox, you can add filters: Jan 09 16:05:30 logcat [