**** BEGIN LOGGING AT Sun Apr 28 02:59:58 2013 Apr 28 03:00:49 you are just trying to determine device - screen type? Apr 28 03:01:18 no Apr 28 03:02:08 i want something that specifies the partitioning of my activities and fragments across a large project, which would include phone / tablet variants Apr 28 03:02:29 instead of putting it in code Apr 28 03:03:17 (if using one activity to manage a bunch of fragments) Apr 28 03:03:34 since they are dynamically added/removed - its code, not in layouts Apr 28 03:04:00 its so much easier just writing for phone :D Apr 28 03:04:12 it's not Apr 28 03:04:18 the tablet version should just be a touch enabled desktop edition XD Apr 28 03:04:29 oh, nvm Apr 28 03:05:35 goos: maybe use different activities Apr 28 03:05:36 back Apr 28 03:05:43 to host different fragments per device Apr 28 03:05:45 type Apr 28 03:06:19 so launch the root activity, then det device type, then launch activity for tablet, activity for phone depending Apr 28 03:06:28 so you can easily partition your code Apr 28 03:06:46 and since its just the initial launch, no one will be the wiser Apr 28 03:07:53 Coffee time Apr 28 03:21:22 Anyone have a case in which as your debugging, the IDE would detact and there's nothing in the logcat Apr 28 03:24:12 this is annoying Apr 28 03:25:28 Working with Android at times can be very annoying. Apr 28 03:31:38 Hello. When I write a file to (Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).getPath() + "/MyAppName/captures"), the file is created fine and the data is saved to it. However, I can only view it on the device. The entire folder is invisible when I view it with MTP. How do I fix that? Apr 28 03:33:55 hesp: sure you're looking in the right place? Apr 28 03:34:39 can you find the folder via the device itself? Apr 28 03:38:31 lasserix, yeah i'm sure. I can see the folders and the file i created when i browse with a file manager (File Manager HD with root enabled) Apr 28 03:38:51 lasserix, I ran my app on my phone (4.0.4), and it works fine when I mount the storage - but that uses UMS Apr 28 03:39:25 with my nexus 7, I cannot see any of the folders I created, much less the file, when I view them on my PC over USB (MTP mode) Apr 28 04:04:11 I seriously want to stab someone for how Android disconnects from debugging Apr 28 04:04:54 so strange how it just disconnects Apr 28 04:07:00 what do you mean? Apr 28 04:07:02 you lose logcat? Apr 28 04:07:41 rburton-: every time I've seen that, it was a faulty cable Apr 28 04:07:50 hi every people :) Apr 28 04:08:26 Hi Dr Tricknology Apr 28 04:08:54 What is primitive type int? Apr 28 04:09:13 just a simple int? Apr 28 04:09:19 like 3 or 4 ? Apr 28 04:09:42 does anyone know how I can get the position of the item that was clicked through an array adapter? Apr 28 04:09:45 http://pastebin.com/4wSgJ1Bj Apr 28 04:09:59 Tadas: yes, as opposed to an Integer Apr 28 04:10:01 okay I see "ION_IOC_ALLOC failed with error - Out of memory" Apr 28 04:10:18 I would like to get the position of the item in "names" not the position of the item in the inflated list Apr 28 04:10:32 I think I know what it is now... Apr 28 04:10:38 and why it seems so random Apr 28 04:10:38 thanks Apr 28 04:10:44 i.e. if i select a name from the drop down, it gives me pos = 2 instead of pos = 50 Apr 28 04:11:49 I think.. Apr 28 04:11:54 trying to verify it Apr 28 04:11:55 pos recycles Apr 28 04:12:00 id is absolute Apr 28 04:12:39 also you can do hackish check the view text and compare it to your list to find Apr 28 04:12:46 in the on item click listener Apr 28 04:13:00 Nope no clue Apr 28 04:13:12 no good, since it's contacts there's a chance of a duplicate Apr 28 04:13:24 id sounds good lasserix, but how do i relate id to the original arraylist? Apr 28 04:14:17 original array list -: names Apr 28 04:18:04 Or i could just get around it by making a custom list view with two lines, name and phone. then get the 2nd line of the view on click. Apr 28 04:18:13 but there should be a way... Apr 28 04:19:40 tricknology you can put put the array position as a hidden textview Apr 28 04:19:48 and then reverse lookup on click Apr 28 04:20:11 but i believe that is what the id arg of the onitemclick is for Apr 28 04:20:50 but how will i tell the textview to setText() the correct number? Apr 28 04:21:22 and id sounds good but i can't figure out a way to relate it to the original arraylist 'names' Apr 28 04:41:14 rburton-: was it AES 256 or 128? Apr 28 04:41:29 128, but i tried 256 as well Apr 28 04:41:43 Napalm|afk: how can you type when away from the keyboard? thats an awesome trick ! Apr 28 04:41:45 Going to resort to NDK like you mention. After playing with different options, etc. I think NDK makes snese Apr 28 04:41:57 g00s Napalm|afk is the chunk norris of IRC Apr 28 04:42:03 :O Apr 28 04:42:18 chunk norris :D Apr 28 04:42:35 * Napalm|afk listens to Tron Legacy sound track while coding C++ Apr 28 04:42:46 ok so, i got this down to 100ms Apr 28 04:42:57 running AES 256 on 1MByte urandom data Apr 28 04:42:58 for how large of a file? Apr 28 04:43:06 nice Apr 28 04:43:20 I'm downloading NDK as we speak Apr 28 04:43:45 Hello Apr 28 04:43:52 g00s: i use a long stick Apr 28 04:43:52 :D Apr 28 04:44:07 mantas322 == Lionel Richie? Apr 28 04:44:14 I'm trying to show a .GIF image inside an android app Apr 28 04:44:17 what? Apr 28 04:44:24 He wrote a song called "Hello" Apr 28 04:44:28 about stalking.. Apr 28 04:44:33 mantas322: an animated gif? Apr 28 04:44:39 yes Apr 28 04:44:54 WebView hack it up baby! Apr 28 04:44:57 mantas322: use a program to extract each frame as a png Apr 28 04:45:04 mantas322: then use AnimationDrawable Apr 28 04:45:15 there must be easier way Apr 28 04:45:34 can i use this http://developer.android.com/reference/android/graphics/Movie.html ? Apr 28 04:45:34 write your own GIF decoder then Apr 28 04:45:50 if anyone knows any examples plz tell me Apr 28 04:46:21 mantas322: interesting, never come across that class.. give it a try and see Apr 28 04:46:22 are there any form design guidelines for android ? Apr 28 04:46:28 Okay time to play around with NDK Apr 28 04:46:45 rburton-: will send you some code in a moment Apr 28 04:46:51 why am i listening to this lionel richie hello song Apr 28 04:46:55 Awesome! That'll help a lot Apr 28 04:47:18 I'm just building a fun project (not making money off of it) just so you know lol Apr 28 04:47:43 i dont want anything Apr 28 04:47:47 im having fun :P Apr 28 04:47:51 :) Likewise! Apr 28 04:47:57 I quit my job to do my own fun stuff Apr 28 04:48:05 * rburton- is going broke quickly lol Apr 28 04:50:24 rburton-: how do you want the output? to a file? as a memory array? or some callback for blocks Apr 28 04:51:03 It'll be written to an output stream, but Ill need to obtain the number of bytes written for the Http content-length Apr 28 04:53:37 sounds like block callback is best Apr 28 04:53:58 How about long encrypt(..., OutputStream) Apr 28 04:54:21 where the return would be the number of bytes as a result of the encryption Apr 28 04:54:23 i could write directly to the outputstream sure Apr 28 04:54:38 I could even modify it as well, it'll be a good learning experience Apr 28 04:55:26 setting targetSdk=15 is so liberating … like running through the streets naked or something Apr 28 04:57:02 or something 9.9 Apr 28 05:20:52 now i'm fucking pissed Apr 28 05:21:03 Leeds cheating on me with a black chick Apr 28 05:21:07 wtf whore Apr 28 05:21:39 ? Apr 28 05:23:42 It could be worse, you could have went into an IRC channel telling everyone that. Apr 28 05:30:47 g00s you could probably gte away with that where you are Apr 28 05:30:50 Hm.. for some reason i am getting the wrong contact info from contact picker :( Apr 28 05:31:08 ron_frown: Phoenix? yeah ! ha Apr 28 05:31:19 arent you in the hills in phoenix? Apr 28 05:31:25 it was 95f here today Apr 28 05:31:26 yeah Apr 28 05:31:34 borderline too hot to ride my bike but I did anyway Apr 28 05:35:42 going to be 100 next week Apr 28 05:36:19 http://pastebin.com/89qGDTaZ I am getting the wrong contact info when i setText. can anyone help? Apr 28 05:38:22 it doesn't matter who i pick from the contact picker, it still returns the same person Apr 28 05:50:30 giggity giggity Apr 28 05:50:37 created android-dev channel at jabbr Apr 28 05:51:09 what server ron_frown Apr 28 05:52:30 jabbr.net Apr 28 05:52:40 imo next gen irc =) Apr 28 05:53:03 i heard that 10 years ago Apr 28 05:53:05 :D Apr 28 05:53:09 not jabber Apr 28 05:53:20 g00s I've been around on it since its inception Apr 28 05:53:36 just didnt realize they encouraged people to create and populate channels Apr 28 05:54:16 freenode has a lot of open source stuff, like #ubuntu, etc Apr 28 05:54:23 its not real irc Apr 28 05:54:30 the benefit tho is because its all web based Apr 28 05:54:40 you wander away and you can go back and see what was posted while you were gone Apr 28 05:54:50 eg, like an irc bouncer without the bouncer Apr 28 05:56:04 like campfire and hipchat and etc. etc. Apr 28 05:56:11 I guess Apr 28 05:56:42 JakeWharton I didnt say there was nothing like it anywhere ) Apr 28 05:57:09 ron_frown: http://tapchatapp.com/ Apr 28 05:57:29 one thing that I hate about Gtalk is that it doesn't support joining JAbber conference/chatrooms Apr 28 05:59:23 okay,, i have it narrowed down. The phone number is not returning, the cursor length is zero, any ideas as to why? http://pastebin.com/wHyv366a Apr 28 05:59:44 Cursor pCur Apr 28 06:04:21 Tricknology: I think you want to query ContactsContract.Data.CONTENT_URI and then look for the phone mimetype Apr 28 06:04:58 Thank you kindly codebutler Apr 28 06:13:05 ron_frown: since you are into databases, have you played around with Perst for android by any chance ? Apr 28 06:13:49 * g00s senses ron_frown is frantically googling …. Apr 28 06:19:20 hesperaux: port RRD to android yet ? :D Apr 28 06:29:05 JakeWharton hows' it going Apr 28 06:29:20 You should drop by the Atlassian office its not far from Square Apr 28 06:29:22 good. buzzing around a few projects we're trying to get out the door Apr 28 06:29:28 nice Apr 28 06:29:33 oh? I didn't know you worked for Atlassian Apr 28 06:29:40 No I know a lot of folks there Apr 28 06:29:47 code butler, i'm trying your suggestion but I can't seem to get the thing to return a phone number still Apr 28 06:29:49 If you want to drop by let me know Apr 28 06:30:14 They asked me to work there, but I don't aim to work for anyone and just doing my stuff Apr 28 06:30:18 can i get the position of the contact in the contacts list? Apr 28 06:30:57 yeah that'd be great but probably not until after I/O Apr 28 06:31:03 Are you attending? Apr 28 06:31:11 I'll be there. I attend every year Apr 28 06:31:25 Yep Apr 28 06:31:36 JakeWharton I see Dagger is changing a little with @Inject on attributes require them to be protected to avoid reflection etc Apr 28 06:32:44 yep. generated code can't access private things. Apr 28 06:33:16 Makes sense Apr 28 06:33:22 performance++ Apr 28 06:34:20 rburton-: did you get a offered a ticket? Apr 28 06:34:28 I attend every year Apr 28 06:34:31 I get an invite a head of time Apr 28 06:34:42 yea, i knew a few people that got invites Apr 28 06:34:55 I haven't missed a year since it started :) Apr 28 06:34:56 i went last year, didnt manage to get a ticket this year Apr 28 06:35:02 bastard :P Apr 28 06:35:03 :D Apr 28 06:35:04 hehe Apr 28 06:35:15 I'm moving to NYC so this will be the last month in SF Apr 28 06:35:18 Homeless-- Apr 28 06:35:31 homeless people I should say.. then again I'll be homeless in a year lol Apr 28 06:38:21 Napalm what native lib did you use for open ssl Apr 28 06:38:49 polarssl Apr 28 06:39:08 Okay going to download that. When doing NDK where did you put those dependencies? Apr 28 06:39:34 i/6 Apr 28 06:39:57 {project-dir}/jni/polarssl Apr 28 06:40:51 * rburton- runs make and waits as my CPU heats up Apr 28 06:41:23 JakeWharton Are you guys going to Thursty bear this year Apr 28 06:41:43 is that a thing? Apr 28 06:41:51 A bar near the area Apr 28 06:41:57 yeah i've heard of it Apr 28 06:42:02 i meant going there Apr 28 06:42:16 Ah yes a lot of people go there for JavaOne, not sure about Google IO Apr 28 06:42:21 typically they do a party the first day Apr 28 06:43:58 Google IO crowd is different than JavaOne since JavaOne has a lot of people that go there year after year. Apr 28 06:44:06 Google IO is typically a mixed crowd each year Apr 28 06:44:24 rburton- / JakeWharton: do either of you remember the name of java utility which will give you the native signature for java method prototypes Apr 28 06:44:37 jni -h Apr 28 06:44:43 you mean that Apr 28 06:45:04 theres a util called jni? Apr 28 06:45:25 javah Apr 28 06:45:30 thats it Apr 28 06:45:45 I don't know why I typed jni I meant to say "jni headers" Apr 28 06:51:57 i use javah so infrequently that I aliased something over it Apr 28 06:52:09 jhead hehe Apr 28 06:55:01 JakeWharton I guess you guys don't do any AES encryption Apr 28 06:57:05 no idea Apr 28 06:57:35 if we do it's abstracted away from anything i touch Apr 28 07:03:26 wc Apr 28 07:13:28 anyone has got a invite code for Ingress? Apr 28 07:18:49 hmm. cwac-loaderex has a Loader for reading shared preferences … not sure what to think about that Apr 28 07:19:38 sounds lame Apr 28 07:19:53 premature optimization Apr 28 07:20:01 heh, i was thinking that too Apr 28 07:20:57 it is a IO operation so it would be nice to keep off the main thread Apr 28 07:21:16 (well it internally keeps it off the main thread, but then just blocks for it so it's basically the same) Apr 28 07:22:02 if trivial local IO is that slow... Apr 28 07:22:46 kevinb: the current prefs impl writes on a background thread, but they provide no symmetrical facility for reading; i'm thinking there is something to that Apr 28 07:23:30 of course, its easy to change the write impl without changing the contract of the api Apr 28 07:23:32 i think it starts reading in the background thread as soon as it's created (or soon after) Apr 28 07:23:46 unless you use prefs like a database, a single read is not slow Apr 28 07:23:57 but just blocks if needed on any get operation Apr 28 07:28:44 hmm. well, i can use plain old CursorLoader and impl a local-only content provider (yuck) or do something like cwac-SQLiteCursorLoader. hmm. Apr 28 07:29:27 for what? Apr 28 07:29:30 i've been pretty removed from the state of the art in current android design patterns ;) Apr 28 07:29:50 pfn: actually, just persisting incoming messages Apr 28 07:30:05 replace that droid already Apr 28 07:30:27 i'm using the x86 ICS emu :D Apr 28 07:30:36 * g00s glances at his weaping droid Apr 28 07:30:46 you should old yeller that thing Apr 28 07:30:54 actually you should have done that years ago... Apr 28 07:31:02 :) Apr 28 07:31:29 hey pfn Apr 28 07:31:32 I use my droid as a desk clock now Apr 28 07:31:41 súp nappy Apr 28 07:32:00 not a lot, doing a bit of android native.. playing with AES Apr 28 07:34:21 Native and aes? why not bouncy castle Apr 28 07:37:17 slow. Apr 28 07:37:54 fast enough, depending on usage Apr 28 07:45:22 why not use a service to update preferences with security asynchronously? Apr 28 07:47:40 that sounds likes killing a fly with a bazooka Apr 28 07:48:25 implication is that it indeed works ;) Apr 28 07:50:46 JackWharton: i agree, but if the service itself is minimal then what's the difference? Apr 28 07:51:04 and you could start and kill the service on activity creation / destruction Apr 28 07:54:06 maintenance of infrastucture, heaviness of interaction, excessive API for loading and persistence Apr 28 08:05:15 Jake: thanks, those are good reasons Apr 28 08:17:05 i alwasy use me default persistance library Apr 28 09:02:07 Hello, how to know the draw FPS? Apr 28 09:02:38 on normal activity ui Apr 28 09:02:39 UI Apr 28 09:02:45 not game Apr 28 09:06:38 MoshDev, normal GUIs don't necessarily have a concept of FPS Apr 28 09:06:54 i don't think that's true Apr 28 09:06:59 Since they don't refresh the screen constantly, and when they do, they usually do not refresh the entire screen Apr 28 09:07:01 we benchmark our apps to ensure they have high-FPS Apr 28 09:09:07 FPS is also usually the wrong thing to measure, you'd want to measure frametime. Apr 28 09:09:38 (but of course you can convert that in your head, if you want to...) Apr 28 09:11:22 hi all, sorry to post possibly non-relevant question here, but finding it hard to geta response in any channel. Apr 28 09:11:39 does anyone know a good way to reliably set wifi network priorities? Apr 28 09:11:42 basically I want my nexus 7 to connect to my home wifi network over my phone's wifi hotspot when both are present Apr 28 09:24:25 Statts: i don't think you can set a priority with the default settings Apr 28 09:24:44 it's probably alphabetic though, so you could rename the home wifi network Apr 28 09:25:46 several apps claim they can do it Apr 28 09:25:47 https://play.google.com/store/apps/details?id=com.hogdex.WifiRuler&hl=en Apr 28 09:26:13 actually just found it under wifi > settings > advanced Apr 28 09:26:21 will run it for a while and see how it goes Apr 28 09:26:26 didnt know it was a standard feature now Apr 28 09:26:52 i don't see it in wifi > settings > advanced Apr 28 09:26:56 what version? Apr 28 09:27:21 4.2.2 Apr 28 09:27:59 huh, i guess it's new. im on 4.1.2 Apr 28 09:28:20 might be, yeah Apr 28 09:28:37 my first 4.2.2 device, so I didnt even bother looking for factory setting at first Apr 28 09:38:24 Amadiro: Ok thanks :) Apr 28 09:43:55 hey everyone... i'm trying to compare numbers against some values in a database, and it seems to skip the first record in the db... was wondering how i could make the code take the first record into consideration Apr 28 09:45:06 give us some code to figure out what you're doing wrong Apr 28 09:46:01 might be helpful, eh? :D Apr 28 09:46:02 http://pastebin.com/yVdUQ58P Apr 28 09:47:47 erm... aren't you doing moveToNext twice? Apr 28 09:48:03 Remove line 12 Apr 28 09:48:20 no, you moveToFirst, which is okay Apr 28 09:48:38 It's pointless when he does while (c.moveToNext()) { Apr 28 09:48:44 It starts at position -1 Apr 28 09:48:48 then you moveToNext in the while test, which means you're at the second line... then you do your test... then you do moveToNext... Apr 28 09:48:51 The first moveToNext is going to take it to the first record Apr 28 09:49:08 then you do moveToNext in the while test... do your test... the moveToNext again... Apr 28 09:49:32 SimonVT: okay, then there are two problems :) Apr 28 09:49:56 hmm... tried that that... it now takes the first record in, but skips the second =\ Apr 28 09:50:00 Oh, heh Apr 28 09:50:09 Remove line 20 as well Apr 28 09:51:40 removing line 12 and 20 seems to of fixed it... thanks a lot :D Apr 28 09:52:22 can someone suggest good android oauth2 sample code. I tried from android documentation but that didn't worked for me . Apr 28 10:00:02 <_wli> i have a date picker object Apr 28 10:00:02 <_wli> private DatePicker paymentDatePicker; Apr 28 10:00:35 <_wli> how can i set listeners for when its date is changed so i can check to see if it is within max and min dates? Apr 28 10:12:58 <_wli> can someone explain how onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth) works? Apr 28 10:13:05 <_wli> it's called when a datepicker is changed? Apr 28 10:13:13 <_wli> why does it take in a date? Apr 28 10:15:09 interesting ratings https://play.google.com/store/apps/details?id=com.google.android.gms Apr 28 10:15:22 20k 1stars, ouch ! Apr 28 10:16:14 _wli: it is called when the picker is changed. it provides you with the date, it doesn't "take in" a date Apr 28 10:16:42 well, it takes it from somewhere, but you only have to worry about implementing the method to get the new date Apr 28 10:17:26 <_wli> i m looking for ways to chack dates upon date change Apr 28 10:17:41 yeah, that's how you do it Apr 28 10:17:43 <_wli> to see if the selected date fall within the max and min date Apr 28 10:17:53 yeah Apr 28 10:18:04 google an example or something Apr 28 10:18:10 <_wli> already did Apr 28 10:18:34 <_wli> can't find anything that works Apr 28 10:19:09 start simple. add a date picker to your xml, make sure it shows when you run the app Apr 28 10:19:26 <_wli> sampullman: already have that Apr 28 10:19:34 <_wli> it can submit a date to server Apr 28 10:19:45 <_wli> but now i want to limit the date allowed Apr 28 10:20:13 oh, didn't see your original question Apr 28 10:20:52 well, that's easy, just use setMinDate(long minDate) Apr 28 10:20:58 and setMaxDate(long minDate) Apr 28 10:20:59 <_wli> sampullman: yeah. i have that Apr 28 10:21:02 on the DatePicker Apr 28 10:21:06 <_wli> but that only works for API 11 and up Apr 28 10:21:17 <_wli> if (android.os.Build.VERSION.SDK_INT >= 11) Apr 28 10:21:27 <_wli> i need something that works for 9 and up Apr 28 10:21:45 <_wli> so i m looking into adding a on date change listener Apr 28 10:22:15 else, read the date in onDateChanged(), then if it falls outside the bounds, call updateDate () Apr 28 10:22:51 <_wli> sampullman: i don't know how to implement onDateChanged Apr 28 10:23:24 back to the "google an example." are you familiar with anonymous classes/event based programming? Apr 28 10:23:28 <_wli> "The method onDateChanged() is undefined for the type DatePicker" Apr 28 10:23:34 yeah.. Apr 28 10:23:43 http://developer.android.com/reference/android/widget/DatePicker.OnDateChangedListener.html Apr 28 10:23:56 <_wli> yeah. been staring at that page Apr 28 10:24:28 myPicker.init(int year, int monthOfYear, int dayOfMonth, DatePicker.OnDateChangedListener onDateChangedListener) Apr 28 10:25:34 call that init function with an OnDateChangedListener Apr 28 10:26:24 OnDateChangedListener listener = new OnDateChangedListener() { Apr 28 10:26:24 public void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth) { Apr 28 10:26:24 // do some stuff or whatever Apr 28 10:26:24 }}; Apr 28 10:26:35 blah, sorry for posting code here Apr 28 10:26:42 <_wli> thanks :) Apr 28 10:28:59 <_wli> sampullman: is this close? Apr 28 10:28:59 <_wli> http://paste.pixls.co/i Apr 28 10:29:31 probably, try it out Apr 28 10:29:41 i've never actually used a date picker Apr 28 10:30:33 <_wli> demo on google usually use date picker dialogue Apr 28 10:30:57 <_wli> yeah. it works. thanks sampullman Apr 28 10:31:05 no worries Apr 28 10:31:17 get used to that callback pattern Apr 28 10:32:01 <_wli> :) this is day 3 for me Apr 28 11:39:18 Hey guys. I've noticed that `adb install` doesn't handle filenames with "'" well, where should I report this? Apr 28 11:40:32 To be specific, it looks like it's doing some sort of adb shell operation and gets the quoting wrong. Apr 28 11:41:38 b.android.com Apr 28 11:42:44 SimonVT: Ah, thanks. Apr 28 11:52:24 Ive made a sqlite database with two columns. How should I read that file into my android project? Apr 28 11:53:08 hey guys, has anyone experienced blocking in a thread pool executor? I have my core size set to 1 but if I add another task without finishing the first, it'll be blocked until the first finishes Apr 28 11:59:41 <_wli> is it possible to have different layout base on API version? Apr 28 12:00:19 <_wli> in code, i know i can do if (android.os.Build.VERSION.SDK_INT >= 11) in the code Apr 28 12:00:34 yes, use the configuration qualifiers, layout-v## Apr 28 12:00:43 <_wli> ok thanks. Apr 28 12:01:03 <_wli> is it possible to set an extra text label? just 1... Apr 28 12:01:15 <_wli> don't want to go out with a whole new layout-v## design Apr 28 12:02:09 _wli: stylex.xml in values-v11 / v14, etc Apr 28 12:04:32 you can also just include it, set visibility="gone" and change it when you inflate the view by checking the api level Apr 28 12:04:47 <_wli> cool. thanks Apr 28 12:11:56 <_wli> any idea why Text Hints are not showing in API 10? Apr 28 12:11:56 <_wli> http://cloud.pixls.co/Obx3 Apr 28 12:12:54 <_wli> but text hint for number field works Apr 28 12:12:57 <_wli> they are all EditText Apr 28 12:13:06 <_wli> Hint suppose to work from API 1 and up Apr 28 12:18:04 <_wli> turns out to be an android bug with API 11 Apr 28 12:18:05 <_wli> 10 Apr 28 12:18:10 <_wli> http://stackoverflow.com/questions/3608234/edittext-hint-doesnt-show Apr 28 12:29:27 Hello, i want to center my editText in a RelativeLayout. I tried some solutions found using google, but they don't work. Here is my code http://pastebin.com/ZmLQ9jax How can i do it? thanks Apr 28 12:30:42 FYI the TextView is centered Apr 28 12:45:43 Hey, anyone knows how to create a facebook ad for an application? I mean the one that's being displayed as a post only on android devices and has an "Install Now" button that takes the user to the the Google Play app page? Apr 28 12:53:56 should I replace the current fragment with another fragment or start a new activity that contains the second fragment? scenario is e.g. displaying additional information on a listview item Apr 28 13:17:44 Is it possible to get the base context inside a class that doesn't extend activity? Apr 28 13:18:12 Without adding it as an argument in the constructor Apr 28 13:26:10 Hello, I've been trying to add this to my workspace with no luck https://github.com/jfeinstein10/JazzyViewPager Apr 28 13:26:37 I tried add as an existing android project and import existing project into workspace. both didn't work Apr 28 13:42:03 anyone interested in reciprocal application rating? you rate mine, i'll rate yours? pm me Apr 28 13:44:11 Why do I feel like I'm breaking all sorts of development rules by performing a call from a fragment like (MyActivity)getFragmentActivity().doFoo() ? Apr 28 13:44:43 Am I thinking about this the wrong way or is this basically like calling "upwards"? Apr 28 13:45:36 you can get the activity throug onAttach() or something... Apr 28 13:45:53 And should i ? Apr 28 13:46:15 jellybee: that seems to be a bit close to trying to manipulate ratings... Apr 28 13:46:17 Or wait. wouldn't this amount to the same thing in the end Apr 28 13:47:40 lite_: implement an Interface in the parent Activity that is specified in your Fragment Apr 28 13:48:16 Leeds: it is a little bit, does google catch up with that? Apr 28 13:49:02 jellybee: why would you want to do that? Apr 28 13:50:12 nioncode: well, i'd prefer not being on page 19 on the relevent search terms :/ Apr 28 13:53:07 jellybee: you could send your app to some Android news sites and ask for a review. from there, many users will install it and you should get a higher ranking in the Play Store Apr 28 13:53:54 I will try that, thanks Apr 28 14:19:44 Hey Apr 28 14:21:17 http://pastebin.com/79rRanjX look here Apr 28 14:21:27 this error suddenly popped up Apr 28 14:21:30 it worked before Apr 28 14:33:15 hi, i created a class that extends DialogFragment. The Class provides an interface. This interface must be implemented by the calling activity. In the custom dialog is a EditText View and now I want to get the Text the user typed in there. Apr 28 14:33:32 This is the code I use to get the EditText View from the Fragment Apr 28 14:33:37 EditText edTrackName = (EditText)trackDialog.getView().findViewById(R.id.nameNewTrack); Apr 28 14:34:01 trackDialog is my DialogFragment class object Apr 28 14:34:06 Sorry for a maybe stupid question, but I've followed everything to set up my android app using http://developer.android.com/google/gcm/gs.html and have my app running..if i now make a notification and deliver it, will my app receive it? Apr 28 14:34:12 Why not pass the text in the callback Apr 28 14:34:41 SimonVT: Ehm, good question :) Apr 28 14:35:47 I think the problem is I am trying to access this dialog which is already destroyed when the interface method is called Apr 28 14:36:06 SimonVT: Good hint, thanks! Apr 28 14:36:15 SimonVT help me out dude. Apr 28 14:36:18 Then call the interface before the dialog is destroyed Apr 28 14:36:31 e.g. on the buttons click listener Apr 28 14:40:13 Simon ? Apr 28 14:44:16 <_wli> just wondering what event will be fired when an ImageView finish loading image from URL (called by .setImageUrl() ) Apr 28 14:44:44 I found out that the API key caused problems Apr 28 14:46:49 The image is loaded when the method returns Apr 28 14:47:18 <_wli> SimonVT: i m showing a loading mDialog when the image is loading Apr 28 14:47:29 <_wli> so i want to call the dismiss method when it finish loading... Apr 28 14:47:42 You probably don't want to use setImageUri then Apr 28 14:47:51 Since it blocks Apr 28 14:48:06 Sorry for a maybe stupid question, but I've followed everything to set up my android app using http://developer.android.com/google/gcm/gs.html and have my app running..if i now make a notification and deliver it, will my app receive it? Apr 28 14:48:10 <_wli> SimonVT, when should i use? Apr 28 14:49:56 hi, anyone has had problems with threads executing http requests being blocked? Apr 28 14:50:03 <_wli> SimonVT, found one. thanks Apr 28 14:50:13 blocked/deadlocked Apr 28 14:50:18 deleet: yes, with puma Apr 28 14:50:30 deleet: i was trying out puma earlier today and it locked up after a few requests Apr 28 14:50:47 when i ctrl-c'd it, it said soem error about blocking threads. try unicorn isntead Apr 28 14:51:06 I'm just using ektorp's couchdb interface Apr 28 14:51:18 i dunno what that is Apr 28 14:51:36 it basically makes a lot of http requests, one per thread Apr 28 14:51:49 on occasion, I have 10+ threads Apr 28 14:51:52 How is it possible to get a NullPointerException on just "ScrDim = new ScreenDimensions();"? Apr 28 14:52:26 It isn't Apr 28 14:58:13 any recommendations for setting up a user authentication system for an android app? I've heard oauth is a bitch to implmeent Apr 28 14:58:31 So how come I keep force closing on that? :P Apr 28 14:58:50 login through facebook/google/openid ...... it's oauth but works well Apr 28 14:59:17 I have a web view that I'm showing, and if there's an error, I want to handle that myself. Right now, the web view will show the generic "webpage not available" (or similar) message/page. My webviewclient's onReceivedError is not called. What can I do? Apr 28 14:59:18 The ScreenDimensions class is literally just 2 integers for Width and Height, yet I get a NUllPointerException Apr 28 14:59:20 kinda wanting to avoid 3rd party Apr 28 14:59:30 openid might work tho Apr 28 15:24:14 Sorry for a maybe stupid question, but I've followed everything to set up my android app using http://developer.android.com/google/gcm/gs.html and have my app running..if i now make a notification and deliver it, will my app receive it? Apr 28 15:41:53 I have a Activity where I want to display some values. Each Value should be presented in a rectangle area. I want this area to be clickable to open a new fragment and show additional things Apr 28 15:41:58 My question is Apr 28 15:43:13 what would you use to make this clickable areas? Clickable TextViews or Buttons. Buttons are already clickable but can they be used to display data that is constantly changing. Apr 28 15:43:26 crapp: yes, just button.setText Apr 28 15:44:00 crapp: so when your data changes, change the text in the button(s) Apr 28 15:44:02 WhereIsMySpoon: And this is not considered bad style or something like this. No Idea maybe this creates some strange overhead :) Apr 28 15:44:20 crapp: all Views are made to be clickable. TextView is just another View Apr 28 15:44:39 no way Apr 28 15:44:39 crapp: not as far as I've seen, I actually haev an app for my final year project in which i use buttons to display data so that the user can click on them and get more data about that thing Apr 28 15:44:53 i coudl be wrong tho Apr 28 15:44:57 seems to work fine for me Apr 28 15:44:58 I thought TextView was just some Text Apr 28 15:45:22 Hey guys, question about Pinch To Zoom. Is it most likely in apps/games that they use a webview to enable pinch to zoom? Or do they really implement all their own pinch to zoom e.g. by rescaling all drawn objects? Apr 28 15:45:41 I doubt games use a webview Apr 28 15:45:44 hehe Apr 28 15:45:55 zynga would like to have a word with you Apr 28 15:46:45 SimonVT: do you have any suggestion or terms I could google regarding a pinch to zoom feature on a table layout, with lots of cells? Apr 28 15:47:11 http://stackoverflow.com/questions/6085420/how-can-i-enable-pinching-and-stretching-on-my-apps-ui Apr 28 15:47:18 Cause any pinch to zoom example I found so far is regarding something drawn Apr 28 15:47:19 http://stackoverflow.com/questions/5375817/android-pinch-zoom Apr 28 15:47:53 better yet, I ll check those, thanks :) Apr 28 15:48:00 ray122: google is your friend :) Apr 28 15:48:14 but np Apr 28 15:48:22 Yeah its just that so far all examples I ve seen concern about stuff like zooming images etc. Apr 28 15:48:29 I ll check those you gave me :) Apr 28 15:48:35 ray122: i googled "table layout pinch zoom" :) Apr 28 15:48:42 improve teh google fu! :) Apr 28 15:49:11 So, I saw that in the NDK, specifically arpa/nameser.h quite a few declarations are missing Apr 28 15:49:30 why are they gone, because some C projects depend on these declarations usually found there Apr 28 15:49:45 add them yourself Apr 28 15:50:37 Is there something that is different with DNS resolving with Android? Apr 28 15:50:45 that doesnt require them declarations? Apr 28 15:54:20 Sorry for a maybe stupid question, but I've followed everything to set up my android app using http://developer.android.com/google/gcm/gs.html and have my app running..if i now make a notification and deliver it, will my app receive it? Apr 28 15:55:03 Hi! Anybody knows of the Android Bluetooth Low Energy Technology (BLE) support story? Where can I find more information on the BLE support and development "story"? Apr 28 15:55:26 WhereIsMySpoon: I give buttons a try, thank you! Apr 28 15:59:46 what kind of DNS Resolver does Android use? Apr 28 16:16:26 is there any official or large android mailing list? Apr 28 16:16:41 I need to ask how to gain access to this android DNS resolver Apr 28 16:16:47 Without it, porting PHP doesn't look easy Apr 28 16:17:03 tried SO ? Apr 28 16:17:49 http://s.android.com/community/index.html Apr 28 16:19:24 SimonVT:thanks will check it out Apr 28 16:19:46 I've seen other people have compiled PHP for Android, but they did not release the source code Apr 28 16:19:53 so I couldn't see the changes they must have done Apr 28 16:20:25 seems like a perverse thing to want to do, but each to their own... Apr 28 16:23:05 wait, you're trying to port PHP to android? Apr 28 16:23:06 WHY? Apr 28 16:23:29 please let it be just proof of concept Apr 28 16:24:59 some people just can't let go Apr 28 16:25:51 Seriously... Do we really want more web tech on android? Apr 28 16:26:05 the one that's available barely works as it is Apr 28 16:35:23 tnzr:If Symbian has an AMP stack, so will Android Apr 28 16:35:56 What are you trying to do, besides porting PHP? Apr 28 16:36:12 Porting MySQL then either Apache or lighthttpd Apr 28 16:36:18 cool Apr 28 16:36:20 There are already ports of this Apr 28 16:36:25 but they arent open source, shame on them Apr 28 16:36:26 you can run phpmyadmin Apr 28 16:36:33 that would make sense! Apr 28 16:36:40 Sorry for a maybe stupid question, but I've followed everything to set up my android app using http://developer.android.com/google/gcm/gs.html and have my app running..if i now make a notification and deliver it, will my app receive it? Apr 28 16:36:56 KSWEB is the first Apr 28 16:37:03 and the second is http://hex.ro/wp/blog/php-and-lighttpd-for-android/ Apr 28 16:37:05 But why? I'm afraid your thought process went like "I need to solve X, I did X before in PHP, oh right, I'm gonna port PHP to Android!" Apr 28 16:37:27 I just want to do it, not as a proof of concept Apr 28 16:37:29 fully usable Apr 28 16:37:41 kakazza: let this man do the work :) ton's of other "web specialists" will gain from his stuff ;) Apr 28 16:37:43 We already have GCC for Android, Perl Apr 28 16:38:04 I get that. But are you just doing it for the heck of it or is that for an App? Apr 28 16:38:32 Not for a particular App, but it will promote the development of applications directly on Android based devices, like say Tablets Apr 28 16:38:42 i developed great dev app (Developer Checkout Manager DCM for Google Checkout) and i want to promote it to devs, is there a good place where i can reach a lot of devs? Apr 28 16:38:47 yeah coding on tablets makes even more sense Apr 28 16:39:06 Personally, I coded my first Android application directly on my Phone Apr 28 16:39:17 wasn't pleasant, but I still did it. Apr 28 16:39:19 diki: We really need more of thart Apr 28 16:39:19 i love the { } and \ and of course ' an []| Apr 28 16:39:24 My condolences/ Apr 28 16:39:43 Too bad i'm too noobish to contribute Apr 28 16:39:45 But ok, as long as you open source it. Apr 28 16:39:50 yes we need dosbox and in that we need qemu Apr 28 16:39:58 i'd love a java compiler on my tablet Apr 28 16:39:58 kakazza:Wouldn't have it any other way Apr 28 16:40:05 unfortunately, other people keep it closed source Apr 28 16:40:27 Hi, my app works in my emulator (Android 4.x), but crashes with a NoSuchMethod error on a 2.3.6 test device Apr 28 16:40:29 error http://pastebin.com/NpnMs0rh Apr 28 16:40:57 I'm using ABS, and suspect I missed an import somewhere that is breaking it Apr 28 16:41:16 I am pretty sure if that either MySQL's or Apache's license forbids people to close the source of their changes Apr 28 16:41:36 monsti: qemu/dosbox is already there in the play store Apr 28 16:41:41 ..or lighttpd's license Apr 28 16:42:01 diki: I'm 100% sure that Apache doesn't prevent closed-source forks... and about 95% sure that mysql is GPL, so it does Apr 28 16:42:30 belgianguy: Post your code Apr 28 16:42:43 http://pastebin.com/tfku7ZZ0 is saying that wl.release() is not always reached - should I worry ? Apr 28 16:43:08 Leeds:Then this guy has a lot to answer for https://play.google.com/store/apps/details?id=ru.kslabs.ksweb Apr 28 16:43:20 his application is free for 5 days, after which you need to pay for it Apr 28 16:43:28 it uses MySQL and is closed source Apr 28 16:43:50 The Apache License does not forbid closed source applications Apr 28 16:44:00 https://play.google.com/store/apps/details?id=com.dev.checkout.manager Apr 28 16:44:04 damn sorry! Apr 28 16:44:11 wrong chan Apr 28 16:44:54 diki: you can try reporting him, if you want to be slightly dickish about it :) but actually, only the copyright owner can make a formal complaint Apr 28 16:45:22 I mean, what is wrong with people not contributing this information.. Apr 28 16:45:34 It saves other people a lot of time trying to patch huge source code Apr 28 16:45:34 diki: actually, it's more likely to get pulled for selling unlock keys outside the play store... Apr 28 16:45:45 what's wrong is that it doesn't make money, duh Apr 28 16:46:27 diki: just ask the developer? Would be interesting what he will answer Apr 28 16:46:51 kakazza: this is the line where it claims it fails: Spinner spnTitles = new Spinner(getSherlockActivity(), Spinner.MODE_DIALOG); Apr 28 16:47:11 this is inside an OnCreateView of a SherlockFragment Apr 28 16:47:34 Leeds:Well, he does. His application is on a trial period for 5 days Apr 28 16:47:40 and I'm just using the default Spinner class Apr 28 16:47:44 after that, I must purchase stuff that are open source Apr 28 16:47:52 generally I don't understand why people are using the apache license or other bsd licenses to distribute their work. So many companies will just use it without any notice where they found the code they are using Apr 28 16:48:02 belgianguy: https://developer.android.com/reference/android/widget/Spinner.html#Spinner(android.content.Context,%20int) Apr 28 16:48:07 for the android app shop gpl is no problem so use it Apr 28 16:48:51 crapp: imagine that people don't care about the concerns you mentioned, and might prefer honour system outside of "gun to the head" approach Apr 28 16:49:04 diki: I mean... you asked what was wrong with people contributing their source - what's wrong is that people don't make as much money Apr 28 16:49:10 somebody aound into osx kext development? Apr 28 16:49:14 i have a KP and try to get a callstack Apr 28 16:49:50 monsti: looks like wrong channel to me Apr 28 16:50:17 thanks SimonVT, that's the bug Apr 28 16:50:30 p_l|omoikane: what kind of honor are talking about? the companies will not honor your work Apr 28 16:52:20 In the mean time, I will check out if uClibC was used in other PHP for Android ports or Bionic libc Apr 28 16:55:41 Interesting Apr 28 16:56:04 One PHP port uses uClibC, the one that is paid uses...glibc??? Apr 28 16:58:36 diki: verbose--; Apr 28 16:58:38 So far a quick hex search tells me the paid version is using BIND-8.2.3-T5B Apr 28 16:58:46 a DNS resolver of sorts Apr 28 16:59:36 So essentially, neither use Android's BSD DNS resolver Apr 28 16:59:48 hey reading about sharedpreferences never used it.. am i to udnerstand that you can add a limitless amount of data into preferences? Apr 28 16:59:53 "of sorts". Isn't tha the market leader? Apr 28 17:00:47 crapp: the companies still employ people. And believe me, it's often easier to cooperate with open source team working under nice license, than deal with the crap necessary to fork it in-house Apr 28 17:01:13 crapp: and there's more to licensing than you might think Apr 28 17:02:48 Hi guys. I would like to make a gallery of animated gifs. Apr 28 17:02:57 P3nnyw1se: "small amounts of data" Apr 28 17:03:09 What are you trying to save? Apr 28 17:03:09 <_wli> hey guys. i m still new to Android... i am going to wirte a logout class, it is just a class with a helper function to handle the logout Apr 28 17:03:21 WhereIsMySpoon: thanks for giving me those links earlier, found exactly what I needed :) Apr 28 17:03:22 <_wli> do I have to call it LogoutTask.java? Apr 28 17:03:27 <_wli> can i call it anything I like? Apr 28 17:03:40 ray122: np Apr 28 17:03:48 so I was thinking about using a horizontal scroll view to get a carousel, then each card of the carousel would be an individual webview Apr 28 17:03:55 Sorry for a maybe stupid question, but I've followed everything to set up my android app using http://developer.android.com/google/gcm/gs.html and have my app running..if i now make a notification and deliver it, will my app receive it? Apr 28 17:04:30 _wli: Anything you like. Apr 28 17:04:33 http://pastebin.com/tfku7ZZ0 is saying that wl.release() is not always reached - should I worry ? Apr 28 17:04:38 <_wli> thanks kakazza Apr 28 17:05:05 kakazza I'm just trying to save a bunch of strings.. 'name, adresse, phonenumber, e-mail' .. the purpose is to have this auto inserted into an orderform when a user wants to order something Apr 28 17:07:03 That would count as a small amount of data. But you're not trying to save like 500 datasets in there, right? Apr 28 17:08:02 no no.. 10 strings at max.. my question about 'limitless' was just cause I couldn't seem to find anything in it blocking you Apr 28 17:08:05 from entering crazy amounts Apr 28 17:08:56 is it possible to set an inputstream to a webview? Apr 28 17:09:06 P3nnyw1se: is this going to be like... collect data on some screen, move through to some other screen and recall data? Apr 28 17:10:01 inb4 keep a reference Apr 28 17:10:27 i was going to suggest putting it in a database but ok Apr 28 17:10:42 ;) Apr 28 17:10:48 :) Apr 28 17:10:54 no smiling. Apr 28 17:10:57 :| Apr 28 17:11:00 :\ Apr 28 17:11:05 tnzr the purpose is to save this as template suggestion when it comes to contact information Apr 28 17:11:15 P3nnyw1se: android:textHint ? Apr 28 17:11:27 err hintText? Apr 28 17:11:41 what would you have me write there? the suggestion of his name ? Apr 28 17:11:44 hit! Apr 28 17:11:50 sorry, android:hint Apr 28 17:12:03 well is the suggestion personalized for the user? Apr 28 17:12:07 and so how do I know when I make that hint if the app user is named Morten or Peter ? Apr 28 17:12:13 yes :) Apr 28 17:12:15 oh I see Apr 28 17:12:29 its to have him avoid having to enter his name and andresse Apr 28 17:12:31 each time he orders something Apr 28 17:12:58 oh right, yeah.. I'd suggest just putting it in the database (assuming you are getting it from the user on some previous screen) Apr 28 17:13:32 I am.. but why would you not use the sharedpreferences? just seems like my example here is close to the original reason why sharedPreferences was made in the first place Apr 28 17:14:05 I generally use shared prefs to store state info when backgrounding or during screen rotation, etc Apr 28 17:14:15 oO Apr 28 17:14:18 That's just wrong Apr 28 17:14:25 how's that Apr 28 17:14:27 it's easy ;) Apr 28 17:14:58 sharedPreferences are meant for ... prefrences like.. the background color the user wants right ? Apr 28 17:14:59 State isn't meant to survive e.g. a reboot Apr 28 17:15:00 stuff like that Apr 28 17:15:01 SharedPreferences do Apr 28 17:15:12 oh sorry I was thinking onSaveInstanceState Apr 28 17:15:20 pretend i'm not here Apr 28 17:15:28 Good :) Apr 28 17:15:39 hey no smiling Apr 28 17:16:25 SimonVT if I wanted to store multiple textfiles.. could be 50+ containing each of them a string Name and 20-30 ints.. Apr 28 17:16:30 where would you store that ? Apr 28 17:17:07 What do I need to add to my code so that my android 2.x style options/settings menu shows up as the three dots in the action bar on android 4.x style devices? Apr 28 17:17:20 https://developer.android.com/guide/topics/data/data-storage.html#pref Apr 28 17:17:21 "Shared preferences are not strictly for saving "user preferences," such as what ringtone a user has chosen." Apr 28 17:17:34 2.x devices don't have an overflow button Apr 28 17:17:57 oh, eh.. Apr 28 17:18:10 dang it! Apr 28 17:18:10 myWebView.loadDataWithBaseURL("file:///android_asset/bg.gif", "", "text/html", "utf-8", null); Apr 28 17:18:16 My gif wont move! Apr 28 17:18:16 Why are you trying to show an 2.x style option menu on 4.x devices? Apr 28 17:18:25 kakazza is sharedPreference used cross apps.. meaning can I create collisions by storing stuff in sharedPreferences ? .. Apr 28 17:18:36 I want to store like 10 strings going name '' .. Age '' e.g Apr 28 17:18:47 why can't android be more friendly towards animated gifs! Apr 28 17:19:38 SimonVT: Well, the code is currently written for 2.x devices. What is proper? If I wrote 4.x style menu code then it will be totally unsupported on older versions of android yes? Apr 28 17:19:43 it is.. its very open about not wanting to use it Apr 28 17:20:00 The "menu code" is the same for 2.x and 4.x Apr 28 17:20:53 letting the user dynamically swap between themes.. like Holo dark and just holo .. is that doable.. and if it is, is it stupid ? :D Apr 28 17:21:32 SimonVT: I will re-read this: http://developer.android.com/guide/topics/ui/menus.html and come back if I have questions. I think I don't fully understand that problem quite yet. Apr 28 17:21:55 <_wli> i m playing around with SharedPreferences, is there anywhere i can see the content of the setting files in Eclipse? Apr 28 17:23:44 <_wli> also i saw some apps (like instagram) they can create a folder in Gallery to store their photos Apr 28 17:24:07 Loading a URL with webview.loadURL renders differently from loadData(htmlDataAsString). Notably, there are no proper line breaks and stuff. Why? Apr 28 17:24:12 <_wli> can someone point me to the right direction? i did a few searches and they all say it's not possible Apr 28 17:24:43 SimonVT: is there any standard way to indicate an affordance for a sliding menu? Apr 28 17:25:21 <_wli> finally found it: http://stackoverflow.com/questions/7852791/specifying-a-gallery-folder Apr 28 17:28:50 I'm having some trouble getting my Google ads to work Apr 28 17:28:52 how would you guys handle changing theme dynamically ? .. swap theme and then rebuild activity ? Apr 28 17:29:17 right now I'm using this code: y ? .. swap theme and then rebuild activity ? Apr 28 17:29:23 this code: http://pastebin.com/N0Ty4qwq Apr 28 17:29:47 but it wont give me the ad Apr 28 17:30:23 Does anyone know how I can add a animated gif from assets into a webview the correct way? Apr 28 17:30:33 Wuppy I want to let the user change e.g. from holo dark.. to holo light.. dynamically.. and its not supported ofc, so my idea was to change it to holo light from holo dark and then restart the app .. so the settings are forced through Apr 28 17:30:46 <_wli> is it a good pratice to save login credentials inside SharedPreferences? Apr 28 17:31:17 With that code I'm getting onFailedToReceiveAd(Invalid Ad request.) Apr 28 17:31:20 how would I fix that? Apr 28 17:31:49 <_wli> is it secure enough for a simple image submit application sending photos of documents to server? Apr 28 17:36:27 What is a correct ad unit id>? Apr 28 17:38:15 nobody? Apr 28 17:38:30 I'm so angry! Apr 28 17:38:37 why dont my gifs move in a webview! Apr 28 17:38:38 me too... Apr 28 17:38:51 is there really nobody on here with working ads? Apr 28 17:39:05 get outa here with your ads Apr 28 17:39:10 make apps for love not money Apr 28 17:39:49 g00s: The up button Apr 28 17:40:39 wtf is the god damn ad unit id? Apr 28 17:41:54 Probably some unique identifiers for the unit of an ad Apr 28 17:42:00 you're welcome. Apr 28 17:59:18 SimonVT: thats the chevron pointing left? is that why they say to use this at the root / top level activity, because its kinda meta / up ? Apr 28 18:02:25 yeah Apr 28 18:02:53 thanks Apr 28 18:12:54 What is the different between Country and Language in dev console? For the language it says country in paranthesis Apr 28 18:14:13 Country is where they live, language is their device locale Apr 28 18:15:06 What does Norwegian (Denmark) mean for language? :P Apr 28 18:15:43 It probably means it will be in norwegian, but use danish currency, number delimiters (10,000), ... Apr 28 18:15:57 hehe Apr 28 18:16:05 I see Apr 28 18:16:49 and a last thing.. I saw an installation from Indonesia that is now completely gone. How can that be? Apr 28 18:17:02 Maybe he uninstalled Apr 28 18:17:06 there is none under total installations Apr 28 18:17:29 shouldnt total user installs show even the uninstalled ones? Apr 28 18:17:40 yeah Apr 28 18:17:49 odd Apr 28 18:17:51 Grouped under others? Apr 28 18:18:10 nah, don't have other category Apr 28 18:18:37 oO Apr 28 18:18:47 okay so i've given up on having gifs in my assets Apr 28 18:18:56 guys what preferences would you wanna be able to change in an app that allows you to browse through several hundreds of items, adding them to a basket and order Apr 28 18:18:57 whats the best way to animate a bunch of still images Apr 28 18:19:11 using some sort of android thingy, what is that thingy? Apr 28 18:19:33 Maybe a bug or something.. an app also went from 6 to 8 ratings after 24 hours and back to 6 ratings the next day. Im kinda doubting that 2 ratings were deleted Apr 28 18:21:18 whats the "right" way to parse a sqlite db file with two columns and probably 500 rows into android? Apr 28 18:22:24 You can copy it to the database directory and use it like any other sqlite db Apr 28 18:23:27 the app only needs to read from it so I was thinking to have the db file in assets dir Apr 28 18:23:53 its just a bunch of strings linked up with names.. and for future versions of the app I will add more names and strings Apr 28 18:24:10 so I was thinking a sqlite db would be nice for that purpose Apr 28 18:24:37 sounds like a good solution? Apr 28 18:26:47 SimonVT: would it be considered bad form to have the sliding menu associated with a top level activity that was a ViewPager and already used swiped gestures - so that the only way to get to it was the up arrow ? Apr 28 18:27:52 I am using an AudioRecord to sample at 44.1khz. However, through some simple experimentation it appears that I'm achieving ~88.2khz! (twice the sample rate!) Is this possible? What is the maximum sample rate of the microphone? Apr 28 18:28:24 The sliding menu will intercept touch events before the viewpager, so it'll always be possible to open it by swiping Apr 28 18:29:24 oh, so i guess that would make the ViewPager inoperable? or you have to go to the left most page and then "keep going" ? (seems bad idea) Apr 28 18:30:45 You can just use an edge swipe to open it Apr 28 18:31:12 hm, k. not familiar - i'll have to read up on that. thanks Apr 28 18:32:25 It would be probably not too good question. Apr 28 18:33:47 But what actually happens when when I import packages. Such as import android.os.Bundle or import android.content.Intent ... Apr 28 18:34:01 nothing Apr 28 18:34:15 well, nothing "in code" Apr 28 18:34:40 it just "imports" the namespaces for the compiler to know that Intent is from android.content Apr 28 18:35:38 p_l|omoikane: omoikane? Apr 28 18:35:52 my host at work Apr 28 18:36:00 It's just so you don't have to type android.content.Intent every time you want to use an intent Apr 28 18:36:14 the computer that normally hosts my irssi session burned, apparently Apr 28 18:36:25 i love bbq Apr 28 18:36:30 maybe irrsi did it Apr 28 18:36:42 can I somehow just download android source (tarball etc) with given tag instead of getting the entire history of source with "repo sync"? Apr 28 18:37:26 g00s: no, the owner said something about static electricity Apr 28 18:37:30 mystiiq: nope. heh Apr 28 18:37:57 JesusFreke: really? hmm. the repos are getting fing big. and git sucks ;) Apr 28 18:38:13 yeah, they definitely aren't getting any smaller :) Apr 28 18:38:32 actually you can, but I don't remember the exact git command Apr 28 18:38:59 hmm Apr 28 18:39:26 git needs something like 'svn export' Apr 28 18:39:46 g00s: it looks like git archive is similar Apr 28 18:39:52 (just reading up on it :p) Apr 28 18:40:10 somebody over stackoverflow mentioned "repo init -u git:// --depth=1; repo sync" Apr 28 18:40:12 I'll try Apr 28 18:40:56 maybe thats what set p_l|omoikane 's computer on fire; a big repo sync Apr 28 18:41:05 sorry irrsi Apr 28 18:41:25 mystiiq: I'm not sure what --depth is/does. but you can use -c to limit it to the current branch (instead of grabbing all branches) Apr 28 18:41:37 <_wli> i m trying to upload an apk file to play store in ADT Apr 28 18:41:43 -c for repo sync, I mean Apr 28 18:41:44 <_wli> i have exported a APK file Apr 28 18:41:48 <_wli> do i have to zip it? Apr 28 18:42:10 Napalm|afk Using PolarSSL and NDK, I was able to encrypt a 2.2MB file using AES-256 in 92ms on a Samsung S3. Apr 28 18:42:11 mystiiq: huh, --depth might be better Apr 28 18:42:14 worked great Apr 28 18:42:25 git clone --depth - learn a new one every day :) Apr 28 18:42:37 JesusFreke: indeed Apr 28 18:43:25 <_wli> strange. it said something about Zip aligned... but I upload the same file second time and it shows somethign else... about keys Apr 28 18:44:28 g00s: nah, the person whose mobo's went out can just ssh to the main repo ;) Apr 28 18:44:47 hey rburton- Apr 28 18:44:59 Hi i'm looking for a way to get my device's width and height is there a easy way to retrieve this data ? Apr 28 18:45:16 hey Apr 28 18:45:40 With a tape measure Apr 28 18:45:49 rburton-: fell asleep last night, sorry i didnt get back to you Apr 28 18:45:55 its okay Apr 28 18:46:03 How do I give my app an action bar? Apr 28 18:46:12 <_wli> what can i do if i m trying to update an app in app store but i do not have the previous key? Apr 28 18:46:24 Upload a new app Apr 28 18:47:04 <_wli> SimonVT: so it will be a completely new app ? Apr 28 18:47:12 Yep Apr 28 18:47:36 <_wli> sigh... Apr 28 18:48:57 hello everybody Apr 28 18:49:23 losing your key and shutting down the old app & uploading a new one is like shutting a restaurant down and letting everybody know the kitchen got flooded with effluent Apr 28 18:49:23 <_wli> g00s, yeah Apr 28 18:49:36 <_wli> our original developer went into hidding and i spent the last 3 days learning and finishing off the project Apr 28 18:49:43 My minSDKVersion is 8 and my targetSDKVersion is 15 but there is no action bar on my activities. Why not? Apr 28 18:49:43 i have a small doubt. My listview getChildAt() returns null while i scroll down and click on one item Apr 28 18:49:46 <_wli> only to find out i don't have the key to publish the update Apr 28 18:50:21 sunny_slls: doubters gonna doubt ! Apr 28 18:50:28 :) Apr 28 18:50:36 hey g00s Apr 28 18:50:55 its better to have faith :D Apr 28 18:51:11 <_wli> SimonVT, g00s: will it take longer for google to approve a new app vs an update? Apr 28 18:51:26 actually i am trying to get the LinearLayout view object on click based on the position Apr 28 18:51:27 final LinearLayout linearlayout = (LinearLayout) adapterView.getChildAt(position).findViewById(R.id.mainmenuLayout); Apr 28 18:51:41 _wli: it shouldn't Apr 28 18:52:03 They don't approve apps Apr 28 18:52:22 well, they kinda do … as long as it doesn't fail the malware thing Apr 28 18:52:26 but adapterView.getChildAt(position) returns null. It happens when i scroll down Apr 28 18:52:51 That all happens automatically Apr 28 18:52:58 <_wli> ok thanks. Apr 28 18:53:06 sunny_slls: You don't want to use getChildAt with adapterviews Apr 28 18:53:23 Since only the visible items are actually added to the adapterview Apr 28 18:53:29 ok Apr 28 18:53:47 Also, you don't want to directly manipulate views with adapterviews Apr 28 18:53:54 Change your adapter data, call notifydatasetchanged Apr 28 18:54:15 no. i don't wanna refresh the data Apr 28 18:54:52 Then why do you need the view Apr 28 18:55:00 <_wli> SimonVT g00s: can i delete apps? i don't see the option Apr 28 18:55:16 actually while creating the adapter i had added tags to linearlayout Apr 28 18:55:29 i wan't to retrieve those tags based on the position Apr 28 18:55:35 and work according to that Apr 28 18:55:51 something like this Apr 28 18:55:52 final LinearLayout linearlayout = (LinearLayout) adapterView.getChildAt(position).findViewById(R.id.mainmenuLayout); Apr 28 18:55:52 final MainMenuEnum tag = (MainMenuEnum) linearlayout.getTag(); Apr 28 18:55:52 switch (tag) { Apr 28 18:56:13 You get the view in the item click listener Apr 28 18:56:26 Call getTag on that Apr 28 18:58:06 Guys quick question.. I have a scrollview, and whenever the content size changes, it doesnt adjust (so if the height increases, you might only scroll as much as you could before) - now I ve seen different approaches, but they just won't work.. e.g. this one http://stackoverflow.com/questions/7089845/how-to-resize-a-scrollview - I always end up in not being able to scroll anymore at all Apr 28 18:58:11 I'm having the exact same problem as mentioned on this SO post: http://stackoverflow.com/questions/10852711/getdrawable-returning-null?rq=1 Apr 28 18:58:27 after I set new LayoutParams for my ScrollView, i m not able to scroll anymore Apr 28 18:58:36 My getResources().getDrawable() returns null, even though my resource is recognized my Eclipse. Apr 28 18:59:07 (Sadly that SO post doesn't have an answer/solution) Apr 28 18:59:09 SimonVT, but that view contains a multiple views Apr 28 18:59:22 SimonVT, how to get a specific view among that ? Apr 28 18:59:32 findViewByid Apr 28 19:00:16 What things should I check to figure out why getDrawable(R.drawable.something) would be null? Apr 28 19:01:14 For starters - 1) I am calling getResources() from within an Activity, and my something.png is inside res/drawable folder Apr 28 19:01:40 (In fact, I'm calling it from within a class that extends MapActivity) Apr 28 19:01:45 thanks SimonVT its working Apr 28 19:03:40 Could someone please point me in the right direction? I'm new to Android development - and this is the first time I'm trying a Map overlay. Apr 28 19:04:11 I have most of the stuff in place, I think - if I can just get past the Null from getDrawable() Apr 28 19:13:02 Please tell me if u think my question isn't clear, or doesn't show I've done some research. I would accept that as good feedback. :-/ Apr 28 19:13:06 How can I get the emulator to not have a "physical" menu button? Is this possible? Apr 28 19:13:43 hi, i've got an app that i submitted to the store on friday, it's still not in the store. what could be a reason for that? http://i.imgur.com/jEn4Vvi.png Apr 28 19:13:49 hello there guys, i built up a layout with one TextView, just by using OnTouchListener with the OnTouch Methode i try to change text of textView on "Foo". No matter where i click to, the textView wont change its text. http://pastebin.com/QVzBxLu2 Apr 28 19:16:30 Guys, does anyone know how to resize the scroll range of a scrollview when its content changes? Apr 28 19:18:20 as changing layoutparams does not work for me.. if I do I cant scroll at all anymore Apr 28 19:19:01 Hi there, I have some chars like áó that I get from a server and I use them to populate a list, but in the list they are displayed with incorrect characters Apr 28 19:25:09 yeah send them in utf-8 Apr 28 19:25:16 <_wli> last question for the night. i have compiled the app as apk and just published it on app store. is it possible for me to send the same apk file to a few people so they can start using it early? Apr 28 19:25:50 monsti: I think they are in UTF8 Apr 28 19:26:18 i don't think so Apr 28 19:26:24 or all display on an android GUI is utf8 even if you dont "configure" it? Apr 28 19:26:30 is the "default" Apr 28 19:26:32 ? Apr 28 19:29:49 @ryoga86: That's not the right way to set an OnTouchListener. See this answer: http://stackoverflow.com/questions/5135740/how-can-i-implement-ontouch-function-android Apr 28 19:30:36 Sorry, I meant ryoga86: ^^ Apr 28 19:30:40 p_l|omoikane: Hmm. How my "compiled" code call the devices appropriate libraries ? Apr 28 19:34:04 bluesm: it's handled by the linker. "import" statements just serve to reduce the amount of typing Apr 28 19:37:40 p_l|omoikane: Ok. Is there anywhere good resource about "guts" of android design ? Apr 28 19:43:17 guys, I rescale content in a scrollview. afterwards I cannot scroll rescaled content but just as much as I could scroll before - does anyone have a clue how to workaround this? Apr 28 19:46:56 hi people :) Apr 28 19:50:33 Sorry for a maybe stupid question, but I've followed everything to set up my android app using http://developer.android.com/google/gcm/gs.html and have my app running..if i now make a notification and deliver it, will my app receive it? Apr 28 19:50:55 Did you try..? Apr 28 19:51:15 bluesm: guts in what sense? Apr 28 19:51:37 bluesm: a lot will be explained by checking out how JVM works, then you can use the docs about how DVM differs from it Apr 28 19:51:55 yaraju: thx a lo, ill gonna try Apr 28 19:55:19 Looks like Bionic is very limited indeed. Apr 28 20:03:07 ryoga86: Np! All the best Apr 28 20:03:52 Anyone around that knows how to dig deeper into getDrawable(R.id.something) returning null? Apr 28 20:04:33 I tried to inspect the res returned from getResources() but didn't know where to look to search for my drawable, and what to do next if I couldn't find it anywhere Apr 28 20:06:26 hey guys I installed my root certificate on the phone, but the browser still warns of an invalid certificate Apr 28 20:06:29 is that normal? Apr 28 20:06:52 Missed the question. Mind repeating? Apr 28 20:07:58 I'm running into the exact same problem reported in this SO question: http://stackoverflow.com/questions/10852711/getdrawable-returning-null?rq=1 Apr 28 20:08:05 But there's no answer there. Apr 28 20:08:13 tdignan, talking to me? Apr 28 20:08:21 y Apr 28 20:08:24 Basically, when I run getResources().getDrawable(R.id.something), I get null Apr 28 20:08:55 Oh, I'll wait. Apr 28 20:09:04 That SO post says "Found what was the problem, it seems my images got corrupted somehow, thats why getDrawable was returning null" Apr 28 20:09:04 not to be read as why, but as yes. Apr 28 20:09:11 tdignan, I installed a root certificate to my phone using Settings-->Security->install certificates from sdcard Apr 28 20:09:24 how did that pan out Apr 28 20:09:38 but when I open the browser it still says the website I'm visiting has an invalid certificate Apr 28 20:09:50 isn't it supposed to accept it since I put it in the trusted certificates? Apr 28 20:10:14 faenil: try verifying the cert externally with openssl Apr 28 20:10:17 make sure it works Apr 28 20:10:22 SimonVT: That's odd. I don't see that reply anywhere in the SO post when I view it. Hmm. Apr 28 20:10:37 tdignan, I'm already using it on a phone with another OS Apr 28 20:10:39 Anyhow, I guess I should check if my images are corrupted Apr 28 20:10:51 hm, okay Apr 28 20:11:45 though since I'm using an android port for a Nokia phone (the n950) I wanted to know if there was any other way to install the certificate, as I have access to the filesystem Apr 28 20:11:59 yaraju: simple check would be using it in an imageview Apr 28 20:12:15 faenil, i've only dealt with certs at the java level Apr 28 20:12:16 f2prateek_, SimonVT: That is indeed the case. :-/ Apr 28 20:12:19 Thanks! Apr 28 20:12:27 tdignan, I see Apr 28 20:12:33 certs on android are kind of painful in my experience. Apr 28 20:12:39 tdignan, oh :/ Apr 28 20:12:47 tdignan, well thanks anyway :) Apr 28 20:12:53 I read the instructions you must have followed Apr 28 20:12:59 seems like what you did should have just worked. Apr 28 20:13:12 http://support.google.com/android/bin/answer.py?hl=en&answer=168466#1078203 Apr 28 20:13:59 after you install it, is it deleting the cert from the sdcard as the instructions say it should Apr 28 20:14:31 yep Apr 28 20:15:19 honestly I wouldn't be shocked if there were bugs on b.android.com related to this stuff. I've had to write code to blindly accept certs before due to the APIs not working when I passed the cert in. Apr 28 20:19:27 tdignan, lol Apr 28 20:19:46 code to accept a cert on one device, sometimes wont work on another Apr 28 20:19:54 sometimes devices have bundled certs, that others dont Apr 28 20:19:59 only one safe strategy here. Apr 28 20:20:18 oh, you have to hunt down an older version of bouncycastle that is hard to find, as well Apr 28 20:20:37 f2prateek_, SimonVT: I "fixed" the "corrupt" files by copying them again, and making sure they open with Image Viewer. Sadly, I still get the null from getDrawable() :( Is there a cache I should clean out that doesn't go away with just a Project -> Clean ? Apr 28 20:26:55 Hello guys Apr 28 20:27:48 I am reading a tutorial to start learning about android development, and it tells me I have to create a virtual device - but this tutorial is quite old - my question is: are these things automatic in latest ADT (downloaded some mins ago) ? Apr 28 20:28:20 Trying to make a scale in/out animation, but for some reason, the rotate finishes before the scale animation repeats - any ideas? http://pastebin.com/HpEdJxn9 Apr 28 20:28:55 I feel like the rotation should take 1000ms, scaling up should be 500ms, scaling down should be 500ms. But it's not. Apr 28 20:29:35 duration just seems to be ignored. Apr 28 20:29:36 f2prateek_, SimonVT: Figured it out. The problem was I had duplicated the files for my drawable-* directories - in my attempts to fix the problem originally. Apr 28 20:29:52 Once I got rid of those corrupt copies, the activty runs Apr 28 20:30:47 I ask this because it seems that latest ADT has already eclipse incorporated - shall I then set it or make a virtual machine? thanks for the help Apr 28 20:32:24 the animation seems the duration parameter is ignored, interesting. Apr 28 20:33:49 please any help :-( Apr 28 20:34:27 also a good reference to start learning/coding would be great Apr 28 20:35:06 otisZart, when you download the SDK, the SDK manager will gather images for you. Apr 28 20:35:29 You'll want something like the Intel x86 Atom System Image. Apr 28 20:35:48 Then the AVD manager will let you create a virtual device. Apr 28 20:37:42 ops timed out Apr 28 20:38:11 mdkess AVD? I Have downloaded everything - sdks, docs, etc Apr 28 20:38:26 I have now opened the custom-eclipse for android, called ADT Apr 28 20:38:43 So after you installed the sdk, there should be two executables in the directory, the SDK manager and the AVD manager (AVD: Android Virtual Device). Apr 28 20:39:10 http://developer.android.com/sdk/installing/bundle.html Apr 28 20:40:32 I found it! Apr 28 20:40:37 it is directly in my custom-eclipse Apr 28 20:40:55 window-> android virtual device manager Apr 28 20:41:31 there are several device-type .. which one should I choose to start learning? Apr 28 20:46:50 Hey Apr 28 20:51:17 why does the wiki for google wallet immply google wallet is only for mobile phones? http://en.wikipedia.org/wiki/Google_Wallet Apr 28 20:58:04 hi Apr 28 20:58:15 is there any example about drag and drop Apr 28 20:59:11 how can I catch the drop event for a specific location Apr 28 21:00:19 is there any android developer online here? Apr 28 21:02:30 musaulker: you'll generally have better luck if you actually ask a specific question, rather than asking if anyone is around :) Apr 28 21:02:32 musaulker, there are 389. Apr 28 21:03:11 Amadiro :) nice :) world be a better place with 389 android developer :) Apr 28 21:03:26 :) Apr 28 21:04:18 Amadiro: 389? Well considering that a lot of them are actually not available to talk to right now, i would estimate about 300 max Apr 28 21:04:51 karlsve, hey, he didn't specify they would have to be non-idle... :) Apr 28 21:04:56 just online Apr 28 21:05:19 JesusFreke : how can I catch drop event for a specific location Apr 28 21:05:32 or Amadiro ? Apr 28 21:05:48 Sorry, I have not yet used DnD on android. Apr 28 21:05:52 * monsti has a drop station in his house Apr 28 21:06:14 Thanks amadiro Apr 28 21:06:34 i think it's a handler on a view Apr 28 21:06:59 but there are nice sample projects in the sdk Apr 28 21:08:44 suleyman: if I knew anything about that, I would have already answered Apr 28 21:09:09 Amadiro: i know you said you ahvent looked at DnD on android yet, but wouldnt a drop into a specific area change the elements parent? Apr 28 21:09:21 suleyman: http://www.vogella.com/articles/AndroidDragAndDrop/article.html Apr 28 21:09:28 a tutorial Apr 28 21:09:50 so basically trying to get the direct parent of a view give you the option to see if the area changed Apr 28 21:09:51 ? Apr 28 21:09:58 +s Apr 28 21:10:39 I am following vogella's tutorial now Apr 28 21:10:42 thanks Apr 28 21:10:51 sorry jesusfreke Apr 28 21:11:44 man. I'm getting cranky in my old age :) Apr 28 21:12:06 * JesusFreke tries to remember to lighten up a bit Apr 28 21:15:38 "Error: android-apt-compiler: [project] res/drawable-hdpi-v4/icon.png:0: error: Resource entry icon is already defined." -- then says ... res/drawable-hdpi/icon.png:0: Originally defined here.... Guidance? suggestions? Apr 28 21:18:15 Delete one of them? Apr 28 21:20:19 drawable-hdpi-v4 is this valid in android? Apr 28 21:20:33 should i delete the -hdpi or the hdpi-v4? Apr 28 21:21:36 It's your app, you decide. Apr 28 21:21:50 Do you actually support v4? oO Apr 28 21:22:42 SimonVT: to be honest, it's someone else's code. i think i'm going to wack everything except drawable. not that graphics sensitive. Apr 28 21:23:25 Well, it should work fine.. Not sure why it's complaining Apr 28 21:23:46 But unless you have a large existing userbase on 1.6, you probably shouldn't bother supporting it Apr 28 21:23:54 gotcha Apr 28 21:24:54 the 1.6 hardware is dead - because most of the batteries aree Apr 28 21:25:27 There's still 0.1% of the users there :p Apr 28 21:25:41 We are the 99.9% Apr 28 21:26:53 well whey should meet the win 3.11 users xD Apr 28 21:26:56 Could be fun if honeycomb disappeared from the statistics before 1.6 Apr 28 21:27:52 On that note, is there a way to declare in the manifest that you support 2.2, 2.3, 4.x but NOT 3.x? Apr 28 21:28:06 Like the thing. Apr 28 21:28:41 I don't think so Apr 28 21:29:03 At runtime there is :p Apr 28 21:29:04 So in the worst case, people on 3.x will enter a world of hurt if people don't test it. Apr 28 21:29:11 :p Apr 28 21:30:15 Just ask the packagemanager to uninstall your app Apr 28 21:30:32 hah Apr 28 21:43:28 Hi, I'm using third fonts in my app. And Android is clipping some parts, especifically to end of words. Apr 28 21:43:35 Somebody knows why? Apr 28 21:49:57 Sambarboz, third fonts? Apr 28 21:50:16 custom fonts. Apr 28 22:05:13 http://code.google.com/p/android/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars&groupby=&sort=&id=23297 Apr 28 22:07:43 is compatibility a big issue in android development? Apr 28 22:07:45 Not only among OSes, but also about the fact devices have different aspects Apr 28 22:07:51 and pixel density Apr 28 22:08:05 nope Apr 28 22:08:38 at this moment, it sounds very scarying developping an app for lots of screen aspects Apr 28 22:08:53 i am still *reading* about it anyway, not even started coding Apr 28 22:08:58 otisZart: hire a good designer, anything is possible :D Apr 28 22:09:11 g00s I code for hobby and fun mainly, I enjoy learning and coding ;-) Apr 28 22:09:40 i just wanted to know the level of the challenge about targeting ur app to many devices Apr 28 22:12:36 i think there are 2 challenges: graphics design and information architecture. IA becomes challenging only if you are targetting vastly different form factors like phone and tablet Apr 28 22:13:22 otherwise, if you are just doing phone, IA will be the same regardless of density. but between phone / tablet, IA changes because usage scenarios change Apr 28 22:13:34 designing for a tablet is more like designing for a laptop, imho Apr 28 22:13:41 iphone is my actual target Apr 28 22:13:47 what Apr 28 22:14:21 ahah xD Apr 28 22:14:36 otisZart: did you mean to be in iphonedev :) Apr 28 22:14:44 sorry, i mean phone and iphone Apr 28 22:14:50 no tablets at this moment Apr 28 22:15:23 my mind autocorrected :p Apr 28 22:15:34 is it possible to use an android device as an EHCI debbuger? Apr 28 22:15:58 no g00s I just mispelled :p Apr 28 22:16:12 I am learning both ios and android dev Apr 28 22:17:26 are ios and android users genetically enemy? I consider both great platforms for developping Apr 28 22:18:05 No. Apr 28 22:18:09 and I hope android to be a little easier than ios development Apr 28 22:18:24 I like the idea of xml+java Apr 28 22:21:50 kakazza your no was intended for which statement? Apr 28 22:22:39 genetic enemy Apr 28 22:22:58 Just be sure to make the Android UI Android-is and the iPhone UI iPhoneish Apr 28 22:23:07 As in, follow the design guidelines. Apr 28 22:23:37 otisZart: no, they are only enemies among the religious Apr 28 22:23:46 the rest of us dont give a shit ;) Apr 28 22:23:47 well i think that would be quite automatic, as I'll follow native libraries of languages which have different styles Apr 28 22:24:16 I am actually owner of an ios device, planning to get a google nexus though Apr 28 22:24:25 I wanted to get a clean, official, android device Apr 28 22:24:28 what do ya think? Apr 28 22:24:33 wait until i/o before your nexus purchase Apr 28 22:24:45 although i hear they may not announce anything new Apr 28 22:24:48 but who knows Apr 28 22:24:50 when is io? Apr 28 22:24:59 couple of weeks i guess Apr 28 22:25:03 what is io? (input,output :p) Apr 28 22:25:14 its like WWDC Apr 28 22:25:19 ok got it Apr 28 22:25:24 I just made the switch (about 1 month back) from ios to a nexus 4. It's a bit more fiddly; pro == widgets, cons == everything needs to be tweaked just enough to be slightly annoying Apr 28 22:25:28 anyway i wont pick the most expensive model in any case Apr 28 22:25:58 otisZart: the best device you can have for android dev, if you can only pick one, is actually a Nexus 10 Apr 28 22:26:03 I was planning to get a 2nd hand official google nexus Apr 28 22:26:18 because you can finagle it into different densities / etc Apr 28 22:26:47 but it is a table-like Apr 28 22:28:05 what about nexus 4 vs nexus? Apr 28 22:29:34 don't have a nexus 10, but do have a few android tablets (color nook, hp touchpad with cm7). I've generally found I mostly use my phone most of the time. The tablets are much more special purpose. They are all useful for android development; between them they have enough quirks that show up issues. Apr 28 22:29:40 otisZart: but you can test your app on the tablet and fool it into thinkings its a phone Apr 28 22:30:12 there was a google post on it somewhere, lost it Apr 28 22:30:17 Google+ post Apr 28 22:30:40 g00s you mean to emulate a lower aspect like-phone on a tablet? Apr 28 22:30:49 yeah Apr 28 22:31:53 I am still a personal coder, cannot afford it at this moment, but the idea is not bad Apr 28 22:32:06 is nexus4 just the *better-hardware* version of nexus? Apr 28 22:32:15 I am confused, nexus, nexus s, nexus mini, nexus4 Apr 28 22:32:30 i read that for dev, it is better to have a clean nexus with latest os Apr 28 22:33:29 it depends Apr 28 22:34:04 I think it's helpful to have a variety of non-stock devices, rather than develop purely on stock, latest-version android installs. There are enough variations that [unless you plan to limit yourself to such environments] they will exercise unexpected parts of code. Apr 28 22:34:11 there are arguments for getting a cheap gingerbread device too Apr 28 22:34:49 Say no to gingerbread! Apr 28 22:34:50 gingerbread plus nexus 4 / 7/10 Apr 28 22:35:11 It must die Apr 28 22:35:21 and yes, it sucks Apr 28 22:35:33 a large slice of users still have it though Apr 28 22:35:43 otisZart: also depends what kind of app, if you're doing opengl you may want phones with different GPUs Apr 28 22:36:07 try to grab some different devices / os version / screen size. Apr 28 22:36:14 g00s, no I am not going over statistics, tableview's apps and such Apr 28 22:36:41 I've started asking for friends to test my apps and send me reports. Apr 28 22:37:43 There are some tools like this http://testdroid.com/ that helps you to test on a variety of devices. Apr 28 22:37:45 so its nexus 4 just an hardware upgrade compareto nexus? Apr 28 22:37:57 compared* Apr 28 22:38:12 What do you think is a "Nexus" Apr 28 22:38:25 otisZart, there is no "nexus" Apr 28 22:38:31 There's been a Nexus One, Nexus S, Galaxy Nexus, Nexus 4. There's no Nexus. Apr 28 22:38:35 "nexus" is a line of products Apr 28 22:38:45 a phone by google and published by samsung (or lg) Apr 28 22:38:46 kakazza, you're missing a few, but yeah :P Apr 28 22:38:56 I meant the galaxy nexus (the first nexus) Apr 28 22:39:00 ... Apr 28 22:39:02 it wasn't the first Apr 28 22:39:04 it was the third Apr 28 22:39:11 well ye I meant that anyway xD Apr 28 22:39:25 so the 4 is just a newer nexus phone Apr 28 22:39:28 canadiancow: Missing _a few_? Apr 28 22:39:36 Q 7 10 Apr 28 22:39:46 Ah, I was only listing phones. Apr 28 22:39:51 And lel, Q Apr 28 22:39:53 fair enough Apr 28 22:39:59 but yeah, i agree with g00s Apr 28 22:40:03 so what would you pick guys ? Apr 28 22:40:06 with the 10, you can simulate any other device Apr 28 22:40:17 I'd wait for I/O, then pick the N4 if nothing changes. Apr 28 22:40:20 it costs a lot and is not sold in my country Apr 28 22:40:29 maybe the 7 then? Apr 28 22:40:30 well, only if you want to simulate a 4.x device ;-) Apr 28 22:40:33 7 is the cheapest Apr 28 22:40:41 kbs, fine, any screen :P Apr 28 22:40:56 you really think that i should take a tablet? Apr 28 22:40:56 By far, yes. Also there's rumours that it gets an update. But I'd wait for I/O if you can. Apr 28 22:41:12 otisZart, is this just for development, or do you want htis as your main phone? Apr 28 22:41:18 if you want a phone, take the 4 Apr 28 22:41:21 if you want cheap, take the 7 Apr 28 22:41:26 if you want the most versatile dev device, take the 10 Apr 28 22:41:31 not main, but I have 2 numbers so Id like to use it as phone too Apr 28 22:41:34 if you're serious about android, get all three Apr 28 22:41:39 :P Apr 28 22:41:40 lol Apr 28 22:42:01 ok canadiancow - what do you think about samsung nexus ? Apr 28 22:42:05 its ptretty cheap and mounts latest os Apr 28 22:42:22 can you please use product names Apr 28 22:42:27 there are three samsung nexus devices Apr 28 22:42:29 i9250 Apr 28 22:42:31 S, Galaxy, 10 Apr 28 22:42:42 it still confuses me a lot Apr 28 22:42:58 what's confusing? you have One, S, Galaxy, 4 Apr 28 22:43:02 most sensible naming ever Apr 28 22:43:07 :P Apr 28 22:43:22 so its *galaxy* the one im talkin about Apr 28 22:43:30 it's older Apr 28 22:43:40 so slower, etc Apr 28 22:43:46 the battery wasnt as good as the 4 for me Apr 28 22:44:01 while it has the latest version of android now, it's very likely that it will stop getting updates before the 4 does Apr 28 22:44:07 and is the galaxy nexus even cheaper tha nthe 4? Apr 28 22:44:55 well yes Apr 28 22:45:10 otisZart: are you on Verizon ? Apr 28 22:45:26 no, vodafone Apr 28 22:45:36 ;) Apr 28 22:45:38 nexus 4 is 150 euro more than galaxy Apr 28 22:45:49 :/ money is a problem for me atm Apr 28 22:47:15 wow it costs actually half than an iphone Apr 28 22:47:25 and it seems to have better hardware Apr 28 22:48:16 i think one of the messages google wanted to communicate with the n4, was that phones are too expensive - you can make a good phone for much less Apr 28 22:48:34 I think I will get some money and buy a nexus 4 for about 300-350 instead of wastin 200 euro or more on galaxynexus Apr 28 22:48:35 +1 Apr 28 22:48:36 so yeah, its high value Apr 28 22:48:53 the problem with phones is that they're usually released once a year Apr 28 22:48:57 and it's been like 6 months Apr 28 22:49:08 when is gonna be io u said? Apr 28 22:49:19 i/o is may 15-17 Apr 28 22:49:21 if price wont be very high, gettin next *nexus* will be very nice Apr 28 22:49:42 i didnt say there would be a new phone at i/o Apr 28 22:49:46 i know Apr 28 22:50:04 but anyway I can pick n4 now and decide to sell later Apr 28 22:50:07 They better :| Apr 28 22:50:09 its anyway a good buy as far as I can see Apr 28 22:50:24 i use mine all the time :) Apr 28 22:50:26 logcat: debuggerd committing suicide to free the zombie Apr 28 22:50:32 i just wis hi could get a much thicker phone with a battery that lasts Apr 28 22:50:59 then why most famous phones are galaxy s3 and 4 Apr 28 22:51:05 they suck compared to this Apr 28 22:51:12 and cost like an iphone Apr 28 22:51:15 marketing... Apr 28 22:52:24 http://www.ebay.it/itm/Google-Nexus-4-Factory-Unlocked-Android-4-2-Jellybean-8-GB-BNIB-Black-/140947176455?pt=UK_Mobile_Phones&hash=item20d11b3c07&_uhb=1#ht_4598wt_1240 Apr 28 22:52:35 actually for just 50 euro I could pick a new one Apr 28 22:54:38 the nexus 4 is nice Apr 28 22:54:52 it has no hw buttons Apr 28 22:54:58 and no sd-card slot Apr 28 22:55:23 why no sd-cards.. its just what I was seeing :p Apr 28 22:55:49 :/ even google started forcing users to buy a phone by *gb* Apr 28 22:58:19 annoying _:-\ Apr 28 22:59:35 wow nexus 7 brand new at just 200 euro Apr 28 23:00:51 the nexus 7 will hit 130e in 2013 Apr 28 23:01:36 well the specs are impressive Apr 28 23:01:42 the price is even now very low Apr 28 23:02:23 I doubt that Apr 28 23:02:44 http://www.expertreviews.co.uk/laptops/1299202/asus-fonepad Apr 28 23:02:54 interesting nexus 7 competitor Apr 28 23:04:22 other than 3g, why is it better? Apr 28 23:05:05 SD slot Apr 28 23:05:15 : Apr 28 23:05:17 :/ Apr 28 23:05:30 why they removed sd from n4? Apr 28 23:05:30 3g at a lower price point Apr 28 23:05:42 better battery life, in some tests Apr 28 23:05:47 i cant understand that, it is like a apple move, not google Apr 28 23:06:05 because it let's then sell $5 of flash for $59 Apr 28 23:06:11 them Apr 28 23:06:14 Not many actually care about removable storage Apr 28 23:06:44 can I change internal flash on n4 if I want to upgrade GB? Apr 28 23:06:50 I would have paid $20 extra for a SD slot Apr 28 23:06:57 otisZart: no Apr 28 23:07:04 it is not upgradeable Apr 28 23:07:06 ok so solded into motherboard? Apr 28 23:07:09 yes Apr 28 23:07:14 damn Apr 28 23:08:05 I am still very new of android world - do you prefrear native os or custom rom? Apr 28 23:09:16 the android guy said they were doing a $200 android notebook Apr 28 23:09:20 uh, the Intel guy Apr 28 23:10:10 http://www.tomshardware.com/news/Haswell-Bay-Trail-Dadi-Parlmutter-Windows-8-Atom,22291.html Apr 28 23:10:52 good night people Apr 28 23:10:58 gnight Apr 28 23:11:21 g00s: lol :) Apr 28 23:11:30 why not win RTs ;)))) Apr 28 23:11:40 or even win8 Apr 28 23:12:01 winRT is in an interesting spot. I think regular Window8 + Bay Trail will be awesome Apr 28 23:12:10 xmas time ;) Apr 28 23:12:41 a android tablet and winRT in vbox ;) Apr 28 23:20:42 huh, didn't realize there were ways to (essentially) run debian android/linux; though they seem to be chroot'ed jails, rather than truly co-existing. Apr 29 00:08:22 Hey guys, is there a way of changing the package name without really messing things up? Apr 29 00:09:49 think before you code ? Apr 29 00:11:11 monsti, that doesn't help lol Apr 29 00:11:22 i know ;)))))) Apr 29 00:11:46 Use the refactor function of Eclipse Apr 29 00:11:46 so, could i get something more useful :P Apr 29 00:11:50 is there a correct way Apr 29 00:11:55 kakazza, refactor/ Apr 29 00:11:57 ? Apr 29 00:12:03 Yes, refactor. Apr 29 00:12:18 Rightclick on your package, Refactor -> Rename Apr 29 00:12:31 Like you would rename a class or variables. Apr 29 00:12:37 You're not doing that by hand, do you? Apr 29 00:13:06 kakazza, ah awesome, thanks Apr 29 02:15:53 Hello guys. How can change text of a textView in a fragment from an activity? Apr 29 02:16:50 I've tried findViewById(R.id.frag_textV); but it gives me null pointer exception Apr 29 02:19:16 nomo: i believe you need to run that within the fragment Apr 29 02:19:31 <|0xD34D|> or create some public method to call from the activity to the fragment Apr 29 02:21:34 Thanks guys, will test it now. Apr 29 02:27:46 ugh, RelativeLayout.LayoutParams.removeRule was added in api17?? what kinda suck is that :( Apr 29 02:28:58 pfn remember the other day you gve me some help regarding an amplitude graphic/animation for mediaplayer signal Apr 29 02:29:24 i found the Visualizer class Apr 29 02:29:32 brx_, is there an actual visualizer class? handy Apr 29 02:29:39 ye, its cool Apr 29 02:30:02 saved me lots of time im sure Apr 29 02:48:02 I have an issue Apr 29 02:51:16 Trying to run uTorrent app, it keeps coming up with an error: 'Application stopped. Service failed to create required folders.' Apr 29 02:52:42 not really the channel for that kinda thing .... Apr 29 02:53:12 I was told it was :( Apr 29 02:54:54 What is the right channel? Apr 29 02:55:38 why dont you contact utorrent support... Apr 29 02:55:58 Sweet_Ride: this channel is for app developers, not app support Apr 29 02:56:08 No I get that now Apr 29 02:56:29 Is there a channel at all for support? Apr 29 02:56:41 and yes, the right place would be whereever utorrent people congregate - a forum, a support email... Apr 29 02:56:53 :( Apr 29 02:56:57 you can ask in #android - but it's a pretty specific question Apr 29 02:57:09 his error is quite verbose Apr 29 02:57:27 Yeah, google didn't even help Apr 29 02:57:28 myb its trying to write to sd (and theres no card in) Apr 29 02:57:46 I have an sd Apr 29 02:58:15 free space? Apr 29 02:58:17 Anyways, thanks anyways Apr 29 02:58:19 Yes Apr 29 02:58:54 nn **** ENDING LOGGING AT Mon Apr 29 02:59:58 2013