**** BEGIN LOGGING AT Fri Apr 11 02:59:58 2014 Apr 11 03:13:15 hm, how do I specify 'roboto condensed light' Apr 11 03:16:35 http://developer.android.com/about/versions/android-4.1.html#Fonts Apr 11 03:16:51 looks like only native >=4.1 Apr 11 03:17:57 Yep, can't assume that the font will be there on "debloated" android builds either. Apr 11 03:18:45 Fenny orly? so the fonts here : http://developer.android.com/design/style/typography.html Apr 11 03:18:56 you are saying not all of them may even exist on the phone Apr 11 03:19:02 i dont care about custom roms Apr 11 03:19:50 They will be there on stock ROMs where they have a google play store. Apr 11 03:19:56 when i look in fonts/system_fonts.xml i see sans-serif-condensed Apr 11 03:20:19 If you plan to market to other than the play store it is worth considering. Apr 11 03:20:23 but not sans-serif-condensed-light Apr 11 03:20:33 no, i'm not planning outside of Play Apr 11 03:21:18 For instance a lot of the android forks you find in china are missing a lot of the AOSP stock stuff. Apr 11 03:21:30 g00s the fonts are only 2mb so you can easily pack it in yourself Apr 11 03:21:40 That is true enough. Apr 11 03:21:52 in onPause method should I call super.onPasue() before mSensorManager.unregisterListener or after?? Apr 11 03:22:06 usually before Apr 11 03:22:07 safer to do first Apr 11 03:22:14 thanks Apr 11 03:22:20 if you grep onPause it just handles disconnecting UI for the most part Apr 11 03:29:33 Is lasserix here? Apr 11 03:29:45 Aye Apr 11 03:30:26 Hey so you said yesterday that what I should first do is the Hello World Application first right? By following all the steps Apr 11 03:30:40 yeah more ore less Apr 11 03:31:16 Okay, and you also said something about uploading the sample app to the app store? Apr 11 03:31:25 i was half joking Apr 11 03:31:26 and then you would keep helping me from there Apr 11 03:31:32 but if you did indeed upload an app Apr 11 03:31:46 i would be happy to help answer any questions, i'd probably do anyways Apr 11 03:31:57 but if you got that far, you probably wouldn't need much help ;p Apr 11 03:32:03 lasserix: what is the meaning of life? Apr 11 03:32:10 okay Apr 11 03:32:11 oh I haven't uploaded any apps though :x Apr 11 03:32:15 I'm just starting now Apr 11 03:32:38 and now that I remember, when I used Eclipse before for the hello world app Apr 11 03:32:59 the meaning of life is realizing you never have to answer such a question :) Apr 11 03:33:13 no matter what I did, I got help from a few people, we could never get it to work. There was always a variable missing error, so hopefully I won't have the same error Apr 11 03:34:04 Hopefullythisuse: since you have little actualy coding practice, it'll probably take a while to get a hang of some of the process Apr 11 03:34:41 lasserix: I have the answer... I just need the question. Apr 11 03:35:21 how to get last _id in sqlite table? Apr 11 03:36:29 ashooby: http://www.holybooks.com/wp-content/uploads/J-Krishnamurti-Education-and-the-Significance-of-life.pdf Apr 11 03:36:44 slani you can use cursor.movetolast i think Apr 11 03:36:51 oh god, my computer just opened that pdf in gimp Apr 11 03:36:53 why Apr 11 03:37:20 SELECT LAST(column_name) FROM table_name; Apr 11 03:37:22 ? Apr 11 03:37:26 ashooby: outside of android, that author makes some great points to think on regarding that kind of question Apr 11 03:37:38 SELECT TOP 1 column_name FROM table_name Apr 11 03:37:38 ORDER BY column_name DESC; Apr 11 03:37:39 lasserix: so have to query all tabel by mayself. there is no method Apr 11 03:37:46 SELECT * FROM tablename ORDER BY column DESC LIMIT 1; Apr 11 03:37:59 ^^ Apr 11 03:38:03 thanks Apr 11 03:38:05 where column can probably be your autoincrement primary kery Apr 11 03:38:12 that is the sqlite syntax. Apr 11 03:38:13 http://gyazo.com/48908af55577623032309461cbef0cd3 Apr 11 03:38:22 Same problem .-. Apr 11 03:38:27 hopefully Apr 11 03:38:37 click the plus icon where it says import.android.os Apr 11 03:38:48 then delet the line that says android.r.* or something like that Apr 11 03:38:51 technically SELECT _id ... would probably be better Apr 11 03:38:54 then import R but from your project Apr 11 03:39:06 ashooby: presumes you know that the id is Apr 11 03:39:32 depends on the schema Apr 11 03:39:53 oh yeah sorry Apr 11 03:40:21 select PRIMARY_KEY_COLUMN NAME from table etc Apr 11 03:40:44 http://gyazo.com/2a1d6a3aed1f9bfa59a247606209bae5 Apr 11 03:40:46 though i find that totally useless since the cursor window backing the cursor still contains all the rows Apr 11 03:40:48 Now that error? Apr 11 03:41:09 Hopefullythisuse: as i said delete the line import android.R Apr 11 03:41:25 then when you import, make sure you are importing com.example.R Apr 11 03:41:40 android have native resources you can use, but the layout file is in your resources Apr 11 03:42:14 another way you can fix it is go com.example.myfirstapp.R.layout.activity_main instead of main_activity they do the same thing Apr 11 03:42:33 Hopefullythisuse: do you understand what the concept of "import" does? Apr 11 03:42:57 Yeah, if there is a missing value or something it "imports" it Apr 11 03:43:05 right? Apr 11 03:43:25 yeah so the problem is there are two places R can be imported from, your project or the resources included in the android sdk Apr 11 03:43:52 activity_main lives in your resources, NOT int he android resources, so when you import android.R it can't find main_activity Apr 11 03:43:58 It's more like a naming convention thing. import allows you to skip typing out the names of everything in longhand. Apr 11 03:44:36 technically you can have no imports as long as your compiler knows the classpaths, and you write out everything longhand. ;D Apr 11 03:44:42 yeah so like I said you can also do com.example.myfirstapp.R.layout.activity_main in setContentView or do import com.example.myfristapp.R Apr 11 03:45:06 that latter is probably preferable since you'll be referencing your resources more often (usually) Apr 11 03:45:28 http://gyazo.com/8397c16325132f4f5334858a21bd823a Apr 11 03:45:33 well that is the current screen Apr 11 03:45:43 Hopefullythisuse: Apr 11 03:46:00 expand that imports section, lol\ Apr 11 03:46:07 DO THIS now http://www.mkyong.com/eclipse/how-to-display-line-numbers-in-eclipse/ Apr 11 03:46:14 then reprint that screen Apr 11 03:46:21 ^^ Apr 11 03:47:26 High, i have question Apr 11 03:47:41 no you don't need to smoke anymore Apr 11 03:47:43 How do you dynamically assign a string id to an android ui Apr 11 03:47:48 element Apr 11 03:47:59 like, i'm dynamically creating text boxs within java code Apr 11 03:48:01 http://gyazo.com/b9d6f2b144c1d5b17b642c1fe4bb9b75 Apr 11 03:48:03 R.string.mystring Apr 11 03:48:03 and i want to be able to access them Apr 11 03:48:24 Hopefullythisuse: okay delete everything on line 3 Apr 11 03:48:39 when it asks you to import Apr 11 03:48:52 don't import android.R instead import com.example.myfirstapp.R Apr 11 03:48:54 manually or by hitting the subtract sign? Apr 11 03:49:01 delete Apr 11 03:49:08 pressing the subtract sign just hides it Apr 11 03:49:10 it Apr 11 03:50:17 it Apr 11 03:50:20 http://gyazo.com/fc63fed27a8b6bd875653c5ba0cdf756 Apr 11 03:50:36 ? there is no com.example.myfirstapp.4 Apr 11 03:50:40 R* Apr 11 03:51:12 clean your project Apr 11 03:51:16 project->clean Apr 11 03:51:18 then try again Apr 11 03:51:56 expand res on the left pane do you have an activity_main layout xml? Apr 11 03:52:00 http://gyazo.com/2f385b545d8309f13d5ccd08584dde0a Apr 11 03:52:31 Fenny: http://gyazo.com/39e69747e1e0ccb98ca0cb7a8515f005 Apr 11 03:52:40 expand layout Apr 11 03:52:44 ^^ Apr 11 03:53:10 Koolaids-: http://stackoverflow.com/questions/8460680/how-can-i-assign-an-id-to-a-view-programmatically Apr 11 03:53:15 http://gyazo.com/b223fe1f0f2e2f9741724d7c4b429866 Apr 11 03:53:47 Hopefullythisuse: save your project, clean it and restart eclipse Apr 11 03:54:27 Uri _uri = ContentUris.withAppendedId(SmartStrokeContract.ID_TABLE_URI, rowID); is there a way to get rowId from _uri?? Apr 11 03:54:37 lasserix you dont' understand Apr 11 03:54:50 i need to be able to create the ID dynamically Apr 11 03:54:57 like...how to explain Apr 11 03:54:59 oh Apr 11 03:55:05 you add an xml file called id Apr 11 03:55:07 to values Apr 11 03:55:21 then you can just access it like R.id.whateveryoucalledit Apr 11 03:55:31 ok, I'm creating a unknown amount of CONTROLS. i might have 5 of them, or 10 of them. i want to name them textbox_1, textbox_2, textbox_3 Apr 11 03:55:39 so i can iterate through them Apr 11 03:55:47 and grab their values Apr 11 03:55:54 you making them in xml or code? Apr 11 03:55:57 in code Apr 11 03:56:02 Koolaids-: use tags Apr 11 03:56:06 or you can just use setId Apr 11 03:56:25 but you dont really need to set the id since you can just throw them in an arraylist Apr 11 03:56:41 Koolaids-: You can also store the pointer/reference for later. Apr 11 03:56:50 Mmmm Apr 11 03:56:56 ok Apr 11 03:57:27 okay now what? lasseric Apr 11 03:57:29 lasserix Apr 11 03:57:30 althought you might set the id to something so you can switch on it Apr 11 03:57:43 still not working? Apr 11 03:58:05 another question, when i'm setting width of controls it only accepts values in PX and not dp. how to use dp? Apr 11 03:58:10 ijust made the app from the guide and it is working on this end: is your eclipse working? Apr 11 03:58:12 Or should i be using PX anyway? Apr 11 03:58:21 He might need to readd the R import still lasserix Apr 11 03:58:22 http://gyazo.com/cf9c4ee0c31dfb7aaeeb3935d6002473 Apr 11 03:58:44 How would I know if my eclipse is not working? Apr 11 03:58:57 Koolaids: make a state function somewhere that covnerts DP to px or set the values as dp in dimens.xml in values and use getResources.getDimensions and it'll automnatically convert it to px for you Apr 11 03:59:05 Hopefullythisuse: chances are it isn't ;) Apr 11 03:59:08 slani: _uri.getLastPathSegment() Apr 11 03:59:31 Hopefullythisuse: goto help and make sure you sdk is up to date and your eclipse is up to date Apr 11 03:59:49 bankai! lol he tried so hard to help me fix this problem two months ago Apr 11 04:00:05 Hopefullythisuse: did you change anything in activity_main.xml? Apr 11 04:00:20 I haven't done anything after I refreshed Apr 11 04:00:26 i remember you, screenshot boy Apr 11 04:00:34 no i mean did you change the file at all? Apr 11 04:00:38 and how do I check if my sdk is up to date btw? Apr 11 04:00:54 No, I've been doing everything just like you said Apr 11 04:00:58 goto help and pick android sdk and see if you have latest stuff installed Apr 11 04:01:24 http://gyazo.com/941e4c9167498e94b2b200027309bf6e Apr 11 04:01:37 lol yeah... bankai_au Apr 11 04:01:50 ahh yeah that's odd Apr 11 04:02:00 I forgot my password for the old account Apr 11 04:02:09 oh :/ Apr 11 04:02:22 did you mean old* btw? Apr 11 04:02:30 Hopefullythisuse: delete that entire folder of eclipse Apr 11 04:02:34 go here: http://developer.android.com/sdk/index.html?hl=sk#download Apr 11 04:02:37 and install that Apr 11 04:02:49 your eclipse is fucked up for some reason Apr 11 04:02:54 it should say "Android SDK Manager" Apr 11 04:02:56 I think I already have that installed Apr 11 04:02:58 under help Apr 11 04:03:23 unless you are on mac or linux it might be different menu system Apr 11 04:03:35 err Apr 11 04:03:35 oops Apr 11 04:03:36 sorry Apr 11 04:03:40 it's under Window not help Apr 11 04:04:02 yeah found it Apr 11 04:04:28 do you have some kind of script that uploads your sceenshots? ;p Apr 11 04:05:15 did you download that link the other day? Apr 11 04:05:49 what link Apr 11 04:05:50 ? Apr 11 04:05:50 http://gyazo.com/cced478385597087eccb8affe1e9eab8 Apr 11 04:06:00 Those errors came up? Apr 11 04:06:05 go here: http://developer.android.com/sdk/index.html?hl=sk#download Apr 11 04:06:34 download that Apr 11 04:06:37 it should be up to date Apr 11 04:06:58 What if I downloaded that before? two months ago I think Apr 11 04:07:05 should I first delete the one i have? Apr 11 04:07:13 Or will that save over the old one? Apr 11 04:07:26 just delete it Apr 11 04:08:14 http://gyazo.com/a99bacba675e0ca459398ae30cb26415 Apr 11 04:08:19 That's my Code file Apr 11 04:08:30 Should I delete all three? Apr 11 04:08:44 do you have any projects to save? Apr 11 04:08:46 im assuming no Apr 11 04:08:53 just delete that whole folder Apr 11 04:08:59 goto that link i pasted twice Apr 11 04:09:03 and download it Apr 11 04:09:11 and then put it somewhere and run it Apr 11 04:10:26 Getting sent to the recycling bin is enough right? I don't have to go to the recycling bin and delete them from there too? Apr 11 04:11:14 And will it take a long time to download btw? Apr 11 04:11:51 I remember before it took hours for it to load. Maybe when I first installed everything I did it wrong? Apr 11 04:12:16 umm Apr 11 04:12:25 how long have you been using computers for? Apr 11 04:12:40 2 years I think Apr 11 04:12:51 so um moving it to the recycle bin is fine Apr 11 04:13:02 in fact just downloading it to a different folder will work too Apr 11 04:13:15 i just said delete it so you keep your computer organized Apr 11 04:13:22 I'm already in the process Apr 11 04:13:39 at 27,714 items recycled xd Apr 11 04:15:04 ashooby: thanks Apr 11 04:16:05 Hopefullythisuse: id recomend you make friends with someone or find a teacher who can help you walk through some of this stuff in person--not android in particular, but just java and coding and such, or take a class a community college nearby Apr 11 04:16:47 just cause i anticipate a lot of your questions at this point are general to the point of things you learn through expirience of just using it all the time Apr 11 04:17:22 Hopefullythisuse: mybe thsi can help you http://slidenerd.com/ Apr 11 04:18:20 thanks I bookmarked it and I'll check it out tomorrowq Apr 11 04:18:44 http://gyazo.com/dfdcc587a2d68bbaf7bcc78af8c4ae03 Apr 11 04:18:49 Why are those two still there? Apr 11 04:19:27 i'm feeling stabby reading this conversation Apr 11 04:19:39 lasserix: When I clicked on them one just says configuration and the other one says configuration and plugins Apr 11 04:19:58 one sec Apr 11 04:20:41 so unlike a normal self installing programming, eclipse will live in your computer whereever you unzip it Apr 11 04:20:59 okay Apr 11 04:21:04 *one sec let me d/l it and see whats ni there Apr 11 04:21:38 So it doesn't really matter that those two are there? Maybe I could just create a whole new Code file or delete them from that Code file? Apr 11 04:21:52 umm Apr 11 04:21:58 what does "code file" mean? Apr 11 04:22:07 I means folder Apr 11 04:22:08 sorry Apr 11 04:22:12 mean* Apr 11 04:22:14 oh no problem Apr 11 04:22:25 not sure why there are two Apr 11 04:22:32 I just removed them Apr 11 04:22:35 one sec i am downloading it Apr 11 04:22:41 so now it's clear Apr 11 04:22:51 I'll download the Android SDK bundle now Apr 11 04:22:52 did you pick the right bit version 32 versus 64? Apr 11 04:23:04 Hopefullythisuse: you dont need to download it seperatly Apr 11 04:23:16 if you followed the link i posted it's all included and already configured Apr 11 04:23:26 okay Apr 11 04:23:30 yeah Apr 11 04:23:31 and I got the 64 bit Apr 11 04:23:40 that's what my computer properties said when I checked Apr 11 04:23:55 so i dont know what you are downloading but my zip file only has one folder in it Apr 11 04:24:15 I haven't downloaded anything new yet Apr 11 04:24:36 would you please goto Apr 11 04:24:52 go here: http://developer.android.com/sdk/index.html?hl=sk#download Apr 11 04:24:53 I'm already downloading the adt bundle Apr 11 04:25:02 okay great Apr 11 04:25:21 you can put it wherever you want to on your computer Apr 11 04:25:32 usually closer to the c:\ root folder is best Apr 11 04:25:43 and how would I do that? Apr 11 04:25:46 but it doesn't matter ( i keep everything on my destkop for instance) Apr 11 04:25:58 I'll just put it in the Code folderr Apr 11 04:26:07 don't worry about it, just unzip the file into say "android-coding" or whatever on your desktop Apr 11 04:26:11 so everything related to coding is organized there Apr 11 04:26:19 oh okay Apr 11 04:26:42 Hopefullythisuse: the thing is this is the program files, which is different from the workspace (the directory you specificy when you start eclipse) Apr 11 04:26:52 the workspace folder is where your coding files will actually live Apr 11 04:27:28 you can have multiple workspaces Apr 11 04:27:44 okay, so the workspace would be the Code Folder right? Apr 11 04:27:50 yeah Apr 11 04:27:54 and the adt bundle would just be on my desktop Apr 11 04:27:59 more or less, it's the parent directory of all your code files Apr 11 04:28:15 the adt bundle is the eclipse program and the android sdk plugin/tools Apr 11 04:28:21 you can put that wherever Apr 11 04:28:35 most of the time that would actually go into c:\program files\ Apr 11 04:28:52 that's where most programs get installed, but again you can put it wherever you want Apr 11 04:29:11 okay Apr 11 04:29:15 50 seconds left Apr 11 04:29:24 when you start eclpse i recomend you make one folder called like "android-projects" where you specifiy the workspace to be Apr 11 04:29:41 you can put that in your user/my documents or on your desktop or whereever Apr 11 04:29:55 you can always move it later, as long as you move the parent directory and not any folders inside Apr 11 04:29:55 and what would go in that folder? Apr 11 04:30:12 that will be the folder that contains all your code / eclipse files Apr 11 04:30:36 Hopefullythisuse: maybe this can help you http://www.howtogeek.com/howto/15677/zen-and-the-art-of-file-and-folder-organization/ Apr 11 04:30:40 eclipse generates a bunch of files that it uses to make your java files work Apr 11 04:30:55 eclipse puts all the related files into a folder it calls the workspace, Apr 11 04:31:12 you can have multiple programs/apps in the same workspace, and have multiple workspaces Apr 11 04:31:12 okay, so that one folder I had before, the Code folder Apr 11 04:31:17 yeah Apr 11 04:31:25 that would go inside the "android-projects right? Apr 11 04:31:31 sure Apr 11 04:32:00 Okay it finally loaded Apr 11 04:32:25 http://gyazo.com/1f32753ee07301cd653974a8fcc32aca Apr 11 04:32:40 Now try the Hello World App with the new Eclipse? Apr 11 04:33:04 yeah Apr 11 04:33:25 And what should I save to my desktop? Apr 11 04:33:31 uhh Apr 11 04:33:36 so did you start eclipse? Apr 11 04:34:12 http://gyazo.com/ef81c5cc1125391549b8fbf074599253 Apr 11 04:34:26 which eclipse? I'm guessing the 300+ kb one? Apr 11 04:34:33 ahh yeah so the eclipse one that is 113kb Apr 11 04:34:49 wtf? Apr 11 04:34:52 you might make a shortcut on yourdesktop/start bar Apr 11 04:35:22 http://gyazo.com/c576a99da81ebcfdbfdb08d9c130ff2a Apr 11 04:35:32 Hopefullythisuse: notice one of those files is eclipse.exe and one is eclipsec.exe Apr 11 04:35:42 yeah Apr 11 04:35:45 yeah you have to extract the zip file Apr 11 04:35:59 are you on windows 8? Apr 11 04:36:20 just open the zip file you downloaded and drag and drop the folder somewhere (like n your desktop) Apr 11 04:36:24 Windows 7 Apr 11 04:37:17 It says 40 minutes D: Apr 11 04:37:33 When I first did this 2 months ago, and I extracted all Apr 11 04:37:38 the wait was like, 5 hours long Apr 11 04:38:02 So I canceled everything, and then started extracting again, and it went down to 30 minutes Apr 11 04:38:10 maybe that caused something to mess up? Apr 11 04:38:10 Hopefullythisuse: https://www.youtube.com/watch?v=05j_aE2wCXM Apr 11 04:38:51 slani that's outdated Apr 11 04:38:59 the new download does all the config for you Apr 11 04:39:12 so where is the problem Apr 11 04:39:22 not sure Apr 11 04:39:57 if he need ide onyl for android, then studio is better option Apr 11 04:41:34 Hopefullythisuse: https://www.youtube.com/watch?v=TTrUX1kUpDoÄ Apr 11 04:41:48 DDDDDDDDDDDDDD:: Apr 11 04:42:07 Hopefullythisuse: https://www.youtube.com/watch?v=jliH9hAQMOI Apr 11 04:42:24 http://gyazo.com/fea3c63a4020b11c51e3cc48cfb5aa04 Apr 11 04:43:35 better get some more ram :P Apr 11 04:43:50 ram? Apr 11 04:44:46 slani: don't waste your time, this rubbish has been going on for months Apr 11 04:45:20 bankai_au what rubbish? Apr 11 04:45:21 http://en.wikipedia.org/wiki/Random-access_memory Apr 11 04:45:38 him not being able to get an IDE working and plastering this channel with screenshots Apr 11 04:46:10 I haven't been on for months (2) Apr 11 04:47:00 Hello, in this code: < https://gist.github.com/Technicus/10441136 >, I am trying to start a thread from line 4, but I am not quite sure how to do that. I am trying to follow the developer documentation: < http://developer.android.com/guide/topics/connectivity/bluetooth.html >, but it dosen't realy explain how to start the thread, this is the best I have been able to do so far. Apr 11 04:50:18 Technicus see the BluetoothChat example Apr 11 04:50:33 the docs have snippets from that, maybe you're missing the important stuff Apr 11 04:50:38 like … thread.start() :) Apr 11 04:51:14 g00s; I have not been able to find the BluetoothChat example. Apr 11 04:51:31 make sure sdk manager has 'samples' package Apr 11 04:53:43 g00s: Okay, cool, it is. I am running the AndroidStudio, does it link to them somehow? Apr 11 04:54:38 Technicus no … especially this one, is in the 'legacy' folder Apr 11 04:54:49 probably build it with ant or something Apr 11 04:55:33 the BluetoothChat example has a critical bug, bwahaha Apr 11 04:55:44 i'll let you look for it some Apr 11 05:02:51 g00s; man . . . I have been on a wild goose chase for a week now . . . . Apr 11 05:20:22 g00s: ant complains that there is no build.xml. How can I compile this? Apr 11 05:20:49 may need to do an 'android update' command Apr 11 05:21:01 if you are using eclipse, thats probably easiest Apr 11 05:21:32 glass going on sale for 1.5k next week :S that's a lot of money Apr 11 05:35:36 depends on how frequently you plan to use it Apr 11 05:58:05 Is there a place you can go to try out the glasses? Apr 11 05:58:19 I think they are neat but not convinced all that useful Apr 11 05:59:51 http://gamefacelabs.com/#!home Apr 11 06:08:37 g00s: so I imported the files into android studio and this is the compile error: < https://gist.github.com/Technicus/10443282 >, I have no idea how to cure this, but it is probably simple. Apr 11 06:09:42 huh, never saw that before Apr 11 06:09:53 like a namespace is messed up or something Apr 11 06:23:17 Technicus: what does the code you provided have anything to with the error? The message points to strings.xml Apr 11 06:29:44 Hi all, what's a good strategy for getting a few users to beta test out a new app? I don't want post it anywhere where it could draw too many people. I'm kind of out of ideas. Is there like a shameless plug channel on freenode or something similar? Apr 11 06:33:19 nemasu do a private beta on Play Apr 11 06:34:47 g00s: Oh neat, didn't even know that was possible. Thanks. Apr 11 06:36:59 morning Apr 11 06:53:22 someone who could help me with a datepicker problem? Apr 11 07:03:36 In the later API's, what do I use instead of LocalBroadcastManager? Apr 11 07:04:28 Since I don't need and want compatibility, I'm not using any of the support libs Apr 11 07:05:04 the support library isn't solely for backwards compatibility Apr 11 07:06:01 Then why would the place the class in support.v4 instead of android.app? Apr 11 07:07:45 "Couldn't load _____ from loader" regarding a .so file that has been configured to compile in Apr 11 07:08:02 Siamaster: because that's the minimum API it supports Apr 11 07:08:36 is that a problem? just include the fucking support lib and be done with it Apr 11 07:08:46 adding 200kb to your apk size is hardly the end of the world Apr 11 07:08:53 I'm sure you have better things to worry about Apr 11 07:08:57 It's ugly Apr 11 07:09:05 so Apr 11 07:09:08 your argument is invalid Apr 11 07:09:13 so copy/paste it into your app Apr 11 07:09:15 what is ugly, the package name? Apr 11 07:09:18 because it's all the same otherwise Apr 11 07:09:19 it's just java Apr 11 07:09:29 anyway, just an idea Apr 11 07:09:34 path of least resistance and all... Apr 11 07:09:41 ^^ thanks Apr 11 07:10:11 this conversation has taken more effort than just including and using the support library would have Apr 11 07:11:42 even the API is ugly, I mean. getInstance(Context c) Apr 11 07:11:56 well you can always just use regular Context.sendBroadcast for sending broadcasts Apr 11 07:12:22 static factories are preferred Apr 11 07:13:15 It's weird to have a method called getinstance that takes a parameter. Apr 11 07:13:20 atleast my opinion.. Apr 11 07:13:32 i mean, is it a singleton? then why parameter Apr 11 07:13:46 is it not? don't call it getInstance Apr 11 07:13:52 atleast call it, getInstanceFor Apr 11 07:14:33 yeah, could've just made that a constructor Apr 11 07:14:38 How can I change the package name of a project? Apr 11 07:14:49 itamz: noooo Apr 11 07:14:59 Siamaster: yes it's a singleton Apr 11 07:15:09 well I don't know the big picture of that part of the API Apr 11 07:15:12 so I may be wrong Apr 11 07:15:20 this is just the first impression I get from that class Apr 11 07:16:02 JakeWharton, wait, so if you call getInstance with context A, and then call getInstance with context B, then both instances will have context B? Apr 11 07:16:09 I mean, if it's a singleton... Apr 11 07:16:11 no, they will both have the application context Apr 11 07:16:42 ah, I see Apr 11 07:16:50 like any singleton factory that takes a context, it defensively calls getApplicationContext() to ensure it's not leaking a transient context (e.g., activity, service) Apr 11 07:17:35 do i need to add anything to build.gradle to include jniLibs? Apr 11 07:19:17 JakeWharton, sure would've been nice if they said that in the javadoc to that method though Apr 11 07:19:32 submit a CL to AOSP and fix it! Apr 11 07:19:35 or at least file a bug for it Apr 11 07:20:04 I think they're aware of undocumented methods Apr 11 07:20:12 they have a bunch of them Apr 11 07:20:38 but I might still do it Apr 11 07:21:06 awareness doesn't mean they're doing anything about it Apr 11 07:25:00 if you submit a good CL, i'll approve it Apr 11 07:25:56 canadiancow still waiting for the docs to say ListPreference entryValues only takes :D Apr 11 07:26:14 still waiting to see your CL Apr 11 07:26:31 its there, not mine - 4 years ? Apr 11 07:26:39 hold on, its comical Apr 11 07:26:41 where Apr 11 07:27:23 2009 https://code.google.com/p/android/issues/detail?id=2096 Apr 11 07:27:49 thats a bug Apr 11 07:27:54 where's the CL Apr 11 07:28:04 its not going to be fixed; they should just fix the docs Apr 11 07:28:27 know what's weird? the editable field doesn't work on EditText boxes Apr 11 07:28:40 i had to set focusable=false in order to disable input Apr 11 07:28:45 so upload a cl that fixes the docs Apr 11 07:29:08 guys.. what is the default color of the output text of Log.d() ? Apr 11 07:29:21 you talking to me canadiancow? what's a cl? Apr 11 07:29:37 i mean in eclipse Apr 11 07:30:19 blue Apr 11 07:30:34 ok thanks itamz Apr 11 07:32:44 itamz, and Log.v()? Apr 11 07:33:12 just check it yourself... Apr 11 07:33:17 ok Apr 11 07:34:58 I'm using a datepicker in Android and I want to set the date dialog to the current date and the max date to the same date but one year ahead. I get the exception time not between... Apr 11 07:53:09 I just had to write this line of code: @Inject private Vibrator mVibrator; Apr 11 07:53:35 I feel dirty Apr 11 07:57:19 g00s: Here is my progress with the legacy BluetoothChat example: < https://github.com/Technicus/BluetoothChat_Redux >. Apr 11 07:57:47 It has compile errors. Apr 11 08:02:52 Technicus i'm guessing they are going to convert all that stuff to gradle once it hits 1.0, probably I/O Apr 11 08:03:46 When is that priojected to happen? Apr 11 08:04:13 nobody outside google knows for sure ;) BluetoothChat is rfcomm which kinda is more legacy than the other legacy stuff ;) Apr 11 08:04:55 hey Apr 11 08:05:05 who knows. just seems lame to have a bunch of sample projects that don't build :D Apr 11 08:05:06 how do i close the android emulator's keyboard? Apr 11 08:05:13 When it pops up it gets in the fuckn way of the rest of my controls Apr 11 08:05:16 and there's no way to close it Apr 11 08:24:28 hi, i need a download manager system to download and resume download. do you know some example or library? Apr 11 08:43:18 Hey, can someone explain me this stacktrace? I have that in my analytics multiple times Apr 11 08:43:19 https://gist.github.com/anonymous/1665d1c1147ec612197d Apr 11 08:43:55 its not one of my files and also does not seem to be from any library. Motorola being a dickhead and messing arround with android resources? :p Apr 11 08:47:51 Hello devs! Apr 11 08:48:43 After setting the background color of the action bar in styles.xml, the Tile Text and and the app icon in the Action Bar disappears Apr 11 08:48:44 Hrm Apr 11 08:49:04 I found that this was a bug in honeycomb http://stackoverflow.com/questions/5861870/actionbar-background-image Apr 11 08:49:17 I'm not impressed. My android UI looks fine on bigger screen phones but on a mini phone the UI ELEMENTS GO OFF THE EDGE OF THE SCREEN. AND I'VE USED dp instead of px so I was hoping it'd scale automatically Apr 11 08:49:19 what do!? Apr 11 08:49:22 I m trying it on ICS and KitKat...still smae Apr 11 08:49:59 *same Apr 11 08:50:22 Koolaids-: well if your widths are larger than the screen, they will go off the edge Apr 11 08:51:18 so should I design my app for the smallest screens then? Apr 11 08:51:29 then somehow...scale it so it looks ok on big screen? Apr 11 08:51:40 someone? plz! Apr 11 08:52:40 Koolaids-: Relative positioning without hardcoded values is always better Apr 11 08:53:39 positioning isn't the issue Apr 11 08:53:47 it's the size of textboxes Apr 11 08:53:53 and other elements Apr 11 08:53:58 they're already crushed into a tight area Apr 11 08:54:13 so in order to make it work on smaller screens i'll have to rearrange them Apr 11 08:54:18 is it something you do in xmls or OpenGL? Apr 11 08:54:28 xml Apr 11 08:54:35 then show us the file Apr 11 08:55:38 ....ok.... Apr 11 08:58:00 http://pastebin.com/NR6JCF6c Apr 11 08:58:34 this is my code http://pastebin.com/xWLSDgAb Apr 11 08:58:42 me first i pasted mine first Apr 11 08:58:46 !!!!! Apr 11 08:58:47 After setting the background color of the action bar in styles.xml, the Tile Text and and the app icon in the Action Bar disappears Apr 11 08:59:10 nobody will help you with this attitude Koolaids- Apr 11 08:59:20 sorry. please help Apr 11 09:00:28 hi guys, i have a problem, i have this string: 10/04/2014 18:40 and i want only the latest charatters "18.40" it's possible? Apr 11 09:00:37 you shouldnt set widths in this way. Better use RelativeLayout and use alignParentRight and stuff like that Apr 11 09:01:12 Hrm Apr 11 09:01:19 roxdragon: http://docs.oracle.com/javase/7/docs/api/java/lang/String.html#substring(int) Apr 11 09:01:37 roxdragon: thats a java thing...nothing android specific Apr 11 09:01:58 and a trim might be useful if there is whitespace arround Apr 11 09:02:03 can you elaborate? Can RelativeLayout be used to resize text and edit boxes? Apr 11 09:02:12 resize? Apr 11 09:02:18 roxdragon: is that got something to do with date and time? u can use simple date formater I guess Apr 11 09:03:27 i'm just trying to get my head around how i'd use relativelayout to fix my problem Apr 11 09:03:36 emotionull: yes , in my string i want delete the data, and i want only time Apr 11 09:06:32 roxdragon: ok...cool.. are u getting the Date Time from Java Date class or a string? Apr 11 09:07:00 Koolaids-: just try to avoid things like width="80dp". try to use weights, position your stuff rightOf, leftOf and things like that Apr 11 09:07:07 r play around with gravity Apr 11 09:07:17 ok Apr 11 09:09:01 roxdragon: http://alvinalexander.com/java/simpledateformat-convert-date-to-string-formatted-parse Apr 11 09:09:19 use "hh:mm" as your formatter Apr 11 09:09:41 * emotionull waiting waiting waiting Apr 11 09:10:01 http://pastebin.com/xWLSDgAb Apr 11 09:16:36 emotionull: my string is parsed with jsoup ...isn't date from my pc Apr 11 09:16:47 i want cut only date Apr 11 09:18:59 I think substring will be a simple solution.. Apr 11 09:19:10 though u can use Simple Date Formatter parse() Apr 11 09:19:38 to convert the string to Date object first and then extract whatever u want in which ever format u wish Apr 11 09:22:00 String string = "10/04/2014 18:40"; Apr 11 09:22:02 Date date = new SimpleDateFormat("dd/MM/YYYY hh:mm", Locale.ENGLISH).parse(string); Apr 11 09:22:23 roxdragon: then use the date object as mentioned in the blog Apr 11 09:27:37 Date date = new SimpleDateFormat("dd/MM/YYYY hh:mm", Locale.ENGLISH).parse(lista[4]); Apr 11 09:27:44 emotionull: Apr 11 09:27:59 roxdragon: ? Apr 11 09:28:28 lista? Apr 11 09:28:39 is that ur array? Apr 11 09:30:01 in lista[4] there is 10/04/2014 18:40 Apr 11 09:30:35 emotionull: Apr 11 09:30:43 I am looking for some good tool to get a live screen of my device to my computer, so I can share de the device view to offsite users Apr 11 09:31:15 roxdragon: yup...it should work if its a string... Apr 11 09:31:22 try it and tell me if it worked Apr 11 09:36:52 emotionull: Date date = new SimpleDateFormat("hh:mm", Locale.ENGLISH).parse(lista[4]); lista[4] = date.format(lista[4]); Apr 11 09:37:26 ? Apr 11 09:46:17 No...no Apr 11 09:46:58 I guess this approach is difficult for u...substring will be much easier and efficient in this case Apr 11 09:47:12 roxdragon: Apr 11 09:50:33 Jesus Apr 11 09:50:46 designing ui in android is such a cunty thing Apr 11 09:50:51 I miss .NET winforms Apr 11 09:50:53 those were the days Apr 11 10:00:40 Koolaids- its not just the ui parts :) Apr 11 10:03:55 Hi, how would you debugg "file creation" in android studio? (check the emulator folder?) Apr 11 10:09:49 Pro9 use ddms Apr 11 10:12:42 I have a rarely occuring bug where when pressing the back button the fragment just reloads. How likely is it that this is not caused by my app but by the OS messing up it's backstack? Apr 11 10:12:55 (or by me messing up the backstack) Apr 11 10:13:43 freaking friday Apr 11 10:13:52 I was wonder why my onlongclicklistener wasn't working Apr 11 10:14:01 then I realised that I was setting it in onPause Apr 11 10:14:14 thats awesome :) Apr 11 10:14:26 g00s: assuming I Have an allprojects config set in my root project, how can I run the tests only for a specific subproject using the gradle commandline from the root project directory? Apr 11 10:15:20 rgr hmm. i do it from a subdirectory. well, try "gradle :subproject:target' Apr 11 10:16:22 so 'gradle :subproject:connectedCheck' or something Apr 11 10:16:32 btw, there is a #gradle channel :) Apr 11 10:16:40 yeah I know. but its empty. Apr 11 10:16:43 ;) Thanks Apr 11 10:16:48 orly? did it die ... Apr 11 10:17:41 I have now written the worst regular expression I've ever written. Apr 11 10:17:47 well, Ragnor / sebersole know what they are talking about. if they are around Apr 11 10:22:25 Nilium what were you matching Apr 11 10:22:35 Objective-C type encoding strings. Apr 11 10:23:11 e.g., 0^{example=@*i(foo=BiQ)}8i16f24^^{refname} Apr 11 10:23:26 ragel is a great tool if it meets your needs. fast as fuck too Apr 11 10:24:11 The neat thing is that the regex will only match correct strings since it's recursive. Probably the only time I've ever written a recursive regex. Apr 11 10:25:09 That said, I wrote a regular parser first since using a regex is just dumb. Apr 11 10:33:40 rgr get the answer ? Apr 11 10:46:24 guys.... String Compagnia = new String("HELLO"); if( Compagnia == "HELLO") imageView.setImageResource(drawable.logo); dosen't work for me.. why? Apr 11 10:47:23 roxdragon string.equals() Apr 11 10:49:05 Can...can i use GridView to lay my ui elements out Apr 11 10:49:10 is that what it's designed for? Apr 11 10:49:29 thank u ... :D Apr 11 10:49:38 or should i be using table layout? Apr 11 10:50:00 Koolaids-: Gridview is more for things like a galery of images Apr 11 10:50:16 ah Apr 11 10:50:39 Koolaids- tableLayout is kinda old Apr 11 10:50:58 i think for the most part, GridView supersedes ir Apr 11 10:51:01 *it Apr 11 10:51:19 yeah but u have to set adapters n stuff Apr 11 10:51:26 sorry, GridLayout Apr 11 10:51:33 ah yeah. Apr 11 10:53:04 well Apr 11 10:53:18 i'm targeting version 2.2 cause i want the widest support Apr 11 10:53:24 and that doesnt even have gridlayout Apr 11 10:53:33 its in the support library Apr 11 10:53:42 and for fuck sake, 2.2 ? Apr 11 10:53:46 at least GB Apr 11 10:57:36 I want to add a number of buttons to a viewgroup. The first 1 button is topleft, the next is right of the first. The 3rd should "overflow", and be placed topleft but under the first. Is there a ViewGroup that can help me do that? A kind of bag that i can just add elements to, and it will fit them all in? Tried with GridLayout, didnt manage to get it to work Apr 11 10:57:36 i think 2.2 is currently at 1% marketshare. Apr 11 10:59:05 liefer: https://github.com/mitmel/Locast-Core-Android/blob/master/src/se/fnord/android/layout/PredicateLayout.java Apr 11 10:59:18 you could use this in our prject Apr 11 11:00:59 My app does a lot of processing. I don't Android to show the Wait/Close menu to my App. What can i do? Apr 11 11:01:06 I don't want Apr 11 11:01:23 danijoo: that looks very interesting, thank you Apr 11 11:02:04 ivali: dont process in UIThread Apr 11 11:03:09 can i set background color in listview from color html? #00032...ecc Apr 11 11:03:19 rowView.setBackgroundColor(Color.CYAN); Apr 11 11:03:35 replacing CYAN with light gray Apr 11 11:03:37 Separate threads. I will look into it, thanks! Apr 11 11:03:57 roxdragon: Color.parseColor("#00032") Apr 11 11:04:06 A separate Service? Apr 11 11:04:19 try danijoo Apr 11 11:04:23 :) Apr 11 11:04:30 ivali: just a seperate thread. Have a look at AsyncTask class Apr 11 11:05:33 thanks Apr 11 11:08:29 Hi, How to creat a dotted rectangle shape with a dot for each 1 dp? Apr 11 11:15:34 youtubethumbnail views :/ Apr 11 11:15:36 in a listview Apr 11 11:16:53 Guys Apr 11 11:16:55 recycling the youtube thumbnail views Apr 11 11:17:06 I want to centre a TableLayout within a RelativeLayout. How do? Apr 11 11:17:19 danijoo, thank you. worked! Apr 11 11:17:42 i tried setting layout_centerHorizontal in the TableLayout. didnt work Apr 11 11:18:03 nvm, i figured it out Apr 11 11:18:14 just had to make the width wrap_content instead of fill_parent Apr 11 11:24:44 hi Apr 11 11:25:18 Question : When I am trying to drag & drop gapps-jb-20130813-signed.zip onto the Genymotion then nothing happens, it should start some processing and ask me to flash, someone know what can be reason ? Apr 11 11:33:27 Willams OT for this channel Apr 11 11:34:12 I need a good article/book on testing android applications up to date ( all of the info I am finding is out of date ) Apr 11 11:34:16 any suggestions ? Apr 11 11:36:04 tagrudev not really, let me know if you find something :| Apr 11 11:36:49 everything I find looks like a big pain in the a** and not worth the time spent Apr 11 11:41:22 I'm fucking happy Apr 11 11:41:31 I've simplified my ui greatly by using a tablelayout Apr 11 11:41:40 before i was using a crazy amount of nested linearlayouts Apr 11 11:43:53 Koolaids-: so you take back your cunty insult then ? Apr 11 11:44:08 yes :P Apr 11 11:49:47 Koolaids-: what are you making ? Apr 11 11:51:16 secret app Apr 11 11:51:18 shhh! Apr 11 11:51:19 :o Apr 11 11:58:10 Hi guys i have a big problem... i have a listview but the problem is: the code of CustomList.java is execute for 14 times Apr 11 11:58:13 http://paste.ubuntu.com/7234576/ Apr 11 12:00:27 hey folks, this is slightly off-topic, but anyone got an idea how a user can open the options menu in a legacy app on an LG G2? Apr 11 12:01:42 can anyone help me please? :( Apr 11 12:03:30 the problem is in customList.java... im sure Apr 11 12:05:11 roxdragon: what do you mean it is executed 14 times? Apr 11 12:06:35 public View getView Apr 11 12:06:38 in customList Apr 11 12:06:40 :\ Apr 11 12:07:03 If you're referring to getView(), it will be executed every time android decides it needs a new view-element, which it usually does if you're scrolling up and down in a list Apr 11 12:08:00 yes Apr 11 12:08:06 but i have only a element Apr 11 12:08:09 1 Apr 11 12:08:21 i need 1 row Apr 11 12:08:28 not 14 Apr 11 12:08:50 there are 14 rows == Apr 11 12:09:28 Thorbear: Apr 11 12:10:09 So you have one element that populates 14 rows? Or are you just worried about android running the code 14 times? Apr 11 12:11:04 shmooz: still breathin bro ? ? Apr 11 12:11:18 you are a toughie dude :-P Apr 11 12:11:23 android running the code 14 times Apr 11 12:11:33 and android populate 14 rows Apr 11 12:11:43 all == Apr 11 12:13:51 Thorbear: http://imagebin.org/305043 Apr 11 12:13:56 all rows == Apr 11 12:14:07 what the problem? Apr 11 12:18:49 roxdragon: you're calling super(context, layout, list), does that array perhaps have 14 elements? Then it will tell android that it should ask for 14 elements Apr 11 12:19:40 Also, please use lowercase first letters for your variables, makes the code that much easier to read :) Apr 11 12:21:32 And I don't think you need to inflate the view yourself in getView(), you should only need to cast the view that the method gives you. Apr 11 12:22:43 And since you're giving context to super, there may already be a private variable for it called mContext Apr 11 12:27:42 roxdragon: And finally, a better solution than using an array of strings to represent one row, would be to make a class that either holds the array or has the fields that are found in the list, then you can give the adapter a list of instances of that class, and if the list has 1 element, you'll get 1 row. Apr 11 12:29:16 g00s: It compiles and installs on phone now! < https://github.com/Technicus/BluetoothChat_Redux >, it does not do much though. Apr 11 12:34:00 Thorbear: String[] lista = new String[200]; this is my strings arrays Apr 11 12:37:46 roxdragon: no wonder the adapter wants to display a bunch of items then :) Apr 11 12:38:39 Thorbear: and a solution for this? Apr 11 12:40:08 roxdragon: I wrote one solution 10 minutes ago :) Another, simpler but dirtier solution, is to send a different list to the super-adapter, one that only has 1 element. Apr 11 12:41:38 You could probably also override getCount() and make it always return 1 Apr 11 12:43:25 can u make me an example please Thorbear Apr 11 12:44:14 this is slightly off-topic, but anyone got an idea how a user can open the options menu in a legacy app on an LG G2? Apr 11 12:47:20 roxdragon: example http://pastebin.com/fh3dEi9d Apr 11 12:49:19 this is probably the 3rd time I run into this, and at each interval I've solved this in different ways Apr 11 12:49:48 I'm talking about having an activity A populated by an Adapter from the DB, pressing on button from Activity A takes you to activity B which inserts into the DB Apr 11 12:50:01 going back to activity A, you want that adapter to notifyDataSetChanged() Apr 11 12:50:14 I tried putting that line in onResume(), but it didn't take any effect Apr 11 13:05:25 How does google+ app implement a tab functionality with a scrollable header view on the Profile View screen? http://i.troll.ws/3a574d36.png Apr 11 13:14:39 napster, http://stackoverflow.com/a/14349117/677024 Apr 11 13:15:16 tagrudev: Thanks mate, let me see. Apr 11 13:16:46 although I don't think this is a nice ui but that's mine opinion Apr 11 13:16:59 tagrudev: ok, that one is a bit different. In case of G+, the tabs goes within a list view, making it a list view with multiple child lists. Apr 11 13:17:14 tagrudev: yeah, I agree that too. Apr 11 13:17:31 * napster is looking for alternate patterns Apr 11 13:18:54 napster, http://developer.android.com/training/implementing-navigation/lateral.html Apr 11 13:19:45 Yeah, I’m familiar with view pagers. In my case I’m trying to create a profile screen Apr 11 13:19:59 with a header which shows a cover image/profilepic/name Apr 11 13:20:16 and tabs with Posts/Photos/Videos etc Apr 11 13:21:12 when the user scrols up, I need to move the header up as well, (to make more room for the list), and I want to tabs to stick below the actionbar when it reaches there. Apr 11 13:21:43 s/I want to/I want the Apr 11 13:22:57 tagrudev: Got another guys with the same interest :) http://stackoverflow.com/questions/20337566/view-pager-tabs-in-middle-of-fragment Apr 11 13:28:48 I'm currently trying to improve the performance of my app. Whenever I load big bitmaps asynchronously, I get a stuttery feel when scrolling (feels like 100ms blocks). I'm using Picasso to do the work in the background. The weird thing is though: My UI thread doesn't seem to be blocked ( I checked with DDMS) Apr 11 13:29:04 any ideas on what might be the cause of this? Apr 11 13:29:15 Emulator? Apr 11 13:29:17 my ui threads seems absolutely fine. longest blocking operation is <6ms Apr 11 13:29:27 nope real devices (nexus 5) Apr 11 13:29:30 device* Apr 11 13:29:35 MrMaffen: i found that most problems are with layouts. not actually loading images. Apr 11 13:29:47 Oh, got that one too. Shouldn't be a problem then.. Apr 11 13:30:14 Have you checked your memory consumption? Apr 11 13:30:25 jaynewstrom: kk will look into that Apr 11 13:30:32 flan3002: yea it's not that awesome actually Apr 11 13:30:52 flan3002: but it's hard to optimize, because I have loads of data I need to pull in the background Apr 11 13:31:03 If you rapidly allocate memory the GC will take some time to free it up. Apr 11 13:31:04 MrMaffen, I found alot of issues when using Picasso with disk caching (via OkHttp or 4.0+) system Apr 11 13:31:14 MrMaffen, that caused alot of performance issues so I had to disable them Apr 11 13:31:27 the issues were mostly centered aroudn Samsung S3/S4 devices Apr 11 13:31:46 they show up as long running "native_posix_write" calls in DDMS Apr 11 13:32:22 flan3002: oh yea thanks. that could be it actually Apr 11 13:32:34 Mavrik: yea I've seen those in DDMS Apr 11 13:32:42 Mavrik: thanks for the hint Apr 11 13:33:41 flan3002: are there some flags I can set to configure the GC or do I simply have to refactor my code to make it more memory efficient? Apr 11 13:35:08 flan3002: just checked the log. that's definitely the cause of my problems http://paste.kde.org/pcq9rdk4y Apr 11 13:35:11 i don't know about dalvik options but in jvm you there is -Xincgc Apr 11 13:36:19 MrMaffen, that looks like you have high memory pressure Apr 11 13:36:36 MrMaffen, if you can see it isn't able to free anything (does only 30K each pass) and keeps retrying Apr 11 13:37:18 MrMaffen: You should really work on reusing memory or preallocating it. If it lags on the N5, it will lag (almost) everywhere. Apr 11 13:37:58 Mavrik: flan3002: yea I'll do that. thanks for the quick help guys :) Apr 11 13:38:22 I had this too recently. I had to hack together my own FFT, because the library caused to much garbage... Apr 11 13:38:49 MrMaffen, also if there's no way for you to drop memory usage (but PLEASE, use heap dump / eclipse MAT first to check if there's REALLY nothing you can do to lower mem usage) you can request large heap Apr 11 13:39:35 also look into datastructure/algorithms based on quad tree for rendering Apr 11 13:39:44 MrMaffen: If you can preallocate, do that. If you can recycle/rewind, do it. Apr 11 13:40:09 You might even look into pooling... Apr 11 13:40:25 (Even though many say it's not necessary with Java) Apr 11 13:43:04 Have any of you stored a user's password on a device for a quick login / remember me function? What methods have you taken to secure this? encrypted it? just stored a hash of it? Apr 11 13:43:06 Mavrik: yea I'll definitely try to optimize my memory first. and if nothing helps I'll take the easy way out :P Apr 11 13:43:18 fmj47: will look into that thanks Apr 11 13:44:59 flan3002: yea the problem is, that most of my memory is used up by large bitmaps, loaded by Picasso, which are loaded into an LRUCache, so I don't think that I can optimize that any further. but I'll check if I can work on the other bits Apr 11 13:45:03 Our app you register with a server, but after that we essentially have an offline mode, so I have to be able to login to the app without server side verification. So storing a hash of their password / pin shared preferences seems like a semi decent method Apr 11 13:46:19 how do you clear an imageview? like get the image out of it? Apr 11 13:46:29 if i do this imageview.setDrawable(null) Apr 11 13:46:34 or something like that? Apr 11 13:46:50 Why don't you try what you propose? Apr 11 13:47:09 i have no idea Apr 11 13:47:10 lol Apr 11 13:47:23 Is there anyone out there that could give some direction on managing updates/inserts on a large sqlite database on android? Apr 11 13:47:25 jonc, em, don't store passwords Apr 11 13:47:28 http://stackoverflow.com/questions/9498094/how-to-clear-imageview-correctly Apr 11 13:47:30 jonc, use OAuth and store tokens if you must Apr 11 13:47:35 that resource suggests doing it Apr 11 13:47:44 bonjour Apr 11 13:48:12 Mavrik, yeah I get that, the biggest problem is I need to enable client side only authentication, we can't guarantee the user will always have network access, but our app needs to be running constantly Apr 11 13:48:32 ah, that'll be hell for security :) Apr 11 13:48:34 I normally would make it all validated on the server, and respond with a session token Apr 11 13:48:51 I agree Apr 11 13:49:01 that is why I am trying to find a semi decent way to do this Apr 11 13:49:46 I have a large customer database that needs to be accessable offline, about a million records. The database is about 250MB. During the course of a day the data gets added to and updated which requires an update to the database on the devices. Apr 11 13:49:52 upon a network connection being usable it will immediately validate the credentials that it was authed from Apr 11 13:50:20 johnboker, sqlite may be too slow for that, at least on a phone Apr 11 13:50:45 especially if it is a million rows in a single table Apr 11 13:51:24 jonc, right now i have the database on the phone/tablets and it's working fine. The problem comes in when i need to update it. It's being updated but it takes too long. Apr 11 13:51:53 johnboker what is an update? a few records, 10k, 100k records? Apr 11 13:52:34 it will work when the number of records is under 10k. Apr 11 13:52:42 I don't know if this applies to sqlite, but with mysql / mariadb with innodb tables, updates / inserts are quite a bit faster if you first sort the data by the indexed fields Apr 11 13:53:04 when it's over that it works but takes forever. Yesterday i got a report that i wasnt working, but it did finally work, just took 42 minutes to insert/update 17k records. Apr 11 13:53:18 nah, thats lame Apr 11 13:53:45 i need to figure out a way to keep the data up-to-date without it taking an hour Apr 11 13:53:49 90 millions rows inserted into mariadb in < 30 minutes after sorting, worked on it for 28 hours previously (unsorted) before I stopped it Apr 11 13:54:04 break it up into chunks? Apr 11 13:54:21 g00s, on a phone in sqlite. Apr 11 13:54:28 you may want to drop your index before update. Apr 11 13:54:32 johnboker, it's really hard to give good advice when we don't know how your data behaves Apr 11 13:54:43 jonc, right now it's chunking from the server in groups of 5k Apr 11 13:54:45 you can just send "delta" db files over network Apr 11 13:54:50 if data changed is new Apr 11 13:55:01 you can do periodical updates in the night if your users are that kind of users Apr 11 13:55:02 etc. etc. Apr 11 13:55:14 johnboker also, you have to experiment with the best transaction size to insert Apr 11 13:55:23 can't do all 5k Apr 11 13:55:29 maybe in chunks of 100 Apr 11 13:55:44 but , you are pressing the limits on a phone ;) Apr 11 13:56:06 johnboker what kind of data ? Apr 11 13:56:18 it is only sending the changes right now. 5000 wasnt too bad. I think the problem with the insert time is i have indexes that need to be created so searching doesnt take a long time. When inserting it has to also create the index. Apr 11 13:56:35 it's customer data, name/address/phone/type/etc. Apr 11 13:56:53 why does all this need to be on the phone at once :| Apr 11 13:57:03 every customer ever ? Apr 11 13:57:05 it needs to be available offline. Apr 11 13:57:31 i've been trying to think of ways to pare down the data a little Apr 11 13:58:04 you'll pribably need toms kind of extreme solution Apr 11 13:58:15 how many indices? Apr 11 13:58:30 it's used in the field to verify membership without an internet connection. to get into events they have to be a member, or to renew membership we need to know their old membership number. Apr 11 13:59:09 so every device has the information for all users? Apr 11 13:59:18 yes Apr 11 13:59:39 and I thought hashing a user's pin / encrypting it and storing it on a device was bad Apr 11 13:59:54 let me check on the number of indices... i've tried to remove the indices and re-add them after the update process, but that takes a while to regenerate too Apr 11 14:00:29 johnboker when this app is being used, how many devices are deployed typically ? (in the area) Apr 11 14:00:45 5 indices. first name, last name, last_first name, customerid, state Apr 11 14:01:17 the indices there are required for the search screen, response times with this setup are very fast. I was impressed with sqlite. Apr 11 14:02:00 yeah, indices make a huge difference when selecting, but they also kill insertion / update time Apr 11 14:02:38 johnboker you may be better off just sending a new sqlite file :| Apr 11 14:02:41 also, changes can happen so i have to look up the customer to see if they exist, modify if they do or insert if not Apr 11 14:02:43 do you need first name, last name and last first_name to be indexed? Apr 11 14:03:07 can you just do last_first_name? Apr 11 14:03:10 i thought maybe just delete all records that i'll be updating then just insert them all. Apr 11 14:03:37 index last_first name, customerid and state Apr 11 14:04:02 jonc, i tried a few other configurations of the indices and havent found anything that works. Apr 11 14:04:14 do you ever select based just off first name? Apr 11 14:04:18 i'll try though Apr 11 14:04:33 i do selects from first and state Apr 11 14:04:45 hmm, how about last name? Apr 11 14:04:55 or first initial and last name Apr 11 14:05:37 and never by last_first name? Apr 11 14:06:04 I'll have to look into that, see why it's there Apr 11 14:06:14 there might be a reason for it, if not i'll delete the index. Apr 11 14:06:45 because you could remove some of the indices (say last name) and instead of selecting by first initial last name, just select by first initial and then use java code to clear out the wrong last names Apr 11 14:07:25 hmm Apr 11 14:07:37 makes selecting a tad bit harder, but makes insertion easier Apr 11 14:08:03 but it still won't be too terrible to weed out the last names either Apr 11 14:08:22 weed out the last names yourself* Apr 11 14:09:56 sorry, someone in my cube.. Apr 11 14:10:06 No worries Apr 11 14:10:45 Sometimes it's better to not let the database do everything, it comes with tradeoffs, making selection quicker typically involves making insertion slower Apr 11 14:11:04 so find a happy middle ground, even if it involves some hand processing of data Apr 11 14:11:09 johnboker and if nothing else works, try breaking up the table into several < 100k records Apr 11 14:11:20 ^ Apr 11 14:11:22 !!! Apr 11 14:11:37 you could do a database per first letter of last name Apr 11 14:11:59 it won't be completely even (distribution of last names isn't equal) Apr 11 14:18:31 back Apr 11 14:18:46 i was getting questioned by a coworker, multitasking is hard. Apr 11 14:19:13 i also have a search by their customerid Apr 11 14:19:28 so i'd have to go through all databases to get the customer when searching by customerid Apr 11 14:19:48 Thorbear: i have look your example Apr 11 14:20:58 jonc, g00s, i've mangled the data quite a bit to get it as good as it is. multiple databases might work though. Apr 11 14:22:05 Thorbear: but how to use getcount? Apr 11 14:22:34 roxdragon: You don't use it, android will use it to figure out how many elements it should draw Apr 11 14:23:39 Thorbear: http://paste.ubuntu.com/7235112/ is correct? Apr 11 14:24:45 roxdragon: looks correct Apr 11 14:26:00 oh wow Thorbear you are the best :D Apr 11 14:26:02 johnboker, with it being in multiple databases, you could spawn multiple threads to check Apr 11 14:26:11 thank you so much Apr 11 14:26:12 and as soon as you find it, you know you can stop Apr 11 14:26:44 unless 1 customerid can be used for multiple names (I hope not) Apr 11 14:27:23 jonc, that's what i was thinking. There may be times when a customer could have multiple records that need merged. Apr 11 14:27:56 Thorbear: another question.... in my emulator views is correct but in my galaxy s3 there are textview superimposed...why? Apr 11 14:28:10 if you make it so that each database is a certain letter of the alphabet equivalent to all people who's last name starts with that letter, then all their records should be in the same DB Apr 11 14:28:42 yes, they should be, it might work Apr 11 14:28:48 Now I guess this only really works if you are set on a specific language Apr 11 14:29:09 otherwise you may get a large amount of last name characters Apr 11 14:29:36 roxdragon: Could be several things, you could have different styles for screen sizes, or for different android versions, or you could be trying to use some resource on one of the platforms that isn't there... Apr 11 14:30:03 yeah i think i can use just us_en, basic 26 character set. Apr 11 14:30:18 but if it were just english you should be fine, you could even have a database that is customer id to last name first letter with an index for customer id, this requires a little more work to maintain the entire system Apr 11 14:30:40 but you don't have to explore potentially all of the DBs to get the correct value Apr 11 14:32:09 uhm... Thorbear in emulator i have 4.4 kk and in my galaxy s3 4.3 Apr 11 14:32:29 jonc, g00s, thanks for your help Apr 11 14:33:34 roxdragon: Well, like I said, it can be caused by several things, my best suggestion is to go through the styles you have defined, and perhaps test with a few different emulator setups Apr 11 14:35:34 ok, thank you Apr 11 15:10:30 hey guys, silly question, but how do I get my app to stop playing music while on the phone. Please note though, that I do want the music to continue to play while using other apps and while the phone is idle. Apr 11 15:10:48 when I say, on the phone, I mean on a call. Apr 11 15:11:00 Can I play a custom sound with a ringtone? Apr 11 15:11:04 The app should do this on its own... Apr 11 15:11:09 *with a notification Apr 11 15:11:17 or do I have to resort to default sounds? Apr 11 15:12:28 flan, no, the music still plays even on a call Apr 11 15:17:03 Henry_Gale, http://www.codeproject.com/Articles/548416/Detecting-incoming-and-outgoing-phone-calls-on-And Apr 11 15:18:27 thanks jonc! Apr 11 15:33:29 I just switched to HexChat. Can someone respond to me so I can see what happens. Apr 11 15:33:46 mattblang: ping Apr 11 15:34:13 sonOfRa sweet, thanks! Apr 11 15:36:52 as if you get responded to ;-) Apr 11 15:59:14 I haveIn an onTouchListener, I get passed back a motionEvent. How would I use that object to retrieve how many pixels have been moved on x or y axis? Apr 11 16:51:04 You ever get the urge to kick someone working on a part of a project, but they should never be allowed to touch it? Apr 11 16:54:21 jonc: took me a bit to parse that...poor use of the conjunction "but" Apr 11 16:55:54 grammar is not my forte. I have my girlfriend proofread most of what I write that needs to be seen by quite a few people Apr 11 16:56:43 So I have a lot of data that if it can't be sent over a network at that time needs to be cached to send later Apr 11 16:57:08 how would you handle calls that will rely on information that is received from other calls? Apr 11 16:57:34 or is it reasonable to expect the server to take values instead of ids? Apr 11 17:11:05 Hello, has anyone used boost on android? I have an exception trown in boost::interprocess - telling me that "No such file or directory" Apr 11 17:11:47 I am trying to lock a file as far as I remember, I don't have the code but I can give you more details later if it's needed Apr 11 17:13:14 I compiled boost for arm with gcc 4.6 (standalone toolchain from r8e I think) on Ubuntu using boost from android project scripts Apr 11 17:15:22 Hi, i have created an activity to track my mobile phone's location using LocationManager. And now i wanted to track another mobile from my mobile.How can that be done ? Apr 11 17:17:32 jonc: not entirely clear what you mean by "take values instead of ids" Apr 11 17:19:48 Do i have to use database as an intermediate or there is another way? Apr 11 17:20:42 SanB: What do you mean by intermediate? Apr 11 17:22:09 I mean that the mobile i want to track gives the longitude latitude values that are stored onto server database and then those values are fetched by my mobile. Apr 11 17:25:38 napster: I hope that i made it clear Apr 11 17:25:55 SanB: Apr 11 17:26:05 In this case why do you need a DB? Apr 11 17:27:30 SanB: How about, the device you want to track passes over the (lat, long) over some channel and you receives it. Apr 11 17:27:31 How is it done then? Apr 11 17:28:24 SanB: I think GCM can be used in this case : http://developer.android.com/google/gcm/index.html Apr 11 17:28:41 anyone using android studio in Linux? Apr 11 17:29:02 have you been able to adjust fonts appearance? Apr 11 17:29:35 napster: Thanks , i am just going to visit that link and get back at this. Apr 11 17:30:20 bitkiller: http://stackoverflow.com/questions/13416315/changing-the-text-appearance-in-styles-and-themes-for-an-android-app Apr 11 17:30:46 bitkiller: I’m able to change fonts and appearnace for Android Studio. I’m on Mac though. Apr 11 17:31:03 jimmithy, i mean the studio UI fonts Apr 11 17:31:50 bitkiller: Preferences - Apr 11 17:32:05 > Appearance -> Override Default Fonts Apr 11 17:32:06 well, in fact the UI fonts looks OK. Code fonts I can't get it nice Apr 11 17:32:49 bitkiller: Preferences -> Editor -> Colors & Fonts Apr 11 17:33:40 and it still looks uglier than in Eclipse Apr 11 17:34:45 * napster is a hardcode Monaco fan when it comes to coding font. :) Apr 11 17:52:22 hey guys, what do you think of eclim? Apr 11 17:52:36 please just answer if you love vim ;) Apr 11 18:03:42 love vim, hate eclim Apr 11 18:04:34 birbeck: so what are you using now? Apr 11 18:05:07 intellij / android studio Apr 11 18:05:21 ;) Apr 11 18:06:03 It has a vim plugin, called IdeaVim which works better than eclim for me Apr 11 18:06:39 It's obviously not as complete in terms of vim features since it doesn't actually embed vim, but it's a lot less buggy Apr 11 18:07:08 i find editing in intellij with the standard editor much more efficient when you know the keyboard shortcuts and use auto completion Apr 11 18:07:52 It took me ages to stop hitting enter to autocomplete all the time when most of the time I wanted tab though Apr 11 18:08:06 vim is an awesome text editor, not an ide. i liked the idea of mixing the two, but it didnt work well in my experience Apr 11 18:08:16 Yeah Apr 11 18:09:16 You can load vim up with plugins to basically build a buggy IDE, or you can add vim plugins to IDEs to get a poorer vim. It's hard to have both perfect. Personally I use IdeaVim + IntelliJ for Java, but for languages which benefit less from IDEs (like say Python), I just use vim. Apr 11 18:13:01 Hi all - when using gdbclient/server, it seems unable to provide a backtrace past a signal handler. Any other time it works fine. Any idea what GDB, AOSP or Kernel changes would be needed to have a complete backtrace indicating where the trap came from and what the program was doing at the time? Apr 11 18:13:28 ok so birbeck and Argensis love vim but not in the android context ;( havent thought about android studio yet.........is there anyone who likes eclim? ;) Apr 11 18:13:54 gdb seems to support this fine on my ubuntu machine Apr 11 18:14:08 adkins: no, nobody Apr 11 18:14:30 lol Apr 11 18:14:41 adkins: android studio has a really nice working vim-plugin.. of course it does not replace vim, but it is directly integrated into the IDE and you get most of the vim-feeling Apr 11 18:15:03 Is that IdeaVim or is there an AS specific version? Apr 11 18:15:07 ideavim Apr 11 18:15:16 works for every jetbrains product that is based on intellij Apr 11 18:15:25 or based on idea (forgot which one was the OS-core) Apr 11 18:17:28 ohcibi: are you using ultimate edition or community edition? Apr 11 18:17:37 it would be nice to have such plugins like vim-surround available but most of the nice plugins are covered by some built in functionality of idea (which you have to learn another keystroke for of course) or are just not necessary in an (android|java) context Apr 11 18:17:38 adkins: CE Apr 11 18:19:25 ohcibi: do i need anything else? i have the adt-bundle on my machine so far only.....is in android studio all inclusive (emulator and so on)? Apr 11 18:19:56 adkins: the emulator is part of adt, you just have to configure the path of adt when you start android studio and then install the plugin in the settings Apr 11 18:20:10 adkins: as an additional adwise: forget the emulator, see genymotion Apr 11 18:48:26 ohcibi you like genymotion? I saw something about it the other day when trying to figure out how to speed the emulator up. Apr 11 19:10:12 So I changed the package name of my (unreleased, don't worry) app. Updated the package attribute in the manifest.xml, my POM files for maven etc. And now my R.java won't generate. It's not giving an error on any of the XML files though, so I'm not sure where the problem is. Apr 11 19:12:36 Argensis: done a clean on it & restarted the IDE? Apr 11 19:12:52 Did you rename the files out from under it or did you use the refactor option in the IDE? Apr 11 19:13:09 Refactor from the IDE Apr 11 19:16:32 Argensis: interesting. No great ideas from me other than do a clean and re-open the ide. if you're in AS, do the 'clear cache and restart' thing Apr 11 19:17:12 is there any repository of syntax highlighting color schemes for android studio? Apr 11 19:17:33 bitkiller, Look up IntelliJ color schemes, might find more Apr 11 19:20:58 http://ideacolorthemes.org/home/ - i'll give this a try Apr 11 19:22:21 What does google men by bank acc for sign up and do they mean things like vita cards? Apr 11 19:23:10 Sorry for that question. Apr 11 19:29:48 hi, iam getting a fc when doing locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 5000, 100, this); on a Nexus 5. on other phones its working well. is this something with android 4.4? Apr 11 19:30:07 GPS provider is working. but i dont want to use gps Apr 11 19:40:59 snudel fc? Apr 11 19:41:26 forced close Apr 11 19:41:31 W/virtual int izat_core::IzatApiV02::injectLocation(GpsExtLocation):665]: error! inject position failed Apr 11 19:41:47 W/virtual loc_api_adapter_err LocApiV02::injectPosition(double, double, float):492]: error! status = eLOC_CLIENT_FAILURE_INVALID_PARAMETER, inject_pos_ind.status = UNKNOWN Apr 11 19:42:05 I want to set new layoutparams on my imageView. But I have to import layoutParams. Whats the default layout params package for an imageView? Apr 11 19:42:33 Sorry this is a really stupid question as I'm trying to work on the android part of the project my team mate was working on instead of the backend in C I was working on. How do I know what runs when I load up an android app on my phone? Apr 11 19:52:15 Rad you check Settings -> Apps -> Running and show cached apps to find it Apr 11 19:53:15 on...eclipse? Apr 11 19:53:22 no on the phone Apr 11 19:54:08 uh well Apr 11 19:54:16 the app crashes and i'm trying to figure out why so uh Apr 11 19:54:21 that's not going to work Apr 11 19:55:19 ok you want to debug it then Apr 11 19:55:40 something like that Apr 11 19:55:46 but i'm trying to understand the code before that happens. Apr 11 19:56:25 well what did you add that caused it to start crashing ? Apr 11 19:57:21 I want to set new layoutparams on my imageView. But I have to import layoutParams. Whats the default layout params package for an imageView? Apr 11 19:57:53 shmooz: nothing. i'm working on my team mate's code. trying to figureout what's going on before i start changing stuff Apr 11 19:59:35 does the "do not keep activities" debug option in settings get applied to all apps or just the ones you install? Apr 11 20:01:02 Rad read a bit about Activities and the Manifest file. Every screen is essentially an Activity (it can be made up of fragments, but that is for much later). THere are functions that you will see overriden, like onCreate, onResume. THese will be called depending on what happens to the activity (you minimize the app, onPause will be called). Definitely study the Activity lifecycle chart ont he offical docs. Apr 11 20:01:29 okay thank you. yeah i do see a lot of "fragments" Apr 11 20:01:34 not really sure waht they do XD thanks Apr 11 20:02:27 actually it looks like it gets applied to all apps installed Apr 11 20:02:41 Rad yeah, preferable you would get comfortable with Activities before going to fragments. They can be a little tricker. The general idea is that you can modularize functionality inside fragments, then include multiple fragments inside an activity. This was needed for things like, supporting multiple screens when say on a tablet in landscape (eg the gmail app will show you your email list AND an email detail at the same time) Apr 11 20:03:25 Rad they are similar to activities in many ways, like they have an onCreate method, and onPause method, etc. Apr 11 20:03:40 Rad again, there is a fragment lifecycle chart on the official docs Apr 11 20:04:02 Rad and it will look very similar to the Activity lifecycle chart Apr 11 20:04:42 thank you Apr 11 20:05:46 Rad you will also need to read about resources, most notably the layout XML files. Apr 11 20:08:03 thank you mattblang Apr 11 20:20:54 What is special about an apostrophe in a string? Apr 11 20:21:57 Does anyone know how to change the network type in a rooted phone. Apr 11 20:25:04 yecril71pl: that is not android specific, it is the xml spec Apr 11 20:25:15 ' and " are special characters Apr 11 20:25:44 But only in attribute values, not in text nodes Apr 11 20:26:05 anywhere, unless they are enclosed in CDATA Apr 11 20:26:25 And even then you do not precede them with a backslash to quote them Apr 11 20:26:52 Which is what Android seems to expect Apr 11 20:27:36 Mind_Hacker: What network type? Do you mean the mode that the radio is in? If so it is device/carrier specific. Apr 11 20:31:47 Fenny:Hmm..Is there anyway to change it.I want to build an app for a low end samsung phone that runs on gingerbread. Apr 11 20:32:24 I discovered that double quotes make the string contain line breaks and white space as written Apr 11 20:32:59 That means that the string tag preserves white space by definition Apr 11 20:32:59 If I want to have a component use different layouts when it is resized (the component, not the phone), what should I be looking at? Apr 11 20:33:40 And Android resource mechanism normalises white space on its own Apr 11 20:35:04 Mind_Hacker: Still not sure what you want to change. Apr 11 20:35:08 yecril71pl: If you need literal data in an XML document, you need to wrap it with a expression. Apr 11 20:35:17 yecril71pl: It's not android, it's not java, it's XML. Apr 11 20:36:03 Fenny:I want to change the nwetwork from 2g/3g/4g. Apr 11 20:36:41 XML normalises whitebspace in text nodes unless explicitly or implicitly told not to. Apr 11 20:37:05 Assuming your radio supports it, you should be able to change it by calling methods on the phone object via reflection. Apr 11 20:37:55 Putting the text in double quotes does not prevent white space normalisation in XML. Apr 11 20:38:18 And yet so it works in Android. Apr 11 20:38:46 The conclusion is that it is Android, not XML. Apr 11 20:39:36 yecril71pl: That is specific to the XML renderer IIRC. Apr 11 20:39:56 Fenny:K!Thanks man Apr 11 20:39:56 Not 100% but I don't think it is part of the XML standard. Apr 11 20:40:29 XML requires the truncation/replacement deal. Apr 11 20:40:30 Quotes are not special in XML text nodes. Apr 11 20:41:14 Well, they are, in that they're supposed to be escaped since they're not legal outside an attribute context... Apr 11 20:42:02 hi, i am tracking a motorbike with an android device all my speed values are 0, anyone know why ? Apr 11 20:42:27 daivyk: Your motorcycle is not moving xD Apr 11 20:42:28 daivyk: How are you getting the speed from LocationManager? Apr 11 20:42:54 Fenny: yes it is.. hehehe.. :P Apr 11 20:43:02 "legal" has no meaning in XML. Text nodes containing quotes are valid in XML. Apr 11 20:43:08 freeone3000: checking the code right now.. just a sec Apr 11 20:45:31 How do I strip diacritical marks from a string? Apr 11 20:46:12 yecril71pl: Do you mean replace characters with diacritical marks with the character without the diacritical marks, or removing the combining diacritical mark character? Apr 11 20:46:34 Just like that. Apr 11 20:47:28 I could remove the combining marks if I had them but the text contains precomposed characters. Apr 11 20:47:37 freeone3000: i am receiving the Location object from LocationManager and doing getSpeed() Apr 11 20:47:48 daivyk: Does hasSpeed() return true for that same Location object? Apr 11 20:48:07 daivyk: If not, your requested LocationProvider doesn't give you a speed. Apr 11 20:48:18 freeone3000: i don't have the device with me.. i have to test it now. Apr 11 20:48:35 freeone3000: i am forcing GPS Apr 11 20:49:00 daivyk: If you're simulating a provider, you also have to tell it to give you a speed. Apr 11 20:49:22 ouch - bounced Apr 11 20:50:47 freeone3000: http://pastebin.com/dxjdNVU5 Apr 11 20:50:59 do I need to specify speed on the criteria ? Apr 11 20:51:53 daivyk: Yes. Apr 11 20:52:58 freeone3000: so that's why I am getting zero all the time... Apr 11 20:56:39 freeone3000: thanks.. i am going to set the criteria with speed now and see if works. Apr 11 20:56:45 yecril71pl: Proper way to do it would be java.text.Collation, but it looks like that first, you can't actually get data from it, and second, the Android implementation lacks FULL_DECOMPOSITION (which is what you want). Apr 11 20:57:29 Bad news :-( Apr 11 20:58:48 I rather thought about forcing the text to ASCII with substitution Apr 11 20:59:52 yecril71pl: Normalizer.normalize(CharSequence, Normalizer.Form.NFD) Apr 11 21:00:14 Thanks, I shall try that Apr 11 21:00:24 yecril71pl: Forcing ISO-8859-1 text to ascii vaguely makes sense. Forcing arbitrary Unicode text does not. Apr 11 21:01:30 yecril71pl: There's http://cldr.unicode.org/index/cldr-spec/transliteration-guidelines to transliterate arbitrary languages to the English alphabet, which *may* be what you want, but I've yet to find an implementation that isn't totally useless. Apr 11 21:02:43 My text is actually Latin-2. Apr 11 21:03:32 Oh. Then yeah, full decomposition will separate out those pesky combining marks, then removing the combining marks will leave you with a latin alphabet... mostly. Apr 11 21:03:55 There's a few bits of weird punctuation that don't map to ASCII, but I'm assuming you're doing this for readability purposes. Apr 11 21:11:52 Does anybody know how to disallow the emoji keyboard on an EditText? Apr 11 21:17:34 will exceptions try to resolve in the order of your catch statements? like, can I specify more specific exception catches first, then have a generic Exception catch at the end? Apr 11 21:19:09 mattblang: Yes. Apr 11 21:20:17 hmm, trying to figure out why my Retrofit callback is treating 200 OK as a failure Apr 11 21:20:37 what does the failure say? Apr 11 21:21:57 I’ve got full logging turned on and the response looks successful. I can see from logging that it’s still running the failure callback. Apr 11 21:24:31 Anyone suggest a way to get a GoogleMaps's LocationSource if I want to avoid implementing my own? All i want to achieve is to get updates when my blue dot changes location, I've implemented my own LocationSource but it sucks Apr 11 21:26:12 colintheshots: with what exception? Apr 11 21:26:21 the exception will tell you what's wrong Apr 11 21:26:46 JakeWharton: Ok, I’ll dig into the exception. Apr 11 21:28:24 I do it to convert them back to digits. Apr 11 21:29:16 The "words" are meant to be digits but they were typed as text by mistake. Apr 11 21:31:57 JakeWharton: Whatever it was, adding the proper GsonConverter options seemed to fix it. I’m guessing it was a conversion issue that wasn’t appearing properly. Apr 11 21:37:37 Mentos: That'd be http://developer.android.com/google/play-services/location.html Apr 11 22:03:55 colintheshots: define "wasn't appearing properly" Apr 11 22:04:48 JakeWharton: I was watching the ADB logs and only saw the log message I had put inside the failure callback. I did not see an error from Gson, but that was almost certainly where it should have been emitted. Apr 11 22:05:23 it's in the getCause() of the exception Apr 11 22:05:23 JakeWharton: The exception showed Status = 200 and Reason = OK Apr 11 22:06:07 Ok, I checked getCause for the common errors SocketTimeoutException and UnknownHostException, but I didn’t log it Apr 11 22:06:14 Wasn’t one of those Apr 11 22:07:06 right. it's probably a JsonParseException wrapped in a ConversionException Apr 11 22:13:56 Hello everyone Apr 11 22:14:00 freeone3000: thanks for that Apr 11 22:14:42 Ive got a small question about passing a value to the OnClickListener object, could anyone help? Apr 11 22:17:07 well, here's the piece of code Im having trouble with: http://pastebin.com/gwrdPspf Apr 11 22:17:47 cursor.getString(1) -> this part isn't seen and Ive got no idea how to work this out Apr 11 22:18:27 birbeck: Hello. Thanks again for yesterday, this helped me in my internship today. Apr 11 22:18:27 "(00:53:08) birbeck: wget: here is an example of one of my DAO's... http://pastebin.com/R2ipYdP0" Apr 11 22:18:27 I haven't unfortunately saved your paste. It is is now expired. Can you post your DAO example again. I'll save it this time ;-) Apr 11 22:22:16 JakeWharton: Just wanted to say, I appreciate the fact that you made Retrofit reactive. I’m hoping to take advantage of it soon. Apr 11 22:38:26 ugh, i don't understand http://online.wsj.com/news/articles/SB10001424052702303873604579495940522902678 Apr 11 22:38:44 heh i like this comment "But I'm not one of those marketing geniuses who loves to create walled gardens and captured verticals and synergized markets and all that..." Apr 11 22:53:22 would android devs work with FOSS licensed under Gplv3? trying to figure out these licenses Apr 11 22:53:25 g00s: I can read approximately one sentance of that article. Three, if I highlight it. Apr 11 22:54:52 freeone3000 ugh, maybe this is more http://www.theverge.com/2014/4/11/5605874/amazon-will-announce-a-smartphone-by-june Apr 11 22:55:21 what's a captured vertical Apr 11 22:56:39 i keep thinking they are just a trucking & warehouse company Apr 11 22:56:57 dang amazon Apr 11 22:58:40 hopefully android dev knowledge transfers over... Apr 11 23:02:09 amaphone ? Apr 11 23:04:37 They already made the Kindle Fire. They already had an android device. Apr 11 23:05:02 This is a Kindle Fire with a GSM chip. Apr 11 23:06:23 Mango_Man: A vertical is one production pipeline, as in vertical integration; if you own the developers who produce the product, and the store that sells the product, and the devices on which the customers use the product, that's vertical integration. If movement between this vertical and another is difficult, that vertical is captured. Apr 11 23:07:03 Mango_Man: Think MacBooks. Apr 11 23:07:58 (Most of the time, with consumer goods, the capturing is simply lack of technical interoperability and a moderate capital expenditure.) Apr 11 23:08:14 ah okay. do you mean difficult movement for developers or customers? Apr 11 23:08:44 Mango_Man: Either is possible, but the article means consumers, since the Android app store is also available on non-android devices. Apr 11 23:09:01 Mango_Man: They take an APK just like the Play store. Apr 11 23:09:04 freeone3000: So, you're saying I should use my bishop to capture the enemy rooks becuase the bishops don't have verticals. :P Apr 11 23:09:17 haha Apr 11 23:09:18 Fenny: Insert vatican patronage joke here. Apr 11 23:11:43 freeone3000: Insert joke about mormons and pawn promotion here/ Apr 11 23:39:19 i recive a error in this line Apr 11 23:39:20 channelReceiver = new ConversationReceiver(server.getId(), this); Apr 11 23:39:27 on android 4.2.2 Apr 11 23:42:01 please, let us guess what error you get. Maybe I can even get out my crystal ball? :) Apr 11 23:42:40 i'm guessing: NPE :) Apr 11 23:43:09 g00s: I wouldn't bet against that :) Apr 11 23:43:43 java null pointer exception Apr 11 23:43:46 only this jesus Apr 11 23:44:19 can check my app? Apr 11 23:44:23 well, the only thing that could be causing an NPE on that line is if server is null. Apr 11 23:44:48 in apk o in source code Apr 11 23:46:12 that question doesn't make any sense. Apr 11 23:47:18 JesusFreke i'm still not convinced b0t has passed the turing test Apr 11 23:47:54 well, his nickname might be a hint :) Apr 11 23:53:05 Heh - tough crowd Apr 11 23:54:36 well, this isn't his first time in this (or other) channels Apr 11 23:55:36 unfortunately, he's firmly in the "please code my app for me" camp, rather than the "help me understand this" camp. Apr 11 23:55:47 no Apr 11 23:55:53 i do no understand Apr 11 23:55:55 the error Apr 11 23:56:00 all is ok Apr 11 23:56:35 an NPE is basically one of the easiest errors to understand. It means that you're trying to call a method or access a field on a null value. Apr 11 23:56:57 check the source please Apr 11 23:57:12 In that line that you mentioned, the only thing that could be throwing an NPE is accessing the .getId() method on the server object, if server is null. Apr 11 23:57:26 eclipse Apr 11 23:57:32 is bad Apr 11 23:57:45 this has nothing to do with eclipse Apr 11 23:58:25 a kind man Apr 11 23:58:27 help me Apr 11 23:58:40 JesusFreke see if only Java had the '?.' operator Apr 11 23:58:45 try the source, is compiled ok Apr 11 23:59:01 yes, an NPE is a runtime error. it's not a compile time error Apr 11 23:59:27 for example, if you do: Object someObject = null; System.out.println(someObject.toString()); Apr 11 23:59:34 it will compile file. but you'll get an NPE. Apr 12 00:00:01 im a rolling stone Apr 12 00:00:11 because you're calling a method (.toString()), on a null value (someObject) Apr 12 00:00:34 it will compile fine* Apr 12 00:01:39 jesusfreke: my evil mentees get into "ah ok, how do I do that?", then ... "ah ok! how do I do that?" ... then ... :p Apr 12 00:01:58 the error only in android 4.22 Apr 12 00:02:03 F*********************CK Apr 12 00:02:35 i tested in 2.**** ok Apr 12 00:03:05 capella: well, you send an electrical signal from your brain to the muscles controlling your finger, such that your finger presses the S key on the keyboard... Apr 12 00:03:13 "ah ok, how do I do that?" Apr 12 00:03:19 hehehehe Apr 12 00:04:39 capella: read this Apr 12 00:04:42 i hate you Apr 12 00:05:39 nah, you're just jealous :) You'll get better Apr 12 00:07:02 b0t: you have to: 1. verify that "server" is in fact null there, and then 2. trace the logic backwards to determine how/why server might be null. Apr 12 00:07:36 im lammer Apr 12 00:07:52 ok Apr 12 00:07:53 I have no idea what lammer is, but I'm not inclined to disagree Apr 12 00:08:02 ok wait Apr 12 00:08:04 lamer Apr 12 00:08:50 the emulator is very very slow Apr 12 00:08:55 i buy a vps Apr 12 00:09:05 and create a unreal server Apr 12 00:09:11 for my people Apr 12 00:09:14 500 users Apr 12 00:09:20 only sex chat Apr 12 00:09:53 You might be getting into TMI territory there ;) Apr 12 00:10:01 XD Apr 12 00:10:04 i replace the files Apr 12 00:10:11 and work Apr 12 00:10:18 It's hard to code with one hand Apr 12 00:10:26 no Apr 12 00:10:29 * JesusFreke lol'd Apr 12 00:10:32 replace for the original files Apr 12 00:10:41 my modified are lost Apr 12 00:10:58 you've lost more than your modified Apr 12 00:11:35 whatttt Apr 12 00:11:53 took two months modifying Apr 12 00:11:55 you lost your whatttt too ? Apr 12 00:12:09 * capella sent 7$0 to sublime-text people and earned his karma points for the day ... Apr 12 00:12:20 play much the codes and then forget I ever played Apr 12 00:12:26 er, $70 Apr 12 00:12:53 I should make backup for each line Apr 12 00:12:54 capella someone asked on HN the other day if ST was dead. i guess not but ... Apr 12 00:13:28 i dont think one guy can handle all of that. i think its showing Apr 12 00:13:33 * b0t nervous breakdown Apr 12 00:13:37 I've been using it for over a year and I love it ... works in both my *nix and Win partitions ... it was time Apr 12 00:13:50 I de-stress now Apr 12 00:13:53 i go chaturbate Apr 12 00:14:01 omi Apr 12 00:14:22 don't play much your codes! Apr 12 00:14:32 no Apr 12 00:14:36 only play my Apr 12 00:14:40 code... Apr 12 00:15:01 okaibai Apr 12 00:17:01 capella: were you from Apr 12 00:17:02 ? Apr 12 00:17:19 yes, but no longer Apr 12 00:18:13 heh ... need to jump channel for a bit ... too much fun here :D Apr 12 00:18:13 i from Apr 12 00:18:19 Messi city Apr 12 00:18:33 rosario, argentina Apr 12 00:18:54 i f***ck the messis mother Apr 12 00:19:06 capella: yeah, I gave the sublime guy my $70 a while back. awesome text editor :) Apr 12 00:19:14 ++ Apr 12 00:19:25 notepad++ \o/ Apr 12 00:19:51 mmmm ... forget why i didn't care for that one as much Apr 12 00:20:04 back when I was on windows, I used one called textpad Apr 12 00:20:27 JesusFreke: Apr 12 00:20:28 a serious question Apr 12 00:20:36 -12 Apr 12 00:20:41 ^ a non-serious answer Apr 12 00:20:53 I am testing my app in android 4.2.2, and the keyboard does not appear Apr 12 00:21:09 in other versions of android if it appears Apr 12 00:21:14 I'm probably not the best person to ask about android gui type stuff :) Apr 12 00:21:35 whatt Apr 12 00:21:47 I must ask who Apr 12 00:21:54 the channel in general? :) Apr 12 00:22:07 ok Apr 12 00:22:15 the channel read my question Apr 12 00:22:19 my problem Apr 12 00:22:43 is rare, the keyboard does not appear but in other versions if Apr 12 00:25:23 keyboard not shown Apr 12 00:27:36 JesusFreke i think b0t failed the turing test again today Apr 12 00:27:46 brain not shown Apr 12 00:28:10 g00s: youre a genious Apr 12 00:28:29 tell me why the keyboard is not displayed in android 4.22 Apr 12 00:28:34 in my app Apr 12 00:28:54 I liked the three minute delay in train of thought completion Apr 12 00:28:59 b0t probably because it doesn't detect a person needing to input Apr 12 00:29:18 friki Apr 12 00:29:19 .c Apr 12 00:29:36 must have been chaturbating Apr 12 00:30:46 capella friki friki ! Apr 12 00:30:59 DOT-c Apr 12 00:36:15 Hi all. Question about MenuItemCompat. What would be the opposite to setActionView, as where I remove the actionview and return back to the normal menu item Apr 12 00:39:09 What are the prereq of android RAM_CONSOLE for persistent RAM during a reboot (to preserve it) Apr 12 00:44:49 * capella would have sent $$ to sublime people earlier, but they required paypal ... not fond of them Apr 12 00:45:25 ThomQ if you hold a reference to the Menu from onCreateOptions Menu, and then just call .setContentView whenever, it doesn't work ? Apr 12 00:49:46 50Mb is still a limit for APKs right Apr 12 00:50:29 looks like it… i had never even come close to this number, so its suddenly super frustrating to run into Apr 12 00:51:45 sqpat I think you can use the apk addon thing for bigger apps Apr 12 00:52:54 sqpat http://developer.android.com/google/play/expansion-files.html Apr 12 00:56:28 holy crap guys, you can run java in a REPL using groovy Apr 12 00:57:47 yeah… i can use expansion files Apr 12 00:57:54 but the directories are gonna be funky Apr 12 00:58:03 i need to mess around with my code a bit Apr 12 00:58:14 and make a loading screen Apr 12 00:58:20 its just a big mess of stuff Apr 12 00:58:29 i'd expect something like this out of a lesser company, not google Apr 12 01:03:04 heyhey every1 Apr 12 01:03:12 hey all.. how can i figure out what namespaces/attributes the youtube native apps manifest file asks for? Apr 12 01:05:12 ahh the intent filter Apr 12 01:10:28 g00s thanks that worked Apr 12 01:10:45 sweet Apr 12 01:11:51 i see so youtubes grabbed youtube.com Apr 12 01:31:14 if anyone's using butterknife: is there an annotation for a gridview's OnItemClick? Apr 12 01:32:10 Mango_Man: yes Apr 12 01:32:33 is it just @OnItemClick? Apr 12 01:33:00 http://jakewharton.github.io/butterknife/javadoc/butterknife/OnItemClick.html cool Apr 12 01:35:30 Yes Apr 12 01:49:39 Hello. What's the proper/secure way to store login sessions in Android? I assume it's not as simple as storing a username in a database, as a malicious user could just change the username and login as whomever they like :) Apr 12 01:53:14 nebby: token Apr 12 01:54:27 what is that? Apr 12 01:56:44 Hey guys. Is the channel recommended for people new to android and app development, where I can ask newbie questions as I go along, or is there a more recommended channel for a newbie like me? Thanks :) Apr 12 01:57:02 eitai2001: there's only this channel Apr 12 01:58:11 Ok cool, thanks :) ... Probably the dumbest question ever, but I have never programmed in Java. Can I use Android app development as a way to learn both in a 2-for-1 deal ... or should I go learn Java separately and come back to Android? Apr 12 01:59:10 do you know how to program? Apr 12 01:59:34 Yeah Apr 12 01:59:58 But mostly web dev stuff ... PHP, Python Apr 12 02:00:09 So no C/C++ ? Apr 12 02:00:15 And back in the day I was quite proficient in Visual Basic 6. But I mean back in the day Apr 12 02:00:18 No, not at all Apr 12 02:00:45 eh, i think it depends on what you think is right Apr 12 02:01:24 Ok so you need to learn object-oriented programming concepts most probably Apr 12 02:01:42 Ha ha ... I guess the way I see it, learn in Android. The principles should be the same, with the biggest confusion for me coming I guess from the API. I might just do a quick JAVA basics course to understand the Java syntax. Apr 12 02:01:59 Yeah, I've done some basic understanding of OOP with a Lynda tutorial Apr 12 02:02:04 But it was high-level Apr 12 02:02:49 And you need an environment for android app programming Apr 12 02:02:59 IDE and debug tools Apr 12 02:03:12 Yeah, I've downloaded the Google package with all the bells and whistles :P Apr 12 02:03:20 The Eclipse one Apr 12 02:03:25 Not the Android Studio Apr 12 02:03:31 Ok Apr 12 02:03:53 Busy doing a coursera course now that teaches the dev, but it assumes you have a knowledge of Java ... which is what I'm worried about :/ Apr 12 02:04:04 Because Java is a big beast to someone new like me Apr 12 02:04:20 https://developer.android.com/training/basics/firstapp/index.html Apr 12 02:04:48 Thanks, I'll check that out Apr 12 02:04:59 But I don't know what's about the idea to learn Java separetly or not Apr 12 02:05:08 I learned Java separetly Apr 12 02:06:20 Yeah, it's probably the better thing to do. But I just want to get going ... I have a million app ideas (We all want to be the next instagram, and my idea is that, bla bla kind of stuff) ... and it's super frustrating to not know how to do them! Apr 12 02:06:37 THanks for the link though ... gonna check it out in depth Apr 12 02:07:01 eitai2001: i wouldn't read that, go get a copy of the big nerd ranch for android Apr 12 02:07:06 *big nerd ranch guide for android Apr 12 02:07:37 the getting started tutorial is pretty bad, it focuses on minutiae like the action bar for an entire section. Apr 12 02:07:37 I'm interested in that guide Apr 12 02:07:52 (closed tab so...) Apr 12 02:07:58 Where is this guide ? Apr 12 02:08:10 Dr-Shadow: it's a book on amazon Apr 12 02:08:10 Thanks Mango_Man ... I'll look for it. Apr 12 02:08:16 Ah kk Apr 12 02:08:30 Does it involve any colour in the book? If not, I may just pull it onto my Kindle Apr 12 02:09:11 eitai2001: color is sorta irrelevant, it's all code anyway. read the entire thing, do all the exercises, then start working on apps Apr 12 02:09:32 Ok cool, thanks, I'll check it out. Apr 12 02:09:55 Yeah, I'm not gonna do any of my own actual apps without learning the stuff properly (As if I was a student in univesity) Apr 12 02:10:51 This coursera thing is also pretty cool. It's free video lectures from universities in the US, and it's a 3 part course. The final part teaches you to interface with cloud computing. It only opens in like July, which gives me plenty of time to catch up. Apr 12 02:10:55 just for some perspective on how long it'll take: it took me a month to work through the book and get familiar with the sdk Apr 12 02:11:12 Yeah, that's not too bad ... probably quicker than I can do :P Apr 12 02:11:21 Were you familiar with Java prior to doing it? Apr 12 02:11:48 not really, it's just something you pick up Apr 12 02:12:09 ok cool ... you're making me feel better about the task at hand, thanks ;) Apr 12 02:12:18 no problem :) Apr 12 02:12:47 I still have a question about this : Apr 12 02:12:49 What are the prereq of android RAM_CONSOLE for persistent RAM during a reboot (to preserve it) Apr 12 02:13:10 I think the persisten RAM is erased or lost in my case Apr 12 02:14:12 any1 here messing with kindle fire at all? Apr 12 02:30:46 g00s: here is the bluetoothchat: < https://github.com/Technicus/BluetoothChat_Redux >. Apr 12 02:31:11 It does not show the menu options though. Apr 12 02:32:15 omg, why would there be a function in the android docs that doesn't actually exist in the sdk? >:( Apr 12 02:35:17 Can data local to my app be modified externally (maliciously)? Apr 12 02:35:49 If they have root. Apr 12 02:40:06 version mismatch Mango_Man Apr 12 02:40:17 would be my guess Apr 12 02:40:26 good idea, let me check Apr 12 02:40:55 nope :( Apr 12 02:40:59 Fenny: Right. So I am thinking of how to allow a user to not have to login each time. Storing just their username means someone can change the username and login as anyone. Storing their user and password means if a malicious user gets access to their phone they will be know their password. So what is the best option? Apr 12 02:41:28 nebby, you could store a token that expires after X time. Apr 12 02:41:36 store the same token serverside Apr 12 02:41:52 okay, and a token is some kind of random hash? Apr 12 02:41:53 then just make the user log in every X days. Apr 12 02:41:59 yes. Apr 12 02:42:09 randomly generated on the server side. Apr 12 02:42:35 Most apps never ask me to login again that I can think of, eg gmail, facebook messenger Apr 12 02:42:43 I guess their tokens don't run out? Apr 12 02:43:11 yep, or they extend on the server side each time they are used. Apr 12 02:43:20 Mango_Man, sounds like a error on the doc side then, tho I would not accuse google of making a mistake in public, their operatives are ruthless. Apr 12 02:43:20 cool Apr 12 02:43:46 NEVER store the plain text user and pass in the sqlite db. People like me WILL get them. >:) Apr 12 02:44:11 Carbonflux: strangely, the function in question (dispatchSetSelected) is in the source, but isn't showing up under autocomplete Apr 12 02:44:18 could you also change it? Apr 12 02:44:24 will try reinstalling the sdk Apr 12 02:44:30 the stuff in the sqlite db Apr 12 02:44:38 Oh totally Apr 12 02:44:51 Mango_Man, so you can make the function call? That could be an install issue I guess. Apr 12 02:44:53 sqlite3 I can run an update or insert statement. Apr 12 02:44:55 cool, just need to know what can be done so I know what to watch out for :) thanks Apr 12 02:45:11 You can even store part of the token and have the app hash the token before sending it to the server. Apr 12 02:45:29 part of the token? Apr 12 02:45:30 Carbonflux: it won't build. but i did find the function in the android source, so the docs are right Apr 12 02:46:10 noone in here messin w/ kindle fire's? Apr 12 02:46:12 I.E. get the IMEI and use it as the salt for your token then your client sends it back to the server. Apr 12 02:46:42 so the data stored in the sqlite db is not exactly what is sent to your server app. Apr 12 02:46:51 That way they can't packet sniff. Apr 12 02:48:44 cool thanks Apr 12 02:50:13 ah, maybe its the target version for the build? **** ENDING LOGGING AT Sat Apr 12 02:59:59 2014