**** BEGIN LOGGING AT Fri Feb 15 02:59:58 2013 Feb 15 03:02:48 knightrage: I don't think RelativeLayout has an orientation. It's... relative. Feb 15 03:02:57 LinearLayout however has. Feb 15 03:27:18 Why might I have a wrong date and time being provided by "the network" to my simulated nexus 7? Feb 15 03:28:01 I can fix the date and time. but as soon as I permit it to update from the network it goes bad. Feb 15 03:28:47 Do your virtual Nexi insist that today is the 8th? Feb 15 03:35:33 how would i hook a function to run when the text in an EditText is changed? Feb 15 03:36:57 clever: http://developer.android.com/reference/android/widget/TextView.html#onTextChanged(java.lang.CharSequence, int, int, int) Feb 15 03:37:50 tnzr: so i would need to subclass EditText and re-implement that? Feb 15 03:38:27 Thanks for pointing me in the right direction. I was able to figure out that I was missing a whole pile of classes and that a tedious and quick fix was to add "import com.androidtut.R;" instead of letting CTRL + SHIFT + o decide the default should be used. Feb 15 03:38:48 clever: sorry http://developer.android.com/reference/android/text/TextWatcher.html Feb 15 03:39:24 *looks* Feb 15 03:40:09 ah, EditText.addTextChangedListener, with an instance of TextWatcher Feb 15 03:40:13 yah Feb 15 03:40:37 here's an example: http://stackoverflow.com/questions/11134144/android-edittext-onchange-listener Feb 15 03:42:58 onTextChanged should suit my needs i think Feb 15 03:48:29 tnzr: works :) Feb 15 03:48:54 clever: nice :) Feb 15 03:49:19 only minor issue, i can switch the keyboard to text mode when the edittext is number only Feb 15 03:49:29 not sure if thats my device OEM or tags i forgot Feb 15 03:50:00 android:inputType="number" does this completely disable the letter keyboard? Feb 15 03:50:26 im not sure if it disables it, it may not accept non-numbers if you type them.. give it a try :) Feb 15 03:50:49 it opens to the number pad on my device, but i have a button to switch over to full keyboard Feb 15 03:50:56 at which point, it gets stuck in the 'normal' mode, and wont go back to a number pad Feb 15 03:51:00 damn Feb 15 03:51:03 what device? Feb 15 03:51:05 let me try typing a word Feb 15 03:51:09 kindle fire hd 7" Feb 15 03:51:49 nope, it wont let me type text into the box :) Feb 15 03:51:55 no exceptions from Integer.parseInt("five") Feb 15 03:52:13 i guess that's better than nothing Feb 15 03:52:33 if i switch to another EditText and back, it returns to the full number pad Feb 15 03:53:08 * clever gets screenshot Feb 15 03:53:56 http://gallery.earthtools.ca/index.py/android/device-2013-02-14-235332.png Feb 15 03:54:35 the 'ABC' button is the one that gets it stuck in a normal keyboard layout, but that one still has its own number entry (with a crappy layout) Feb 15 03:54:56 it could just be a bug in the amazon soft keyboard Feb 15 03:57:17 tnzr: do you know of any soft keyboards that include a D-PAD? Feb 15 03:57:21 If I want to rebuild the latinime.apk do i need to sync the whole AOSP source? Feb 15 04:13:16 Bump: http://stackoverflow.com/q/14860239/354247 Feb 15 04:17:14 is NVIDIA Nsight Tegra VS 2010 Plugin only for NDK development? They say native, not sure if they mean java or C :P Feb 15 04:19:16 <\monster\> hey guys I'm having a weird problem, I've been using this 3rd party library for couple of years (no support) which accepts some imput via EditText ..the issue is as of Android 4.1 no text can be entered in the fields Feb 15 04:19:33 <\monster\> this happens on both physical device and emulator Feb 15 04:30:04 \monster\, is the lib open source? Feb 15 04:32:41 <\monster\> arr just noticed these aren't android fields ..its a webview Feb 15 04:32:51 <\monster\> its not open source Feb 15 04:33:12 <\monster\> weird, it works fine until JB came Feb 15 04:35:40 hey, in an android emulator, how can i switch back-and-forth between portrait and landscape mode? Feb 15 04:35:58 <\monster\> shit + ctrl 11 Feb 15 04:36:00 <\monster\> i believe Feb 15 04:36:02 <\monster\> err Feb 15 04:36:05 <\monster\> shift F11 Feb 15 04:36:18 <\monster\> its been a while, try f10 f11 Feb 15 04:36:22 <\monster\> with shift or ctrl :) Feb 15 04:36:30 ah, ctrl f11 Feb 15 04:36:31 thanks Feb 15 04:38:56 Why might I have a wrong date and time being provided by "the network" to my simulated nexus 7? Feb 15 04:41:16 Why might I have a wrong date and time being provided by "the network" to my virtual nexus 7? Feb 15 04:56:10 anyway \monster\, i'd talk to the third party who wrote it Feb 15 04:57:17 <\monster\> some googling reveals in jb webview not getting focus or something Feb 15 04:57:53 <\monster\> my only option is to decompile the lib and hack it to make it work ..there is zero support available or any chance of an update :( Feb 15 05:07:17 hello all Feb 15 05:08:05 why would setting a state list on the background of an editText cause me to loose all IME options (or rather not have any work?) ? Feb 15 05:08:12 hello QubeZ Feb 15 05:08:15 :) Feb 15 05:08:49 regarding SQLite upgrade, say going from version 3 to 4. If a user is on v2 and installs app to go direclty to 4, does it make more sense to have all of my execSQL commands repeat for the next version? For example, http://pastebin.com/xcVKVewF Feb 15 05:08:53 hey StingRay_ Feb 15 05:13:37 oh, layout_weight kills things like the suggestions Feb 15 05:34:35 Anyone know if it's possible to overlay an activity on a currently running activity? Is this something Fragments might be used for? Feb 15 05:35:08 Basically I want to click a button and have a new screen come from the side and almost cover the running activity, but still have a bit of the first activity showing. Feb 15 05:35:30 you can use a dialog theme with custom width and height Feb 15 05:36:01 would dpend on your design if you want fragment or activity Feb 15 05:37:04 I see. Well, there are going to be buttons and information on the screen that is coming from the side. Is it necessary to use a fragment? Or should I just go with a dialog? Feb 15 05:37:20 jdawes:where does it go from there,possibly the overlay becoming full screen main activity,or interact w overlay then goes away leaving main activity? Feb 15 05:37:43 jdawes: can always create a viewstub & inflate when needed and hide/show Feb 15 05:38:03 canvs2321: No, it just stays in that position until the "back" operation is called, probably a button or swipe gesture. Feb 15 05:38:37 canvs2321: I'm quite new to Android and I haven't done any reading on Inflating. Perhaps that's what I'll do now. Feb 15 05:41:33 check out viewstubs, not sure if fragments r same, but you can create two layouts in xml,one main one&one stub where you can keep the design seperate instead of all bulked with visibility=hide&you can control animations and such if you are wanting sliding/or any effects to show your overlay Feb 15 05:41:49 fragments are not UI components Feb 15 05:42:10 k wasn't sure Feb 15 05:42:28 would using a viewstub be a candidate? Feb 15 05:53:11 Just submitted an Errata report against "Professional Android 4 Application Development". It seems that getting a CREATE TABLE statement cobbled together the content: way is a bit tricky. Feb 15 05:54:56 I suppose it would have helped if the developer had access to the .schema and .table commands of the sqlite3 program..... Feb 15 05:55:22 hello all Feb 15 05:55:26 Just so he could see what he had done. Feb 15 05:55:29 is this the preferred method of upgrading a DB? http://pastebin.com/AENWbJ4Z (e.g. no break; ) Feb 15 05:55:38 to handle upgrades from v1 to v3 for example Feb 15 05:58:08 QubeZ, Looks good to me. Feb 15 05:58:23 how do I remove any textcoloring that I've given to a TextView for example? Feb 15 05:59:00 I'm curious how the onUpgrade gets called though, does the system see v1 (with v3 available) and force the user to go to v2 first? Feb 15 05:59:20 or do they go directly from v1 to v3? Feb 15 05:59:48 it gets called once with the old db number and the new one Feb 15 05:59:49 QubeZ, I think your code has that covered. Feb 15 06:00:48 hmm I'm trying to follow the logic... so let's say oldVersion is 1 and newVersion is 3... then case 1: executes and falls through to case 2: etc... to get the user all the way up to v3 Feb 15 06:00:57 Yea, I think I got that then Feb 15 06:01:00 right Feb 15 06:01:11 because I have no break; -- sounds good Feb 15 06:06:41 Anybody know where the verion number is kept? Feb 15 06:06:59 s/verion/version/ Feb 15 06:08:30 jda2000: http://stackoverflow.com/questions/3707797/where-does-android-store-sqlite-database-version Feb 15 06:09:23 Jan and Feb have been rocking months for To Do Mapr Feb 15 06:09:29 looks like popularity is growing Feb 15 06:09:44 QubeZ, Thanks! Feb 15 06:10:11 np and thank you for the onUpgrade assistance Feb 15 06:29:35 hey guys Feb 15 06:29:41 hi Feb 15 06:32:11 I have an activity with 2 fragment containers...one contains a fragment w/ listview the other is a fragment that has a tabhost and tabs, etc..... when I click on an item in listview I want to replace the entire fragcontainer (the one that holds the TabHost) with another fragment...I keep getting IllegalStateException: No view found for id 0x7f080002 (com.example.pooper:id/bigfrag) for Feb 15 06:32:11 fragment SchennFrag{41a77950 #0 id=0x7f080002} Feb 15 06:32:28 bigfrag is the container...SchennFrag is the fragment i want in bigfrag container Feb 15 06:33:39 the tabs also contain fragments...ie. i click a tab it opens a new fragment associated with that tab Feb 15 06:34:36 dunno if there are any students in here, but http://googleforstudents.blogspot.com/2013/02/google-android-camp-for-current.html Feb 15 06:34:55 back in my day, we didn't have such fancy android camps Feb 15 06:36:27 i mean an IllegalArgumentException Feb 15 06:37:58 nevermind I figured it out Feb 15 06:38:41 android uses sqlLite right Feb 15 06:39:16 linuxuz3r_: by default yes Feb 15 06:42:42 android supports sqlite Feb 15 06:42:45 certain components use it Feb 15 06:42:48 your app can use it Feb 15 06:42:51 but it's not a requirement Feb 15 06:45:31 is there a good built-in icon to represent an "import" task? Feb 15 06:45:44 canadiancow: freshman/sophmore as in college or HS? Feb 15 06:45:52 college Feb 15 06:46:04 pretty sure the site says that :P Feb 15 06:46:17 they probably dont want 13 year olds Feb 15 06:48:27 hmm, so have a broadcast receiver, and im getting a warning in androidmanifest.xml "exported receiver does not require permission". of course it plainly states what I should do but how would I do that? Feb 15 06:48:56 do you want to add a permission? Feb 15 06:49:08 or rather, who is going to be sending the broadcasts you receive Feb 15 06:49:22 Google Play Market Feb 15 06:49:49 ok i'm stepping beyond my expertise here, but i dont know if you can secure it Feb 15 06:49:59 you might just want to add one of the suppress warning lint tags Feb 15 06:50:08 android:exported="false" Feb 15 06:50:16 or "true" rather Feb 15 06:50:46 yeah it definitely needs to be exported Feb 15 06:50:56 if your app is going to be broadcsating stuff to itself, you can set exported="false" Feb 15 06:51:46 setting it to false relieves the error Feb 15 06:52:05 and I dont think I could add supress warning tags to XML Feb 15 06:52:25 oh no nvmd i could Feb 15 06:52:28 yes but the play store wont be able to send you broadcasts if you dont export it Feb 15 06:52:30 :P Feb 15 06:53:27 so does it mean I don't need to put it in manifest or just supress it? by setting it to false means I wouldn't be able to recieve messages and if i set it to true i would but i'd get an error message Feb 15 06:53:41 its not an error message Feb 15 06:53:43 it's a warning Feb 15 06:53:58 warning* Feb 15 06:54:42 so i guess my question is... would there be any difference between adding it to the manifest vs not adding it at all? Feb 15 06:55:25 not adding the broadcast receiver? Feb 15 06:55:39 the export statement Feb 15 06:55:39 I'm totally amazed but you can do this: ./adb shell "echo .schema | sqlite3 data/data/com.example.yourapp/databases/yourdatabase.db" Feb 15 06:55:59 jda2000: nice Feb 15 06:57:28 nvmd about not adding it. "exported receiver does not require permission" - what does it mean by permission? Feb 15 06:57:47 permission is the true or false for exported="" Feb 15 06:57:55 you're giving it permission to be exported (or not) Feb 15 06:59:49 ahh, i see. doc says by adding intents the receiver is automatically set to exported = "true". I guess thats why the warning is showing even when I don't have exported = in the manifest Feb 15 07:00:56 no Feb 15 07:00:56 no Feb 15 07:00:57 no Feb 15 07:01:06 it means you have not required a permission for a receiver that is exported Feb 15 07:01:14 you know how you need android.permission.INTERNET Feb 15 07:01:30 you could require com.canadiancow.perissmion.IRC for someone to access your receiver Feb 15 07:01:39 but the play store isnt going to have that permission Feb 15 07:03:34 oh okay, get it now :) thanks! Feb 15 07:04:48 anyway, you want it exported without a permission :P Feb 15 07:05:42 you can add xmlns:tools="http://schemas.android.com/tools" to your manifest (near the other xmlns) Feb 15 07:06:03 actually if you hover over the warning, does it not give you an option "Add ignore 'SomeWarning' to element" ? Feb 15 07:06:25 nope Feb 15 07:06:38 but im guessing i could do, tools:ignore=”ExportedReceiver” Feb 15 07:06:41 http://tools.android.com/recent/ignoringlintwarnings Feb 15 07:06:52 yeah if that's the right warning :) Feb 15 07:07:57 hmm, would it be smart of me to do ? Pretty sure the playstore uses that permission Feb 15 07:09:04 no Feb 15 07:09:10 that would be the opposite of smart :P Feb 15 07:10:05 haha alright then i'll supress the warnings and move on with life :) thanks for clarification!! Feb 15 07:10:14 My activity needs to fetch some text from the internet, what would be the best way to do that? Use a service, intentservice or asynctask...I'd rather not use an AsyncTask since it can only be executed once Feb 15 07:58:23 i think the aliens have landed. but will they find intelligent life? Feb 15 08:00:56 hi Feb 15 08:01:12 are there videos for android -dev tutorials Feb 15 08:01:25 no, none at all Feb 15 08:01:31 :| Feb 15 08:03:19 g00s: are you talking about the meteor? Feb 15 08:03:32 Trinity: oh, for you , it was the NSA Feb 15 08:03:34 :) Feb 15 08:03:43 yeah **** ENDING LOGGING AT Fri Feb 15 08:38:45 2013 **** BEGIN LOGGING AT Fri Feb 15 08:40:19 2013 Feb 15 08:49:32 hm, what's the best explanation fo the different drawble directories? Feb 15 08:50:08 saving processor time for not needing to scale graphics, and higher graphic quality, since designer can always better scale an image, than the os can Feb 15 08:50:23 ok Feb 15 08:50:33 k Feb 15 08:51:55 I am learning and I want to have a listview, each item will have a .. button behind it. I guess that as I cannot determine the dimensions of the users' screens the image I supply will need to stretch Feb 15 08:51:59 Hello everybody, I have a AOSP compilation question. I'm porting AOSP to my device, a Samsung Galaxy Y (GT-S5360). The problem is that I have a problem getting adbd to work properly. I've succesfully compiled AOSP, but an adbd devices command fails to list my device in the terminal. I'm sure that adbd should run at boot, because I edited my perstist.service.adb. Hopefully somebody has some ideas? Feb 15 08:52:28 which folder(s) do I put my image into, and do I need to do anything to the image? Feb 15 08:53:04 PsychoGame: are the usb host drivers working? Feb 15 08:53:13 its also for re-authoring images for certain resolutions Feb 15 08:53:22 oh, this is probably the best answer: http://stackoverflow.com/questions/2533410/drawable-folders-in-res-folder Feb 15 08:56:23 @clever: I don't know if this is the case. At the moment I'm only working on the Kernel side, because I wan't this one to work properly before putting anything else on the device. The init scripts are still standard, and with the delivered adbd which is on the device itself it lists in the adb devices list. But when I replace the adbd with my compiled version it doesn't work. Or am I making a huge mistake by doing this? Feb 15 08:56:24 Hi, So it seems like I'm going to go with the nexus 7 for my testing device any last minute thoughts about this? Samsung also look really good but seem more expensive. Feb 15 08:57:12 PsychoGame: dont know much more, i simply dug into the source code to see how it works normaly Feb 15 08:57:12 apple741: should be good :) Feb 15 08:58:32 Hey g00s , thats great thanks! Just wanted to make sure there werent any 'similar' devices I should consider but seems everyone really like the nexus 7 :) Feb 15 08:58:54 apple741: https://plus.google.com/107708120842840792570/posts/cz5TxuoNDfG Feb 15 08:59:13 yeah for 2x the price :) Feb 15 08:59:35 Okay, I will look into this:). You may be right, because the devices usb lun file is in a non standard place. Feb 15 09:00:21 oh bummer, ABP breaks on 4.2.2 Feb 15 09:00:46 clever: Thanks, yeah g00s right a little out of my budget at the moment but if I make any money from my apps will certainly be getting it :) Feb 15 09:01:01 apple741: the info in that post works on any device Feb 15 09:01:13 apple741: i was just using it on my kindle fire Feb 15 09:01:36 boo kindle fire :) Feb 15 09:01:50 g00s: yeah, amazon did a real number on it Feb 15 09:01:59 recent task list doesnt work, causes the status bar at the top to crash Feb 15 09:02:15 and various other minor problems Feb 15 09:02:45 clever: oh really, can the nexus 7 also do this? Feb 15 09:02:54 apple741: any android device i believe Feb 15 09:03:22 it seems to depend mainly on android version, display-density doesnt work on my kindle, but display-size works fine Feb 15 09:04:00 wow thanks clever really good to know :) Feb 15 09:04:03 it seems to function thru the same channels as screen rotation Feb 15 09:04:13 if i run it when my app is open, the window shrinks instantly Feb 15 09:04:50 it probly does a state save, ondestroy, oncreate (with the new params in context, causing it to use diff resources) Feb 15 09:08:14 Is the best place to purchase a nexus directly from Google Feb 15 09:08:25 From what I've seen they are the cheapest? Feb 15 09:13:14 any idea about Error: Activity class ... does not exists by starting in eclipse? The MAnifest is correct. It's working if i wipe the device.. Feb 15 09:15:43 I have problems using the DownloadManager. it aborts after downloading a while and i dont know how i can debug this DownloadManager... Any Idea? Feb 15 09:19:10 Hi guys, can you tell me what to do if R. isnt generated even after Cleaning the project ? Feb 15 09:23:12 did you deleted the gen folder to try if its working after? Feb 15 09:28:01 its fucking annoying. i can not start my activity out of my broadcast receiver. It tells me that it's not set in the manifest but it is (its the launcher activity) Feb 15 09:33:35 Would the samsung galaxy tab be a better testing device than the nexus 7? Feb 15 09:35:10 depends on your app Feb 15 09:35:50 I'm working on a 2d puzzle game at the moment misterli Feb 15 09:37:34 apple741: you're going to go nuts over this :) Feb 15 09:38:02 if i installed windows 7 32bit twice, would that make it windows 7 64bit?! LOL! Feb 15 09:38:31 its like, do two 2x12 speakers equal a 4x12 :) Feb 15 09:38:37 no :D Feb 15 09:39:23 g00s, it's just a forum question I just saw it screen shot and shared on facebook! LOL! Feb 15 09:39:29 superlinux-hp: install the 64-bit twice so you can get 128-bit WIndows Feb 15 09:39:38 oh yea! :) Feb 15 09:39:59 more GBs :) Feb 15 09:40:02 i'll be more advanced than you all.. :) Feb 15 09:40:34 g00s: Yeah, I think you're right. I just wanted to double check the nexus 7 is the way to go :) Feb 15 09:40:50 apple741: this is when, too many choices suck Feb 15 09:41:43 holy shit. This cannot be. My Broadcastreceiver can not start an activity (message unable to find explicit activity).. but its my launcher activity which is able to run when i start the app?! oO the same receiver worked some codeversions b4. Feb 15 09:46:12 I have problems using the DownloadManager. it aborts after downloading a while and i dont know how i can debug this DownloadManager... Any Idea how to debug this? Feb 15 09:46:25 g00s: Yeah its horrible :) Feb 15 09:46:30 They all look so similar Feb 15 09:49:48 hi, is anybody had problems with running appliactions from eclipse on HTC Desire X? Feb 15 09:54:46 g00s: Nexus 7 it is :) Feb 15 09:54:57 apple741: \o/ Feb 15 10:24:36 yaaay Feb 15 10:37:18 g00s: IBM actually has a 128bit platform Feb 15 10:51:04 90% of bits unused Feb 15 10:52:09 (it's transparently scaled down to, depending on hw, I think 48 or 64 depending on server cpu) Feb 15 11:07:07 hey when i'm doing : llay = (LinearLayout) findViewById(R.id.llayout); and later i'm doing chk.setSelected(true) on some checkboxes then what i have to do to apply those selections on checkboxes? Feb 15 11:07:21 llay.updateViewLayout or something? Feb 15 11:11:35 every thread created in java within the dalvik machine, is one system thread? (e.g. created under the hoods with pthreads) Feb 15 11:18:11 Hello everybody, I have an adbd problem on a device I'm trying to port CyanogenMod to. The device is the Samsung Galaxy Y (GT-S5360). The problem I'm facing is that I have a lot of trouble to get the adb daemon to work on the device. On the device I can see the adb daemon is running, but the command adb devices on the linux terminal doesn't show anything. (With stock adbd it shows the device, so it's not the usb setup on my lapt Feb 15 11:18:11 op I think). Feb 15 11:18:57 PsychoGame: #android-root or #cyanogenmod please Feb 15 11:20:09 Okay, thank you for pointing out the right channel. Feb 15 12:05:23 hi, does someone already tried to use the Secure Element of android ? Feb 15 12:21:28 did anyone try synapsi to make the app more famous? Feb 15 12:21:34 synapsy Feb 15 12:22:10 xZwhite: I'm pretty sure it is only accessible with Google's permissions Feb 15 12:22:28 xZwhite: do you happen to have the smartmx sdk and deployment tools? Feb 15 12:22:45 How can i get the error of a File.renameTo function? Feb 15 12:25:02 Ge0rG, i use java reflection to access it Feb 15 12:25:36 Ge0rG, i'm trying to emulate an NFC card in fact Feb 15 12:25:58 xZwhite: thats not the same as using the secure element Feb 15 12:27:37 Ge0rG, i read documents telling that to enable the card emulation mode, we need to access the secure element... Feb 15 12:27:42 i have a link Feb 15 12:28:23 Ge0rG, http://nelenkov.blogspot.fr/2012/08/accessing-embedded-secure-element-in.html Feb 15 12:28:40 xZwhite: the secure element is one way to do card emulation, but then you need to reprogram it Feb 15 12:29:04 xZwhite: I'm curious, what is your application scenario? Feb 15 12:32:08 xZwhite: that blog post is very interesting Feb 15 12:33:31 Ge0rG, as i think google wallet, use card emulation, i was wondering if i would be able to emulate NFC card like MIFARE or other Feb 15 12:33:53 xZwhite: with wallet, card emulation is performed by the SE Feb 15 12:34:16 xZwhite: mifare is significantly harder to implement Feb 15 12:34:31 xZwhite: unless you reprogram the smartmx, which can do so Feb 15 12:37:27 Noone an Idea? Feb 15 12:38:13 Ge0rG, :/ Feb 15 12:38:16 Ge0rG, http://nfcsec.blogspot.fr/2011/08/card-emulation-on-nexus-s.html Feb 15 12:40:11 xZwhite: so, you want to cheat your local transportation company with fake tickets? :D Feb 15 12:41:57 Ge0rG, lol no, i just do some research on NFC and android Feb 15 12:42:19 Ge0rG, cheating local transportation they're easiest way Feb 15 12:42:26 Ge0rG, :) Feb 15 12:43:20 xZwhite: there is a third way not mentioned in that blog post... if you have cyanogenmod installed, it is probably already activated Feb 15 12:46:20 hi guys Feb 15 12:49:18 Ge0rG, what is activated? Feb 15 12:49:24 Ge0rG, source ? Feb 15 12:50:54 I have used Action bar style generator and copied the files successfully into the project. But now I want to change the text color of list items in the Action Bar Feb 15 12:50:55 Any idea how to do it Feb 15 12:50:55 ? Feb 15 12:53:22 quick qestion ... how powerful of a computer do I need to run the developement environment? Feb 15 12:54:51 hi all, i am searching on google how to prevent activity reload after device rotation .. i have added android:configChanges="orientation" my self already before this but it is not working, i cant find any other sugestions anyone have any hints as to other cause? Feb 15 12:55:56 xZwhite: have a look at http://www.simplytapp.com/ Feb 15 12:56:53 Hey.. the Nexus 7 doesn't support Tablet UI by default.. Right..? Feb 15 12:58:00 Ge0rG, http://nelenkov.blogspot.fr/2012/10/emulating-pki-smart-card-with-cm91.html too Feb 15 12:58:38 fanno: why do you need to do that? Feb 15 12:58:48 it exists for a reason, do you understand why it eists Feb 15 12:59:30 mikedg: Nopes.. why..? Feb 15 13:00:35 donavan01: Since "powerful" is not an exact measure, what do you currently have? Feb 15 13:01:47 purezen: both lines were to fanno Feb 15 13:02:03 but tablet ui is basically gone from android Feb 15 13:02:11 if you were taling about the honeycomb single bar thing? Feb 15 13:02:12 mikedg: oops..:) Feb 15 13:03:41 kakazza : well what I currently have is a a dual core intel P6000 laptop but what I can have is a 2u dell rack server (cant remember the model number) but I know it has 3 quad core xeons and space for enough ram to run anything ... unfortunatley I have to get ram for it ... it was a promo from a TV show and a buddy of mine lives in LA and works on movie sets ... he snagged it and a bunch of other stuff up and I just hav Feb 15 13:03:41 e to get it shipped I just wasnt sure if I need a power house like that to get started Feb 15 13:04:46 mikedg: No, I meant that my N7 doesn't show me the Tablet UI for some apps (eg. Firefox..).. Feb 15 13:05:13 purezen: that's up to the developer Feb 15 13:05:21 there is no such thing as a tablet UI Feb 15 13:06:06 mikedg: Ok.. so does it have to do something with the 'dp' attribute somewhere..? Feb 15 13:06:42 donavan01: That powerhorse is more than enough. Your Laptop should do just fine. How much RAM do you have? Feb 15 13:06:57 Also, no matter how old the notebook, get an SSD. Not just for Android, for everything. Feb 15 13:07:00 generally a mix of shit, a minimum width of density independent pixels is generally used as the base between switching multipleUIs Feb 15 13:07:11 mikedg, well i guess i could be going about it wrong but i dont wanan reload/recall the api 50 times every time the phone is turned to other rotation Feb 15 13:07:35 so save your data Feb 15 13:07:50 onSavedInstanceState, look into that Feb 15 13:08:14 kakazza: in the laptop 2 gbs but I can max it out to 8 gb for a small amount of money ... the question is really do I build the server up since it only has 1gb of ram and needs a better graphics card or do I build the laptop up Feb 15 13:08:32 laptop Feb 15 13:08:36 nobody uses desktops anymore Feb 15 13:08:41 imo Feb 15 13:08:58 I do... but then I also use slackware Feb 15 13:09:04 I use desktop as my primary pc :) Feb 15 13:09:12 mijedg, I cash it and load the stuff from cache, so the user do not experiance any delay, .. and stuff ... but i have to prevent the load function to run so a update wont run again Feb 15 13:09:15 only here on work we only get laptops Feb 15 13:09:17 I do and happen to like using a desktop I just got the laptop casue it was cheap and I needed something portable Feb 15 13:09:27 pretty annoying but at least i got a docking station with 2 video outputs Feb 15 13:09:51 fanno: so just pass a variable saying dont load in onsavedinstancestate Feb 15 13:09:57 i dont thik you would even have to do that Feb 15 13:10:08 you might be able to just see if the bundle passed in is null or not Feb 15 13:10:23 timroes ... thats the big limiter for me developing on the latptop it has a huge screen but a crappy video card so I cant run dual monitors Feb 15 13:10:46 mikedg: hmm ok Feb 15 13:10:51 we use thinkpad t430s here. With the nvidia card inside and the docking station you can link 2 monitors to it, thats okay Feb 15 13:11:00 but for home I wouldn't want to miss my desktop Feb 15 13:11:14 mikedg: Thx..:) Feb 15 13:12:09 timroes ... my desktop got stolen by the wife for the TV apparently streaming video to the TV is more important than me having my computer Feb 15 13:12:34 my wife should use her own desktop if she wants to do that :D Feb 15 13:13:18 mikedg: there should be no danged of the getIntent() data changing when rotating right ? assuming i dont change it my self ? Feb 15 13:13:48 im pretty sure it's the same Feb 15 13:14:08 i got a headache this morning and cant think straight though Feb 15 13:14:16 we have 2 desktops in the living room - one is 'my' PC, couple of monitors on it, the other is mostly used by the gf, and it's hooked straight into the TV Feb 15 13:14:53 hi Feb 15 13:14:58 i need a battery operate wireless monitor Feb 15 13:15:04 27" preferably Feb 15 13:15:20 Leeds looks like im going to have to do that one ... I was hoping to do it with the server ... if its big and ugly it normally keeps the women from wanting it in the living room :) Feb 15 13:15:27 mikedg: np, hope they headacke will go over =) Feb 15 13:15:29 I'm checking the SoftKeyboard sample, but it does not exactly answers my question: can I create a custom keyboard for my application? Feb 15 13:15:46 donavan01: the PC hooked up to the TV is the server, gateway, etc. as well as her PC Feb 15 13:15:55 I have a horizontal LL of 2 textviews, which works fine. The problem is: How do I make sure their height is always the same? Feb 15 13:15:55 https://dl.dropbox.com/u/6559846/dddga.PNG Feb 15 13:16:15 If both text contents are single-line all is okay, but what if the left one takes up two lines? Feb 15 13:16:20 mikedg: yes savedInstanceState == null ... load data works ! thanks =) Feb 15 13:16:21 Then I want the right one to be also as high Feb 15 13:16:32 Leeds ... good plan make her PC do all the grunt work ... seriously how much power does facebook and hulu really need Feb 15 13:16:50 no hulu, but local video streaming and youtube - yeah... Feb 15 13:17:27 Leeds, got an idea on my issue? :P Feb 15 13:17:55 spobat: Could put both into another LL and make both match_parent in height? Of course the parent should be able to stretch Feb 15 13:18:04 by the way, the code looks like that: http://ideone.com/1qWVk6 Feb 15 13:18:56 kakazza, aah I get the idea Feb 15 13:19:12 Why adding other layouts? I could just set layout_height to match_parent directly, can't I? Feb 15 13:19:17 (And I think that's going to work out) Feb 15 13:36:14 Is there a less cumbersome way of debugging on eclipse than using the logcat? Feb 15 13:36:29 Belacan: ... using the debugger? Feb 15 13:36:33 or any techniques that people have found useful? Feb 15 13:36:55 p_l: i couldnt get the debugger working Feb 15 13:37:11 something was wrong with the installation Feb 15 13:37:15 perhaps the app is in non-debug state? Feb 15 13:37:29 are you using the debugger? Feb 15 13:37:42 try attaching a debugger manually (JDWP bridge options on adb to get connection) Feb 15 13:37:45 noep Feb 15 13:37:56 currently doing shitty work in JBoss-based apps Feb 15 13:38:10 oh btw im debugging on a device Feb 15 13:38:14 not the emulator or anythig Feb 15 13:38:19 Is it normal for google to charge £9.99 for delievery of the nexus 7 I was going to order it for development. Feb 15 13:38:40 p_l: so you use the logcat? Feb 15 13:38:50 Belacan: when I do weird shit to my android devices, yes Feb 15 13:39:02 though I had in the past ran both java and gdb debuggers Feb 15 13:41:16 p_l: is this what your on about: http://developer.android.com/tools/help/adb.html Feb 15 13:41:41 my Nexus 7 is not recognized by adb :S Feb 15 13:41:48 why do they make it so complicated? Feb 15 13:42:13 spobat: are you using windows/ Feb 15 13:42:13 ? Feb 15 13:42:23 yep Feb 15 13:42:30 you have your answer Feb 15 13:42:31 Did you activated usb debugging? Feb 15 13:42:37 Sambarboz, yep Feb 15 13:42:51 ah... ,Windows... Feb 15 13:42:52 spobat: search XDA for the universal ADB driver Feb 15 13:42:56 All i need is some sort of way of seeing variables in my application as its running Feb 15 13:42:58 are you using 4.2.2? Feb 15 13:43:01 Did you installed the drivers? Feb 15 13:43:06 Leeds, 4.2.1 Feb 15 13:43:27 I didn't know 4.2.2 is already out for the nexus 7 Feb 15 13:43:34 Belacan: read the part of the docs about JDWP, and you can then connect any Java debugger this way, afaik Feb 15 13:43:36 (system-updates doesn't show anything to that) Feb 15 13:43:46 Sambarboz, *which* drivers? Feb 15 13:43:53 thanks! Feb 15 13:44:19 Belacan: the debugger in Eclipse is actually the "normal" one, just attached to JDWP endpoint over TCP Feb 15 13:44:23 spobat: ADB ones Feb 15 13:44:43 spobat: you can manually install the official update - and if you do, you'll need the newest adb, and to whitelist your dev machine Feb 15 13:44:45 spobat: Windows needs a driver + apropriate device information file telling it which devices it works with Feb 15 13:45:01 http://support.asus.com/Download.aspx?SLanguage=en&m=Nexus+7&p=28&s=2 Feb 15 13:45:01 Leeds: how do you force the manual update? Feb 15 13:45:14 ok, thanks you Feb 15 13:45:38 p_l: download it from Google and use "adb sideload" to push it to the recovery Feb 15 13:45:40 Sambarboz, yeah I have this one installed :} Feb 15 13:46:06 Leeds: hmm Feb 15 13:48:16 Leeds: thx Feb 15 13:48:27 p_l: enjoy Feb 15 13:49:11 is it possible to set image on the baseline of textView ? Feb 15 13:49:36 I want an image exactly to the left of lowercase letter Feb 15 13:49:59 Leeds: so they added ADB whitelisting? Feb 15 13:50:21 yup Feb 15 13:52:14 niiiiiceeee Feb 15 13:52:37 :} Feb 15 13:53:12 so far I was avoiding rooting till I found a way to secure it against such attack Feb 15 13:55:16 guys Feb 15 13:55:22 I have this activity: https://gist.github.com/Denommus/4960505 Feb 15 13:55:45 but the Keyboard that I created on res/xml/custom doesn't show up, only the system's keyboard. What am I doing wrong? Feb 15 13:55:57 Any Idea how i can get the Error of a DownloadManager? it is in DownloadManager.COLUMN_STATUS and this is the documenation: http://developer.android.com/reference/android/app/DownloadManager.html#COLUMN_REASON but i dont know how... Feb 15 13:57:04 Which folder-modifiers do you use to seperate between phone and small tablet (like the nexus 7) ? Feb 15 13:57:53 how can I add ABS in a legal way to a GPLv2 project (apache license and gplv2 are incompatible, as it seems)? Feb 15 13:58:15 Ge0rG: I think GPLv2 is one-way only Feb 15 13:59:04 Ge0rG: you can not Feb 15 13:59:16 maybe wharty will let you relicense it? Feb 15 14:00:13 mikedg: maybe, but what about android-support-v4.jar? Feb 15 14:00:23 Google could come and sue me!1!! Feb 15 14:01:11 zomgah Feb 15 14:01:35 ask the FSF how you can use Apache 2 jars in your GPLv2 code Feb 15 14:01:51 looks like I need to ask the apache foundation Feb 15 14:02:07 we aren't lawyers Feb 15 14:02:23 i dont think apache would give that advice either Feb 15 14:02:28 nobody is, when it comes to legal questions Feb 15 14:02:31 i resubmitted my first windows phone 8 app Feb 15 14:02:39 will i get accepte this time? Feb 15 14:02:48 mikedg: will any of us care? Feb 15 14:02:58 yes Feb 15 14:02:58 pragma-: that's very rude. I care very much. Feb 15 14:03:09 cause you will want to use my windows phone apps when android dies Feb 15 14:03:11 I am caring as hard as I can Feb 15 14:03:20 * lov strains to care Feb 15 14:03:20 as far as I know, apache license is compatible with GPL Feb 15 14:03:32 there is a meteor heading straight towards android Feb 15 14:03:37 and it's called Windows Phone 8 Feb 15 14:03:41 better tell the russians to shoot it down Feb 15 14:03:44 so, is there *really* no way to poll the standard email client for # of unread messages? Feb 15 14:03:47 and when it hits, Android is going to become a dinosaur Feb 15 14:03:48 Ge0rG: are you stuck on GPL? Feb 15 14:03:50 a dead dinosaur Feb 15 14:03:57 novie: yes Feb 15 14:04:04 mikedg: will there be fossilization? Feb 15 14:04:09 if so, will there be fragmentation of the fossils? Feb 15 14:04:14 I've heard that fragmentation is an issue Feb 15 14:04:15 Ge0rG: that sucks. Feb 15 14:04:21 there will be much fragmentation of fossils in amber Feb 15 14:04:31 Jurassic Park 5: Androids Feb 15 14:04:57 Ge0rG: shrug, just make 100% of the source publicly available to download and I don't see why anybody would complain Feb 15 14:05:11 will the robot dinosaurs learn what it means to love? Feb 15 14:05:17 no Feb 15 14:05:29 pragma-: somebody could come sniping down my apk from google play Feb 15 14:06:00 Ge0rG: you're releasing your app under the GPL. Feb 15 14:06:08 there are plenty of closed-source apps that abuse gpl code Feb 15 14:06:21 I'm not sure if you "get" what the implications of open source are. Feb 15 14:07:34 lov: I'm not sure I "get" what you are implying Feb 15 14:10:12 09:05:34 < Ge0rG> pragma-: somebody could come sniping down my apk from google play Feb 15 14:10:34 GPLv2 requires that you publish your source, and that anyone can freely use it however they wish Feb 15 14:10:37 Guys. If you want to realease two version of the same app (example one with ads one without) would you update every app for its own? for example: if you find a bug in the ad-free version, will you have to update the ad-version the same way or is there something to make this easy? Feb 15 14:10:45 there's no way for you to prevent them from pulling your sources and making their own version to put on play. Feb 15 14:10:52 it's an explicitly allowed use case of the license Feb 15 14:11:26 Styler2go: you should probably update both versions, but really you should have the core code live in a library, and just have front-end apps for ads/no-ads each that use that library Feb 15 14:11:27 although they can't claim ownership... Feb 15 14:11:37 Styler2go: why not use in-app billing and just ship one app? Feb 15 14:11:55 hmm Feb 15 14:11:55 this ad-free versionw as just an example Feb 15 14:11:58 "1 star dev is greedy free app demands money fu dev" Feb 15 14:12:07 the command line debugging seems more tedious than logcat Feb 15 14:12:11 if I want to make ONE activity layout for ONE specific device, which is xperia ST18i, what do I have to do? Feb 15 14:12:13 is there no other way? Feb 15 14:12:22 I think he was referring to lawyers shutting down his app, not others copying and upstaging it Feb 15 14:12:30 lov: thats all correct, but misses the point. the problem is that by violating apache license terms by including ABS in my GPLv2 app, somebody else might come and kill it Feb 15 14:12:35 squ: include ONE xml file. Feb 15 14:12:38 heh Feb 15 14:12:47 Ge0rG: oh, ok, I misunderstood. Feb 15 14:12:52 xperia resolution (from wikipedia) is 3.3" TFT / 854?480 pixels (FWVGA) Feb 15 14:13:00 Ge0rG: you can always just roll your own. Feb 15 14:13:03 Ge0rG: if you're at all unclear about the licensing and how to handle this, I'd very strongly recommend contacting the FSF or Apache for advice. Feb 15 14:13:07 novie: roll my own play store? Feb 15 14:13:08 eclipse have 3.7" 480x854 FWVGA Feb 15 14:13:11 * novie hate GPL :) Feb 15 14:13:12 They're going to give you way, way better advice than we can Feb 15 14:13:13 wtf? Feb 15 14:13:24 Ge0rG: clearly I meant ActionBar implementation :) Feb 15 14:13:36 novie, what is the name of layout directory? Feb 15 14:13:36 squ: Frankly, the best way to handle this might be a runtime check for what build characteristics the device has, and to load an entirely separate layout if it's an xperia whatever Feb 15 14:13:46 squ: layout/ Feb 15 14:13:47 I don't think that the resource system handles exact device specific stuff Feb 15 14:13:55 lov: they wrote down their advice at http://www.apache.org/licenses/GPL-compatibility.html Feb 15 14:13:57 only general things like particular resolutions/versions/etc Feb 15 14:14:00 novie, layout-854x480? Feb 15 14:14:09 novie: and also my own android-support-v4.jar? Feb 15 14:14:28 lov, I'd like to easiest (fastest) way around that problem Feb 15 14:14:41 squ: and I told you what my suggestion is. Feb 15 14:14:42 squ: it would be layout-hdpi I believe Feb 15 14:14:56 squ: Do you have the hard requirement that this layout must ONLY be displayed for that device? Feb 15 14:15:00 or is it ok to display it for other devices? Feb 15 14:15:06 but is it possible to use specific layout-dir? Feb 15 14:15:14 sure Feb 15 14:15:23 lov, it is for only that device Feb 15 14:15:25 but only for general terms, such as resolution, version, density, etc. Feb 15 14:15:27 ok Feb 15 14:15:32 squ: so do what lov said Feb 15 14:15:40 if it must ONLY be shown for that device and for no other devices, then you really have no choice but to create an entirely separate layout Feb 15 14:15:45 hack it to check at runtime and load some other layout file Feb 15 14:15:49 the resource system simply does not handle this usecase Feb 15 14:15:59 so you're going to have to check the device at runtime and load the correct layout file yourself Feb 15 14:16:09 doesn't matter much, I'll just copy existing and modify margins Feb 15 14:16:30 squ: keep in mind that this is far from the correct solution to whatever problem you have with this device. Feb 15 14:16:49 and I dont have that device :) Feb 15 14:17:03 best of luck with testing then :D Feb 15 14:17:06 :) Feb 15 14:17:21 just disable it in the market then Feb 15 14:17:24 problems ignored! Feb 15 14:17:28 hahaha Feb 15 14:17:38 problem is that if I supply -- client with xperia tells me that image is "too high" Feb 15 14:17:46 that is because the letter is lowercase Feb 15 14:18:04 and image is centered to uppercase letter Feb 15 14:18:24 of maybe TextViews total height Feb 15 14:18:29 squ: you probably have that problem on a bunch of devices. Feb 15 14:18:38 :) Feb 15 14:18:42 I'm not Feb 15 14:18:51 client is not satisfied Feb 15 14:18:54 squ: You may wish to simply get that device, or ask the client to send that device. Feb 15 14:19:12 squ: do you actually have a device? Feb 15 14:19:29 lov, unrealistic Feb 15 14:19:30 wuhu i am rich! 2 guys donated 1$ each for my app ! :D Feb 15 14:19:38 If you can't create an emu image that has the device characteristics, you may not be able to easily solve the problem. Feb 15 14:19:42 novie, nope Feb 15 14:19:50 okay, 4.2.2 update loading Feb 15 14:19:52 Styler2go: feels great, doesn't it Feb 15 14:19:59 yes :) Feb 15 14:20:06 only 2 € but feels good Feb 15 14:20:11 Styler2go: wheneve ri get donations i usually get something "big" Feb 15 14:20:12 4.2.2 for which device? Feb 15 14:20:19 i got 40, a few 20's Feb 15 14:20:42 what exactly means slider here? https://dl.dropbox.com/u/6559846/slidr.PNG Feb 15 14:20:54 Styler2go: N4 Feb 15 14:20:57 lov, emulator has 3.7" 854x480 Feb 15 14:21:04 is it out? :o Feb 15 14:21:41 but wiki Feb 15 14:21:45 http://en.wikipedia.org/wiki/Sony_Ericsson_Xperia_ray Feb 15 14:21:56 squ: you realize that you can actually tell the emulator exactly what characteristics you would like, right? Feb 15 14:22:23 spobat: I have no idea because I have no idea where that dropdown is even from. Feb 15 14:22:28 Is that for layout preview or something? Feb 15 14:22:31 lov, from the avd manager.. a list of devices Feb 15 14:22:50 squ: so, create a new device. Feb 15 14:22:58 damn.. its not out for me :( the 4.2.2 update.. Feb 15 14:22:59 actually, go to the "Device Definitions" tab Feb 15 14:23:05 lov, from Eclipse Feb 15 14:23:14 the plugin layout preview :} Feb 15 14:23:14 spobat: yeah you really have to be more specific there. Feb 15 14:23:26 someone apparently asked me for a refund from 4 years ago :/ Feb 15 14:23:30 that they already refunded Feb 15 14:23:31 over the layout preview, there are various buttons, right? Feb 15 14:23:32 squ: Go to Device Definitions tab, and click "new". Create a device definition with the appropriate content. Feb 15 14:23:33 4 years ago Feb 15 14:23:33 wtf Feb 15 14:23:46 for choosing a device ratio, landscape/portrait,.. etc Feb 15 14:23:51 mikedg: is it tommy asking for a refund from i am richer? Feb 15 14:24:02 lov, where do I get that tab? Feb 15 14:24:22 Eclipse -> Window -> Android Virtual Device Manager Feb 15 14:24:29 Tabs at the top are "Android Virtual Devices" and "Device Definitions" Feb 15 14:24:40 if you don't see these, update your SDK and ADT Feb 15 14:25:06 lov, know what I mean? :P Feb 15 14:25:27 spobat: yes, I understand what you mean. I'm not really sure what the question is, since it seems self explanitory Feb 15 14:25:31 p_l: where do you live? Feb 15 14:25:36 spobat: really, try clicking different options and see what happens Feb 15 14:25:44 I don't get what "slider" here means Feb 15 14:25:59 maybe that the device has a keyboard to slide up? Feb 15 14:26:04 yes, exactly Feb 15 14:26:10 so that you can slide up the screen i mean Feb 15 14:26:10 the device changes its physical configuration Feb 15 14:26:19 example is the ADP1, where you could slide the screen up to reveal a hardware keyboard Feb 15 14:26:30 ah, okay Feb 15 14:27:26 Styler2go: Poland Feb 15 14:27:31 but I sideloaded the update Feb 15 14:28:08 Anybody know why the Content-Length header is omitted from the response of the get request? Feb 15 14:28:09 sideloaded? Feb 15 14:28:13 Its simply not there... Feb 15 14:28:34 In the prg.apache.httpclient Feb 15 14:28:38 *org Feb 15 14:28:44 http://en.wikipedia.org/wiki/Sony_Ericsson_Xperia_ray Feb 15 14:28:47 Styler2go: download OTA package, boot to recovery, select "ADB sideload" in recovery menu, execute "adb sideload OTA_package.zip", reboot :) Feb 15 14:28:48 what is density of that? Feb 15 14:29:05 ah yeah Feb 15 14:29:10 but Feb 15 14:29:18 what Buttos: [Software, Hardware] mean? Feb 15 14:29:27 where to get the ota package?^^ Feb 15 14:30:09 diki: no, not offhand, that's pretty strange. Check stackoverflow? Feb 15 14:30:11 got it.. i will do it Feb 15 14:30:20 It's possible that apache.httpclient would omit it if it was -1 or something? Feb 15 14:30:52 Well getContentLenght is -1 yes Feb 15 14:31:07 anyone know the command to tell the andorid sdk manager to download all the platforms? Feb 15 14:31:10 But when enumeratig the response headers its not there Feb 15 14:31:13 via command line Feb 15 14:31:23 FWVGA is what? xhdpi, hdpi ? mdpi? Feb 15 14:31:57 none of the above Feb 15 14:32:04 it's a screen resolution, not a density Feb 15 14:32:14 resolution and density are two different things Feb 15 14:32:18 thanks for the tip p_l Feb 15 14:32:54 diki: not sure what to suggest, sorry. Try disabling gzip compression (or whatever causes the indeterminate content length) and see if it appears. If it does, it's a strong suggestion that it's tied to the content length being -1 Feb 15 14:33:00 diki: you can always dig into the source too Feb 15 14:33:03 lov, 3.3" 16,777,216 colour TFT / 854?480 pixels (FWVGA) Feb 15 14:33:06 what is that? Feb 15 14:33:07 :) Feb 15 14:33:15 xhdpi? Feb 15 14:33:35 squ: get out your calculator and figure it out. dpi refers to pixel density. Feb 15 14:33:43 ah Feb 15 14:33:45 I see Feb 15 14:33:55 x means factor 2? Feb 15 14:33:57 dpi stands for "dots per inch" Feb 15 14:34:07 xhdpi is 2x mdpi Feb 15 14:34:11 if that's what you mean Feb 15 14:34:20 I THINK that mdpi is 160, hdpi is 240, xhdpi is 320 Feb 15 14:34:22 but you should check that Feb 15 14:34:26 mdpi is how much pixels? Feb 15 14:34:26 lov: source of? Feb 15 14:34:37 diki: The source code of the class that you're using Feb 15 14:34:43 squ: see above, I just told you Feb 15 14:35:07 Well that wouldnt be very useful. Feb 15 14:35:17 why? Feb 15 14:35:30 obviously it's excluding a header, you could figure out how/why there. Feb 15 14:41:21 p_l: Sideload is not working for me >.< Feb 15 14:43:36 Do you know how I can obtain the version of the httpclient library I am using? Feb 15 14:44:13 Styler2go: did you get into recovery menu? Feb 15 14:44:22 (also, that's N4 guide) Feb 15 14:44:46 yeah, thats working fine, but while its verifying the system it gets an error Feb 15 14:45:07 in the NfcNci.apk Feb 15 14:45:11 under /system/app Feb 15 14:45:21 did it start the update, or is it in loading it? Feb 15 14:45:31 if it's the latter, you got a corrupted update package Feb 15 14:45:39 before it starts it verifiys the system Feb 15 14:46:02 yeah, then you got a corrupted update package Feb 15 14:46:05 redownload it Feb 15 14:46:08 maybe because i changed the NfcNci? Feb 15 14:46:20 did you change it in the update package? Feb 15 14:46:24 do you have a link from where you loaded it? Feb 15 14:46:40 no, i changed it some weeks ago in my device Feb 15 14:46:46 erm... you're saying the update is failing in the NfcNci.apk, which you changed, and you don't know why? Feb 15 14:46:47 to enable nfc in sreenoff Feb 15 14:46:47 aah Feb 15 14:47:01 http://android.clients.google.com/packages/data/ota/google_mako/de8b8d101614.signed-occam-JDQ39-from-JOP40D.de8b8d10.zip <--- this only works if you update from stock JOP40D Feb 15 14:47:05 as the name says Feb 15 14:47:12 because it has deltas instead of full image Feb 15 14:47:20 shockingly, if you're not running the stock OS, you can't use a stock updater Feb 15 14:47:55 now it tells me error: closed in console :D Feb 15 14:50:21 p_l: Yout package tells me the same error Feb 15 14:51:00 "assert faile: apply_patch_check("/system/app/NfcNci.apk")" Feb 15 14:53:52 i have JOP40D Feb 15 14:54:13 Styler2go: you don't have JOP40D, you have *modified* it Feb 15 14:54:19 now you need a full system image Feb 15 14:54:35 can you send me your NfcNci? :D Feb 15 14:55:04 not now Feb 15 14:55:15 i will ask my co worker he has the same phone Feb 15 14:56:10 Is it possible to use a class as a variable? I want to be able to do something like: Intent notificationIntent = new Intent(arg0, ); Feb 15 14:56:32 So I can use it in an if to modify which activity is loaded Feb 15 14:56:46 ... yes. Learn java first? Feb 15 14:57:26 afk Feb 15 14:59:32 p_l: If you read this, i will just use this: https://developers.google.com/android/nexus/images#occam Feb 15 14:59:52 Would this work? Feb 15 14:59:55 kungpao: yeah, you really ought to learn Java before doing android development. Feb 15 15:00:03 dont listen to these guys Feb 15 15:00:14 tons of people dont understand java but manage to land cushy android gigs Feb 15 15:00:14 Class Intnt; if (message.contains("Option")) { Intnt = CustomizedListView.class; } else { Intnt = Moofi.class; } Intent notificationIntent = new Intent(arg0, Intnt); Feb 15 15:00:22 yeah, you want to use a pastebin chief. Feb 15 15:00:43 also, yes, that's one way to do it. Feb 15 15:00:44 kungpao: that's some of the worst code and naming conventions I've ever seen Feb 15 15:01:05 though you should probably rename "Intnt" to "clazz" or something Feb 15 15:01:10 And yet, everything is commented so anybody who would read it would be able to deceipher it Feb 15 15:01:28 Thanks lov Feb 15 15:01:32 what is a Moofi Feb 15 15:02:10 A deal site Feb 15 15:03:05 is it an actvitiy, a service? Feb 15 15:03:38 Activity Feb 15 15:03:54 and CustomizedListView is an activity? Feb 15 15:04:20 Correct Feb 15 15:04:45 What is is doing: Checking a push notice to see what type of deal it is by the text Feb 15 15:05:12 And changing the activity it loads based on the message Feb 15 15:06:37 instead of confusing the shit out of anyone who will ever look at your code Feb 15 15:07:32 try Intent intent = new Intent(); if (message.contains("Option)){ intent.setClass(arg0, CustomizedListViewActivity.class);} else { intent.setClass(Muppet.class);} Feb 15 15:08:20 alternately, intent.setClass(arg0, message.contains("Option") ? CustomizedListViewActivity.class : Muppet.class); Feb 15 15:08:28 bam ternary Feb 15 15:08:29 what now Feb 15 15:08:38 bring it Feb 15 15:08:43 ternaries are worse than goto Feb 15 15:09:45 Missing " on Option, but I think that will work Feb 15 15:10:37 and arg0, on Muppet.class Feb 15 15:10:47 good job Feb 15 15:10:56 you are on your way to becoming a real codfisherman Feb 15 15:11:16 Yeah, used to vb.net and php/mysql Feb 15 15:11:25 I've always been afraid of java Feb 15 15:11:44 me too Feb 15 15:11:51 java was architected by a child rapist Feb 15 15:11:57 which kind of turned me off to the whole thing Feb 15 15:12:44 erm... Feb 15 15:15:52 it kind of turned leeds on to the whole thing Feb 15 15:15:54 badumpsh Feb 15 15:28:05 in java can doubles be written in a form like 5E-3? Feb 15 15:28:42 Why not try it Feb 15 15:28:46 good question, i don't know. Try it and see if the compiler belches? Feb 15 15:30:34 well its not underlined in red Feb 15 15:30:37 so must be ok right? Feb 15 15:30:40 or must i run the app? Feb 15 15:30:45 try it and see :D Feb 15 15:30:50 haha Feb 15 15:31:10 i guess ill see when i finish writing this method :) Feb 15 15:31:15 and ill come back and let y'all know! Feb 15 15:36:33 lov: what's wrong w/this that it always crashes? public String sUrl = getString(R.string.url); Uri uriUrl = Uri.parse(sUrl); Intent launchBrowser = new Intent(Intent.ACTION_VIEW, uriUrl); Feb 15 15:36:59 but if i put the url into the intent, "www.google.com" - works fine Feb 15 15:37:33 http://imgur.com/jacoj Feb 15 15:38:12 getString(R.string.url) is returning null? Feb 15 15:38:27 what SimonVT said Feb 15 15:38:39 That'd probably return an exception saying something like resource not found Feb 15 15:38:45 If it didn't exist Feb 15 15:39:16 omg IO tickets are available Feb 15 15:42:38 no it's not >:( Feb 15 15:42:46 s/it's not/they aren't/ Feb 15 15:44:28 yeah sold out already Feb 15 15:46:04 I'm using a from ArrayAdapter derived ListAdapter, yet the background of the *pressed* list item is no what's expected. Feb 15 15:46:05 https://dl.dropbox.com/u/6559846/s3.PNG Feb 15 15:46:20 It is totally blue, without any transparency. Feb 15 15:46:37 However, on another list, I achieve exactly this. Feb 15 15:46:48 but unluckily, I have no idea what's made different there :O Feb 15 15:49:23 You should probably find out then Feb 15 15:50:40 hm.. Feb 15 15:50:54 spobat: you write like a frail old man Feb 15 15:51:09 It's very hard to explain that, I know ;) Feb 15 16:03:29 Ge0rG, i tryed simplytapp Feb 15 16:03:45 Ge0rG, it's something like that i d like to do Feb 15 16:04:08 Ge0rG, but no source code is available Feb 15 16:04:55 xZwhite: no, but with the blog post you linked to it should be not too hard Feb 15 16:04:58 [15:44:29] yeah sold out already Feb 15 16:04:59 troll Feb 15 16:05:27 for a canadian you sure are not friendly Feb 15 16:05:46 that's a fair point Feb 15 16:05:51 there's no syrup on that pancake there Feb 15 16:07:00 pancake batter Feb 15 16:08:23 gross Feb 15 16:10:44 assault and pancake battery Feb 15 16:12:36 i succeed doing what is said in the blogpost and trying this code : http://stackoverflow.com/questions/12955919/enabling-cardemulation-on-android-ics-with-nfc-extras Feb 15 16:12:46 Ge0rG, i succeed doing what is said in the blogpost and trying this code : http://stackoverflow.com/questions/12955919/enabling-cardemulation-on-android-ics-with-nfc-extras Feb 15 16:13:39 Ge0rG, but i can't know if it works or no. according the logcat, i have no error but nothing concrete seems to happen in front of a rfid reader Feb 15 16:14:37 I wish I could walk that route without having the NFCEE signature Feb 15 16:17:50 xZwhite: it's likely better if you had 2 devices Feb 15 16:18:08 i have 2 devices too... Feb 15 16:18:17 2 nexus Feb 15 16:18:25 and a usb rfid reader Feb 15 16:19:10 even when the card emulation mode is *disabled *, nfc-list (if u are familiar with it)detect something Feb 15 16:19:52 mikedg, Ge0rG, 2 nexus, and a usb reader even when the card emulation mode is *disabled *, nfc-list (if u are familiar with it)detect something Feb 15 16:29:27 does anyone have any experience with the GregorianCalendar? Feb 15 16:30:15 specifically, if I use System.currentTimeMillis() and create a Calendar object with it, but want to modify it to rewind back to the previous midnight Feb 15 16:30:42 could I just call like ... cal.set(Calendar.HOUR_OF_DAY, 0), cal.set(Calendar.MINUTE, 0), etc? Feb 15 16:30:49 and then cal.getTimeInMillis()? Feb 15 16:32:39 tnzr, i did that like... yesterday lol Feb 15 16:33:13 just bear in mind that currentTimeMillis() gives you a time in UTC (right?), but GregorianCalendar will use the device's local timezone for everything Feb 15 16:33:30 so setting the hour/minute/second to 0 is going to set it to midnight in the local time zone Feb 15 16:35:04 canadiancow: i am working with a canadian now Feb 15 16:35:19 oh? Feb 15 16:35:28 i'm working with an american Feb 15 16:35:34 cool Feb 15 16:35:38 it's like we are working otgether Feb 15 16:35:43 basically Feb 15 16:39:38 im getting an out of memory error Feb 15 16:39:45 is there anyway to manually remove large objects? Feb 15 16:44:14 dont make them? Feb 15 16:44:31 pragma-: did you see my post to you the other day? Feb 15 16:44:48 s/post/message (in this channel)/ Feb 15 16:47:35 Belacan, "manually"? just remove all references to them, and they will absolutely go away before you hit an OOM Feb 15 16:47:50 if your app tries to allocate more memory than is available, it triggers a full GC Feb 15 16:47:50 not bitmaps bitch Feb 15 16:47:59 on 3.0+ yes Feb 15 16:48:24 not on <3.0 bitch Feb 15 16:48:36 so talk to the hand Feb 15 16:48:39 fair enough, and don't call me a bitch Feb 15 16:48:50 i think Bitmap#recycle() can help the process though Feb 15 16:48:56 don't tell me what to di Feb 15 16:49:02 * canadiancow sighs Feb 15 16:49:30 * mikedg hugs canadiancow Feb 15 16:49:35 <3 Feb 15 16:49:46 you are my favorite canadian, next to Robin Sparkles Feb 15 16:49:54 LOL Feb 15 16:50:04 i think she was modeled after a real pop star Feb 15 16:50:18 every pop star Feb 15 16:50:19 I'm backing up my phone before wiping and sending in for service - is /mnt/shell/emulated/0 the only directory I should worry about? Feb 15 16:51:05 mikedg, http://en.wikipedia.org/wiki/Alanis_Morissette Feb 15 16:51:10 jrr: that depends on what you want to back up Feb 15 16:51:14 jrr: adb backup Feb 15 16:52:13 canadiancow: ah, cool! Feb 15 16:52:19 I was pulling directories with DDMS Feb 15 16:52:52 unfortunately, apps can - and do - mark themselves as being unbackupable Feb 15 16:54:21 whoops, "Now unlock your device and confirm the backup operation." Feb 15 16:54:51 the screen is shattered and touch doesn't work.. can you unlock via adb? Feb 15 16:55:37 you need to be able to touch the screen to do adb backup Feb 15 16:55:44 well, crap Feb 15 16:55:50 don't suppose there's some way to emulate touch over usb Feb 15 16:55:55 there is Feb 15 17:04:36 Leeds: given that I can't (easily) adb backup, any paths I'm likely to care about other than /mnt/shell/emulated/0 ? Feb 15 17:04:50 are you rooted? Feb 15 17:04:55 nope Feb 15 17:04:58 stock nexus 4 Feb 15 17:05:12 then you can't really touch anything else anyway Feb 15 17:05:18 alright Feb 15 17:05:34 I wonder if I could plug in a mouse with USB OTG, and unlock the screen with that Feb 15 17:06:26 eh, got the photos, which is all I really care about. time to wipe! Feb 15 17:06:36 nexus 4 doesnt support otg Feb 15 17:06:50 oh. Feb 15 17:06:51 it supports bluetooth, but you'd need to touch the screen for that Feb 15 17:07:17 jrr: you can definitely fake touch events via usb, but I don't know if it's worth it Feb 15 17:08:27 I want to get this in the mail to get it replaced. How can I wipe via adb? I see references online to recovery --wipe_data Feb 15 17:11:38 Still no answer to my problem with httpclient not returning a content length header.. Feb 15 17:11:52 From an httpget request Feb 15 17:17:36 diki, that's liekly because the server isn't returning it Feb 15 17:17:44 can anyone recommend some books (or other sources) that go into detail on how to make a great android app for iOS devs? Feb 15 17:18:12 msch, hi Feb 15 17:18:12 msch, http://d.android.com is your best resource Feb 15 17:18:28 i know a good book for android beginners Feb 15 17:18:46 its a good book Feb 15 17:19:02 you just gotta know your java basics Feb 15 17:19:15 canadiancow: ok thanks. i know about that :) but i only used it for api reference s ofar Feb 15 17:19:19 linuxuz3r_: which book? Feb 15 17:19:33 i still have my java 5 book from college Feb 15 17:19:38 .... still haven't opened it :P Feb 15 17:19:43 hello android is a decent first android book Feb 15 17:19:46 basic but decent Feb 15 17:19:51 Beginning android 4 application development Feb 15 17:19:57 i think i actually have hello android Feb 15 17:20:09 iv got loads Feb 15 17:20:17 sams 24 hours is decent too Feb 15 17:20:31 i looked through the ToC of hello android. it doesn't seem to mention stuff like "fragments. how to do fancy animations with them" and other stuff Feb 15 17:20:35 ... i might have that one too :P Feb 15 17:20:41 msch, http://developer.android.com/design/index.html is great to get an idea of what an app should look like, and how it would behave Feb 15 17:20:48 I'm decent at writing a simple android app, but I'd like something that looks and feels gorgeous. Feb 15 17:20:52 canadiancow: cool thanks! Feb 15 17:21:02 and http://developer.android.com/training/index.html has tutorials for lots of different things Feb 15 17:21:27 msch, beginning android 4 application development has section that talks about fragments heavily Feb 15 17:21:45 brb smoking Feb 15 17:22:02 thanks! Feb 15 17:22:32 what's everyone's opinion on http://commonsware.com/Android/ ? Feb 15 17:23:03 honestly i don't learn from books, i've read a few for "light reading" but mostly i learn by doing Feb 15 17:23:24 yeh but you cant do much without a reference Feb 15 17:23:30 i suppose Feb 15 17:23:34 tophathacker: me too, but I need some conceptual overview of how stuff works. something that's not patronizing and expects me to not know Java or be unable to read API docs Feb 15 17:23:36 but my reference is in other languages Feb 15 17:23:43 you need some kind of document, be it a tutorial online or website or book Feb 15 17:24:16 a good IDE that gives you the 'dot-completion' is a GREAT teaching tool Feb 15 17:24:25 link in the javadocs for methods and you're good to go in my book Feb 15 17:24:34 'my book' = not a real book Feb 15 17:24:35 i dont like code completion Feb 15 17:24:58 ... why? cause it means you don't know what you're coding? Feb 15 17:25:23 a guy i knew in college was like that.. always turned it off. Feb 15 17:25:24 they always seem to complete the wrong thing Feb 15 17:25:35 i prefer to just copy and paste stuff if i need to Feb 15 17:25:51 and typing things out helps me learn too Feb 15 17:25:57 ha well there are some quirks .. but i'm glad you're not against it 'on principal' Feb 15 17:26:20 no im not some kind of hipster elitist Feb 15 17:26:28 just hasn't been practical for me in my experience Feb 15 17:26:46 fair enough :) Feb 15 17:28:16 heh... hipster elitist Feb 15 17:28:27 lol Feb 15 17:28:41 my pants are of the correct size thank you very much Feb 15 17:28:54 good to hear Feb 15 17:29:06 my brother however, has some sizing issues Feb 15 17:29:12 AND he's a cop. just wrong. Feb 15 17:30:02 haha Feb 15 17:31:20 seeking suggestion: when the device rotate I need to check if it's landscape, if not close the activity and open another one with clear top passing it new intents... which is the better way to do so? Feb 15 17:33:36 uhh mastroWork theres an override you want Feb 15 17:33:37 just a sec Feb 15 17:34:08 ... clear top? Feb 15 17:34:11 like the image is clear? Feb 15 17:34:45 could make a different layout for horiz and vert Feb 15 17:38:29 I have a layout question. On tablet, my font sizes are very tiny. I have them set in the layout using dip, however they don't seem to scale Feb 15 17:39:59 Use sp for fonts Feb 15 17:40:07 But what do you mean by scale Feb 15 17:40:21 kungpao: your tablet probably has a higher dpi Feb 15 17:40:29 you can make different layouts for different screen sizes Feb 15 17:41:40 16dp is the same size on a tablet as it is on a phone Feb 15 17:41:57 Same with 16sp, providing the scale is the same (which is user-defined) Feb 15 17:42:48 How can I get screen size from inside of lazyadapter? Feb 15 17:43:32 For reference, this is what I am pretty much working with Feb 15 17:43:32 http://www.androidhive.info/2012/02/android-custom-listview-with-image-and-text/ Feb 15 17:51:18 dont do that Feb 15 17:51:26 create a dimen resource Feb 15 17:51:35 and put it into size appropriate values buckets Feb 15 17:52:20 hi! I have just downloaded a source code from google-code that its target sdk was 8 (Android 2.2). I didn't have installed this so I proceed with sdk manager to download it. It finished and some ad/warning (my fault for not reading it) appeared. Now, the rest of my projects lost their API and they were working good!! I am bit lost guys... please a bit of help Feb 15 17:52:36 tophathacker, nope I know about cleartop... I'm talking about detecting what I have to do. Let me try to explain better Feb 15 17:53:01 canadiancow: really now? Feb 15 17:53:23 nep1x: next time just change the target Feb 15 17:53:27 canadiancow: google not following the http 1.1 specification? Feb 15 17:53:33 Tablet: 2 fragment side by side (to semplify), 2 activity. In landscape I only use the first activity with the 2 fragments, in portrait I navigate between those two activities (1 fragment each) Feb 15 17:54:08 When I'm in Portrait mode on the "second activity" and rotate the device I want it to close and open the first one with clear top + new intent Feb 15 17:54:26 You don't need two activities for that Feb 15 17:54:55 That far I've gone.. I used the layout.. I check on the second fragment if an view with a particular ID is present, if it is I close it with clear top Feb 15 17:55:00 now the difficult part... Feb 15 17:55:41 from landscape (first activity) if I rotate I should go back to the second activity (open it) if I was there before, stay on the first activity if I wasn't Feb 15 17:55:51 tophathacker, ^ Feb 15 17:57:41 diki, i know i've seen that before Feb 15 17:57:47 I can override the finish method of the second activity and clearTop again with an extra, maybe.. don't like it very much.. but should work Feb 15 17:57:56 that's why I'm asking for "the better way of doing it" Feb 15 17:58:03 does it work if you use a different client lib? Feb 15 17:59:24 Well, I havent tried anything besides the integrated in the sdk Feb 15 17:59:36 there are multiple clients in the sdk :P Feb 15 17:59:44 Like? Feb 15 18:00:07 AndroidHttpClient Feb 15 18:00:30 uh... Feb 15 18:00:31 So, I'm a general java developer who is learning android app development. I feel like I am looking at trees rather than a forest. What sorts of things have people developed/found themselves wanting to make? Feb 15 18:00:39 i think theres at least one more Feb 15 18:00:39 Python trademark at risk in Europe: We need your help! http://pyfound.blogspot.ca/2013/02/python-trademark-at-risk-in-europe-we.html Feb 15 18:00:50 mr0wl, please don't advertise that in here Feb 15 18:01:15 diki, http://android-developers.blogspot.com/2011/09/androids-http-clients.html Feb 15 18:01:18 canadiancow: that is what I am using Feb 15 18:01:36 The org.apache.httpclient Feb 15 18:01:49 try HttpURLConnection and see if you get a size Feb 15 18:03:02 Depending on what you want, the http-requests library might make things more convenient Feb 15 18:03:46 I wanted to avoid using many libraries Feb 15 18:03:55 I am already using jsoup Feb 15 18:05:25 Plus if content length worked everything will be complete Feb 15 18:05:40 Progressbar, speed calculation Feb 15 18:07:59 Guess I will have to consult stackoverflow Feb 15 18:19:40 Why do you want to avoid using many libraries that make your code less and your life easier? Feb 15 18:19:52 This library in specific is 20KB iirc Feb 15 18:20:05 And throws only one kind of exception instead of many. Feb 15 18:23:21 to be fair, libs can make small apps huge Feb 15 18:23:36 i have an app that uses ABS and VPI, and it's like 600KB Feb 15 18:23:42 it would probably be 50KB without them Feb 15 18:23:52 and it means i have to make sure they're up to date, etc Feb 15 18:24:05 that being said, i have obviously chosen to use them, so i do see the benefit Feb 15 18:24:17 Are there any tools to allow multiple apps which use the same libs to share them/pathwise? Feb 15 18:24:46 look at google play services Feb 15 18:25:04 it's definitely possible, but it leads to other issues Feb 15 18:25:14 like it makes it impossible to break the public api on the lib Feb 15 18:25:16 Same in C. I used curl, libxml2 and pthreads Feb 15 18:25:20 Too many libs Feb 15 18:26:48 canadian: But if it's a general-purpose lib I wish to work with...I see there already is a maven plugin for android. Feb 15 18:29:49 oh you mean share them at build time? sure Feb 15 18:30:15 you can either point two projects at one lib project or jar on your disk Feb 15 18:30:25 or you can just have two copies of the repo (one for each project that uses it) Feb 15 18:30:35 i'm unfamiliar with maven though Feb 15 18:32:41 MagicJuggler: the ant build system allows this. Feb 15 18:33:00 it isn't the best solution but you basically specify the path to a library project. Feb 15 18:33:34 Hrm, sounds like a potentially useful tool though. Feb 15 18:33:35 if it is a jar you are talking about, I think ya burnt. Not sure if you can store them anywhere else other than libs/ without causing yourself lots of pain. Feb 15 18:33:46 Aha, fair enough. Thanks Feb 15 18:33:59 hey so I am trying to put an image in an ImageView dynamically, how do I do that? I have ImageView image = (ImageView) v.findViewById(R.id.pPicture); ...Now I want to put an image in that ImageView. Feb 15 18:34:02 I switched over to maven recently for all my android stuff. It is more sane than ant. Feb 15 18:34:49 i've played with maven but only for other projects, never my own Feb 15 18:35:10 I've never gotten to the point where i needed a build script Feb 15 18:35:37 in terms of continuous integration it has made my life easier. Feb 15 18:36:24 KillmeSoftly: there's several setImage* methods. Feb 15 18:36:43 have a look at the ImageView documentation Feb 15 18:38:19 canadiancow: sorry for the late reply..thanks for your advice! Feb 15 18:39:21 ant is a toy Feb 15 18:39:44 okay thank novie Feb 15 18:39:47 thanks* Feb 15 18:40:08 novie: how is maven + android + eclipse? work together? or more in parallel? Feb 15 18:40:18 I think theres an eclipse plugin Feb 15 18:40:34 btw anyone try gradle? Feb 15 18:40:45 i hear thats what googles new android build system is based on Feb 15 18:40:46 looks barely started Feb 15 18:40:50 setImageDrawable that would work correct? Feb 15 18:41:01 the google new system, not gradle (which is clearly good) Feb 15 18:41:35 its not based on gradle? Feb 15 18:41:39 fredcooke: I don't use eclipse Feb 15 18:41:43 ok Feb 15 18:41:51 but I assume it is probably good. Feb 15 18:41:54 @novie - what do you use as an IDE? Feb 15 18:41:58 IntelliJ Feb 15 18:42:03 ok Feb 15 18:42:13 m2e in juno is pretty good, i was more wondering about the combo Feb 15 18:42:24 do you like it better than eclipse? Feb 15 18:42:32 more* Feb 15 18:42:54 matt9_: we're investigating gradle internally, but it's definitely in a "not ready for public consumption" state Feb 15 18:43:07 it does, however, look very promising in solving some issues we'll have Feb 15 18:43:20 cool Feb 15 18:43:33 canadiancow: not advertising, saving hacking culture bro Feb 15 18:43:33 mavens cool, but so much xml sigh Feb 15 18:47:05 Is this the right forum to ask why my changes to gummiboot aren't being recognized? Feb 15 18:48:17 mm, gummibears Feb 15 18:48:39 mr0wl, regardless, please don't. it's not related to android Feb 15 18:48:47 trueskew, what is gummiboot Feb 15 18:48:53 also, SimonVT +1 Feb 15 18:49:44 It's a boot menu that's been added in front of some droidboots to let you pick options, like recovery or fast boot. Feb 15 18:50:06 Sounds like #android-root Feb 15 18:50:56 I'll try there, thanks Simon Feb 15 18:54:17 is the only way to allow scrolling on a layout to make a ScrollView? (if you haven't figured it out i'm relatively new to android development) Feb 15 18:54:35 or ListView or something Feb 15 18:54:46 but on an arbitrary view, yes, use a scrollview Feb 15 18:55:24 k - thanks canadiancow +5 Feb 15 18:58:13 if I make my top-level layout a scrollview then can I put a RelativeLayout inside it? I hope I phrased that correctly. Feb 15 18:59:18 hi Feb 15 18:59:40 what are services in android? Feb 15 19:00:30 is it like a daemon Feb 15 19:01:03 i believe so, but hopefully a more advanced android developer can answer that Feb 15 19:01:38 android development documents has a doc on that Feb 15 19:01:38 linuxuz3r_: http://developer.android.com/guide/components/services.html Feb 15 19:01:44 ^ Feb 15 19:02:09 linuxuz3r_: it is important to note that a Service is NOT created on a background thread. Feb 15 19:02:24 you'll be responsible for that yourself Feb 15 19:02:29 novie: IntentService is, though :) Feb 15 19:02:30 I'm getting this error while trying to run the softkeyboard sample "error: No resource identifier found for attribute 'imeSubtypeLocale' in package 'android' method.xml /SoftKeyboard/res/xml line 26 Android AAPT Problem" Feb 15 19:02:36 @novie - so does that mean you can not run network operations on a service? Feb 15 19:02:43 KillmeSoftly: correct Feb 15 19:02:47 and the ame error again, but with imeSubtypeMode Feb 15 19:02:48 k thanks Feb 15 19:03:00 well Feb 15 19:03:01 you can Feb 15 19:03:05 but you need to create your own thread Feb 15 19:04:38 TIL: Feb 15 19:04:48 did not know you could & classes/interfaces like that Feb 15 19:05:42 yeah java has a strange syntax Feb 15 19:06:16 neither did I, but that makes sense Feb 15 19:06:19 Can you debug ndk cplusplus on android, if so what ide setup is recomended Feb 15 19:06:36 canadiancow: I saw that yesterday, what exactly is that called? Couldn't find it in the docs Feb 15 19:06:48 would also make sense Feb 15 19:06:51 ceti331_: yes, supposedly you can do it with eclipse now. I have NO IDEA how this is done however. Feb 15 19:07:00 it's definitely always been possible via gdb and gdbserver Feb 15 19:07:05 I am currently using qtcreator on linux for cplusplus. So far i am just writing crossplatform code with no debugging on abdroid.. Just debugprints Feb 15 19:07:46 well commandline gdb would be a step forward over only debug prints Feb 15 19:08:02 Maybe i should look into that Feb 15 19:08:51 Guys I have a super n00bish question, so please excuse my n00biness. I am trying to make an app for my college where students can register courses for the next semester online, so my app will have a database which has two tables for example (students) & (subjects), the students table will have a (subjects) column and the (subjects) table will have a (prerequisites) column. So I need a (suggested subjects) list to appear for each student which cont Feb 15 19:08:51 ains the subjects whose prerequisites he finished. My question is, the info that will fill the (suggested subjects) list, is it gonna be generated using sql or using java?! Feb 15 19:09:58 GLES q: can I get handles from getUniformLocation and friends ONCE after compiling+linking my shader program, or should I always call them before handle use because the values may change, or the shader may be recompiled out of my control -> the values change? Feb 15 19:11:50 …or prehaps more of a GLSL question… Feb 15 19:12:54 evanc: yes :) IntentService, however, you can't keep those running correct? Don't they die when onHandleIntent()? is finished? Feb 15 19:15:57 guys, can you run the SoftKeyboard sample from API 15 without problems? Feb 15 19:19:29 Hi, how to connect wifi to wifi connection, I mean is there a way to make a point to point connection to another Android device via wifi ? Feb 15 19:20:12 gnu_d: http://developer.android.com/guide/topics/connectivity/wifip2p.html Feb 15 19:21:08 novie: thanks, but any workaround for older API's ? Feb 15 19:21:34 gnu_d: I don't think so. Feb 15 19:21:40 oh Feb 15 19:27:50 anyone have game development experience in android? Feb 15 19:27:51 novie: yeah, so just don't finish :P (I'm kidding) Feb 15 19:29:46 Evanc that's funny on a few leveld Feb 15 19:32:54 linuxuz3r_: that depends Feb 15 19:33:47 Denommus, hi what do you mean Feb 15 19:34:38 linuxuz3r_: what sort of game are we talking about? I have experience on making puzzles Feb 15 19:35:05 Is there anything i have to set up to use nine-patch images? Feb 15 19:35:52 i just have to load the 9-patch image as background image, am i right? (and name the file correct, of course) Feb 15 19:36:30 Denommus, i was wondering if its better to make your own game framework or use sdks like unity3d Feb 15 19:37:01 im wondering if getting a book on game development for android or just use unity 3d Feb 15 19:37:51 linuxuz3r_: oh, this kind of question. But again, what kind of game are you going to do? 3D? 2D? Feb 15 19:38:12 i would like to do 3d Feb 15 19:38:15 if it's 3D, yeah, unity 3D is the best. For 2D, I'd go with Corona, Love2D or Cocos2d-x Feb 15 19:38:23 or maybe monogame Feb 15 19:38:37 go with Unity 3D, then. It deploys to basically anything Feb 15 19:38:38 monogame supports android is it in c# Feb 15 19:38:57 yeah, monogame runs on android using Xamarin Feb 15 19:39:02 now to find the cash Feb 15 19:39:10 no one an idea? Feb 15 19:40:29 what are services good for this is a new concept for me Feb 15 19:40:48 email push is a service? Feb 15 19:41:01 but i dont see gmail services on my phone Feb 15 19:41:10 linuxuz3r_: services are like linux's daemons Feb 15 19:42:12 does gmail have a service? Feb 15 19:43:14 yes, if you want something running on the background (that is, without an activity), you must use a service Feb 15 19:44:25 Denommus, gmail is in google services? Feb 15 19:44:47 ... what? Feb 15 19:44:53 another simple question: How can i prevent a background image from getting stretched...? Feb 15 19:45:09 gmail services is in google services or in its own gmail service Feb 15 19:45:34 Styler2go, wrap_content Feb 15 19:45:39 I think it is in google services, but I'm not sure Feb 15 19:45:49 it is a background image... Feb 15 19:46:24 wait let me check Feb 15 19:46:28 Styler2go: well unless it's the exact res of the phone Feb 15 19:46:36 your looking at maintaining aspect right ? Feb 15 19:46:48 so that means 2 choices Feb 15 19:47:03 i just want that the background image never gets stretched or something... Feb 15 19:47:06 1. fit it to the bounds and have black bars to maintain aspect Feb 15 19:47:11 an ImageView can do this easily Feb 15 19:47:20 2. center crop it to cut bits of the image Feb 15 19:47:31 yeah the second method i want Feb 15 19:47:47 then put it in an imageView Feb 15 19:48:09 so a relative layout with an imageview and in this an Linearlayout? Feb 15 19:48:19 if ya want Feb 15 19:48:28 ok Feb 15 19:48:39 linuxuz3r_, what are you asking about gmail? Feb 15 19:48:41 sounds unclean... is it ok to do that this way? Feb 15 19:48:55 what's unclean about it? Feb 15 19:49:08 but the image wont be stretched no matter what when you have it in your layout unless you specify it to fill the parent Feb 15 19:49:43 canadiancow, in android running apps it shows how many apps and services are running in the background Feb 15 19:49:59 ok Feb 15 19:50:08 i saw it thanks Feb 15 19:50:44 StingRay_, maybe, just maybe you also can help me with my 9-patch image? Feb 15 19:50:49 why does the united airlines app have a running service ~_~ Feb 15 19:50:58 Styler2go: help in what way ? Feb 15 19:51:29 http://img443.imageshack.us/img443/6245/climsyclipboard.png this is how it looks in the designer Feb 15 19:52:06 this looks great, i want it like that. but on my phone.. wait... Feb 15 19:52:32 wow windows 8 looks nice Feb 15 19:52:56 can you make white title bar all the time in windows 8 Feb 15 19:53:05 every kind of color Feb 15 19:53:17 Styler2go: I dont understand your question Feb 15 19:53:27 wait StingRay_ Feb 15 19:53:27 are you saying you get something different on the phone ? Feb 15 19:53:41 I just realized that a Linux User is a ....luser Feb 15 19:53:56 https://dl.dropbox.com/u/41565243/Screenshot_2013-02-15-20-51-34.png Feb 15 19:53:58 StingRay_, ? Feb 15 19:54:05 this is how it looks on phone Feb 15 19:54:05 Sicp, lol Feb 15 19:54:20 Do you guys use any forums as developers? If so, which ones do you like? Feb 15 19:54:22 I have my favorites for linux, javascript, & php. But, I'm brand new to java and android. Feb 15 19:54:32 Styler2go: thats cause it's not using the 9patchyness Feb 15 19:54:42 how can i enable this? Feb 15 19:54:53 forum.devshed.com aint bad Feb 15 19:54:54 use it in background is the easiest way Feb 15 19:55:04 i am Feb 15 19:55:08 Sicp: thanks from a luser... Feb 15 19:55:20 Styler2go: show me your 9patch Feb 15 19:55:28 oc wait Feb 15 19:56:16 it is made with photoshop, not the nine patcher fromt he sdk ( but should not be a problem?) https://dl.dropbox.com/u/41565243/chat_right.9.png Feb 15 19:56:34 ok no thats not gonna wok Feb 15 19:56:40 and tis a massive waste Feb 15 19:56:43 why? Feb 15 19:57:21 well you have odd content and scale boundaries Feb 15 19:57:26 that stretch details Feb 15 19:57:42 well there are loads of things wrong Feb 15 19:57:56 1st Your content boundaries Feb 15 19:58:07 dont need to match the patching boundaries Feb 15 19:58:18 so your putting lots of space at the bottom Feb 15 19:58:48 uhm Feb 15 19:58:54 2nd you stretching details due to the image being erm....crap Feb 15 19:59:18 as in it looks like you scaled and filtered it Feb 15 19:59:40 hmm Feb 15 19:59:54 ok w8 Feb 15 20:02:14 Styler2go, hi what tutorial are you using for the project you are working on Feb 15 20:02:25 tutorial? Feb 15 20:02:29 yes Feb 15 20:02:33 none? Feb 15 20:02:58 i have not created a ui for android that uses custom images maybe you can share it with me Feb 15 20:03:29 what do you mean? i dont use tutorials.. Feb 15 20:04:07 StingRay_: would thi sbe better? https://dl.dropbox.com/u/41565243/chat_right.9.png Feb 15 20:05:44 well no, thats horrid Feb 15 20:05:48 in a visual way Feb 15 20:05:56 not in an execution Feb 15 20:06:22 i am not good at designing :D Feb 15 20:06:33 ffs, 1 second Feb 15 20:06:41 ok Feb 15 20:06:45 what does ffs mean? Feb 15 20:07:00 ffs means for f*cks sake Feb 15 20:07:07 ah as i thought ... Feb 15 20:07:10 meaning I'm gonna open photoshop Feb 15 20:07:13 :) Feb 15 20:07:23 thank you <3 Feb 15 20:10:08 this will be just and example btw Feb 15 20:10:24 yes Feb 15 20:10:47 almost done Feb 15 20:11:28 i wanted to make something like the iOS chatbox or Whatsapp chatbox^^ Feb 15 20:11:49 I'm just making something based from what you shown me Feb 15 20:11:55 so you can compare Feb 15 20:12:20 yes :) Feb 15 20:16:36 I'm having a problem installing adt. Can enayone help? Feb 15 20:16:49 Dumb question: if I want to remove sound/vibrate from my notifications, do I just remove the .sound atttibute and the NOTIFICATION.DEFAULT_VIBRATE flag? Feb 15 20:16:52 I get the message upon restarting eclipse: "could not find SDK folder '/opt/android-sdk-linux/'." Feb 15 20:17:06 what do I have to do to resolve this? Feb 15 20:17:16 http://dl.dropbox.com/u/80096154/test.9.png Feb 15 20:17:21 where can i find my public keyhash of my app to give to the facebook app settings? Feb 15 20:17:28 debug.. not release Feb 15 20:18:06 StingRay_: can you explain some if your nine-patch? for example, the right side, i am wondering about Feb 15 20:18:15 content Feb 15 20:18:22 content bounds Feb 15 20:18:36 yeah but.. the right side is completly black Feb 15 20:18:46 this tells the image that it cant stretch here, or? Feb 15 20:18:50 no Feb 15 20:18:51 content Feb 15 20:19:00 hm? Feb 15 20:19:01 thats content bounds Feb 15 20:19:11 what do you mean? :o Feb 15 20:19:13 left is stretch Feb 15 20:19:22 oh... Feb 15 20:19:24 go read about 9.patch Feb 15 20:19:59 okay Feb 15 20:20:03 i really should Feb 15 20:20:12 but neways compare that to yours Feb 15 20:20:21 yes :) Feb 15 20:20:26 criper details Feb 15 20:20:31 crisper Feb 15 20:21:27 so the right side is "padding box" Feb 15 20:21:39 yeah, just like view.passing Feb 15 20:21:41 oops Feb 15 20:21:43 padding Feb 15 20:21:43 like the bottom Feb 15 20:22:02 now i understand much better :) thank you :) Feb 15 20:22:06 so left + bottom stretchy (or expansion) Feb 15 20:22:14 right + top, content bounds Feb 15 20:22:20 can i use your image to try out? Feb 15 20:22:22 or as you say, padding Feb 15 20:22:26 sure Feb 15 20:22:32 i dont say padding Feb 15 20:22:39 google is telling it padding :D Feb 15 20:22:44 :) Feb 15 20:22:44 http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch Feb 15 20:23:01 ahgot itg Feb 15 20:27:36 Styler2go: and answer to your other question, dont matter what you create 9.patches in, it's just a name ".9" and use of a 1px boundary Feb 15 20:27:45 I do mine in ps Feb 15 20:27:48 :) Feb 15 20:28:06 yes Feb 15 20:28:21 is ninpatch supprted by ALL APIs? Feb 15 20:28:27 nine* Feb 15 20:28:47 http://developer.android.com/reference/android/graphics/NinePatch.html Feb 15 20:29:14 see the top right ? "Added api 1 Feb 15 20:29:19 nice <3 Feb 15 20:29:21 easy to lookup when you want to know Feb 15 20:29:22 veeery nice Feb 15 20:29:22 :) Feb 15 20:29:30 i think this is one of th emost awesome things :D Feb 15 20:29:34 (for the ui) Feb 15 20:29:49 naaa Feb 15 20:29:55 the layer drawables are Feb 15 20:29:57 :) Feb 15 20:29:58 whats more awesome? :o Feb 15 20:30:16 quick question: due to multiple stackoverflow entries it is not possible to inflate a layout with a fragment (maps api 2) inside, i got that. but since google maps api 2 is implemented as fragment how can i show it in my layout as part of the app and not in fullscreen? Feb 15 20:30:21 cause you commit to pixels with bitmaps Feb 15 20:33:44 woah thanks StingRay_, your example gave me nice ideas :) Feb 15 20:40:00 http://img96.imageshack.us/img96/69/climsyclipboardrh.png wtf... Feb 15 20:53:24 hmm.. is there a simple way to add a entry to a listview? Feb 15 21:01:03 Hi, my own phone is a htc X and I was wondering how to create an emulator as close as possible to this device? Feb 15 21:01:14 what settings should I enter Feb 15 21:01:40 Well, the ones you need. ;) Feb 15 21:02:06 Screensize, Resolution, RAM etc Feb 15 21:04:31 yeah, but what settings does htc X have? What are the specs specific to this device? Feb 15 21:05:14 Since I don't know what to enter? Feb 15 21:05:47 why don't you look it up instead of asking us? Feb 15 21:05:52 it's your device Feb 15 21:06:16 a guide online which shows what I need to enter? Feb 15 21:06:54 Yeah, check out http://bit.ly/Uomp9v Feb 15 21:07:03 http://www.gsmarena.com/htc_one_x-4320.php Feb 15 21:07:10 gsm hehe Feb 15 21:07:11 I want to add be able to slide between fragments. Does the ViewPager Feb 15 21:07:17 oh and i am so stupid and gogoled it for him^^ Feb 15 21:07:31 depends on how you define slide Feb 15 21:07:37 again my question maybe... how can i add an item to a listview? Feb 15 21:07:53 add an item to the adapter backing it Feb 15 21:08:20 oh Feb 15 21:08:40 so easy again.. thank you^^ Feb 15 21:08:48 no problem Feb 15 21:08:54 post this shit to stack overflow next time Feb 15 21:08:56 What KillmeSoftly just pulled was very strange Feb 15 21:08:57 so i get me some points Feb 15 21:09:07 i need at least 50,000 points for google to hire me Feb 15 21:09:12 :D Feb 15 21:09:19 i have 127! :D Feb 15 21:13:09 How to calculate hdpi then? It says "Size 720 x 1280 pixels, 4.7 inches (~312 ppi pixel density)" Feb 15 21:15:11 why are you calculating density Feb 15 21:15:42 because I need to enter that when creating an emulator? Feb 15 21:17:28 is it possible to create a layout where there is an image superimposed over another? Feb 15 21:18:16 of course Feb 15 21:18:19 I want to create a listview with an image for each item that looks like a button but I also want a little flag icon to the left hand side of the button Feb 15 21:18:35 Somelauw: http://stackoverflow.com/questions/4533300/abstracted-lcd-density Feb 15 21:18:48 All of this could have been answered by googling :\ Feb 15 21:20:51 thanks mikedg, found this http://stackoverflow.com/questions/6972927/how-to-place-an-image-over-another-one-on-android-app Feb 15 21:21:15 cool b0nn Feb 15 21:24:25 hey Feb 15 21:25:08 GAME OVER MAN Feb 15 21:25:57 ehrm.. dumb question: what does this mean? java.lang.UnsupportedOperationException Feb 15 21:26:08 in linechatList.add(i); Feb 15 21:26:50 Styler2go: don't know what class that object belongs to, but maybe it is readonly? Feb 15 21:27:10 public ChatList chatList = null; Feb 15 21:27:41 ChatList is a selfmade class Feb 15 21:27:52 it is the adapter for a listview Feb 15 21:28:02 modeList.setAdapter(adapter); chatList = adapter; Feb 15 21:28:07 mideList id the ListView Feb 15 21:28:11 modeList* Feb 15 21:28:53 this is the kind of Exception that I would expect to be thrown in an automatically generated stub Feb 15 21:29:52 how could i fix it? any idea? Feb 15 21:30:09 Anyone know what could stop JNI from reading anything in the /dev/ folder even if it has file permissions of 777? Feb 15 21:30:41 Styler2go: maybe you should post the body of that method add in class ChatList Feb 15 21:31:14 i dont have a method add :o Feb 15 21:31:29 public class ChatList extends ArrayAdapter { Feb 15 21:35:01 why the hell my eclipse is destroyed again... Feb 15 21:38:13 I don't find the android plugin for eclipse too convincing either Feb 15 21:39:15 :) Feb 15 21:44:58 16:30:20 < martyj> Anyone know what could stop JNI from reading anything in the /dev/ folder even if it has file permissions of 777? Feb 15 21:45:04 I don't understand the question. Feb 15 21:45:14 JNI is just a means of communicating between Java code and a shared lib Feb 15 21:47:02 ok, any idea about my problem? Feb 15 21:47:44 16:27:52 < Styler2go> ChatList is a selfmade class Feb 15 21:47:46 pastebin your class Feb 15 21:48:02 if you are EXTENDING an abstract class, you might need to implement some of the underlying methods. Feb 15 21:48:45 http://pastebin.com/raw.php?i=DXSR6yjt Feb 15 21:49:10 Styler2go: are you trying to call .add() on the adapter? Feb 15 21:49:13 because you can't do that Feb 15 21:49:26 you can't just grow an array Feb 15 21:49:26 yes i am trying Feb 15 21:49:54 they told me to add an item to a ListView i simply use add of the adapter... Feb 15 21:50:35 you have to add it to the underlying data structure and call notifyDatasetChanged Feb 15 21:50:54 ... yeah. Feb 15 21:50:59 ArrayAdapter has a fixed array backing it. Feb 15 21:51:04 You need to use another adapter implementation. Feb 15 21:51:04 can oyu give me a small example? Feb 15 21:51:13 dont use arrayadapter? Feb 15 21:51:22 There are several examples in the API samples. Feb 15 21:51:23 It only has a fixed array backing it if you pass in an array Feb 15 21:51:28 Styler2go: Look up the Adapter class. Feb 15 21:51:29 Pass in a List Feb 15 21:51:38 ArrayAdapter is a specific subclass used mainly for fixed lists and sample code. Feb 15 21:52:01 so i should use? Feb 15 21:52:19 extend BaseAdapter. there are a bunch of ApiDemos doing this Feb 15 21:53:35 or CursorAdapter. Those are the only 2 I implement Feb 15 21:53:48 the rest are silly ) Feb 15 21:53:58 oh gosh again something more difficult than the use would be... Feb 15 21:54:11 Styler2go: that's because you don't know what you're doing :/ Feb 15 21:54:37 evanc: That, but I also think Lists are overly complicated to use for very simple things. Feb 15 21:56:37 ~.~ Feb 15 21:57:07 i cant handle it with a different Adapter .. i think i wil juts recreate a new ArrayAdapter and remove the old and set the new one ... Feb 15 21:57:36 Styler2go: okay, have fun. You'll lose your scroll position but I doubt you care. Feb 15 21:58:22 <\monster\> hey guys I'm using a 3rd party library that brings up a dialog with a webview inside it ..is there anyway to "hack" my way to get a reference to the webview ..there's no build in APIs and the library is no longer maintained Feb 15 21:58:48 <\monster\> the webview stopped accepted user input as of JB ..trying to fix it Feb 15 21:58:59 You could maintain your own fork of the library Feb 15 21:59:06 yeah.. then this is a disadvantage but i can go on with other things faster Feb 15 21:59:07 <\monster\> I don't have the source Feb 15 21:59:08 \monster\: findViewById? I'm not that familiar with dialogs Feb 15 22:01:30 hey I need to create a specific type of blur behind a Dialog. So tell me if there is an easier way than this: 1) Itterate the view hierarcy of the background activity, drawing onto a Canvas 2) Generate a bitmap from that canvas 3) pass that bitmap to a Render Script and convolve it the way I want, 3) Take the output bitmap from the RS, and set it as the background image, for my fullscreen dialog, thus giving it the appearence that u can see the bl Feb 15 22:01:30 urred activity behind it Feb 15 22:02:50 Is CursorAdapter for databases? o.O Feb 15 22:03:01 Styler2go: yes Feb 15 22:03:12 well i think you can use it for other things i suppose Feb 15 22:03:13 so i would need another adapter, or? Feb 15 22:03:19 hu? Feb 15 22:03:25 what would be the best case for me? Feb 15 22:03:32 to access a database? Feb 15 22:03:35 Styler2go: some reading :) Feb 15 22:03:36 oh no Feb 15 22:03:45 for my selfmade adapter... Feb 15 22:03:58 ICursor cursor = database.query(junkforquery); Feb 15 22:04:12 oh Feb 15 22:04:13 idk Feb 15 22:04:28 yeah.. Feb 15 22:04:35 sorry^^ Feb 15 22:04:51 http://pastebin.com/raw.php?i=DXSR6yjt this is my Adapter Feb 15 22:05:03 and i need an adapter where i can add a new item Feb 15 22:05:28 use a list.. Add all the items you want Feb 15 22:05:57 you can always do a list of arrays too Feb 15 22:06:24 but i cant add an item? Feb 15 22:07:22 Styler2go: did you look through the ApiDemos ? Feb 15 22:08:11 no Sir... Feb 15 22:08:17 well … :) Feb 15 22:08:42 score! got me a date tomorrow night Feb 15 22:08:49 :D Feb 15 22:09:37 tophathacker: http://dilbert.com/strips/comic/2011-02-12/ Feb 15 22:10:00 Implicit super constructor List() is undefined. Must explicitly invoke another constructor ... what? Feb 15 22:10:01 spent 2 hours with this girl one time going back and forth, she would describe an episode of startrek and i'd finish the plot line, then i'd describe one and back and forth Feb 15 22:10:04 i think she won Feb 15 22:10:49 ... are you saying i should buy a lotto ticket? Feb 15 22:14:04 it cant be so difficult to make a custom adapter where i can use the add function or? i am doing something wrong.. or? Feb 15 22:15:52 Styler2go: if you extend a class, you have to call the super's class's constructor from your constructor Feb 15 22:16:53 ok so the problem still is what adapter i should use... Feb 15 22:17:05 no :P Feb 15 22:17:25 change your constructor to call the super constructor Feb 15 22:17:51 yeah but what Adapter should i use? :o Feb 15 22:17:57 to use the .add function Feb 15 22:18:07 ListAdapter sounds good? Feb 15 22:18:10 just make a list :P Feb 15 22:18:14 no, just a list Feb 15 22:18:16 not a list adapter Feb 15 22:18:22 java.util.List?? Feb 15 22:18:22 Did you read a tutorial on this topic? Did you go through the API samples? Feb 15 22:18:29 don't need an adapter.. a List is pretty much an aray adapter Feb 15 22:19:00 tophathacker: you mean java.utl.List? Feb 15 22:19:05 sure Feb 15 22:19:09 idk Feb 15 22:19:32 why no ListAdapter? Feb 15 22:20:21 no idea, i'm barely paying attention to the situation Feb 15 22:20:26 or my desk .. or the ground Feb 15 22:20:29 i'm kinda spacey right now Feb 15 22:20:54 The type List cannot be the superclass of ChatList; a superclass must be a class Feb 15 22:21:02 i cant extend it by List Feb 15 22:24:23 ok i will ask on stack :D Feb 15 22:25:36 Styler2go: Or you read the tutorials and look at the API samples... Feb 15 22:25:49 or i simply ask :) Feb 15 22:26:03 Yeah, don't bother learning yourself. Not worth it. Feb 15 22:26:23 i can learn the best by just doing it. Learn by doing. Feb 15 22:26:43 I am doing this with almost everything and its helping me the best so why not? Feb 15 22:27:16 But you're not doing it. You're getting spoon fed by others instead of reading the manual. Feb 15 22:27:32 This is why you don't get any useful answers to your questions ^_^ Feb 15 22:27:39 reading a manual is not learn by doing... Feb 15 22:28:07 You failed doing. Now you ask for help. From people who probably RTFM. Feb 15 22:30:01 i dont think i am failing... i am just trying to learn a new " simple" function: how to add an item to a custom ListView... Feb 15 22:30:39 Did you succeed yet? Maybe more of your "doing" will help. Feb 15 22:31:10 ok. if you can help me anf give me some tips where to read i will "RTFM" :) Feb 15 22:31:18 You do realize, asking on Stackoverflow and then reading the reply is basically the same as just going through sample code which is readily available for you and/or reading the API Guide? Feb 15 22:31:27 i am currently on the sites: http://developer.android.com/reference/android/widget/ListAdapter.html http://developer.android.com/reference/android/widget/Adapter.html https://www.google.de/webhp?sourceid=chrome-instant&ion=1&ie=UTF-8#hl=de&safe=off&tbo=d&output=search&sclient=psy-ab&q=android%20add%20item%20to%20arrayadapter&oq=&gs_l=&pbx=1&fp=30bb5e6daa0c9801&ion=1&bav=on.2,or.r_gc.r_pw.r_cp.r_qf.&bvm=bv.42553238,d.Yms&biw=1 Feb 15 22:31:44 i stopped writing on stack :) Feb 15 22:35:05 There are a few samples in the API Guides, but depending on what exatly you want to do, this article should help you, a lot. http://www.vogella.com/articles/AndroidListView/article.html Feb 15 22:35:41 If your source is an array, then yes, ArrayAdapter. But usually you have custom views and special needs. That's where chapter 2 "Adapter Implementations" comes into play. Feb 15 22:36:14 Before you start going through any of those, watch the world of listview talk from google io Feb 15 22:36:27 I do recommend reading all of it, to get it over with, once and for all. But at least chapter 1, 2 and 5. Feb 15 22:36:49 SimonVT: Good point, I greatly enjoyed that video. https://www.google.com/events/io/2010/sessions/world-of-listview-android.html Feb 15 22:37:19 hmm Feb 15 22:37:27 he is onl yusing array adapters Feb 15 22:37:39 Styler2go: Chapter 2... Feb 15 22:37:49 But Chapter 1 goes through the basics, too. Feb 15 22:38:16 chapter two also uses ArrayAdapter? Feb 15 22:38:35 and is very, very small Feb 15 22:39:40 there is nothing about dynamically adding an item.. or i am blind Feb 15 22:41:24 anyway, i will find a way... thanks anyway for your help :) Feb 15 22:41:32 http://stackoverflow.com/questions/3669325/notifydatasetchanged-example/5092426#5092426 Feb 15 22:42:42 the first point he wrote Feb 15 22:43:00 the .add function.. wont work? Feb 15 22:43:25 Is this a good tutorial for game design? http://www.kilobolt.com/day-6-the-android-game-framework-part-ii.html Feb 15 22:44:56 I'm playing with background threads and the NDK. Three scenarios, one broken: 1) (works) Java UI thread -> native function -> Java method, runOnUiThread(){update a textview} Feb 15 22:45:00 Have you tried reading it, and determining if it was a good tutorial yourself? :) Feb 15 22:45:43 Styler2go: And you did call notifyDataSetChanged? Feb 15 22:45:47 2) (works) Java UI thread -> new java thread, runOnUiThread(){update textview} Feb 15 22:46:15 3) (broken) Java UI thread -> new java thread -> native function -> java method, runOnUiThread(){update textview} Feb 15 22:46:23 java.lang.UnsupportedOperationException thats what i get kakazza Feb 15 22:47:47 Can I see your code? Feb 15 22:48:10 what code you want to see? the custom adapter? Feb 15 22:48:23 And how you construct and fill it. Feb 15 22:48:27 http://pastebin.com/raw.php?i=DXSR6yjt Feb 15 22:49:34 So, I postes my question on StackOverflow. I am surprised no one has answered me yet... Feb 15 22:49:37 *posted Feb 15 22:49:39 Yeah, try what someone else suggested earlier and use a List instead of an array. Feb 15 22:49:59 Note: List is an Interface, you'll have to use one of the implementations of List, like ArrayList Feb 15 22:51:02 "[New App] Market Helper Lets You Download Incompatible Apps Without Changing The Build.prop (Root Only)" … yey :| Feb 15 22:51:42 anyone know a way to tell OSX not to launch the MTP app every time I plug in my phone? Feb 15 22:52:10 If that's too much trouble, because you already have the array[] everywhere, you can use Arrays.asList(), but at this point it's probably easy for you to change it. Feb 15 22:52:33 hm... Feb 15 22:53:02 Let me see if someone on SO already explained it. Feb 15 22:53:21 Sure did. http://stackoverflow.com/questions/3200551/unable-to-modify-arrayadapter-in-listview-unsupportedoperationexception/3200631#3200631 Feb 15 22:53:32 Even mentions your exception. Feb 15 22:54:31 i think its to late for me. i dont get the 5 simple lines :D Feb 15 22:55:42 so the araylist contains all the data. these arew the first 3 lines. after this, the adapter gets the data from the arraylist Feb 15 22:56:25 ctate: interesting, did a little bit of analysis here. are you guys aware that the framework itself is 24% from the dx method limit issue? Feb 15 22:56:57 is this the 65k method limit ? Feb 15 22:57:03 yes. Feb 15 22:57:08 thats a pita Feb 15 22:57:11 jasta: I believe the limit has been brushed against, and things split out before :) Feb 15 22:57:20 JesusFreke: in framework.jar, really? Feb 15 22:57:21 As in, there can't be more than 65k methods where exactly? Feb 15 22:57:28 kakazza: in a dex file Feb 15 22:57:30 kakazza: in a dex file Feb 15 22:57:38 kakazza: in a dex file Feb 15 22:57:43 * JesusFreke had to get in on the fun Feb 15 22:57:47 g00s now Feb 15 22:57:48 jasta: yea Feb 15 22:58:05 framework.jar was at 62k a version or two ago, i thought Feb 15 22:58:16 it's really quite a huge pain in the ass. i think it's high time we invest in a dx compiler optimization that will use a secondary dispatch table to get around this Feb 15 22:58:37 So many answers, all from people whose nick starts with "j" Feb 15 22:59:10 JesusFreke: i dont suppose youve done any research in this area? Feb 15 23:00:04 jasta: nope, not really Feb 15 23:01:20 Does this error occur very often? I imagine it could if you use a lot of libraries. Feb 15 23:01:50 kakazza: it does for big apps Feb 15 23:02:00 which use lots of heavier J2EE type libraries like guava and what-not Feb 15 23:02:04 guava, for example, adds 8k+ methods Feb 15 23:02:13 jackson about the same Feb 15 23:02:27 google-http-client, for example, also uses a shit-ton because of all its dependencies Feb 15 23:02:38 otherwise pretty legitimate projects to pull in and be supported. Feb 15 23:02:54 Is that problem inherent in J2EE type libraries or does it result from them being "enterprise as fuck"? Feb 15 23:03:18 i think dx should either work around this by supporting a splitting dex files in a zip into multiple files and loading them in dynamically or using a dispatch table type opt in the dx translation phase Feb 15 23:03:43 kakazza: it's just because these libraries are huge and have a shit-ton of OO fanciness resulting in massive method bloat (virtual methods count toward this, too) Feb 15 23:03:49 jasta: not much of fix, but maybe dagger is smaller than guava ? Feb 15 23:04:03 if you can use it Feb 15 23:04:11 in my case, i'm far enough past the limit that i'd have to combine multiple solutions to solve it so i'm looking elsewhere for fixes Feb 15 23:04:18 proguard, of course, is the easiest fix Feb 15 23:04:21 but proguard is slow as balls. Feb 15 23:04:25 proguard <# Feb 15 23:04:31 <3* Feb 15 23:05:08 i think there may be ways to optimize proguard's execution a bit tho (through configuration and build changes) Feb 15 23:05:11 but its a lot of work :) Feb 15 23:05:31 also, i found a dx merge bug today that i need to investigate further and hopefully fix. it basically means that dx merging supports fewer than 65535 methods even Feb 15 23:05:34 more like 53k Feb 15 23:05:38 (in my case) Feb 15 23:05:51 i think merge has a bug that leaves gaps in the method index table Feb 15 23:05:56 (totally wild-ass-guess here) Feb 15 23:09:46 I don't know why people use generated code that hits the method limit. Just load a file, you lazy people. Feb 15 23:09:59 Hey all Feb 15 23:10:10 w0rp: to what are you referring over there? Feb 15 23:10:12 The 65k is including framework methods you call Feb 15 23:11:18 uhh, that doesn't sound right. *verifying* Feb 15 23:11:55 well it would initially seem that you are correct :) Feb 15 23:12:16 Well put, haha Feb 15 23:12:22 there's a 64k method limit, yes Feb 15 23:12:33 I would drop any framework like a hat the resulted in 64k byes of code being used to do just about anything. Feb 15 23:12:42 *bytes Feb 15 23:12:43 note that this is why framework.jar was split in recent OS releases Feb 15 23:13:08 ctate: we really need an option for app development that's not multiple apks :\ Feb 15 23:13:23 write fewer methods Feb 15 23:13:27 first class support for a hot swapping dex class loader would be nice :) Feb 15 23:13:34 it's insane that an app would get anywhere close to that. Feb 15 23:13:41 ctate: i bet you that google probably runs into this very same crap on apps like maps. Feb 15 23:13:53 my point stands. Feb 15 23:14:19 ctate: i am talking, btw, about developer, unoptimized builds. Feb 15 23:14:31 of _course_ you can just use proguard to shrink it to a tiny fraction of its size and ship. Feb 15 23:14:51 but proguard takes a really freaking long time to run over huge ass monolithic jars (like guava) that contain a bucnh of shit you dont want Feb 15 23:14:57 you can have proguard strip unreferenced methods and still preserve names etc for debuggability Feb 15 23:15:08 yeah, and it's _SLOW_ and monolithic. Feb 15 23:15:28 i don't have a lot of patience for complaints about build times of single apps Feb 15 23:15:31 so incremental builds are basically impossible Feb 15 23:15:39 desktop hardware is fucking cheap Feb 15 23:15:47 ctate: it's like 30s+ if you're past the 65k limit. Feb 15 23:15:54 yeah, that's fast Feb 15 23:16:03 wake me up when your build takes more than 5 minutes Feb 15 23:16:04 for that one step alone. then you have non-incremental dexing. another 30s+ Feb 15 23:16:10 or 50 Feb 15 23:16:32 i think that's really the wrong attitude, but whatever. Feb 15 23:16:35 kids these days are spoiled :) Feb 15 23:16:41 it's like trying to give yourself a badge for wasting time Feb 15 23:16:49 it does change how you work, it's true Feb 15 23:17:04 the bottom line is that a tiny weakness in dx causes a LOT of extra, redundant work. Feb 15 23:17:15 patches welcome Feb 15 23:17:30 (but more seriously, yes we're aware of this and think it should change) Feb 15 23:17:31 i might just hold you to that :) Feb 15 23:17:54 i bet google has some particular solution in mind for this though and is unwilling to consider alternatives, personally. Feb 15 23:18:18 and i doubt it involves a secondary method dispatch table, which is probably how i'd solve it since it's backwards compatible. Feb 15 23:18:32 i have no info on the inner workings of the dalvik team Feb 15 23:18:36 solving it with the classloader is, i think, a superior long term solution Feb 15 23:19:01 that is, just letting you pack multiple dex files into an apk and have the classloader load in the extra dex files on demand Feb 15 23:19:51 What pricing model have you guys found best in android development? Freemium or paid? Feb 15 23:20:10 It's really hard to decide without any experience in the area :) Feb 15 23:20:11 apple741: personally, as a user, i greatly prefer paid. Feb 15 23:20:31 but as a developer, i have no experience. i have not worked on apps with that type of revenue model Feb 15 23:20:51 oh, the days of smalltalk and images, it was so much better Feb 15 23:21:05 shit just keeps going more backwards Feb 15 23:21:57 ctate: since Oracle Java SE Compact is imminent, maybe you guys could just license a working vm ;) Feb 15 23:22:15 jasta: I would assume there is a greater temptation to buy with freemium since you've had a chance to try the app out? Feb 15 23:22:22 yeah i'm sure oracle will want to free OSS their shit Feb 15 23:22:39 If I have a small ImageView and up-scale-animate it, it will visibly take up more space, but the imageview keeps the same width/ height. Hence some parts of the now scaled image are cut off Feb 15 23:22:54 How can I let the animate allow overdrawing over the borders Feb 15 23:23:00 /beyond Feb 15 23:23:47 I found the proble. Feb 15 23:23:52 *problem Feb 15 23:24:07 But have you found the solution? Feb 15 23:24:19 The http request is done as chunked transfer and no, no solution Feb 15 23:25:07 I forgot what your problem was :D Feb 15 23:25:16 apple741: for me, no. it's quite the opposite. i'm sick of games like dead trigger where you download what would otherwise be a really great game but are constantly feeling underpowered or like the missions are just too hard until you pay a dollar here, a dollar there to keep going. Feb 15 23:25:27 it's maddening and i've just stopped wasting my time with seemingly high quality games that are free. Feb 15 23:26:18 jasta: did you pay a dollar here/there? Feb 15 23:27:23 zhobbs: no. Feb 15 23:27:37 i usually just get annoyed and uninstall. sometimes i try to struggle through anyway. never do i pay for stupid in game items. Feb 15 23:27:45 Does anyone know how to create custom albums in the Android gallery app with images from my app (like how pictures from Picasa or Dropbox may show up if enabled on a device) Feb 15 23:28:16 zhobbs: i feel like a lot of true gamer types would feel the same way. i want to be able to beat the game, that's when i'm done, not when i'm simply sick of doling out an extra dollar or two to keep making progress. Feb 15 23:28:20 with no end in sight Feb 15 23:28:57 jasta: yeah, I hear ya. Freemium isn't bad if it's more of a trial where you get the first X levels free Feb 15 23:29:21 yeah, that model works ok. i recently bought corgy 2 that way Feb 15 23:29:32 but in app purchasing. ugh, no. Feb 15 23:31:22 jasta: Isn't in app purchasing the same as freemium? Feb 15 23:31:37 apple741: doesn't have to be…can have a "lite" and "pro" version Feb 15 23:33:38 Ah ok that makes sense, whats usually the best strategy lite or in app purchasing? Feb 15 23:34:31 I was making kids book, but to get the games I was thinking I could use in app purchasing but this could also with with lite and full versions. Feb 15 23:36:22 I'd image its easier for the customer to click directly within the app than to have to go and buy it manually which they might feel takes too much effort? Feb 15 23:38:57 Hi Guys. I want to attach other layouts to a webview and make them all scroll together as one big page. is it possible? Feb 15 23:39:17 apple741: linking into the market to do an in app purchase for the full version is definitely preferred Feb 15 23:39:40 but again, i only support this model for demo vs full, which i think does work well Feb 15 23:39:53 but god damn in app trinkets/items is so maddening :) Feb 15 23:40:58 jasta: Yeah I would only use it under that scenario anyway :) Feb 15 23:41:49 Do android devices have a 'universal' app format like iOS ( just ordered my first android so not sure how that works yet) Feb 15 23:42:17 In terms of the same app working on phones and tablets? Feb 15 23:42:18 apk ? Feb 15 23:42:25 they do Feb 15 23:43:15 apple741, you'll be better served on #android irc. Feb 15 23:48:56 Hi Guys. I want to attach other layouts to a webview and make them all scroll together as one big page. is it possible? Feb 15 23:51:15 apple741: In general, yes. Although an application can depend on certain functionality which makes it incompatible with devices that are missin that functionality Feb 15 23:53:32 Thanks JesusFreke thats a good point! That hardest thing to deal with I think is all the different screen sizes. Feb 15 23:53:41 eh, not really. Feb 15 23:54:53 the hardest part, truly, is making an app with an engaging, intuitive, powerful, and easy to understand interface. good luck ;) Feb 15 23:57:51 jasta: that might be tied with getting noticed on the play store Feb 15 23:58:10 oh, yeah, marketing :) Feb 15 23:59:15 hey Feb 15 23:59:53 animation-xml happenz to be buggy Feb 16 00:03:54 I store calendar.getTimeInMillis() with getSharedPreferences when I start an AlarmManager that plays audio when time is up. Then I have a BroadcastReceiver that starts a new AlarmManager if the device reboots (since the old one gets removed). I also start a new NotificationCompat.Builder that is updated every second with the time left ("Time remaining is: HH:mm:ss"). Problem is that after reboot, the new notification only works for somethi Feb 16 00:03:54 like 10 seconds before it freezes. The Chronometer still counts though, and the alarm rings as it should. Any ideas? :S Feb 16 00:04:55 Since I reboot I can't see anything in LogCat either Feb 16 00:06:29 …a lots changed in my 2 year hiatus from android dev, time to learn about fragments and remember how to code java Feb 16 00:07:15 the brain kind of sucks, invest all that time learning stuff and it just disappears if you don't use it Feb 16 00:08:22 g00s: Ordered my nexus today :) Feb 16 00:08:35 apple741: \o/ Feb 16 00:12:02 can I somehow see the LogCat even if I reboot? Feb 16 00:18:09 hello all Feb 16 00:24:17 Quacked: you dont need to update the notification constantly with a countdown Feb 16 00:24:40 Clever, no, but I kinda want to :) Feb 16 00:24:52 Quacked: you can get the same effect without having to do that Feb 16 00:25:03 http://developer.android.com/reference/android/app/Notification.Builder.html#setWhen(long) Feb 16 00:25:20 if you set that, android will calculate the time remaining automaticaly, and show it in the notif Feb 16 00:25:59 You're kidding Feb 16 00:26:06 Maaan Feb 16 00:26:07 :P Feb 16 00:26:19 I need to test that :d Feb 16 00:27:18 I thought it only showed when the notification happened.. I will try Feb 16 00:27:40 once the notification is in the bar (.notify called), it will show the time beside it Feb 16 00:28:03 Quacked: http://gallery.earthtools.ca/index.py/android/device-2012-12-30-045129.png Feb 16 00:28:12 this screenshot shows how it works when you set it to a time in the past Feb 16 00:28:22 in this case, 1 minute ago Feb 16 00:28:41 Quacked: http://gallery.earthtools.ca/index.py/android/device-2013-01-18-183637.png Feb 16 00:28:51 and this one is for times in the future Feb 16 00:29:17 oooh Feb 16 00:29:53 since the OS knows when it ends, your app doesnt have to even be running Feb 16 00:30:20 which should improve the performance of the entire system, no app updating things every second Feb 16 00:33:58 I don't get how you do that really Feb 16 00:34:16 I set it to cal.getTimeInMillis and it shows when the alarm will go off Feb 16 00:34:22 but like this: 01:37 Feb 16 00:34:36 instead of "in 7m" Feb 16 00:34:50 it depends on how far away it is i think Feb 16 00:35:11 let me check, i have a mode in my app thats spams 100's of notifications Feb 16 00:35:35 I tried 40 mins now, same thing Feb 16 00:35:43 you must have done something special :) Feb 16 00:35:52 dingdingdingding, i now have 51 notifications open Feb 16 00:36:23 some say 2/15/13, some say in 58m, and it ranges down to in 12m, in 2m Feb 16 00:36:50 seems to switch at 1h for me Feb 16 00:37:20 weird Feb 16 00:37:50 it may also depend on the version of android in the device, and any changes the oem did Feb 16 00:37:50 could it be my minSdkVersion set to 10? Feb 16 00:38:01 dont know Feb 16 00:38:04 hmm Feb 16 00:38:34 ive got a copy of AOSP here, i can probly dig some answers out Feb 16 00:38:36 I also update notification to show current progress of the alarm.. :P Feb 16 00:38:56 spamming the notification like that is likely to make it imposible to clear Feb 16 00:39:00 But I can live with not having that if it's possible to show minutes left like yours Feb 16 00:39:30 clever: nah, clearing is easy, I have set the notification to persistent, and if the user clicks on it, the alarm is cancelled Feb 16 00:39:37 ah Feb 16 00:39:49 a bit unorthodox but it's an app for myself, not for everyone else :P Feb 16 00:40:00 ive made a few of those Feb 16 00:40:38 This is really my first. In retrospect I probably should have started on something easier Feb 16 00:42:26 doing a scan thru AOSP now... Feb 16 00:42:34 :) Feb 16 00:46:36 ./frameworks/base/core/java/android/app/NotificationManager.java Feb 16 00:46:50 seems to be based in frameworks like most other things Feb 16 00:50:02 hm? Feb 16 00:50:22 it seems to just call functions on INotificationManager, trying to find it now Feb 16 00:50:37 ok Feb 16 00:51:04 that seems to be at base/services/java/com/android/server/NotificationManagerService.java Feb 16 00:51:30 <\monster\> anyone come across JB issue where webview input fields don't get focus on touch? Feb 16 00:52:12 private static final int MAX_PACKAGE_NOTIFICATIONS = 50; Feb 16 00:52:25 Quacked: ah, thats why i topped out at ~51 notifications just now! Feb 16 00:52:37 hehe Feb 16 00:55:12 Quacked: now i'm lost, and there is over 20gig of source code.... Feb 16 00:55:50 :) Feb 16 00:56:39 hail there! Feb 16 01:02:01 clever: when I google after notification pictures I can't find any that has other setWhen than a normal timestamp Feb 16 01:02:50 Quacked: maybe its something amazon changes on my version of android Feb 16 01:03:10 maybe Feb 16 01:05:48 have you tried the app in a virtual device? Feb 16 01:07:50 not recently, and those run pretty slowly Feb 16 01:11:07 using the x86/accelerated emulator images improves things a lot Feb 16 01:11:15 ctate: linux, intel cpu Feb 16 01:12:14 FATAL: Error inserting kvm_intel (/lib/modules/3.3.8-gentoo/kernel/arch/x86/kvm/kvm-intel.ko): Operation not supported Feb 16 01:12:20 [4322133.392963] kvm: no hardware support Feb 16 01:16:31 what should i read to be able to create an app that can trigger an action to be run when a gesture (like double-tapping the volume-up hardware button)? Feb 16 01:16:42 is done Feb 16 01:17:03 Has anyone here used scala or clojure on android? (Yikes, i am asking about something other than c++) Feb 16 01:17:04 do they even work, or work well? **** ENDING LOGGING AT Sat Feb 16 01:22:36 2013 **** BEGIN LOGGING AT Sat Feb 16 03:02:18 2013 Feb 16 03:11:09 i have invoque camera in android but how and where can i save one image from my camera ? Feb 16 03:12:47 whats a dialog box called on android? Feb 16 03:12:58 which i can add radio buttons on? Feb 16 03:13:10 i am invoking the camera with Intent intent = new Intent("android.media.action.IMAGE_CAPTURE"); Feb 16 03:13:18 startActivityForResult(intent, 1); Feb 16 03:13:23 how and where can i set to save the image Feb 16 03:13:37 tona: dont you have to set a bundle? Feb 16 03:13:48 to transfer data from one activity to another? Feb 16 03:13:53 tona you can pass in a destination Feb 16 03:14:00 or Feb 16 03:14:06 capture the bitmap return Feb 16 03:14:24 but if you want full camera image, best to set a destination file Feb 16 03:14:33 then read it onResult Feb 16 03:15:26 nvm Feb 16 03:15:27 http://developer.android.com/guide/topics/ui/dialogs.html Feb 16 03:16:47 tona: eg putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri); Feb 16 03:17:14 and using android.provider.MediaStore.ACTION_IMAGE_CAPTURE Feb 16 03:17:20 or thats what I do Feb 16 03:18:07 ok thanks Feb 16 03:24:13 StingRay i made it and just take picture but no save anything yet Feb 16 04:33:04 how do you guys diagram your app Feb 16 04:33:46 what do you mean by "diagram" ? Feb 16 04:33:57 like draw out Feb 16 04:34:01 the concept / layout Feb 16 04:34:06 ah Feb 16 04:34:10 hire an expensive UX designer :\ Feb 16 04:34:12 :P Feb 16 04:35:24 ==canadiancow Feb 16 04:35:50 Yeah... I guess I'll just make it look basic... I don't know if I should make it more streight forword where you have to select your options or if the app automaticly find out what your trying to find based on what you imputed which might confuse som Feb 16 04:54:20 agy2154: i usually find a sandbox Feb 16 04:54:27 and then i draw a rectangle Feb 16 04:54:30 then just go to town Feb 16 04:54:48 sometimes i get super fustrated if people ruin my diagram during it or if i run out of time Feb 16 04:54:58 sometimes i get so mad i have to stop for a minute and count to ten Feb 16 04:59:30 Hello. Activity related question: Activity A starts Activity B. Activity B does it's job, and user hits 'DONE' button, calling finish(), and returns to Activity A. How can I relaunch a 'fresh' Activity B? Feb 16 05:00:16 .start() ? Feb 16 05:00:16 idk Feb 16 05:00:30 .fresh() Feb 16 05:00:44 .start().fresh() Feb 16 05:00:45 Intent.FLAG_ACTIVITY_NO_HISTORY Feb 16 05:00:55 It launches but does not work as the first time. I think resources from first Activity B are still haunting the second. Feb 16 05:00:57 add that flag to your intent in the on resume Feb 16 05:01:14 I see, let me read up on that. Thank you Feb 16 05:03:31 found this Feb 16 05:03:32 here Feb 16 05:03:32 http://stackoverflow.com/questions/4219577/android-app-activity-to-start-fresh-completely-every-time-it-starts-or-resumes Feb 16 05:04:52 can i port to windows 8? Feb 16 05:06:51 Nvm that was a stupid question Feb 16 05:07:09 report? Feb 16 05:07:18 port what? Feb 16 05:07:46 like port an android application to widnows 8 Feb 16 05:07:58 android2windows.exe Feb 16 05:08:04 is it phoengap? Feb 16 05:08:04 Sersious? Feb 16 05:08:18 ohh Feb 16 05:08:20 no Feb 16 05:08:24 I can't use that Feb 16 05:08:26 then no Feb 16 05:08:28 why not Feb 16 05:08:33 what are you using Feb 16 05:08:35 Because its in eclipse Feb 16 05:08:38 win8 apps are c# arent they Feb 16 05:08:44 yeah Feb 16 05:08:44 phonegap uses eclipse Feb 16 05:08:58 they arn't pure javascript html and like all that Feb 16 05:09:04 they have java Feb 16 05:09:38 how do major companies do it Feb 16 05:09:44 like games Feb 16 05:09:46 do they recode it? Feb 16 05:10:16 depends on the size of the company Feb 16 05:10:24 hi Feb 16 05:10:28 facebook went native w/ ios and then used phonegap at first Feb 16 05:10:31 centralizing their assets Feb 16 05:10:33 KillmeSoftly: hi Feb 16 05:10:47 then realized they somewhat made a mistake w/ phonegap and went native Feb 16 05:10:53 acidjazz: thats an efficent thing to do Feb 16 05:11:07 it also depends on your product Feb 16 05:11:14 games vs interfaces Feb 16 05:11:20 mine is an interface Feb 16 05:11:25 its kind of complex Feb 16 05:11:31 involves a lot of math Feb 16 05:11:35 Say I have a string (s2 = "Hello everyone this is a string") how can I delete everything before this and everything after a...so the new string will read: str = "this is";??? Feb 16 05:12:30 KillmeSoftly: depends on if that will always be the format Feb 16 05:12:47 lets just say it is Feb 16 05:12:51 options are tokenize it, regex, indexof Feb 16 05:12:55 KillmeSoftly: just use .replace Feb 16 05:13:05 if its static Feb 16 05:13:10 and thats what your always going to replace Feb 16 05:13:11 or replace Feb 16 05:13:22 ok thanks Feb 16 05:14:04 or if it's same length just do a subString Feb 16 05:14:13 Is it bad if there is a lot of code? Will that cause the system to crash? Feb 16 05:14:28 s2.subString(20,29); etc Feb 16 05:14:46 Yeah substring is better Feb 16 05:15:23 agy2154: lot of code ? Feb 16 05:15:30 crash? Feb 16 05:15:41 like is it ok if i have 400 lines in my class Feb 16 05:16:03 will it go over the heap or something Feb 16 05:16:07 well I have 10x more than that Feb 16 05:16:11 in some things Feb 16 05:16:21 damn Feb 16 05:16:35 I am just realizing how time consuming this is Feb 16 05:18:52 Does anyone mind if i see some of there work? Feb 16 05:18:55 @agy2154 Better to have the no history flag in onResume() of Activity B or in the button of Activity A which starts Activity B? The button to start a new Activity B is calling startActivity() currently. thanks Feb 16 05:20:03 flipuhdelphia: In the button Feb 16 05:20:12 flipuhdelphia: right before you call the intent Feb 16 05:20:29 o ok i'll leave onResume() as is then , thanks. Feb 16 05:20:34 or like start the intent Feb 16 05:20:37 just add the flag Feb 16 05:20:57 yeah thats the best if it is right before where it is being called Feb 16 05:22:42 do you guys put ads on your apps? Feb 16 05:23:11 no Feb 16 05:23:19 not done my 1st app yet Feb 16 05:23:27 but no I dont think it a good idea Feb 16 05:24:20 I'm probably going to finish my second this weekend since I have a bit of extra time on presidents day Feb 16 05:25:37 what was your 1st ? Feb 16 05:25:41 sorry for the stupid questions, I am a android newbie (relatively speaking).... how can I pass a string to an intentservice? should I just to putExtra when doing the Intent to start the service? Feb 16 05:25:50 use* Feb 16 05:25:53 yes Feb 16 05:25:57 thnx Feb 16 05:27:27 StingRay_: It was two years ago when I was 15. It was a REALLY basic application. Basically a biology lesson. Surprisingly it has like 10000+ downloads. I can't update it because I lost the key. Feb 16 05:27:55 freaky Feb 16 05:28:02 and whats your 2nd ? Feb 16 05:28:15 StingRay_: Physics app to predict parabolic motion Feb 16 05:29:07 StingRay_: It isn't as simple as my first one because there are TONS of conditions and I am trying to automatically detect what the user is trying to solve for biased on what he imputed . Feb 16 05:29:09 i always wanted an app to alert me to my parabolic ways Feb 16 05:29:15 haha Feb 16 05:29:37 I actually have a list of apps I would like to make Feb 16 05:30:38 Ah, there's a flaw...Activity B calls an camera Intent , and on return from filming a video, Activity A shows up instead of returning to Activity B. Feb 16 05:31:22 looking at more flags... Feb 16 05:31:30 you should be looking at less flags Feb 16 05:31:32 :P Feb 16 05:32:38 flipuhdelphia: I don't understand your current situation Feb 16 05:32:38 canadiancow: see this? some crazy data collection app (not just signal) http://www.androidpolice.com/2013/02/15/new-app-valarm-pro-monitors-sensor-data-remotely-uploads-for-detailed-tracking-and-study/ Feb 16 05:33:24 yeah it looks very iosy Feb 16 05:33:32 flipuhdelphia: check what happenes when you finish filmin Feb 16 05:34:31 Activity A is like a menu. It has a "new" button to launch Activity B, which is meant for filming video, editing options, etc. I have a button "DONE" in B to return to the menu (Activity A). I would like to launch a fresh Activity B next time I press "NEW" in the menu (Acitivty A). Feb 16 05:35:03 flipuhdelphia: Okay but whats wrong with your application now... where are you stuck at? Feb 16 05:35:25 Upon returning from camera Intent started in Activity B, we return to Activity A. Feb 16 05:35:39 (instead of B) Feb 16 05:35:47 Would the camera intent be started in activity a? Feb 16 05:36:14 where do you want to start off at? Feb 16 05:36:19 You start the intent there Feb 16 05:38:11 Camera starts in B Feb 16 05:38:17 So here's the lifecycle: Feb 16 05:39:04 Wait Feb 16 05:39:16 When you start the app your presented at the menu? Feb 16 05:39:16 hey, I want to pass a reference to an ArrayList to an intent I'm calling. Is that possible? Feb 16 05:39:22 App launch in A. Press "NEW" button to launch B. B calls camera intent, can edit video, do fancy processing, etc. then finish() called when 'DONE' pressed to return to A. Consecutive "NEW" button presses should launch fresh Activity Bs. Feb 16 05:40:02 doomrobo: http://stackoverflow.com/questions/5374546/passing-arraylist-through-intent Feb 16 05:40:06 right now, with those 2 flags, the return from camera intent lands me in Activity A . Feb 16 05:40:34 btw thanks for helping out :) Feb 16 05:40:59 ok Feb 16 05:41:11 when your openeing b for the first time the intent you use to open it is in a right? Feb 16 05:41:17 the intent you are starting Feb 16 05:41:29 when your starting the activity Feb 16 05:41:33 agy2154, it's actually an ArrayList> will it still work? Feb 16 05:41:57 and it's not the actual arraylist I want to pass, it's a reference to it Feb 16 05:42:03 I need to change data in the calling intent Feb 16 05:42:20 i dont think you understand how parcelables work Feb 16 05:42:21 :P Feb 16 05:42:33 x must implement Parcelable Feb 16 05:42:40 or you will not be able to stick it in a bundle Feb 16 05:43:02 putParcelableArrayListExtra Feb 16 05:43:21 That copies data, no? Feb 16 05:43:24 this is all copying data Feb 16 05:43:36 is there any way to modify data in my calling activity? Feb 16 05:44:18 yeah Feb 16 05:44:37 before you start the activity Feb 16 05:44:40 add the flag Feb 16 05:45:05 what flag? Feb 16 05:45:08 In java can't you just access it from another calss? Feb 16 05:45:12 startActivity(newActivityB.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY).addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)); Feb 16 05:45:23 doomrobo: I was talking to flipuhdelphia Feb 16 05:45:43 that's what happens when i pressed "NEW" button in A. Aside from Intent newActivityB = new Intent(....); Feb 16 05:46:05 why do you have FLAG_ACTIVITY_CLEAR_TOP Feb 16 05:47:30 AH, I have to callActivityForResult Feb 16 05:47:42 hmmm Feb 16 05:47:50 *start Feb 16 05:48:29 flipuhdelphia: you can do FLAG_ACTIVITY_NO_HISTORY for the first time Feb 16 05:48:37 it shouldn't come back to the same point later on no matter what Feb 16 05:50:05 i still return to A instead of B from the camera intent Feb 16 05:50:58 flipuhdelphia: Wait so your problem is that your not getting to b from the frist place? Feb 16 05:51:07 no original issue was Feb 16 05:51:07 flipuhdelphia: if thats the case check your manifest Feb 16 05:51:27 remove all your flags Feb 16 05:51:29 :) Feb 16 05:51:37 StingRay_: ^^^^^^ Feb 16 05:51:55 flipuhdelphia: try starting off fresh where you were Feb 16 05:52:12 When I hit "NEW" the second time , to launch a new/fresh B , I don't think resources were freed from previous B. Feb 16 05:52:50 flipuhdelphia: define resources and what makes you think they stayed Feb 16 05:53:00 So...A -> B -> processing/bunch of work -> finish() -> A -> B -> this B has trouble since i don't think it's 'fresh' Feb 16 05:53:53 do you use finish () Feb 16 05:53:57 in b Feb 16 05:54:04 when you are goning back to A/ Feb 16 05:54:09 or in a Feb 16 05:54:09 idk Feb 16 05:54:22 teh processing involves calling a camera intent. And returning from camera intent now jumps straight to A instead of B where I need to process the video :P Feb 16 05:54:44 Yeah I called finish() Feb 16 05:55:00 flipuhdelphia: Feb 16 05:55:01 http://developer.android.com/guide/topics/manifest/activity-element.html Feb 16 05:55:31 taskAffinity Feb 16 05:55:43 read and decide what you want Feb 16 05:55:49 Well, one resource issue i noticed was a ImageView I have on B's layout. Feb 16 05:56:15 When I return from camera, I take first frame of vid and draw it on screen as a preview. Feb 16 05:57:39 This worked on the first run of B. On the second, the ImageView stayed blank. All first runs of B are working, but relaunching B from A weren't 100%. The flag may have fixed this issue, but is causing me to jump to A after returning from a camera intent called in B. Feb 16 05:57:41 how can I start an IntentService in a fragment? Feb 16 05:58:05 KillmeSoftly: getActivity().startService() Feb 16 05:58:10 thnx Feb 16 05:58:19 fredcooke: Its probably the order of your intent in which its being called maybe? Feb 16 05:58:26 where can i edit android:textAppearance="?android:attr/textAppearanceMedium ? Feb 16 05:59:45 agy2154: you mean replace not edit ? Feb 16 05:59:56 you dont want to edit system stuff right ? Feb 16 06:00:16 StingRay_: Nvm I can't edit it... can I use a custom style on a text? Feb 16 06:00:26 yeah Feb 16 06:00:41 you can use a custom style on any views afaik Feb 16 06:03:22 So anyone here use IntelliJ over Eclipse? Feb 16 06:03:35 if so can you tell me what featurs it is that you like the most in IntelliJ? Feb 16 06:04:30 Brian|CS: It looks orginized Feb 16 06:04:42 Brian|CS: EClipse is currently taking up my whole screen Feb 16 06:05:04 I just installed the 30 day trial of IntelliJ to give it a try Feb 16 06:05:33 bri7x? Feb 16 06:05:47 wrong guy sorry Feb 16 06:07:02 does anyone here use the Reddit is Fun app? Feb 16 06:07:28 i dont really use apps... just music, chrome, youtube and gmail Feb 16 06:07:46 does anyone here know of any way to backup your eclipse projects online in the background? Feb 16 06:08:52 Killme does that mean you do use it? Feb 16 06:09:41 uh no...reddit is fun was not in the list of apps that i said i used...was it? Feb 16 06:09:57 oh I thought you were joking Feb 16 06:11:24 I wasted the last three hours staring at my computer scren Feb 16 06:11:29 doing nothign Feb 16 06:11:48 DarkIRC2100: are you the author of that app? Feb 16 06:11:57 DarkIRC2100 - that was no joke...occasionally ill use NHL GameCenter app Feb 16 06:12:11 which sucks by the way Feb 16 06:12:23 they need a better developer for that thing, it is horrible Feb 16 06:13:23 Leeds: I am not, I just wanted to know how the listview drop-down function is created in the app Feb 16 06:13:30 I just looked it up its a popular app Feb 16 06:13:47 spinner? Feb 16 06:14:26 anyone know a good tutorial on widgets? Feb 16 06:14:31 like how to start off? Feb 16 06:14:34 it could be but it doesn't look like one, when you click on an item in the list view, some buttons right below it drop down, its kinda like an expendable list-view but not sure Feb 16 06:14:53 which widgets Feb 16 06:15:17 just a normal widget? Feb 16 06:15:28 basic home screen widget Feb 16 06:16:30 I mean like a TimePicker widget or something? Feb 16 06:16:59 yeah Feb 16 06:17:09 Alright guys Feb 16 06:17:12 Ill work on this in the monring Feb 16 06:17:15 its getting late here Feb 16 06:17:19 DarkIRC2100: spinner maybe? Feb 16 06:17:20 Thanks all Feb 16 06:22:01 fuck Feb 16 06:22:05 can't watch netlix on linux Feb 16 06:22:06 I hate my life Feb 16 06:22:18 well you can Feb 16 06:22:22 but it's crap Feb 16 06:22:32 and I assume you ment netflix Feb 16 06:22:44 or is netlix some porn thing ? Feb 16 06:23:12 lol Feb 16 06:23:27 had to have a look Feb 16 06:23:27 http://netlix.com/ Feb 16 06:23:35 disappointing Feb 16 06:25:21 clever: yeah it could be, but it doesn't actually look like a spinner. I might just use an expendable list view Feb 16 06:31:16 Does anyone know a media player which handles BOTH AUDIO {MP3} and VIDEO {MP4} files as well as playlists and playback while minimized or if the screen's off? Feb 16 06:34:44 new[]: I think thats a user/android question Feb 16 06:34:52 rather than a development question Feb 16 06:35:01 try #xda-devs or #android Feb 16 06:55:34 why wont my relativeview (a child of a scrollview) fill the entire screen even tho the relative view is set to "match_parent" for height and width??? Feb 16 06:57:04 scrollView requires linLayout as 1st child ? Feb 16 06:57:30 and it's not the screen that you attempt to fill, it's the parent view Feb 16 06:57:42 and the scroll that is the upstream parent is infinate Feb 16 06:57:44 :) Feb 16 06:58:15 I'm pretty sure it doesn't *require* any specific child - but yeah, it doesn't have a fixed size Feb 16 06:58:18 no Feb 16 06:58:20 err Feb 16 06:58:22 yes Leeds Feb 16 06:58:24 no StingRay_ Feb 16 06:58:33 KillmeSoftly, you can't set a scrollview's child to match_parent Feb 16 06:58:42 you set it to wrap_content Feb 16 06:58:49 always thought that it had to be linear Feb 16 06:58:52 no Feb 16 06:58:55 or chucked errors Feb 16 06:59:01 no Feb 16 06:59:05 :) Feb 16 06:59:30 as the docs say, it shouldn't be a listview, because that does its own scrolling... otherwise, no restrictions AFAIK Feb 16 06:59:44 well, not another scrollview :P Feb 16 07:00:00 I heard your like scrollviews? Feb 16 07:00:04 er, you Feb 16 07:00:22 did i tell you about my first team lead at zynga? Feb 16 07:00:30 he wanted to put three listviews in a scrollview Feb 16 07:00:35 becuase he couldnt figure out how to make a listview works Feb 16 07:00:40 so hang on, how does match_parent work in a scroll, your saying it will fill the screen only? Feb 16 07:00:41 :) Feb 16 07:00:48 and then allow scrolling after that ? Feb 16 07:01:03 assuming vertical scrollign, ScrollView's layout_height="match_parent" Feb 16 07:01:10 ScrollView's child's layout_height="wrap_content" Feb 16 07:01:26 no he wanted the child view of the scroll to fill the screen Feb 16 07:01:32 unless i read it wrong Feb 16 07:03:01 it will fill the screen Feb 16 07:03:10 or rather, the scrollview's visible area Feb 16 07:04:24 hmm brain not comprehending things, just turned 7am here, time for sleep I think Feb 16 07:05:37 Hi, I found a bug in the UI of Google's calendar app. There's no email-address in Play Store for the app. Where should I file the issue? Feb 16 07:06:20 b.android.com Feb 16 07:06:27 OR Feb 16 07:07:01 pm sent Feb 16 07:10:03 bear_ did you get my pm? Feb 16 07:10:05 nm Feb 16 07:20:36 oh sorry guys. I made the RelativeLayout a child of a LinearLayout and it works juss fine. thanks Feb 16 07:51:22 so how would I make a View "glow" with a transition color if its background is drawn over by its children's backgrounds? Feb 16 08:11:08 why would I want ActionBarSherlock to use the native actionbar in 4.0+ instead of always using it's own implementation? Wouldn't that allow more customizations? /cc JakeWharton Feb 16 09:14:16 The point of ABS isn't to allow more customization, it's to provide the official action bar API on older platforms Feb 16 09:16:01 Using the native implementation on ICS+ simplifies this, since we only have to match the compat behavior to ICS, and not account for changes on newer platforms Feb 16 09:16:27 You also have to consider, that eventually ABS is going to be deprecated Feb 16 09:16:59 By sticking to the official API, minor changes are needed to switch completely to the native implementation Feb 16 09:18:09 Same goes the other way around Feb 16 09:27:57 SimonVT: ok that makes a lot of sense. thanks! Feb 16 09:36:50 can I use ANDROID_ID on 2.3.3+? Feb 16 09:38:06 Check the docs for it Feb 16 09:45:49 SimonVT: but there was this issue of some foryo devices always returning the same id. So I've catched that one issue. but is there anything else that's wrong with it? Feb 16 09:54:15 Doesn't that blog post on identifying installs say when it's safe to use? Feb 16 09:54:49 good morning :) Feb 16 09:55:08 morning ;) Feb 16 09:55:49 whats up with this "build/core/java.mk:33: *** frameworks/support/v4: Invalid LOCAL_SDK_VERSION '17' Choices are: current 4 5 6 7 8 9 10 11 12 13 14 15 16. Stop." ? How can i fix this, or do i just have to wait ? Feb 16 09:56:04 SimonVT: if i read it correctly it says that it's not really safe to use ever. but it also doesn't offer a proper alternative, because Build.SERIAL seems to only be required for non-phones? Feb 16 09:56:30 SimonVT: i just want something that's easy to use without caveats, like http://developer.apple.com/library/ios/#documentation/uikit/reference/UIDevice_Class/DeprecationAppendix/AppendixADeprecatedAPI.html#//apple_ref/occ/instp/UIDevice/uniqueIdentifier :) Feb 16 09:58:21 I believe that issue is only <=2.2 Feb 16 09:59:05 The "Also, there has been at least one widely-observed bug in a popular handset from a major manufacturer, where every instance has the same ANDROID_ID." part Feb 16 09:59:44 That id is pretty well known tho, you could check for it Feb 16 10:01:40 Wonder how ANDROID_ID behaves with multiple users on a device Feb 16 10:03:16 i am using androifd_id do identify users in my app :) Feb 16 10:05:05 how can you have multiple users on one device? :-/ Feb 16 10:05:43 SimonVT: thanks! I read on stackoverflow that ANDROID_ID is different for each user. but I didn't confirm it Feb 16 10:05:45 By getting a 4.2 tablet Feb 16 10:05:55 ah only tablet, ok :) Feb 16 10:05:58 Ah, good Feb 16 10:06:37 is this multi-user thing working good? Feb 16 10:25:57 Hi! I'm trying to start an application from Qt Creator and I get: "No content provider found for permission revoke: file:///data/local/tmp/AndroidQt5-debug.apk". Anyone who knows a possible reason for this? Feb 16 10:51:43 I got my ListView working! f*k yeah! :D Feb 16 10:55:25 hi all Feb 16 10:55:42 this is probably a silly question but i can't seem to find the answer Feb 16 10:56:07 whenever i change the "telephony status" in the android monitor the emulator losses its connection with the monitor Feb 16 10:56:23 do i need to configure something in the android emulator for this to work correctly? Feb 16 10:56:36 using the Intel X86 image btw Feb 16 10:57:32 the emulator also complety disapears from the device list in the monitor Feb 16 10:59:06 how can i automatically scroll to bottom in a ListView if i add an item to it? on the beginning i am using videoList.setStackFromBottom(true); videoList.setTranscriptMode(ListView.TRANSCRIPT_MODE_ALWAYS_SCROLL); but this wont workinf i add items later... Feb 16 11:00:43 should be able to call a ScrollTo function Feb 16 11:05:36 but how can i tell this function to scroll to bottom? Feb 16 11:13:36 Styler2go: setTranscriptMode should be doing that automaticaly Feb 16 11:13:58 ok then its a different problem Feb 16 11:14:07 how are you adding items to the list? Feb 16 11:14:08 it only refrshes the view if i touch the screen... Feb 16 11:14:19 .add method of ArrayList<> Feb 16 11:14:49 for (ChatListItem i : item) {dataarr.add(i); } chatList.notifyDataSetChanged(); Feb 16 11:14:49 that wont trigger an update on its own Feb 16 11:14:56 you need to call yeah that Feb 16 11:15:15 but ids only shows new items when i touch the screen Feb 16 11:15:16 in my chat ui, i just wrote an entirely custom adapter Feb 16 11:15:50 it just extends BaseAdapter Feb 16 11:16:16 then i just implement getCount, getItem, getItemId, and getView Feb 16 11:16:54 * clever goes back to bed Feb 16 11:19:04 dapter Feb 16 11:19:10 i am using ArrayAdapter Feb 16 11:21:44 http://commons.apache.org/lang/api-2.4/org/apache/commons/lang/StringEscapeUtils.html#unescapeHtml%28java.lang.String%29 is this function in java? Feb 16 11:21:58 i mean, as a normal standard function? Feb 16 11:22:59 Why does MediaPlayer hate me? It always gives me an inconsistent behaviour. Feb 16 11:23:49 At least it's consistently giving you inconsistent behavior Feb 16 11:23:58 :D Feb 16 11:24:02 +1 Feb 16 11:24:27 SimonVT: That's bound to mean something, right? Feb 16 11:24:48 ok, someone an idea how to decode html in java? Feb 16 11:25:18 Styler2go: Decode entities? Feb 16 11:26:43 yepp Feb 16 11:27:37 Styler2go: http://stackoverflow.com/a/2919078/860212 Feb 16 11:28:24 :D Feb 16 11:28:28 thank you! Feb 16 11:32:08 SimonVT: http://codepad.org/XZ8oqJIQ Feb 16 11:32:18 Styler2go: No problem! Feb 16 11:33:24 n20: I've yet to use the mediaplayer api, so you're on your own :) Feb 16 11:34:14 D'oh. :-/ Thanks anyways SimonVT. Anyone out there that's been playing around with it? Feb 16 11:38:41 hey Feb 16 11:40:03 Is it possible to get this "in 47m" on a normal Android version? http://gallery.earthtools.ca/index.py/android/device-2013-01-18-183637.png Feb 16 11:40:56 sure? Feb 16 11:41:17 you can make a custom notification layout Feb 16 11:41:32 If I do setWhen it just says like 12:45 instead of "in 4m" Feb 16 11:42:12 So what I currently do is update the notification every second with contenttext "Time remaining is HH:mm:ss" Feb 16 11:42:58 and this is not working? Feb 16 11:43:07 or, what is your problem? ^^ Feb 16 11:43:13 I'm guessing it's resource hungy :P Feb 16 11:43:22 yes it is... Feb 16 11:43:43 actually not just ressource but also battery hungry i would guess Feb 16 11:43:49 -s Feb 16 11:43:49 i had very hard problem with the .notify and the ressources Feb 16 11:43:54 Yeah, karlsve Feb 16 11:45:03 and on some phones the battery part is way more important than anything else Feb 16 11:47:04 Quacked: http://stackoverflow.com/questions/8403662/how-to-make-a-count-down-timer-in-notifications-view Feb 16 11:47:46 seems like some people gave up on that ^^ Feb 16 11:48:19 Hehe Feb 16 11:48:43 if my list only shows new content if i touch the screen, what can be the problem? Feb 16 11:48:54 I just update setContentText and setProgress every second with a setTimer Feb 16 12:00:28 anyone here is using iText for PDF generation? Feb 16 12:04:49 i used xmlworker to parse html and convert it to pdf. but when I have an tag in the html, my application crashes! so what should I do? Feb 16 12:07:45 http://stackoverflow.com/questions/14857383/error-in-connecting-to-smtp-using-javamail Feb 16 12:08:44 How can I log stuff from my app after a reboot? Feb 16 12:08:57 I mean, when it reboots it disconnects from Eclipse Feb 16 12:09:08 so nothing will be displayed in LogCat Feb 16 12:09:25 write it to a log file on sd? Feb 16 12:09:42 acra can also show some interesting crashes by pushing to a google doc Feb 16 12:09:52 public void appendLog(Exception ee) { Feb 16 12:09:52 StringWriter sw = new StringWriter(); Feb 16 12:09:52 PrintWriter pw = new PrintWriter(sw); Feb 16 12:09:52 ee.printStackTrace(pw); Feb 16 12:09:52 String text = sw.toString(); Feb 16 12:11:21 try write log to sdcard Feb 16 12:11:49 hmm this chromebook seems poor for devs :) Feb 16 12:11:54 forsubhi: how? Feb 16 12:13:27 I found something in stackoverflow Feb 16 12:16:57 http://stackoverflow.com/a/6209739/1327384 Feb 16 12:20:45 I tried the answer here: http://stackoverflow.com/questions/8982263/how-to-write-entire-logcat-in-to-sdcard Feb 16 12:21:02 But I dont see any log.txt Feb 16 12:22:31 hey....i have a activity that i deletes an element of an Browser. When i finish it i came to the browser, but i doesnt refresh, so that the deleted element is still displayed. How can i fix it? Is there a possibility to undisplay the deleted element? Feb 16 12:27:45 Anyone knows whta i could do if my ListView only shows the new added Items when i touch the screen? Feb 16 12:38:31 hi everyone Feb 16 12:38:40 hi one :) Feb 16 12:38:57 how can i save one photo from my camera ? one example will be better Feb 16 12:39:56 tona: http://developer.android.com/training/camera/index.html Feb 16 12:42:43 or i read it save the photo but i havent see where to set my path i want to save it sd card Feb 16 12:44:52 http://developer.android.com/training/camera/photobasics.html#TaskPath Feb 16 12:46:27 can someone help me? it seems my eclipse is messing up again.. anyone knows what i can do? http://img145.imageshack.us/img145/6245/climsyclipboard.png Feb 16 12:54:25 /test Feb 16 12:54:43 /fail Feb 16 12:55:05 :) Feb 16 12:55:28 how did you enter the slash as first char? o0 Feb 16 12:55:36 thats magic Feb 16 12:55:37 /like this Feb 16 12:55:42 hrm Feb 16 12:55:47 HOW Feb 16 12:55:52 * pragma- points at Leeds with great irony. Feb 16 12:55:57 /that was the test yes. i typed '/ /test' Feb 16 12:56:00 yeah thats why i asked:p Feb 16 12:56:14 /haha Feb 16 12:56:17 so funny Feb 16 12:56:20 .-/ Feb 16 12:56:28 finally i could save the photo on sd using putextras, but how can i view my photo on ImageView component Feb 16 12:56:43 .e Feb 16 12:58:11 if i install cyanogenmod on a rooted device with locked bootloader Feb 16 12:58:22 then i cant load a custom kernel, right? Feb 16 12:58:24 you will be wrong here? :D Feb 16 12:58:56 hm? i dont want to join a new channel for every question -.- Feb 16 12:58:58 /ha Feb 16 12:59:10 next fail Feb 16 12:59:13 cari: this is #android-dev for app development - you want #android-root for screwing up your OS Feb 16 12:59:26 its just 1 question calm down.. Feb 16 12:59:27 :D :D Feb 16 12:59:38 cari: but i will tell you: Feb 16 12:59:41 yes, #android-root for flashing etc, #cyanogenmod for all things cyanogen Feb 16 12:59:53 see? thats 2 channels. im confused Feb 16 13:00:13 cari: you can flahs a new kernel Feb 16 13:00:14 don't be, android is a big topic, so its just split for convinience Feb 16 13:00:36 either way, this is definitely 100% not the correct channel Feb 16 13:00:36 there is even #android-offtopic for all your chat needs :) Feb 16 13:00:44 i bet, there are people here that would have less work with typing the answer than with discussing the topic now Feb 16 13:01:15 cari: it is the way it is this chat flow is ment to be about app development. Feb 16 13:01:17 cari i told you Feb 16 13:01:29 ok ok... alright Feb 16 13:01:38 and can someone help me with an android problem now? :D Feb 16 13:01:42 i used xmlworker to parse html and convert it to pdf. but when I have an tag in the html, my application crashes! so what should I do? Feb 16 13:02:54 join #xml for the answer Feb 16 13:02:57 ;-) Feb 16 13:03:02 scnr Feb 16 13:03:16 http://pastebin.com/ej8uZhqv any idea? Feb 16 13:04:34 forget what i wrote... Feb 16 13:20:37 I have a TableRow with 4 buttons and I use android:stretchColumns="*" in the TableLayout. How can I make the button text not expand the width of the buttons? I want all buttons to be equally wide Feb 16 13:20:55 If I use a long name for a button I rather want the text to be smaller Feb 16 13:21:41 why not calculate a width and then set this fixed width? Feb 16 13:22:10 You mean get pixels of screen and then calculate a width? Feb 16 13:22:35 like a percentage width in html and css, yes... Feb 16 13:23:46 hmm Feb 16 13:25:20 i am trying to see one photo previus save in my sd and i am watching with it but suudenly quit my applicatio why this is my code Feb 16 13:25:23 ImageView im; Feb 16 13:25:23 im = (ImageView) findViewById(R.id.camera_image); Feb 16 13:25:23 Feb 16 13:25:23 String file = String.format("/sdcard/flashCropped.png", System.currentTimeMillis()); Feb 16 13:25:24 Feb 16 13:25:24 Bitmap bitmap = BitmapFactory.decodeFile(file); Feb 16 13:25:25 im.setImageBitmap(bitmap); Feb 16 13:25:25 Feb 16 13:26:00 Styler2go: would simply using layout weight work? Feb 16 13:26:02 please usw pastebin next time ... Feb 16 13:26:09 i think yes Feb 16 13:26:23 ok Feb 16 13:26:40 never use hardcoded /sdcard/ tona Feb 16 13:26:47 use Enviroment.get... Feb 16 13:27:55 do you have one example Feb 16 13:28:10 and post your code on pastebin please Feb 16 13:28:30 File imageExist = new File(Environment.getExternalStorageDirectory() + "/" + Environment.DIRECTORY_MUSIC + "/VBT Splash/.images/" + params[1] + ".jpg"); Feb 16 13:28:45 for example Feb 16 13:29:58 ok with it i am geeting the file but to set it on a ImageViewer Feb 16 13:30:13 Or something like Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES); Feb 16 13:30:57 there is a function to set the image, or? Feb 16 13:31:25 http://developer.android.com/reference/android/widget/ImageView.html#setImageURI(android.net.Uri) Feb 16 13:31:28 try this Feb 16 13:31:51 you won't need BitmapFactory Feb 16 14:05:48 I will ask again: What can i do if my ListView only shows new entries if i touch it? Feb 16 14:06:18 I'm trying to run a tutorial about android games, but it keeps crashing with a OutOfMemoryError. What hardware spec do I need to tune to get rid of the error. I already set internal storage to 2GiB. SD card (not even used) to 1 GiB and RAM to 1024? Feb 16 14:07:24 Somelauw: how about trying to find the bug which is causing the error... Feb 16 14:08:06 Leeds: It prints OutOfMemoryError, so that's a hardware issue, right? Feb 16 14:08:14 no, of course not Feb 16 14:08:41 But I'm simply running a tutorial, so that code should be correct. Feb 16 14:08:56 no, of course not Feb 16 14:09:12 tutorials are full of bugs, outdated code, etc. Feb 16 14:10:10 Could you recommend a tutorial about creating android games that is bug free and pretty much up to date? Feb 16 14:10:38 nope Feb 16 14:13:49 (I mean, I don't know of any such tutorials...) but you could still try to debug the one you're using Feb 16 14:14:24 Are you sure this error can't be solved by assigning more memory: http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/OutOfMemoryError.html says it is caused by not being able to allocate more memory. Feb 16 14:14:54 What is VM heap in the emulator setting? I mean what does it do? It is set to 16 now. Feb 16 14:14:58 you have a memory leak and you shouzld find this Feb 16 14:14:59 so you need to find out what is trying to allocate too much memory Feb 16 14:15:05 instead of wasting more and mor ememory Feb 16 14:16:27 and more and more time... Feb 16 14:16:45 It does load some resources, but it is not loading them inside a loop or something. Feb 16 14:17:00 or every step Feb 16 14:17:05 in what line it gets the outofmemory? Feb 16 14:19:09 Hmm, as soon as it loads the background. Feb 16 14:19:23 post the line...? Feb 16 14:19:38 Somelauw: think of this as an opportunity to learn Android debugging, while you're learning coding Feb 16 14:20:31 Styler2go: Assets.background = g.newImage("background.png", ImageFormat.RGB565); Feb 16 14:21:21 background is only 32 kB Feb 16 14:21:57 only 32kB when you decode it into an uncompressed bitmap? Feb 16 14:21:58 using a smaller image worked Feb 16 14:22:17 Leeds: as png so probably compressed Feb 16 14:22:57 what is g? Feb 16 14:23:35 but that should be solvable by assigning more memory, right? Feb 16 14:23:44 Leeds: A graphics class Feb 16 14:23:56 ok, and now you're being unhelpful, so I'm out Feb 16 14:23:58 Somelauw: How much memory do you currently have Feb 16 14:24:07 I have a fixed size of a button but variable button text length. I want the text size to shrink and always be on one line if the button text becomes longer. Any ideas? Feb 16 14:24:42 Quacked: maybe? http://stackoverflow.com/questions/5033012/auto-scale-textview-text-to-fit-within-bounds Feb 16 14:25:18 bah Feb 16 14:25:19 Leeds: I'm using the tutorial and framework from http://www.kilobolt.com/day-6-the-android-game-framework-part-ii.html Feb 16 14:25:20 nothing native Feb 16 14:25:51 Styler2go: Internal storage is 2GiB. Feb 16 14:26:12 and RAM is set to 1024 Feb 16 14:26:26 Not sure what to do with VM heap. Feb 16 14:27:11 so.... Feb 16 14:27:25 dont set this up... Feb 16 14:27:47 maybe, just MAYBE, it would work then. But never on any other phone. Feb 16 14:29:33 I want to get it to work just on the emulator for now. Feb 16 14:29:58 if i cancel a timer, cant i reuse it? Feb 16 14:33:50 anyone a screenshot of emulator settings that can handle most apps? Feb 16 14:34:07 try androVM Feb 16 14:34:45 http://developer.android.com/tools/devices/emulator.html Feb 16 14:34:55 try androVM. Feb 16 14:37:46 How should I parse out values from String like "24h55m"? Sometimes the String would be "55m" and sometimes also just "2h". Feb 16 14:38:19 can you explain some more? Feb 16 14:38:22 Hehe Feb 16 14:38:29 or give an example? :D Feb 16 14:39:03 Styler2go: can it be used for debugging in the same way as the emulator in android sdk? Feb 16 14:39:34 alomst same way, you just have to type in adb console adb connect Feb 16 14:40:35 I have a String that can be for instance: XXhXXm, XXh, Xh, XXhXm, XXm, Xm. I need to grab values of h and m. :) Feb 16 14:40:49 Quacked: is this helping you? http://catchthecows.com/?p=72 Feb 16 14:41:06 So maybe something if (String has m) { grabCharsBefore m} Feb 16 14:41:21 yes, why not do it this way? Feb 16 14:42:00 Ok, I'll try Feb 16 14:51:37 I will ask once again: What can i do if my ListView only shows new entries if i (physically) touch the screen? Feb 16 14:52:25 you can update it when the data changes Feb 16 14:52:58 if oyu mean .notifyDataSetChanged(); , i am already using this Feb 16 14:55:48 why are you adding items? Feb 16 14:56:24 cause there is something new? :D Feb 16 14:56:44 o dou you mean how? Feb 16 14:57:26 the listview is onscreen, the adapter has been loaded... what happens to change the data? Feb 16 14:58:09 the adapter gets load in a publci variable and the items gets added with .add() and after this .notify gets called Feb 16 14:59:42 dataarr.add(i); (dataarr is arraylist) Feb 16 14:59:48 chatList.notifyDataSetChanged(); Feb 16 14:59:56 chatList is the adapter which got added Feb 16 15:00:32 so you add an item to the arraylist which was fed into the adapter, then you notifyDataSetChanged on the adapter? Feb 16 15:00:47 yes Feb 16 15:01:02 and i only see the new items if i touch the screen Feb 16 15:01:10 is chatList a custom adapter? Feb 16 15:01:14 yes Feb 16 15:01:41 implementing ListAdapter? Feb 16 15:01:48 ArrayAdapter Feb 16 15:01:53 extend Feb 16 15:02:13 ArrayAdapter which has its own add() methods? Feb 16 15:02:35 Styler2go: in which way does your custom adapter store the items? Feb 16 15:02:49 i am not using the add method of arrayadapter Feb 16 15:02:51 hi. I am getting a warning on String.toLowerCase() because of local. so how can I set the local for a single string. I just hate warnings. Feb 16 15:02:56 hey timroes ! Feb 16 15:03:18 maybe you should? Feb 16 15:03:31 it does not have a add method Feb 16 15:03:34 i mean Feb 16 15:03:40 the add of the items is working fine Feb 16 15:03:46 only the refresyh of the ui... Feb 16 15:03:51 it *does* have an add method Feb 16 15:04:07 anyway, good luck Feb 16 15:04:17 Styler2go: are you saving your data inside the array if you extend arrayadapter? Feb 16 15:04:20 https://developer.android.com/reference/android/widget/ArrayAdapter.html#add(T) Feb 16 15:04:21 http://stackoverflow.com/questions/14909204/add-item-to-custom-listview-with-custom-custom-adapter/ here i asked, here is my code, here is all :D Feb 16 15:05:30 the answer tells me NOT to add the items directly into the adapter Feb 16 15:05:35 Styler2go: if you anyway make this dynamically you might not want to use arrayadapter :) Feb 16 15:05:47 but just create an own adapter (extending baseadapter) using a list to store your stuff Feb 16 15:06:12 and yeah you cannot add, because guess what: arrays are not scalable in java :) Feb 16 15:06:29 i know this :) Feb 16 15:06:38 https://github.com/DokuWikiMobile/dokuwikimobile/blob/alpha/src/org/dokuwikimobile/ui/activity/ChooserActivity.java#L232 thats all you need if you base it on a collection Feb 16 15:06:39 but, the adding of the items is working now, thats all ok Feb 16 15:06:54 but the ui does not refresh as i want... Feb 16 15:08:22 yeah might be because array adapter isn't made for dynamically adding items i guess Feb 16 15:08:58 hmm Feb 16 15:09:04 but just guessing :) Feb 16 15:09:29 i will try the baseadapter Feb 16 15:09:34 timroes: I suspect it's exactly the opposite Feb 16 15:09:37 thanks for the very good link Feb 16 15:09:55 i just looking at the arrayadapter sources and wondering what the hell :D Feb 16 15:10:11 "A concrete BaseAdapter that is backed by an array of arbitrary objects." Feb 16 15:10:18 private List mObjects; Feb 16 15:10:22 i would consider that NOT to be an array Feb 16 15:10:32 timroes: you pass an array into arrayadapter, which forms the initial data - you then use the methods on arrayadapyer to modify the data later, since you can't modify the array= Feb 16 15:11:00 that is, the original array is fixed-size, but the arrayadapter holds the data in a growable form Feb 16 15:11:39 thats not what I would have understand as "backed by an array", but again no native speeaker, so I guess I missunderstood the documentation Feb 16 15:12:07 given that it has methods to add and remove items from the adapter, it's got to be using a flexible data structure Feb 16 15:12:43 otherwise, what would be the point? :) Feb 16 15:12:46 i know, I thought it doesn't give you options to add data (never used it always extended from baseadapter) Feb 16 15:12:57 using it, for a list of predefined items? Feb 16 15:13:02 or in general a mutual list Feb 16 15:14:05 it's got the methods, they're not documented as implements to fail... Feb 16 15:14:09 er, implemented Feb 16 15:14:12 ehrm timroes... i dont know how to handle this baseadapter... Feb 16 15:14:22 LayoutInflater inflater = ((Activity) context).getLayoutInflater(); row = inflater.inflate(layoutResourceId, parent, false); Feb 16 15:14:30 these two line swould not work... Feb 16 15:15:15 Styler2go: load your initial data in an array, then use the methods on the arrayadapter to modify your data set later Feb 16 15:15:22 it's not rocket science Feb 16 15:15:29 ... Feb 16 15:15:31 i dont get it Feb 16 15:16:09 Leeds: still think the documentation could be better on that class Feb 16 15:16:36 "Adds the specified Collection at the end of the array." sounds for me like the data is still saved in an array inside the class Feb 16 15:16:38 ok.. i think i got it.. Feb 16 15:17:14 is htere a way to get a context in the baseadapter? Feb 16 15:19:10 Styler2go: pass it to the constructor? Feb 16 15:19:17 yes.. Feb 16 15:19:22 i mean you do that anyway? Feb 16 15:19:42 i just wrote alittle function to set this Feb 16 15:20:00 LayoutInflater inflater = (LayoutInflater)mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE); Feb 16 15:20:02 but... how i set the data now... Feb 16 15:20:37 oh gosh i dont get it.. can we write private? Feb 16 15:30:27 Hmm. So I have a RelativeLayout inside a RelativeLayout, a TextView inside of that, and I set alignParentTop to true. The TextView goes to the very top, not to the top of the sublayout. What am I missing? Feb 16 15:30:46 timroes? Feb 16 15:31:03 Styler2go: sorry dude, playing currently :D Feb 16 15:31:12 oh ok Feb 16 15:34:56 i changed it to a BaseAdapter now but it still only adds items if i touch the screen Feb 16 15:35:01 any other ideas? Feb 16 15:36:11 Solved it an easy way. I put the three RelativeLayouts inside one LinearLayout. Done. Feb 16 15:39:07 noone an idea? Feb 16 16:24:33 hey guys. I have a Spannable click with a link ( on blick method on it) that should go to another activity (per intent). The link is displayed well, but its not clickabel. Has anyone an idea? Feb 16 16:41:22 Whats the biggest screen resolution we need to support? Feb 16 16:42:06 All my current images are 1024x768, I wasn't sure if I should just put a border around it for other devices? Feb 16 16:42:08 What's the biggest screen resolution you think will ever make it to handheld devices? Feb 16 16:44:00 no idea it seems to keep getting higher, thats why what ever I do it probably won't last for long and maybe the border method would be the best? Feb 16 16:45:48 at least full hd Feb 16 16:45:54 cause of tv's :D Feb 16 16:48:16 Whats currently the highest android resolution available in phones/tablets? Feb 16 16:50:16 i tihink those retina display are kinda high Feb 16 16:50:43 hey Feb 16 16:50:59 2.048 x 1.536 Pixel for example Feb 16 16:50:59 The only one I can think of right now the nexus 10, 2650x1600 Feb 16 16:51:22 i still have got the problem where calling setText on a TextView will write the new text on Top of the old Text instead of replacing it: http://pastebin.com/vpN3BKBy Feb 16 16:51:40 this now is a very reduced app, still reproducing the problem, has anyone an idea what is wrong Feb 16 16:51:54 yeah, pretty sure the N10 is the biggest, at least in a portable consumer device Feb 16 16:52:08 yes Feb 16 16:52:37 is it ok to have a LinearLayout as the root view in an activity? Feb 16 16:52:54 LtRipley: sure Feb 16 16:53:23 then i cannot see what I am doing wrong Feb 16 16:53:43 neither can I, immediately Feb 16 16:54:47 i am stuck with this for three days now, and i don't have any idea how to debug this Feb 16 16:55:31 i think this may be the configuration of the layout Feb 16 16:57:18 just trying to build your pasted source to see if it breaks here too Feb 16 16:59:39 ok... the only thing I changed from your code was taking out the style attribute from the Button... and on my phone the random number replaces the dummy text (or previous random number) Feb 16 16:59:43 so it's *not* a universal problem Feb 16 17:00:11 what are you testing on? Feb 16 17:00:20 motorola defy android 2.1 Feb 16 17:00:33 i did try it in the emulator though Feb 16 17:00:40 same problem in the emulator? Feb 16 17:01:11 yes Feb 16 17:01:29 haven't tried it with my trimmed down version, but with the original program Feb 16 17:03:33 just firing up a 2.1 emulator Feb 16 17:04:18 reproduced it in the 2.2 emulator Feb 16 17:04:33 nope, 2.1 emulator works fine here with my build of your code Feb 16 17:06:13 very straneg Feb 16 17:06:16 strange Feb 16 17:06:34 may the problem be in the manifest? Feb 16 17:06:49 for sanity, try my binary: http://goo.gl/AHRqZ Feb 16 17:06:55 really nothing there apart from your code :) Feb 16 17:09:09 how do i even run an apk on my device? Feb 16 17:09:29 download it to your PC and use adb install foo.apk Feb 16 17:12:40 LtRipley: any luck? Feb 16 17:13:29 it works with your apk Feb 16 17:13:51 does it look exactly like yours? Feb 16 17:14:07 is there anything weird about your dev environment? Feb 16 17:15:02 i am new to android, i wouldn't notice if it was wierd :D Feb 16 17:15:06 using eclipse Feb 16 17:15:21 okay, I'm not using eclipse, but that shouldn't matter Feb 16 17:17:09 I just created a default project, pasted your layout and code in, really literally made no change apart from creating a dummy entry in the strings.xml file (value "Dummy") and removing the style attribute from the Button in the layout XML file Feb 16 17:18:02 can you send me the whole project as a zip? Feb 16 17:18:21 I will ask again: What can i do if my ListView only shows new entries if i touch it? Feb 16 17:18:23 maybe it is a difference in the manifest or something Feb 16 17:18:36 I didn't touch the default manifest, but sure - hang on Feb 16 17:20:31 link sent in PM because I couldn't be bothered to shorten it :) Feb 16 17:20:37 also, it's nearly my bedtime Feb 16 17:20:57 ok, thanks. I am going to compare it now bit by bit Feb 16 17:23:23 really nobody know a solution? i dont want to ask stackoverflow again :-/ Feb 16 17:23:30 there's not that much to compare :) Feb 16 17:24:33 i'm sure there is a little option like android:bugs="none please" that is missing in my project for some reason Feb 16 17:24:38 it is always something like that Feb 16 17:43:30 so i have to ask stack Feb 16 17:43:49 Leeds: i copied your manifest file, and now it works Feb 16 17:43:58 what was different? Feb 16 17:44:06 you didn't paste your manifest Feb 16 17:45:04 as I said, mine was 100% default, untouched, unopened even until after I'd built the apk Feb 16 17:49:59 Leeds: so was mine, but i am trying to single out the relevant difference Feb 16 17:50:41 Hi! Is it possible to create an application which runs with root privileges and run on a device not rooted? (not for the market) Feb 16 17:51:26 Applications never run with root privileges Feb 16 17:51:29 even on rooted devices. Feb 16 17:51:49 BtbN: maybe system? Feb 16 17:51:57 ? Feb 16 17:52:52 BtbN: I commonly use binaries wich run with system privileges and I created applications with system privileges by compiling in the android tree. Feb 16 17:53:14 BtbN: question is: can I install on a device which is not rooted? Feb 16 17:54:53 Leeds: android:theme="@style/FullscreenTheme" Feb 16 17:56:23 your theme or a system one? Feb 16 17:57:03 don't know that comes from eclipse Feb 16 17:58:05 No one here who tried to install an application compiled as a system app into a not rooted device? Feb 16 17:58:16 good morning !!! Feb 16 17:59:25 ok, removing the theme from my original project fixes that one too Feb 16 17:59:31 good morning agy2154 Feb 16 17:59:49 its a beautiful day to do some coding eh? Feb 16 18:01:08 KillmeSoftly: looks so... I'm firing up eclipse as we speak Feb 16 18:01:34 Hi everyone, I had a quick question. I want to use the android hidden APIs like powerprofile, I want to know if it's available on all the android versions. I plan to access it via reflection. Feb 16 18:02:03 I couldn't seem to find documentation over it and hence I am posting it here. Feb 16 18:02:19 snihalani: by definition, if an API is not public/documented, you can't rely on it either being there, or being the same, on any particular release of Android Feb 16 18:02:52 snihalani: yea, as Leeds mentioned. Hidden APIs are never good to access via reflection. Feb 16 18:02:55 hi all, while downloading stuff from the web in a asynctask and such the GC is running "a lot" how can i determin if there is something i can improve on ? Feb 16 18:03:12 If I use it only for a certain version of android Feb 16 18:03:18 fanno: you can have a look at something like MAT. Feb 16 18:03:28 http://www.eclipse.org/mat/ Feb 16 18:03:49 snihalani: it is generally a bad idea. Feb 16 18:04:02 you can have lots of unexpected behavior. Feb 16 18:04:37 novie: leeds: I need to extract power usage of each subsystem in android like GPU, Wi Fi etc. How should I go about it? Feb 16 18:04:53 if there's no API, you shouldn't go about it Feb 16 18:05:12 novie: taking a look Feb 16 18:05:18 yea, that doesn't sound like a good idea snihalani Feb 16 18:05:20 you can use an unpublished API for your own use, but publishing an app for anyone else to use which relies on it would be... not good Feb 16 18:05:44 Leeds: @novie: It's not going to be published. It's only for research purposes. Feb 16 18:06:24 in that case, knock yourself out Feb 16 18:06:39 since you're the only one who would have to deal with issues Feb 16 18:08:10 How do I know if it;s available for a certain version? Feb 16 18:08:27 you try it, and handle the failure Feb 16 18:09:04 Leeds: Instead of reflection, I was following this https://devmaze.wordpress.com/2011/01/18/using-com-android-internal-part-4-customizing-adt/ is there a better way to do it? Feb 16 18:09:37 no idea Feb 16 18:10:09 Anyone knows the right way to access to hidden APIs ? Feb 16 18:10:31 there is no 'right way', by definition Feb 16 18:10:39 there are only less wrong ways :) Feb 16 18:11:06 snihalani: I commonly compile in the Android sources. Feb 16 18:11:22 and add them as a jar? Feb 16 18:13:30 snihalani: compile the application in the sources, using an Android.mk and using the mm command like you were compiling Android. That way you can access whatever is in the source. Feb 16 18:13:46 I would have to root the device Feb 16 18:14:01 and install the OS wholely? Feb 16 18:14:25 snihalani: no, you'll get a common apk that you can install anywhere you want Feb 16 18:14:48 snihalani: still, as you've been told, if the API is not available runtime, you get an excpetion. Feb 16 18:14:52 luc4: Can you please point me to a link where I can do it? Feb 16 18:15:00 I mean, I can follow steps Feb 16 18:15:06 snihalani: sorry, no link that I know. Feb 16 18:15:51 luc4: would reflection work? Feb 16 18:16:01 snihalani: it should Feb 16 18:16:36 snihalani: still with the situation you've been already told about Feb 16 18:17:29 worst case, I get an exception, right? Feb 16 18:17:34 There is no other disadvantage of Feb 16 18:17:39 goign through reflection Feb 16 18:17:44 snihalani: well, it can just crash. Feb 16 18:17:49 which means it is pointless. Feb 16 18:18:05 ok Feb 16 18:18:15 Thanks @novie: luc4: Feb 16 18:18:21 but again, if you aren't releasing it publicly then it shouldn't matter to you. Feb 16 18:18:31 if you are releasing publicly it is a terrible idea :) Feb 16 18:18:34 http://stackoverflow.com/questions/14913268/adding-items-to-custom-listview-only-displays-new-items-on-touch if someone knows any help... Feb 16 18:18:39 snihalani: sorry, I don't know. If you correclty handle reflection you should be able to avoid crash, but of course you cannot make it work. Feb 16 18:18:49 hi I am trying to create a project that uses the google Maps API... how do I declare in my manifest file that my project is using a reference to that library? (/extras/google/google_play_services/libproject/google-play-services_lib) Feb 16 18:19:49 Styler2go: that's a terrible code paste. Feb 16 18:19:54 Styler2go: what is chatList? Feb 16 18:20:31 where are you calling that code? Feb 16 18:20:42 not sure how anyone can help you with that information... Feb 16 18:20:44 novie: chatList is obviously a custom adapter Feb 16 18:20:57 which at one point was based on ArrayAdapter Feb 16 18:21:09 now its a BaseAdapter :) Feb 16 18:21:24 and tomorrow it might be a CursorAdapter, just for variety Feb 16 18:21:29 xD Feb 16 18:21:31 lol Feb 16 18:21:33 no :D Feb 16 18:21:37 it is a BaseAdapter now Feb 16 18:21:41 Styler2go: never say never, dude Feb 16 18:21:47 chatList = custom baseAdapter Feb 16 18:21:53 Styler2go: ok, you should still provide more of the adapter code. Feb 16 18:22:26 i will add it on stack one sec Feb 16 18:23:22 i have added it Feb 16 18:24:14 getItemId() should not return 0, I'd recommend change it to return the arg0 that is passed in Feb 16 18:24:35 ok Feb 16 18:24:51 what does getItemId normally do? Feb 16 18:25:16 gettign the id of the item? :D Feb 16 18:25:19 it is an id for the particular item at the given position. Feb 16 18:25:47 then i code write: Feb 16 18:25:48 @Override public long getItemId(int arg0) { return data.get(arg0).id; } Feb 16 18:25:54 no Feb 16 18:25:57 no? ok Feb 16 18:26:00 return arg0; Feb 16 18:26:00 just arg0 :) Feb 16 18:26:20 but this is not my problem, or? Feb 16 18:26:58 no idea, I don't see where you are updating data. Feb 16 18:28:02 what do you mean? Feb 16 18:28:07 i dont know what you need to see... Feb 16 18:28:28 the initial code you pasted in to stackoverflow Feb 16 18:29:08 ? Feb 16 18:31:38 i dont know what you mean :-( Feb 16 18:33:31 http://stackoverflow.com/questions/14913268/adding-items-to-custom-listview-only-displays-new-items-on-touch i updated the code some more Feb 16 18:35:07 I would probably make your List an internal member of the adapter. Then have your task call a method on adapter called addItem() which adds the item to the list and calls notifyDataSetChanged() Feb 16 18:35:31 novie: which would pretty much make it a clone of ArrayAdapter, AIUI Feb 16 18:35:32 additionally, you could implement an addAll() which takes a List and adds it to your adapters List. Feb 16 18:36:03 Leeds: yea, pretty much. Why don't you just use ArrayAdapter Styler2go ? Feb 16 18:36:05 so you dont really know why they only get added on touch? Feb 16 18:36:19 i used it, but everboidy told me DONT USE THIS Feb 16 18:36:48 its just for static lists and examples they told me Feb 16 18:36:50 do you know why? Feb 16 18:37:01 it is because of the layout. Feb 16 18:37:02 an Array is fixed Feb 16 18:37:07 no. Feb 16 18:37:19 your layout is a little more complex than an arrayadapter expects Feb 16 18:37:45 hm... Feb 16 18:37:46 Styler2go: you should keep your data logic inside your adapter. Feb 16 18:37:59 you shouldn't have to call notifyDataSetChanged() outside of your adapter. Feb 16 18:38:41 hm... Feb 16 18:40:02 i think i foudn the problem Feb 16 18:40:06 it is a problm with the timer Feb 16 18:41:45 Styler2go: are you kidding? Feb 16 18:42:23 http://stackoverflow.com/questions/3457709/timer-act-only-if-i-touch-the-display-ontouchlistener/3458001#3458001 i am not Feb 16 18:43:10 eek. Feb 16 18:45:10 hm? Feb 16 18:45:50 why are you trying to update your UI based on a Timer? Feb 16 18:46:44 it checks the server if there is something new. if yes it sends a new item into the listview Feb 16 18:47:08 novie: rather than have to extract the hprof file manually from the device and then running the tool to convert it is there no more east way ? Feb 16 18:47:56 hey guys, when i make a view in a layout (say a FrameLayout acting as a fragment container) I always use dip for width and/or height...like android:layout_height="100dip".... so my question is how many "dip's" wide is a layout? i hope that makes sense Feb 16 18:48:23 1dp == 1px at 160dpi Feb 16 18:48:28 160dpi == mdpi Feb 16 18:48:45 dip (dp) == device independent pixels Feb 16 18:48:50 I want to draw an image full screen as a background. Unfortunately, I'm not sure if all devices have the same aspect ratio and I haven't found a way to scale an image. What is the cleanest solution for this? Feb 16 18:49:03 @novie - ohh okay thanks dude Feb 16 18:49:17 fanno: not that I'm aware of. MAT is a pretty good tool. Feb 16 18:49:30 Styler2go: so in other words, through all of this, for the hours you've been asking here... your timer wasn't actually updating the adapter properly? Feb 16 18:49:37 Styler2go: yea, I have no clue. That doesn't sound like the best implementation so I have no clue what's going on there. Feb 16 18:49:55 how woukld you check the server? Feb 16 18:50:01 without a timer? Feb 16 18:50:06 novie: seems so tho its "not" easy to exctact the file Feb 16 18:50:13 Styler2go: http://code.google.com/p/iosched Feb 16 18:50:18 novie: when is the correct time to run it ? Feb 16 18:50:22 browse around that code a bit. Feb 16 18:50:37 novie: do it have to be at any spesefic time ? Feb 16 18:50:39 Styler2go: also, look into GCM Feb 16 18:50:50 +1 for GCM too Feb 16 18:51:04 * Leeds makes a note to lower expectations, and goes to bed Feb 16 18:51:05 night all Feb 16 18:51:20 gcm os for me way too difficult Feb 16 18:51:24 but i would love to use it Feb 16 18:51:30 fanno: http://android-developers.blogspot.com/2011/03/memory-analysis-for-android.html Feb 16 18:52:08 fanno: are you downloading large amounts of data, or is this just simple HTTP requests? Feb 16 18:53:15 ok if i go into UI trhead from timer all works fine Feb 16 18:54:27 nvm, I found a way Feb 16 18:56:04 tm604: i am running a lot of small requests from a api, then combine the info and display it to the users results is in json and it has to be worked a bit to display it Feb 16 18:57:29 if i mark a question on stack as accepted, will the guy who answered get points? Feb 16 19:04:08 novie: i do not see any og my objects in the MAT view, should i not at least be seeing something there ? Feb 16 19:10:00 can i make a textview url detecting? Feb 16 19:10:36 android:autoLink="web seems... Feb 16 19:12:21 anyone recognize this icon? https://dl.dropbox.com/u/1077365/navigate_48.png Feb 16 19:12:53 select from a dropdown menu? Feb 16 19:14:26 i mean is it a generic google/android icon? i just want to make sure i can use it in my app Feb 16 19:14:59 fanno: did you look at the blog link? Feb 16 19:15:06 cubed_root: where did you find it? Feb 16 19:15:21 : ) i can't remember, actually Feb 16 19:15:27 cubed_root: it is not "andorid conform" Feb 16 19:15:41 its against the styleguilde i think Feb 16 19:15:54 cubed_root: doesn't look like an android platform icon at all... Feb 16 19:15:58 http://developer.android.com/design/downloads/index.html maybe look here, they have many icons.. Feb 16 19:16:15 hmm.. thanks Feb 16 19:17:57 novie: yes, atleast i have no bit entry's with any of my stuff in it so i think i am good Feb 16 19:23:30 does android have predefined smileys? Feb 16 19:23:36 ore a smiley package? Feb 16 19:23:41 or** Feb 16 19:25:48 Styler2go: That might be diffrent depending on phone Feb 16 19:30:39 so.. is there some or not? :D Feb 16 19:32:35 hmmm what cause http://pastebin.com/3wa2KFZg i am getting java.util.ConcurrentModificationException on line #10 from google it seems it is it has to do with modifying, but i cant see where i am doing that here ? Feb 16 19:35:30 what about these smileys in ehatsapp? Feb 16 19:35:34 are they free to use? Feb 16 19:46:10 is there a way to reduce the chances of my activity being killed when turning off the screen? it always happens, but if i put the activity in the background with the home button, it's fine even if i open 1-2 apps then go back to mine Feb 16 19:46:52 * monsti is on 4.2.2 Feb 16 19:47:12 and this gives me enlargement of a bodypart, that i am not supposed to talk here Feb 16 19:47:38 i am too Feb 16 19:47:46 but there are no differences yet Feb 16 19:48:03 no differences! Feb 16 19:48:17 go press the up button in an actionbar :P Feb 16 19:48:17 i didn't try adb Feb 16 19:48:18 just these little fixes Feb 16 19:48:30 gee, a 0.0.1 update is just little fixes :P Feb 16 19:48:34 :D Feb 16 19:48:37 i want 5.0 Feb 16 19:48:44 :D Feb 16 19:48:46 why? Feb 16 19:48:48 well 4.2.0 -> 4.2.1 was a big fix Feb 16 19:48:50 what does it have that interests you? Feb 16 19:48:55 it added a month ;) Feb 16 19:48:56 monsti, not really Feb 16 19:49:10 :D Feb 16 19:49:12 4.2.1 was available before the nexus 4/10 went on sale Feb 16 19:49:17 yay we have december ! Feb 16 19:58:13 in my app I need to register 2 addres 1 out address and 1 return address they both have same format. If the out and return address are the same I should copy values. My question is: what you recomend do 2 activities? or use the same activity and use some flag aware of back button? Feb 16 19:58:49 syntax error Feb 16 19:58:55 redo from start Feb 16 20:00:12 lol. If oyu need to register 2 address one outgoing one incoming and you have a "outgoing and incomming are the same address" flag. What do you recommend use 2 view/activities for register each, or handle the logic inside 1 view/activity. Feb 16 20:01:07 if you click same address you will get a prefilled form so you can change something Feb 16 20:02:31 how do i use the defult like next buttons like the ones you get when you are setting up your device to make the app better accustomed to the current device theme Feb 16 20:02:39 the halo crap? Feb 16 20:02:44 Or is it something else? Feb 16 20:06:52 tyoc213: you can always use one activity and add some calling parameters Feb 16 20:07:14 tyoc213: you can also use some result parameters Feb 16 20:07:29 Bundle ??? Feb 16 20:07:34 yeah Feb 16 20:07:49 O I see, so new on this... Im to much used to other programming ways :) Feb 16 20:07:54 check the samples on this Feb 16 20:08:00 how I would handle the results? Feb 16 20:08:15 you start the new activity with startActivityForResult Feb 16 20:08:31 yeah, I have checked on that for pass parameters from one activity to other... but I have choose the Singleton/Enumeration Feb 16 20:08:35 then you have a OnActivityResult in the calling activity Feb 16 20:08:48 monsti I will check for that, thx Feb 16 20:09:12 you can also send result codes back etc. Feb 16 20:09:48 how powerful this TextView is. in iOS you need for everything a webview Feb 16 20:09:58 in andorid you can also use smileys in a textview. Feb 16 20:10:03 so good *_* Feb 16 20:13:29 Can I customize a button with css? Feb 16 20:13:39 Like a style? Feb 16 20:14:03 in android that's a lot cooler! Feb 16 20:14:08 Does anyone know? Feb 16 20:14:11 hey if i were to get Intelli-J for android development should I get the IntelliJ IDEA Community edition? Feb 16 20:14:14 you customize a button with 4 png's Feb 16 20:14:35 right now im using eclipse but have heard good things about IntelliJ Feb 16 20:14:41 Agy2154 look abut ninepatch Feb 16 20:14:46 mabe this is what you want Feb 16 20:14:53 KillmeSoftly: CE is fine, apparently. although i haven't used it much Feb 16 20:15:10 i just dont want to pay for it Feb 16 20:15:13 is intellij better? Feb 16 20:15:25 yes Feb 16 20:15:26 from what i've heard it is Feb 16 20:15:52 it has quirks, and I've only used it for a few weeks, but I'm pretty convinced it's better Feb 16 20:15:54 KillmeSoftly: that looks great thanks Feb 16 20:15:58 the speed improvement alone makes it worth it Feb 16 20:16:31 what looks great? Feb 16 20:16:38 oh but its not free^^ Feb 16 20:16:43 Agy2154 - what looks great? Feb 16 20:16:55 Styler2go: the community edition is Feb 16 20:17:08 yeah i see i seee.. Feb 16 20:17:14 i will tell my boss Feb 16 20:17:15 :D Feb 16 20:17:57 how can i hook up my android SDK with the CE version? oh wait theres probably an instruction guide online :) Feb 16 20:18:21 I just defined ANDROID_HOME and that was it Feb 16 20:18:36 the 9 patch tool Feb 16 20:18:42 to make like custom shapes Feb 16 20:18:51 9 patch tool? Feb 16 20:19:02 http://developer.android.com/tools/help/draw9patch.html Feb 16 20:19:24 KillmeSoftly: my bad i ment to talk to Styler2go Feb 16 20:19:42 im relatively new 2 android so forgive me if my questions are stupid Feb 16 20:22:05 :D Feb 16 20:22:10 KillmeSoftly: I am too... Well I started to develop 2 years ago when i was 15 but I quit because It was was diffictult and I didn't have time but now Im getting the hang of it slowly Feb 16 20:22:12 good to know that it helps you Agy2154 Feb 16 20:22:30 Styler2go: Thank you very much. Feb 16 20:24:24 yeah i've been doing it for about a year now, definitely getting the hang of it but still don't know how to do some things. Feb 16 20:24:43 thannks to this channel i get lots of support Feb 16 20:24:53 yeah me too.... this channel has helped a lot Feb 16 20:32:24 does android use the bluez bluetooth stack? Feb 16 20:33:12 prior to 4.2 Feb 16 20:33:56 canadiancow: are you responding to me? Feb 16 20:34:06 yes Feb 16 20:34:23 you mean bluez version 4.2? Feb 16 20:35:02 android version 4.2 Feb 16 20:35:13 they dumped bluez in 4.2 Feb 16 20:36:21 i have a brand new LGL35G and it's Android version is listed as 2.3.6 - why is that so far from 4.2? Feb 16 20:36:42 s/it's/its/ Feb 16 20:36:44 ask LG :) Feb 16 20:37:02 i mean up to and including andriod 4.1, andriod used bluez Feb 16 20:37:07 since android 4.2, it has used something else Feb 16 20:37:10 i dont recall what Feb 16 20:37:14 bluedroid? Feb 16 20:37:19 possibly Feb 16 20:37:34 ok, thanks. Feb 16 20:57:07 can someone help me step by step creating a push server and everything? Feb 16 21:03:49 if i use a .htaccess login on my server, can i simply downlaod from it by using http://user:pass@domain.de/ ? Feb 16 21:07:08 why is it the android.com site suggests that all println("random sentence here more than 100 characters should be written like" + "this lol"). isn't it alot harder on the eyes? Feb 16 21:07:33 apparently it was discussed alot, and that was the standard chosen Feb 16 21:09:06 please help me guys Feb 16 21:16:58 anybody? please? Feb 16 21:17:19 Styler2go: whats the prob ? Feb 16 21:17:32 there is a big security leak in my app Feb 16 21:17:43 i need to fix it and i want to protect it via htaccess Feb 16 21:17:57 but android cant simply add the login into the url Feb 16 21:18:13 huh? Feb 16 21:19:07 hm? Feb 16 21:19:13 what you dont udnerstand? Feb 16 21:19:40 "but android cant simply add the login into the url" <--- that and what the security leak is Feb 16 21:19:52 how does htaccess fit into android? Feb 16 21:19:58 as it would seem more applicable to design/flow than a leak Feb 16 21:20:07 i mean i want to protect the direcotry by htcaccess Feb 16 21:20:20 and want to write the login ointo the url like http://user:pass@domain.de/ Feb 16 21:20:23 you can pass HTTP auth details or some sort of token in the request Feb 16 21:20:49 you need to pass them to the HTTP client code individually Feb 16 21:21:02 not many things accept passwords in URLs anymore Feb 16 21:21:27 how to look at system data? i have a rooted nexus 1 Feb 16 21:21:31 i have so so much http stuff in my app Feb 16 21:21:47 krad: ask in #android-root i guess Feb 16 21:23:27 Anoia: how can i add these login datas? Feb 16 21:23:52 i am using HttpGet and HttpClient Feb 16 21:24:02 which http clinet classs are you using? Feb 16 21:24:04 ok Feb 16 21:24:16 have you checked the documentation for them yet? Feb 16 21:24:19 please tell me it will be easy :D Feb 16 21:24:24 no i didnt Feb 16 21:24:27 and I assume you;ve tried the username:password@ method Feb 16 21:24:35 yes Feb 16 21:24:37 I;ve not had to do it on Android yet Feb 16 21:25:23 Styler2go: basicValuePairs Feb 16 21:25:40 is what I use with a php logon Feb 16 21:25:49 and most important https Feb 16 21:25:51 :) Feb 16 21:26:45 I don;t have any code that uses it to hand atm Feb 16 21:27:13 http://stackoverflow.com/questions/1968416/how-to-do-http-authentication-in-android Feb 16 21:27:19 https? Feb 16 21:27:33 very first hit for "HTTP authentication android" Feb 16 21:27:34 i dont htink i have a certificate.. or wont i need one? Feb 16 21:28:06 Styler2go: i setup a fake one / bypass iirc Feb 16 21:28:37 if you want HTTPS, NEVER do a blanket accept all on the certificates Feb 16 21:28:40 how can i setup my server for https? Feb 16 21:28:54 find a #apache Feb 16 21:29:00 and get a SSL cert Feb 16 21:29:12 i think i have one if its not expired wait Feb 16 21:29:17 but that won;t help with unauthenticated access Feb 16 21:29:27 expire son 1.3. Feb 16 21:29:32 expires on* Feb 16 21:29:54 should i buy one...? Feb 16 21:30:21 its for free *_* Feb 16 21:30:37 i looove my hoster. Feb 16 21:30:42 http://stackoverflow.com/questions/14114480/making-an-https-connection-using-url-openconnection Feb 16 21:30:45 up to you Feb 16 21:30:48 Styler2go: your asking questions that are relative to you, and that you need to decide Feb 16 21:31:15 Sorry, I'm just very upset. Feb 16 21:31:29 upset ? Feb 16 21:31:52 excited, nervous, upset Feb 16 21:32:44 hello! is there a way to perform a task at the application exit? shutdown hooks don't seem to work Feb 16 21:34:34 ok so i will use it without https Feb 16 21:34:48 but i will set up https in future Feb 16 21:36:51 bear in minsd that without HTTPS, it can still be sniffed Feb 16 21:37:04 the password will just stop people stumbling accross it Feb 16 21:37:28 yes but i need a very fast fix Feb 16 21:37:37 and i dont know anything about https Feb 16 21:37:55 i just bought a certifacte and i will set it up later Feb 16 21:43:24 .. and how can i login in a webView? :-/ Feb 16 21:45:29 I think that can only login by prompting the user Feb 16 21:45:55 :o Feb 16 21:46:28 webview.setHttpAuthUsernamePassword(host, realm, username, password); Feb 16 21:46:35 as easy as everything... Feb 16 21:46:56 http://stackoverflow.com/questions/4220832/webview-basic-authentication-help Feb 16 21:47:10 yes i am on this site^^ Feb 16 21:47:12 once again, first result on google Feb 16 21:47:18 i know :) Feb 16 21:47:51 whats an realm? Feb 16 21:50:45 "See the link above for more information on what host and realm means." Feb 16 21:51:01 I guess you idn;t read that far down that page you said you were on :) Feb 16 21:51:18 the Realm is what you actually set in your .htaccess file Feb 16 21:51:40 and is the "area" you're asked to provide the username and password for Feb 16 21:51:57 i am cvery stressed right now sry Feb 16 21:55:46 i dont get whats the realm... Feb 16 21:56:57 it's a sub section of a site used for authentication Feb 16 21:57:08 you can have multiple realms on one site Feb 16 21:57:30 for example if i want to auth on domain.com/hello/world/ the domain is domain.com and the realm /hello/world/ ? Feb 16 21:57:35 The exact realm in your case is whatever you set it to in the .htaccess Feb 16 21:57:41 no Feb 16 21:57:55 that's the path Feb 16 21:58:15 i dont have any realm set... i think Feb 16 21:58:21 you do Feb 16 21:58:30 http://pastebin.com/raw.php?i=dDDywEVe Feb 16 21:59:21 heh Feb 16 21:59:27 your realm is currently ""Please enter your ID and password" Feb 16 22:00:45 you shouldn;t really set it to that as that text is already included int he default dialogs presented by browsers Feb 16 22:01:14 it should be something like "Styler2goAppServer" Feb 16 22:03:36 thanks sir! Feb 16 22:09:04 such a bad timing... Feb 16 22:09:26 I;m not a sir Feb 16 22:10:22 sorry... Feb 16 22:11:06 http://gdata.youtube.com/feeds/api/videos/PBWkNz-W6Y?v=2&alt=json can someone access this? Feb 16 22:11:32 yes Feb 16 22:11:41 really? Feb 16 22:11:53 hello guys Feb 16 22:11:55 no file not found exception? Feb 16 22:12:17 oh, 400 bad request Feb 16 22:12:20 IE tried to save it Feb 16 22:12:52 i have a problem i have saved one image from my camera saved on sd card but i can not see anything on my imageview componetn here is my code http://pastebin.ca/2314540 Feb 16 22:13:10 why the hell does youtube give me right now a 400 Feb 16 22:13:39 invalid values? Feb 16 22:13:45 seems lik ethat yes Feb 16 22:14:17 oh god.. too much to do :-/ Feb 16 22:16:02 lol Feb 16 22:16:42 does anyone have any idea why my emulator is so slow? I'm running 4.2 on a nexus profile. I enabled VT-X and this machine is a monster. Why could this be happening? Feb 16 22:16:57 androVM machine? Feb 16 22:17:05 it always is Feb 16 22:17:06 yea the one with the sdk\ Feb 16 22:17:13 ? Feb 16 22:17:25 are u using androVM wirth virtualbox i mean Feb 16 22:17:27 it's an emulator, not hardware accelerated at all Feb 16 22:17:35 Styler2go, I'm using the default one with the ADK Feb 16 22:17:38 unless you use the x86 one Feb 16 22:17:40 but androVM actually is Feb 16 22:17:47 StingRay_, which I am. Atom processor. Feb 16 22:17:47 use androVM Feb 16 22:17:47 then its mega fast Feb 16 22:17:50 sooo much faster Feb 16 22:19:00 Google I am dissapoint :( Feb 16 22:22:55 when i am loading one image i am getting one error i can not generate texture bmp why Feb 16 22:29:09 why i am getting one error i can not generate texture, i am trying to load one image from my sd card Feb 16 22:29:21 here is my code http://pastebin.ca/2314540 Feb 16 22:31:40 which line of code is the error Feb 16 22:33:14 when i take a picture return my activity then my errro happend Feb 16 22:33:34 tona it doesnt save the file in that location right ? Feb 16 22:33:56 as in you looked Feb 16 22:34:00 and it's not there Feb 16 22:34:55 my ohoto is saved in sd card i have seend it severa time each time i run mi apps Feb 16 22:35:17 which line is the error Feb 16 22:35:20 so is it a permissions things ? Feb 16 22:35:24 my file is saved but my Imageview just show a black box Feb 16 22:35:27 50? Feb 16 22:35:43 so no error, just no image? Feb 16 22:35:49 yes Feb 16 22:36:09 but on debbug in eclipse shome can not generate texture Feb 16 22:36:09 and the image is not just black ? Feb 16 22:36:19 no Feb 16 22:36:20 for shits&giggles after imv.setImageBitmap(bitmap); do imv.invalidate; Feb 16 22:37:33 canvs2321-: would it not be re-drawn when setting a bitmap ? Feb 16 22:37:56 i've had to invalidate some widgets after setting visual properties, so not sure Feb 16 22:38:23 haven't narrowed down why, or how, but i've randomly had to do it haha Feb 16 22:39:20 i did imv.invalidate and show me the black box again Feb 16 22:40:26 what is ur exact generate texture bmp error Feb 16 22:40:55 and does it give a line in your code in the stacktrace Feb 16 22:41:04 when i set it one imageview Feb 16 22:41:13 let me runagain Feb 16 22:44:27 ¬ sure how the bitmap.recycle works, but does it affect the reference to the bitmap set to the imageView? Feb 16 22:45:25 on logcat just appear i cannot generate texture Feb 16 22:46:01 i just watch every time a black box Feb 16 22:46:10 on image viewer Feb 16 22:46:39 i'm sure it doesn't output "E/ahcrap(0): i cannot generate texture", what is the actual text Feb 16 22:47:22 permissions read external sd? Feb 16 22:47:40 yes, but i never set permission Feb 16 22:47:53 i should to set permission to read a sd? Feb 16 22:48:16 canvs2321-: it seems to just set mBuffer = null; Feb 16 22:48:32 canvs2321-: then the GC will find its unreferenced and clean it up at a later time Feb 16 22:48:50 then how can i fix it Feb 16 22:49:14 but the imageview still has it's own copy of it? Feb 16 22:49:46 uhm Feb 16 22:50:07 canvs2321-: i think the ImageView would hold a reference to the Bitmap itself, not its internal buffers Feb 16 22:50:41 i was reading one internet sd card dont need permission to read or write Feb 16 22:50:41 the last 2 hour was soo stressful... good evening at all :) Feb 16 22:51:31 what could i do to finally can read my image saved in sd card Feb 16 22:52:14 tona: test another image on sdcard&c what happens, but your killing me with not showing the logcat :) Feb 16 22:53:49 how can i paste logcat for you Feb 16 22:54:45 this is mylogcat http://pastebin.ca/2314545 Feb 16 22:56:19 http://stackoverflow.com/questions/7109555/android-message-cannot-generate-texture-from-bitmap Feb 16 22:56:31 bingo comment out that bitmap.recycle and try as a test Feb 16 22:59:40 ok i am watching my image comment out the bitmasp.recicle but when i take another picture crahs my apps close up Feb 16 23:00:18 outofmemory error Feb 16 23:00:49 Styler2go: thanks for the androvm tip :-) Feb 16 23:00:59 then work from that, so you take one pic, everything is good, take a second and the OOM exception? Feb 16 23:01:08 yes Feb 16 23:01:22 np fredcooke Feb 16 23:01:28 nice to help you guys <3 Feb 16 23:01:44 for that reason i set recicle in bitmap Feb 16 23:03:27 does somebody know how to set up a ssl certificate? Feb 16 23:04:46 Styler2go: think thats another channel Feb 16 23:04:58 tona but you shouldn't recycle til your are done viewing, maybe make your bitmap in the global scope of the class, then when each onActivityResult is called check if recycled, if not then recycle then load bitmap? Feb 16 23:05:21 StingRay_: i am asking in #ubuntu Feb 16 23:05:30 erm Feb 16 23:05:45 maybe they can help me or redirect me to another channel Feb 16 23:05:46 need to ask in web dev channels Feb 16 23:05:50 its a ubuntu server so... Feb 16 23:05:56 oh then maybe Feb 16 23:06:07 Styler2go: there's probably a million blog posts about that. Feb 16 23:06:22 https://www.google.com/search?q=setting+up+ssl+on+an+ubuntu+server&oq=setting+up+ssl+on+an+ubuntu+server&sourceid=chrome&ie=UTF-8 Feb 16 23:06:38 Styler2go: something to look at though is cheating hostnameVerifier Feb 16 23:06:48 these are about creating self certifcating Feb 16 23:06:52 SchemeRegistry Feb 16 23:06:52 i have a certificate Feb 16 23:06:57 oh Feb 16 23:07:49 Styler2go: start half way down the article.... http://igoesolutions.com/blog/2011/01/25/setting-up-ssl-certificate-on-ubuntu-server/ Feb 16 23:07:49 bring me a higher love!! i love steve winwood Feb 16 23:07:53 Hello, I'm building some native app (using NativeActivity) and if I have no resources (e.g. removing the res dir) the resulting apk crashes. Any pointer on why these seems to be mandatory? Feb 16 23:08:03 thank you very much novie Feb 16 23:08:33 http://stackoverflow.com/questions/11444238/jelly-bean-datepickerdialog-is-there-a-way-to-cancel Feb 16 23:08:44 why do android have these stupid bugs? This is really an amature mistake Feb 16 23:09:17 like what? Feb 16 23:09:42 like the stackoverflow i just posted Feb 16 23:09:51 dude, that is really dumb bug to be part of the operating system Feb 16 23:09:56 it has bugs because a human made it...anything human made will have bugs, and everything besides life is made by humans....something we all must deal with everyday Feb 16 23:10:10 novie: they are also creating a certificate in there, arent they? Feb 16 23:10:13 KillmeSoftly, these are bugs easily being avoided through testing Feb 16 23:10:24 Styler2go: yes, but you can just skip that part...... Feb 16 23:10:40 yes but this dialog thing, you realize you can add that right? Feb 16 23:10:43 with some code Feb 16 23:11:03 sometimes you have to do a little hacking to get what you want Feb 16 23:12:08 that's like if your int is having a bug Feb 16 23:12:22 I can understand some advanced functionalities might be buggy Feb 16 23:12:26 but fuck, datepicker? Feb 16 23:12:29 its just the way it is...android and iOS pissed me off early too but then i realized well its just the way it is Feb 16 23:12:31 listener to datepicker? Feb 16 23:12:41 deal with it Feb 16 23:12:46 im sorry but seriously Feb 16 23:13:05 there are plenty of people here who will help you, stop bitching Feb 16 23:14:14 that's why it never improves Feb 16 23:14:22 because your guy's attitude of deal with it Feb 16 23:14:45 am i the guy who develops the android system Feb 16 23:14:47 no Feb 16 23:14:51 so i have to deal with it Feb 16 23:14:55 take it up with google Feb 16 23:14:58 meetoman: is this on b.android.com ? Feb 16 23:15:33 yea, meetoman file a bug :) Feb 16 23:15:37 submit a patch :) Feb 16 23:15:45 ^ there ya go Feb 16 23:16:31 already filed Feb 16 23:17:08 what can an cause activity to go blank/black on my device (plugged in via usb) and not going blank/black on the emulator (what it should do)? It's the BlankActivity with scrolling pages included with the bundle Feb 16 23:18:13 Hello...my app must save a ip adress for connection, but the ip adress must be easily change by an noob. How can i do this the best way? Feb 16 23:22:12 SirStean: the coolest way, would probably have a custom class extended from android.preference.Preference that allows the user to put in the xxx . xxx .xxx .xxx information, and then when pressing OK go to make sure that actually works (and if so, accept & save) Feb 16 23:22:37 you can see this, i think, somewhere in the VPN settings of the official aosp Settings app. Mimic that behavior Feb 16 23:22:44 at least on Froyo :D Feb 16 23:23:55 Hm...sound good, but i think i dont have the time for this way at the moment. I need a faster way :P Feb 16 23:24:49 https://styler2go.de/ Feb 16 23:24:53 got it ! :) Feb 16 23:25:08 i am proud of me <3 Feb 16 23:25:18 grats Feb 16 23:25:36 whatever you did :D Feb 16 23:25:45 https Feb 16 23:25:49 for my server :D Feb 16 23:26:03 i see :) Feb 16 23:26:08 thanks very much novie <3 Feb 16 23:26:14 still have to try that yet Feb 16 23:26:35 i am happy that i successfully did my first http request today Feb 16 23:26:40 Styler2go: np Feb 16 23:28:39 now i can setup my app to use https Feb 16 23:30:58 hi Feb 16 23:31:11 Is there an event I can catch when the user presses "done" at the virtual keyboard? Feb 16 23:31:38 sure Feb 16 23:31:50 i used it in my chat wait a second i paste it for you Feb 16 23:32:45 http://pastebin.com/PLEQ9eha eText = EditText in this case Feb 16 23:33:19 thanks, i'll test that! Feb 16 23:34:44 SirStean: i bet the stock email app has stuff for collecting ip/address (for the mail server) maybe lift that Feb 16 23:34:45 is there any reason why the default FragmentActivity example would display for half a second then display black? on my device using api level 15? Feb 16 23:39:52 Is there a way to find out what he most popular android device is in the US ? Feb 16 23:40:03 Just trying to get an idea of screen sizes Feb 16 23:40:13 apple741: galaxy s3 Feb 16 23:40:44 thanks funkbox , how did you look that up ? Feb 16 23:40:52 they have sold a metric assload of them Feb 16 23:41:43 wa sist darin? Feb 16 23:41:50 wrong window Feb 16 23:42:07 Good point, I was hoping to try and track down some numbers if thats even possible? Feb 16 23:43:32 apple741: http://www.appbrain.com/stats/top-android-phones Feb 16 23:44:36 like i said, metric assload Feb 16 23:44:46 yeah lol :) Feb 16 23:44:52 Thanks g00s :) Feb 16 23:45:28 ;) Feb 16 23:45:31 how do i get the current screen size (small, normal, large, xlarge) from code? Feb 16 23:45:45 why not put a flag in values ? Feb 16 23:46:05 that might work, but seems hacky Feb 16 23:46:12 no proper way thru Context? Feb 16 23:46:25 there is a way Feb 16 23:46:25 i dont think its hacky at all Feb 16 23:46:29 there must be a way :D Feb 16 23:46:51 g00s: clearly, there must be some other way, that it uses to pick which values- folder to use Feb 16 23:47:34 my way seems pretty robust ;) Feb 16 23:48:11 g00s: I've noticed that the nexus is really low which is the device I've ordered for testing ( will also be useful for general work :) ) but it seems this means I'll be testing for the less popular screen size? Feb 16 23:49:16 In fact it seems the least popular on the list ( if I'm reading it right :) ) Feb 16 23:50:32 g00s: ah, its within the Configuration object Feb 16 23:50:58 Like Sony Xperia, Android has Android. Does Android also has any product in market like Sony Playstation 2/3 devices of Sony? Feb 16 23:52:03 guys can you help me fast Feb 16 23:52:09 in a command lind Feb 16 23:52:11 line* Feb 16 23:52:27 ah ... Feb 16 23:52:32 thos command: Feb 16 23:52:36 cd /var/www/apps/convert/ && ffmpeg -i "-PBWkNz-W6Y.mp4" -f mp3 -ab 192000 -vn "-PBWkNz-W6Y.mp3" Feb 16 23:52:54 My activity turns black after it loads for about a second, but if I add a while(true) it doesn't, why does it sort of dispose after it's created? Feb 16 23:53:03 is not working because it uses the -PB as command... shouldnt the " tell it its nto a command? Feb 16 23:53:21 hi Feb 16 23:53:45 I'm creating a custom adapter (derived from ArrayAdapter), but I experience a performance issue within my list view. Feb 16 23:53:51 g00s: getResources().getConfiguration().screenLayout Feb 16 23:53:53 I think I'm doing something wrong in getView Feb 16 23:54:19 It would be really cool if you can take a look at my code here: http://ideone.com/j0EZVh Feb 16 23:56:20 thanks for the help Feb 16 23:56:52 is there a channel for general android discussion? I am trying to pinpoint a possible bug on my droid. (need a typical ping avg to 192.168.0.1) Feb 16 23:57:00 g00s: ah, i see where my issues where now, that 'small' looking screen is defined as normal! Feb 16 23:57:02 try #android Feb 16 23:57:27 lol LtRipley thanks. My search somehow missed that.... Feb 16 23:57:47 :) Feb 17 00:01:09 is it possible to use a single, dynamically (programatically) generated viewgroup among different listview items? Feb 17 00:01:23 because I would seem to need a "clone" viewgroup or sth Feb 17 00:01:28 i'm not sure about that Feb 17 00:02:07 spobat_: i use a layout file to generate all of my listview rows Feb 17 00:02:35 clever, yes me too, but I got one viewgroup inthere which is very complex, but can only be generated with code Feb 17 00:02:48 I want to cache it, thus. Feb 17 00:03:18 spobat_: are you also using convertView ? Feb 17 00:03:29 clever, yep Feb 17 00:03:32 see my code above Feb 17 00:03:41 oh god.. any linux pro here? please :-/ Feb 17 00:03:49 the guys in #ubuntu cant help Feb 17 00:03:50 then ListView should be caching things for you, and returning old rows to be recycled Feb 17 00:04:37 k Feb 17 00:04:37 spobat_: are you also using getItemViewType ? Feb 17 00:04:43 clever, no Feb 17 00:05:03 spobat_: is the list mixed with layout rows and complex rows? Feb 17 00:05:53 no one? Feb 17 00:06:12 Styler2go: we dont know what the problem is yet Feb 17 00:06:13 clever, The thing is, the layout contains a Viewgroup with 30 imageViews. Feb 17 00:06:25 It has to be dynamically decided which of these imageview get which image (one of two) Feb 17 00:06:34 i dont know if someone knows about linus Feb 17 00:06:37 linux Feb 17 00:06:45 ? Feb 17 00:06:48 what I want to cache is the entire ViewGroup, because adding 30 views to a single viewgroup for a single list item takes very long Feb 17 00:07:08 spobat_: is it always going to be 30 ImageView's? Feb 17 00:07:31 is there a way to escape a - in a command line ? so that its NOT an arg? Feb 17 00:07:49 clever, yes Feb 17 00:08:14 spobat_: i would just put all 30 ImageView's into a layout then, and change the image within it when getView is called Feb 17 00:08:18 it are always 30, but sometimes 20 are set to R.drawable.image1 (and the others to image2), sometimes it is just one. Feb 17 00:08:18 spobat_: http://developer.android.com/training/improving-layouts/smooth-scrolling.html#ViewHolder Feb 17 00:09:27 spobat_: add the 30 ImageView's once using the layout inflator, and then when you get it back using convertview (or just made it) Feb 17 00:09:31 set the image on each Feb 17 00:09:37 clever, good point, I'm doing something like this already, one second Feb 17 00:09:57 again no one? Feb 17 00:10:27 clever, this is my getView, my holder and my 30-views generator (=setStars) Feb 17 00:10:28 http://ideone.com/No9kFm Feb 17 00:10:49 I think the idea I'm pursuing is good, but it still is awkwardly slow I guess :S Feb 17 00:11:32 suppose I have 30 list items which each calls setStars(root, 0); This would create 30 * 30 views. Insane. Feb 17 00:11:42 What if it was just one Viewgroup that would be shared. Feb 17 00:13:15 clever, btw, other annotations in regard to my coding style are also welcome. Feb 17 00:13:37 spobat_: not sure what your trying to do, so its hard to see how best to do i Feb 17 00:13:40 t Feb 17 00:14:27 I want to decrease the number of views generated, because 30*30 = 900+x views for 30 list elements is unacceptable. Feb 17 00:14:39 Especially if they all share the same ViewGroup within them. Feb 17 00:15:02 spobat_: what if you just had a single ImageView, with 30 different images you could put in it? Feb 17 00:15:07 one for each possible state Feb 17 00:15:42 that would be possible, theoretically Feb 17 00:18:52 spobat_: you could also allocate a Bitmap at run-time, draw 30 images into it Feb 17 00:19:00 spobat_: and then set that as the single ImageView Feb 17 00:19:37 clever, Is this efficient? :) Feb 17 00:19:54 hmm, how do you suggest sending data to server on interval to be handled, like sending all sms messages every 30 min, i have created local db with state is_sent_to_server Feb 17 00:19:56 depends on how complex the state is and how many images you would need Feb 17 00:20:07 `can anyone help me pls: http://hpaste.org/82509 ....why my Links are not clickable???? :( Feb 17 00:20:09 how should i do checking if it is sent or not, it is all done in bg ofc Feb 17 00:20:13 mbarisa: AlarmManager might work Feb 17 00:20:25 yes, i am not concerned about that Feb 17 00:20:41 i am using Handlers Feb 17 00:21:05 but checking if i already sent data and such, to not take much space and memory and to be fast enough Feb 17 00:21:29 because i send it one by one to server, and if it sends every time everything that would not be good Feb 17 00:21:33 mbarisa: one method ive used, is to store the last primarykey i sent to the server Feb 17 00:22:01 oh i got the idea Feb 17 00:22:08 cool Feb 17 00:22:15 would you like to share code? Feb 17 00:22:25 mine was in javascript, for a firefox extension Feb 17 00:22:32 oh ok Feb 17 00:22:38 thanks anyway Feb 17 00:22:50 SirStean: are you calling setMovementMethod(LinkMovementMethod.getInstance()); ? Feb 17 00:23:22 where do i have to call it? Feb 17 00:23:36 SirStean: i had to call it on the TextView i was putting the link in Feb 17 00:24:32 ok i take a look Feb 17 00:25:00 clever, I like the bitmap idea. thanks for that! Feb 17 00:25:09 (will code that and trace again) Feb 17 00:25:34 spobat_: you can also share the bitmap more then you can share a viewgroup, so that may also help Feb 17 00:26:53 yeah, I think so too Feb 17 00:27:09 sharing subviews will only lead to "thisi view already has a parent"-errors I guess Feb 17 00:27:27 yep Feb 17 00:32:19 yes i call the method Feb 17 00:32:27 here the whole call http://hpaste.org/82510 Feb 17 00:32:50 i can see the link, but cant click on it Feb 17 00:38:00 hey...still up? :(...its very important Feb 17 00:41:53 is there one way to send or copy one file into one lan programatically in android Feb 17 00:42:40 if there is something to connect to... you have sockets there... Feb 17 00:43:26 clever, I took the bitmap solution Feb 17 00:43:30 the results are very convincing. Feb 17 00:43:50 And thus a 30-element LL turned into a ImageView Feb 17 00:44:07 ok tyoc213 have you ever done something like that Feb 17 00:44:17 no Feb 17 00:44:49 tona: copy it into what? Feb 17 00:44:51 ftp server? Feb 17 00:44:54 http server? Feb 17 00:44:57 email? Feb 17 00:45:02 smb server? Feb 17 00:45:08 custom app? Feb 17 00:45:27 you have to be a lot more specific to get an answer Feb 17 00:46:30 ok i was thinking to copy it using wifi map a drive but i dont know i can do it in android Feb 17 00:47:13 I assume by "map a drive" you mean a windows/SMB file server Feb 17 00:47:20 for which you need an SMB client Feb 17 00:48:23 File Manager (3rd party app on the market) has an SMB client Feb 17 00:48:39 http://hpaste.org/82509 http://hpaste.org/82510 whats wrong with it? I cant click the links Feb 17 00:48:42 es file explorer also has it, but i dont know how you could automate it Feb 17 00:48:42 but it may be easier to setup an FTP/HTTP server and post to that Feb 17 00:49:10 http://stackoverflow.com/questions/2434595/cifs-samba-client-library Feb 17 00:51:58 ok will try to explain my project beause i dont know what reach my android it, Feb 17 00:52:31 i have one database in my android and i want to update into my master database into my server 2008 Feb 17 00:52:50 what sort of database? Feb 17 00:53:23 (again, be specific if you expect help/advice) Feb 17 00:58:29 ok i have one database in android sqlite and into mysql server Feb 17 00:59:20 it's probably easier to do a web service with a REST type interface that talks to the mysql server Feb 17 00:59:33 I;m not sure how easy it is to talk to mysql from android Feb 17 00:59:42 but google for androdi mysql client Feb 17 01:00:34 ok Feb 17 01:00:37 thanks Feb 17 01:02:52 anybody know anything about Android kernels? Feb 17 01:03:29 There's this CyanogenMod 10.1 Android 4.2 ROM for the Kindle Fire HD, and I installed it knowing that the sound output would not work Feb 17 01:03:38 question is, is there any way to get it to work? Feb 17 01:03:50 I have the 8.9" model Feb 17 01:05:01 the stock ROM is horrible though and I'd really like it if there was some diagnostic I could run Feb 17 01:05:13 probably best to try android-root Feb 17 01:05:22 #android-root Feb 17 01:05:29 I had that and I couldn't even run firefox on the stock ROM Feb 17 01:05:41 firefox would open and then close itself after a few seconds Feb 17 01:06:40 the stock ROM won't run Chrome either Feb 17 01:06:49 and the Silk browser crashed all the time Feb 17 01:07:21 I wish I could give my android tablet to somebody that could make it work, if only they would give it back to me Feb 17 01:09:08 Gallery seems very nice, and the CyanogenMod ROM doesn't have a bunch of useless apps Feb 17 01:09:12 it's very nice Feb 17 01:09:27 just that the audio out won't work, although the microphone does....how weird Feb 17 01:10:08 OK, I have a general android 4.2 question Feb 17 01:10:12 How do I enable ADB? Feb 17 01:10:31 Anoia ok i was lookig for in market but there are many aplications but i am lookign for a library to integrate it Feb 17 01:15:52 tona: http://stackoverflow.com/questions/2434595/cifs-samba-client-library Feb 17 01:16:06 if you still wanted to use samba Feb 17 01:18:57 i was very exciting to make insert and update directly to my server Feb 17 01:23:55 i have a db coms class where i talk to mysql Feb 17 01:24:36 but there were 2 options, write a socket system and handle the possible connection issues myself, or use simple php Feb 17 01:24:44 I lacked the skills for the 1st option Feb 17 01:24:48 DrChaos_: you have to go to 'About Phone' under settings and repeatedly tap the build number until you see the message pop up. Then the settings will have developer options. Feb 17 01:24:49 :) Feb 17 01:27:23 Is there any way to display the request headers with httpclient? Feb 17 01:27:37 Note:not response, request Feb 17 01:32:42 And while we ar at it, is there any way to print the version of the current sdk I am using? Feb 17 02:05:42 mep mep Feb 17 02:06:49 Anyone have a good blog or example of unit testing daos or persistence? Good patterns to follow? Feb 17 02:11:54 Will the respond-to-user-comments-@GooglePlayStore be anytime available for non-premium-developers? Feb 17 02:11:56 romainguy_, ^ Feb 17 02:12:05 Not my area Feb 17 02:12:57 Also I won't comment on anything that has not been announced publicly :) Feb 17 02:17:27 :} Feb 17 02:25:07 just curious, do you live in the US, now? Feb 17 02:27:14 I moved to the US 6 years ago Feb 17 02:27:37 okay ._. Feb 17 02:35:09 romainguy_ how do you feel about the US after these 6 years? Feb 17 02:35:28 Just like I felt about it when I first got here Feb 17 02:35:34 There are great things about this country Feb 17 02:35:57 But there are also many things I don't like Feb 17 02:36:08 fair enough. i feel the same way Feb 17 02:36:19 And I feel the same about France Feb 17 02:36:36 I would probably go back to France for a while if I could get an interesting/well paid job there Feb 17 02:37:10 heh. i could get a well paid job in canada, but i dont think i could find anything as interesting :) Feb 17 02:37:30 I doubt there's anything that pays as well in France :p Feb 17 02:38:52 heh Feb 17 02:39:44 having left the UK almost 8 years ago, I don't think there's all that much chance that I'll even live/work there again Feb 17 02:40:52 it's not even so much about good and bad things, just that there are more interesting opportunities elsewhere Feb 17 02:42:28 Where are you living at the moment Leeds? (Coming from a UK guy :) Feb 17 02:42:37 Leeds: Same for me, but quality of life is pretty amazing in France Feb 17 02:42:50 And the food is good ^^ Feb 17 02:43:07 I go surfing a lot in France and never want to leave :( Feb 17 02:43:16 romainguy_, better than at google??? :P Feb 17 02:43:24 Jojomofoman: Hong Kong Feb 17 02:43:35 Wow, that's a big move. Feb 17 02:44:07 over a radian Feb 17 02:44:14 romainguy_: see, that's the thing - I think my quality of life would be better in, say, Australia than the UK... in some ways, it's definitely better here Feb 17 02:44:16 canadiancow: Yes :) Feb 17 02:44:47 i can never bring myself to eat anything "good" on weekends unless i'm with other people Feb 17 02:44:52 i either order a pizza or go to subway Feb 17 02:46:02 speaking of which, it's that time of day again... Feb 17 02:46:04 don't you guys have UAVs delivering food in SF yet ? :P Feb 17 02:46:15 no, just guys in cars Feb 17 02:46:46 gaaah that lens is awesome Feb 17 02:46:57 romainguy_: which one ? Feb 17 02:47:24 g00s: Voigtländer 35mm Æ’/1.2 Feb 17 02:48:21 romainguy_: quick q; when you ingest your images, do you batch rename stuff - and if so, what app? looks like LR can do some batch renaming Feb 17 02:48:44 http://en.wikipedia.org/wiki/Overwhelmingly_Large_Telescope - lens I want Feb 17 02:49:02 g00s: no I don't rename Feb 17 02:49:23 g00s: I just use folders and tags Feb 17 02:49:40 SpeedEvil: annoying to carry around though :) Feb 17 02:49:55 romainguy_: i think you carry more :P Feb 17 02:51:20 g00s: eh, that's why I'm trying to switch to the M for everything Feb 17 02:52:27 if your telescope doesn't require over 10k m/s delta-v to put in position, it's not overly large ;) Feb 17 02:53:36 apature has a quality all of its own. Feb 17 02:54:42 best way to get some unique id on android device? Feb 17 02:55:06 i think there is a google blog on that Feb 17 02:55:12 basically: don't Feb 17 02:55:41 http://android-developers.blogspot.hk/2011/03/identifying-app-installations.html is the blog post Feb 17 02:56:39 thanks, couldn't find it Feb 17 02:56:50 thanks Feb 17 02:57:12 well, there's a difference between getting an unique id for a specific install that won't survive a wipe, and a more permanent one Feb 17 02:57:21 romainguy_: why does a bugreport contain so much personal info? I was gonna post one to a bug report on b.android. com but decided against it after finding my phone number, friends numbers and links to WhatsApp media in ig Feb 17 02:57:26 It* Feb 17 02:57:47 if whatsapp is logging personal information, that's a bug in whatsapp Feb 17 02:58:01 No, it dumps SQL stuff from apps Feb 17 02:58:08 whatsapp uses your phone number as the user identifier Feb 17 02:58:12 huh? Feb 17 02:58:29 canadiancow: do a bug report and have a look for yourself Feb 17 02:58:31 pretty sure a bugreport doesn't dump app's sql Feb 17 02:58:42 i use bugreports fairly regularly Feb 17 02:59:13 Well, it definitely dumps SQL stuff, I checked a bug report posted by someone else and found a load of his Facebook info Feb 17 02:59:24 so again, that's not "bugreport" Feb 17 02:59:28 that's a bug in the facebook app Feb 17 02:59:34 AlCapwn: it's not supposed to Feb 17 02:59:38 is it possible what's app has its own bug reporter? Feb 17 02:59:46 No, take a bugreport in dev options Feb 17 02:59:48 AlCapwn: if an app logs PII you should contact the authors and tell them to stop **** ENDING LOGGING AT Sun Feb 17 02:59:57 2013