**** BEGIN LOGGING AT Wed Jul 16 02:59:59 2014 Jul 16 03:10:11 dcope, that looks like programmer error, not proguard... Jul 16 03:10:34 unless your tables are created by irm Jul 16 03:10:35 orm Jul 16 03:10:59 probably because you use + versions and the dependencies changed on you Jul 16 03:11:14 + versions are hell, they should just about never be used Jul 16 03:12:42 solved it Jul 16 03:12:52 Can't set the gridview item's background to the selector Jul 16 03:12:59 instead, set listSelector on the gridview Jul 16 03:13:33 canvs2321 Sorry if I frustrated you earlier. But please don't be so hasty to jump to insults or ignore what is being said Jul 16 03:14:37 Fenny, stuff like lvl is always obvious even with proguard Jul 16 03:16:23 pfn: "+ versions"? Jul 16 03:16:48 what do you mean? and yes, the tables are made by the ORM and it has worked fine for 7 past versions until i upgraded android studio and started dicking around with proguard Jul 16 03:19:41 dcope, library versions, your compile dependencies Jul 16 03:21:19 sounds like it's because you dicked around with proguard then Jul 16 03:23:38 i work for a large company and we need a way to obfuscate our source code to protect upcoming features that we don't want people to know about Jul 16 03:24:05 don't include them in release builds? Jul 16 03:24:06 proguard Jul 16 03:24:13 proguard does its best, but there are certain things i doubt it can obfuscate. for example, the hardcoded strings for parsing json Jul 16 03:24:13 or that Jul 16 03:25:00 whomp_ does dexguard do it ? Jul 16 03:25:08 whomp_: separate the code into different class, use some build system magic to remove them from building release versions, use separate git/hg/whatever branches... Jul 16 03:25:22 obfuscators IMO won't help much Jul 16 03:25:35 branches++ Jul 16 03:25:39 there are like 20 obfuscators out there, if you work for a large company, surely they can poney up some $$$ Jul 16 03:26:50 g00s, how could you obfuscate a string used for json parsing? Jul 16 03:26:51 obfuscation will never hide strings Jul 16 03:27:12 whomp_ https://www.saikoa.com/dexguard Jul 16 03:27:16 well, you can, but it's dumb and will destroy performance Jul 16 03:27:23 using branches is an interesting way to do it, but the features are too large for that kind of merging Jul 16 03:27:59 sounds like bad design Jul 16 03:28:42 why? not like each feature gets its own file :) Jul 16 03:28:46 pfn: lol, i didn't mess with it until the signed app started crashing Jul 16 03:28:47 -_- Jul 16 03:28:52 rather branch off development and only release bugfixes Jul 16 03:29:04 cherry pick into dev Jul 16 03:29:13 cherry picking has its own issues Jul 16 03:29:23 when done promote dev to release Jul 16 03:29:49 no merging necessary Jul 16 03:35:36 pfn and g00s, well, personally i like merging too, but it's a big group decision and i can't turn the tide alone Jul 16 03:36:01 dexguard looks great tho ty Jul 16 03:36:11 yw Jul 16 03:39:29 I wonder if I could get a free license to dexguard for merging into my plugin Jul 16 04:13:02 i was reading about android sensors, and it looks like you can get the orientation sensor. however, i don't want to deal with a raw (x, y, z) coordinate, i just want to know if the phone is in an orientation where the device would rotate sideways. however, the phone wouldn't rotate sideways. any ideas? Jul 16 04:18:15 ladies! Jul 16 04:18:57 hey ron_frown ! Jul 16 04:19:13 g00s: how the fuck is it going Jul 16 04:38:57 do touch events like onTouchIntercepted get called on the main thread? Jul 16 04:39:08 also, sensor events Jul 16 04:40:54 whomp_: yes, for onTouch stuff. For sensor events, if my memory serves, its the main thread by default, but there's a way to specify a different thread/handler. Jul 16 04:41:06 JesusFreke, ty perfect :) Jul 16 04:41:17 been a while since I looked at it though. might be misremembering :) Jul 16 04:48:25 android fucking sucks Jul 16 04:48:29 HAHAHA Jul 16 04:49:01 no but seriously... google really seems like they are almost closing a fair bit of android source Jul 16 04:49:43 wheres god damn wearables source Jul 16 04:50:57 maybe you get it once you sign some stuff Jul 16 04:51:06 or not Jul 16 04:58:41 While opening gmail app I see an icon on the left top corner(a three small horizontal line). When when clicked gets another page on the existing page and agains swipes once viewed. What is that icon called? Jul 16 05:00:11 ah that is navigation icon Jul 16 05:03:24 hamburger Jul 16 05:04:50 <_Auron_> JesusFreke: http://i.imgur.com/ruR73h6h.jpg Jul 16 05:04:59 ron_frown i had a hamburger today, cheddar and bacon :) Jul 16 05:05:24 cool cool Jul 16 05:07:32 _Auron_: haha, nice. that ship brings back memories :) Jul 16 05:07:48 g00s: wanted to inform you. Yesterday I was able to see my app on the device. Jul 16 05:07:54 <_Auron_> yup, it's the second form of the ship now Jul 16 05:07:58 g00s: I got the driver after a long search Jul 16 05:08:12 niru nice :) Jul 16 05:08:22 g00s: thanks for the help extended Jul 16 05:08:25 :) Jul 16 05:08:34 <_Auron_> and it's firing one of the 5 guns in that screenshot with curved bullets Jul 16 05:09:54 <_Auron_> I need sleep though Jul 16 05:22:04 Whenever I start the ADT I am getting the error pasted here http://pastebin.com/Thw471CR Jul 16 05:22:51 Though I have SDK tools 22 and SKD platform 19 Jul 16 05:23:22 should that be a matter of concern? Jul 16 06:08:22 I'd like to test my app in a memory constrain environment, is there any way to change the heap assigned to new processes? (similar to the 'am display-size' command) Jul 16 06:10:45 jush: I think no body is online now :( Jul 16 06:21:30 ok, I managed to change it using 'VM Heap Tool' app for root Jul 16 06:37:41 android studio seems to be ignoring my minSdkVersion, whats up with that Jul 16 06:43:18 DAN! Jul 16 07:20:30 Hello, using a text shadow on a paint, what's the best way to blur the shadow? Jul 16 07:20:42 *set up an aniamted blurring effect Jul 16 07:23:18 Can anyone help me in setting up Git in ADT Jul 16 07:23:53 niru what's your os? Jul 16 07:24:09 lasserix_: I am using windows 7 Jul 16 07:24:30 niru: so i do too. i installed cygwin which is a unix bash emulator, very handy. Jul 16 07:24:48 lasserix_: even I have cygwin Jul 16 07:24:55 lasserix_: so how to proceed Jul 16 07:24:56 you can just make sure git is checked to be installed (you can also include most of a tool chain to compile c/android/etc) when you install it Jul 16 07:25:03 My adt has a git perspective Jul 16 07:25:07 oh so make sure git is installed Jul 16 07:25:14 niru: don't rely on gooey git Jul 16 07:25:23 lasserix_: installed where? In os or in adt? Jul 16 07:25:24 it's like a thousand times easier to do most control from cmd line Jul 16 07:25:28 in cygwin Jul 16 07:25:36 rerun the installer, you see a list of packages to install Jul 16 07:25:43 make sure dev->git is checked Jul 16 07:25:56 then you can, from your cygwin prompt, run any git command Jul 16 07:25:57 lasserix_: ah ok. Jul 16 07:26:18 get to know basic git commands, you'll want to use 'git init' (call from folder where you want to start a repo) Jul 16 07:26:29 lasserix_: So whatever I develop in my adt for android that will use the git installed through cygwin? Jul 16 07:26:30 to start a fresh repo, or in a folder you can do git clone Jul 16 07:26:54 niru are you using an ide? Jul 16 07:27:00 eg eclipse or android studio? Jul 16 07:27:37 lasserix_: I have adt(android developeer tool) Jul 16 07:27:42 afaik if you are using git git will control what's present, so simply pressing refresh in your project should reflect these changes Jul 16 07:28:00 oh Jul 16 07:28:01 yeah Jul 16 07:28:04 so it'll be automatic Jul 16 07:28:18 i don't believe you need egit or comes by default Jul 16 07:28:39 if you right click you'll see Team in context menu, that's one way to manipulate git from your ADT/eclipse ide Jul 16 07:28:47 you can also show View->Git Jul 16 07:28:56 but like i said it's far easier to manipulate from cmd line Jul 16 07:28:58 lasserix_: yes egit Jul 16 07:29:09 yeah so go one level up from your workspace folder Jul 16 07:29:14 in cygwin and type git init Jul 16 07:29:17 then git add . Jul 16 07:29:27 then git commit -a -m "My first commit" Jul 16 07:29:35 and that'll start you done the path Jul 16 07:30:42 lasserix_: ok let me try now Jul 16 07:31:31 other handy commands, "git status" (or "git status -u") to see what you are going to commit, what's being tracked, whats not being tracked: to add something not tracked, use "git add " or "git add ." to add all things Jul 16 07:32:26 hello does someone have any experience with android bluetooth? Jul 16 07:32:27 git branch will show you branches, git checkout will switch to a branch, git checkout -b will switch to a new branch, which is "floating" ie you must do git commit at some point to make it a new branch Jul 16 07:32:57 i would really appreciate if some good guy looks the code: http://pastebin.com/YhkwhR3T Jul 16 07:33:26 it should connect to the device, but it doesn't work Jul 16 07:33:43 sinbad did you add permission? Jul 16 07:33:48 yes Jul 16 07:34:28 the app has a listview Jul 16 07:34:48 when i click on the device found in listview it crashes Jul 16 07:35:23 can someone add and modify the code so it would work? Jul 16 07:35:29 thanks a lot Jul 16 07:37:12 lasserix_: I have one doubt on cygwin. At first suppose i installed 3 packages. Tomorrow I want something else so I open cygwin setup and install rest 2 packages. So will my previous packages get removed in cygwin ? Jul 16 07:37:23 no Jul 16 07:37:35 think of the installer as your UI package installer Jul 16 07:37:42 lasserix_: so they are actually going to get appended with the older ones? Jul 16 07:37:46 yeah Jul 16 07:37:52 lasserix_: thanks:) Jul 16 07:37:53 unless you uncheck Jul 16 07:38:01 np Jul 16 07:38:04 lasserix_: yes.. Jul 16 07:38:19 I installed git Jul 16 07:39:24 Is there someway to change the minSdkVersion in Android Studio? It seems to require a minimum of Version 20/L Jul 16 07:39:29 no matter what I do Jul 16 07:46:14 lasserix_: I am in /cygdrive/c/Users/giso3/git/OFSDP_GIS_Repository path in my system. And giving git add /cygdrive/c/Users/giso3/experiment/Camera_Activity Jul 16 07:46:31 It says fatal: '/cygdrive/c/Users/giso3/experiment/Camera_Activity' is outside repository Jul 16 07:46:41 yeah Jul 16 07:46:51 so Jul 16 07:46:53 Should I go inside experiment folder and give that command? Jul 16 07:46:55 find your .gitignore Jul 16 07:47:00 no Jul 16 07:47:07 so whereever you call git init or git clone Jul 16 07:47:10 that is the root folder, ie Jul 16 07:47:19 only files and folders within that directory are eglible Jul 16 07:47:21 to part of the repo Jul 16 07:47:52 /cygdrive/c/Users/giso3 --> /git does not include --> /experiement Jul 16 07:48:39 .gitingnore is there inside OFSDP_GIS_Repository Jul 16 07:48:44 usally i do folders like .... /main-folder-name/ (git init goes here, with external files, library sources, backups, builds etc) -> /source/workspacce (code goes here) Jul 16 07:48:52 yeah Jul 16 07:49:09 so /cygdrive/c/Users/giso3/experiment/Camera_Activity is not in that folder Jul 16 07:50:12 lasserix_: ok so I will go inside /cygdrive/c/Users/giso3/experiment/Camera_Activity and give git init Jul 16 07:50:28 then .gitignore will come here and then I can add right? Jul 16 07:51:23 no Jul 16 07:51:31 you're missing the point Jul 16 07:51:40 a repo has a root folder Jul 16 07:51:52 everything that is part of the repo has to be in the folder, or a subfolder of that folder Jul 16 07:51:57 it cannot be outside of that folder Jul 16 07:52:39 does that make any sense? Jul 16 07:52:47 lasserix_: yes Jul 16 07:53:24 If I enable action bar home button actionBar.setDisplayHomeAsUpEnabled(true). Can I intercept this action for cleanup before leaving the activity? Jul 16 07:53:40 Can't find any way to do that Jul 16 07:53:46 so ive seen a lot of different styles, but my own preference is to not label folders git or repo or anything, because git is a addon to the filespace, ie it's part of it already, so anytime you make a new workspace folder in ecipse, you can just go one folder above it, and do a git init and then that workspace will now have its own repo Jul 16 07:55:05 I'll just use onPause() never mind the question :-) Jul 16 07:55:24 lasserix_: did you look the code? It has 200 lines, but most code is just copied from android support page. Jul 16 07:55:32 what did I do wrong? Jul 16 07:55:51 sorry haven't done bluetooth stuff yet, if g00s is around you might bug him Jul 16 07:56:07 also you didn't say if it crashed or what Jul 16 07:56:21 yes it crashes Jul 16 07:56:28 oh Jul 16 07:56:33 but you might have to register that reciever Jul 16 07:56:50 doh n, Jul 16 07:56:53 nm Jul 16 07:57:07 so what's the crash... ? Jul 16 07:57:57 it crashes when I click on bluetoothdevice in listview Jul 16 07:58:21 yes Jul 16 07:58:24 whats the stack trace Jul 16 07:58:47 i haven't print log Jul 16 07:58:57 open logcat Jul 16 07:59:05 and copy the stack trace of the crash Jul 16 07:59:18 in fact, if you do that you'll probably be able to figure out Jul 16 07:59:33 should I add log.i command for stacktrace or is ok? Jul 16 07:59:39 no Jul 16 07:59:44 just open log cat Jul 16 07:59:47 and crash your app Jul 16 07:59:53 look for your app tag name in the logcat Jul 16 08:00:04 it'll be log level error / (usually red) Jul 16 08:00:13 Can anyone help me with Android Studio? Jul 16 08:00:15 ok thank you Jul 16 08:01:30 lasserix_: I am commited some files. How can i check them now in cygwin Jul 16 08:01:50 lasserix_: it shows something like this create mode 100755 src/com/example/camera_activity/CameraMainActivity.java Jul 16 08:01:52 niru sorry i dont know what that means Jul 16 08:01:55 yeah Jul 16 08:01:59 that means it's been added to the repo Jul 16 08:02:04 you should read up on what git does Jul 16 08:02:08 but you can, for instance, Jul 16 08:02:10 type git log Jul 16 08:02:14 to see history of commits Jul 16 08:02:34 *i dont know what you mean by "check them in cygwin" Jul 16 08:02:56 lasserix_: yes that git log I needed. Jul 16 08:03:54 lasserix_: now is this git in cygwin and the git coming with ADT same? I mean can I see the commited files in GUI Jul 16 08:06:48 git is changing the file system Jul 16 08:06:54 so yes Jul 16 08:07:02 if you notice Jul 16 08:07:07 switching between two branches Jul 16 08:07:10 ie try this Jul 16 08:07:18 git branch -b "test-branch" Jul 16 08:08:07 then git reset --soft HEAD~1 Jul 16 08:08:13 then open up file browser Jul 16 08:08:22 or your files Jul 16 08:08:28 you'll see they changed back one commit Jul 16 08:10:31 lasserix! Jul 16 08:13:15 hey guys Jul 16 08:13:29 lasserix_: ok Jul 16 08:14:55 hello Jul 16 08:15:01 has anyone here used mopub? Jul 16 08:15:14 i tried it, got an error, sent an email to support, got an automated reply Jul 16 08:15:24 seems like no human will talk to me Jul 16 08:15:34 any help please, what can I do? Jul 16 08:17:43 i'll talk to you Jul 16 08:17:47 but i'm next to useless Jul 16 08:17:57 and have my own question(s) Jul 16 08:18:07 i just tried a very basic test ad Jul 16 08:18:12 and I just keep getting errors Jul 16 08:18:28 agamemnus, when I say, I'm next to useless, what I mean is, I've never even heard of mopub Jul 16 08:18:40 so please bear that in mind when you ask questions of me Jul 16 08:18:40 it's an ad platform Jul 16 08:19:12 ok, well then I now know ifinitely more about it than I did before talking to you Jul 16 08:19:22 infinitely too Jul 16 08:19:56 hi all Jul 16 08:20:00 so, do you know anything about android studio Jul 16 08:20:14 i'm using Javascript Jul 16 08:20:15 perhaps you could explain to me why it wants to demand API Level 20 on all my apps Jul 16 08:20:16 so I don't Jul 16 08:20:26 despite whatever i try to tell it Jul 16 08:20:40 Agamemnus, reading the errors will help you solve your problem you know. Jul 16 08:20:49 There are no errors Jul 16 08:20:53 hufflepuff: i tried changing the version of the support libraries to Jul 16 08:20:54 compile 'com.android.support:support-v4:19.1.0' Jul 16 08:20:55 Just an error code on their site Jul 16 08:21:03 instead of 19.+ or something Jul 16 08:21:04 and an email Jul 16 08:21:12 avwave, wait, what? Jul 16 08:21:14 an error hash I should say Jul 16 08:21:35 could you elaborate Jul 16 08:21:42 so it is an error but not an error in the traditional sense Jul 16 08:22:20 here is the log from log viewer on the phone: http://pastebin.com/JG2anvYa Jul 16 08:22:34 what is wrong with listview and bluetooth? Jul 16 08:22:44 hufflepuff: can you post your build.gradle ? Jul 16 08:23:36 sure Jul 16 08:23:38 hang on Jul 16 08:23:42 i screwed it up though Jul 16 08:25:15 In my project i want call a php script for insert a record on a db: http://pastebin.com/vdyfKkJT but i have an exception when i run my app.. if i run script from web it work correclty! Jul 16 08:25:17 why? Jul 16 08:27:59 it is written correclty my httppost? Jul 16 08:28:29 "Woops, there was a problem with the page. Try refreshing it. If this keeps happening, please email us at support@mopub.com." Jul 16 08:28:34 This is the error that I get. Jul 16 08:28:45 it is ridiculous Jul 16 08:29:20 newbie|2, read the exception. Fix the issue. Jul 16 08:29:32 i read it Jul 16 08:30:00 Mavrik: any ideas? Jul 16 08:30:08 I tried logging out and in, nothing Jul 16 08:30:26 wait Jul 16 08:30:31 mavrik try answering the question posted on slo-tech Jul 16 08:30:32 actually i can't log out Jul 16 08:30:36 CSRF verification failed. Request aborted. Jul 16 08:31:23 Mavrik: look my code:http://pastebin.com/vdyfKkJT Jul 16 08:31:24 gonna try a diff browser Jul 16 08:31:34 Guys, I got a process, that has to be running 100% of the time, it can be terminated by itself and the system. But it must be bulletproof against maleware, how can I do this other than service watching service (whilst this might not be the best method, since you can kill both processes) Jul 16 08:32:01 07-16 10:31:40.358: E/log_tag(32405): Errore in Insert Record android.os.NetworkOnMainThreadException Jul 16 08:32:41 same error Jul 16 08:33:03 HttpPost httppost = new HttpPost("http://photogiuseppe.altervista.org/insert_record.php?razza="+bundle.getString("Razza")+"&nome="+bundle.getString("Nome")+"&sesso="+Sex+"&chip="+bundle.getString("Chip")+"&nato="+bundle.getString("Anni")+"&peso="+bundle.getString("Peso")+"&altezza="+bundle.getString("Altezza")+"&informazioni="+bundle.getString("Tips")+"&mobile="+bundle.getString("Mobile")+"&email="+bundle.getString("E-mail")); Jul 16 08:33:03 HttpResponse response = httpclient.execute(httppost); Jul 16 08:33:03 Jul 16 08:33:03 } Jul 16 08:33:03 catch(Exception e){ Jul 16 08:33:04 Log.e("log_tag", "Errore in Insert Record "+e.toString()); Jul 16 08:33:04 } Jul 16 08:33:08 newbie|2, dude. Jul 16 08:33:13 why i have error? Jul 16 08:33:16 newbie|2, learn to use a pastebin and DO NOT SPAM THIS CHANNEL Jul 16 08:33:21 ok Jul 16 08:33:22 newbie|2, second, the error is VERY CLEAR Jul 16 08:33:40 which is? Jul 16 08:33:42 you're doing network requests on main thread. Don't. The documentation on developer.android.com shows you how to make a network request on background thread using AsyncTask. Jul 16 08:34:30 hello.. that altervista address looks familiar :) Jul 16 08:35:20 I hope you're still sanitizing those inputs, and not letting sql injections happen ;) Jul 16 08:35:45 Mavrik: ahhh Jul 16 08:35:49 i've already doing Jul 16 08:35:56 ok thanks Jul 16 08:35:56 FFS Jul 16 08:36:31 never mind, looks like I need to keep the bottom part blank... Jul 16 08:36:31 Yatekii, without having system signature... there's nothing much you can do really Jul 16 08:37:30 Hello everyone! Can I ask some question, about GCM for android? Jul 16 08:37:58 garry_dvaraza: just ask :) Jul 16 08:39:42 when is g00s available on this channel? Jul 16 08:40:20 <[maTa]> i have simpleadapter with two textviews and two buttons...when i scrolling listview i loose button visibility...how to avoid that? Jul 16 08:41:03 Mavrik: humm can I somehow achieve that system signature? Because I really need that for security reasons ... I know why an unkillable process is bad, which is why I said system can be able to control it, since I do not produce malicious software :) Jul 16 08:41:32 Yatekii, whole point of system signature is that only pre-loaded manufacturer apps have it Jul 16 08:41:44 that's the only real way to defend from other apps Jul 16 08:44:19 Mavrik: ok, that's sad :( Jul 16 08:44:31 but thks for the answer! Jul 16 08:45:11 Yatekii, also check the administrative APIs, maybe those have something for you Jul 16 08:45:17 sindbad: don't bother g00s you're problem is listview not bluetooth, did you ever figure out how to copy the stack trace? Jul 16 08:46:47 lasserix_: this is the stacktrace http://pastebin.com/JG2anvYa Jul 16 08:47:13 Yatekii: START_STICKY is what you want, with broadcast reciever starting in on boot Jul 16 08:47:51 don't try and go fucking with the framework, unless you are working on a project for intelligency agency or something, in which case you should be forking your own android Jul 16 08:48:42 sinbad look for the exception Jul 16 08:48:51 lasserix_: is there hihack option in git when someone has checkout the file? Jul 16 08:49:17 that's not the stacktrace that's just a snapshot of your logcat, find the what should be colored red and it will have a message with the keyword 'exception' somewhere Jul 16 08:49:26 hihack? Jul 16 08:51:00 Usually when some one checkout a file. Still others can hihack the file and make changes. And once the file is checked in .The person can checkout and add his changes. This saves time Jul 16 08:51:14 lasserix_: I had that in IBM clearcase Jul 16 08:51:32 what is this word 'hihack'? Jul 16 08:51:41 lasserix_: there is no exception, i have log viewer installed on the phone, and this is what I get. Jul 16 08:51:56 sinbad there has got to be more Jul 16 08:52:05 lasserix_: that is the term IBM uses :) Jul 16 08:52:09 oh Jul 16 08:52:43 niru: umm i believe what you are looking for is to set up a remote repository then you can use git pull git push commands to send Jul 16 08:53:23 then someone else can git clone that remote repository, make their own local repo which is a copy, then use git push and pull to "merge" those changes into the remote repo, which then you can read from by git pull on your own machine into your own copy of the repo Jul 16 08:54:00 apparently there is something called a pull request if you use bitbucket.org where this process has a review on it, where you merge between each persons own branch and a master branch Jul 16 08:55:39 sinbad is the R.id.go button inside the listview? Jul 16 08:56:36 well shoot Jul 16 08:56:37 ohh sinbad Jul 16 08:56:41 you are have a endless loop Jul 16 08:56:42 look Jul 16 08:56:44 ConnectThread connect = new ConnectThread(selectedDevice); Jul 16 08:56:44 connect.start(); Jul 16 08:56:55 so earlier I leaned why you use listSelector instead of background="@drawable/my_selector" Jul 16 08:57:04 but I was doing the same thing with textColor= Jul 16 08:57:08 which calls the run method of connecthread AND THEN at the end of run you have ConnectedThread object = new ConnectedThread(mmSocket); Jul 16 08:57:08 object.start(); Jul 16 08:57:17 *sorry ProgramMax Jul 16 08:57:33 (sorry, I'm interrupting. Go ahead) Jul 16 08:57:54 so you are starting a thread that starts a thread that starts a thread that starts a thread, no wonder it is crashing Jul 16 08:58:36 ProgramMax: i was just reading about that, why use listselector? Jul 16 08:58:59 so say you have a linear layout with a button up top and a listview below it Jul 16 08:59:17 and say you have background= set to a selector on both Jul 16 08:59:23 that way you can have a highlighted state Jul 16 08:59:36 what happens is navigating on and off of the button works correctly Jul 16 08:59:41 and navigating between list items works correctly Jul 16 09:00:00 but when you navigate off the list and onto the button, it will keep the last list item highlighted Jul 16 09:00:09 Mavrik: ok :) Jul 16 09:00:18 I'm not certain on this part but I think it is because the item remains selected Jul 16 09:00:30 lasserix_: tks! Well I don't wanna do evil hacks, that is why I need that feature ;) Jul 16 09:01:04 lasserix_: exactly I want to checkin ,checkout Jul 16 09:01:57 well lasserix_ if I understand right, START_STICKY just restarts the app after running out of memory, not after an intentional kill, aight? Jul 16 09:02:27 or is that the only way for virusses to kill an app? can't they tell like killall for a single service? Jul 16 09:04:50 ProgramMax: sounds like the listview selector is missing one of the combination of states Jul 16 09:05:38 I'm not sure which Jul 16 09:05:45 Yatekii: use a timer task in combination? Jul 16 09:06:44 lasserix_: well I was thinking of service watching service, but malicious software could kill that easy too ... wouldn't that be the same with a timer? Jul 16 09:09:07 lasserix: I see, but it's not recursive loop, it is iterative so I am starting threads over and over again. Jul 16 09:09:45 man...dang it Jul 16 09:10:01 lasserix_: another question: Where would you move this line of code, so it would be working properly? Jul 16 09:10:04 listSelector won't let me do text color or different images...it is a background layer Jul 16 09:10:14 so I have to use textColor=some_selector Jul 16 09:10:34 which brings me back to that problem where the previously-selected item in the list remains selected Jul 16 09:11:37 Mavrik: i'm doing my code in AsyncTask: http://pastebin.com/1uv6frgz, but when i execute() it , Record is inserted in my db but i have this logcat:http://pastebin.com/T0YJEviH Jul 16 09:16:07 sinbad, im guessing you are creating a zillion threads, have you verfified you are not? Jul 16 09:16:58 lasserix_: you are absolutely right. Jul 16 09:17:20 it may be iterative, but if each run execution takes 2ms, then you are creating 500 threads every second, i don't know but this seems like it might cause a problem Jul 16 09:18:04 plus a hint is from that logcat, all those same statements, as if something were being called a hundred million times ;p Jul 16 09:18:26 yes thank you, but where would I move this line of code, that it would execute only once? Jul 16 09:19:02 programax custom selector? Jul 16 09:19:12 Pardon? Jul 16 09:23:21 i think you can do custom selector Jul 16 09:23:29 that's what I'm doing now Jul 16 09:23:40 or maybe see if there is statechangeobserver and then manually set it by implementing callback Jul 16 09:29:08 lasserix_: Can you move that line of code, that it will be working properly? In the constructor maybe? Or somewhere else? Jul 16 09:29:22 thanks a lot for helping me Jul 16 09:31:38 sindbad, well it depends Jul 16 09:31:47 basically you want the thing to keep trying to connect? Jul 16 09:36:05 well a) if you need to reuse a thread, use a thread pool or async task Jul 16 09:36:27 b) there's probably a better way, for instance, use a while loop in the run the method which stays on until the thing connects Jul 16 09:36:33 or it's interrupted Jul 16 09:52:56 Hello everyone! Can I ask some question, about GCM for android? Jul 16 09:53:47 garry_dvaraza: sure Jul 16 09:56:34 I wrote client for android, broadcaster and intentservice. in plugin for google(this is plugin for post-request) i send post to google gcm, and my application receive push. it's ok Jul 16 09:57:26 i use "Key for browser applications" Jul 16 09:58:22 yes.. Jul 16 09:58:29 But my server, don't work. I send to my server reg_id, my server send post request to google gcm and ... Jul 16 09:58:44 my application don't receive push Jul 16 09:58:57 soory of my bad english, i from russia Jul 16 09:59:03 sorry* Jul 16 10:00:35 Can it be that the server doesn't work? Jul 16 10:03:26 that's the problem, the server developer, says that the server is ok. Jul 16 10:04:28 But If my post request returns a push to my application Jul 16 10:05:16 as my application can be wrong? Jul 16 10:05:17 Hello, I'm planning to add an advertisement to my free app but i'm hesitating between a standard cost-per-click model and a cost-per-sale model. i can't find much information about the latter. do you know if it could be more fruitful than the cost-per-clic model if it's well targeted? Jul 16 10:05:53 garry_dvaraza: did you follow the google guide to implement this? Jul 16 10:06:35 Click66: yes, of course Jul 16 10:08:41 garry_dvaraza: problem is I'm doing the mobile side of the story, I've got no experience with the backend. I just followed the google guide and send the id to the people who manage the backend here in the company. And everything worked... Jul 16 10:09:41 I undestand Jul 16 10:09:50 understand* Jul 16 10:16:40 Hi all, I am trying to capture audio from a BT Headset's mic paired with an Android Device but the app starts correctly and simply will use the device's mic in place of the BT HS. Anyone can see what am I missing? The code can be viewed at: pastebin.com/vEK20uBi Jul 16 10:18:34 Hey, where would I direct this question? I forgot my cpanel password although I have it stored in my es file explorer ftp settings. Jul 16 10:18:54 Could I decode an xml or any suggestions? Jul 16 10:22:28 I'm finding it completely impossible to edit the text of an EditText in a dialog after I've created the dialog. Could someone take a look and let me know where I'm going wrong? https://stackoverflow.com/questions/24766499/edit-edittext-in-dialogfragment-after-layout-has-been-inflated Jul 16 10:25:02 gINeeRing: what cpanel where? Jul 16 10:25:07 what do you guys think of this code structure http://blog.smartlogicsolutions.com/2013/07/09/organizing-your-android-development-code-structure/ Jul 16 10:25:09 and what do you use Jul 16 10:25:57 rgr: basically trying to recover my password without bugging my buddy who setup the server for me Jul 16 10:26:21 yes but "basically" "cpanel" tells me nothing. Jul 16 10:26:22 d0de: could it be you should use the runOnUiThread? Jul 16 10:26:34 maybe you can email for a replacement password email. Jul 16 10:27:02 so no circumventing ideas? Jul 16 10:27:05 d0de, you're not doing it right. Jul 16 10:27:16 why ask in an android group? Jul 16 10:28:08 tagrudev: I think it brings very little in the days of hyper clever IDEs such as intellij. group the things together that are combined together where possible. Jul 16 10:28:15 because I am trying to capture the output or string relating to an apk in android. Jul 16 10:28:18 jvrodrigues, what should I do instead please? Jul 16 10:28:19 Where should I ask? Jul 16 10:28:36 d0de, try switching these two lines mDialog.setDialogText(title); mDialog.show(fragmentManager); I'f i'm not mistaken the onCreateDialog is only called after the show() Jul 16 10:28:47 you've lost me. two minutes ago you were asking how to hack into a cpanel password. Jul 16 10:29:18 jvrodrigues, unfortunately I've already tried that and it didn't work. I'll try again just to be sure and I'll update the SO question with the lines switched Jul 16 10:31:24 jvrodrigues, yeah, I still get the NPE and the InvocationTargetException with the lines switched Jul 16 10:32:07 hmm Jul 16 10:32:11 f843d0, I don't really know anything about switching threads, but I thought the Activity would be on the UI thread to begin with? Jul 16 10:32:27 hey yall! I need to search for an image by some keywords in google search and then display in application the first image found. Could someone give my any headsup regarding image search, please? Jul 16 10:34:04 d0de it might actually be more complicated than this Jul 16 10:35:16 jvrodrigues, I'm just a bit lost because the same reference definitely works when I use it in onCreateDialog Jul 16 10:35:55 rgr, the password for my ftp is relative to my cpanel. that is all. Jul 16 10:36:02 is the dialog in a different view or something once it's been created? Jul 16 10:36:08 d0de: I suppose you could try to search for the mText = (EditText)myView.findViewById(R.id.TimeDialogInput); again right into the method that then tries to setText Jul 16 10:36:18 I am trying to recover it as he has not responded. Simplified? Jul 16 10:37:01 is there a way to write apps for android in C? Java is far too complicated Jul 16 10:37:47 so far I'm four hours in and I still can't work out how to get Eclipse to do anything Jul 16 10:37:52 d0de, you can always do a d Jul 16 10:37:52 f843d0, I'm sorry, I don't quite follow you. Could you explain your suggestion again please? Jul 16 10:37:59 Dialog, instead of alertDialog Jul 16 10:38:10 d0de: when you need to modify contents of gui elements (I am sure about TextView and ProgressBar) you'd better findViewById(R.id.element) every time, and possibily on a runOnUiThread Jul 16 10:38:11 i never really liked alertDialogs, and i don't think they work well with custom views Jul 16 10:41:15 d0de: you could try to verify that mText is different than null after you set it in the constructor Jul 16 10:41:33 d0de: (it probably isn't, considering the error) Jul 16 10:42:04 f843d0, I know that mText isn't null in the constructor because I can call setText in the constructor Jul 16 10:42:37 I think I already tried adding mText = (EditText)myView.findViewById(R.id.TimeDialogInput); to the setText dialog, but I'll try again just in case Jul 16 10:42:56 d0de: but is probably not persistent for other methods Jul 16 10:43:10 will myView persist? Jul 16 10:43:33 as in, can I use myView.findViewById() again? Jul 16 10:44:17 d0de: maybe static could be handy if the objects disappear Jul 16 10:46:59 f843d0, will try. What would a call to runOnUiThread() look like from the dialog fragment? Jul 16 10:47:14 hi how i can do for to have this list http://postimg.org/image/qw3q40ubj/ ? and each object i can click on Jul 16 10:48:10 newbie|2, google ListView, BaseAdapter and OnItemClickListeners Jul 16 10:48:22 In same workspace can I navigate between two different projects Jul 16 10:48:27 What is the procedure Jul 16 10:48:34 jvrodrigues: ListView? Jul 16 10:49:33 jvrodrigues: you can say more? Jul 16 10:49:46 d0de: I guess runOnUiThread(new Runnable(){mDialog.setDialogText(title);}); instead of having the mere mDialog.setDialogText(title); Jul 16 10:50:34 f843d0, but would it be MainActivity.runOnUiThread() or something? Jul 16 10:51:26 d0de: probably, I was using it directly into the MainActivity Jul 16 10:51:43 Oh I see Jul 16 10:51:50 any help? Jul 16 10:52:03 In same workspace can I navigate between two different projects through intent Jul 16 10:54:29 d0de: whoops, I forgot you need to @Override the public void run() for the runOnUiThread Runnable Jul 16 10:55:47 I have a question, if I use break statement in run method of a thread, does it mean that the thread stops running? Jul 16 10:56:58 only if you are breaking out of a condition and there are no more left in that method Jul 16 10:57:20 my internet is acting up today Jul 16 10:57:27 d0de, did you manage to fix the issue? Jul 16 10:58:04 f843d0, I can't refer to mView from within the Activity even when mView is set to public in the fragment Jul 16 10:58:08 jvrodrigues, no unfortunately Jul 16 10:58:31 it just says "the field Fragment.mView is not visible" Jul 16 10:58:31 try creating a class that extends AlertDialog Jul 16 10:58:35 and implement a method called getView Jul 16 10:58:50 and return your mView Jul 16 10:58:55 then on your setText method Jul 16 10:59:00 you call get Vuew Jul 16 10:59:04 and findviewbyid Jul 16 10:59:11 and then setText on edit text Jul 16 10:59:14 this should work Jul 16 10:59:28 jvrodrigues, I'll try that, thanks Jul 16 10:59:34 no worries Jul 16 11:00:19 oh, the mView visibility thing was just a stupid mistake on my part, I had the wrong name Jul 16 11:04:23 I am trying to capture audio from a BT Headset's mic paired with an Android Device but the app starts correctly and simply will use the device's mic in place of the BT HS. Anyone can see what am I missing? The code can be viewed at: pastebin.com/vEK20uBi Jul 16 11:10:16 jvrodrigues, I've extended AlertDialog and created a method that returns mView Jul 16 11:13:02 but to be honest I'm not sure how to use it Jul 16 11:14:46 Hey, is there any options "Capture Layers" in monitor.bat like it was there in hierarchyviewer? Jul 16 11:21:04 I'm planning to get a new android device to develop an android app. Is Nexus5 good? Jul 16 11:22:29 jvrodrigues, f8432d0, I haven't discovered how to do what I orginally wanted to do, but I now have a workaround.Jvrodrigues, I didn't realize that onCreateDialog wasn't called until show() was called. So I can just create the fragment, edit the text variables, then call show Jul 16 11:22:56 d0de, i actually thought about that, but i thought you wanted to change the text dynamically Jul 16 11:22:58 tomoyuki28jp: depends what you want to develop for obviously. Jul 16 11:24:16 jvrodrigues, ideally I do, but I've spent an embarassing number of hours trying to achieve that Jul 16 11:24:24 and I think I can just live without it Jul 16 11:25:19 dragorn: re my buggy player buttons - doing "ant clean" seems to have cured it Jul 16 11:27:06 f843d0: include the protocol header in your paste. makes peoples lives easier. Jul 16 11:28:01 rgr: will do that, sorry Jul 16 11:29:19 Sorry, I got disconnected. Jul 16 11:35:10 Hi! Jul 16 11:35:14 Hi! Jul 16 11:35:27 I need help with google-api-client batch requests Jul 16 11:35:35 I am using the new gmail api on my android app Jul 16 11:35:59 the problem is that i am fetching email threads on a batch request Jul 16 11:36:19 and this batch request has to be run on a background thread Jul 16 11:36:52 and each request has a JsonBatchCallback handler, which can't be called from foreground thread Jul 16 11:37:03 *from background thread Jul 16 11:39:31 and i can't find a way to set the callback on foreground thread, it says "only the view that created the object can touvh its views" Jul 16 11:44:54 i need help, my webview client goes blank whenever i lock/unlock screen Jul 16 11:45:10 where is the issue thats causing this http://pastebin.com/ygTRetPA Jul 16 11:47:56 DarkChaoz put your restoreState method in the onresume Jul 16 11:48:17 kk will try that Jul 16 11:51:09 still goes blank Jul 16 11:53:11 wait i think it worked.. Jul 16 11:53:26 thanks jvrodigues Jul 16 11:53:32 one error down, one more to go Jul 16 11:57:39 hello, i have followed android developer guide for bluetooth, and have also copied a lot of code from there. Jul 16 11:58:11 the problem is that the app crashes when i click a bluetooth device in listview Jul 16 11:58:29 here is the code: http://pastebin.com/YhkwhR3T Jul 16 11:58:57 I don't know what is the problem with the code Jul 16 11:59:27 thank you for your help Jul 16 11:59:50 sindbad: logcat or it did not happen Jul 16 12:01:53 sindbad: but from the code I can see that the listView contains all paired devices and on click you are checking the array with all devices Jul 16 12:04:05 hmm Jul 16 12:04:49 onItemclick method only selects the one device picked Jul 16 12:04:50 BluetoothDevice selectedDevice = devices.get(position); Jul 16 12:05:01 does it? Jul 16 12:13:09 sindbad: you're using devices.get but you're adding them to pairedDevices Jul 16 12:13:40 the logcat probably is telling you that error Jul 16 12:13:49 otherwise paste the logcat as heinrisch said Jul 16 12:16:03 logcat returns: Jul 16 12:16:23 Why Android doesn't have base64 encoding/decoding? Jul 16 12:17:13 unexecpted value from nativeGetEnabledTags; 0 Jul 16 12:23:04 I am trying to capture audio from a BT Headset's mic paired with an Android Device but the app starts correctly and simply will use the device's mic in place of the BT HS. Anyone can see what am I missing? The code can be viewed at: http://pastebin.com/vEK20uBi Jul 16 12:28:23 How can I distribute my app on both Google Play and Amazon App Store? on Amazon Store I need to remove Google Billing API and add support for Amazon IAP API and on Google Play I have to remove Amazon IAP API , but how can I do this in the same project? Jul 16 12:28:29 I'm not using Gradle, but Ant Jul 16 12:40:39 CodePulsar: then you should consider moving to gradle Jul 16 12:42:02 hi how i can do for to have this list http://postimg.org/image/qw3q40ubj/ ? and each object i can click on? some example? Jul 16 12:53:20 I'm trying to create ShapeDrawable(OvelDrawable) with size of 30dp (w&h) programmatically but failed. How do i do that? Jul 16 12:53:39 with logviewer and catlog I get nothing Jul 16 12:53:49 the application just stops Jul 16 12:54:34 Is there a channel for Amazon Android development? Jul 16 12:55:15 Foxandxss: I don't have plans for that right now Jul 16 12:55:33 Foxandxss: I'm looking for ideas on how to implement in the same project both In App Purchasing APIs Jul 16 12:55:57 oh, that is a shame. You could have same codebase and just two flavors, one for google store and one for amazon store Jul 16 12:56:09 just changing the needed bits Jul 16 12:56:22 no effort at all Jul 16 12:57:10 So I am setting an argument for the ID of an image used in a fragment Jul 16 12:57:28 Now most of the time when the fragment gets recreated, the image shows again, other times it's not there Jul 16 12:57:56 hold that thought, I Jul 16 12:58:07 'm going to log stuff and see what's going on Jul 16 12:59:42 Foxandxss: not so easy Jul 16 12:59:53 Foxandxss: I need to integrate it with Git, Jenkins, etc. Jul 16 13:00:12 yeah, the transition won't be easy Jul 16 13:00:18 I'm creating a separate branch for Amazon Jul 16 13:01:23 Has anyone used http://www.onepf.org/openiab ? Jul 16 13:02:43 Looks promosing Jul 16 13:02:54 CodePulsar: really promising Jul 16 13:05:08 I get nothing with catlog Jul 16 13:06:01 the app just crashes and nothing returns Jul 16 13:07:55 hey guys. any proguard pros in here? Jul 16 13:07:55 here's my problem. I have to use a workaround in my code where I put a jar containing an empty shell stub of the android.media.RemoteController class into my project to ensure that my app is compatible with android API versions that don't contain this class. everything's working fine with my debug build, but as soon as I use the release build with proguard enabled, proguard decides to override the existing fully implemented class Jul 16 13:07:55 in the android framework with my empty stub class, therefore essentially disabling this classes functionality on API >=19 devices (RemoteController has been introduced with API19). Now my question: How can I tell proguard that it should include both classes (the fully implemented one and my stub)? Jul 16 13:08:29 is proguard an ofuscator or something? Jul 16 13:08:49 shrinker/optimizer/obfuscator/pre-verifier Jul 16 13:08:59 but I don't use the obfuscating capabilities Jul 16 13:09:07 I see Jul 16 13:10:27 In a devices developer options, if I set "Clear Activities" to true, that emulates android killing an activity to regain it's resources anytime I minimize an app? Jul 16 13:15:03 jonc: yep Jul 16 13:15:45 thank you Jul 16 13:19:50 does anyone please have any experience with bluetooth for android? Jul 16 13:20:49 MrMaffen, -keep Jul 16 13:20:55 I have implemented threads like on official guide, and my phone acts as client so that I connect to bluetooth module Jul 16 13:21:11 ca* Jul 16 13:21:14 can* Jul 16 13:22:03 pfn: tried that, doesn't seem to work though as it still only keeps the first class proguard comes across. all following classes with the same packagename are being ignored Jul 16 13:22:40 when is g00s here? Jul 16 13:22:49 huh? Jul 16 13:23:14 they both have the same fully qualified name? Jul 16 13:23:23 pfn: yep Jul 16 13:23:39 you cannot do that on android Jul 16 13:23:56 I can Jul 16 13:23:57 :D Jul 16 13:24:14 pfn: http://stackoverflow.com/questions/23845883/notificationlistenerservice-with-remotecontroller-onclientupdatelistener-crashes/23845884#23845884 Jul 16 13:24:20 here's the broader context if you're curious Jul 16 13:24:45 and as I said, it works just the way I wanted to if I don't use proguard Jul 16 13:24:51 Hey guys, I want to use LocalBroadcastManager to send a message to a Receiver which will then send that to a server. However, the service takes a little bit to start up (about a second or two). Can I put the LocalBroadcastManager on a different thread and then sleep it? Is this bad practice? Jul 16 13:25:09 however I don't want to miss out on the optimization and shrinking feature that proguard has to offer Jul 16 13:26:45 What a horrible solution.. Just disable the service on <19 Jul 16 13:27:06 ok, you stub out the real implementation, that's dumb Jul 16 13:27:17 Put a bool in values/ that's false, and one in values-v19 that's true.. Set android:enabled to that bool Jul 16 13:27:37 oh wow I haven't thought of that Jul 16 13:27:53 because enabling/disabling the service programmatically doesn't help Jul 16 13:28:05 but the values solution should actually work Jul 16 13:28:21 anyway, you tell proguard to not mangle it's name and members Jul 16 13:39:58 hi all, I have this code http://pastebin.com/gG6uSumr and I want to stop the call at the end. How can I do this? I don't really have an Action so I can't use finish() Jul 16 13:45:47 Is anyone using hockey for bug tracking? Any idea why a user would be displayed as X ? Jul 16 13:46:35 Question, i want to create a flat design, but i'm having a hard time designing interfaces for android :( Jul 16 13:46:46 that's more of a statement :P Jul 16 13:47:42 most professional apps will have a wave of storyboards / wireframes that determine the flow of the app and an outline of what goes where Jul 16 13:48:01 then the actual mockups for how it will look can be made Jul 16 13:48:10 choose the one you prefer, and then implement it Jul 16 13:49:03 anyone? Jul 16 13:50:37 meital, http://stackoverflow.com/questions/3823987/end-call-in-android Jul 16 13:50:43 "you can't end a call in Android" Jul 16 13:51:08 once you call startActivity, your code gives way to the caller app Jul 16 13:53:55 jonc: ok, thanks Jul 16 13:55:19 http://stackoverflow.com/questions/14779688/put-buttons-at-bottom-of-screen-with-linearlayout there is a better option (other kind or layout) to solve this issue? Jul 16 13:56:11 I am always having this issue, don’t know which layout to choose, which one is lighter, simpler? Jul 16 13:57:08 kamol: relativelayout Jul 16 13:57:16 I'm getting a crash from a single user in the wild: Device does not have package com.google.android.gsf Jul 16 13:57:20 kamol: lets you tack things to the bottom of the screen w/ offsets from the borders Jul 16 13:57:23 shouldn't this be installed on all phones? Jul 16 13:57:36 It occurs on a Galaxy Nexus with 4.1.1 Jul 16 13:57:50 Syzygy__: Would imply to me someone is sideloading it into a custom rom perhaps Jul 16 13:57:51 dragorn: how about GridLayout? Jul 16 13:58:16 Syzygy__: Or that they disabled google play services (via settings->apps->all->gps->disable, i mean) Jul 16 13:58:46 dragorn, would someone running a custom rom really have such an old phone? Jul 16 13:58:50 kamol: Generally rellayout is considered the fastest rendering layout, afaik Jul 16 13:58:51 *old OS Jul 16 13:59:14 Syzygy__: people do crazy shit. The galnex got left behind a while ago, too, because TI stopped making the OMAP processor so they stopped making updated video drivers Jul 16 13:59:37 dragorn: ic… thank you! Jul 16 13:59:44 Syzygy__: not saying it's a 100% that, but that's my guess. It's pretty hard to get no play services otherwise on an app that came from the market Jul 16 14:00:02 kamol: rellayout is a pain in the ass the first few times you use it, but eventually it makes a fair bit of sense Jul 16 14:00:17 dragorn, yeah Jul 16 14:00:50 Syzygy__: want to do the best you can, catch that exception and throw an error and say "you need play services, go away" Jul 16 14:00:56 and you won't have a crash anymore :P Jul 16 14:01:17 dragorn: yeah, with RellativeLayout is a bit pain. that’s why was looking at Gridlayout, but that one is also similar :) Jul 16 14:01:23 that was my plan, thanks for the info. I'm testing it right now Jul 16 14:02:18 I was wondering, what are some things that might cause an activity to just kick itself out after a period of time? Jul 16 14:02:33 it's like, my back button is being pressed, even though I haven't even pressed the back button Jul 16 14:04:23 bacon1989: look at logcat Jul 16 14:05:15 jonc, i'm even having a hard time getting fragments and app flow design. Jul 16 14:06:26 i'm a little confused by why i can't use "@android:drawable/progress_medium_holo" directly as a drawable in my views Jul 16 14:07:10 it's referenced in my theme and works fine, but i can't use it directly Jul 16 14:07:56 hmm, for some reason I lost javadocs in AS 0.8.2 Jul 16 14:14:54 SimonVT: that worked like a charm. thanks a lot! :) Jul 16 14:15:08 I always tried to somehow disable/enable the service programmatically Jul 16 14:15:27 which obviously resulted either in disabling the service completely, or in crashing my up on startup Jul 16 14:15:53 never thought of using a bool in values and values-v19 Jul 16 14:16:15 I want to use "findViewById(R.id.endButton)" on the current running app - how can I get the currect R? Jul 16 14:16:51 catphish, because your theme doesn't reference it directly, but extended from holo Jul 16 14:17:00 meital, you cannot, impossible Jul 16 14:17:07 pfn: i see, thanks Jul 16 14:17:16 meital, perhaps through an accessibilityservice Jul 16 14:17:52 catphish, you can see all the available android.R resources in the API docs Jul 16 14:19:26 pfn: is there a way to get getInstrumentation() so I'll be able to use Solo, if I'm not extending ActivityInstrumentationTestCase2? Jul 16 14:19:36 meital, NO Jul 16 14:19:38 pfn: cool, thanks, i'm actually just trying to replicate the navigation bar progress spinner into my own views Jul 16 14:19:47 but finding it surprisingly tricky Jul 16 14:20:02 catphish, copy resources from framework into your app locally Jul 16 14:20:02 dragorn: logcat says nothing Jul 16 14:20:14 catphish, that is the only approach Jul 16 14:20:23 pfn: oh ok, will try that Jul 16 14:21:33 it's like someone is pressing a button on my device to make it go to the previous activity Jul 16 14:21:44 but no one is pressing a button Jul 16 14:21:59 the only thing that could be causing it to do this is my service running in the background Jul 16 14:22:03 Using intent to pass data with putExtra and getStringExtra is used for passing data from one activity to another. I guess it is normal practice to get that data in the onCreate method, and then store it in variables. I'm a newbie and confused but I see that I have in my app, in one and the same activity used putextra and getextra via intent to pass data through the methods in the same activity. This is a mistake and not at all the recommended Jul 16 14:22:03 way right? Jul 16 14:25:12 mistake Jul 16 14:26:45 i'm getting in my logcat: com.android.systemui.recent.action.TOGGLE_RECENTS flg=0x10800000 comp=com.android.systemui/.recent.RecentsActivity (has extras) from pid 449 Jul 16 14:27:49 the only other thing in the area is get broadcast action = com.android.disablewallpaper,isAllAppsViible =false Jul 16 14:28:09 no idea why either of these would get called, or how they could be affecting my application Jul 16 14:28:38 pfn: getting data via intent should only be used at onCreate, then passed on to other methods in same activity via parameters or activity fields? Jul 16 14:29:12 I need to make upload images and display user (ImageView). The amount of images is not constant. How to make it? Jul 16 14:32:31 hmm.... i'm starting to suspect that maybe my logger and log cleanup are causing issues Jul 16 14:36:58 anyone got experience of android sdk in linux mint Jul 16 14:38:15 TIL, you can click the number on SO questions to see the exact upvote / downvote count Jul 16 14:40:09 mattblang do u have experience with android sdk on mint Jul 16 14:40:38 I don't :( Jul 16 14:42:10 mattblang will u please me suggest how can i i know u didn't have experience but Jul 16 14:43:13 #windows Jul 16 14:43:36 opps sorry Jul 16 14:43:42 i need help, my webview app doesnt seem to let me login to a forum i used as the load url Jul 16 14:43:50 can anyone help? Jul 16 14:52:39 what is this Jul 16 14:53:16 someone spaming or something else Jul 16 14:53:42 was wondering, has anyone had any issues with multiple connections to an SQLite database? Jul 16 14:53:55 bacon1989: you can have multiple read, but only a single write Jul 16 14:54:13 dragorn: how should I be handling multiple writes? Jul 16 14:54:15 bacon1989: usually if i have a db i also have a service, so the service holds the write connection Jul 16 14:54:20 I have a synchronous function that they all use Jul 16 14:54:56 dragorn: interesting, so send intents to the service, or do you bind to it to perform a write? Jul 16 14:55:06 you can either open and close it each time and lock around that and synchronize, or have a service or thread that handles the writes Jul 16 14:55:17 thread is a little sketchy tho w/ multiple activities Jul 16 14:55:24 hmm Jul 16 14:55:28 i just bind the service, because usually anything i'm putting in a db is happening async anyhow Jul 16 14:55:35 and then just write to the db via the service Jul 16 14:56:10 so reading is fine, it's just a matter of performing writes synchronously Jul 16 14:56:17 yup Jul 16 14:56:26 specifically you can only have one open connection in write mode Jul 16 14:56:35 other connections will error out if you try to open it in write twice Jul 16 14:57:26 maybe I just need to synchronize correctly Jul 16 14:57:42 I have a logmanager singleton class with one open connection Jul 16 14:57:49 which I synchronize Jul 16 14:58:28 the problem is when I do log cleanup, which is a completely separate method, could I synchronize based on the dbconnection maybe? Jul 16 14:58:34 i just tried using proguard, and MSE found Trojan:AndroidOS/FakeLook.A in classes.dex.. did i just accidentally write a trojan? :| Jul 16 14:59:04 is there any way to get access or detect when a spinner's popup view is showing and dismissed? Jul 16 14:59:23 mainly if you press outside of the spinners dropdown and it dismisses Jul 16 15:00:27 bacon1989: singletons across activities can be surprising Jul 16 15:00:41 bacon1989: i'd look at, for example, http://portabledroid.wordpress.com/2012/05/04/singletons-in-android/ Jul 16 15:02:37 bacon1989: (which could also explain why your activity sometimes drops dead or does something bizzare) Jul 16 15:10:12 dragorn: well damn, I make pretty heavy use of singletons Jul 16 15:10:26 bacon1989: sounds like you want a service Jul 16 15:10:33 but I have them all working in regards to a global application context Jul 16 15:10:42 before that, tons of issues Jul 16 15:10:42 bacon1989: if you want async-to-activity persistence, you want a service Jul 16 15:10:48 yeah Jul 16 15:11:26 i'm probably going to rewrite the logging behaviour in the future, but doing it now is outside of my budget Jul 16 15:11:57 which is a shame, i'm going to try and make a synchronous lock over my singleton which is shared between all write operations Jul 16 15:12:19 I made the mistake of thinking that making a method synchronous was a shared lock Jul 16 15:12:29 between all methods in that class Jul 16 15:12:33 Hello, I am working on my google map app. Everything worked fine, when I ran the project on my device it decided not to show me a map, everything is just blank. Why? Jul 16 15:15:19 http://pastebin.com/5PLFBj1N Jul 16 15:18:13 is there an XML method to make a that is always rotating when applied toa view? Jul 16 15:18:43 rather than having to load it and start the animation programatically Jul 16 15:20:35 Nvm, it was my API key the screwed me Jul 16 15:21:00 Don't let your API screw you? Jul 16 15:24:22 if i use apps.admob.com to monetize ads, shall i use AdView or PublisherAdView? Jul 16 15:24:26 i am confused by the two Jul 16 15:28:48 How do i find out what permission should i give to my app to use certain api? Like http://developer.android.com/reference/java/net/InetAddress.html Jul 16 15:30:08 i need help, i want to clear all cookies from webview if a certain url is accessed Jul 16 15:30:21 this might not be correct http://pastebin.com/MPN40pYq Jul 16 15:32:55 darkchaoz do you have experience with android sdk on mint Jul 16 15:33:18 i run android studio on mint Jul 16 15:33:48 no Jul 16 15:33:52 i use eclipse Jul 16 15:34:07 catphish it is ruining fine means emulator etc Jul 16 15:34:14 How do I remove a shared preferences file? (not only clear it) Jul 16 15:37:31 the problem is, when i logout and go back to index page it still says im logged in but when i go to a different page im not logged in Jul 16 15:38:00 i thought I'd try clearing all cookies when accessing logout page and clear all cookes from webview Jul 16 15:46:25 What do I use for a Dialog (Builder) when I have two buttons offering two positive paths.. Jul 16 15:46:31 Log in or Register Jul 16 15:46:49 well, maybe there are three. Login, Register, Cancel and then Login maybe is positive, Cancel is negative and register is.. neutral? : D Jul 16 15:52:05 hi everyone, does somebody know how i can use the AccessibilityNodeInfo to Inject via perfomAccessibilityAction Javascript to the current page? Jul 16 16:02:23 Hello. I have for ex. 50 custom child views inside one main view. When i call invalidate on 2 of them, dirty rectangle will be combined (union) together and it may cause do redraw all my 50 child views again. But i would like to redraw only 2 of them, which is much faster in my case. Is it possible do disable unioning of rectangles? Jul 16 16:06:45 httpclient is not sending cookie on httpGet Jul 16 16:06:59 the cookiestore is there Jul 16 16:07:09 so is the cookie itself, as i've checked Jul 16 16:07:15 however the server does not seem to accep tit Jul 16 16:07:34 what could cause this behaviour? Jul 16 16:07:40 the get domain and the post domain are the same Jul 16 16:11:00 anyone know if there is way to check if cookie exist? Jul 16 16:12:58 getActivity().getPackageManager().getApplicationInfo(app.first ,PackageManager.GET_ACTIVITIES); as long as app.first is the packagename of an installed app, this shouldn't throw an exception, right? Jul 16 16:13:21 i've taken progress_medium_holo from the theme source into my project, it consists of a containing 2 layers, can't figure out how to make it animate though :( Jul 16 16:13:31 and the package name is the same as displayed by the App Info on the phone? Jul 16 16:15:50 How can i allow an apk issue pings? Jul 16 16:16:03 I saw on the net i have to give AID_INET capability to the process Jul 16 16:16:25 ivali: not certain about android but on linux you need root for that Jul 16 16:17:20 ivali: AID_INET allows AF_INET and AF_INET6 sockets, which is probably good enough to makeping packets :) Jul 16 16:20:06 I'm confused. We have this android API http://developer.android.com/reference/java/net/InetAddress.html Jul 16 16:20:35 But the method "public boolean isReachable (int timeout)" cannot be issued because the app cannot issue pings. Jul 16 16:20:45 Hi all- I need some help with my service; I've created it to run in the background; Now, if i open "recent apps" and swype my app away, the service gets destroyed. So i've implemented onTaskRemoved method to reopen my service. The problem is, that in onStartCommand, i'm allso creating Receiver, which doesn't get created after app has been swyped. can someone tell me what am i missing? (i'm not getting any errors either) Jul 16 16:21:28 catphish your android studio running fine means emulator etc Jul 16 16:22:08 i'm not using the emulator, but you shoudln't have too much trouble if you install the intel emulator and kvm Jul 16 16:22:19 *intel android image Jul 16 16:22:31 i find real hardware much simpler Jul 16 16:23:01 my phone is faster than my laptop. :( Jul 16 16:23:28 i develop on an i7 with 16G of ram, kinda need it for the java IDEs Jul 16 16:23:47 actually the problem is last time i installed this in ubuntu and android L emulator does not boot up catphish Jul 16 16:24:17 catphish: i do android dev on my workstation, which is faster than my phone for sure ;) Jul 16 16:24:17 nickz_GnD: hard to say what was wrong without seeing an error etc, but it *should* work Jul 16 16:24:56 ok m going to try i have only 1 GB RAM catphish Jul 16 16:25:21 can someone tell me why sometimes my bg service just gets killed even if i use onTaskRemoved to recreated the service? it always states: ActivityManager Killing remove task Jul 16 16:26:46 any know how do i use hascookies? with webview? Jul 16 16:27:15 hey DarkChaoz Jul 16 16:27:24 I updated my repo Jul 16 16:27:34 check it out, be home soon and we can talk more then Jul 16 16:28:07 good luck Jul 16 16:39:45 Anyone use mopub? I am having trouble uploading an app image. Wondering if there is a trick to it. It is a bland green icon that doesn't change. Jul 16 16:40:54 I have an imageview, and I want to be able to touch it, to add something to the image. How can I do it? What should I google for? Jul 16 16:41:23 like, I have a image with map, and I want to select point on it. Jul 16 16:46:29 hmm - I'm extending a compoundbutton view. In the view, Im overriding setOnCheckedChangedListener() which accepts a new listener. Can I add/inject a code to the provided listener without overriding it? Jul 16 16:47:36 can someone tell me why does my service stop even if i started it with startService()? if i swype my activity from "latest running apps", the service gets closed too. activitymanager then states "remove task" Jul 16 16:49:57 hmm, so onresume of this fragment is being called twice. i think I'm reading its a bug in Android? Jul 16 16:50:33 mattblang: had it too Jul 16 16:52:10 ironhalik ok, thanks. that makes me feel a little better Jul 16 16:53:53 mattblang: still, Im not sure if its a bug, or some silly lifecycle behaviour Jul 16 16:54:23 lordgreg, that's normal. Jul 16 16:54:29 it'll get restarted if it's sticky. Jul 16 16:56:35 how i can i use hascookies? Jul 16 16:56:43 with my webivew Jul 16 17:02:59 wow, I'd been spoiled by root access so much. Didn't know we couldn't access our own app's data folders Jul 16 17:04:03 u mean via adb? Jul 16 17:04:20 jug6ernaut, yeah. I wanted to see the contents of my sqlite db Jul 16 17:04:30 found this run-as command but it's such a hassle :/ Jul 16 17:04:54 how i can i use hascookies? Jul 16 17:04:55 should just be like a debug_data folder or something for debuggable apps instead Jul 16 17:05:12 DarkChaoz, what's up? what's hascookies? Jul 16 17:05:16 want to add a line if there is cookies stored refresh webview Jul 16 17:06:06 it gets whether cookies stored Jul 16 17:06:13 if stored then it will return true Jul 16 17:06:20 jug6ernaut, actually just running run-as your.package.name switches you to the app's data folder :) Jul 16 17:06:32 no more appending "run-as your.package.name" to every command :) Jul 16 17:06:44 huh Jul 16 17:06:47 never knew Jul 16 17:06:53 * jug6ernaut has always had root Jul 16 17:07:00 I'll show ya my code Jul 16 17:07:05 Hah, me too but I'm scared to root Android L Jul 16 17:07:09 Tried once and lost all data Jul 16 17:07:22 Well, backups... Jul 16 17:07:41 http://pastebin.com/LiSzaNcv Jul 16 17:07:58 its just the index.php doesnt seem to update when im logged on Jul 16 17:08:18 or on emulator when i log off, in the index.php it says im still logged in which im not Jul 16 17:08:52 more or less, i want the save state updated whether its logged in or not.. Jul 16 17:09:20 flan3002, I think dex2oat is tries to optimize 151 apps regardless of backup Jul 16 17:09:25 -is Jul 16 17:10:13 So? Jul 16 17:10:37 Afzal: lost all data? LOL #fail Jul 16 17:11:06 jug6ernaut, it was either that or unstable Android L Jul 16 17:11:29 flan3002, Android L doesn't deal with existing data nicely right now. Don't worry about it. Jul 16 17:11:59 I don't. :) Jul 16 17:12:05 L is unstable -_- Jul 16 17:12:37 It's a preview... Why does everyone act surprised that it isn't stable yet...? Jul 16 17:12:39 jug6ernaut, yes I know. Hence staying away from root and risking another nuked build :) Jul 16 17:13:00 flan3002, who is suprised? I'm just telling you why I'm not rooting it. sheesh Jul 16 17:13:08 any ideas how can i do it? Jul 16 17:16:00 or should i ignore doing that for now Jul 16 17:24:53 What's the best way to launch an intent view a specific sms? Jul 16 17:25:20 Hey guys, I installed the latest SDK with the ADT plugin included, however when I run eclipse it does not use the ADT plugin and I cannot figure out why Jul 16 17:25:21 I was using ~ setData(Uri.parse("content://mms-sms/conversations/"+req_thread_id)); but on newer 4.3 + i get no launch activity found Jul 16 17:25:38 dylan9o4: Are you already used to Eclipse? Jul 16 17:25:43 If not, use IntelliJ. Jul 16 17:26:13 Android Studio* Jul 16 17:26:13 even if you are, use intellij Jul 16 17:26:31 flan3002: vaguely, but I am planning to use phonegap, which recommends installing ADT Jul 16 17:26:42 eugh, stay away from phonegap Jul 16 17:26:59 well I don't know java Jul 16 17:27:04 Yeah, give a **** on that recommendation if you want to retain your sanity. And what Afzal said. :) Jul 16 17:27:28 give a 4 star? :/ Jul 16 17:28:33 did anyone check my code to see what i can do? Jul 16 17:28:46 I am just trying to create an app with HTML, CSS, JS (what I'm familiar with) and wrap it in an app for android and ios Jul 16 17:29:01 DarkChaoz, I tried but unfortunately I can't say. Sorry man Jul 16 17:29:12 dylan9o4, I have a link for you Jul 16 17:29:53 ahh Jul 16 17:30:07 i think i could ingore it for now Jul 16 17:30:14 its not like its doing any harm is it Jul 16 17:30:17 Anyone have any probs with java 7 with android studio and how get java 7 to work do i have to change some settings? Jul 16 17:30:28 and only one webpage is being affected Jul 16 17:30:47 does anyone know how i can create a link to a specific app so that its page opens on google play? Jul 16 17:30:56 i am using cocoonjs to convert Jul 16 17:31:01 perlsyntax: You don't happen to have any more specific description...? Jul 16 17:31:04 wondering if it is a specific url format? Jul 16 17:31:19 Android will open play links in play store by default. Jul 16 17:31:33 Afzal: awesome Jul 16 17:31:36 :/ Can't find that presentation which shows the state of webview in Android. dylan9o4 you will be pulling your hair trying to support dfferent android versions. Native = best Jul 16 17:31:47 so just the regular URL? Jul 16 17:32:20 II just was thinking why it ask for java 6 but on andrid studio? Sorry Jul 16 17:32:32 wait i think i found it on google's page Jul 16 17:32:34 thanks Jul 16 17:32:53 Afzal: so you're saying I should not use webview for android apps (aka not HTML & CSS)? Jul 16 17:33:16 If you can avoid, you shouldn't. Jul 16 17:33:42 Such apps are discouraged because they don't behave 'native' on all platforms. Jul 16 17:33:43 i'm trying to use cocoonjs Webview+ right now Jul 16 17:33:55 that behaves almost identically on all platforms Jul 16 17:34:00 I mean does android require java 7? Jul 16 17:34:04 but it's still really buggy Jul 16 17:34:09 No, it doesn't. Jul 16 17:34:15 have you tried it? Jul 16 17:34:22 There's also a canvas version Jul 16 17:34:24 oh i thought it did Jul 16 17:35:09 I thought java 6 was not support any more. Jul 16 17:35:11 dylan9o4, here http://slides.com/html5test/the-android-browser#/ Jul 16 17:35:29 if you are making a game that is entirely canvas based, there are very few problems Jul 16 17:35:30 flan3002 , Afzal I appreciate the advice, but considering I'm not familiar with Java, and have a vast knowledge of HTML & CSS, I don't have much of an option for the time-being. This considered, what do you think would be the best route for me to take with developing an android app WITH webview? Jul 16 17:35:58 * flan3002 shrugs, he has never developed a pseudo-native webapp. Jul 16 17:36:08 dylan9o4: if it is not a game (and so doesn't need very specific features), you can use phonegap or cocoonjs Jul 16 17:36:17 dylan9o4, if you really really really really really want to do it, Cordova https://github.com/MobileChromeApps/mobile-chrome-apps Jul 16 17:36:22 webview is a real mess Jul 16 17:36:34 I have and edit text on top of the keyboard. This edit text is multiline. But when I add more lines the edittext is resizing under the keyboard. There is a way to force it to resize like the whatsapp chat box? growing up and above keyboard? Jul 16 17:38:06 actually the editbox is out of the screen if I close the keyboard Jul 16 17:38:16 I am trying to use CocoonJS right now Jul 16 17:38:19 just the first two lines are on the screen Jul 16 17:38:28 It only has about 6 core developers so that's a problem Jul 16 17:38:37 Afzal: thanks. Agamemnus if I were to use phonegap, its back to my initial issue of me not being able to run eclipse with the ADT plugin Jul 16 17:39:01 i am not sure how that relates Jul 16 17:39:37 installing adt? Jul 16 17:39:39 eclipse? Jul 16 17:39:46 you lost me Jul 16 17:39:52 you can compile online Jul 16 17:40:10 O.O Jul 16 17:40:13 Agamemnus: It's part of the recommended installation of phonegap via http://cleancodedevelopment-qualityseal.blogspot.nl/2012/11/how-to-install-phonegap-for-android.html . the plugin is installed, I can see it within eclipse installed software, but it does not run on eclipse startus Jul 16 17:40:13 Online... Jul 16 17:40:49 we use a CI server to build debug builds on every merge and releases on every tag. testers cannot currently upgrade debug builds ('INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES'), presumably because the debug key isn't persisted between builds. Would we be ill-advised to Jul 16 17:40:54 just sign debug builds with our elease key? (that way, testers could upgrade from a debug to release without issue), or should we persist the debug key? Jul 16 17:40:58 here is a protip. Jul 16 17:41:07 when you do a search for anything programming related, Jul 16 17:41:21 click Search Tools under the Google search bar Jul 16 17:41:38 Where it says Any Time, try to go for at least "Past year" Jul 16 17:41:49 Birk: Is your problem similar/related to http://stackoverflow.com/questions/6205697/soft-keyboard-comes-over-the-edittext?rq=1 ? Jul 16 17:41:51 Agamemnus: mmmm Jul 16 17:41:59 I would say past 6 months Jul 16 17:42:12 Hello! I've imported a project into Studio, but I'm having troubles building it: error: package org.spongycastle.util.encoders does not exist Jul 16 17:42:31 Is this something I'm supposed to import as a library? Jul 16 17:42:33 anyway, there is nothing to install with phonegap Jul 16 17:42:40 normalra: Yes. :) Jul 16 17:42:51 flan3002: Ill try that. Thanks!! Jul 16 17:42:53 but there is an xml file that needs to be used for most things, and that is not too well documented Jul 16 17:42:59 flan3002: Hm, the project is hosted on GitHub, does that mean it's an External Dependency? Jul 16 17:43:05 (it is based off of cordova) Jul 16 17:43:19 normalra: Any library is an external dependency, no? Jul 16 17:43:36 also, your initial file needs to be index.html Jul 16 17:44:11 by the way -- if anyone uses mopub, how can I change my app image? It seems to be broken Jul 16 17:44:19 flan3002: Haha, I've thought they were internal deps and external, as in ones that app needs to run, and external to build. Jul 16 17:44:35 Agamemnus: so I just need node.js? Jul 16 17:44:49 no Jul 16 17:44:55 normalra: Well, for Android there aren't really build-only dependencies... Jul 16 17:44:59 you need index.html Jul 16 17:45:10 and an account Jul 16 17:45:36 oh and you will need to link to phonegap.js or something for the built-in plugin stuff Jul 16 17:46:01 that is of course all for the online (cloud) compilation Jul 16 17:46:03 flan3002: I see! Speaking of dependencies, I'm not exactly what's the UI procedure on adding the spongy castle thingy. Jul 16 17:46:13 it is much more involved to do it yourself Jul 16 17:46:22 normalra: Ide? Jul 16 17:46:33 flan3002: I'm using Android Studio. Jul 16 17:46:52 What's the best way to launch an intent view a specific sms? Jul 16 17:46:53 I was using ~ setData(Uri.parse("content://mms-sms/conversations/"+req_thread_id)); but on newer 4.3 + i get no launch activity found Jul 16 17:47:14 normalra: Download spongycastle as a jar and add it as a project library. Then add that library as a dependency to your main module. Jul 16 17:48:42 flan3002: I assume it's 'Open module settings' -> one of the modules -> then the plus sign? Jul 16 17:49:17 I won't babysit you through it. Google for it or look it up in the documentation. :) Jul 16 17:50:51 Oh dear! Now I have to actually get familiar with the Studio! Cursed homework :D Jul 16 17:53:19 flan3002: It doesnt work :( Actually my problem is just when the edittext is resized. When I open the keyboard everything its ok. But when I press return and add one more line to the edittext, the bottom of the edittext is overlapped by the keyboard Jul 16 17:53:43 Birk: Show your layout... Jul 16 17:53:58 Agamemnus: thanks, how do I get keys for packaging for android, ios, etc? Jul 16 17:55:31 flan3002: http://pastebin.com/bRxVfg1X Jul 16 17:56:36 i haven't gotten to that point. Jul 16 17:56:56 but it is in the docs. Jul 16 17:56:58 somewhere Jul 16 18:00:58 Birk: I can't find an obvious mistake... Jul 16 18:01:40 flan3002: This is why I don't like blindly clicking at the UI, I added the libraries to a module that doesn't even use them :P I'll try adding them to the other module. Jul 16 18:02:27 Agamemnus: hey, how do I run the debug .apk via the phonegap app? I'm not sure what to put for the server address Jul 16 18:03:01 you need to use adb if you are running android 4.3 or lower, and filter Jul 16 18:03:31 at 4.4+, you can use the inspector if it is connected to your pc. Jul 16 18:03:51 Anyone have luck with doing sqlite stuff from native code? Jul 16 18:07:12 JakeWharton if i have some Claster generation logic that depends on an injected Jeebus, and i have two @Named Jeebus providers and want to get a Claster for each Jeebus, do i have to have two @Named Claster providers? or can i somehow inject a Claster and specify which Jeebus to use? Jul 16 18:07:46 uh Jul 16 18:08:02 yes? Jul 16 18:08:17 it would be easier to reason about with more concrete information haha Jul 16 18:09:14 yeah sorry lol i'm putting together an example gist Jul 16 18:09:28 I am sending sms using sms Manager and in my dual SIM device i am always getting "Generic failure" , can anybody tell me what is wrong with the device ? Jul 16 18:09:32 or, here, whatever. it's generic enough i don't need to fake the names Jul 16 18:09:51 flan3002: I've added android:layout_marginBottom="10dp" to the edittext. That solved the problem. ... Jul 16 18:10:11 i need two Lists. I generate those lists by reading a string array from resources and un-base64'ing each string in the array Jul 16 18:10:42 the particular array differs between the two different lists i need, but the String[] -> List processing is obviously the same Jul 16 18:11:13 do i write a converter func and have two String[] providers and two List providers (that calls the extracted converter func)? Jul 16 18:11:18 Agamemnus: I am 4.4. When you say connected you mean via BT or WiFi? Jul 16 18:11:39 or is it possible to have one List provider that can deliver named lists dependent on named String[]s Jul 16 18:11:54 basically i'm just looking to avoid code dupe and do it elegantly. Jul 16 18:12:11 dylan9o4: read this: https://developer.chrome.com/devtools/docs/remote-debugging Jul 16 18:12:34 i think you will need a cable Jul 16 18:12:50 My pc is running android emulator, but when I run app I don't have choice where to run the app. Jul 16 18:13:00 I'm using linux and eclipse. Jul 16 18:14:27 https://gist.github.com/tophyr/ef2d4429a318079eb01a Jul 16 18:15:32 I am sending sms using sms Manager and in my dual SIM device i am always getting "Generic failure" , can anybody tell me what is wrong with the device ? Jul 16 18:15:34 KeyboardNotFound you mean it doesn't pop up the dialog to say "what device do you want to run on"? there's an option in ADT to "remember this choice", just clear that Jul 16 18:19:01 Anyone know how to view an sms thread given the sms thread id? Jul 16 18:21:26 Agamemnus: I have tried this before, I have the S5, and a Windows 8 PC but Chome does not discover my phone when I connect via usb Jul 16 18:21:50 your usb cable --- did it come with your phone? Jul 16 18:21:59 It did Jul 16 18:22:09 You might need to go to the Samsung site and download the specific driver. Jul 16 18:22:50 There is also the possibility that the cable is just a charging phone Jul 16 18:23:00 er Jul 16 18:23:03 charging cable Jul 16 18:24:01 For debugging you'll also need to press the "Build number" in "about device" 7 times. Jul 16 18:24:03 if the phone doesn't show up as a MTP device and the phone only shows connected for charging, it's a non-data cable. Jul 16 18:24:22 For windows you'll definitely need drivers as well; i have no idea where they'd be located since I don't do windows Jul 16 18:24:33 the cable that came with the phone SHOULD be both a data and charging cable Jul 16 18:24:51 The samsung site has all the drivers. Jul 16 18:25:54 a safe bet, yeah Jul 16 18:26:10 hello Jul 16 18:26:19 this is my logcat Jul 16 18:26:36 http://pastebin.com/DudjLVaL Jul 16 18:26:47 sarbs, I selected "everytime ask" and I can't select running emulator Jul 16 18:27:02 KeyboardNotFound does it show the popup but gray the emulator out? Jul 16 18:27:26 sarbs, yes I see "Android Device Chooser" Jul 16 18:27:41 sindbad: that is a filtered logcat Jul 16 18:27:51 and in "Choose a running Android device" I can't see my emulator Jul 16 18:27:57 I tried restarting Jul 16 18:28:04 but does the emu show up at all? sometimes adb gets confused and doesn't realize devices are connected. if the emu doesn't show up, restart adb (adb kill-server, adb devices) Jul 16 18:28:05 sindbad: you probably should pastebin the unfiltered versiohn if you want help Jul 16 18:28:20 if it shows up but is grayed out then your emulator is running the wrong version of android Jul 16 18:28:41 you've restarted adb and it still doesn't show up? restart the emu i guess, sounds like it's not responding correctly to adb server then Jul 16 18:28:43 KeyboardNotFound: thats because the emulator is running a lower version than your minSdkVersion value Jul 16 18:28:54 Napalm: I am making a bluetooth app Jul 16 18:29:08 Napalm: Do you want to see the code? Jul 16 18:29:11 Napalm if it fails minSdk it just doesn't show the device at all? i thought it grayed them Jul 16 18:30:35 yea, i think your right, i forget Jul 16 18:30:49 Napalm, no, emulator is running android 4.1.2 (api level 16) and minsdkversion in android manifest is 10 Jul 16 18:31:10 Anyone know how to view an sms thread given the sms thread id? Jul 16 18:31:13 KeyboardNotFound: adb kill-server then adb devices Jul 16 18:31:23 that should then list your emulator Jul 16 18:31:23 hello, anyone know a reason why my autocorrect would NOT function in an app? is it the keyboard, or the app to blame? Jul 16 18:31:31 KeyboardNotFound: does it? Jul 16 18:31:53 mannatrar: you have to enable it as part of your inputType Jul 16 18:31:53 Napalm, adb: command not found in terminal Jul 16 18:32:16 KeyboardNotFound: go to your /sdk/platform-tools directory Jul 16 18:32:19 and run it from there Jul 16 18:32:28 Or just edit your path... Jul 16 18:32:30 later you might want to add that directory to your PATH Jul 16 18:32:55 Napalm, I'm not familiar with that term, can you explain or point me in the direction I can find out? Jul 16 18:33:04 not even later. do it now. else all sorts of problems will occur. Jul 16 18:34:04 mannatrar: setting up the sdk and the path is covered on pabout page 0 for the android tutorial from google. Jul 16 18:34:05 Napalm, just a second Jul 16 18:34:12 Hello Jul 16 18:34:22 I'm having a *slight* issue Jul 16 18:35:01 mannatrar: http://developer.android.com/reference/android/widget/TextView.html#attr_android:inputType Jul 16 18:35:08 I have an AlarmManager set an alarm for 10 seconds later...using a pendingintent, and an intentservice which starts a notification Jul 16 18:35:21 Moony22: same as last night i see Jul 16 18:35:21 however this alarmmanager is set when my application is run (that certain activity) Jul 16 18:35:49 whoa whoa whoa, all I wanna know is why autocorrect doesn't function on the in-game chat on this app. Jul 16 18:35:53 So I just get multiple instances of it every time it's run Jul 16 18:35:56 Napalm: yeah Jul 16 18:35:57 Napalm, I see my emualtor in adb devices, but it's offline (it's starting because I restarted it a 3 min ago) Jul 16 18:36:07 mannatrar: and i just told you Jul 16 18:36:18 Napalm, That page looked like a bunch of programming gibberish Jul 16 18:36:19 Moony22: you need to go get the pending intent Jul 16 18:36:33 mannatrar: thats what this channel is about.. if you dont want that.. leave Jul 16 18:36:34 Agamemnus: I am able to turn on MTP Jul 16 18:36:58 I just wanna know WHY this keyboard's autocorrect doesn't function in this app Jul 16 18:37:04 OMG Jul 16 18:37:07 It's not MY app Jul 16 18:37:14 mannatrar: i just told you. its because they have not enabled it Jul 16 18:37:16 go bug them Jul 16 18:37:28 They who? The government? Jul 16 18:37:35 mannatrar: the creators Jul 16 18:37:38 Of...? Jul 16 18:37:42 the app Jul 16 18:37:48 That wasn't so hard was it? Jul 16 18:37:49 Jesus Jul 16 18:37:52 It's like pulling teeth to get an answer Jul 16 18:37:54 Thanks Jul 16 18:37:54 loool Jul 16 18:37:59 ... Jul 16 18:38:01 idiot Jul 16 18:38:09 lol Jul 16 18:38:20 you can't fix stupid Jul 16 18:38:32 I have to try everyday though Jul 16 18:38:35 so Moony22 Jul 16 18:38:40 heh Jul 16 18:38:42 you need to go get the current PendingIntent Jul 16 18:38:44 fix my stupid :D Jul 16 18:39:03 if it exists you can then use it to query the AlarmManager Jul 16 18:39:13 need help, my code seems to sorta work on emulator but not on phone http://pastebin.com/YWFXHZkp Jul 16 18:39:34 DarkChaoz: we went though this yesterday i swear Jul 16 18:39:51 when i go to login page it does login but when go back to login screen it logs out Jul 16 18:40:02 we went over the blank webivew lol Jul 16 18:40:15 and.. you fixed that? Jul 16 18:41:15 DarkChaoz: what was it? Jul 16 18:41:25 the save state should go in resume Jul 16 18:41:25 Napalm: how do I keep the current pendingintent / store it? a bundle? Jul 16 18:41:40 i mean restore state Jul 16 18:41:45 or, use a service or something...I'm not too sure Jul 16 18:41:52 Anyone know how to view an sms thread given the sms thread id? Jul 16 18:41:58 Moony22: no, just go get it again Jul 16 18:42:02 the system stores them Jul 16 18:42:08 wat Jul 16 18:42:08 thats the whole point of PendingIntent Jul 16 18:42:15 but i have another problem, its the cookies Jul 16 18:42:47 Moony22: PendingIntent.getService Jul 16 18:43:28 ahh Jul 16 18:43:45 Moony22: use FLAG_UPDATE_CURRENT Jul 16 18:43:48 I'm already using that I guess Jul 16 18:43:49 and that Jul 16 18:43:59 Moony22: you should probably create it with FLAG_ONE_SHOT Jul 16 18:44:01 http://pastebin.com/7TCi49pH < Which solution of the two specified do you think is better practice and why? Jul 16 18:44:15 Napalm, after killing and starting the adb server, everything works fine:) thanks Jul 16 18:44:17 have no clue how to fix the cookies issue Jul 16 18:44:18 what does that do Napalm? Jul 16 18:44:32 I tried to use cookiemanager but to no avrail Jul 16 18:44:40 Napalm: don't worry, I just can't read apparently Jul 16 18:44:45 :) Jul 16 18:45:08 Moony22: you can also use FLAG_NO_CREATE on the time you want to go get it Jul 16 18:45:46 Napalm: and check if it's null? Jul 16 18:45:52 yup Jul 16 18:45:54 thanks :D Jul 16 18:46:41 Moony22: explain what you trying to do again Jul 16 18:46:49 I can't express the two different approaches in words so I thought just a pastebin would be best Jul 16 18:49:22 Napalm: my application calculates different times of the day, different every day. I'm trying to set a notification at each of these times Jul 16 18:49:36 :) i think i know what your app does Jul 16 18:49:41 and why Jul 16 18:50:02 Hi all, how to get data format of phone like 'mm/dd/yyyy'? Jul 16 18:50:07 anyone know how ot get the android-sdk and tools installed properly on osx mavericks via homebrew, I keep getting the following when I try to install packages through the SDK manager: "Downloading Android SDK Platform-tools, revision 20 Jul 16 18:50:07 Unexpected Error installing 'Android SDK Platform-tools, revision 20': java.lang.IllegalStateException: Manager is shut down." Jul 16 18:50:48 rithea: http://developer.android.com/reference/android/text/format/DateFormat.html#getMediumDateFormat%28android.content.Context%29 Jul 16 18:51:02 here is the paste, http://pastebin.com/pS8zKxyK the cookies is the the only problem i have now Jul 16 18:51:03 rithea: or http://developer.android.com/reference/android/text/format/DateFormat.html#getDateFormat%28android.content.Context%29 Jul 16 18:51:20 rithea: just make sure your using Android's DateFormat not java one Jul 16 18:51:50 danielmahon: just extract the zip Jul 16 18:52:31 Napalm: ive installed 22.6.2 but I cant install packages through the SDK manager Jul 16 18:52:38 hey all, is there a de facto standard android library to add sharing stuff like iOS has? ie an easy way to share to FB & Twitter if the user has those apps installed Jul 16 18:53:03 danielmahon: i dont use osx but do you have the ability to run it as root or with admin privs? Jul 16 18:53:10 dcope: Intents? Jul 16 18:53:26 dcope: its built into the platform Jul 16 18:53:38 dcope: http://developer.android.com/reference/android/widget/ShareActionProvider.html Jul 16 18:53:46 dcope: or https://developer.android.com/reference/android/support/v7/widget/ShareActionProvider.html Jul 16 18:54:02 Anyone know how to view an sms thread given the sms thread id? Jul 16 18:54:12 Napalm: yes, and no difference, probably has to do with OSX and the wonky way it handles Java, but I seem to have 7_65 installed properly Jul 16 18:54:21 Napalm, flan3002 yeah but then you get crap like this http://developer.android.com/images/training/sharing/share-text-screenshot.png Jul 16 18:54:52 napalm, can ya help me out with cookies, http://pastebin.com/pS8zKxyK Jul 16 18:54:58 dcope: And... you want something else? Jul 16 18:55:02 flan3002: yes Jul 16 18:55:06 Napalm thank you, i'm trying... Jul 16 18:55:08 problem is that when i go to a login page, it doesnt seem to keep the cookie Jul 16 18:55:23 doesnt login in Jul 16 18:56:22 lasserix: i dont think its possible anymore.. isnt there restrictions on that since KitKat? Jul 16 18:56:39 You can't launch an intent to open a specific sms ? Jul 16 18:56:49 that sounds sooo wrong Jul 16 18:56:56 dcope: well.. explain what you want Jul 16 18:57:04 whats the f. point of intents to view stuff then? ;p Jul 16 18:57:08 but yeah that is why i am asking Jul 16 18:57:08 lasserix: you can Jul 16 18:57:12 sorry Jul 16 18:57:13 Napalm: something like ios that is built in. where you *only* have "Share to Twitter" if it's installed Jul 16 18:57:18 lasserix: that wasnt clean Jul 16 18:57:32 lasserix: did you look at the AOSP messaging app? Jul 16 18:57:36 or OpenIntents? Jul 16 18:57:44 Naplam: i have it working, but on 4.3+ the thing gets no activity found where it previousily worked Jul 16 18:58:07 lasserix: what is the intent you are currently using? Jul 16 18:58:29 lasserix: you should probably direct it to the default messaging app you can now get that from 4.3+ Jul 16 18:58:43 Intent intent = new Intent(ACTIONVIEW); intent.setData(Uri.parse("content://mms-sms/conversations/" + threadid)) Jul 16 18:59:01 Naplam do you know how I direct it? Jul 16 19:00:00 well first Jul 16 19:00:05 you should be using the platform class Jul 16 19:00:12 https://developer.android.com/reference/android/provider/Telephony.Sms.Conversations.html Jul 16 19:00:26 use the CONTENT_URI field Jul 16 19:00:39 can anyone help me resolve the cookie issue? somehow it works on emulator but not on my phone.. Im guessing on the phone it doesnt keep the cookie after login authentication Jul 16 19:00:47 can someone take a quick look? Jul 16 19:01:16 Naplam: sorry how does content-uri work with the intent? Jul 16 19:01:17 I'm thinking the if null check might be the least unclean solution Jul 16 19:01:35 lasserix: Telephony.Sms.Conversations.CONTENT_URI.buildUpon() Jul 16 19:02:27 Naplam: sorry to ask again, how do I combine this with the intent? Jul 16 19:03:15 lasserix: startActivity(new Intent(Intent.ACTION_VIEW).setData(Uri.withAppendedPath(Telephony.Sms.Conversations.CONTENT_URI, threadid))); Jul 16 19:03:18 something like that? Jul 16 19:03:21 lasserix: you are wrong about threads, the run method runs only once Jul 16 19:03:37 ughhhhhhh Jul 16 19:03:53 http://pastebin.com/7TCi49pH Jul 16 19:04:04 Napalm: thanks! Jul 16 19:04:31 sinbad: like i said i had no idea, but you logcat was kinda of useless to determine what was going wrong Jul 16 19:05:34 jesperj: sharedprefs.getstring should never return a null; it will return a string of the default value if none is found (in your case, "") Jul 16 19:05:54 napalm, when you free can you help me? Jul 16 19:05:59 dragorn: unless your defaultValue parameter is null :D Jul 16 19:06:11 DarkChaoz: help with what? Jul 16 19:06:28 jesperj: also you need to catch ClassCastException if you're programamtically scraping your prefs record since you could get unlucky Jul 16 19:06:49 thank you for the input dragorn Jul 16 19:06:50 Napalm: Not sure how well it would take to that; he's not, in any case. Have you tried providing a null as the default in that? Jul 16 19:07:06 http://pastebin.com/pS8zKxyK basically whenever i go to login page it logs in, however when I go back to the main page the logged in session is gone Jul 16 19:07:16 Napalm: all depends how it handles that object internally I suppose Jul 16 19:07:28 i think webview cant keep login session Jul 16 19:10:32 DarkChaoz: did you even read the docs? Jul 16 19:11:04 DarkChaoz: http://developer.android.com/reference/android/webkit/CookieManager.html#setAcceptCookie%28boolean%29 Jul 16 19:11:29 the rest of your cookie code is just plain wrong Jul 16 19:11:46 and all java classes should start with a captial letter Jul 16 19:11:51 *capital Jul 16 19:12:35 so i get rid of all the other cookie stuff? Jul 16 19:13:07 and use acceptcookie? or do i need to do the cookie thing properly Jul 16 19:13:15 Napalm it doesn't work, my code: http://pastebin.com/skbv1G8r Jul 16 19:13:25 dragorn: so if I change the second if solution to 'if (markerDataPrefs.getString(dateToday, "") != ""){', do you think it is better than solution 1? Jul 16 19:13:42 poor Napalm so much information for him Jul 16 19:13:59 jesperj: java strings shouldn't be compared with == or != as I recall. use .equals(..>) Jul 16 19:14:04 er (...) Jul 16 19:14:16 dragorn: oh yeah you are right. it should be equals Jul 16 19:16:11 rithea: wtf are you doing??! Jul 16 19:16:12 lol Jul 16 19:16:19 dragorn: besides that very important detail though Jul 16 19:16:40 thats just crazyh Jul 16 19:17:00 napalm so do i have to use setacceptcookies and do the whole cokie code properly? Jul 16 19:17:12 or would jusy accept cookie would work? Jul 16 19:17:39 Napalm, I'm trying to convert a format date (olddatestring) to the format date of system Jul 16 19:18:19 Can anyone look at my code for bluetooth app? I get toast message "Connected", but I don't get a string of text which I send it to phone. I have been using official android guide. Jul 16 19:18:31 rithea: are mDay, mMonth and mYear integers? Jul 16 19:18:36 Of course! Jul 16 19:18:37 this is my code: http://pastebin.com/gVvsTqCj Jul 16 19:19:02 hmm, can I use the transition API to switch between two drawables? Jul 16 19:20:21 Napalm maybe the problem is in the NEW_FORMAT variable... Jul 16 19:20:32 rithea: wait Jul 16 19:22:16 I need some help setting up ads Jul 16 19:22:21 I'm using mopub Jul 16 19:22:22 rithea: http://pastebin.com/mi5A5BJ0 Jul 16 19:22:29 I'm a bit confused about the whole sequence of events Jul 16 19:22:30 dragorn: do you think an if compare is a cleaner solution than the for loop? Jul 16 19:22:31 Agamemnus: heres some help.. good luck Jul 16 19:22:35 :) Jul 16 19:22:43 napalm: can you help me? Jul 16 19:22:52 hey Naplam for that URI builder on sms telephony, you mention this was good for api 18, did you mean api 19 or do you know for fact 18? Jul 16 19:22:55 Agamemnus: nope Jul 16 19:23:17 jesperj: I have no idea what you're doing in the grand scheme of things, how often that runs, etc. So no. Jul 16 19:23:23 (or why you're even doing it) Jul 16 19:23:37 does anyone know anything about mopub? Jul 16 19:23:47 lasserix: that was v19... check the api diff if you want to know what changes with sms in v18 Jul 16 19:23:53 Napalm it's very useful, thanks you a lot! Jul 16 19:24:04 lasserix: http://developer.android.com/sdk/api_diff/18/changes.html Jul 16 19:24:10 Is it possible to program my own actions for google voice control? Jul 16 19:24:42 dragorn: ok :-/ Jul 16 19:27:29 Can anyone look at my code for bluetooth app? I get toast message "Connected", but I don't get a string of text which I send it to phone. I have been using official android guide. Jul 16 19:27:30 this is my code: http://pastebin.com/gVvsTqCj Jul 16 19:27:43 I am trying to get the RemoteController api which has been introduce wiht api 19 to work with api14+ since the api is already available there but hidden. got everything to work so far, only problem left is that proguard seems to ruin my build which results in a AbstractMethodError on startup on devices any ideas on how to properly configure proguard? Jul 16 19:28:09 hey MrMaffen Jul 16 19:28:11 long time Jul 16 19:28:17 heyo Jul 16 19:28:19 heh yea Jul 16 19:28:32 do you remember i did that map demo for you like in 2010 Jul 16 19:28:43 some traffic lights on it Jul 16 19:28:48 or something Jul 16 19:29:03 it came in helpful to someone else the other day Jul 16 19:29:34 Napalm: hm no I can't remember it :( Jul 16 19:29:38 map demo with some traffic lights on it? Jul 16 19:29:44 like google maps? Jul 16 19:29:50 or hashmap? Jul 16 19:30:27 it was an image at the time.. in the example Jul 16 19:30:32 i gotta find it again.. 1 sec Jul 16 19:30:37 kk Jul 16 19:30:55 thought you were the guy I helped out a few months ago lol :D Jul 16 19:31:06 my memory's really bad apparently Jul 16 19:32:33 Naplam: the weird thing is I got a crash on a 4.3 device Jul 16 19:32:34 Napalm: ah you're simon right? Jul 16 19:32:44 how can i disable a webview interaction (all touch/click events whats not) Jul 16 19:33:10 MrMaffen: yea Jul 16 19:33:11 Napalm: I don't think you did a map demo for me, but you did some other stuff back in april for me. also a demo Jul 16 19:33:19 ah perhaps it was someone else Jul 16 19:33:19 meh Jul 16 19:33:21 :D Jul 16 19:33:34 yea, it was Hookem was the map one Jul 16 19:33:35 just found it Jul 16 19:33:37 :( Jul 16 19:33:48 Napalm: well now I'm curious. what is it? :) Jul 16 19:34:21 this was back in the early days Jul 16 19:34:28 he wanted to know how to animate a panel on top of content Jul 16 19:34:35 Napalm: https://github.com/slightfoot/android-mrmaffen-example Jul 16 19:34:42 i showed him layout_gravity within a FrameLayout Jul 16 19:34:48 ah yea Jul 16 19:34:48 ah ok Jul 16 19:34:51 thats the one Jul 16 19:34:54 well the other one Jul 16 19:34:58 yea hehe Jul 16 19:35:22 do you still want that? Jul 16 19:35:23 napalm what else do i need to make use of cookies to make login authentication work Jul 16 19:35:27 Napalm: are you by any chance a proguard pro ? :D Jul 16 19:35:28 i'll drop it if you dont Jul 16 19:35:36 Napalm: I'll fork it real quick Jul 16 19:35:38 MrMaffen: can you fork it now if you eant it Jul 16 19:35:40 cool Jul 16 19:35:52 i do know proguard Jul 16 19:35:58 Hey guys Jul 16 19:36:00 but i am not going to help with it.. i dont want a headache Jul 16 19:36:00 Napalm: forked it Jul 16 19:36:00 ;) Jul 16 19:36:04 haha :D Jul 16 19:36:06 my problem from last night has a new manifestations and I could use help Jul 16 19:36:08 that's a shame Jul 16 19:36:19 I have a listview. Previously, the item's layout had background=my_selector Jul 16 19:36:37 but as I use the d-pad to navigate off the top or bottom of the list, the top/bottom item remains selected Jul 16 19:36:48 so if there is a button above the list, both the button and the first list item have a selected state Jul 16 19:36:58 I solved this by using the listview's listSelector=my_selector Jul 16 19:37:12 but that only works for the background...I can't use it to select font color or image Jul 16 19:38:02 ProgramMax: you can change those selectors aswell. but it sounds like you are just hiding the problem Jul 16 19:38:15 yeah, I might be Jul 16 19:38:26 Could you help me with both? Jul 16 19:38:27 ProgramMax: do you children have something like focusable set to true or focusableInTouch set on? Jul 16 19:38:46 the list items? I don't think so but I can check right now Jul 16 19:39:20 not in my xml Jul 16 19:39:31 Napalm: Can you look at the code, thanks. Jul 16 19:39:35 I'm using a library to assist which may be doing it somewhere buried in the library but I'm going to guess it isn't Jul 16 19:39:51 ProgramMax: basicly the items will not stay selected/focused unless you ask for it Jul 16 19:39:56 http://pastebin.com/gVvsTqCj Jul 16 19:40:19 sindbad: no thanks, best of luck though Jul 16 19:40:35 so this is sort of normal behavior if I have either focusable or focusableInTouch set to true? Jul 16 19:40:42 hello .. how can i enable and disable a webview touch events? Jul 16 19:40:46 meh, i cbb to sort out cookie now I'll do it tomorrow Jul 16 19:40:52 I'll hunt thought the library's code for those Jul 16 19:40:58 napalm, u getting a headache with all these questions :p Jul 16 19:41:07 thanks :) Jul 16 19:41:18 also did u update ur webviewclient? Jul 16 19:41:18 if i override onTouch and return false will it reenable it? Jul 16 19:41:32 jaspertheghost: you could always extend WebView in a custom class and override onTouchEvent and dont call the super method Jul 16 19:41:51 jaspertheghost: or try calling mWebView.setEnabled(false); Jul 16 19:42:06 well i need the code to execute inside it... Jul 16 19:42:57 so to diaable overide ontouchevent return true ... to reenable return super.onTouchEvent(); Jul 16 19:43:02 jaspertheghost: why not just set a touch listener and always return true so the view doesnt get the messages Jul 16 19:43:05 that might work Jul 16 19:43:27 jaspertheghost: thats a defo way to make it work Jul 16 19:43:35 g00s: Are you here? Jul 16 19:43:35 in simplistic terms Jul 16 19:43:53 cool ill check out when i get home and can edit the source :) Jul 16 19:44:34 jaspertheghost: you should probably send a cancel motion event to the super class when you disable the view if the view might have been interacting with it at the time the state of the webview wouldnt update like a button would be stuck down Jul 16 19:44:53 if the *user might Jul 16 19:45:30 by sending a cancel motion event it will cancel any current gesture being done Jul 16 19:46:29 I found out that if you take the time between 2 heart beats and plot that, you can actually see your breathing cycle Jul 16 19:47:45 comes from an app we are working on. Was taking a video of the sensors page, noticed that breathing in increases heart rate and breathing out decreases it Jul 16 19:47:49 napalm i havent seen anything about how i might be able to do a cancel motion event... Jul 16 19:49:36 jaspertheghost: super.onMotionEvent(MotionEvent.obtain(SystemClock.uptimeMillis(), SystemClock.uptimeMillis(), MotionEvent.ACTION_CANCEL, 0, 0, 0)); Jul 16 19:50:00 jaspertheghost: actually you should recylcer the motionevent Jul 16 19:51:04 jaspertheghost: something like this http://pastebin.com/uFQ4WBqU Jul 16 19:55:29 let me tell u the underlying bug thats making me just use this as the fix ..... i have a fixed position div thats transparent that has a loader animation.... if i click on the div before it dissapears and cancels out .... whjen it dissapears my whole webview locks Jul 16 19:56:47 jaspertheghost: sounds like your div is taking the focus then it hides and keeps focus.. Jul 16 19:56:54 jaspertheghost: probably javascript related Jul 16 19:57:57 it does have a z-index set to be infront Jul 16 19:58:06 do i need to reset the z index and focus? Jul 16 20:01:21 not if it is properly closed. Jul 16 20:02:41 ? Jul 16 20:02:49 i set the divs display to none Jul 16 20:03:00 and its only when i click on the div htat i bring to the forefront Jul 16 20:03:12 if i dont "touch the loader" it works fine Jul 16 20:04:06 which is why i was going to disable the webview click event while the loader is there so this bug doesnt happen Jul 16 20:05:59 Hi, I've recently learnt about NotificationListenerService and would like to use it in my app. I see that it requires a minSdk of 18, where as my app has a minSdk of 15. I am wondering if there is a way to keep my minSdk to 15 and use the NotificationListenerService when users are on 18+? I think that for some API 16+ features I can write them in my code and add coditions to only use them when the device has a high enought API Jul 16 20:06:00 version, but for NotificationListenerService I can't seem to do that as I need to add it to my AndroidManifest and thus gradle won't let me compile with my minSdk 15 version. Is there any way around this so that I may compile my app with a minSdk 15 and use NotificationListenerService when the user is on a 18+ device? Thanks! Jul 16 20:06:09 Can someone here explain to me messages? Jul 16 20:06:32 is there an example of how to use them Jul 16 20:07:36 the library I am using isn't setting focusable or focusableInTouch anywhere Jul 16 20:07:48 i'm writing an extension for Array, and i want to define a certain method but enforce that the parameterized type is an Equatable. how can i do this? Jul 16 20:08:59 OK, im stuck. I cannot seem to install the android-sdk with in OSX 10.9 Jul 16 20:09:07 I understand, don't worry Jul 16 20:09:23 I can install and run the sdk manager but nothing will update Jul 16 20:09:38 keep getting things like "Unexpected Error installing 'Android SDK Platform-tools, revision 20': java.lang.IllegalStateException: Manager is shut down." Jul 16 20:10:05 been at this for hours... Jul 16 20:14:23 danielmahon: How did you install android-sdk? Jul 16 20:15:28 danijoo: every way ;), ive tried homebrew, direct download and unzip, android studio... both 22.6.2 and 23 versions, 23 wont launch the sdk manager at all, 22.6.2 gives me issues when install packages Jul 16 20:15:35 Napalm: the library I'm using isn't setting focusable or focusableInTouch anywhere Jul 16 20:15:43 hm thats strange.. Jul 16 20:15:57 have you tried opening the manager as administrator from terminal? Jul 16 20:16:11 danijoo: yes, sudo makes no difference Jul 16 20:16:34 weird Jul 16 20:16:47 would have bet its a permission problem Jul 16 20:18:04 my brain seems to think that "java.lang.IllegalStateException" error has somethign to do with "apache" or however the sdk manager is downloading the packages Jul 16 20:18:40 but im not sure why apache would have anything to do with it Jul 16 20:19:44 not really a fix for your problem but If all you want is start developing you could download the components manually Jul 16 20:19:47 without the manager Jul 16 20:21:03 whats the process for that? Jul 16 20:21:41 never did that but maybe it works: http://qdevarena.blogspot.de/2010/05/download-android-sdk-standalone-for.html Jul 16 20:23:15 basically all you need to do is download the correct archives and extract them to the correct folder inside of the android-sdk folder Jul 16 20:23:56 danijoo: thanks, ill have to try that after I give-up in the next few minutes Jul 16 20:25:18 good luck :) Jul 16 20:26:12 has anyone experienced problems using actionbarsherlock with alphabetic menu shortcuts? Jul 16 20:26:25 I am just starting to learn about NDEF format for NFC. I have a basic questions - can the NDEF records actually do anything in the apps on your phone? like I know they can open google maps for instance, but can they open google maps, and then redirect to a certain location by commanding the app? Jul 16 20:27:37 yes Jul 16 20:27:46 in_deep_thought: NDEF records are just text Jul 16 20:28:12 in_deep_thought: but they can be links to url's which an app on the device can interpret like google maps Jul 16 20:29:26 Napalm: but so that text (the payload), can be a url, but can it also be a comand? like “take picture on default camera app”, or “load specific coordinates in google maps”, etc Jul 16 20:31:52 in_deep_thought: its hte same thing. an app on your device can then see the message and act on it Jul 16 20:32:58 Napalm: Ok cool. To learn what these records actually are, should I be looking at the documentation for the specific app? like googling “camera android api ndef records” and then itll have a record for everything you can do on the camera app for example? Jul 16 20:35:10 erm Jul 16 20:35:19 just store a standard intent url Jul 16 20:36:16 in_deep_thought: sounds like you are searching for the wrong thing.. its nothing to do with ndef Jul 16 20:36:31 ndef is just a 'means to an end' Jul 16 20:37:19 really? like com.android.google.maps is the ndef record which opens google maps when called right? Jul 16 20:38:10 thats a package but yea Jul 16 20:39:19 ok so say I want an nfc tag to open google maps, then redirect google maps to a certain lat, long. Would I first call com.android.google.maps, and then call something like com.android.google.maps.goto.latlong(x,y) ? I realize thats probably incorrect syntax Jul 16 20:40:34 in_deep_thought, you'd just send the location in the intent Jul 16 20:44:38 or you just encode a map URI into the tag and call it done Jul 16 20:44:50 since google maps and other mapping sw should all handle a map uri Jul 16 20:47:38 in_deep_thought see if this helps, this is some code that shares a lat / lon and my current location with nav. using maps to show a point shouldn't be much different. http://pastebin.com/7L4nbgSL Jul 16 20:49:17 mattblang: so this would all go into a file that is uploaded to the tag right? Jul 16 20:50:21 in_deep_thought wait, sorry. what are you trying to do again? this will allow you to open maps or nav from your Android app, and have maps or nav automatically initialize to a place or route Jul 16 20:50:38 in_deep_thought: no Jul 16 20:51:23 mattblang: oh well Im trying to put this info on an nfc tag in ndef format. So that when an android is placed next to it, it opens google maps and goes to a locations (that was just an example really), Im just trying to wrap my head around what I would need to get onto the tag in order for that to happen Jul 16 20:53:52 in_deep_thought oh, ok. what I posted isn't of interest then. Jul 16 20:55:00 in_deep_thought: http://nfcpy.readthedocs.org/en/latest/topics/ndef.html Jul 16 20:59:12 in_deep_thought: I suspect you could include a google maps url to a specific lat/long Jul 16 20:59:45 And then the user will likely get a disambiguation dialog, and they'll have the option to load the url with google maps Jul 16 20:59:54 JesusFreke: yes I think I could just like a browser google maps url Jul 16 20:59:59 yeah Jul 16 21:03:39 What is the magic iptables incantation to get genymotion to (transparently) route http/https traffic to a proxy running on its host? I've been trying "iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080" to no avail Jul 16 21:04:23 kbs, try -I instead of -A, I = first A = append Jul 16 21:04:42 it might just be that the connection is satisfied earlier than your rule Jul 16 21:04:49 Let me test that Jul 16 21:07:51 doesn't seem to have made a difference. FWIW, here's some output from adb shell on the current rules - http://paste.debian.net/hidden/3eaedd7b/ Jul 16 21:08:41 (I've placed the rules on both eth0 and eth1 just to see if anything happens) Jul 16 21:10:59 * kbs is also open to any suggestions on getting transparent proxy working on genymotion, whether or not it involves iptables :) Jul 16 21:11:31 I have the following in my gradle script: Jul 16 21:11:31 googleCompile 'com.google.android.gms:play-services:4.0.30' Jul 16 21:11:43 and that works fine, but when I set the version to 5.0.77 Jul 16 21:12:12 it says it cannot find it. Isn't it supposed to download it automatically from the android dependency repo? Jul 16 21:12:30 or is that linked to my local android sdk? Jul 16 21:18:10 whomp Jul 16 21:20:20 hoi Jul 16 21:20:23 papa? Jul 16 21:21:18 hello? Jul 16 21:21:38 wow. the v14 EAP of idea CE has really cleaned up a lot of issues. Jul 16 21:22:06 it's on my todo list, how's the stability ? Jul 16 21:22:07 rgr can you see me? am i alive. I am android Jul 16 21:23:46 hello? Jul 16 21:23:59 takn: stop being a dick, yes your annoying messages are being seen Jul 16 21:24:21 thank you. Jul 16 21:25:21 I seem to have forgotten this. If you're in a ListActivity, you click an item and go to another activity to modify it. When you go back to the ListActivity, how does it know the item's changed? Jul 16 21:25:57 There is a way to detect the change without re-setting the list adapter, right? Jul 16 21:26:06 notifyDatasetChanged Jul 16 21:27:28 bankai_au, well, looks like cloudant people messed up then since calling notifyDatasetChanged in onResume does nothing :/ Jul 16 21:28:07 bankai_au: +1 lol. Jul 16 21:33:15 bankai_au, actually, how will that work if you only sent the object over to the other activity? Jul 16 21:33:41 and updated it in the backend sqlite db? Jul 16 21:36:57 notifyDatasetChanged should update your cursor Jul 16 21:47:50 takn, thanks. It seems like there's some problem that is causing notifyDatasetChanged to not work Jul 16 21:48:03 eep, just posted a bunch of nonsense in #android ... it's been a while Jul 16 21:48:24 "my string array of emojis causes assetmanager to barf", "JNI WARNING: NewStringUTF input is not valid Modified UTF-8: illegal start byte 0xf0 string: '😩' in Landroid/content/res/AssetManager;.getArrayStringResource:(I)[Ljava/lang/String; (NewStringUTF)" Jul 16 21:48:44 guess I'm being stupid, how do you store emojis in a resource xml file? Jul 16 21:51:24 feesh Jul 16 21:51:29 yo Jul 16 21:51:38 brohound, bromulan, brometheus, bromastiff Jul 16 21:52:12 you have to encode them in utf-8 or utf-16 Jul 16 21:52:22 how are you currently doing it? Jul 16 21:52:28 \u0f12345 Jul 16 21:52:30 ? Jul 16 21:52:44 ah Jul 16 21:52:47 fun times Jul 16 22:01:40 android-maven-plugin users: is there a way to make a "default" android.device= parameter, or make it pay attention to $ANDROID_SERIAL? Jul 16 22:02:29 * kbs would have thought using numeric character entity (&#nnn;) would be the safest way, but haven't tested it. Jul 16 22:17:32 are there any android-maven-plugin users left? Jul 16 22:17:37 I thought they'd all abandon ship for gradle already Jul 16 22:23:47 hi all Jul 16 22:24:44 can someone explain to me why URL.openconnection().getinputstream() is generating an exception Jul 16 22:25:06 android.os.networkonmainthredexception Jul 16 22:26:05 hufflepuff: have you tried to look for the documentation of that exception? Jul 16 22:26:10 Its amazing how this hasn't been fixed yet https://code.google.com/p/android/issues/detail?id=56062 Jul 16 22:26:30 it would appear that android doesn't like you doing network operations on the main thread Jul 16 22:26:52 yes, it would appear so indeed Jul 16 22:26:58 any reason for that Jul 16 22:27:19 i mean, i essentilly want the operation to be blocking Jul 16 22:27:28 at least from within my app Jul 16 22:28:27 lool Jul 16 22:28:38 hufflepuff: so you want it to pause the ENTIRE app Jul 16 22:28:42 lol Jul 16 22:28:49 you want your app to hang and crash while it waits for the network? Jul 16 22:29:09 hufflepuff: you should do it in the background and setEnabled(false) your UI Jul 16 22:29:10 napalm, all the app does is grab files from one website and transfer them to another Jul 16 22:29:17 lol Jul 16 22:29:20 thats all? Jul 16 22:29:25 yep Jul 16 22:29:26 thats a crap ton Jul 16 22:29:30 to do on the main thread Jul 16 22:29:47 but its completely blocking Jul 16 22:30:42 alright Jul 16 22:31:20 napalm, could you please elaborate Jul 16 22:32:13 erm Jul 16 22:32:18 no not really Jul 16 22:32:36 hufflepuff: if you perform a long operation on the main thread, you are basically making your application completely unresponsive while the operation is occuring, because it can't receive/process/respond to UI events. Jul 16 22:33:46 hufflepuff: dont you want to display a progress of how far the transfer has gotten? Jul 16 22:33:46 you know you want to ;) Jul 16 22:33:47 Even something like disk access is generally better to do off of the main thread Jul 16 22:34:24 napalm, its not necessary but okay Jul 16 22:35:48 How can I register my broadcastreceiver? Jul 16 22:36:00 if I've created it within my class Jul 16 22:36:16 eg. private final BroadcastReceiver receiver = new BroadcastReceiver(){} Jul 16 22:36:24 this is probably a stupid question but would using Java 7 cause any compatibility issues for me (with older devices and so on)? Jul 16 22:50:55 is there some way to center the text in the button vertically independent of size? The way it is now, if I set the size past a cerain point it is justified to the bottom. http://www.imagebam.com/image/855109339274589 Jul 16 22:51:12 i uh. i set a portion of a layout to View.GONE in a Fragment, which is inside a ViewPager. it actually has a huge impact on UI drawing speed... Jul 16 22:51:23 did anyone encounter this uh.. problem? Jul 16 23:02:27 hrmmm Jul 16 23:04:48 Moony22: http://developer.android.com/reference/android/content/Context.html#registerReceiver(android.content.BroadcastReceiver, android.content.IntentFilter) Jul 16 23:04:53 this really isn't that hard to find :) Jul 16 23:07:13 <_Auron_> 4 out of 5 guns implemented, whee Jul 16 23:08:42 Why do i get a error after i try to build my project in android? Anyway to fix this? Jul 16 23:09:12 never had this prob. Jul 16 23:13:56 mooney context.registerReceiver(recieverName, intentfiltertoregisterfor) Jul 16 23:14:02 that's dynamic Jul 16 23:14:06 you can also do it in manifest Jul 17 00:02:09 With R.arrays, how can I retrieve an item by its value or any other way then just the index position Jul 17 00:37:43 use the appropriate data structure... Jul 17 00:48:59 argh i just fixed a bug i've been nutting out for days and i've changed so much i can't recall what i did to fix it >_< Jul 17 00:51:29 anyone have tips on improving gradle's execution speed? Jul 17 00:52:00 it takes me a full 3 minutes to run my app Jul 17 00:52:00 eclipse wasn't this bad Jul 17 00:52:00 @_@ Jul 17 00:52:23 wow 3 minutes ? does making it run in 'offline' mode help ? Jul 17 00:52:45 well i sure as hell hope it isnt downloading the dependencies each time Jul 17 00:57:55 gradle takes longer for me too but definitely not that long Jul 17 01:05:57 has anyone here used Android Annotations? Would they recommend? https://github.com/excilys/androidannotations Jul 17 01:06:18 any cardslib fans here? Jul 17 01:08:43 Pyuruku: tried increasing initial heap memory? Jul 17 01:09:19 no, lemme see Jul 17 01:09:41 I dont run out of memory though Jul 17 01:10:59 if you increase the limit, it might run faster and not pause for gc Jul 17 01:11:20 I haven't seen gains in gradle syncs but builds go lot faster Jul 17 01:11:41 ill try it tomorrow, time to head home Jul 17 01:38:29 hey I have a form that lags a bit when brought into focus - any ideas on what might be causing this'/ Jul 17 01:39:40 ? Jul 17 01:40:17 rather, fields on a form - the form is fast, but when fields are brought into focus, they lag the interface for maybe 500-1000ms Jul 17 01:41:15 when you say "form", do you mean "layout containing edittext widgets"? Jul 17 01:46:02 gotcha, in which case... Jul 17 01:46:57 suyase: IRC works better when you actually communicate Jul 17 02:07:46 getting Failed to find errors from gradle for a Maven dependency I know exists: compile 'com.j256.ormlite:ormlite-android:4.48' Jul 17 02:07:55 in Android Studio 0.82 Jul 17 02:10:26 figured it out, had Gradle in offline mode Jul 17 02:27:18 anyone know if there exists something similar to Sketch, but for Android? http://bohemiancoding.com/sketch/ Jul 17 02:33:23 what's does it do, make images or something ? Jul 17 02:37:50 looks like it makes iOS wireframes and icons Jul 17 02:44:30 can I use latest gradle (v2) with AS? Jul 17 02:44:55 ping g00s -- this is your time to shine Jul 17 02:45:41 can you show one fragment on top of another? Jul 17 02:45:51 i'm trying to avoid having a monolithic fragment **** ENDING LOGGING AT Thu Jul 17 02:59:59 2014