**** BEGIN LOGGING AT Sat Sep 08 02:59:58 2012 Sep 08 03:28:12 anyone familiar with aroma? Sep 08 03:29:01 no but i hear it stinks Sep 08 03:31:54 lolz Sep 08 03:32:04 egh, ill figure it out i guess ^-^ Sep 08 03:47:03 throught the shareactionprovider, i'm sharing an intent this way http://pastebin.com/Pgrmp1ha. the log shows the uri as file:///data/data/com.smile/files/2012-9-7-5.png, but no app can properly handle the image Sep 08 03:47:53 because it's not publicly readable Sep 08 03:48:10 needs to be somewhere like the SD card Sep 08 03:49:27 oh am i using the wrong method for retrieving the correct uri? i do save it on the sd card, and it does show up in a file explorer Sep 08 03:50:20 data/data/etc/ is your private app dir, other apps don't have access to it Sep 08 03:52:31 ahh so the correct way would be to use Uri uri = Uri.fromFile(new File(file_name)); where file_name is the full path? Sep 08 03:52:43 anyone know what might be causing this error: "Attempted to finish an input event but the input event receiver has already been disposed." Sep 08 03:52:57 yup seems to work, thanks JakeWharton, dragorn Sep 08 03:52:57 the behaviour is that the soft keyboard is still open when the dialog is dismissed Sep 08 03:54:30 anyone knowledgable in gesture recognition, android.gesture or neural network or HMM? Sep 08 03:55:03 i think the problem might be that when the primary button is clicked, the dialog is dismissed, even though I didn't call dialog.dismiss Sep 08 03:56:17 hmm edify ifs work like this right? Sep 08 03:56:24 if Sep 08 03:56:25 then Sep 08 03:56:26 stuff() Sep 08 03:56:28 else Sep 08 03:56:30 stuff() Sep 08 03:56:31 endif Sep 08 03:56:36 correct? Sep 08 03:56:53 erm... what language are you talking about? Sep 08 03:57:21 dvdh: nope, but if you find any good references lemme know, because I have plans to use them in the near future Sep 08 03:57:51 frankdrey-pc: ? Sep 08 03:58:02 updater-script Sep 08 03:58:05 Probably root stuff Sep 08 03:58:10 alexanderkardos: doh, my research points me to ANN in the Google Gesture Search app Sep 08 03:58:15 oh, fuck that - #android-root Sep 08 03:58:20 :/ Sep 08 03:58:57 frankdrey-pc: http://www.freeyourandroid.com/guide/introdution_to_edify Sep 08 03:59:15 dvdh: ANN? Sep 08 03:59:22 artificial neural network Sep 08 03:59:27 thankyah Sep 08 03:59:29 just a name~ Sep 08 03:59:40 neural networks are just algorithms. Sep 08 03:59:46 are you working on handwriting recognition? Sep 08 03:59:57 actually went through the smali files to find that :) Sep 08 04:00:15 ya, but i'm still learning machine learning Sep 08 04:00:27 so just doing research atm Sep 08 04:01:28 do you know if gestures have some sort of interupt or event upon movement? Sep 08 04:01:50 http://mobile.tutsplus.com/tutorials/android/android-gesture/ Sep 08 04:01:52 this looks useful Sep 08 04:02:36 oh, thats the 'gestures' like swipe Sep 08 04:02:50 im trying to do gesture recognition Sep 08 04:02:52 handwriting Sep 08 04:03:02 which would be the android.gesture package Sep 08 04:03:35 I wish fine point stylus was easy. Sep 08 04:04:06 stylus? like the samsung and htc stylus? Sep 08 04:04:24 yes. Sep 08 04:04:44 they have apis to read stylus sensors Sep 08 04:04:45 sanely writing with a finger s hard Sep 08 04:04:47 like pressure Sep 08 04:04:52 ahh Sep 08 04:05:01 you can use those pens that they have....but they're still not as good as the notes Sep 08 04:05:05 I really want the new note 10.1 Sep 08 04:05:12 ah I see what you're saying Sep 08 04:05:15 dvdh Sep 08 04:05:20 did we talk earlier today? Sep 08 04:05:31 not yet, i just got on :D Sep 08 04:06:30 unless your earlier was my last night Sep 08 04:06:34 we must have talked the other day, your username is familure Sep 08 04:06:57 OH. I was looking for help with a null pointer I think Sep 08 04:07:10 it's about 10 pm here, so probably not? Sep 08 04:08:25 ohhh then ya :D Sep 08 04:08:32 i think so Sep 08 04:08:36 how did that go? Sep 08 04:08:45 I wasn't inflating a view. Sep 08 04:08:52 :/ Sep 08 04:09:34 ahhh sounds about right Sep 08 04:09:45 one of the most typical bug that happens Sep 08 04:09:57 next would be the not using the android:id's Sep 08 04:10:03 like android:list Sep 08 04:10:07 most annoying thing. new to android. Sep 08 04:10:18 for a listacttivity/fragment Sep 08 04:10:20 etc Sep 08 04:10:37 gotta love the error messages ;) Sep 08 04:12:11 seriously! I feel like it shouldn't return null....but a wrong class or something like that. Sep 08 04:12:59 welcome to Android :) Sep 08 04:13:33 That makes no sense Sep 08 04:13:44 me? Sep 08 04:13:53 "but a wrong class or something like that." Sep 08 04:14:22 I need more sleep, I apologize for my wording Sep 08 04:14:24 that's be a ClassCastException Sep 08 04:16:15 I guess I mean it should return something other than null for a better error message. Sep 08 04:16:45 get some sleep :) Sep 08 04:16:56 It should return null :p Sep 08 04:17:08 There's no view with that id, so there's nothing to return Sep 08 04:18:54 alright, I was just thinking a warning of some sort would be nice, perhaps a log or something. Sep 08 04:19:19 I got burnt by that a lot when i first started Sep 08 04:21:44 How would they know when to show the warning Sep 08 04:22:02 Some use it for checking if they're on a tablet or phone Sep 08 04:22:25 how so? Sep 08 04:22:43 lol I guess everyone has to learn that lesson at some point. Sep 08 04:22:53 for some reason, if i toggle a togglebutton in a dialog, the dialog scrolls up. any idea as to why? Sep 08 04:23:15 if you use different views on phones and tablets Sep 08 04:23:28 You can null-check one of them to find out what you're running on Sep 08 04:24:38 your app only has certain views depending on your resolution? Sep 08 04:24:55 No, based on screen size usually Sep 08 04:25:55 I wasn't aware of taht capability. I knew you could do that with icons. how does that work with views? how do you know which view it's going to use when? Sep 08 04:26:23 Same way.. different layout resources for different configurations Sep 08 04:26:40 alright, I wasn't aware of that, but it makes sense now. Sep 08 04:27:03 All the qualifiers can be applied to all the res/ folders Sep 08 04:27:50 is the qualifier the -hdpi at the end Sep 08 04:27:53 ? Sep 08 04:28:01 That's one qualifier, yes Sep 08 04:28:21 http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources Sep 08 04:28:38 thank you Sep 08 04:38:51 Hey I am curious what are the costs of making an app minus marketing. I thought there were none but websites about how to make a good app seem to indicate development budget can be huge Sep 08 04:39:13 time is often the greatest cost Sep 08 04:39:20 depends will be your best answer Sep 08 04:39:22 are you hiring someone or doing it yourself? Sep 08 04:39:35 good question, outsourcing will cost Sep 08 04:39:36 I'm doing it myself its no fun to hire someone to code for you Sep 08 04:39:48 what do you have in mind for your app? Sep 08 04:39:50 general idea of course Sep 08 04:39:51 your opinion Sep 08 04:40:02 zy, im building an app Sep 08 04:40:11 what does it need to interface with, what do you want it to do. Sep 08 04:40:18 Actually not really sure just I am an experienced java developer and I thought I might try writing some android apps Sep 08 04:40:19 and i have hired multiple teams on various modules while i code it together Sep 08 04:40:21 your costs are about 25$ to put it on the market, and whatever libraries you need Sep 08 04:40:27 so its a matter of perspective Sep 08 04:40:39 Ok lol thats not much Sep 08 04:40:41 it'll cost you almost nothing then zymaster. it's only expensive if you're hiring people Sep 08 04:41:11 + devices, depending on how serious you are about testing Sep 08 04:41:39 ok I see thats what I thought but a lot of websites seemed to indicate it could be expensive so I thought I would make sure Sep 08 04:42:39 That's probably when random person/company wants an app made by someone else Sep 08 04:42:43 don't forget about the emulator though, you can change the size. Sep 08 04:42:59 it just takes a lot of time to make any good program Sep 08 04:43:53 yeah but its fun coding stuff. I've done a lot of it before just never on mobile devices Sep 08 04:44:11 I agree, coding is great. Sep 08 04:45:07 anyway I gtg thanks for the help guys! Sep 08 04:52:14 does anyone in here use roboguice? Sep 08 04:54:01 a friend who writes a lot of java really likes the guice library for dependency injection and recommended I check out the roboguice for android Sep 08 05:09:26 oi ron_frown Sep 08 05:10:50 :( Sep 08 05:12:53 hey, can anyone offer some advice on android voodoo? Sep 08 05:13:09 just get an android doll and start stabbing it Sep 08 05:13:33 I'm making a List, making an adapter, and setting the adapter for a Listview Sep 08 05:13:53 but the ListView's getLastVisiblePosition() is -1. and it appears to be empty. Sep 08 05:26:03 Hello Sep 08 05:27:09 howdie ho neighborino. Sep 08 05:28:04 does anybody solve this aproblem as in this link http://stackoverflow.com/questions/12319445/update-only-phones-contact-number-when-multiple-number-under-one-contact Sep 08 06:14:28 DOes anyone know how to use Apk Edit? Sep 08 06:14:55 or ApkTool 4.3? Sep 08 06:16:04 quit (Quit: rcirc on GNU Emacs 24.2.1) Sep 08 06:16:04 [01:14] DOes anyone know how to use Apk Edit? Sep 08 06:16:04 [01:14] or ApkToo Sep 08 06:16:40 sorry Sep 08 06:16:41 anyone? Sep 08 06:16:47 jcm11215: what do you need? Sep 08 06:16:56 I've used it before a couple times but it's been a while. Sep 08 06:17:17 How does it work? Sep 08 06:17:29 what OS are you on? Sep 08 06:17:44 windows vista x64 Sep 08 06:17:49 I cant get apktool to do anything Sep 08 06:17:59 gimme a sec to brush up on it real quick Sep 08 06:18:04 and apk edit brings up an open dialog for a jar file Sep 08 06:18:23 is it installed? Sep 08 06:18:40 No installation Sep 08 06:18:47 can you access it from the command line? Sep 08 06:18:50 Just a zip file containing the app Sep 08 06:19:04 no, I mean do you have apktool installed? Sep 08 06:19:17 Their is no installation for apktool Sep 08 06:19:29 Its got all the files in a folder Sep 08 06:19:45 you can copy it into a system path to be able to execute it. that way you can just run "apktool" from the command line Sep 08 06:19:55 but can you cd into the apktool directory? Sep 08 06:20:01 with an app, a batch file and a jar file Sep 08 06:20:52 Pointless to put it in a system folder and cd into it if it doesnt open Sep 08 06:21:05 alright try this (I'm not a windows person) Sep 08 06:21:15 k Sep 08 06:21:23 cd into the directory and run "java -jar ./apktool.jar" Sep 08 06:21:27 Maybe compatability mode Sep 08 06:21:29 and let me know if it has any input Sep 08 06:22:15 or output Sep 08 06:24:12 'java' is not recognized as an internal or external command, Sep 08 06:24:13 operable program or batch file. Sep 08 06:25:35 what if you run the ./apktool.bat Sep 08 06:25:35 ? Sep 08 06:26:01 one sec i did it wrong Sep 08 06:26:20 no problem Sep 08 06:26:45 if you have a chance once we have your problem figured out, would you mind helping me out with something? Sep 08 06:26:57 is their a command to execute java -jar ./apktool.jar or do i just type java -jar ./apktool.jar once in the directory Sep 08 06:26:59 of course Sep 08 06:27:10 alright. Sep 08 06:27:15 um....I'm a unix guy one sec Sep 08 06:27:19 I think you can just execute the bat file Sep 08 06:27:29 if the jar file is in the same directory as the .bat file it should execute it Sep 08 06:28:01 what happens if you type in (you know to not use the quotes right?) "apktool d filename.apk" Sep 08 06:29:15 ok i ran aapt.exe and got a list of commands Sep 08 06:29:37 dump values Sep 08 06:29:48 aapt p[ackage] [-d][-f][-m][-u][-v][-x][-z][-M AndroidManifest.xml] \ Sep 08 06:29:49 [-0 extension [-0 extension ...]] [-g tolerance] [-j jarfile] \ Sep 08 06:29:49 [--debug-mode] [--min-sdk-version VAL] [--target-sdk-version VAL] \ Sep 08 06:29:49 [--app-version VAL] [--app-version-name TEXT] [--custom-package VAL] \ Sep 08 06:29:49 [--rename-manifest-package PACKAGE] \ Sep 08 06:29:50 [--rename-instrumentation-target-package PACKAGE] \ Sep 08 06:29:50 [--utf16] [--auto-add-overlay] \ Sep 08 06:29:50 [--max-res-version VAL] \ Sep 08 06:29:51 [-I base-package [-I base-package ...]] \ Sep 08 06:29:51 [-A asset-source-dir] [-G class-list-file] [-P public-definitions-file] Sep 08 06:30:09 can you do the same thing with apktool? Sep 08 06:30:15 the apktool.bat Sep 08 06:30:55 jcm11215: don't paste like that here Sep 08 06:30:58 aapt is part of apktool Sep 08 06:31:00 came with it Sep 08 06:31:04 I know Sep 08 06:31:09 but you want to access the actual apktool Sep 08 06:31:25 and what are you actually trying to do? Sep 08 06:32:01 Leeds: does that somehow affect you in a negative way? Sep 08 06:32:08 yes, it does Sep 08 06:32:10 Trying to edit an apk Sep 08 06:32:20 can't you just edit your sourcE? Sep 08 06:32:25 how? Sep 08 06:32:45 well, take the source code to your app, edit it, rebuild... Sep 08 06:32:49 how do i do that? Sep 08 06:32:55 >.> Sep 08 06:33:04 Edit it with? Sep 08 06:33:45 vim Sep 08 06:33:56 is it your app you're trying to edit, or someone else's? Sep 08 06:35:51 *crickets* Sep 08 06:36:17 yeah... Sep 08 06:36:48 mine Sep 08 06:36:50 Is there any reason that a ListView inside of a LinearLayout wouldn't appear? Sep 08 06:37:00 no Sep 08 06:37:10 jcm11215: then why on earth are you trying to edit the apk rather than just rebuilding it? Sep 08 06:38:38 https://gist.github.com/f9f4ae6939ccdc01b203 Sep 08 06:38:45 Because i just need to edit it rather than rebuild it Sep 08 06:38:53 what do you need to edit? Sep 08 06:39:15 Because it's not his app Sep 08 06:39:18 He lied on the internet Sep 08 06:39:22 The apk i really dont need your help thanks though Sep 08 06:39:31 21 questions Sep 08 06:39:41 I've edited this, but the list should be populated and it isn't, and the background color on the listview isn't showing up. Sep 08 06:39:42 ho hum Sep 08 06:40:01 jcm11215: did you see the topic by any chance :) this is app dev, not reversing Sep 08 06:40:12 jcm11215: so I'm going to work on the reasonable theory that what you're trying to do is 'crack' some 'warez' Sep 08 06:40:36 it sounds like he's trying to crack a really tough nut ! Sep 08 06:40:53 jcm11215: put the nut on your desk and hit it with your head Sep 08 06:40:59 Negative ghost rider im trying to preconfigure an apk so it doesnt have to be configured once installed Sep 08 06:42:41 Long story short, you're in the wrong channel Sep 08 06:44:07 alexanderkardos: You wouldn't usually use wrap_content with listview Sep 08 06:45:11 hm....that helped. the list view is showing up! Thank you. Sep 08 06:45:43 what channel would i need to be in for that? Sep 08 06:45:48 but my app still doesn't have my lists for some reason. Sep 08 06:46:16 Then you either didn't set an adapter, or your adapter is broken Sep 08 06:47:13 I do have an adapter set, is there a way to tell if it's broken? It worked when I wasn't using this as a fragment, but it isn't now. Sep 08 06:51:42 Well, if it doesn't supply any views, then it's probably broken Sep 08 06:59:14 poor nokia; lumia 920 gets terrific reviews … stocks drop Sep 08 07:14:05 g00s: have you used/programmed the windows phones? do you like them? Sep 08 07:16:01 alexanderkardos: no i haven't. i skipped wp7 because i needed certain apis; wp8 has those but the sdk wont be out for … a little bit soon (ms is screwing that up). a project i am working on will be using BLE (bluetooth low energy) and android doesn't support it, so i'm forced to go wp8 for now (once its available). Sep 08 07:16:45 even if the next version of android supported BLE, a sizeable market would not have it any time soon Sep 08 07:16:46 I've heard a lot of people are really excited for the new windows API's. I tend to really like the windows documentation too. Sep 08 07:17:20 Android tends to mature pretty fast, I'd say you'd be good with BLE within a year or two. Sep 08 07:17:23 what will be interesting is if the market can support 3 mobile platforms. most likely not 4 Sep 08 07:17:27 the windows phone population is always pretty low Sep 08 07:17:48 which do you think will lose out? Sep 08 07:18:05 BB is necessary, it's the only platform available for government up to Secret level. Sep 08 07:18:11 and businesses still tend to love it Sep 08 07:18:21 IOS is obviously here to stay, and I think android is too. Sep 08 07:18:36 i thought here in the US, some large part of the government did not renew their BB contract Sep 08 07:19:28 and , i'm not up on BB … i've read in the past places like India have required BB to hand over their encryption keys /or something like that/ Sep 08 07:20:07 http://www.theregister.co.uk/2012/08/02/rim_keys_india/ Sep 08 07:20:15 hm, I haven't heard anything about that. I just know a friend of mine on the military side of engineering is using BB Sep 08 07:20:32 i know the US military has been looking very hard at android Sep 08 07:20:57 I've read a lot of articles on android security flaws Sep 08 07:21:23 i'm sure the military would lock it down somehow Sep 08 07:21:55 I'm sure they'd have to, sounds interesting to me. Sep 08 07:22:00 android isn't nearly as stable as BB though. Sep 08 07:22:06 have you ever heard of symbian? Sep 08 07:22:16 sure, but i have never used symbian Sep 08 07:23:36 it looks really cool to me, I'm unhappy that it was discontinued. Sep 08 07:23:48 it was a full linux operating system rather than what android is. Sep 08 07:24:30 i was hoping for MeeGo at the time; i would like a more open linux mobile OS. Sep 08 07:24:39 which is linux -x11 and a bunch of other tools Sep 08 07:24:53 actually, I've been trying to figure out the android windowing system, any clue what that is Sep 08 07:24:53 ? Sep 08 07:24:58 and if we have a way to access it? Sep 08 07:25:05 meego looks awesome! I remember those! Sep 08 07:25:27 but unfortionately they all had radio issues when I was looking at them. Sep 08 07:25:30 alexanderkardos: romain might be able to help you with the windowing system, i don't know much about it Sep 08 07:26:01 so, i think wp8 will be good - just because its more competition. competition is good Sep 08 07:26:03 is he around? Sep 08 07:26:23 not sure ... Sep 08 07:26:28 I agree, competition is always good. I have a feeling it'll at least bring some better hardware to the playing field Sep 08 07:27:54 i was reading an interview by Mike Kruzeniski about the Metro UI philosophy, and i really liked it Sep 08 07:28:09 playing with my friends phone, i thought it was pretty excellent Sep 08 07:28:37 i'm just not getting the START_*_STICKY* flags for Services... why could a service be killed while it is started but AFTER onStartCommand() returns? Sep 08 07:28:59 rigid: because unless its foreground, it can still easily be killed Sep 08 07:29:03 either you want it to return/quit after the intent is processed or you want it persistent, isn't it? Sep 08 07:29:12 techinically, it can still be killed with foreground, but less likely Sep 08 07:29:46 for example, if you let the service do something for 10 minutes, you will likely find out it was killed :| Sep 08 07:29:53 g00s: hm, but then a service is not more like a normal activity in that sense Sep 08 07:30:16 ahm Sep 08 07:30:26 rigid: the service docs explain this; i had to reread those over a bunch of times to get it, back when i was learning that Sep 08 07:31:19 https://gist.github.com/3e5f218becb6c903b0b4 Does anyone know if this would be the wrong way to inflate something for a ListView.setAdapter? Sep 08 07:31:23 so there actually is no way to have a "persistent" service that remains there forever... it's just what measures the OS should take after a service got killed Sep 08 07:31:59 g00s: i guess i have to re read the docs, too ;) Sep 08 07:32:20 alexanderkardos: i think one big turn off for me on wp8 though - will be if they have poor track records of updating devices. i really dont like the android situation; 60% users still have gingerbread in 2012. if ms is more like apple and makes sure everybody gets timely updates, that would be great. if not … Sep 08 07:32:41 rigid: if you really don't want your service killed, use foreground Sep 08 07:32:57 rigid: the onkill actually isn't always called, it's more of a suggestion. Sep 08 07:33:32 g00s: the problem with apples updates is that they're difficult to do and most people don't do them, you have to do it through itunes. Sep 08 07:33:45 alexanderkardos: i'm pretty sure iOS 5 has OTA Sep 08 07:33:50 I just like android because the API is pretty open. Sep 08 07:33:58 I hope so....but what's with that form factor? Sep 08 07:34:14 the new iphone 5 looks silly, yeah. too long. 16:9 ? Sep 08 07:34:54 g00s: yeah i thought about that but I didn't get it to work with the example... i'll retry Sep 08 07:34:56 yeah that's what it is. Sep 08 07:35:04 which looks odd and uncomfortable... Sep 08 07:35:04 actually foreground service is exactly what I need Sep 08 07:35:13 rigid: don't abuse it Sep 08 07:35:25 g00s: alexanderkardos: tnx for now Sep 08 07:36:23 forgrounds can be killed by a task manager can't they? Sep 08 07:36:50 g00s: well, i'm trying to write a video-recorder app that continues recording while other apps are in foreground... this is a troublesome issue anyways so using a foreground service is less abusing than a background one in terms of privacy Sep 08 07:42:25 Is that even possible Sep 08 07:47:10 hi all, does anybody know about granting permission without using SDK? Sep 08 07:47:53 Uh, what? Sep 08 07:48:05 I mean, if one wants to make an executable with ndk-prebuilt toolchain and compile its C code, what happens if the application wants some permission to Sep 08 07:48:12 access, say audio Sep 08 07:48:19 for audio recording Sep 08 07:49:26 saeed-emb: an ndk object is always called from a java activity or as root, isn't it? Sep 08 07:49:51 so it's always obeying the manifest of the parent activity i guess? Sep 08 07:50:25 um, i have pushed the binary to the (unrooted defy+) phone and it works Sep 08 07:50:33 until it wants to access audio Sep 08 07:50:39 for recording Sep 08 07:51:00 saeed-emb: what are you using to access audio? Sep 08 07:51:05 alsa? Sep 08 07:52:02 or tinyalsa? Sep 08 07:52:03 No, you can't request permissions at runtime Sep 08 07:52:29 okey, good to know Sep 08 07:53:02 yet can I grant permission to this binary, say through a manifest file? Sep 08 07:53:37 saeed-emb: not to access audio directly afaik. you have to use the java api Sep 08 07:53:43 *android api Sep 08 07:53:54 yes, i've used opensl-es Sep 08 07:54:06 it plays back the audio Sep 08 07:54:19 but when it wants to record or access the microphone, Sep 08 07:54:33 the initialiser of opensl-es stops Sep 08 07:54:38 with error Sep 08 07:54:59 when I run this app on emulator, (with root access ) it works Sep 08 07:58:08 saeed-emb: we encountered the same problem with #libvisual and the only way to record audio from ndk was using JNI glue to MediaRecorder (or AudioRecorder ?) Sep 08 08:01:10 saeed-emb: you might want to look at https://github.com/Libvisual/DroidVisuals/tree/cxx/DroidVisuals ... maybe it helps Sep 08 08:02:25 thanks rigid Sep 08 08:03:17 i'll take a look Sep 08 08:52:09 Anyone know of an efficient way to check if two themes are eual? Sep 08 08:52:10 *equal? Sep 08 08:59:23 Alternatively, http://stackoverflow.com/questions/12329427/how-to-tell-if-two-themes-are-equal Sep 08 09:06:22 I don't think you can do that Sep 08 09:07:09 Resolve the parent that is.. Probably needs to be done manually somehow Sep 08 09:23:27 The only way to set a background drawable for an entire list fragment (not just the list row items) is to wrap in a frame layout or something? Sep 08 09:26:15 Set it on the root view in the layout you inflate in your fragment Sep 08 09:29:12 Hello Sep 08 09:49:09 Do u know any web site with orders for android apps ? Sep 08 09:49:34 which is safe and clients are paying well. Sep 08 09:53:17 facebook integration seems like a pita Sep 08 09:53:29 :/ Sep 08 10:06:51 Guys? Is there anyone who can gimme a hand with this?; http://stackoverflow.com/questions/12325205/javascriptinterface-not-doing-anything Sep 08 10:08:17 SimonVT a list fragment doesn't have a view root inflated, it's handled automatically, Sep 08 10:10:51 Guess I could do it on the list though, thanks Sep 08 10:11:13 The view returned from onCreateView is passed to onViewCreated.. Do it there Sep 08 10:11:50 Oh thanks Sep 08 10:19:08 Is there a way to comment one line in the xml files? Sep 08 10:21:13 Sep 08 10:21:28 thanks Sep 08 10:38:51 How can I align the bottom line of a spinner box and a textview's text bottom line ? Sep 08 10:40:46 Nm Sep 08 10:58:26 The only way to change the textsize of a spinner when it is not selected (ie the currently chosen item is in the spinner box) is to make a custom adapter? or can I set the text size some other way? Sep 08 11:08:44 hello all Sep 08 11:09:28 need to update Eclipse what better chois Eclispe Classic or Eclipse IDE for Java Developers? Sep 08 11:10:33 Is nobody experiencing the issue where you start your app but you only see the label with your app's name and everything else is black, and said label disappears after two seconds and the whole OS Freezes? Sep 08 11:11:14 please, can anyone tell me what i'm doing wrong? >.> Sep 08 11:11:14 web.getSettings ().setJavaScriptEnabled (true); Sep 08 11:11:14 web.loadData (html, "text/html", null); Sep 08 11:11:21 javascript is completely ignored Sep 08 11:12:36 web is a webview, by the way Sep 08 11:17:45 RobinJ: why js is completely ignored? Sep 08 11:17:58 RobinJ: i can't get, it should work Sep 08 11:18:30 RobinJ: maybe you're missing something that you have to trigger to start js to be executed? Sep 08 11:20:40 must've looked over this >.< Sep 08 11:20:41 web.setWebChromeClient (new WebChromeClient ()); Sep 08 11:43:38 has anyone here used the Facebook sdk? I'm wondering if the common thing to do is keep creating the facebook object in all activities or if you just have a singleton and call the instance Sep 08 12:58:04 has anyone run into fb sdk giving "invalid application id" error? Sep 08 13:02:23 t/whois brx_ Sep 08 13:02:31 whoops Sep 08 13:03:26 When calling drawBitmap on a bitmap that is black is it possible to pass a paint that will paint it in yellow instead? Sep 08 13:13:38 How do i get a textbox or area and write the contents of it to a file, then later on get a variable from that file? Sep 08 13:15:09 tomtiger11: are you asking for someone to write your code for you? Sep 08 13:15:21 Nope, I was asking how I do it XD Sep 08 13:15:47 What functions I use e.t.c Sep 08 13:34:19 But seriously. How do I? Sep 08 13:35:00 do you know how to write a file? Sep 08 13:35:19 Nope. Sep 08 13:36:18 you can try to google it yourself or we can find you a guide Sep 08 13:37:03 Could you find me a guide? Sep 08 13:37:05 your question is quite generic Sep 08 13:37:15 Its supposed to be XD Sep 08 13:37:53 http://developer.android.com/guide/topics/data/data-storage.html#filesInternal Sep 08 13:37:56 there you go Sep 08 13:38:01 ty Sep 08 13:40:41 Right, Not to hard, the only thing left then is how can i click on a widget and make it go to a page where the file is written? Sep 08 13:43:35 tomtiger11: not homework, is it? Sep 08 13:46:54 How does the actionbar handle a custom layout (setcustomview) with split action bar? Sep 08 13:47:01 Is the customview retained at the top? Sep 08 13:54:51 Leeds: Nope. Personal Project Sep 08 13:55:19 okay, then you're going to need to learn, well, Java Sep 08 13:55:50 I know a bit of java, Just not much XD Sep 08 13:56:59 then learn more Sep 08 13:57:26 But what I'm asking is Android Specific XD Sep 08 14:01:57 and is well covered in the tutorials and other docs Sep 08 14:09:34 tomtiger if you mean app widget as opposed to view widget you fire an intent with extras that contain some reference identifier to the page you want to load (in what im assuming you mean to be activity) Sep 08 14:10:50 Does anyone know if I can use the view pager that will contain some layouts which contain multiple list fragments with ABS? Sep 08 14:18:38 Hello. I want to create a testing environment that works in the following way. It boots an Android OS on a physical smartphone; once boot has finished, it installs app X then it installs app Y, saves the logs and then reboots. At reboot, the phone should get back to the original state. And repeat the procedure for app Y+1. I have no idea where to strart from, because I am quite new to Android, but any directions would be Sep 08 14:23:00 If I have a database in the assessts folder and load it, does it make a "internal copy"? Sep 08 14:26:12 Seriousily developing is like a game of shoots and latters Sep 08 14:30:26 heya, i'm getting this, i think per frame, logcat is unusable with this http://pastie.org/4685531 Sep 08 14:30:34 is that normal behaviour? Sep 08 14:31:39 i mean, it obviously isn't :) Sep 08 14:32:06 aaaw headache.... hi ppl Sep 08 14:32:33 join the club Sep 08 14:32:54 eazel7, morning, had headache too Sep 08 14:32:56 do you know any alternative zxing usage sample other than barcode scanner? Sep 08 14:32:57 joining the club Sep 08 14:33:06 we got scotch, excedrin or something stronger in the mystery bag Sep 08 14:33:18 dsirijus, so you're in America? (timezones...) Sep 08 14:33:30 eazel7, nope Sep 08 14:33:39 eastern/central europe Sep 08 14:33:55 http://pastie.org/4685531 why would i get this per basically each frame Sep 08 14:34:55 dsirijus, if you live in eastern/central Europe I have a Schrodinger cat which is dead/alive =) Sep 08 14:35:19 now that's an offer! Sep 08 14:44:34 Hey guys... Sep 08 14:46:21 I'm trying to set a listiner to a variable change... but I never did anything like that... after some searching it seems like http://stackoverflow.com/questions/7157123/in-android-how-do-i-take-an-action-whenever-a-variable-changes has the answer I was looking for... but I need some help understanding the answer there, could someone walk me through this area? Sep 08 14:51:06 whats an example of a 4” screen type phone? Sep 08 14:51:26 sasson, maybe the observer pattern coudl help you Sep 08 14:51:49 sasson, http://en.wikibooks.org/wiki/Java_Programming/Design_Patterns#Observer Sep 08 14:52:00 goes in some pretty good detail explaining Sep 08 14:55:02 This is interesting ! http://opensignalmaps.com/reports/fragmentation.php Sep 08 14:56:45 hello Sep 08 14:57:21 I am trying to make a list of contacts and checkboxes, so I can select people to email, so far I have researched contactpicker and listview with simplecursoradapter, does this sound right? Sep 08 14:59:50 hkhalid yeah Sep 08 15:00:01 im scared Sep 08 15:00:07 its easy Sep 08 15:01:22 you’ll want to use a contentresolver to get a cursor for the listview Sep 08 15:01:30 *use contentresovler Sep 08 15:02:46 thanks lasserix ! Sep 08 15:02:48 and if you end up styling / customing the listview rows cursoradapter is easy to implement only two methods two override Sep 08 15:03:15 lasserix: what do you suggest in order how I do it, contentresolver, then cursor, then contactpicker Sep 08 15:04:00 oh Sep 08 15:04:04 im sorry Sep 08 15:04:14 you can avoid using a listview and a cursoradapter Sep 08 15:04:18 since you are using contactpicker Sep 08 15:04:20 oh wow Sep 08 15:04:35 thanks lasserix , I think you just saved me many hours Sep 08 15:04:45 contactpicker will open an activity that contains the contacts Sep 08 15:04:50 check this tutorial: http://mobile.tutsplus.com/tutorials/android/android-essentials-using-the-contact-picker/ Sep 08 15:04:59 it’ll tell you all the details of how to get the results etc Sep 08 15:05:07 but you don’t need to list the contacts in your own app Sep 08 15:06:16 lasserix: ive seen that, but it seems difficult to allow multiple selections Sep 08 15:06:23 I Want to check off names, and then getthe emails in a string Sep 08 15:08:15 oh sorry Sep 08 15:08:19 here: http://stackoverflow.com/questions/4976691/multiple-contact-picker-list-getcheckeditempositions Sep 08 15:08:23 make sure to read the first answer Sep 08 15:09:15 thanks lasserix Sep 08 15:09:41 then use the getactvitiyforresult by means of the mob tut example and you should be good to go Sep 08 15:10:33 though depending on your target users you may use a listfragment instead so you can design for tablets and apps Sep 08 15:10:41 *listfragment instead of listactivity Sep 08 15:11:29 *oh and you don’t use the android contact picker at all, you are making your own contact picker Sep 08 15:12:12 to get the list of contacts you use the contentresolver.query method with the URI that points to the contacts (lots of examples online) Sep 08 15:12:50 which is a cursor which populates your list view, you handle the user input via that so post, and there you go Sep 08 15:13:03 ahh im rambling time to take a walk, good luck! Sep 08 15:18:36 hi Sep 08 15:19:01 can i avoid disable View after animation? Sep 08 15:27:54 Bear10, thanks for your help b4... Sep 08 15:28:03 sasson, did it help? Sep 08 15:28:27 hmmm.... not yet... Sep 08 15:28:48 now I'm confused which is the right way to go Sep 08 15:29:13 I've read some people got problems using observations.. Sep 08 15:34:56 hi Sep 08 15:43:26 hello, I have a TextView with a color background, but it seems that TextView is not wrapping around it's actual content, and it looks like the A on the left (http://i.imgur.com/8lcYp.png), while I want it to look like the A on the right. And this is even with 0 padding Sep 08 15:43:37 anyone know what I'm missing here? Sep 08 15:46:01 Please! Does anyone know about auto panning an imageview, like what screensavers do panning an image randomly!! Sep 08 17:56:13 wow, quiet today. Sep 08 17:57:56 its gotten quieter over the past few weeks it seems Sep 08 18:05:03 I wouldn't know, my first time using IRC was like 3 days ago. I was surprised people still use it Sep 08 18:23:41 lethjakman: what would you suggest as a replacement for irc? Sep 08 18:24:36 PrivateAlpha: nothing, I love this. it just seems like a lot of the older technologies have started to fade even if they're still useful Sep 08 18:24:39 ham radio for instance Sep 08 18:25:10 lethjakman: Thats only because they have been replaced Sep 08 18:25:19 nothing has replaced irc yet Sep 08 18:26:35 it seems like a hard standard to follow up on. Sep 08 18:26:56 I suppose ham radio was mostly replaced by cell phones which are cheaper. Sep 08 18:32:17 my friends screen is busted, and im trying to retrieve some files off of it. problem is,i its not in usb debugging mode so ADB cant see it. Is there some way to force it into dev mode? Sep 08 18:32:50 is it a samsung? Sep 08 18:33:15 yeah actually Sep 08 18:33:23 some of the roms you can load via odin have usb debugging enabled Sep 08 18:33:42 ah but installing a rom would involve wiping all the content anyways Sep 08 18:34:52 I thought there were some that didn't, but you're probably right Sep 08 18:37:02 i'm having a problem, i'm trying to run a sample java application with my galaxy s2 connecte, but it freezes at "Starting activity com.example.android.snake.Snake on device 0019041f77c27e" Sep 08 18:37:28 it used to run just fine when I last did this a few months back Sep 08 18:40:22 Xix19: what happens Sep 08 18:40:32 what freezes? Sep 08 18:41:05 it just does nothing Sep 08 18:41:10 and nothing shows up on the phone Sep 08 18:41:14 have you tried to uninstall instal Sep 08 18:41:19 it used to simply start the application Sep 08 18:41:27 do you have it connected via usb? Sep 08 18:41:34 there's nothing to uninstall, the app doesn't even show up on the phone Sep 08 18:41:37 yes Sep 08 18:41:38 you could try to uninstall the app then install it Sep 08 18:41:42 the usb debugging is on Sep 08 18:41:51 ok so adb uninstall then adb install? Sep 08 18:42:37 adb uninstall -k com.example.android.snake.Snake Sep 08 18:42:47 or without -k to completely wipe it Sep 08 18:43:00 those are command line commands Sep 08 18:43:07 where do I run them? Sep 08 18:43:21 i'm using Eclipse for Android Sep 08 18:43:26 as my IDE Sep 08 18:45:03 can you start a subactivity from another subactivity? Sep 08 18:47:47 ciwolsey: ? Sep 08 18:48:00 yes? Sep 08 18:48:03 your question? Sep 08 18:48:04 ciwolsey: i can't start the program at all since it's not getting installed Sep 08 18:48:19 which program? Sep 08 18:48:25 activities as far as I know are done from within a program, which i cant run at all Sep 08 18:48:48 program = the samples that come with eclipse for android Sep 08 18:48:55 Xix19: that was my question, not related to yours Sep 08 18:49:07 ciwolsey: oh, sorry Sep 08 18:49:14 anyone got a cursor working with a contentresolver Sep 08 18:49:46 adb command syou run from a terminal Sep 08 18:50:32 ciwolsey: from the phone, or from eclipse? Sep 08 18:50:59 from your linux terminal Sep 08 18:51:04 i havent used linux in a while Sep 08 18:51:12 you know.. like xterm.. kterm? konsole? Sep 08 18:51:14 gterm? Sep 08 18:51:47 i'm on windows Sep 08 18:52:00 then open a command prompt Sep 08 18:52:11 done Sep 08 18:52:57 ok Sep 08 18:53:04 now unless you added adb to your path Sep 08 18:53:08 just try "adb" Sep 08 18:53:13 you will either get command not found Sep 08 18:53:16 or a result Sep 08 18:53:29 ciwolsey: startActivity(Intent) Sep 08 18:54:28 yeha i just wondered if it was normal for an app to string subactivities together Sep 08 18:55:10 sure, before fragments, i was using activities for each screen Sep 08 18:55:19 i mean 1 ot 1 Sep 08 18:56:37 ok Sep 08 18:56:37 activity can be started by other apps as well if you let it, look at intent-filter Sep 08 18:57:06 im just wanting a screen where i can switch an option Sep 08 18:57:08 been a while since i read this, so i need to read the doc as well :) Sep 08 18:57:08 http://developer.android.com/guide/components/intents-filters.html Sep 08 18:57:12 like 4 people can use my app Sep 08 18:57:18 i want a screen to select the user Sep 08 18:57:19 thats all Sep 08 18:57:41 should i do with with startactivityforresult... or look at fragments? Sep 08 19:01:30 so ur ui flow is: launch app -> select user -> main function Sep 08 19:01:45 ? Sep 08 19:01:51 nope Sep 08 19:02:04 i have my main app load up.. its a basic camera Sep 08 19:02:17 but it supports different users Sep 08 19:02:30 so i just want a nice way for them to be able to select user 1, 2 ,3 or 4 Sep 08 19:03:05 obvioulsy i want to free up as much room on my camera preview Sep 08 19:03:15 so i want to do this selection somewhere else Sep 08 19:03:28 ciwolsey: hey wolsey. I think the easiest thing would be to have a list of the users you want, and depending on which on you click it'll open up the view with a different variable. Sep 08 19:03:42 you'd probably have to extend your view, but that's not a big deal. Sep 08 19:04:38 hmm Sep 08 19:04:53 really i just want to a fresh space to work in, that can return a string Sep 08 19:05:04 and then i can update everything like the filepath etc Sep 08 19:05:45 hmm or a dialog with user list Sep 08 19:05:53 yeah Sep 08 19:05:59 it doesnt really matter Sep 08 19:06:06 as long as it doesnt affect the underlaying layout Sep 08 19:06:12 or have a list overlaid on top of ur camera view Sep 08 19:06:14 just like a modal dialog would do Sep 08 19:06:35 at least that would do for user selection Sep 08 19:06:44 however im also going to watn to add new users to the list Sep 08 19:06:45 or like the facebook menu, scroll ur normal view to the right and show a menu for settings Sep 08 19:06:56 so maybe a whole new activity would be best Sep 08 19:07:01 just couple thoughts, but ya dialogs sounds easiest :) Sep 08 19:07:20 ok Sep 08 19:07:23 I think it'd be easiest, and then you'd be able to use a back button easily Sep 08 19:07:33 then theres no passing anythingg back and forther either Sep 08 19:07:37 because im still in same activity Sep 08 19:07:38 oh include add new users, activity sounds best ya Sep 08 19:07:50 yeah Sep 08 19:07:58 and nothing is passed back from the add user one Sep 08 19:08:12 *depends on the ui Sep 08 19:08:12 so its just very simple Sep 08 19:08:37 the users are actually just folders Sep 08 19:08:45 and creating a new user is creating a new folder Sep 08 19:08:57 so effecitively the user list is passed back via the filesystem Sep 08 19:09:27 hey lethjakman Sep 08 19:09:39 did you get my message about the problem i had with the missing/hidden files? Sep 08 19:09:49 I don't think so, what'd it say Sep 08 19:09:52 did you resolve it? Sep 08 19:09:57 i rebootted the phone Sep 08 19:10:04 and everything started working perfectly Sep 08 19:10:08 lmao Sep 08 19:10:10 that's awesome Sep 08 19:10:12 so maybe its as you said and i should be unmounting Sep 08 19:10:18 maybe it lost track or got out of sync or something Sep 08 19:10:29 windows tends to do weird things, that's why I try to avoid it. Sep 08 19:10:34 not very comfortable in it Sep 08 19:10:42 just this multiuser support to do now Sep 08 19:10:49 nice! Sep 08 19:10:50 hmm, so it's select user and create new user, sounds like a dialog would do Sep 08 19:10:54 I want to see your final product Sep 08 19:10:54 and then form a video from a set of images Sep 08 19:10:56 and its ready Sep 08 19:11:12 dunno if thats feasible Sep 08 19:11:28 what are you picturing as far as a video goes? Sep 08 19:11:28 creating a video from like 30-60 images.. on the phone? Sep 08 19:11:38 http://developer.android.com/guide/topics/ui/dialogs.html Sep 08 19:12:00 not really sure but i bet im gonna have to scale down what id think of as ideal Sep 08 19:12:06 because the images are like 2mb each Sep 08 19:12:21 i think i will offer a really low res video for the phones display.. Sep 08 19:12:39 or... offer a zip of the images so a user can take them and make a video in premiere or something Sep 08 19:12:54 thanks dvdh Sep 08 19:13:00 there's no way you could display the full resolution of the pictures on the phone anyways Sep 08 19:13:07 how many mp is your camera? Sep 08 19:13:18 a 10mp camera is like billboard sized Sep 08 19:13:21 not entirely sure Sep 08 19:13:26 its a galaxy note Sep 08 19:13:30 its fairly decent Sep 08 19:13:36 my bud's got one of those Sep 08 19:13:40 great phone Sep 08 19:13:44 perhaps just use the code you added for the scaling Sep 08 19:14:15 im really just making an app that competes with an iphone one Sep 08 19:14:18 thats missing from android Sep 08 19:14:20 are you wanting a video to play in the video player, or in the app? Sep 08 19:14:33 because in the app you could just cycle through them, and that'd be pretty easy Sep 08 19:14:39 it looks nice on the ios app.. when its on the phone.. i bet it looks like crap on a large display though :) Sep 08 19:14:41 the problem you were having before was because of the matrix Sep 08 19:14:55 ah Sep 08 19:15:06 i still have a todo in there which says "understand this" Sep 08 19:15:11 lol Sep 08 19:15:21 do matrixes require the image to be duplicated lots or something? Sep 08 19:15:22 all it does is scale it down 70% Sep 08 19:15:32 what is it about that stuff which causes so much memory use? Sep 08 19:15:44 80% now :D Sep 08 19:15:45 http://www.khanacademy.org/math/algebra/algebra-matrices/v/matrix-multiplication--part-1 Sep 08 19:15:50 lol that works too Sep 08 19:16:35 ohh, video Sep 08 19:16:54 that'll help you understand what a matrix is Sep 08 19:16:57 is the answer to my question in here? or am i just going to end up with a lot of matrix math knowledge i wont use? Sep 08 19:17:05 i kind of understand Sep 08 19:17:08 a little bit of both Sep 08 19:17:11 because ive worked a little with ogl Sep 08 19:17:14 ok Sep 08 19:17:26 it's not going to explain what the code does because it's built into android, but it'll explain why you were getting the OOM Sep 08 19:17:58 ok Sep 08 19:18:02 just part one is enough? Sep 08 19:18:23 yeah Sep 08 19:18:29 you really don't have to watch it, it's just there if you want it Sep 08 19:18:43 im too lazy to code now so this is good Sep 08 19:18:56 lol sounds good Sep 08 19:19:02 khanacademy is incredible Sep 08 19:19:09 hey, do you know anything about listviews wolsey? Sep 08 19:19:15 its the weekend afterall, let my hair down with a good intro to matrices.. party on Sep 08 19:19:32 no but i will soon Sep 08 19:19:33 that's how I feel, I've been reading a book on opengl ES every chance I get Sep 08 19:19:34 i imagine Sep 08 19:19:40 alright Sep 08 19:19:54 I've been trying to solve a problem with mine and haven't been able to find an answer, or someone with the ansewr Sep 08 19:20:03 ok Sep 08 19:20:07 the basics are Sep 08 19:20:18 multiplaying matrices together requires a huge matrice Sep 08 19:20:27 well Sep 08 19:20:36 multiplying two large matrix's together takes a lot of ram Sep 08 19:20:44 or manipulating it in any way Sep 08 19:20:55 well the images are like 2mb each Sep 08 19:21:03 the phone has 1gb memory i think Sep 08 19:22:48 https://www.mathworks.com/matlabcentral/newsreader/view_thread/311995 Sep 08 19:23:16 a matrix 2000 x 2000 x 2000 (of course that has a 3rd layer which makes it MUCH larger) takes up about 60gb of ram according to them Sep 08 19:23:51 oh wow Sep 08 19:24:08 it's just a lot of data to mess with all at once Sep 08 19:24:22 I'm not sure what kind of algorithm you'd use, but you could probably do it in sections Sep 08 19:24:47 what i find odd though Sep 08 19:24:53 is that i have a surfaceview Sep 08 19:24:58 which is my camera preview Sep 08 19:25:07 i can scale that however i like as far as i know Sep 08 19:25:12 but.. ok.. the answer is.. its a preview Sep 08 19:25:13 your camera is 8mp, which is an array of 1000000*1000000 Sep 08 19:25:25 i guess the camera preview does the downscale for me Sep 08 19:25:36 it probably scales it exactly to your screen Sep 08 19:25:45 or to the size of the surface Sep 08 19:25:45 there's a limited number of pixels in your screen Sep 08 19:25:58 MUCH less than what's in your actual picture Sep 08 19:26:08 yeah i get that :) Sep 08 19:26:19 but i was assuming the camera preview was loading the whole picture Sep 08 19:26:27 whereas its actually just what it says it is.. a preview Sep 08 19:26:33 yeah I think so Sep 08 19:26:35 so thats why i can size it as i like Sep 08 19:26:56 anothe thing Sep 08 19:27:03 70% quality.. is hardly major Sep 08 19:27:10 or is it 70% of the screen? Sep 08 19:27:33 you wouldnt think sclaing it to 70% would make any difference Sep 08 19:27:46 i wonder if the quality value is based on the screen size somehow Sep 08 19:27:50 I don't think scaling it down to 50% would really make a difference Sep 08 19:28:03 you could probably scale it down to an exact size based off of your screens width Sep 08 19:28:05 i guess the code factors in the screen size somewhere Sep 08 19:28:10 it'd just take a little more work Sep 08 19:28:45 I've gotta go, my girl's coming over. but I'll see you later. Sep 08 19:28:51 happy coding! Sep 08 19:29:38 can someone help me get a cursor working with contentreoslver Sep 08 19:30:35 * hkhalid does sharingan Sep 08 19:35:25 Greetings Sep 08 19:37:19 I am watching a video in which the instructor sends commands to an android emulator using telnet, how can I achieve the same with my physical device connected to the laptop? Sep 08 19:44:38 sulaiman: look for a tutorial on adb Sep 08 19:45:03 put your phone in debug mode under developer options Sep 08 19:45:19 connect, and google for a tutorial on using adb Sep 08 19:51:25 anyone seen this? https://play.google.com/store/apps/details?id=com.aide.ui&hl=en Sep 08 19:51:31 seems pretty awesome Sep 08 19:53:55 thanks ciwolsey Sep 08 19:54:01 np Sep 08 20:01:28 hey, if I want a custom button with my own drawable states and text on it Sep 08 20:01:34 I can do that with a Button right? Sep 08 20:01:45 what do i set the drawable to? android:background? Sep 08 20:04:22 Yes Sep 08 20:12:09 SimonVT: so I did that, and I have 2 items in my selector for that drawable Sep 08 20:12:18 the first item has the android:state_pressed=true set Sep 08 20:12:26 the second item doesn't have anything set Sep 08 20:12:36 but the Button is showing the drawable for state_pressed by default Sep 08 20:12:42 and clicking it doesn't change the state Sep 08 20:19:33 how to calculate how many time (in seconds) gone since 09:00 today? Sep 08 20:23:38 fubbi: maybe here http://stackoverflow.com/questions/1970239/in-java-how-do-i-get-the-difference-in-seconds-between-2-dates Sep 08 20:28:51 Is it possible to authorize Facebook via facebook-android-sdk without using an activity? (Facebook::authorize requires parameter Activity) Sep 08 20:33:07 im trying to run a sample application from eclipse for android on my galaxy s2 phone, but it gets stuck on "Starting activity com.example.android.snake.Snake on device 0019041f77c27e" Sep 08 20:33:19 it was working 2 months back when i last tried it Sep 08 20:35:38 the phone is connected through usb, and usb debugging is enabled Sep 08 20:35:54 i tried running multiple samples but they all stop at that step Sep 08 20:38:29 Xix19: try rebooting the phone ? Sep 08 20:39:35 what do you call it when you press the button that minimizes the app Sep 08 20:39:53 the (| symbol Sep 08 20:40:56 like a context change, a task switch, minimizing Sep 08 20:40:59 what's the term for this Sep 08 20:42:40 g00s: I just did that 30 mins ago Sep 08 20:42:47 g00s: same thing ha[[ens Sep 08 20:42:50 happens Sep 08 20:43:50 g00s: eclipse does say these 2 warning lines in red in the Console: "WARNING: Application does not specify an API level requirement!" Sep 08 20:43:56 and "Device API version is 15 (Android 4.0.3)" Sep 08 20:44:36 the sample is made for android 2.3.3, could this be a problem? Sep 08 20:45:15 i dont think so ... Sep 08 20:45:53 maybe the logs of the phone will say something Sep 08 20:46:35 g00s: where do i find "the logs on the phone" ? Sep 08 20:46:45 logcat ? Sep 08 20:47:32 maybe the package manager will say something Sep 08 20:48:04 adb -d logcat Sep 08 20:48:49 g00s: logcat is giving a lot of messages continuously, here are some in red: Sep 08 20:48:52 09-08 23:48:10.741: E/DataRouter(1828): usb connection is true Sep 08 20:48:59 09-08 23:48:14.746: E/DataRouter(1828): DSR is ON. Don't send DTR ON. Sep 08 20:49:09 these two repeat every 10 seconds or so Sep 08 20:49:16 custom rom ? Sep 08 20:49:26 g00s: don't think so Sep 08 20:49:57 was the app previously installed ? Sep 08 20:51:54 g00s: the same happens with multiple samples I create Sep 08 20:52:16 Hello Sep 08 20:52:18 g00s: I have run programs this way on my phone before, but the samples are new Sep 08 20:52:46 sup Sep 08 20:52:46 g00s: also the app doesn't show up on the phone's installed programs list Sep 08 20:52:49 I'm working on something where I need to write things on incoming phone call screen layout Sep 08 20:53:09 the best thing I managed to do is write a toast and customize it a little bit Sep 08 20:53:22 does someone have a better idea? Sep 08 20:53:24 is it normal practice to release an app/game on google play, as BETA? Sep 08 20:53:52 my problem is if i minimize my app it doesnt restart Sep 08 20:53:58 but i cant even figure out the name for minimize Sep 08 20:54:02 so i cant find what to search for Sep 08 20:55:28 it probably doesnt even have a name, like prince Sep 08 20:55:40 i have to search for the symbol "(|" ... makes sense, android Sep 08 21:05:43 http://paste.org/53860 Sep 08 21:05:51 anyone know why this code crashes my app? Sep 08 21:05:59 its the onClick of a button Sep 08 21:06:36 what is the crash Sep 08 21:08:19 can you do dialog.setContextView? Sep 08 21:08:26 it should happen in the oncreate of the dialog Sep 08 21:08:40 hmm Sep 08 21:09:04 isnt that whats passed into the constructor? Sep 08 21:09:11 whats the actual error? Sep 08 21:09:20 constructor has the context passed into it Sep 08 21:09:20 theres a lot Sep 08 21:09:24 pastebing Sep 08 21:09:29 *bin Sep 08 21:09:33 i hate eclipse Sep 08 21:09:43 can i somehow copy from the error log? Sep 08 21:09:50 top right of logcat Sep 08 21:09:57 4th button from right Sep 08 21:11:28 http://paste.org/53862 Sep 08 21:11:36 thanks for that. been wondering how to do that Sep 08 21:12:11 looks like an illegal state exception Sep 08 21:29:38 Has anyone added the Actionbarsherlock to their eclipse for API 8? Sep 08 21:32:37 What does "for API 8" mean Sep 08 21:32:55 Build against API8? You can't do that Sep 08 21:46:48 http://pastebin.com/mGSeYGkc http://pastebin.com/B0tNVL2Z I am unable to get the text that is in the useing this code. Any idea what I might be missing? thank you Sep 08 21:51:03 I read the google tutorials, is there a more advanced book i should read? Sep 08 21:51:39 there we go! Sep 08 21:51:45 stupid web browser XD Sep 08 21:51:55 Komak57: what? Sep 08 21:52:17 the web browser tab locked up when i tried to get a list of channels. closing the tab and my nick was locked... Sep 08 21:52:35 what os are you using? Sep 08 21:52:47 server 08 R2 Sep 08 21:52:49 why dont you just use a nice desktop client Sep 08 21:53:03 I'm running mirc atm, ty Sep 08 21:54:32 What are you guys working on right now? I am out of ideas on what to do Sep 08 21:54:38 Now, onto business. I'm surfing around trying to find a good HTTPClient method I can use to login to a web page using POST data and cookies. This is proving troublesome =.= Sep 08 21:55:21 what have you tried so far? Sep 08 21:57:23 http://pastebin.com/ppUniJA7 Sep 08 21:58:00 few commented out lines trying other methods. There seems to be 2 login pages. Each appear to be the same as the form login link? Not sure, maybe i'm supposed to be logging in on a different link? Sep 08 21:59:06 I sent the data to my own php website and I'm getting the post data properly. Last I was looking into it, it was a problem with cookies? Sep 08 22:03:23 how to i return a simple string from an activity started with startActivityForResult() ? Sep 08 22:04:32 In eclipse, everytime i create a new project it creates a layout with a relativelayout by default. Is there a way to change it to a LinearLayout by default Sep 08 22:04:33 ? Sep 08 22:07:47 I have no earthly idea XD Sep 08 22:08:08 mine's always been LinearLayout default Sep 08 22:13:52 ok im using to exit my app android.os.Process.killProcess(android.os.Process.myPid()); either when uses clicks [quit] or onPause Sep 08 22:13:59 how naughty am i on a scale of 1 to 10? Sep 08 22:24:19 11 Sep 08 22:24:32 43? Sep 08 22:24:38 69 Sep 08 22:24:47 96! Sep 08 22:28:43 found code snippets for cookies, but its not solving my problem Sep 08 22:29:01 it seems i might have to make a rather complicated webpage to test the intricacies of this process =.= Sep 08 22:47:17 went a bit more complex, no cookies captured on this site. maybe it's an issue with weblink forwarding? http://pastebin.com/1MFHEzFq Sep 08 23:42:22 Does anyone know where I can find the action bar icons for 4.0? They used to be on the design website but now that link's broken. Sep 08 23:43:34 hello? Sep 08 23:46:28 Which link, jmgrosen? Sep 08 23:46:31 The link is working for me. Sep 08 23:47:04 http://developer.android.com/downloads/design/Android_Design_Icons_20120814.zip is what's in the "Action Bar Icon Pack" download section. Sep 08 23:59:21 my camera preview stops when i put phone in standby.. i open in in onResume() and release it in onClose.. it works fine other than it doesnt start the camera preview Sep 08 23:59:30 even if i put in startPreview() in on resume Sep 09 00:17:20 I am trying to send byte data, an image, through sockets, but it gets converted to UTF8 and garbles up the image, what should I change this to to use the raw data but still buffered? BufferedWriter wr = new BufferedWriter(new OutputStreamWriter(sock.getOutputStream(), "UTF-8")); Sep 09 00:18:19 maybe 8859-1 or ascii Sep 09 00:18:26 i'm just guessing though Sep 09 00:18:40 better than being wrong for 12 hrs.. let's give it a try Sep 09 00:18:59 i'm really rusty - if you are using binary data, should you be using writer ? Sep 09 00:19:24 I don't know... that code came from another persons project Sep 09 00:19:32 but they were doing the same thing, sending an image Sep 09 00:20:16 yeah, i think streams are for binary data Sep 09 00:20:50 so, US-ASCII was half way okay Sep 09 00:20:56 anyone know of a faster way to capture image data from the camera, rather than using takePicture()? Sep 09 00:21:14 TakePictureFaster() :) Sep 09 00:21:14 it finally kept it as bytes, but.. it's only ascii, so I have actual quesiton marks rather than some hex byte Sep 09 00:21:26 basically, i'd like to save the auto-focused surfaceview Sep 09 00:21:28 Noxz: avoid writers, use raw streams Sep 09 00:21:46 so, what about buffering? Sep 09 00:23:06 eh, I doubt buffering matters much Sep 09 00:23:11 let's give it a try Sep 09 00:23:17 well, there is BufferedOutputStream :P Sep 09 00:42:36 Anyone know why my app is crashing when I use the back button to leave my app? also it doesnt restart the preview after i put the phone in standby Sep 09 00:42:39 http://paste.org/53863 Sep 09 00:43:13 its driving me crazy Sep 09 00:43:57 what does logcat say? Sep 09 00:44:07 ill paste it Sep 09 00:46:01 http://paste.org/53863 Sep 09 00:46:10 same code, but i put the logcat at the bottom Sep 09 00:46:49 http://paste.org/53864 Sep 09 00:46:52 sorry :S Sep 09 00:46:53 that one Sep 09 00:48:56 what are the major forums for getting help on android dev? Sep 09 01:01:19 Why is the emulator so slow??? Sep 09 01:01:59 Because it's an emulator Sep 09 01:10:05 What its the difference between a process and a thread? Sep 09 01:10:29 danixn: threads normaly share ram, so they can share variables Sep 09 01:10:38 processes dont share memory Sep 09 01:11:36 When a run a simple hello world program with just one activity, i am creating one process and one thread for the UI? Sep 09 01:11:58 no clue, dont know about android dev that much yet Sep 09 01:12:11 but every process always starts with 1 thread inside it Sep 09 01:13:22 So everytime i need to do some dara intesive computation, i should create a new thread? Sep 09 01:13:36 yeah, threads are usualy your best option Sep 09 01:13:55 processes are more expensive, and its more complex to get the data back Sep 09 01:15:09 Is there a limit on how many threads i can create? Sep 09 01:18:19 How can i check the number of threads and processes i am running, like in eclipse? Sep 09 01:28:35 danixn: the limit on number of threads is imposed by Dalvik, it depends on available resources at runtime Sep 09 01:28:45 spawning a new thread will fail if Dalvik says "no" Sep 09 01:29:41 grothendieck: there's also limit of OS threads Sep 09 01:31:05 So i am reading the docs and it says that one rule is to "not access the Android UI toolkit from outside the UI thread", i undestand that i shouldn't block the main thread but what does this rule mean? Sep 09 01:32:02 don't do the any directly ui related actions in any other thread than the ui thread Sep 09 01:32:57 meaning that if you want to update the ui from another thread, you can call i.e. activity.runOnUiThread() Sep 09 01:37:40 i have futzd over trying to get sqlite to work with a query within a query Sep 09 01:37:57 SELECT TT.col1 FROM (SELECT T.col1 FROM test AS T WHERE T.col > 3) AS TT Sep 09 01:38:43 were trying to use a SELECT within FROM () AS TT our test table Sep 09 01:39:18 it can be done with mysql in phpmyadmin Sep 09 01:39:53 and we have used the app SQLnote to exec our test Sep 09 01:39:55 and it worked Sep 09 01:40:07 but cannot seem to recreate the query successfully Sep 09 01:44:02 Could really use some expert direction with this issue Sep 09 01:44:18 the following is the test statements used. Sep 09 01:44:18 http://pastebin.com/pN9mF15C Sep 09 01:50:23 wurde: I recall sqlite supporting nested queries; but I've never used them on android. Sep 09 01:51:13 What does View.post(runnable Sep 09 01:51:18 ) do exactly? Sep 09 01:51:42 maslen: ty Sep 09 01:54:29 maslen: solved Sep 09 01:54:41 it was an issue with mapping the result Sep 09 01:55:17 simply using "AS Result" solved it when populating a list Sep 09 02:03:22 I'm trying to connect a ASUS Transformer TF300T to my Windows machine to develop on it Sep 09 02:03:42 I've connected it via USB (just using a generic male-to-male USB connector) and I've installed the ASUS Sync (which contains the Android USB driver) Sep 09 02:04:06 but it won't show up on my computer and the tablet doesn't seem to be activating it's USB port (the USB connector displays a blue light at each connected end) Sep 09 02:04:43 the layout editor for the activity views in eclipse is annoying me. is there a way to move one control without having all of them jump around? Sep 09 02:05:24 Is there something I need to do specifically to get the Android device to show up? Sep 09 02:10:53 haha oh derp Sep 09 02:11:12 turns out the power adapter is just a usb plug and I connect that into the computer Sep 09 02:28:33 I'm a noob trying to build the contacts app in eclipse. I got the contact app source using git and imported the source as a new project. I get a number of errors when building. It seems like I'm missing some packages that are not in the android.jar, like com.google.* Sep 09 02:28:49 where do I find these depencies Sep 09 02:29:02 *dependicies Sep 09 02:30:17 is there any way to turn off the weird constraints in the eclipse UI editor? Sep 09 02:30:59 it pisses me off i move one thing and everything goes wonky Sep 09 02:32:52 tave: AFAIK (most of?) the AOSP apps can't be built stand-alone Sep 09 02:33:47 oh =( that sucks. I was trying to see how the contact app add new contact is layout and works. Sep 09 02:40:02 hi all Sep 09 02:40:38 is there a way to trigger an app everytime after a call finishes? i want to do client side credit usage tracking Sep 09 02:41:02 i ask because my telco has a web interface that shows tracking, but it is always delayed by 48 hrs Sep 09 02:41:28 i.e. it shows information that was the latest but 48 hrs ago ! Sep 09 02:41:39 i want to track credit usage properly from my own phone Sep 09 02:44:32 azbyin: you probably want http://developer.android.com/reference/android/telephony/TelephonyManager.html#listen(android.telephony.PhoneStateListener, int) Sep 09 02:49:01 seriously, this can't be normal. i move my button, and the text edit moves. then, i reposition the text edit, and the button moves Sep 09 02:49:46 talking to myself in the void ain't grand neither Sep 09 02:50:44 is the contact and people app the same thing, justed rename? Sep 09 02:55:27 *just Sep 09 02:56:54 ughf... stupid sockets... remove the response sectoin for a little of testing, then when you try it out again, it doesnt work, at all Sep 09 02:59:21 does it have something to do with OutputStreamWriter vs BufferedOutputStream (which is what I am using) with sock.getOutputStream() ?? Sep 09 02:59:22 I get the input stream via BufferedReader rd = new BufferedReader(new InputStreamReader(sock.getInputStream()));... and it works fine on other requests, but not the one that is important **** ENDING LOGGING AT Sun Sep 09 02:59:58 2012