**** BEGIN LOGGING AT Sun Feb 24 02:59:58 2013 Feb 24 03:06:25 how do you detect when the device is connected to a computer in 4.0+? like the deprecated UMS_CONNECTED broadcast Feb 24 03:12:57 GCM works fine when i send message through my PC. But the same script returns "Unauthorized error 401" when I run it from a hosting i own. I did add IPs to the whitelist. Feb 24 03:13:09 Can there be any other reason for that? Feb 24 03:17:22 Dattz: bad auth tokens? Feb 24 03:21:10 evanc: http://pastebin.com/AzH2fEVX Feb 24 03:21:39 hey guys, I'm one error away from solving my problem hopefully Feb 24 03:21:41 This same code on my pc and the hosting. Feb 24 03:21:42 anyone care to help? Feb 24 03:21:43 please? Feb 24 03:22:05 Rob|boR: Don't ask to ask, just ask. Feb 24 03:22:39 ok I'm trying to have this fragment access tables online Feb 24 03:22:57 let me upload the code on pastebin Feb 24 03:24:25 here is my code Feb 24 03:24:28 http://pastebin.com/DTm64eMP Feb 24 03:24:46 I get the following error in line 55 Feb 24 03:25:01 The method runOnUiThread(new Runnable(){}) is undefined for the type new Runnable(){} Feb 24 03:36:07 what api were tablets introduced? Feb 24 03:41:53 Trinity: 3 ? Feb 24 03:42:06 3.0* not sure which api level that translates into Feb 24 03:42:20 11 Feb 24 03:42:21 ahh okay thanks Feb 24 03:42:23 honeycomb Feb 24 03:42:56 no one knows about runnable()? Feb 24 03:43:03 runOnUiThread* Feb 24 03:44:09 Rob|boR, http://developer.android.com/reference/android/app/Activity.html#runOnUiThread%28java.lang.Runnable%29 Feb 24 03:44:11 api 1 Feb 24 03:45:04 Trinity, I don't understand Feb 24 03:45:18 like I runned the same code in a stand alone app Feb 24 03:45:20 worked great Feb 24 03:45:26 pastebin? Feb 24 03:45:30 now I'm trying to implement it into my other app Feb 24 03:45:50 http://pastebin.com/DTm64eMP Feb 24 03:45:56 pastebin and stacktrace Feb 24 03:46:51 runOnUiThread is an method of Activity. A runnable is not an activity. You need a reference to your activity in the runnable, or a reference to a handler from the UI thread, or use an AsyncTask instead Feb 24 03:46:58 The method runOnUiThread(new Runnable(){}) is undefined for the type new Runnable(){} Feb 24 03:47:13 yea id just recommend Asynctask Feb 24 03:47:43 how would I go about implementing that Feb 24 03:47:47 into my exisitng code Feb 24 03:47:47 looks like all you're doing is grabbing data from sql Feb 24 03:47:47 data = getdb.getDataFromDB(); Feb 24 03:48:00 http://developer.android.com/reference/android/os/AsyncTask.html Feb 24 03:48:19 yes that's what I want, to grab data from sql Feb 24 03:48:48 use an asynctask, very simple you could even include a progress dialog Feb 24 03:49:15 the getDataFromDB(); method in doInBackground() Feb 24 03:49:26 runOnUIThread in onPostExecute or something called that Feb 24 03:49:27 hoq can i sent parameters in sqlite Feb 24 03:49:33 but I would need to extend async Feb 24 03:49:43 thats the only way Feb 24 03:49:44 can I do that when the java class is already extending fragment? Feb 24 03:49:58 private MyTask extends Asyntask Feb 24 03:50:04 subclass Feb 24 03:50:32 dont extend your current class, create a subclass and extend asynctask there Feb 24 03:50:53 hi all, is it possible to select only elements within an Elements list using Jsoup? Feb 24 03:51:01 hmm Feb 24 03:51:15 do I need th doInbackground, onprogreess, onpostexexute? Feb 24 03:53:17 you only need to override doInBackground, but for what you're doing (the runOnUIThread) you should probably have a onPostExecute Feb 24 03:53:30 anything in doInBackground is run on a separate thread Feb 24 03:53:42 everything else is run on the UI Thread so you don't have to call runOnUIThread in onPostExecute Feb 24 03:54:29 take a look at this stackoverflow question for a progress dialog w/ your asynctask Feb 24 03:54:30 http://stackoverflow.com/questions/4538338/progressdialog-in-asynctask Feb 24 03:54:50 ok will do Feb 24 04:02:36 yeah..I'm confused with the AsyncTask Feb 24 04:02:59 and I don't want to further break my code >_> Feb 24 04:03:25 out of curiosity, does eclipse have like a snapshot tool Feb 24 04:03:40 where it saves whatever it's on now, and if I mess up the code later on, it will restore it to that one Feb 24 04:03:45 not ctrl z Feb 24 04:09:33 Trinity, I think I got it, but one little issue Feb 24 04:12:06 mmh? Feb 24 04:12:29 just export your project as an archieve and reimport later Feb 24 04:13:02 before I start coding I always backup my project so if I do anything wrong i could go back and fix it Feb 24 04:13:44 may you look at my code again, please? pastebin.com/dk2RzH31 Feb 24 04:14:00 I attempted to use AsyncTask Feb 24 04:14:37 only thing is, I don't know whre to initialize test().execute(); Feb 24 04:14:45 1. dont make it an abstract class Feb 24 04:14:59 2. you didn't even instantiate data and you already called teh .execute() method Feb 24 04:15:17 3. you don't have doInBackground() Feb 24 04:15:23 and if I don't put abstract, it shows test with a red squiggly Feb 24 04:15:24 something you have to have if you want to use Asyntask Feb 24 04:15:43 it shows an error because you didn't add @Override doInBackground() Feb 24 04:15:58 re-read the docs, http://developer.android.com/reference/android/os/AsyncTask.html Feb 24 04:16:10 and if you need more examples refer to , http://stackoverflow.com/questions/4538338/progressdialog-in-asynctask Feb 24 04:16:10 ok Feb 24 04:25:52 ok so I aded the doInBackgroud Feb 24 04:26:09 referred to the links Feb 24 04:26:12 http://pastebin.com/iGzxCd7J Feb 24 04:26:53 but public class test still has a red line, and I get Illegal modifier for the local class test; only abstract or final is permitted Feb 24 04:27:03 and syntax error on token ";",, expected Feb 24 04:27:31 well i took out public, so that resolved the class test Feb 24 04:27:37 only that semi colon :/ Feb 24 04:31:00 I wonder why its' telling me to replace that ; with a , ... Feb 24 04:34:05 I think I got it Feb 24 04:34:10 moment of truth Feb 24 04:35:21 btw, you really should make more readable code haha with all of those ////, etc Feb 24 04:39:35 youre not following java conventions nor are you really coding with java Feb 24 04:39:42 ill clean up your code and show you how to do it Feb 24 04:39:49 but you should really read a java book Feb 24 04:39:57 the ////////// are my way of breaking up the code lol Feb 24 04:40:17 and then towards the end I will organize it Feb 24 04:40:25 fix identations etc Feb 24 04:40:39 okay so I think I implemented asynctask Feb 24 04:40:50 no errors, program runs Feb 24 04:40:58 only problem is..the table is not showing Feb 24 04:41:03 I wonder why.. Feb 24 04:41:41 this is my current code http://pastebin.com/13t2mmDg Feb 24 04:41:55 I gave the app permissions for internet Feb 24 04:44:25 interesting, data is being sent to the system.out Feb 24 04:44:28 and not to the app -_- Feb 24 04:44:37 im pretty sure youre still not doing it correctly lol Feb 24 04:45:00 http://pastebin.com/JR4x8DeT Feb 24 04:45:03 help? you're my only help? Feb 24 04:45:12 heres your cleaned up code with the proper implementation Feb 24 04:45:36 holy shit, that looks so nice Feb 24 04:45:39 i dont know if it would work or not since I dont have your other class files Feb 24 04:45:46 but thats how asynctask should be implemented Feb 24 04:47:25 trinity...you are THE BEST Feb 24 04:47:26 it works Feb 24 04:47:48 now I gotta compare with my previous code Feb 24 04:47:57 it's going to be hard, cause my initial code indeed is a mess Feb 24 04:49:01 Rob|boR, theres still a lot of optimization/cleaning up + memory leak checking you gotta do Feb 24 04:49:30 there definitely is Feb 24 04:56:33 Thank you for everything Trinity. You have been on TREMENDOUS help. Feb 24 04:57:00 I think I will call it a night, been at this all day. Thank you again Feb 24 05:11:43 ActivityManagerService gives me a headache Feb 24 05:20:08 y Feb 24 05:20:36 bc Feb 24 05:20:43 o Feb 24 05:23:06 https://play.google.com/store/apps/details?id=com.outfit7.talkingangelafree Feb 24 05:32:18 Trinity: wtf is that Feb 24 05:34:04 Hola Feb 24 05:34:04 I need to know how to show message delivery status as in Whatsapp application? Feb 24 05:34:11 i have no idea but it has 1mil+ downloads Feb 24 05:34:13 and I don't Feb 24 05:34:14 =[ Feb 24 05:35:12 Hi, Trinity Feb 24 05:35:38 hi Feb 24 05:36:28 Also, am looking for android project to work for. I don't know much but i would learn. Feb 24 05:43:03 <_genuser_> anybody changing the global android themes? or is that something custom rom related? Feb 24 05:43:28 pretty sure its rom related Feb 24 05:48:05 g00ssss Feb 24 05:49:13 hey canadiancow ! Feb 24 05:53:24 i have downloaded and installed a new copy of android adt bundle. however it is giving me a ton of errors. what can i do? http://img255.imageshack.us/img255/1562/install052.png Feb 24 05:53:46 that has nothing to do with adt Feb 24 05:53:48 that's eclipse Feb 24 05:54:06 it's downloaded from dev.android.com, android adt bundle Feb 24 05:54:36 no Feb 24 05:54:38 look at the error Feb 24 05:54:43 it's eclipse.org Feb 24 05:55:38 -.- i know that. i hate eclipse. i would use something else, but google made the android plugin for it, so how can i make this adt bundle work. Feb 24 05:56:09 canadiancow: i think you and i will be the last ones using eclipse Feb 24 05:57:11 ok please let somebody answer who uses google android adt for eclipse Feb 24 05:57:47 i am a beginner, so i don't want to attempt to use something else netbeans with unofficial adt plugin, intellij idea, yet Feb 24 05:57:49 BullShark: well, here is my foolproof method. go here http://download.eclipse.org/eclipse/downloads/drops/R-3.8.1-201209141540/ Feb 24 05:58:14 yes, its 3.8.1. Grab the platform runtime binary for you Feb 24 05:58:38 before all this, nuke your eclipse and workspace, and .eclipse or shit like that Feb 24 05:59:32 g00s: I actually recently started liking eclipse after doing lots of preference editing Feb 24 05:59:44 i like the adt xml editor Feb 24 05:59:44 a better looking theme helps your love towards it too :) Feb 24 06:00:21 BullShark: let me know when you are ready ;) Feb 24 06:11:12 * g00s is contenplating whether to just make his content provider exported="true"; this permission stuff is for the birds Feb 24 06:11:44 (does not seem to work as advertised) Feb 24 06:15:07 g00s: https://code.google.com/p/android/issues/detail?id=25906 permissions are install order dependent Feb 24 06:15:24 i don't think they make sense for third party apps Feb 24 06:18:17 kevinb: well, maybe you know what is going on here! basically, there is a workaround listed in this page, but I'm really confused as to how this was /supposed/ to work. http://stackoverflow.com/questions/4179594/what-is-the-correct-permission-handling-when-sending-sensitive-app-data-as-email Feb 24 06:18:51 basically, sending a ACTION_SEND with EXTRA_STREAM, to gmail possibly, and the Uri is from my own apps content provider Feb 24 06:19:40 now, until 4.1 , my app worked fine and then something changed. strange thing is, i have always had exported="false" yet it worked. anyhow, now it doesn't Feb 24 06:20:07 so I tried various things like adding a element under my provider, just like what that OP did, nothing works Feb 24 06:20:29 i can go with the workaround, but I *hate* not understanding why its not working - my mental model of this is broken, i hate that Feb 24 06:20:34 curious. are you using FLAG_GRANT_READ_URI_PERMISSION ? and does your content provider call a second content provider ? Feb 24 06:20:52 yes, i use that flag. there is only one content provider - mine Feb 24 06:21:48 so gmail would see that EXTRA_STREAM and open that (as a stream) and attach the file in the message Feb 24 06:22:07 well, thats how i think its supposed to work ;) Feb 24 06:22:24 BTW, loose coupling FTL unless the stuff is documented way better Feb 24 06:23:21 i dont see why the contract for gmail would be different for vanilla email - anyhow, thats not the issue - the problem is with both mail clients - and my misunderstanding (or bug) in the permission system Feb 24 06:24:22 FLAG_GRANT_READ_URI_PERMISSION only says it grants to the intent's data or ClipData . i don't know why they would not include Intent.EXTRA_STREAM with that, but you could try also sending the uri with intent.setData (unless gmail/mail then don't process the intent right) Feb 24 06:25:02 yeah, thats where I can't find some kind of contract. not like we have the gmail sources ;) Feb 24 06:25:10 i did try that btw, no dice Feb 24 06:26:27 hrm not sure then. Feb 24 06:26:59 thanks kevinb Feb 24 06:27:17 one thing that might be worth trying is setting exported to true but requiring a permission. perhaps it working before with exported=false was actually a bug Feb 24 06:27:55 it seems like it would be a bug with exported=false working :/ Feb 24 06:28:39 but if i set exported-tre, how can i require a permission? i mean, if i leave out altogether it still works :P Feb 24 06:28:46 *exported=true Feb 24 06:29:43 in the manifest you can have a android:readPermission="com.yourpackage.permission.YOUR_PERMISSION" and then also declare that as your own permission with both a ah, ok Feb 24 06:30:03 thx Feb 24 06:30:17 (likewise a writePermission probably signature protected for just your own app). no problem hope it works. Feb 24 06:32:02 kevinb: do you know what the difference between subelements and ? i have read these over and over , and its not clicking Feb 24 06:33:29 i'm not sure, i haven't used them. Feb 24 06:33:36 k, np. Feb 24 06:40:25 BullShark: figure it out ? Feb 24 06:51:35 I got a pretty nice unique identifier working :) of course its not full proof but i think it covers a good portion of the market Feb 24 06:51:55 better than what Android_ID could give me Feb 24 06:56:32 Hi there I have some like https://gist.github.com/tyoc213/5022936 how I will go about support libraries in this way¿? Feb 24 06:58:59 hello everyone one question because when i chage mi last value in my contructor i can not see my information on sqlite super(ctx,"MiBase",null,2); the last value is the version i was changinf this but i dont know which was the last value how can i know it Feb 24 06:59:10 does Build.Serial change upon factory reset/data wipe Feb 24 06:59:13 i can not see any information on sqlite Feb 24 06:59:45 Im targetint api 10 Feb 24 07:02:49 can someone help me Feb 24 07:19:27 does anyone know how to build AOSP for 64-bit? Feb 24 07:19:38 when I do make, I notice it says HOST_ARCH=x86 Feb 24 07:19:51 which means all the tools in out/host/... are 32-bit Feb 24 07:26:45 could you guys do me a huge favor? :) run this method and pastebin your results Feb 24 07:26:45 http://pastebin.com/GKTviyN9 Feb 24 07:27:33 Generally in a emulator if I enable on OSX enable hardware support it will be more fast?? (I feel it a little slow than with this option disabled) Feb 24 07:27:35 oops had to change the Log.d new code here. http://pastebin.com/ZGzJ5EpG Feb 24 07:34:00 Hey Feb 24 07:49:10 hi. anyone here using the android plug-in for netbeans? Feb 24 08:32:14 * Luke-Jr finishes writing an elaborate pthread_cancel emulation :/ Feb 24 08:51:45 how much do you think app design matter to user? Feb 24 08:51:51 for* Feb 24 08:52:00 MoshDev: are you serious Feb 24 08:52:17 yes, am just thinking of percentage Feb 24 08:52:18 i mean, its saturday and dead in here - time for some casual banter, but, seriously ? Feb 24 08:52:38 100% Feb 24 08:52:45 hehehe Feb 24 08:53:07 g00s: show me some of your on market apps Feb 24 08:54:14 MoshDev, I'd say 100% as well. And not only just design and ease of use but the colors, etc Feb 24 08:55:16 yeah Feb 24 08:55:22 another question Feb 24 08:55:38 i hope its not more difficult than the last ;) Feb 24 08:55:49 do you think darker colors (black) themes are more attractive Feb 24 08:56:11 seems like android uses dark themes for media, light for general Feb 24 08:56:35 i use a light theme on my app because it could be used outside, and i noticed it was hard to read with a dark theme Feb 24 08:57:08 light themes might drain the battery quicker tho Feb 24 08:57:22 g00s: wha? Feb 24 08:57:54 Trinity: wha to which part :P Feb 24 08:57:58 yes, light colors use more battery Feb 24 08:58:00 g00s: morning Feb 24 08:58:01 lol Feb 24 08:58:05 the light theme drains battery? Feb 24 08:58:07 Morning a Feb 24 08:58:11 yes Feb 24 08:58:14 how so? lol Feb 24 08:58:15 thats know issue Feb 24 08:58:15 hey StingRay_ , good morning Feb 24 08:58:40 you dont see how a pure white illuminated pixel would use more power than a dimmed one? Feb 24 08:58:46 seriously ? Feb 24 08:58:48 Trinity: more specifically, OLED Feb 24 08:59:12 well i just did a little research Feb 24 08:59:14 probably not on IPS Feb 24 08:59:16 it depends on the specific screen Feb 24 08:59:26 actually on OLED less so unless it's black Feb 24 08:59:31 i think Feb 24 08:59:42 g00s: can I have a look at some of your apps on the market ? Feb 24 09:00:14 take it there not phonegap :) Feb 24 09:00:22 *LED drain, LCD don't Feb 24 09:00:47 do compound drawables get any benefit in pre API 16? Feb 24 09:00:50 even with the support package? Feb 24 09:02:47 etcetera: compound drawables available since API level 1 Feb 24 09:02:50 hmm 5.7% difference in balck vs white screen Feb 24 09:02:51 never knew that Feb 24 09:03:08 MoshDev: but since API 15 they get some special treatment right? Feb 24 09:03:15 mmm, but not that hight percent Feb 24 09:03:29 etcetera: like what? i never noticed that Feb 24 09:03:31 my bad 5.8% Feb 24 09:03:34 http://blog.stevemould.com/phone-battery-save-black-wallpaper/ Feb 24 09:03:42 well according to his research and testing Feb 24 09:04:10 mmm thats interesting Feb 24 09:06:03 i was thinking about this lib JS lib https://github.com/mbostock/d3/ , and convert it into android Feb 24 09:06:07 see its works Feb 24 09:06:16 http://biovisualize.github.com/d3visualization/ Feb 24 09:06:18 amazing Feb 24 09:07:08 i knew screen brightness affected battery but i didnt know specific colors would do the same effect. good to know :) Feb 24 09:08:28 as i remember they noticed that in android 2.1 and then they set default theme to dark Feb 24 09:08:44 MoshDev: hmm, I thought they were hardware accelerated? Feb 24 09:09:06 i wouldn't have time but perhaps another developer would develop a browser with a specific function of dark theme? lol Feb 24 09:09:27 Trinity: only on OLED displays Feb 24 09:09:55 MoshDev: dark has always been the default theme Feb 24 09:10:43 romainguy_: nice to know Feb 24 09:10:56 romainguy_: I read somewhere that it was only LCDs that didn't. OLED, Amoled, and Super Amoled all save Feb 24 09:11:20 and LCDs do only if they have IPS Feb 24 09:11:39 Trinity: LCDs use a backlight, so the displayed colors don't matter to power usage Feb 24 09:11:59 Trinity: specific colors will affect power usage differently on OLED displays Feb 24 09:12:08 romainguy_: is there LED mobile devices? Feb 24 09:12:11 well either ways are there a lot of LCD display devices out there? Feb 24 09:12:16 or just OLED? Feb 24 09:12:36 AMOLED* Feb 24 09:13:09 Nexus 4 uses an LCD for instance Feb 24 09:13:55 ahh i see kk so quite a few :) Feb 24 09:14:25 some phones have either depending on supply chain availability / instability Feb 24 09:15:28 too bad the N4 doesn't have a standard color calibration app Feb 24 09:15:38 MoshDev: am I wrong, are compound drawables not rendered more efficiently vs using LinearLayout? Feb 24 09:15:51 or are they simply not hardware accelerated? Feb 24 09:16:02 etcetera: i dont know :O Feb 24 09:16:07 romainguy_: do you have your laptop LCD calibrated for LR / PS work on photos? i bet you do ;) Feb 24 09:16:14 g00s: no Feb 24 09:16:17 g00s: my desktop is though Feb 24 09:16:17 :O Feb 24 09:16:45 etcetera: what are you talking about? compound drawables are more efficient than a LinearLayout because they reduce the number of Views required Feb 24 09:16:50 but the machine you use LR on, is calibrated? Feb 24 09:16:53 it has nothing to do with hardware acceleration Feb 24 09:16:57 g00s: one is, the other one is not Feb 24 09:17:05 hm Feb 24 09:27:44 if I'm going to provide a service to my users that costs me money to maintain, what ways are there to ensure that user didn't pirate my app ? Feb 24 09:27:55 is there some google auth stuff I should be reading ? Feb 24 09:31:35 StingRay_: piracy involves murdering people at high seas. not sure you want to mess with pirates. Feb 24 09:32:08 StingRay_: if your app is tied to a service, though, you could easily just issue only one account/access per customer Feb 24 09:38:42 hmm never put anything/sold nething on market yet Feb 24 09:39:01 so I take it I get a uid or something of a purchase ? Feb 24 09:39:37 is it easy to auth. with google account though ? as a verification ? Feb 24 10:08:05 hey Feb 24 10:10:20 I'm using EditTextPreference and android:dialogMessage to explain to the user what to type. But how can I make the height of the dialogMessage shorter? http://bildr.no/image/1400278.jpeg Feb 24 10:15:52 I want it to be like this: http://bildr.no/image/1400287.jpeg Feb 24 10:33:19 do I have to make a custom AlertDialog for that? Feb 24 10:42:02 hello Feb 24 10:55:10 Quacked: if your using fragmentDialog you can put in it what you want Feb 24 10:55:15 and make it what you want Feb 24 10:55:41 dont even have to return the results of a dialog Feb 24 11:03:51 StingRay_: use auth2.0 and i'd imagine just generate a 32 token on each device Feb 24 11:04:01 and once they use maybe an in app purchase or subscription Feb 24 11:04:12 use that token as verification with server Feb 24 11:10:51 holy crap g00s ... do you ever sleep? :D Feb 24 11:11:24 :) Feb 24 11:17:41 Hey guys..!! I was following this..http://developer.android.com/training/basics/data-storage/databases.html Feb 24 11:18:16 but when eclipse doesn't allow me to make an 'abstract' class as static.. Feb 24 11:18:19 anyone..? Feb 24 11:20:48 http://stackoverflow.com/questions/370962/why-cant-static-methods-be-abstract-in-java Feb 24 11:23:16 Hi guys. I have an android VM running. I don't manage to connect to this VM using telnet (to use geo fix). Any idea? Feb 24 11:23:42 vm as in virtual box? Feb 24 11:24:04 capella: thanks.. but can I ask why do the docs mention it that way..? Feb 24 11:24:54 monsti: Yes Feb 24 11:25:24 fairuz__: check the vm settings of the network Feb 24 11:25:34 a net network adapter can only be used with port forwarting Feb 24 11:25:44 It already has an IP, I can connect with adb and stuff Feb 24 11:25:48 a bridged network is maybe what yyou want Feb 24 11:25:53 eclipse recognize it too in the Devices Feb 24 11:26:11 But in emulator control, I can do nothing Feb 24 11:26:12 yeah so that's all you get and need Feb 24 11:26:36 I cannot change the location Feb 24 11:26:47 ah i.c. that's normal Feb 24 11:26:54 it's no emulator ;) Feb 24 11:27:01 it's an android x86 machine Feb 24 11:27:05 ah so how can I change the location? :) Feb 24 11:27:07 capella: I mean.. its there in the first line where the code is written.. Feb 24 11:27:22 fairuz__: no idea with android-x86 Feb 24 11:27:38 afaik some recent versions have that location stuff - but i am not 100% sure Feb 24 11:27:59 androvm.org try the latest version Feb 24 11:28:53 purezen just googling here - assumes you can too Feb 24 11:28:54 http://stackoverflow.com/questions/12403248/can-we-create-public-static-abstract-class-in-java Feb 24 11:29:52 why a public abstract class? Feb 24 11:29:58 lol? Feb 24 11:30:27 foo.bar() / specialFoo.bar()? Feb 24 11:30:36 where does this make sense? Feb 24 11:31:00 capella: Thanks.. am looking at it..:-) Feb 24 11:31:25 monsti: Just following the docs..:) Feb 24 11:31:54 yeah this is the chance to learn something very new ;) Feb 24 11:33:07 purezen: a static class vs. static in inner class ;) Feb 24 11:33:45 monsti: ok.. that's interesting.. Feb 24 11:35:01 purezen: a static abstract (on inner class) makes no sense Feb 24 11:35:24 g00s: r u getting the bugzilla mail? Feb 24 11:35:49 capella: yeah :) Feb 24 11:36:00 haven't checked mail in a little bit tho Feb 24 11:36:33 just got some responses to your report .... feel free to comment / join conversation as the reporter Feb 24 11:39:12 i need a douut hack for simpsons! Feb 24 11:39:33 i am willing to pay some money but this game reminds me on WoW Feb 24 11:39:43 monsti: ok.. Feb 24 11:51:33 capella: oh, lots of mails :) Feb 24 12:10:10 StingRay_: fragments was included in build 11 I think. My minsdkversion is 10 Feb 24 12:10:17 so I don't use any fragments Feb 24 12:10:28 supportLib Feb 24 12:10:31 :) Feb 24 12:11:51 but if I use a dialogFragment I have to use the entire new preference method? Feb 24 12:12:07 atm I have settings.xml for preferences Feb 24 12:12:13 Quacked: no, you can just do both Feb 24 12:12:22 launch the activity on <11 Feb 24 12:12:35 use the fragment on >=11 Feb 24 12:12:52 yeah Feb 24 12:12:55 there is still no PreferenceFragment in the support lib, right ? Feb 24 12:13:25 g00s: I think it's impossible to do because the PreferenceActivity calls into private stuff to do its job Feb 24 12:13:34 A preferencefragment would require a complete backport of everything preference Feb 24 12:14:09 Good morning, does anyone know how I handle java projects used by an Android project when trying to build with ant? Feb 24 12:14:12 and launching the activity as a fallback is usually easy enough Feb 24 12:14:51 Quacked: but in general, wanting to use features from a specific API level doesn't mean you can only support that API level and beyond Feb 24 12:14:52 Or massive use of reflection, that could probably be done as well Feb 24 12:15:17 nah, i'd just use PreferenceActivity. less hassle Feb 24 12:15:21 I should try that some day Feb 24 12:15:48 Quacked: you can target an API level higher than the minimum required and then simply provide fallback implementations for API levels lower than your target Feb 24 12:16:02 Quacked: the support library provides a fallback implementation for fragments this way Feb 24 12:16:15 ABS provides an implementation of the action bar Feb 24 12:16:20 yeah Feb 24 12:16:31 but like g00s said, PreferenceActivity is less hassle :) Feb 24 12:16:45 it's maybe 10 lines of code extra to do both, but sure Feb 24 12:17:17 the hassle is knowing what lines that is Feb 24 12:17:30 the hassle is knowing there is a hassle Feb 24 12:17:36 :) Feb 24 12:17:39 now were getting deep Feb 24 12:26:37 I think I found a workaround though Feb 24 12:26:39 android:dialogLayout="@layout/activity_dialog" Feb 24 12:27:08 and create a custom layout for the EditTextPreference Feb 24 12:32:54 Hi, I'd like to change the layout of specific items in a custom listview based on a set of conditions. Where should "properly" I implement this, e.g. inside my custom adapter, if so how? Oor should i do it in the activity Feb 24 12:33:19 through iteration over the adapter in some way? Feb 24 12:34:02 In your adapter Feb 24 12:35:15 SimonVT: and would that be inside the getView method? Feb 24 12:35:27 Yes Feb 24 12:35:29 is there an attribute to set the cursor in an EditText to the end of the text rather in front? Feb 24 12:37:53 SimonVT: ok. i've did a test using that approach. Initial load of the listview works nicely (simple color change). When I'm appending data to the listview through the activy and scroll the color change of the get mixed up. Feb 24 12:38:13 listview reuses views Feb 24 12:38:22 You're not properly setting whatever color it is you're setting in getview Feb 24 12:38:24 SimonVT: also not i'm using fragments Feb 24 12:38:35 not = note Feb 24 12:39:33 SimonVT: Ok, hmm.. so with reuse you mean... the convertView Feb 24 12:39:53 peroht: just make sure that you dont "not set" the color Feb 24 12:43:24 flodin: i think this workaround for stinks to hell Feb 24 12:43:57 StingRay_: ah, so I need to set a color even if it's reusing the view? Feb 24 12:44:08 also, from reading plenty of aosp code, i've come to the conclusion (and i think rightly so) that a lot of the android devs working on these apps , dont even know what the hell they are doing Feb 24 12:44:17 well what if it's reusing one without color being set ? Feb 24 12:45:09 g00s: I asked a bit back, would it be poss to check out some of your apps on play ? Feb 24 12:45:14 StingRay_: well, then i get wrong color yes Feb 24 12:46:19 StingRay_: just so i understand it correctly, getView() is called whenever an item is being requested to be displayed? Feb 24 12:46:41 ya Feb 24 12:46:59 or if the view changes size, it calls getView for all views vis too Feb 24 12:47:08 StingRay_: just needed to make sure .. noob q sorry =) Feb 24 12:47:08 as in the parent view changes size Feb 24 12:47:15 <--- noob too Feb 24 12:47:18 :) Feb 24 12:47:31 good to be in same company =) Feb 24 12:47:34 StingRay_: gr8 Feb 24 12:47:46 SimonVT: thankx for early pointer Feb 24 12:51:31 Hmm, I need to readup on this regarding the convertview and parent Feb 24 12:53:17 View the world of listview talk from google io Feb 24 12:53:33 If you still don't understand listviews after that, watch it again :p Feb 24 12:53:41 SimonVT: excellent Feb 24 12:54:05 that talk should be in the topic, it's great Feb 24 13:03:00 sonOfRa: yep Feb 24 13:15:18 sonOfRa: exactly, now it took me 10m so notice what i did wrong :) Feb 24 13:15:49 SimonVT: good hint, thanks. Feb 24 13:16:33 kroot: ping? Feb 24 13:21:26 heeeey Feb 24 13:22:24 i've just cloned a project from github, but it's stripped out a bunch of stuff and i'm having trouble importing it into eclipse, here is my .gitignore file (http://pastebin.com/y0CbEBeU), can someone point me in the right direction to get this thing working? Feb 24 13:24:02 or do i need to just create a new project and import all my code? Feb 24 13:25:13 you should be able to import->existing android code Feb 24 13:27:26 oh gawd, i forgot to check the "copy project to workspace" checkbox Feb 24 13:27:29 thanks Feb 24 13:27:32 :P Feb 24 13:29:00 Can we force gpx location on real device via adb? Feb 24 13:29:04 *gps Feb 24 13:29:47 quick question, how do I set a custom row id when extending SimpleAdapter, so it would be accessible from onListItemClick? Feb 24 14:00:49 does it exist a translator of html5 canvas to java canvas ? Feb 24 14:06:27 where's mikedg? at church maybe XD Feb 24 14:23:10 hey Feb 24 14:24:39 anybody here? Feb 24 14:26:09 no Feb 24 14:26:30 http://pastebin.com/Sc46XwwN I get an error Feb 24 14:26:52 Fix it then Feb 24 14:28:54 hehe good answer.. I dont know the error Feb 24 14:29:32 we do neither Feb 24 14:38:45 wow a new version of colloquy Feb 24 14:39:01 doesnt happen often :) Feb 24 14:40:00 \o/ Feb 24 14:41:31 Ilhami addEvent is null Feb 24 14:41:48 which you could have seen in the stacktrace Feb 24 14:42:10 hmm but why? Feb 24 14:42:16 because you do not set it Feb 24 14:42:25 i made a onclick listener and set it Feb 24 14:42:40 aaah Feb 24 14:42:43 now I know Feb 24 14:42:47 I forgot to initialize it Feb 24 14:42:47 hahaha Feb 24 14:42:48 :D Feb 24 14:42:52 sorry man my bad Feb 24 14:42:57 logcat Feb 24 14:45:30 I will fix it Feb 24 14:45:31 2 sec Feb 24 14:46:48 should be fixed now Feb 24 14:47:21 Any ideas on how to clip a fragment to a path? Feb 24 14:48:55 I've tried Xfer,9 patches, and other stuff :D Feb 24 14:53:33 Anyone here? Feb 24 14:53:50 morning Feb 24 14:54:30 Hi , I was wondering if anyone here has any ideas on how to clip a fragment to a path? Feb 24 14:56:09 GMDynamics, i dont even understand the question Feb 24 14:56:27 the question doesn't make a lot of sense, either Feb 24 14:56:52 I'm guessing you want to clip a view to a path Feb 24 14:57:14 Sorry, I want a circular MapFragment. Back in V1, I just overrode onDraw and used canvas.clipPath Feb 24 14:57:23 right Feb 24 14:58:29 Now Maps uses fragments. I tried overriding MapView in v2, but it doesnt work anymore Feb 24 14:58:31 ooooooooh Feb 24 14:58:43 GMDynamics, you want to save a shot of the map to the system? Feb 24 14:59:24 nt quite, maybe I should upload a picture of what my old app looked like Feb 24 14:59:34 I want to reproduce it in v2 Feb 24 15:01:05 GMDynamics: how about simply doing this: Feb 24 15:01:15 create an activity with the clip mask and a framelayout Feb 24 15:01:26 then load the fragment into that? Feb 24 15:02:24 i had an app in 1.5/1.6 that allowed users to take snapshots of a mapview and save text-directions with it, then push the directions to twitter, facebook, email Feb 24 15:02:30 now the maps app has all that functionality Feb 24 15:02:37 you can probably do what you want directly on the fragment, but I'm not sure how Feb 24 15:03:48 to literally take a snapshot of a fragment i used a canvas over the mapview i think Feb 24 15:04:19 I tried the frame layout, but the edges of the map stick out Feb 24 15:04:54 GMDynamics, sounds ilke you need a surface overlay Feb 24 15:06:11 GMDynamics this? https://lh3.ggpht.com/l353IJ4HWM55rTE8pHWggsAs5AK8Cf0ljmFt3yLUoldP11xzVZnh-NQSFYLzCEaAe2c Feb 24 15:07:01 or, a surfaceview? Feb 24 15:07:24 GMDynamics have you tried putting the fragment in a framelayout and drawing something over it, with the center transparent Feb 24 15:08:34 mapView v2 doesn't have an onDraw() overidable ? Feb 24 15:11:21 Sorry left for a sec, but yeah I tried, but the map juts out past the circle Feb 24 15:11:41 http://tinypic.com/view.php?pic=2z9mwl3&s=6 Feb 24 15:11:51 is what I'm trying to redo in v2 Feb 24 15:13:08 I can do rounded edges, using 9 patches and stuff, but the easiest way for circles was overriding onDraw and using canvas.clipPath Feb 24 15:13:30 Is thre a way to get a fragment's canvas? Feb 24 15:16:11 i'm trying to remove diacritics from a string (ie. ç -> c) , now i tried this http://stackoverflow.com/a/1453284/867099 but i get an error in creating the regex pattern. Any ideas? Feb 24 15:18:53 java.text.Normalizer xorgate? Feb 24 15:19:18 GMDynamics yes but Pattern.compile("[\\p{InCombiningDiacriticalMarks}\\p{IsLm}\\p{IsSk}]+"); fails Feb 24 15:19:38 (which is what i copied from that SO page) Feb 24 15:20:23 A runtime error? Feb 24 15:24:25 yes Feb 24 15:25:23 I would use Normalizer.normalize(text, Normalizer.Form.NFD).replaceAll("\\p{InCombiningDiacriticalMarks}+", ""); Feb 24 15:29:49 has anyone compiled libvncserver (http://libvncserver.sourceforge.net/) for android? Feb 24 15:59:20 What should I use to make an asynchronous bulkInsert. AsyncQueryHandler does not have a startBulkInsert method Feb 24 16:20:15 is there a way to set up a geofence, and then be notified in my app every time the user enters that location? Or do I have to listen to every loation update and see if user is in that area Feb 24 16:21:31 f2prateek: that is a feature within the location service Feb 24 16:22:47 clever: can you give a link? Feb 24 16:24:17 f2prateek: https://developer.android.com/reference/android/location/LocationManager.html#addProximityAlert%28double,%20double,%20float,%20long,%20android.app.PendingIntent%29 Feb 24 16:25:16 clever: oh perfect, I was using http://android-developers.blogspot.ca/2011/06/deep-dive-into-location.html but it was a bit overkill for my use Feb 24 17:17:21 how would I go about building 4.2.2 for mako, since its not in aosp yet? Feb 24 17:17:38 i tried copying device/lge/mako to the 4.2.2_r1 branch, but im getting odd errors Feb 24 17:24:14 Does WiFi really use a seperate antenna from the cell signal/3g one? Feb 24 17:24:59 probably, differnet frequencies Feb 24 17:25:19 liefer: has to Feb 24 17:25:29 due to what inhies said Feb 24 17:25:35 diff freq. Feb 24 17:26:14 can you elaborate? Feb 24 17:26:24 you know what a freq is right ? Feb 24 17:26:33 yes Feb 24 17:26:34 and a wavelength ? Feb 24 17:27:05 and wavelength relational to areal length ? Feb 24 17:27:11 easy to google Feb 24 17:27:12 :) Feb 24 17:27:26 liefer: it would be like trying to use a subwoofer to play high pitched sounds too Feb 24 17:27:29 it just dont work Feb 24 17:27:42 inhies: nice analogy :) Feb 24 17:27:49 thanks you :D Feb 24 17:27:54 * inhies is a rocket surgeon Feb 24 17:27:58 <-- pretty smart Feb 24 17:28:00 hi Feb 24 17:28:52 so... any info on porting 4.2.2 to mako Feb 24 17:28:52 ? Feb 24 17:28:53 i mean Feb 24 17:28:57 it works, everyone has roms for it Feb 24 17:29:01 i just dont know wtf they did to pull it off Feb 24 17:29:06 inhies: this is not the place for that Feb 24 17:29:10 how is that a nice analogy Feb 24 17:29:18 StingRay_: where does i go then? Feb 24 17:29:19 soundwaves, radiowaves, herp derp Feb 24 17:29:27 you need a rom channel or something Feb 24 17:29:29 liefer: waves, waves, herp derp Feb 24 17:29:53 its literally 99% the same thing Feb 24 17:29:57 sure Feb 24 17:30:04 but a speaker is not 99% the same as an antenna Feb 24 17:30:06 so is this just an app channel? Feb 24 17:30:14 blah Feb 24 17:30:22 liefer: it really is Feb 24 17:30:48 as in principal Feb 24 17:31:18 inhies: cynogen have a channel Feb 24 17:31:24 yea but i want aosp Feb 24 17:31:27 inhies: xda-devs have a channel Feb 24 17:31:30 i feel wierd asking questions in there Feb 24 17:31:33 aosp prob do Feb 24 17:31:34 oh? that might be good Feb 24 17:31:36 * inhies googles Feb 24 17:31:38 theres no aosp channel Feb 24 17:31:39 :( Feb 24 17:31:46 One is a sensor (mostly), one is entirely an actuator Feb 24 17:31:57 liefer: yes Feb 24 17:32:06 and what do they use input > output ? Feb 24 17:32:21 and how does that relate to physical characteristics Feb 24 17:32:27 StingRay_, o/ Feb 24 17:32:29 hence similar in principal Feb 24 17:33:57 liefer: heres a better idea, could you catch a crocodile in a butterfly net ? Feb 24 17:34:09 or vise versa ? Feb 24 17:34:24 no, one dont fit, and the other way it would slip through Feb 24 17:34:26 StingRay_: we are talking about antennas Feb 24 17:34:33 gosh! Feb 24 17:34:34 It doesnt help me understand why you must have multiple antennas. A simple AM/FM radio doesnt. I assume its because wifi and 3g are much further apart in frequencies, and does in no way resonate? Feb 24 17:34:47 no Feb 24 17:35:08 an fm has ability to lengthen and shorten (range freq.) the antenna Feb 24 17:35:26 that dial thingy Feb 24 17:35:36 turn it and you alter length Feb 24 17:35:44 that relates to "wave" length Feb 24 17:35:48 honestly google it Feb 24 17:35:53 this is a app dev channel Feb 24 17:35:55 :) Feb 24 17:36:03 ^this Feb 24 17:36:06 if i cant talk about aosp Feb 24 17:36:10 theres no way in hell you can talk about antennas Feb 24 17:36:12 inhies: dont be ass mad cus' ur explaination was bad Feb 24 17:36:25 liefer: i'm not, StingRay_ got it, not my fault you're dense Feb 24 17:36:31 sure Feb 24 17:36:55 that must be it Feb 24 17:36:56 StingRay_: thanks Feb 24 17:38:21 inhies: not that you cant talk about it, just that I doubt ne1 here will know anything Feb 24 17:38:22 inhies: antennas are more relevant to this channel. Antennas doesnt have a channel dedicated to the subject Feb 24 17:38:42 liefer: where is the aosp channel? Feb 24 17:38:43 as in building from aosp Feb 24 17:38:50 and if you want to know about antennas, ##electronics Feb 24 17:38:50 google it, its not my fault you're dense Feb 24 17:38:58 I found a list with a bunch of built-in drawables: http://androiddrawables.com/dialog.html .. But a lot of them doesnt seem to work. Like ic_dialog_time. Any ideas? Feb 24 17:39:47 Quacked: define "dont work" Feb 24 17:39:56 cause i find that very strange :) Feb 24 17:40:15 be sure to import android.R.drawable; also newer ones won't work on older platforms Feb 24 17:40:17 android:dialogIcon="@android:drawable/ic_dialog_time"/> Feb 24 17:40:26 and tbh that dialog_time is a circle + 2 rectangles + 3 min photoshop Feb 24 17:40:57 Thats not the point. I want to use a bunch of those if possible Feb 24 17:41:41 f2prateek: I try to set it in an xml Feb 24 17:42:03 Why not use the official docs to see what drawables are public: https://developer.android.com/reference/android/R.drawable.html Feb 24 17:42:35 Ok, so only some are public Feb 24 17:42:49 Of course Feb 24 17:42:57 Just like only some methods are available Feb 24 17:43:20 Booh.. cant find a vibrate drawable Feb 24 17:44:05 So copy it from aosp and add it to your app Feb 24 17:46:23 Yeah Feb 24 17:46:42 That's legal btw? Feb 24 17:49:57 why adt uncompressed on a folder does not autocomplete correctly :S... I need to hit F3, then CMD+o to know a little about the classes I'm trying to use, but I really dont have autocmpletion Feb 24 18:06:46 i amd using sqlite but when i insert several records i always use like this inserto into table (c1,c2,c3) value("+ c1 + ",+c2+," i am concatenate each value and always forget one thing like " is there one way to send this using parameters Feb 24 18:09:28 Mep Feb 24 18:09:32 got a new app: https://play.google.com/store/apps/details?id=com.troubi.kingofmath Feb 24 18:09:37 I hope you like it :D Feb 24 18:19:43 spobat: great, maths Feb 24 18:20:26 how can i pass parameters into sqlite when i insert a record Feb 24 18:21:00 add arguments to your method that does the insert ? Feb 24 18:21:08 in your sqlite helper class Feb 24 18:21:18 spobat: hang on Feb 24 18:21:26 I start out as farmer > Feb 24 18:21:27 ??? Feb 24 18:21:44 is that not...errr...... prejudice and stereotyping ? Feb 24 18:22:49 StingRay_, kind of the medieval ranking system Feb 24 18:23:05 yeah..but...really ? Feb 24 18:23:22 StingRay_, What would you prefer ? Feb 24 18:23:30 oh and you have lots of word/grammar and context errors on your site Feb 24 18:25:34 tona see the api of sqlite... I suppose there exist something like prepare statement or executeQuerWithParams and a map or some like that in sql you can bind parameters with mycolumn = :myvalue ... and things like that... se the API :P Feb 24 18:34:36 hi, is there an add on for the motorola phones for the ide tools to support the screen resolutions of their phones? Feb 24 18:36:59 which ide tools? you mean the avd or something Feb 24 18:37:22 I use ABS actionbar in tab-mode. In landscape mode the tab gets collapsed. Is there a way to prevent that? Or to detect? My icons in portrait and landscape should be different colours. Feb 24 18:46:16 DR01D-Engineer, for the eclipse that comes in the adt package thing Feb 24 18:53:36 how can I register a broadcast receiver from a broadcast receiver? right now I have the broadcast receiver starting an activity that registers the other broadcast receiver, but I really don't want something that has any UI presence (like an activity) Feb 24 18:54:24 What's best practice, check preferences for a value under onStartCommand/onCreate and then run method? Or run the methods and then check preferences? Feb 24 18:55:14 onStartCommand/onCreate would of course look cleaner if the check is done within the methods Feb 24 18:59:53 Anybody here tried Xamarin? Feb 24 19:03:47 akp. you can build apps for any screen resolution. i dont understand what you want Feb 24 19:06:24 I need to show a message in a dialog but with no buttons. Can I use an AlertDialog and just not do .setPositiveButton/.setNegativeButton, etc? Feb 24 19:07:08 KillmeSoftly: yeh Feb 24 19:07:12 KillmeSoftly: is that not really easy to test ? Feb 24 19:08:11 Suggestions for methods to parse a String like "0,200,200,200" to long[] ? Feb 24 19:08:45 lol i suppose it would be but my microUSB cable for my nexus 7 sucks so testing on it requires me to hold it in a certain position...thus i only test when i have a significant amount of code that needs testing. and I don't use the emulator because it's too slow on my PC and i just plain don't like using it. thanks tho Feb 24 19:08:47 jda2000: probably not, they have their own support channels. Feb 24 19:12:26 novie , I don't need help with it as I don't have it. But l would be interested in the opinions of experienced developers. Feb 24 19:12:45 jda2000: maybe try one of their mailing lists? Feb 24 19:16:05 novie , maybe. But do people not come back here once they have tried it? Feb 24 19:16:47 jda2000: no idea, doesn't really get discussed here. Feb 24 19:23:30 I've got this stupid issue where Maven is trying to fetch support-v4 r11 from Maven but its not there. Why the heck would it be even fetching it? I can't figure it out. Feb 24 19:24:19 achuinard: probably because you have it as a dependency in your pom.xml file. Feb 24 19:25:18 Ah, figured it out. This Crouton library is using r11 Feb 24 19:32:27 I know there is more to the stack than just this line, but I know this is the root of my problem: java.lang.SecurityException: ConnectivityService: Neither user 10164 nor current process has android.permission.ACCESS_NETWORK_STATE. However in my manifest I have the permission to access network state....the fudge? Feb 24 19:36:30 Maybe you think you do, but you actually don't Feb 24 19:41:49 any idea how to hide the bottom bar? Feb 24 19:42:00 i tried that: http://npaste.de/p/l3 Feb 24 19:42:07 * http://npaste.de/p/l3p Feb 24 19:42:21 what bottom bar ? Feb 24 19:42:34 the one with the back/home buttons Feb 24 19:42:44 why hide it ? Feb 24 19:42:51 how are users gonna go back ? Feb 24 19:42:52 its a kiosk device Feb 24 19:42:55 not at all Feb 24 19:43:02 you can dim it Feb 24 19:43:13 or if you have root you can kill the process Feb 24 19:43:19 You have to root the device as you can't do it normally Feb 24 19:43:22 dim/minimize it is about all you can do w/out a custom rom, I believe Feb 24 19:43:28 i can? i thought its in the system process Feb 24 19:43:29 but under normal conditions you cant do anything cept dim i think Feb 24 19:43:44 Didn't they fix the killing it Feb 24 19:43:48 In like ICS Feb 24 19:43:53 (since otherwise malicious sw could do additional unpleasant things) Feb 24 19:44:11 SimonVT: I dont know, did they ? and I wouldn't call it fixing it...more blocking kiosk mode Feb 24 19:44:12 :) Feb 24 19:44:54 what would the process be called? Feb 24 19:45:03 Blocking something that never existed, fixed allowing malicious apps hijack devices Feb 24 19:45:16 ah systemui. that works Feb 24 19:45:27 SimonVT: see iOS caters for such things Feb 24 19:45:30 Insert some extra words so it makes sense Feb 24 19:45:31 seen it done Feb 24 19:45:45 SimonVT - i don't just think i do, i know I do because I always look at my manifest before testing to make sure everything is correct. Feb 24 19:53:03 :) Feb 24 19:54:32 If I want to bundle a bunch of resources with my app that I can programmatically access without hardcoding their resource IDs, what's the best way to do that? Feb 24 19:54:57 I Feb 24 19:55:25 I'm looking for an equivalent to just dropping them off somewhere and then being able to do an opendir() and readdir() to find them. Feb 24 19:58:11 How can I get values[i] here to a long[]? http://pastebin.com/aWgYAu82 Feb 24 19:59:29 Quacked: it's already a long[]. What do you mean? Feb 24 20:00:15 Improv: you can put things in assets/ and there is an API for that Feb 24 20:00:24 I mean, I need it like long[] pattern = {firstvalue,secondvalue,thirdvalue,...} Feb 24 20:01:00 dragorn: I'll look into that. Thanks. Feb 24 20:01:02 Improv: context.getAssets() is a place to start looking Feb 24 20:04:54 flodin: atm, values just returns [J@418b09c0 Feb 24 20:05:38 I need to add the values[i] in the for loop to a single long[] pattern I think Feb 24 20:07:33 you're just trying to init an array? Feb 24 20:08:23 hmm Feb 24 20:09:33 maybe Feb 24 20:10:11 http://pastebin.mozilla.org/2173190 ?? Or am I way off base? Feb 24 20:11:36 Hello all. I'm creating a wireless digital multimeter for a school project, and I have an android app receiving data via bluetooth. My problem is that when use the App for a few minutes, the phone gets real hot. I feel like I might damage something if I leave it running too long. How can I make my app less of an SOB to my phone? Feb 24 20:12:43 I want to know if when styling an UI it's ok to use absolute position of elements. Feb 24 20:13:20 For instance, when using HTML and CSS to describe a webpage, if you are good, the page looks the same under all resolutions. Feb 24 20:14:18 Also my app crashes everytime I turn my phone to go to landscape layout. hah Feb 24 20:15:56 that last part could be cause it's being destroyed and recreated and you're holding a pointer to something like a dialog or alertbox Feb 24 20:16:08 logcat will tell you Feb 24 20:16:31 diki: it's possible but it's not recommended. Using relative layout you can set absolute offsets from sides of the screen or something, but there are a LOT of android screen resolutions out there Feb 24 20:17:02 * skwex hey Feb 24 20:17:16 dragorn:so which method is preferred? Feb 24 20:17:55 diki: design a UI that can scale to different screen sizes elegantly, and design specific UI layouts for landscape, portrait, and the 4 or 5 screen size buckets. Actual resolution inside that bucket isn't defined Feb 24 20:18:22 though there are guidelines for device manufs, there's no real guarantee they'll follow them Feb 24 20:19:04 Would you have a specific guide/tutorial in mind that explains this in detail? Like best practices in UI design? Feb 24 20:19:15 google has a pretty good one on the developer site Feb 24 20:19:22 Do apps running on a tablet run fullscreen? Feb 24 20:19:51 Improv: yes, it's just a big screen. You can define tablet specific layouts using the xxlarge bucket and such tho Feb 24 20:21:04 dragorn: I bet tablet users often hope people will widgetise their apps so they can run multiple apps at the same time. Feb 24 20:21:27 Improv: dunno. I don't. But I make no claims to be the typical user. Feb 24 20:21:52 Improv: My big problem with widgetized anything is they almost always look terrible - a big opaque blob in the middle of the desktop that doesn't flow w/ anything else Feb 24 20:22:15 Improv: the only app widgets I use are ones that let you have a fully transparent widget and it blends nicely. Feb 24 20:22:28 Improv: but who knows - ppl seem to like them, so, maybe Feb 24 20:22:52 dragorn: The only tablet I have is ancient and kinda useless so I don't really know what modern tablet users want either. Feb 24 20:23:18 Improv: me neither wants multiple apps at once Feb 24 20:23:25 if i want that, i use my laptop :) Feb 24 20:23:29 Changing the topic, GCC,Make and perl are all ported to android, natively. Feb 24 20:23:30 It's one of those cheapo $60 tablets running some early 2.x android that's too slow to be usable... Feb 24 20:24:01 diki: Neat. Would be better if they made perl bindings for the GUI stuff. Feb 24 20:24:18 There are Feb 24 20:24:35 There is a perl example apk that when executed, displays a Toast message Feb 24 20:24:46 diki: Nice. Where can I read more? Feb 24 20:24:57 I haven't researched it more, I only need the perl binary Feb 24 20:25:11 http://code.google.com/p/perldroid/ Feb 24 20:25:54 there's also ASE Feb 24 20:25:58 ase? Feb 24 20:26:04 android scripting environment Feb 24 20:26:31 When people start writing real apps entirely in Perl, I'll probably read more about it. Feb 24 20:26:49 I saw that page before. No indication that it's mature enough yet. Feb 24 20:26:53 Well, perl is nice, because it's getting us closer to creating a working coding environment with GCC and make. Feb 24 20:27:42 I was working on compiling GNU Autoconf, and it needed perl, so.. Feb 24 20:27:55 of course, I was just testing if it would work. Feb 24 20:29:53 Assets keep their full filename, with extension, right? Feb 24 20:44:24 I'm not sure what to do. I got the maven android sdk deployer to install artifacts locally, but Crouton is still trying to fetch support r11 from central. Feb 24 20:45:02 I tried adding an tag to it to remove the dependency - I want it to use the local lib, forget the central fetch Feb 24 20:48:50 Sigh. What I wouldn't give for Perl's map{}(). Feb 24 20:49:50 Array[] newArray = map{$_ =~ s/\.sql$//} oldArray; .... want. So much. Feb 24 20:50:46 err.. ok, that's slightly not what I want, but .. anyhow. Feb 24 20:51:32 Anyone have any insights on android development with clojure? Feb 24 21:09:26 "Cannot invoke add(String) on the aray type String[]" .... Java, I hate you so. very. much. Feb 24 21:15:55 because arrays are actual arrays and not lists? :D Feb 24 21:17:07 Is it possible to have a cursoradapter which only receive changes from the fully URI? Feb 24 21:18:49 timroes: I find it frustrating when languages provide nonflexible data structures like that :) Feb 24 21:19:07 use a list if you want to be flexible? Feb 24 21:19:13 timroes: Java is not C. It doesn't have an excuse for this kind of thing :) Feb 24 21:19:27 Improv: ever written any C? Feb 24 21:19:30 yeah it does, because it let you decide what to use Feb 24 21:19:36 fredcooke: Yup. Quite a lot, actually. Feb 24 21:19:43 Then stop being silly. Feb 24 21:19:52 because array != list and every developer knows this, so java let you decide what you want (or better need) Feb 24 21:20:21 I've just gotten rather used to Perl, where one doesn't need to think about this kind of stuff. Feb 24 21:20:28 :-/ Feb 24 21:30:12 HI there, I have added some round drawables and in ADT they look good but in the emulator they don't look round... I dont have a phone to test... so¿?¿? Feb 24 21:33:37 for the lack of a killall on android, any implementation of it in java? Feb 24 21:33:55 i'm trying to nuke systemui, but 'service call activity 80 s16 com.android.systemu' won't let me. Feb 24 21:34:10 "kill pids only available to the system" (i am root, so no idea) Feb 24 21:37:29 ps auxf Feb 24 21:37:39 gnarf.. Feb 24 21:38:38 Did somebody else ever run into problems with EGit and Android Library projects? Feb 24 21:51:50 does referencing a library project only apply to source projects declared as libraries? That is it's not meant for jar-red libraries I have in libs/ in my actual project, right? http://developer.android.com/tools/projects/projects-cmdline.html#ReferencingLibraryProject Feb 24 21:54:37 I'm getting this error https://gist.github.com/anddam/5025858 when trying https://github.com/dozingcat/Vector-Pinball , I thought it was due to missing libgdx but the debug apk I built run on my device while crashing on emulator Feb 24 21:54:39 any hint? Feb 24 21:55:11 L24 says E/AndroidRuntime( 1164): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load gdx: findLibrary returned null Feb 24 21:55:17 but gdx.jar is in libs/ Feb 24 21:56:09 and libgdx is in the assembled apk, I just checked it with apktool Feb 24 21:57:22 I updated gist with the ls from extracted apk's lib/ Feb 24 22:08:58 My jpeg loads in RGB_565 even when I specify options.inPreferredConfig = Config.ARGB_8888; & options.inDither = false;. This happens on Android 2.3 (emulator), but behaviour is correct on device 4.2.2 Feb 24 22:15:06 is there a way to listen for a sticky intent but only for when it updates? Feb 24 22:15:56 i'm listening for action_battery_changed, but my code gets to that point before the new broadcast has been sent out, so it's retrieving the old intent Feb 24 22:52:19 Hey all, I'm reading through the android UI guidlines and had a question regarding a specific example. Feb 24 22:52:29 This appears to just be a listview, but how did the set the headers? http://developer.android.com/design/building-blocks/lists.html Feb 24 22:53:29 I would assume it's done through ListView addHeaderVeiw, but wanted to understand. In that image, are we looking at a single list view with multiple headers? Or multiple listviews Feb 24 22:56:55 This certainly isn't a listview, but it also is sectioned. http://developer.android.com/design/media/metrics_forms.png. How does one achieve that? Feb 24 23:19:57 hello everyone Feb 24 23:20:27 hey Feb 24 23:20:37 i am using sqlite how can i insert one records using parameters , i dont want to concatenate one big string to insert 40 records Feb 24 23:20:56 i mean 40 names Feb 24 23:27:37 are there someone here Feb 24 23:31:55 hey guys.. you were right.. I brought a chinese tablet but It wasn't great so I rbought a nexus Feb 24 23:31:57 7 Feb 24 23:32:08 I turned on developer mode but It won't work on my computer Feb 24 23:33:05 won't work in what way? Feb 24 23:33:29 It won't be recoginized as a running device in eclipse Feb 24 23:33:33 I even have the google usb drivers Feb 24 23:34:42 are the drivers installed and is the device in device manager? Feb 24 23:34:46 (assuming windows) Feb 24 23:35:18 nope Feb 24 23:35:23 the drivers are installed Feb 24 23:35:26 but its not there Feb 24 23:40:56 Any libraries that can perform http request, but also have features like viewing request headers i.e the one you are about to send to the server as well? Feb 24 23:53:57 does android have a built-in 2/3D vector class? Feb 25 00:14:26 hey guys, would anyone be interested in trying out and/or maybe contributing to my SDK trying to target Android as well ? :) Feb 25 00:15:26 trying out what? Feb 25 00:15:26 ESphynx, what's the SDK for? Feb 25 00:15:27 an app? Feb 25 00:16:03 kaneda^: x-platform dev... 2D/3D , GUI toolkit, networking... C-based OO language natively compiled Feb 25 00:16:14 ESphynx, that sounds great, link me Feb 25 00:16:19 kaneda^: www.ecere.com Feb 25 00:16:49 ESphynx, this is for android? Feb 25 00:17:13 kaneda^: http://ecere.com/wiki/index.php?title=Android -- This describes how to deploy on Android Feb 25 00:17:35 kaneda^: http://ecere.com/tmp/android-home.png -- screenshot of 2 apps running on Android =) Feb 25 00:17:36 ESphynx, cool, so this was made to be more efficient for rendering than the gl in android java? Feb 25 00:17:56 kaneda^: i've been working on the SDK since 96, ultimately to build cross-platform games Feb 25 00:18:08 wow Feb 25 00:18:19 I just want Android to be a deployable platform, along with iOS , BlackBerry , and all the other platforms I Hope to support ;) Feb 25 00:18:24 ok, i have this project that i'd like to use this in i think, just have a few questions Feb 25 00:18:30 right now Windows, Linux, OS X and Android work Feb 25 00:18:45 right now i get webcam preview callback, and i send that to native, could i then render to an overlay with this? Feb 25 00:18:55 iOS is next on the list, and I'm just about to release a 64 bit version :) Feb 25 00:19:03 kaneda^: I don't see why not? Feb 25 00:19:11 bah, stupid proxy blocks ecere as a 'gaming' site :S Feb 25 00:19:24 bankai_: Yeah I hate that, that's because zsNes author kindly hosts my website :P Feb 25 00:19:27 i'm wondering because right now i have to make a new bitmap on every frame and fill it from the buffer that i fill in native Feb 25 00:19:36 ESphynx, ideally i'd just push stuff into the gl buffer from native Feb 25 00:19:47 but i have no idea how to do this :) Feb 25 00:20:03 kaneda^: keep in mind the Android support is still in the works, so either you're very brave or you're interested in contributing :) (It's all open source) Feb 25 00:20:23 ESphynx, damn, i was hoping you'd say it was really well-developed already :| Feb 25 00:21:13 so, when you say "open source" ... are you GPL'ing all this ? Feb 25 00:21:42 bankai_: BSD 3 clause Feb 25 00:21:51 I dislike the GPL. Feb 25 00:22:16 ditto, that's why i asked ;) Feb 25 00:22:23 bankai_: surely you can check out http://github.com/ecere/sdk since ecere.com is blocked for you :P Feb 25 00:22:35 tah Feb 25 00:37:34 is there some sort of standard for large-scale inter-device communication? the use-case is telling many users about information entered by another user. is an http server the ideal solution here despite the app being device-based? Feb 25 00:39:33 redscare: yeah, http is what'd you'd general use there Feb 25 00:40:02 redscare: or some centralized server, guess it doesn't have to be http, usually is though Feb 25 00:42:43 HTTP makes transfer and firewall handling easier Feb 25 00:46:39 awesome, thank you. and large amounts of data are usually still transferred in something like JSON? Feb 25 00:48:25 Hello Feb 25 00:48:48 Can someone here with an iPhone install http://mailboxapp.com and download its stylesheet? I need to study some of the CSS in detail Feb 25 00:49:21 this is an android channel ... Feb 25 01:01:04 and we're not really here to help you copy other people's software Feb 25 01:03:31 is there any good way to detect when a usb connection is made? (in 4.0+ UMS_CONNECTED doesn't work) Feb 25 01:24:21 Very interesting. Feb 25 01:24:45 If I rotate my phone into landscape mode my http get request fails... Feb 25 01:24:47 how can i change the color of the circle around a radio button? Feb 25 01:24:52 nothing gets stored into my buffer. Feb 25 01:29:12 diki: http://developer.android.com/guide/topics/resources/runtime-changes.html Feb 25 01:29:38 No, my issue is different. Feb 25 01:29:50 It's that if I rotate the screen, my http request returns no data. Feb 25 01:30:05 The code should be re-executed, all of it. Feb 25 01:30:20 But no data comes. I must force stop the application in order for it to work again. Feb 25 01:31:55 I can see my text that I wrote being output, but not the data from the http request. Feb 25 01:32:10 I do close my streams and the http connection, no idea why it's doing this. Feb 25 01:36:38 debug debug :) Feb 25 01:39:44 what the hell Feb 25 01:39:48 how come .settext isn't working Feb 25 01:40:14 agy2154: going to have to be more specific than that Feb 25 01:40:39 will .settext work if its after my setcontentview? Feb 25 01:40:44 super.onCreate(savedInstanceState); setContentView(R.layout.pop_up); TextView test = (TextView) findViewById(R.id.textView1); SharedPreferences preferences = getSharedPreferences(REFS, 0); iv = preferences.getString("InitialVelocity", "aaaaaaaaaaaa"); test.setText("asdlkjasdklj"); Feb 25 01:41:55 yeah Feb 25 01:42:02 there is nothing i can do to change it Feb 25 01:42:34 are you getting an NPE ? Feb 25 01:44:21 bankai_: what is an NPE? Feb 25 01:45:20 bankai_: n Feb 25 01:45:23 bankai_: no im not Feb 25 01:46:06 can I get access to a Activity's fragment from another fragment? Feb 25 01:46:14 to replace it? Feb 25 01:53:42 Actually, I am having a similar problem Feb 25 01:53:59 in a LinearLayout, my second textview is always empty despite the fact I print stuff Feb 25 01:54:11 i have an asynctask that I setup to download f file from a server. The file is downloaded correctly but the doInBackground runs twice. I want to force it to exit and not run again so that I avoid downloading and opening the file twice. Feb 25 01:54:14 any hints? Feb 25 01:54:55 got some code for us to look at ? Feb 25 01:55:15 i could, but its on another computer. Feb 25 01:55:17 one sec Feb 25 01:57:23 http://pastebin.com/gXPLc01m Feb 25 01:58:07 my apologies for the extraneous comments Feb 25 01:59:49 Fixed my problem, it had something to do with layout_width and layout_height attributes, but now my second problem has come up. Feb 25 02:00:36 I have a scrollview, as when I print the page, the source is very long. If I were to print some text in my second textview and THEN print the page, the second textview's content is gone. Feb 25 02:00:56 I print the page in the first textview Feb 25 02:01:32 Java on Android is easy, but the bugs and issues that arise is just unfathomable. Feb 25 02:01:45 Hey all, is there a particularly-recommended way to build a path for SQLiteDatabase.openOrCreateDatabase() ? Feb 25 02:02:46 hmm, if I don't attach the inflated fragment to root, the replace transaction doesn't actually remove and add. Feb 25 02:08:39 Hmm. Trying Context.getDir("mystuff",0) ; hopefully that will work. Feb 25 02:17:18 Settext still isn't working.. could it be time? http://pastebin.com/K3q2m40a Feb 25 02:19:10 oi oi Feb 25 02:19:22 oi? Feb 25 02:20:09 like 'hey' but more british Feb 25 02:20:18 ohh hey Feb 25 02:20:30 does anyone know what can be causing the problem? Feb 25 02:20:44 hmm so I set attachToRoot = false in the fragment inflation on oncreateview. Feb 25 02:20:46 also a genre of punk rock Feb 25 02:20:50 but I still see the underlying view! Feb 25 02:21:17 agy2154: what's your layout look like? Feb 25 02:21:26 a textview Feb 25 02:21:28 relative layout Feb 25 02:21:30 with it in the center Feb 25 02:21:36 thats all thats on there Feb 25 02:21:36 can you pastebin Feb 25 02:22:05 http://pastebin.com/tVhjUQqQ Feb 25 02:23:03 so your textView contains "TextView" ? Feb 25 02:23:14 yes Feb 25 02:23:20 by defult Feb 25 02:23:37 what happens when you take out android:text="TextView" Feb 25 02:23:57 let me try Feb 25 02:24:41 remains empty Feb 25 02:24:45 which is the default Feb 25 02:26:16 What can be causing the problem Feb 25 02:29:58 protected void onCreate() ? Feb 25 02:31:03 capella: yeah thats what Im using Feb 25 02:31:07 (vs. public void etc....) Feb 25 02:31:24 ohh Feb 25 02:32:19 agy2154:I was just facing a similar problem Feb 25 02:32:23 but with a linearlayout Feb 25 02:32:38 diki: was the problem with the XML? Feb 25 02:32:47 uh, no. Feb 25 02:32:52 It was missing attributes Feb 25 02:33:23 like what Feb 25 02:33:46 try mine but change the ids http://pastebin.com/Ernq3fw8 Feb 25 02:33:56 how do I get root on a dev phone again ? :| Feb 25 02:34:19 ESphynx:usually it's by flashing a pre-rooted kernel Feb 25 02:34:34 diki: well no I have the 'developer mode' enabled already Feb 25 02:34:34 other times, it's by using an exploit to get root without flashing another kernel Feb 25 02:34:42 i don't need to do any of that Feb 25 02:34:54 just click that about thing like 10 times Feb 25 02:35:07 Nexus 10 here Feb 25 02:35:17 on the build version Feb 25 02:35:20 yeah Feb 25 02:35:24 I did that alreayd, it's already root Feb 25 02:35:34 dev I mean, but adb shell is not letting me cd /data/data wh Feb 25 02:35:58 diki: Still won't work. Wried Feb 25 02:36:03 rooting is different Feb 25 02:36:11 can't I list the content of data ? Feb 25 02:36:26 I'm sure I was doing this just fine before... Feb 25 02:36:34 agy2154:Have you hooked the xml id with the textview in the java code? Feb 25 02:36:35 agy2154: if public onCreate() doesn't fix it, Try sticking Feb 25 02:36:37 Log.d("XXXXX", "HERE I AM"); Feb 25 02:36:38 right after the super.onCreate() call and see if that shows up in your logcat then debug your way down Feb 25 02:36:41 diki: yes Feb 25 02:37:02 capella: I tried public void..... Feb 25 02:37:05 capella: Also tried that Feb 25 02:37:15 agy2154:What if you change match_parrent to fill_parent? Feb 25 02:37:23 diki: also tried that Feb 25 02:37:39 should I just try chaning the text in the oncreate Feb 25 02:37:39 I can relate though Feb 25 02:37:43 and then make a constructor Feb 25 02:37:44 so if the Logcat message doesnt show up, pastebin your manifest Feb 25 02:37:46 these layouts are confusing Feb 25 02:37:46 for the setcontent view? Feb 25 02:39:52 agy2154:What if, the color of the text is the same as the background color? Feb 25 02:40:20 it could "hide" the text, but it will have just merged with the background color Feb 25 02:40:22 diki: that can be a possibility however I leave everything at defults Feb 25 02:40:28 Ill try changing the color tough Feb 25 02:40:28 diki: i ran into a problem like that the other day, couldn't for the life of me figure out what i'd done lol Feb 25 02:40:43 if Log.d("XXXXX", "HERE I AM"); right after your onCreate() doesn't show in the logcat then xml and color schemes dont matter as your activity isnt executing Feb 25 02:40:56 Hmm. Either converting a byte[] buffer to a String using toString() doesn't work, or I am somehow opening the wrong resource. Feb 25 02:41:28 Is there any oddity there with Java using UTF16? Feb 25 02:41:39 Improv:I don't think that can work Feb 25 02:41:57 and if you're using Eclipse as an IDE, push the great big CLEAN button, close and restart the IDE, and rebuild and test again Feb 25 02:42:47 capella: Ill try Feb 25 02:42:58 diki: color didn't work with ffffff Feb 25 02:42:59 on white Feb 25 02:43:06 #ffffff* Feb 25 02:43:33 agy2154:Have you tried the logger thing? Feb 25 02:43:52 also, are you issuing ant update install, where install would install on the device? Feb 25 02:44:08 diki: no this is a new app Feb 25 02:44:19 pastebin your manifest Feb 25 02:44:28 ok, but are you installing/running the new application? Feb 25 02:44:43 It happened to me once that I did not install it on the device Feb 25 02:45:01 OR I was editing a copy of the code in another file and nothing was happening. Feb 25 02:45:05 capella: would Log.d("asdasddas", "asdsadassda"); show up in logcat? Feb 25 02:45:31 diki: I'm running it via eclipse .. so installing Feb 25 02:45:31 yes, do Feb 25 02:45:33 adb logcat | grep asdasddas Feb 25 02:45:50 People still use eclipse? Feb 25 02:45:57 unfortunately Feb 25 02:45:57 I use the command line Feb 25 02:46:03 so much easier. Feb 25 02:46:10 you must like rails too Feb 25 02:46:11 intelliJ++ Feb 25 02:46:24 capella: Won't work Feb 25 02:46:26 nothing will show Feb 25 02:46:46 agy2154:Then apparently, your Activity is not being started Feb 25 02:46:50 that is the problem. Feb 25 02:47:03 pastebin Feb 25 02:47:04 manifest Feb 25 02:47:15 the manifest file will indeed tell us Feb 25 02:47:23 (3 times) Feb 25 02:47:24 It's by default set to execute MainActivity Feb 25 02:47:43 but the class and filename must be called the same Feb 25 02:48:17 http://pastebin.com/SG0KMUuJ Feb 25 02:48:36 this is mind blowing... its the first time i run into a problem like this Feb 25 02:48:41 android:name="com.TechDigy.parabolicmotion.MainActivity" Feb 25 02:48:49 change it to android:name="com.TechDigy.parabolicmotion.PopUp" Feb 25 02:49:21 it will then work Feb 25 02:49:38 Yeah but It will then skip the menu to that activity Feb 25 02:49:50 what menu? Feb 25 02:49:57 oh lord Feb 25 02:50:06 If you want to start another activity Feb 25 02:50:11 it's done entirely differently. Feb 25 02:50:20 I know Feb 25 02:50:30 * capella wanders off Feb 25 02:50:43 At this point, can you post ALL of your code? Feb 25 02:50:47 diki: Im not trying to start my application up with that activity.... com.TechDigy.parabolicmotion.MainActivity is what i want to start up with Feb 25 02:51:05 agy2154:and the popup activity? Feb 25 02:51:14 thats 3 buttons later Feb 25 02:51:30 agy2154:this code http://pastebin.com/K3q2m40a Feb 25 02:51:38 Aha. The Charset class has decoders I can use to turn byte[] into Strings. Feb 25 02:51:39 you were editing the popup activity all along Feb 25 02:51:52 I know Feb 25 02:51:55 place logcats all the way through what you believe the logical flow is and find out where it diverges Feb 25 02:51:56 or learn how to use the debugger Feb 25 02:52:09 agy2154:then I don't see where the problem is Feb 25 02:52:59 You are editing PopUp activity expecting to set text when that activity has not been started Feb 25 02:53:03 you need to start it manually Feb 25 02:54:02 Can two activities even share views? Feb 25 02:54:06 I don't think it's possible. Feb 25 02:54:21 Wow Feb 25 02:54:28 I think I am not even starting the same activity Feb 25 02:54:32 i should be in results Feb 25 02:54:45 and I was currently editiing popup Feb 25 02:54:55 yes, I said that already Feb 25 02:55:07 me too >) Feb 25 02:55:27 hey guys Feb 25 02:55:44 I'm trying to implement this: http://developer.android.com/reference/android/hardware/SensorManager.html#registerListener(android.hardware.SensorEventListener, android.hardware.Sensor, int, android.os.Handler) Feb 25 02:55:52 sorry for being such an idoit capella diki Feb 25 02:55:57 What I'm wondering is how the Handler is used? Feb 25 02:55:58 heh :p Feb 25 02:56:04 i was stuck on it for 2 days now Feb 25 02:56:34 my interpretation is that when sensor data is received, the SensorEventListener's onSensorChanged function is called Feb 25 02:56:44 but... how is the Handler used then? Feb 25 02:56:45 build a trail of logcat / debug messages into your code as a matter of practice Feb 25 02:57:02 that can be turned on / off with a switch Feb 25 02:57:04 which is a better android browser, chrome or opera Feb 25 02:57:06 Does the Handler just queue up the SensorEvents or something? Feb 25 02:57:15 Firefox Feb 25 02:57:20 blognewb:tough choice Feb 25 02:57:27 Firefox Feb 25 02:57:33 Opera Mini and Opera Mobile have webpage compression technology Feb 25 02:57:34 Firefox :) Feb 25 02:57:35 i read firefox is just as bloated Feb 25 02:57:38 Opera Mini is better. Feb 25 02:57:43 :) Feb 25 02:57:47 Firefox Feb 25 02:57:49 Opera may as well be shitcanned Feb 25 02:57:51 But Chrome is...no idea Feb 25 02:57:55 and Firefox has plugins Feb 25 02:57:59 in terms of efficiency and speed, opera mini is preferred Feb 25 02:58:01 I have all them, in case I need anything Feb 25 02:58:04 This constant was deprecated in API level 14. replaced by <-- does that mean that it won't work? I mean I know what deprecated means. but for instances addPreferencesFromResource is "deprecated", but it still works Feb 25 02:58:05 Chrome takes about 2G to load 5 tabs Feb 25 02:58:12 But I constantly use Opera Mini Feb 25 02:58:19 diki, how is ff better than chrome Feb 25 02:58:24 g00s, compared to what Feb 25 02:58:29 my shitty 35 kiloBITS per second connection... Feb 25 02:58:33 only opera mini saves me there Feb 25 02:58:33 Their developers are smarter and more available Feb 25 02:58:58 But Opera Mini has quite a large number of bugs. Feb 25 02:59:10 From incorrect rendering of some things Feb 25 02:59:18 to page reloading bugs when you click on links.. Feb 25 02:59:50 g00s, 2G 2 gigabytes? **** ENDING LOGGING AT Mon Feb 25 02:59:57 2013