**** BEGIN LOGGING AT Wed Nov 20 02:59:58 2013 Nov 20 03:15:26 in eclipse, when running a command line tool with a really long loop (that will probably not finish...) Nov 20 03:15:33 you want to see the last value that the loop encountered Nov 20 03:15:57 would it run faster in debug mode (to pause it before exiting), or to print out the values as it goes along? Nov 20 03:16:06 or is there a 3rd option like -- print out when inturrupted or something? Nov 20 03:16:25 ah crap, this is the android channel Nov 20 03:16:34 well, either way, java is used in android.... :/ Nov 20 03:24:24 hi Nov 20 03:24:37 has anyone here have tried using a real barcode scanner gun with a tablet? Nov 20 03:54:00 how many dependencies is bad? - http://pastie.org/8494405 Nov 20 03:54:10 my app is so small yet uses so many libraries Nov 20 03:57:04 sadly cwac's maven repo is outdated so im gonna use the jars for thta Nov 20 03:57:09 just ensure you shake that tree (that is, use proguard) Nov 20 03:57:16 ofc Nov 20 04:00:54 hello, im building an app in eclipse, i select "build all" but nothing happens Nov 20 04:01:12 or rather select the project, right click"build project" Nov 20 04:01:16 and nothing happens Nov 20 04:02:45 http://developer.android.com/sdk/installing/installing-adt.html did you follow this ? Nov 20 04:03:29 dunno, its the bundle thing whatever, i can debug the code Nov 20 04:03:30 how do i get android chrome to stop showing the blue square when i select something Nov 20 04:03:32 in the bfrowser Nov 20 04:03:35 KILLIN ME SMALLS Nov 20 04:03:53 lol Nov 20 04:03:56 your killin me smalls. Nov 20 04:04:22 user-select none wont do it Nov 20 04:04:28 nor user-select rgba(0,0,0,0); Nov 20 04:06:14 YESSSS Nov 20 04:06:18 -webkit-tap-highlight-color Nov 20 04:12:57 fucking rubbish Nov 20 04:14:25 lol he is a bit ticked Nov 20 04:21:14 hi, how can i include google play service in Android Studio? Nov 20 04:22:44 http://developer.android.com/google/play-services/setup.html it tells you here Nov 20 04:29:12 bankai_, could not find com.google.android.gms:play-services:4.0.30. Nov 20 04:29:57 i put com.google.android.gms:play-services:3.1.36 and i have no error Nov 20 04:30:59 other problem Gradle: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version'). Nov 20 04:31:32 are you the same fella who was talking about this a few hours ago ? Nov 20 04:33:30 … uh … I flashed my nexus 7 2013 wifi to KitKat a few days ago. Now it downloaded an update to 4.4, is this going to be safe to install? Nov 20 04:33:52 "downloaded an update to 4.4" that is in quotes because its already at 4.4... Nov 20 04:34:00 no Nov 20 04:34:11 no? Nov 20 04:34:12 there was an update to 4.4 today Nov 20 04:34:19 phew Nov 20 04:34:20 (so my boss told me 30 seconds ago ) Nov 20 04:34:30 if I call startActivityForResult from a PreferenceFragment, who gets the onActivityResult? Nov 20 04:34:56 "this" does, durka42 Nov 20 04:35:03 this.startActivityForResult ... Nov 20 04:35:09 right Nov 20 04:35:10 okay Nov 20 04:35:31 hr 13 of work today... Nov 20 04:35:37 #thuglife Nov 20 04:37:45 Well the update didn't brick my device, you're all safe to try if you were worried Nov 20 04:44:54 Anybody here use Retrofit? Nov 20 04:45:28 Having a bit of a logical problem with callbacks Nov 20 04:55:18 blah Nov 20 04:55:22 okay maybe this is a stupid question Nov 20 04:55:37 anyway my PreferenceFragment registers itself as the onSharedPreferenceChangeListener Nov 20 04:55:43 register in onResume, unregister in onPause Nov 20 04:55:45 however Nov 20 04:56:09 it calls startActivityForResult, and the parent activity receives onActivityResult, and changes a preference Nov 20 04:56:21 but the fragment is still paused, so it doesn't receive the event! Nov 20 04:56:27 is there any harm in not unregistering the listener in onPause? Nov 20 05:01:24 So I'm using AppCompat support library and want to add an action bar to an activity that already extends ExpandableListView. Do I have to make an interface? Nov 20 05:01:59 minSdkVersion = "14" is the response i get a lot around here Nov 20 05:05:26 desmin88: I will try that lol Nov 20 05:11:08 ugh, dependency management is AS still sucks horribly Nov 20 05:11:24 or ive got something horribly misconfigured Nov 20 05:11:33 probably the latter Nov 20 05:11:37 agreed, the latter Nov 20 05:11:43 dependencies in as are a breeze Nov 20 05:12:51 the simpel act of adding an external lib is about to kill me; edit the gradle file, AND add it to project structure, then AS throws cryptic errors about project root Nov 20 05:13:36 restarting AS again, thast seesm to do some magic sometimes Nov 20 05:14:18 lol. Nov 20 05:14:33 well I've been developing in it fine for 3 months Nov 20 05:14:34 All I do is drop the lib in the folder, rebuild project, good to go. Nov 20 05:14:56 'drop the lib in the folder' - gradle cant find it Nov 20 05:15:13 trying again Nov 20 05:15:26 paste your gradle build file and the name of your library Nov 20 05:15:40 is it bad UX to put a map inside a tab? Nov 20 05:16:38 regreddit: I've set it up in a way so just adding the lib jar gradle catches it Nov 20 05:20:32 regreddit: any luck? Nov 20 05:21:21 hi. i add google play service jar in Android Studio, in layout i put android:id="@+id/map" Nov 20 05:21:21 android:layout_width="match_parent" Nov 20 05:21:21 android:layout_height="match_parent" Nov 20 05:21:21 android:name="com.google.android.gms.maps.SupportMapFragment" /> Nov 20 05:21:38 i have this error http://pastebin.com/U4sExW5S Nov 20 05:21:55 desmin88, https://gist.github.com/nikmartin/b0e33fba7ab6a45b278b Nov 20 05:22:06 pepigno75: is that on a rotation/resume ? Nov 20 05:22:26 no bankai_ Nov 20 05:22:45 AS IDE resolves the type fine, just gradle is bitching, and not even about the correct type Nov 20 05:22:54 you haven't included the jar properly then Nov 20 05:23:38 and httpmime-4.3.1.jar is sitting right next to gson-2.2.4.jar, which has been building for months Nov 20 05:24:08 remove your individual compile lines, add this: compile fileTree(dir: 'libs', include: '*.jar'), then sync project to gradle files and do a clean build Nov 20 05:24:17 i've cleaned done every gradle-y thing I know to do Nov 20 05:24:24 bankay i put jar in libs folder after compile files('libs/google-play-services.jar') Nov 20 05:24:24 also. Nov 20 05:24:30 actually just do this Nov 20 05:25:05 This is what I would change it to: http://pastie.org/8494519 then sync, then clean build Nov 20 05:25:33 i bet that the mime jar is also on the maven repo Nov 20 05:26:23 yes it is Nov 20 05:26:33 if i write in Activity class GoogleMap i see autocompile so jar is present Nov 20 05:26:34 desmin88, an old one is, but tis like 3 version back Nov 20 05:26:59 http://pastie.org/8494521 Nov 20 05:27:03 use that. Nov 20 05:27:07 like 4.0.1RC1 Nov 20 05:27:20 org.apache.httpcomponents:httpmime:4.3.1 Nov 20 05:27:22 is on there Nov 20 05:27:24 the latest Nov 20 05:27:30 so my last pastie should work a-ok Nov 20 05:28:22 imo i will always use the maven repo over jars Nov 20 05:28:24 much easier Nov 20 05:29:03 so after changing your gradle to that, sync, clean build Nov 20 05:30:19 trying now Nov 20 05:30:33 ok Nov 20 05:30:42 Has anyone here used retrofit by square? Nov 20 05:30:51 might be a dumb question...but how would i load a fragment xml resource to use in FragmentManager? Nov 20 05:30:58 same error: cannot access org.apache.http.entity.ContentType Nov 20 05:30:58 class file for org.apache.http.entity.ContentType not found Nov 20 05:31:25 but clicking that error takes me to: ByteArrayBody bab = new ByteArrayBody(data, "image.jpg"); Nov 20 05:31:36 1 sec Nov 20 05:32:12 do you need to include the other apache http dependencies? Nov 20 05:32:26 httpcomponents Nov 20 05:32:41 not sure, the IDE is resolving every class fine - takes me straight to the class definition Nov 20 05:32:50 i can try that Nov 20 05:33:09 yeah try to include the relevant dependencies it might need Nov 20 05:33:44 Hi, it not a good idea to put a list inside a scrollview , then how about put a gridview inside a scrollview? Nov 20 05:34:22 gridview already is scrollable Nov 20 05:34:32 why would you put it in a scrollview Nov 20 05:34:55 frankdrey, do you talk with me? Nov 20 05:36:13 pepigno75, ? Nov 20 05:36:43 nothing Nov 20 05:36:58 i'm trying to give it an object with "Fragment fragment_numbers = getLayoutInflater().inflate(R.layout.fragment_nubmers);" but it can't resolve inflate() :S Nov 20 05:37:41 thats now how it works i dont think Nov 20 05:38:16 http://www.vogella.com/articles/AndroidFragments/article.html#usingfragments_define Nov 20 05:39:33 when i try to exit out of the project structure dialog, I get: http://pastie.org/8494533 Nov 20 05:40:30 hmm Nov 20 05:40:34 wait Nov 20 05:40:43 what I'm doing is having a fragment layout without a class... Nov 20 05:40:47 that's probably...very wrong Nov 20 05:40:47 :p Nov 20 05:41:00 perhaps read that entire link i sent you so you know how they work Nov 20 05:41:08 yeah, I started reading it, thanks :D Nov 20 05:41:14 np Nov 20 05:41:24 damn Nov 20 05:41:33 retrofit cut down my code by like 3 classes Nov 20 05:41:34 so easy Nov 20 05:43:09 desmin88, because I have a activity with a long text and a Listview at the bottom, I have make the whole page scrollable,or the user will can only scroll the listview , image this: http://imgbin.org/images/15728.png Nov 20 05:43:30 ahh i see what you mean Nov 20 05:43:46 you could make that long text an item of the list, idk Nov 20 05:45:01 so is it a problem if I never unregisterOnSharedPreferenceChangeListener? Nov 20 05:46:22 make the text as an item meet two problems: 1 They have different style. 2 The long text is just an example, in fact it stands for a lot views like textview,button and etc. Nov 20 05:47:15 reconsider your ui layout or put it in a scroll view Nov 20 05:47:15 idk Nov 20 05:47:45 :( Nov 20 05:49:48 is there a trick to get project structure dialog to display? it only shows SDK location now. I know this was an issue a while back, but I guess it still is Nov 20 05:50:00 so i cant search maven anymore, but could 5 mins ago Nov 20 05:50:12 double click your project tab "tab" top left Nov 20 05:50:14 opens it for me Nov 20 05:50:31 or do I need to be just editing build.gradle directly and stop futzing with the project structure dialog Nov 20 05:50:43 wait Nov 20 05:50:45 ? Nov 20 05:50:49 why are you touching project structure Nov 20 05:50:58 thats where you search maven Nov 20 05:51:15 File > Project Structure Nov 20 05:51:34 search maven? Nov 20 05:51:35 1 out of 10 or so times, you'll get the 'old' dialog that lets you search maven for libs Nov 20 05:52:09 just ignore the project structure Nov 20 05:52:13 let gradle do its thing Nov 20 05:52:16 if you want to search maven Nov 20 05:52:17 liek i said, i think its a bug in AS - Google is trying to get that dialog to never display Nov 20 05:52:18 go to its website Nov 20 05:52:21 but it does sometimes Nov 20 05:52:30 ok Nov 20 05:54:36 so how am i supposed to know what topout in build.gradle from this? http://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.3.1/ Nov 20 05:54:47 thast what searching on the maven site gives me Nov 20 05:55:14 where do I get this from: compile 'org.apache.httpcomponents:httpmime:4.3.1' Nov 20 05:55:44 http://mvnrepository.com/artifact/org.apache.httpcomponents/httpmime Nov 20 05:55:46 click version you want Nov 20 05:55:48 am I not searching right? Nov 20 05:55:48 click gradle Nov 20 05:55:50 copy and paste Nov 20 05:56:15 hmm, TIL Nov 20 05:56:21 mhm Nov 20 05:58:12 is it possible to manually update android on a device Nov 20 05:58:40 i have a phone i dont care about so if i brick it its whatever Nov 20 05:59:03 o0elise0o: #androidroot Nov 20 05:59:18 why android root Nov 20 05:59:33 "Android application development" Nov 20 05:59:40 will they really talk about compiling the os Nov 20 05:59:52 "Root/custom ROMs, head to #android-root" Nov 20 06:00:03 oh this is for app dev not android dev Nov 20 06:00:06 wtf Nov 20 06:00:20 ok i solved problem :) Nov 20 06:00:31 i dont want a custom rom i want stock android Nov 20 06:00:44 "Root/custom ROMs, head to #android-root " Nov 20 06:01:32 .. Nov 20 06:01:38 just go to that channel Nov 20 06:01:40 srs Nov 20 06:01:49 so whats the android os dev channel Nov 20 06:01:54 #android-root Nov 20 06:02:21 how is root os dev Nov 20 06:02:32 "Root/custom ROMs, head to #android-root" Nov 20 06:02:51 the actual google developer phone doesnt need to be rooted Nov 20 06:03:02 "Root / custom ROMS" Nov 20 06:03:21 you clearly arent understanding me Nov 20 06:03:58 oh? Nov 20 06:05:19 is there an android os dev channel? Nov 20 06:05:28 #android-root Nov 20 06:05:53 or #android Nov 20 06:05:57 just say you dont know if you dont Nov 20 06:06:07 ... Nov 20 06:06:16 what do you even mean by 'os dev' Nov 20 06:06:48 the operating system itself Nov 20 06:06:54 so, android. Nov 20 06:07:00 now what do you mean by dev Nov 20 06:07:13 aos Nov 20 06:07:19 aos? Nov 20 06:07:20 AOSP Nov 20 06:07:23 o Nov 20 06:07:29 #android or #android-root Nov 20 06:07:31 really. Nov 20 06:07:46 like i want to git aosp and compile it for my phone Nov 20 06:08:08 so #android or #android-root Nov 20 06:08:15 i already rooted it so i can save their drivers i assume Nov 20 06:08:34 o0elise0o: no idea, but im guessing somewhere aroun dhere would help http://source.android.com/source/building-devices.html Nov 20 06:08:57 so does anyone use AIDE? Nov 20 06:09:53 no but thats hilarious, i should try it out Nov 20 06:10:08 I have it installed but I've never tried to use it... Nov 20 06:11:05 ive been using the cordova version of it on my tablet Nov 20 06:11:57 ew, cordova Nov 20 06:12:12 currently doing a webview based app, and i wouldn't recommend it to anyone haha Nov 20 06:12:22 webview apps are poopy Nov 20 06:12:30 absolutely horrible Nov 20 06:12:37 maybe better if they store the html locally Nov 20 06:12:38 well i write js as my primary language Nov 20 06:12:47 but ours is literally a wrapper around the website Nov 20 06:12:48 youll still never get close to native Nov 20 06:12:59 way better than loading the new pages every time Nov 20 06:13:03 true Nov 20 06:13:25 its a trade off tho Nov 20 06:13:44 trading time for quality maybe Nov 20 06:13:49 ^ Nov 20 06:14:00 if you dynamically load from a url the app wont work in a number of situations Nov 20 06:14:15 unless you changed that part of the cordova library Nov 20 06:14:38 with aide you have both options Nov 20 06:15:08 i'm quitting for the day - this thing makes me want to stab myself in the face Nov 20 06:15:09 Execution failed for task ':dexDebug'. Nov 20 06:15:09 > Could not call IncrementalTask.taskAction() on task ':dexDebug' Nov 20 06:15:16 itll include whatever files you want and they are accessible in the root of the url Nov 20 06:15:45 gradle crashes Nov 20 06:18:11 compile fileTree(dir: 'libs', include: '*.jar') was including everything again, so i may be un-stabby now Nov 20 06:21:56 clean Nov 20 06:22:03 then do it again Nov 20 06:48:42 so i have a project, they dumped the entire dir. I tried creating a new project, and replacing the files in working dir. but thinking that was a bad idea. getting unable to resolve andriod-10, I downloaded the 10api Nov 20 06:48:50 whats the proper way to upload this project into eclipse? Nov 20 07:07:31 XMLnewbi: have tried turning it off and on again ? ? Nov 20 07:08:23 i got it, there is import root dir /facepalm looked like it was only letting me open a single file at first Nov 20 07:14:35 does itemPosition in ActionBar.onNavigationItemSelected start with 0 or 1? Nov 20 07:22:05 starts at 0 :) Nov 20 07:23:57 assume everything is 0 based index unless otherwise specified Nov 20 07:25:04 alright, i'll remember that, thanks :) Nov 20 07:35:53 * frankdrey spent 30 minutes debugging to find out he left off a 'break;' on a switch case... Nov 20 07:35:55 *sigh* Nov 20 07:52:14 Anybody here use retrofit Nov 20 07:52:22 I need some help Nov 20 07:52:34 With callbacks. Nov 20 07:55:45 How can I sort of 'tag' each callback response so I can either 'accept' or 'deny' it? Or just shelve the whole fetching completely. Is this possible? Nov 20 07:57:19 I've looked in the source and I can't seem to find a way to do this Nov 20 08:09:41 hmmmmmmm. i dont think this is possible Nov 20 08:19:00 I havent even heard of retrofit :P Nov 20 08:25:48 Fumler: its one of the awesome libraries by square Nov 20 08:29:39 Hi all, for my emulator, I try to set the GPU emolation on "yes" but if I edit my adv again, it's back to "no", how can I fix this? Nov 20 08:32:12 when I create a new project with android studio, it has a dependency for com.android.support:appcompat-v7 configured, but this library cannot be found so it cannot be built right after creating... what am I doing wrong? Nov 20 08:33:10 ohcibi you have to run the sdk manager, under Extras grab support library repo or something Nov 20 08:35:46 ESO only 1.5 gbs to go Nov 20 08:41:27 hm okay.. it builds now, but the IDE still shows errors... also with a gradle project I must build the project once before R is correctly generated, so there are also errors shown in the IDE were there are none... seems quite buggy this gradle-stuff Nov 20 08:46:44 is there a proper way to ignore fired of onItemSelected when initialising a listener with Spinner.setOnItemSelectedListener ? All the solutions i'm seeing involve flag variables, counters, booleans etc. seems a bit hacky Nov 20 08:48:29 make your own spinner Nov 20 08:48:40 bah i was hoping someone wouldn't say that Nov 20 08:49:10 or just extend Nov 20 08:49:20 if thats possible Nov 20 08:51:30 g00s: have you already successfully created a new project with android studio without it showing any errors? Nov 20 08:51:57 ohcibi: i have Nov 20 08:53:48 hm okay.. needed to reload the project..... Nov 20 08:59:23 The android debug monitor can not connect to the real device? Nov 20 09:00:12 I mean the Hierarchy view Nov 20 09:04:41 fixed it with counters, booleans and flag variables :( Nov 20 09:09:39 hmm... Nov 20 09:16:42 MediaPlayer.setSurface(); seems to be extremly slow. (I'm using one MP object to render to 30 surfaceTextures). Does anyone know how this can be avoided? Nov 20 09:23:46 can I have some sort of intent filter... that calls an async task or something? Nov 20 09:24:34 or must i have an activity/service/broadcast reciever? Nov 20 09:24:44 i suppose broadcast receiver miiiight work Nov 20 09:53:42 how do I determine if I have a phone, tablet or phablet or whatever? Nov 20 09:54:19 if ppl laugh at you holding it to phone at your ear you have a tablet :) Nov 20 09:55:18 hahaha Nov 20 09:55:25 yeah i feel like an idiot talking on my galaxy note Nov 20 09:55:29 So that explains the response to my NOTE 2 Nov 20 09:57:51 i would use a headset to phone with a Note-series phone Nov 20 09:58:00 sometimes i feel the S4 is too big as well Nov 20 09:58:10 is it posible to use viewpagers from xml only? Nov 20 09:58:25 like speciview 2 views in the viewpager in the xml and let it handle the magic? Nov 20 09:59:46 sticking this in my in my manifest, but when the URL is loaded, I'm getting ActivityNotFoundException Nov 20 09:59:47 https://gist.github.com/anonymous/575370e2be1490caf09b Nov 20 09:59:59 am i not allowed to do this? Nov 20 10:01:02 Can I change screenshots of my application and publish the changes later? Nov 20 10:01:13 must it be an activity? I want a broadcast receiver.... Nov 20 10:04:31 lemonxah: no I don't think so Nov 20 10:04:50 :/ Nov 20 10:04:52 you'd still need to create the page adapter and what not Nov 20 10:05:07 you could probably subclass it and add custom xml attributes for the class names Nov 20 10:05:22 but even then that's not great, you need an activity for the fragment manager Nov 20 10:05:34 aah wtf Nov 20 10:05:47 one of our libraries is .startActivity()-ing it Nov 20 10:05:54 thats probably the problem Nov 20 10:07:07 CallumTaylor, i want to simulate a swipe gesture on a listview that is in a fragment allready to swipe away the listview Nov 20 10:22:00 Is there a way to be notified or to detect when a View is becoming displayed on screen, eventually partially ? Nothing related to View.VISIBLE and friends. Nov 20 10:24:00 on Nov 20 10:24:04 onAttachedToWindow? Nov 20 10:29:49 hi all Nov 20 10:32:18 is it possible to add a longpress action to the backbutton? Nov 20 10:35:44 override onKeyLongPress() Nov 20 10:36:30 most custom roms have an option to close the app on long-press-back, so please don't override that ;) Nov 20 10:37:05 bubbleguuum: tnx Nov 20 10:37:43 mitch0: It's for a smartglass app so no custom roms ;) but tnx, good to know that Nov 20 10:39:07 has anyone used a viewflipper? Nov 20 10:39:28 i have Nov 20 10:39:47 ok so my question is does it animate while sliding it? Nov 20 10:39:59 I think you can set it to animate Nov 20 10:40:04 or is it more of a press a button and it animates Nov 20 10:40:11 you usually call next() and previous() to show the next/previous views Nov 20 10:40:18 but I'm sure you can set a transition animation Nov 20 10:40:26 :/ Nov 20 10:40:32 http://stackoverflow.com/questions/1919169/android-viewflipper-animation Nov 20 10:40:34 ok so that wont work either thnx Nov 20 10:41:39 if you need to animate a view pager, look at jazzyviewpager https://github.com/jfeinstein10/JazzyViewPager Nov 20 10:41:58 well i dotn want to animate it Nov 20 10:42:12 i want the behaviour of a viewpager but i dont want to create fragments Nov 20 10:42:16 i want to use views Nov 20 10:42:37 look at using a horizontal scroll view with swipe-like pagination Nov 20 10:42:54 https://github.com/scruffyfox/X-Library/blob/master/src/x/ui/XUIHorizontalScrollView.java Nov 20 10:42:59 this is really old, but may help Nov 20 10:43:35 lemonxah, you can use attach views to viewpager IIRC Nov 20 10:43:59 lemonxah, imageviews are used with viewpager Nov 20 10:44:32 hmmm Nov 20 10:44:35 GNUtonWrk: are you sure its just not using a static inner fragment class? Nov 20 10:44:36 that sounds like what i want Nov 20 10:45:23 actualy Nov 20 10:45:24 https://github.com/nostra13/Android-Universal-Image-Loader/blob/master/sample/src/com/nostra13/example/universalimageloader/ImagePagerActivity.java Nov 20 10:45:29 lemonxah, you need an adapter Nov 20 10:45:37 i dont mind having an adapter Nov 20 10:45:39 this will work for you lemonxah Nov 20 10:45:46 this uses image views in an adapter Nov 20 10:46:04 lemonxah, you can apply other transition animations to your viewpager if you like Nov 20 10:46:13 lemonxah, the trick is the adapter BTW Nov 20 10:47:32 cool let me try that Nov 20 10:47:43 :( why can't we use ?: in java :8 Nov 20 10:47:44 :( Nov 20 10:48:05 otiose, '? Nov 20 10:48:07 '? Nov 20 10:48:25 in other languages, x = y ?: z; Nov 20 10:48:34 is shorthand for x = y == null ? y : z; Nov 20 10:48:44 I'm trying to check why setSurface is taking so long, however the method seems to be calling native _setSurfaceView(); I don't seem to find it in the sources download with the SDK manager, any clue where I can find it? Nov 20 10:48:51 no there is no coalesence Nov 20 10:49:03 you have to do x = y ? a : b; Nov 20 10:49:22 asuming y is a boolean Nov 20 10:49:43 yes, and y becoming (a == null) Nov 20 10:49:45 there is no null coalesense Nov 20 10:49:47 makes the line long Nov 20 10:49:51 i know there's not Nov 20 10:49:54 but i find it disapoinging :( Nov 20 10:49:58 its like in C# you can do this x = y ?? z; Nov 20 10:50:24 there's many things missing in java that exists in other languages Nov 20 10:50:37 and they're all disappointing Nov 20 10:50:38 like in Ruby you can do x = y || 'fallback' Nov 20 10:50:44 exactly... Nov 20 10:51:01 but unfortunately, oracle Nov 20 10:51:22 thats why i use scala instead of java for my android projects Nov 20 10:51:25 well, i guess my examples were wrong anyway :D Nov 20 10:51:37 i thought the amount you oculd use scala for was limited? Nov 20 10:51:48 its not otiose :) Nov 20 10:51:58 you can make activites and everything in scala? Nov 20 10:54:19 yes Nov 20 10:54:33 you can take a look at one of my projects if you would like Nov 20 10:54:34 nice, i should actually look into it Nov 20 10:55:42 and using scala you can do stuff like this Nov 20 10:55:47 class CoalesceNull[A <: AnyRef](a: A) { def ??(b: A) = if (a==null) b else a } Nov 20 10:55:52 implicit def coalesce_anything[A <: AnyRef](a: A) = new CoalesceNull(a) Nov 20 10:55:56 then you can use ?? Nov 20 10:56:09 like (null:String) ?? (null:String) ?? "(default value)" Nov 20 10:56:17 and that will return "(default value)" Nov 20 10:56:38 scala wins hands down Nov 20 10:56:45 the best language on the jvm Nov 20 10:57:07 ive heard it has major problems in the implemention/compiler level though Nov 20 10:57:15 but thats a different story Nov 20 10:57:18 not really Nov 20 10:57:24 not problems Nov 20 10:57:39 the guy quit cause he thinks it can be done better Nov 20 10:57:54 if you listen to his talk you will understand the compiler isn't broken Nov 20 10:57:58 haha, then you saw the video that i am talking about Nov 20 10:58:10 it wasnt about being broken Nov 20 10:58:11 it might be a little bit slower than he would like cause of how they do stuff Nov 20 10:58:24 but after your app has been compiled like when its running on the jvm there are no issues Nov 20 10:58:46 so you're saying his talk was more about -just- the compile phase Nov 20 10:59:02 and that the final products going through it arent affected? Nov 20 10:59:06 so its not at all a bad thing :) and even though he quit as a compiler dev for scala he still uses scala cause its the best the jvm has to offer Nov 20 10:59:26 Hi Nov 20 10:59:26 well it is better than java, ill give it that Nov 20 10:59:28 yeah the final products aren't affected that much Nov 20 10:59:34 i played around with it about a year ago Nov 20 10:59:56 otiose, its the best on the JVM there might be better languages out there but they dont run on the jvm :) Nov 20 11:00:15 thats true :/ Nov 20 11:00:17 if you would like take a look at this Nov 20 11:00:18 https://github.com/lemonxah/xahchat Nov 20 11:00:33 I'm trying to implement GP game services into my game. I'm calling beginUserInitiatedSignIn() in the begining of my MainActivity Nov 20 11:00:56 lol that commit message Nov 20 11:00:59 (y) Nov 20 11:01:11 but I don't get any callback to onSignInFailed() or onSignInSucceeded() methods Nov 20 11:01:14 lol soz :) it was late and i just didn't care Nov 20 11:01:21 bad lemonxah Nov 20 11:01:32 which one? 'n'? Nov 20 11:01:39 yeah Nov 20 11:01:42 hahahah Nov 20 11:01:56 LOGCAT logs only have the following two lines Nov 20 11:02:00 oct 29 "hmm" Nov 20 11:02:05 oh you can just extend java classes liek that? Nov 20 11:02:05 W/SignInActivity(16793): onSignInFailed()... Nov 20 11:02:12 W/SignInActivity(16793): ==> Returning non-OK result: 10002 Nov 20 11:02:13 i guess that would make sense.. Nov 20 11:02:29 Sep 22 "stupid me" lol Nov 20 11:02:37 'hmm' Nov 20 11:02:40 The game reaches this state and crashes Nov 20 11:02:40 a project wouldn't be complete without at least one of those types of commits Nov 20 11:03:05 Can someone help me with this? Nov 20 11:03:14 I'm unable to find the source of the error Nov 20 11:03:33 I don't know where the log message is getting generated Nov 20 11:03:36 I have one for my app oct 19 "Fixed silly mistake" Nov 20 11:03:48 s33k: sorry, ive never added GP to anything like that :/ Nov 20 11:04:10 or why none of the callbacks in my code are getting called Nov 20 11:05:27 otiose: game services worked well in the sample app (Type-A-Number) Nov 20 11:06:03 but when I try to implement it in my game, there is issue signing in Nov 20 11:07:35 :/ sorry, ive never done that Nov 20 11:07:36 i have no idea Nov 20 11:09:08 oh you can just extend java classes liek that? <-- yeah :) that is what is so great about scala Nov 20 11:10:39 otiose, so scala is looking better and better for android dev? Nov 20 11:12:58 maybe Nov 20 11:13:06 but i dont think i'll be able to convince anyone else to use it :D Nov 20 11:13:26 i'm guessing you can't just add a .scala file to eclipse and have it work Nov 20 11:13:48 anyway, im going home Nov 20 11:13:51 its been a long day at wokr Nov 20 11:13:58 you can Nov 20 11:14:04 if you build it with sbt Nov 20 11:14:19 then you hvae src/main/java and src/main/scala Nov 20 11:14:26 and it compiles everything Nov 20 11:14:26 nvm Nov 20 11:20:18 Is there any limit for using google maps inside my android application? Can my map stop displaying if n number of users access it? Nov 20 11:20:52 I know that that there is a query limit of 25,000 for the javascript api Nov 20 11:22:38 I am not using the Geocoding API, simply displaying a map with touch events Nov 20 11:23:34 oh, I just checked that the 25,000 limit would apply for each separate device Nov 20 11:23:41 2500* Nov 20 11:52:45 I am still confused, does the 25000 map loads per day restriction apply to all application users in total, or each application user individually? Nov 20 11:56:29 per apikey Nov 20 11:57:23 to avoid this one could write an own service which caches each request instead of using the gmaps api directly Nov 20 11:57:37 drawback is you need an own server Nov 20 11:57:54 is it possible/bad idea to greate a list ? Nov 20 11:58:12 or void array Nov 20 12:00:59 FrancescoV: why would you want to? Nov 20 12:03:26 CallumTaylor. My listview items aren't always the same so I will create it simple to handle the click on the items. example1: listitems = "logout", "power off" example2: listitems = "box not available", "logout", "power off" --> it must be easier to handle this with an array/list of void/Void. --> execute index of array/list Nov 20 12:13:14 hello Nov 20 12:13:28 I have a listview and last item doesnt have a divider Nov 20 12:13:29 why ? Nov 20 12:13:43 all other have Nov 20 12:13:54 Baluse: default there isn't a divider under the last item Nov 20 12:14:07 I have done this yesterday, need the little trick? Nov 20 12:14:14 is android studio to the point yet that any of you use it for real dev work Nov 20 12:14:20 or still using eclipse? Nov 20 12:14:29 mdev: I'm using it right now for real dev work Nov 20 12:14:36 seems stable enough for me Nov 20 12:14:54 ahh nice, i've read people having lot of issues with it in the past Nov 20 12:15:00 i had issues during 0.2 Nov 20 12:15:08 but its in 0.3 now Nov 20 12:15:15 glad it's come along as i'm not a big fan of eclipse, i'll have to try it out thanks Nov 20 12:15:29 me too using it for "real" no big problem so far. Got rid eclipse clutter Nov 20 12:15:41 so nice not having to use eclipse anymore Nov 20 12:15:41 FrancescoV then why all my other listview have it :SW Nov 20 12:15:51 the most annoying thing is getting rid of eclipse habits Nov 20 12:16:23 Baluse: because android puts divider between items, not under the last. Nov 20 12:16:45 how on planet earth my other listview have? Nov 20 12:16:49 without any customization Nov 20 12:17:09 Baluse: under the last item too? Nov 20 12:17:56 yes Nov 20 12:18:19 Baluse: http://stackoverflow.com/a/12449088/1723525 Nov 20 12:19:06 Baluse: tell me if this works Nov 20 12:19:08 not visible if list is larger tough Nov 20 12:20:22 then check what's different in your xml's Nov 20 12:23:12 it doesnt have anything Nov 20 12:23:15 strange Nov 20 12:23:19 it uses array adapter too Nov 20 12:25:17 maybe that was Nov 20 12:25:34 strange, i set the divider height to 0dp. add a view on top + bottom of each item. Set both views height on 1dp and bgcolor to white. TopDivider = visible always. Bottom only visible if item = last item --> divider above first item + between the items + after the last item Nov 20 12:42:03 lol Nov 20 13:30:18 In my Android Tablet and Samsung Galaxy S4 - How to initialize "chrome remote desktop" access invitation via Android Native Java or Python/Bash? (so that from my desktop chrome i can access the kiosk for maintenance ) Nov 20 13:32:53 google probably can help Nov 20 13:35:17 mdev, https://plus.google.com/+FrancoisBeaufort/posts/2fHNvGUHJ3B - i am in CentOS and my kiosks are running Android tablet with Python apps. Now from my CentOS i need to access echo "remoteaccess" | nc androidkiosk 58890 -w 2 to get the access key and initialize remote access is possible? Nov 20 13:36:42 I need some help with this: Nov 20 13:36:43 ArrayAdapter adapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, addressArray); Nov 20 13:36:43 eclipse tell me: The constructor ArrayAdapter(StandingsActivity.task, int, Standings[]) is undefined Nov 20 13:38:06 IamTrying sorry I don't know aynthing about chrome remote desktop but this gives info on it https://support.google.com/chrome/answer/1649523?hl=en Nov 20 13:38:31 sounds it's designed for remote access so i'm sure you can do what you're after assuming no firewall is blocking things Nov 20 13:39:23 mdev, Chrome remote desktop is well done, it breaks almost 99% firewalls and give remote access in any NAT scenario, therefore its interesting Nov 20 13:49:29 Hi! I have a Google Maps Api v2 MapView, and when I rotate the screen. my position on the map changes. I don't want that. Nov 20 13:55:34 Hi, Nov 20 13:56:11 Does someone know, why some apps wont work with ethernet usb adapter? Nov 20 13:56:28 Is there any work around inside android 4.2 to get it full working? Nov 20 13:57:14 Its realy frustrating Nov 20 13:58:46 Please, does someone know, how to fix it? Nov 20 14:16:19 can someone tell me how to delete modules from android studio gradle projects? Nov 20 14:17:19 somehow i'm unable, if i delete them from filesystem, AS brings them back after a few moments Nov 20 14:24:59 how does one stop log cat from opening automatically in Android Studio? Nov 20 14:31:05 any tip for optimizing this code? http://ideone.com/k5tCcY may I convert the entire switch in one line code? Nov 20 14:40:50 gdrc, it's not that inefficient, especially because onCreateView is probably not called all that often Nov 20 14:41:14 the code could be more consise though Nov 20 14:43:53 you could init an integer array of length 4 and store the layout resource id's in there Nov 20 14:44:22 and use the mPageNumber as an index to choose the proper layout resource Nov 20 14:46:01 or be a proper ass and R.layout.class.getField("fragment_tutorial_" + (mPageNumber+1)).getValue(null) it Nov 20 14:47:16 reflection is probably making the code less efficient Nov 20 14:48:49 doesn't matter Nov 20 14:49:02 it's not like anything happening at this point is particularly fast anyway Nov 20 14:49:11 or that there are many calls to this method Nov 20 14:49:54 it's good that they micro-optimized it all with these fancy numeric ids so that guys like me can undo all the optimization to the point that they'd have been better off just keeping the id's as strings in the first place. Nov 20 14:50:28 though I was recently impressed when I learnt that these days string.substring() is going to copy the substring range and return an all-new char array Nov 20 14:50:50 they made this change in 1.7_6, or in the middle of a stable series Nov 20 14:51:06 I never noticed but I'm happy that there is no longer use case for new String(string) Nov 20 14:51:26 alankila, they did? Nov 20 14:51:59 not sure how it is with android Nov 20 14:53:10 I just recently used substring to optimize a comparing function Nov 20 14:53:21 the rationale was that they needed space for some new internal hash field in string, and getting rid of the offset+length fields, which allowed substrings to see fraction of the full string was the casualty Nov 20 14:53:32 hi guys Nov 20 14:53:51 i'm creating an app which needs features from both support v4 and v13 library Nov 20 14:54:04 however, i'm unable to add both libraries to the project at a time Nov 20 14:54:07 there is no clear benefit or harm to that change. It tells something about the java development process that the change has been discussed since 2007 Nov 20 14:54:18 is there a way to use both in a single project? Nov 20 14:54:40 janmayan77: what do you need from v13 Nov 20 14:55:11 android.support.v13.app.FragmentStatePagerAdapter; Nov 20 14:55:34 http://developer.android.com/reference/android/support/v4/app/FragmentStatePagerAdapter.html Nov 20 14:55:35 it's for the view pager demo discussed on the android site http://developer.android.com/training/animation/screen-slide.html Nov 20 14:55:37 already in v4 Nov 20 14:56:05 great! i'll try using the v4 version Nov 20 14:56:06 Thanks! Nov 20 14:56:11 remeber: rtfm Nov 20 14:56:13 np Nov 20 14:57:42 alankila, it will destroy the performance of the comparison algorithm i'm using Nov 20 15:01:48 pduin: enjoy Nov 20 15:02:15 it's still the principle of least astonishment that is being upheld. Java has many warts, but this is no longer one of them. Nov 20 15:03:13 blargh. latest 4.4 update nuked my n7. Nov 20 15:03:18 * dragorn digs up a factory image again... Nov 20 15:14:17 hi! i would like my task wait one second before proceeding. how is that accomplished? Nov 20 15:16:14 handler Nov 20 15:16:16 thread Nov 20 15:16:19 asynctask Nov 20 15:16:27 u name it... Nov 20 15:17:06 I'd probably do it as a handler, postdelayed, and launching the next step in a runnable, yeah. Nov 20 15:17:21 yup Nov 20 15:17:22 asynctask is probably overkill but could work Nov 20 15:17:41 woo. tablet back online. I love factory images. Nov 20 15:17:44 thanks for your answers. i am already in a runnable. Nov 20 15:17:50 call Thread.sleep(1000) Nov 20 15:17:58 thanks a lot Nov 20 15:17:58 not on the UI thread though Nov 20 15:18:01 ever Nov 20 15:18:07 CallumTaylor: lot easier to do a postdelayed of a runnable Nov 20 15:18:12 yes Nov 20 15:19:17 Handler is the preferred way for short wait times, extended wait times go with AlarmManager Nov 20 15:19:45 alankila, that change was in 1.5 or 1.y Nov 20 15:19:48 6 Nov 20 15:23:58 pfn the substring implementation? i just read an article saying the change was in 1.7 Nov 20 15:26:28 Does it realy take 'some hours' until a app on Google Play becomes visible? Nov 20 15:27:02 yes Nov 20 15:27:57 too bad, I guess :( Nov 20 15:28:02 patience.. Nov 20 15:28:11 http://java-performance.info/changes-to-string-java-1-7-0_06/ Nov 20 15:28:36 Of course this is just some random website but at least its domain name seems to be on the subject Nov 20 15:28:55 lol Nov 20 15:30:04 exit Nov 20 15:30:26 jug6ernaut, it should have been much earlier Nov 20 15:30:36 because substring, not returning a copy results in a memory leak Nov 20 15:30:41 say you have a 1mb string Nov 20 15:30:59 and you take a 5 byte substring, and lose the reference to the former, the 5byte would still ref the old string and a memory leak would occur Nov 20 15:31:14 pfn: agreed. Nov 20 15:31:36 for a definition of "leak" I disagree with. In any case, this wart is gone. Nov 20 15:32:19 Is there a method to get a substring without a new allocation? Nov 20 15:32:26 you disagree? Nov 20 15:32:40 pduin: char[] Nov 20 15:32:50 leaking 1mb for a 5byte string is not a "leak"? Nov 20 15:33:05 you still reference the 1mb memory... Nov 20 15:33:08 in a way Nov 20 15:33:16 but you don't Nov 20 15:33:46 I contemplate it only appropriate to call it leak when the runtime has lost the object without freeing it Nov 20 15:33:52 anyway, operate on char[] directly if you want non-copied subsequences Nov 20 15:34:07 alankila, that's exactly it, though, the original 1mb 'String' is gone Nov 20 15:34:08 This excludes stuff like static caches, or the substring case, and many others that people are keen to call memory leaks to prove java is no better than, say, C with them. Nov 20 15:37:52 since String is just a class in java, with nothing special to it, I kind of don't see it as a java problem that poor class implementation can cause some part of large array to be inaccessible through the exposed api Nov 20 15:38:32 if you start going that way you might just as well argue that some hashmap leaks memory because you don't add so many keys that there are elements in all the slots it maintains internally or whatever Nov 20 15:39:18 also there were some crazier ideas to make the VM specially be aware of strings and check if there's a substring with a small chunk only being referenced and adjust it during a GC cycle Nov 20 15:39:28 I'm personally glad that this is not the solution. Nov 20 15:39:39 that would not have been a solution Nov 20 15:40:05 i think we can all agree whether or not it was a "leak" the new implementation is better lol Nov 20 15:40:17 alankila, taking a substring should return a new string, because that's what it implicitly does Nov 20 15:40:28 hash map, by defined implementation, has empty buckets Nov 20 15:41:34 If I am using a SimpleCursorAdapter, should I extend it to implement the ViewHolder pattern? Or is that handled automatically if I use the second, non-deprecated constructor? Nov 20 15:42:26 how would a ViewHolder be handled automatically? Nov 20 15:42:33 to be frank I guess one should say that Strings are a little bit special to the compiler, though I guess StringBuilder is the more special of the classes, after all it is created to handle the concatenation for instance. Nov 20 15:42:54 indeed Nov 20 15:43:30 jug6ernaut let me rephrase, does it recycle views well. I have a ListView that is almost unusuable on my Nexus 7. Weird thing is, it is smooth as can be on the Galaxy Ace we have running 2.3.3. Nov 20 15:44:29 Did they change how concatenation works to use StringBuilder instead of String? I was always under the impression string concatenation created a new string for each concatenation. Nov 20 15:44:57 i've always known to use string builder for concat instead of just "str" + "str2" Nov 20 15:45:30 CallumTaylor: spare yourself some typing and let compiler do that for you Nov 20 15:45:48 or in fact allow it to merge those into new static constant at build time Nov 20 15:46:05 no, not that literal Nov 20 15:46:12 i mean more like "str" + stringVar Nov 20 15:46:19 theblang: the listview handles recycling the views, the holder pattern is used to get/hold the recycled view. Nov 20 15:46:26 lol doing "str" + "str2" would be pointless Nov 20 15:46:34 * alankila would be pleased if 'String foo = ""; for (bar in ...) { foo += bar; } return foo' would have O(N) complexity Nov 20 15:47:09 but I guess the foo += bar will be a StringBuilder instance created and destroyed Nov 20 15:47:21 jug6ernaut so do I need to worry about the holder pattern if I am using SimpleCursorAdapter? Nov 20 15:47:55 if you need to do a jillion findViewById, you should use a ViewHolder Nov 20 15:48:01 view holder doesn't exist as part of android Nov 20 15:48:11 its a pattern that you implement yourself Nov 20 15:48:47 alankila, but that is O(n) Nov 20 15:50:28 theblang yes Nov 20 15:51:28 pfn: it's a bit unclear what I meant. If every iteration must copy all the data already in foo, then it will get slower as you progress down in the elements in the iterable Nov 20 15:51:50 hmm, I suppose yes Nov 20 15:52:30 the answer would be to rewrite the code as a StringBuilder foo = new StringBuilder() etc. yada yada yada, but it's a bit more of typing Nov 20 15:52:52 jug6ernaut hmm, so right now I am not subclassing SimpleCursorAdapter. maybe that is why my ListView is almost unusuable on any of my newer devices? It is still smooth as can be on this low resolution Galaxy Ace, but I guess that would be in its favor for doing view drawing stuff Nov 20 15:53:52 meh, latest 4.4 update for n7 failed to apply Nov 20 15:53:54 that's annoying Nov 20 15:55:14 I guess I'll fastboot flash it manually Nov 20 15:55:16 theblang i would defintely extend CursorAdapter and do the view handling manually. Nov 20 15:55:32 there are a lot of tutorials/examples out there for the ViewHolder pattern Nov 20 15:55:49 i need to update my n7 to 4.4.... Nov 20 15:56:00 all my daily use devices are on 4.4 now, so happy Nov 20 15:56:02 :) Nov 20 15:56:14 lesson of the day: never use ViewPager.setCurrentItem() if instantiating pages is CPU heavy in the background. That's the recipe for garbage collection and jerky page transition animation Nov 20 15:56:16 if only android views weren't inflated but were just classes made from layouts, we'd already have our viewholders without doing a damn thing to have them... :-/ Nov 20 15:56:17 i would, if i liked the n4/n5 Nov 20 15:56:32 jug6ernaut, moto x Nov 20 15:56:36 :o Nov 20 15:56:39 moto x is nice Nov 20 15:56:39 jug6ernaut yeah, I've seen them and was just thinking that the SimpleCursorAdapter would be effecient out of the box. let me give that a try. Since everything is super smooth on the older low resolution phone, I figure that I must be doing my Loader stuff correctly (not querying on main thread), and that the problem must lie in the view drawing Nov 20 15:56:44 verizon suck tho :P Nov 20 15:56:49 * pfn shrugs Nov 20 15:56:59 the only thing I don't like about my moto x is the locked bootloader Nov 20 15:57:08 which is a pretty negative thing for me, but, I'll deal with it Nov 20 15:57:11 I like the vzw network, generally Nov 20 15:57:46 yeah :\. Im still waiting on custom roms for my LG G2 :S. My n7 should be enough for testing for now. Nov 20 15:58:58 Hey #a-d. I Have a quick question - I am trying to set up a Broadcast receiver in my app's Launch activity, but it doesn't appear to be registering. The dynamic call to registerReceiver is being hit, and I have it laid out in my android manifest, but I can't seem to get the OnReceive to fire. Are there any special considerations to putting a BroadcastReceiver in the launch activity? Nov 20 15:59:06 Did they release a 4.4 update for the 2012 N7? I haven't had any notifications about it Nov 20 15:59:32 Alternatively is there a good example of where a receiver should be called in the manifest? Nov 20 15:59:33 dunno, but I've gotten 2 updates on my 2013 Nov 20 15:59:47 Ankhwatcher: yes: https://developers.google.com/android/nexus/images#nakasikrt16s Nov 20 15:59:57 I don't know if it's gone out OTA, but you could just flash it yourself Nov 20 16:00:02 If a receiver is registered in your manifest, you don't need to call registerReceiver Nov 20 16:00:06 yeah, I just flash it myself Nov 20 16:00:06 evanc beat me to it :p Nov 20 16:00:15 evanc, but your bootloader needs to be unlocked to do that... Nov 20 16:00:18 jug6ernaut: it's amazing how rarely people consult the list :) Nov 20 16:00:31 pfn: so? just relock it afterwards if you care that it's unlocked Nov 20 16:00:35 @SimonVt Will doing so mess with things? Nov 20 16:00:43 evanc it has Nov 20 16:00:47 evanc, if your device is already locked, unlocking requires a wipe Nov 20 16:00:51 evanc, which is /irritating/ Nov 20 16:00:54 evanc: It's amazing that Google can put images on a webpage but not push ota! Nov 20 16:00:55 pfn: yes Nov 20 16:01:00 I understand the security implication, yes Nov 20 16:01:08 but it's irritating if you're locked Nov 20 16:01:12 I leave my device perma-unlocked Nov 20 16:01:17 I had just flashed krt16o Nov 20 16:01:19 that's why you always unlock it as soon as you open it Nov 20 16:01:21 just a note for people for whom this would be a problem Nov 20 16:01:22 @SimonVT also, exactly *how* to register it in the manifest it (as it is an inner class of the Main Activity) is a little ambiguous in the docs. Nov 20 16:01:22 and I got it Nov 20 16:01:23 the bootloader is unlocked, but that's because it's rooted so I'll lose root if I flash it Nov 20 16:01:24 evanc, correct Nov 20 16:01:31 Ankhwatcher: what? Nov 20 16:01:33 Ankhwatcher, rooting is easy Nov 20 16:01:36 Ankhwatcher: that didn't make sense Nov 20 16:01:36 drop su in there... Nov 20 16:01:38 flash su Nov 20 16:01:39 rooted Nov 20 16:01:40 bamb Nov 20 16:01:47 unlocked bootloader means you can do fuckall Nov 20 16:01:52 er, wrong word Nov 20 16:01:55 lol Nov 20 16:01:59 pfn: "allfuck"? Nov 20 16:02:00 evanc: 16s started going out to OTA last night Nov 20 16:02:04 maybe, yeah Nov 20 16:02:05 heh Nov 20 16:02:19 dragorn: nice Nov 20 16:02:20 evanc: 16r to 16s ate my n7.2013, but that's easy to recover Nov 20 16:02:25 lol Nov 20 16:02:39 evanc: that was my morning today Nov 20 16:02:40 you guys nearlly shorted out my pi replying to me like that Nov 20 16:02:42 alxjrvs: You have to decide.. Either make it an inner class and register it in your activity, or put it in its own class file and register it in your manifest Nov 20 16:02:59 I guess you could leave it as an inner class if it's static and register it in the manifest Nov 20 16:03:33 dragorn, my update didn't even go... I think it's because my Email.odex is hacked Nov 20 16:03:56 Ankhwatcher: if you want to apply the factory image and not lose data, untar the file from google, unzip the image inside, and manually flash boot.img, recovery.img, system.img, and cache.img. Don't flash userdata.img. (and all of that is with fastboot; if none of that makes sense, jsut wait for OTA :) Nov 20 16:03:59 that's the #1 reason why I want my bootloader unlocked on my moto x, so I can just go in and hack stuff on /system Nov 20 16:04:02 and revert, easily Nov 20 16:04:14 SimonVT are there any considerations if it is the launch activity? For some reason it just isn't registering the receiver. Nov 20 16:04:24 pfn: that's the #1 reason why carriers don't want your bootloader unlocked :) Nov 20 16:04:28 (When you say my name in chat my console output freezes while the pi communicates with IrssiNotifier) Nov 20 16:04:37 Can anyone tell me what is the number selector widget in this white popup: http://developer.android.com/images/ui/dialogs.png. Is it a regular Android widget and if so which one ? Nov 20 16:04:42 Ankhwatcher: good to know Nov 20 16:04:49 pfn: my n7 is stock but rooted, it errored during applying the OTA, rebuild its ART caches on reboot, then booted to a black screen while every system component crashed and flooded the screen w/ error dialogs . It was pretty amusing. Nov 20 16:04:51 evanc, yeah, I hate carriers for that reason, and charging extra just for that ability Nov 20 16:04:56 Ankhwatcher: oh, cool. Nov 20 16:05:00 Ankhwatcher: no one will abuse this :) Nov 20 16:05:06 evanc, (dev edition devices) Nov 20 16:05:18 $550 for a dev edition moto x is a gyp Nov 20 16:05:24 lol Nov 20 16:05:35 I've created a monster, haven't I Nov 20 16:05:37 alxjrvs: Nope.. Doublecheck your intentfilter and your intents Nov 20 16:05:50 eh. developer edition prices seem to generally be close to what I'd expect for unsubsidized prices Nov 20 16:06:00 pfn: but it has all those extra processors you always wanted! Nov 20 16:06:00 For obvious reasons they have to match Nov 20 16:06:02 well, it's unsubsidized, that's the problem Nov 20 16:06:04 Ankhwatcher, but it doesn't Nov 20 16:06:20 I got the dev s4 the other week, quite pleased with it Nov 20 16:10:10 okay, time to force-update the N7, break everything, blame dragorn Nov 20 16:11:45 Ankhwatcher: hey, you have fastboot. Worst case is you lose your data. Nov 20 16:12:09 I never really liked my data anyway Nov 20 16:12:15 jug6ernaut This SO answer seems to indicate that I don't need to do the View handling myself? http://stackoverflow.com/a/4567989/1747491 Nov 20 16:12:43 Ankhwatcher, you don't need to lose your data, if your device is unlocked like you said Nov 20 16:12:57 you just lose your root, for all of however long it takes for you to flash a root package Nov 20 16:13:10 this is true Nov 20 16:13:36 that being the case do I want to flash the whole package, or just the bits that dragorn told me to? Nov 20 16:13:37 just don't pass -w to fastboot Nov 20 16:14:06 fastboot flash bootloader bootloader.img Nov 20 16:14:13 fastboot update image-xxxx.zip Nov 20 16:14:16 and done Nov 20 16:14:55 cool Nov 20 16:14:55 Ankhwatcher: all I left out was the part that wipes the userdata; you can also just apply the whole update like pfn says and it will automate it, but will factory reset it Nov 20 16:15:15 it won't Nov 20 16:15:17 you could also do it my way, and if it blows up, do update Nov 20 16:15:20 there's no userdata.img in the zip Nov 20 16:15:22 pfn: since when Nov 20 16:15:28 since krt16s Nov 20 16:15:30 pfn: there sure is in the one I downloaded for the 2013 Nov 20 16:15:47 I just flashed it, not in there Nov 20 16:15:50 oh, it is in there Nov 20 16:15:57 but fastboot update didn't apply it Nov 20 16:16:38 https://gist.github.com/pfn/7565947 Nov 20 16:16:52 * pfn shrugs Nov 20 16:17:01 and I have all my data Nov 20 16:20:28 Anyone here using Google Play In App Billing? If yes, do you see orderIds as: "orderId" : "556515565155651" in IN_APP_PURCHASE_DATA instead of "orderId" : "12999556515565155651.5565135565155651" , even though that should only happen previous to 5 December 2012 according to https://developer.android.com/google/play/billing/billing_admin.html#orderId ? Nov 20 16:21:29 I have a couple of hundrends of order ids like "orderId" : "556515565155651 in my history Nov 20 16:21:42 and I don't understand why that is Nov 20 16:22:00 as according to the page above they should have a mechant order number followed by a dot Nov 20 16:22:11 s/they/the order id Nov 20 16:23:29 Really strange Nov 20 16:23:42 And the purchase verification for all those fails Nov 20 16:24:06 hey, am trying to observe the contacts list Nov 20 16:24:22 if the user did any edit or insert to update the history db i have in the app Nov 20 16:24:36 i tried alot of things to work around it Nov 20 16:24:39 but nothing work Nov 20 16:24:42 like this Nov 20 16:24:58 https://gist.github.com/anonymous/fdbc4558390fb21575fd Nov 20 16:25:00 getContentResolver().registerContentObserver( Nov 20 16:25:02 ContactsContract.Contacts.CONTENT_URI, true, contactObserver); Nov 20 16:25:21 private ContentObserver contactObserver = new ContentObserver(null) { Nov 20 16:25:21 public void onChange(boolean selfChange) { Nov 20 16:25:21 showToast("TravellerApp.ContentObserver.onChange " + selfChange); Nov 20 16:25:21 Log.d("Mosh", "TravellerApp.ContentObserver.onChange " + selfChange); Nov 20 16:25:24 }; Nov 20 16:25:24 @Override Nov 20 16:25:26 public boolean deliverSelfNotifications() { Nov 20 16:25:26 MoshDev, don't paste in channel Nov 20 16:25:28 return true; Nov 20 16:25:30 } Nov 20 16:25:32 }; Nov 20 16:25:32 someone exert powers Nov 20 16:25:33 please Nov 20 16:25:34 but on Change never called Nov 20 16:25:36 sorry Nov 20 16:25:49 https://gist.github.com/anonymous/d2c7f9dfdd06fc9346aa Nov 20 16:25:51 :) Nov 20 16:25:57 MoshDev, if the content observer is not running at the time the change occurs, then it will not be notified Nov 20 16:26:47 but i tried it on another Uri's (custom contentProvider) Nov 20 16:26:51 and same result Nov 20 16:27:01 pfn: you forgot a step: fastboot reboot-bootloader (to apply the updated bootloader) Nov 20 16:27:04 even the contentProvider works will with loaders Nov 20 16:27:12 well* Nov 20 16:27:14 Ankhwatcher, did that before the update zip Nov 20 16:27:54 and getContext().getContentResolver().notifyChange(uri, null); works Nov 20 16:28:03 I meant in your instructions ^^ Nov 20 16:28:15 i tried to get it with broadcastreceiver Nov 20 16:28:19 Ankhwatcher, oh, yeah Nov 20 16:28:23 but i didnt get any result Nov 20 16:29:05 I just checked the instructions in flash-all when it didn't update didn't work Nov 20 16:29:29 Hi, is it possible to get the default gmail email and password from a device? Nov 20 16:30:03 email yes, password maybe not Nov 20 16:30:05 FrancescoV: boy I hope not Nov 20 16:30:09 use the AccountManager and poke around Nov 20 16:30:36 Ankhwatcher, use_accounts permission plus the authz prompt should allow it Nov 20 16:32:02 I'd imagine it just exposes some token, not the actual password Nov 20 16:32:20 yeah that's what I was thinking Nov 20 16:32:21 but it depends on what's stored on-device Nov 20 16:32:35 Wow, so I have been banging my head against a brick wall trying to figure out why the performance of my ListView is sluggish as hell on all our newer devices, but super smooth on one of our old devices. I think it is because I was using TableRows with weights. I changed to RelativeLayout for the list items and it is smooth on all the devices now. Nov 20 16:32:40 google stores an oauth token on device, though Nov 20 16:32:44 so you likely can't get the password Nov 20 16:33:02 just about as good, though Nov 20 16:33:22 pfn: tnx Nov 20 16:33:53 pfn: if i created custom content provider, and loaders/cursors gets notified on database changes, it means works will, and it should work well with contentObservers? Nov 20 16:34:19 sorry for bad english :D Nov 20 16:34:21 you never mention when the content changes vs. the lifecycle of your content observer Nov 20 16:34:29 are you sure the content observer is actually running when the contact changes? Nov 20 16:34:37 yes, it shoudl Nov 20 16:34:40 should Nov 20 16:35:29 because insert into my db, and the listview assigned with the db changes the values correctly using loaders, Nov 20 16:35:35 hey look all of my icons on the statusbar have gone white Nov 20 16:35:49 in the same screen i registered the contentObserver Nov 20 16:36:19 theblang: interesting, table layout is that awful? Nov 20 16:36:38 tablelayout Nov 20 16:36:40 meh Nov 20 16:36:49 if you like, i can paste the contentProvider code on the web to check it Nov 20 16:36:52 I guess it is a similar problem to nesting Linear Layouts Nov 20 16:37:23 I had a Linear Layout, with a couple items and a ListView. For the ListView items I had two TextViews in a TableRow Nov 20 16:37:30 https://gist.github.com/anonymous/aef5866987f40d20e8a1 Nov 20 16:37:33 the performance was god awful. I mean, almost unusuable on the Nexus 7 we have Nov 20 16:38:19 https://gist.github.com/anonymous/7b85f05e9a561b73955b Nov 20 16:38:28 wow that settings icon is hideous, it looks like something from TouchWiz Nov 20 16:38:31 thats the contentProvide and the Uri's Nov 20 16:38:48 dragorn As soon as I switched to RelativeLayout, instead of TableRow, the ListView became super smooth. Also something interesting, originally the ListView was super smooth on our old, low resolution Galaxy Ace. It was only bad on the newer Nexus devices we are using. Nov 20 16:39:22 theblang: interesting. I'll have to keep that in mind. Nov 20 16:40:16 pfn: i posted them online Nov 20 16:40:57 "yeah it should?" Nov 20 16:41:00 why should it be Nov 20 16:41:04 when does the contact change occur Nov 20 16:41:09 what is the lifecycle of the content observer Nov 20 16:41:50 Where's Harvey Dent Nov 20 16:43:01 https://gist.github.com/anonymous/fe4e0f88543b16146bca Nov 20 16:43:15 thats the life cycle of the (no complete code) Nov 20 16:43:36 MoshDev, then if your activity is not running, it will not get notifications Nov 20 16:43:39 pfn: its registered within the activity have the History Fragment Nov 20 16:43:42 sounds simple enough Nov 20 16:43:48 its running Nov 20 16:44:19 but it isn't Nov 20 16:44:34 the user has exited your app (in which case, whatever that is may not be running) Nov 20 16:44:37 edited the contact Nov 20 16:44:44 pfn: this Activity contains the 2 fragments, 1 keypad fragment, 2 history fragment Nov 20 16:44:48 so, if your app is not running, how can the content observer be running Nov 20 16:44:50 forget the contact now Nov 20 16:45:15 am talking about the custom content provider Nov 20 16:45:33 then what's your question Nov 20 16:45:49 oh, will content observers work with a custom content provider? sure Nov 20 16:45:54 if you provide the appropriate update calls Nov 20 16:46:02 am trying to figure why the content observer not working on any Uri Nov 20 16:46:18 https://gist.github.com/anonymous/7b85f05e9a561b73955b Nov 20 16:46:42 https://gist.github.com/anonymous/fe4e0f88543b16146bca Nov 20 16:47:01 the loaders registerd with history Uri works well Nov 20 16:47:09 (1 loader) Nov 20 16:48:23 i have loader registered with History Uri, and when i insert any value to the history, the history list changes directly Nov 20 16:49:05 so then it must notify any running observer registered with the History Uri Nov 20 16:49:13 right? Nov 20 16:52:14 dunno, too lazy to read through all the gists Nov 20 16:52:45 so please read my last question Nov 20 16:54:07 any recommended simple view calendar library? Nov 20 16:54:58 if you call the right notifications, then yes Nov 20 16:54:59 it works Nov 20 16:55:03 Why can't I Log things in onDestroy()? Nov 20 16:55:29 sure you can Nov 20 16:55:46 nah I cannot Nov 20 16:55:52 you're doing it wrong, then Nov 20 16:55:53 because you can Nov 20 16:55:58 I have some breakpoint right at the start and A log as well Nov 20 16:56:08 and both do not occur when I kick the thread on android. Nov 20 16:56:20 "both do not occur" Nov 20 16:56:28 "kick the thread" ? Nov 20 16:56:39 process interruptions do not call onDestroy Nov 20 16:56:43 http://grab.by/sceq non of them happens when I close the App in the Appmanager on my N5 Nov 20 16:56:53 "close the app in the appmanager" Nov 20 16:56:59 read the documentation for onDestroy again Nov 20 16:56:59 -.- Nov 20 16:57:14 it is called when the app is closed. Nov 20 16:57:38 pfn: dammit, its working now without any change :\ Nov 20 16:57:43 http://developer.android.com/images/activity_lifecycle.png Nov 20 16:57:49 Yatekii, wrong, read again Nov 20 16:57:51 right from the docs Nov 20 16:57:52 http://developer.android.com/reference/android/app/Activity.html#onDestroy() Nov 20 16:57:54 i've been working on it for 5 hours Nov 20 16:57:58 when the app is closed by the system. Nov 20 16:58:13 wrong, read again Nov 20 16:58:19 pfn: i didnt change the code.... and its working :| Nov 20 16:58:43 MoshDev, content providers are weird sometimes, might require an uninstall/reinstall to make it all register correctly Nov 20 16:59:17 man it is written there, you can read it no need to copy pasterino. Nov 20 16:59:32 whatever Nov 20 16:59:38 you're doing it wrong Nov 20 16:59:39 period Nov 20 16:59:42 Yatekii: killing the process in from a task manager does not trigger onDestroy(). I promise you, I have been dealing with this Nov 20 17:00:08 if you want to trigger onDestroy, either press back or finish() Nov 20 17:00:13 burmat: my media player is killed only in onDestroy and it is killed when I close it from the task manager. Nov 20 17:00:18 -> it is executed Nov 20 17:00:19 you can definitely log in onDestroy, however ondestroy is not guaranteed to be called Nov 20 17:00:30 ^ this Nov 20 17:00:32 * dragorn logs debug data in ondestroy all the time Nov 20 17:00:34 killing from task manager will never call onDestroy Nov 20 17:00:41 pfn ah, I am doing it wrong? you don't say. Nov 20 17:00:45 I said so Nov 20 17:00:48 several times Nov 20 17:00:52 you haven't read the docs Nov 20 17:00:53 several times Nov 20 17:00:56 yes I hav. Nov 20 17:00:58 I have NEVER gotten onDestroy to trigger from killing it from a task man Nov 20 17:00:58 *e Nov 20 17:01:12 Yatekii: you have to figure out a way to handle this Nov 20 17:01:27 onDestroy is never guaranteed to be called no matter what Nov 20 17:02:35 ah well maybe my mediaplayer is just destroyed but not properly Nov 20 17:02:44 so it is not destroyed with release hmm Nov 20 17:02:46 burmat: when killing the app via task manager, you don't get onDestroy Nov 20 17:02:46 killing your process "destroys" things Nov 20 17:02:54 but it doesn't onDestroy them Nov 20 17:05:45 pfn: Thanks :) I wish you good day Nov 20 17:06:28 Hi all. Im using "adb shell am" tool (activity manager) to broadcast some intents and i need to add a byte array extra to this intent. The problem is that am tool doesn't provide a byte array extra key. Nov 20 17:09:38 hmm mkdirs() should create all the Dirs that are missing given in the file I call mkdirs() upon no? Nov 20 17:10:59 psimage, can't do it then... Nov 20 17:14:27 dragorn I think the weights were causing the biggest problem. I switched back to a LinearLayout without weights and it is still much smoother. Every know and then I get a small stutter. Nov 20 17:15:08 hi guys, Im developing an App where I set the background on onActivityResult() with setBrackground(). I want to know how to save that background and restart the application with this background Nov 20 17:15:35 theblang: interesting. I use weights a lot so I might need to go back and review my usage Nov 20 17:16:21 dragorn yeah, I guess it isn't such a big deal on more static, single layout for an activity. but with the many ListView rows... Nov 20 17:16:44 dragorn from the doc I just found, "Most of this time difference is due to the use of layout_weight in the LinearLayout design, which can slow down the speed of measurement. It is just one example of how each layout has appropriate uses and you should carefully consider whether using layout weight is necessary." Nov 20 17:21:54 hi any recommended simple view calendar library? Nov 20 17:23:21 is anyone getting socket timeouts when accessing google api? auth and drive. Nov 20 17:27:08 hi Nov 20 17:27:13 one question please Nov 20 17:28:01 i am developing my custom viewgroup and i have to set my scrollbars. It only lacks to implement the three functions computeHorizontalScrollOffset, computeHorizontalScrollRange and computeHorizontalScrollExtent Nov 20 17:28:06 but i don't find any example on google Nov 20 17:28:09 can someone help me please? Nov 20 17:29:16 The javadocs explain pretty well what they do Nov 20 17:29:49 i am at google android website but the description is only 1 line Nov 20 17:30:30 How far have you scrolled, how far can you scroll, and how big is the scroll indicator Nov 20 17:30:34 Then just calculate Nov 20 17:31:25 ok let me see thanks Nov 20 17:33:40 SimonVT do you know the algorithm for Extent ? Nov 20 17:34:37 Cadmi: it's how wide you want the scrollbar thumb to be Nov 20 17:34:43 (as I understand it, anyway) Nov 20 17:35:11 yes i know but i guess it is proportional to the total width of the scroll Nov 20 17:35:34 Experiment a little Nov 20 17:35:40 maybe i should use a constant factor * (1 / total_width) Nov 20 17:36:00 Or look at one of the scrollable viewgroups in aosp Nov 20 17:36:19 ListView comes to mind, it varies the scroll indicator size Nov 20 17:36:51 a listview in aosp? Nov 20 17:38:22 i am going to look for it Nov 20 17:39:27 thanks Nov 20 17:39:45 https://github.com/android/platform_frameworks_base Nov 20 17:39:58 oh thanks Nov 20 17:43:29 do you know the name of the project? Nov 20 17:48:29 what is the point of having both /storage/emulated/0 and /storage/emulated/legacy? Nov 20 17:48:52 there doesn't seem to be a real point to this other than trying to break every app in existance Nov 20 17:49:20 only those whose developers were too big of morons to use external access APIs Nov 20 17:49:32 i was thinking about merging the contents of 0 into legacy and then making a symbolic link from legacy to 0... would that be safe? Nov 20 17:49:49 cuz it seems like many programs are writing to BOTH for some unknown reason Nov 20 17:50:27 UNEXPECTED TOP-LEVEL EXCEPTION: Nov 20 17:50:27 java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoIcsImpl; Nov 20 17:50:27 hololeap, did you check if they're hardlinks? ;) Nov 20 17:50:37 I have added "compile com.android.support:support-v4:18.0.0' to my project as well some as library projects, and for some reason I am still getting the above error Nov 20 17:50:53 yiati, the library was added twice Nov 20 17:50:55 when building on the command line with ./gradlew build Nov 20 17:50:59 that's what it's trying to tell you. Nov 20 17:51:13 you're probably pulling in two different versions of compat library Nov 20 17:51:32 Hmm how would I be pulling in two versions? Nov 20 17:51:54 Mavrik: it doesn't show it when i do ls -l and the size of the contents in each folder is different Nov 20 17:51:57 yiati, probably via dependency by some other library Nov 20 17:52:07 hololeap, which is consistent with hardlink use :) Nov 20 17:52:33 Mavrik: ok, i don't know much about hardlinks... so how do i see which is a hardlink to which? Nov 20 17:52:56 just using unix tools Nov 20 17:52:59 several ways Nov 20 17:53:00 command line Nov 20 17:53:12 but I have no idea why are you doing something so dumb as to play with system layout Nov 20 17:54:16 originally it was because i thought it was doubling the used data... i guess if it's a hardlink it doesn't matter Nov 20 17:54:43 but i want to make a symlink from /storage/emulated/0/Music to /storage/sdcard1/Music Nov 20 17:55:16 or should i make it a symlink from /storage/emulated/legacy/Music? Nov 20 17:56:54 Mavrik except if you want to support people with multi storages even though the API doesn't support it. But thanks :P Nov 20 17:57:21 yiati, you need to exclude some transitives Nov 20 17:57:24 that's hardly "any app" in existence Nov 20 17:57:38 and hardcoding paths is... dumb no matter what your usecase is Nov 20 17:57:47 yiati, any android lib you pull from maven will cause it to duplicate Nov 20 17:58:04 hah that's a new one... OOM exception while building crash report Nov 20 17:58:32 Mavrik well there's certainly a lot who support this. And who said anything about hardcoding? Assumptions and being judgemental ... :') Nov 20 17:58:34 E/AndroidRuntime(12566): Error reporting crash Nov 20 17:58:34 E/AndroidRuntime(12566): java.lang.OutOfMemoryError: Failed to allocate a 68472426 byte allocation with 9032224 free bytes Nov 20 17:58:38 yeah thanks. sigh. Nov 20 17:58:46 4.4 seems pretty funky about handling crash errors Nov 20 17:58:48 Chainfire, if you didn't hardcode path then it didn't break your app Nov 20 17:58:49 or maybe it's ART Nov 20 17:59:09 i've had weird things happen with art and memory allocations using UIL Nov 20 17:59:37 everything i am reading says its bad practice to create hardlinks to directories Nov 20 18:00:00 Mavrik again with the assumptions ... Nov 20 18:00:00 yes, and for a while, many filesystems disallowed it Nov 20 18:00:30 Chainfire, only extrapolating from what you said. Only explanation. :) Nov 20 18:00:42 yeah, hardlinks are problematic Nov 20 18:00:48 especially to directories Nov 20 18:01:09 and of course, you can't have cross-FS hardlinks... especially not ext4->FAT ones Nov 20 18:02:55 so, the question remains, would it be safe to remove either legacy or 0 and set up a softlink instead? Nov 20 18:03:45 oh of course Mavrik it couldn't be anything related to some the most commonly re-used pieces of code to detect multiple writable storages across various devices, that started to break because of the several different paths all pointing to the same place in the internal storage now, without any FS commands that actually resolve them to the same string ... but I digress, yes your extrapolation is the only explenation Nov 20 18:04:34 who is this Chainfire what does he know :P Nov 20 18:04:40 Chainfire: I mean, it's not like you have any clue what you're doing, right? :) Nov 20 18:04:48 Chainfire, it always is. :) Nov 20 18:04:52 he's some random internet loser ;-) Nov 20 18:05:06 lol Nov 20 18:05:26 Chainfire: btw dunno if you have privmsg blocked but I threw you a link regarding powered OTG USB stuff from our conversation the other month, if you haven't encountered them already Nov 20 18:11:15 <|RicharD|> hi to all Nov 20 18:11:39 <|RicharD|> anyone have used titanium for develop and android app ? Nov 20 18:12:24 what's the best way to learn and to be professional in android development? Nov 20 18:12:57 ok, now i'm reading that unix/linux doesn't allow for hardlinks to directories, so i'm not sure if what you are saying is true, Mavrik Nov 20 18:12:59 http://unix.stackexchange.com/questions/22394/why-hard-links-not-allowed-to-directories-in-unix-linux Nov 20 18:13:15 just check inode indexes and you'll know for sure. Nov 20 18:13:40 just be hellova sure all libraries and native code properly dereferences symlinks when writes/reads from storage Nov 20 18:14:23 i can't because busybox's ls doesn't have a -i flag... sigh Nov 20 18:14:41 this is annoying Nov 20 18:20:56 hmm, does the maven plugin have a way to specify custom package name for manifest? Nov 20 18:23:02 pfn: http://maven.apache.org/shared/maven-archiver/examples/manifestEntries.html ? Nov 20 18:23:12 jug6ernaut, for android manifest Nov 20 18:23:22 not for jar manifest Nov 20 18:23:27 Oh Nov 20 18:23:37 anyway, I'll look that up later Nov 20 18:23:45 that = the android plugin docs Nov 20 18:23:54 yeah probably Nov 20 18:24:59 pfn: i know for a apklibs i have to run a plugin which replaces variables to account for package name changing(because being an apklib). It could probably be used for your purposes Nov 20 18:25:33 hololeap, the busybox rendition of stat should. Nov 20 18:26:06 apklib shouldn't have a problem with package naming, odd Nov 20 18:26:37 hololeap, /busybox stat -c '%i %n' * # <- try something like that. Nov 20 18:27:05 anyway, it doesn't matter. it does look like it's a link of some type (since a directory i created on one show up in both). i'll just symlink to /storage/emulated/0/Music and it shouldnt be a problem Nov 20 18:27:17 pfn http://code.google.com/p/maven-replacer-plugin/ Nov 20 18:27:53 & yea idk, i had a lot of issues getting apklib's to work, ended up basing my pom off of one of JakeWharton's projects Nov 20 18:28:16 oO why do you need to replace package names Nov 20 18:28:40 need a custom package Nov 20 18:28:50 lol stat doesn't have a -c option Nov 20 18:29:05 hololeap, i haven't followed the whole conversation. the problem with hardlinks to directories is it makes it very difficult to tell whether or not a traversal is complete. you run into the some sort of thing with some designs of garbage collectors. Nov 20 18:29:06 but yeah they have the same inode Nov 20 18:29:23 hololeap, really, i'm using it here. busybox's stat, not the ordinary stat. Nov 20 18:29:28 so that answers my question, thank you Nov 20 18:30:00 hololeap, symlinks serve as an analog to "weak references" / "weak pointers" Nov 20 18:30:33 timemage: the question was the relationship between /storage/emulated/0 and /storage/emulated/legacy Nov 20 18:30:41 it looks like they're hard linked Nov 20 18:32:02 hololeap, i'm pretty much blind here. you'd have to how ls -ld on each part for me tot understand. what is /0 a directory? Nov 20 18:32:49 hololeap, the other thing you might be running into is a bind mount. Nov 20 18:32:55 timemage: in android 4.2.2 there are two directories in /storage/emulated that have the exact same contents. they weren't symlinked and i thought it ws duplicated data Nov 20 18:33:11 hololeap, see what mount output gives you. Nov 20 18:33:51 oh, i guess there is a fuse mount on both of those directories Nov 20 18:34:00 hololeap, =), there you go. Nov 20 18:34:08 I have a custom listview adapter rendering a custom view with a button for each item. I don't want the list item clickable, but I want each button to be useable. I have learned that I should hook up the clicklistener in the adapter class. I want to call a method on the activity containing the listfragment, however. How would I do that from the adapter in the listviewfragment? Nov 20 18:34:47 that's confusing as hell, but at least i know now Nov 20 18:35:45 hololeap, generally speaking you just don't have hardlinked directories. there isn't really a tool to do that. you'd be using some sort of filesystem debugger, hex editor or whatever. http://xkcd.com/981/ Nov 20 18:35:59 that's what was confusing me Nov 20 18:36:31 i was reading that hardlinked directories weren't possible, yet that's what Mavrik was saying, and they indeed have the same inode Nov 20 18:36:37 hololeap, i think you'll find the xkcd link relevant. =) Nov 20 18:36:43 Mavrik, pfn: turns out running "./gradlew clean build" rather than "./gradlew build" solved my issue Nov 20 18:37:13 * damccull <3 xkcd Nov 20 18:37:19 i've actually seen that xkcd before... but i thought it was possible with standard unix tools to create a hardlinked directory Nov 20 18:37:50 How can I easily find out what the latest version of com.google.android.gms:play-services is Nov 20 18:38:07 google? Nov 20 18:38:12 yiati, update in android sdk manager; look in your local m2repository afterward Nov 20 18:38:39 android sdk manager downloads directly to m2? Nov 20 18:39:30 no Nov 20 18:39:39 hololeap, been a while since i thought about it. usually when i encounter something like that it's owing to corruption. years ago i wrote a program to open a directory as a file, just for the hell of it. what you get is basically a small fs specific stream. if you were to open it for update and change the inode number of an existing entry, that would work. it wouldn't take very long to write. Nov 20 18:39:43 it downloads into ANDROID_HOME/extras/{google,android}/m2repository Nov 20 18:39:58 hololeap, a tool like debugfs will probably let you do it. Nov 20 18:39:59 add it to your maven resolvers Nov 20 18:40:04 gradle adds it automatically Nov 20 18:40:07 lol ok. Nov 20 18:40:11 meh gradle Nov 20 18:40:36 damn... it won't let me create a symlink in /storage/emulated/0 Nov 20 18:41:20 Sweet, thanks pfn Nov 20 18:41:23 link failed Function not implemented Nov 20 18:41:51 hololeap, right. that would be a limitation of the filesystem. for example, a fat32 system. Nov 20 18:42:16 hololeap, but you could create an empty directory and do a mount bind on it. or you could on a full linux system. i haven't played with the internals of android systems much. Nov 20 18:42:18 is the internal sdcard a fat32 filesystem? Nov 20 18:42:29 hololeap, can be anything you want, but fat32 is typical. Nov 20 18:42:35 ok Nov 20 18:42:40 thought it was ext4 Nov 20 18:43:31 hololeap, well, typical of sd cards. dunno about typical of internal sd cards on android devices. in some way fatX is also a bad format for flash devices. there are filesystems specifically designed to be used on flash. just non of them will work on linux/pc/mac without extra work. Nov 20 18:43:56 do you know of an fstab-type file in android? Nov 20 18:44:03 to make the mount persistant Nov 20 18:44:09 hololeap, mount will tell you what it's mounted as. Nov 20 18:44:38 i mean for making the mount -o bind persistent across reboot Nov 20 18:45:02 hololeap, i don't. really haven't spent very little time in the android structure. most of my understanding of these things comes from linux. and android has radically restructured things, iirc. Nov 20 18:45:15 that's fine. i really appreciate the help Nov 20 18:45:22 hololeap: init.rc (or probably the device specific variant) is probably your best bet Nov 20 18:45:23 hololeap, i remember hearing that they don't use fstab per se. Nov 20 18:45:34 but note that that requires modifying the boot image :) Nov 20 18:46:02 at this point, you're quite deep in #android-root territory :) Nov 20 18:46:12 ok Nov 20 18:46:20 hololeap, http://android.stackexchange.com/questions/14530/whats-the-android-equivalent-of-etc-fstab Nov 20 18:57:02 modify the rom... i might do that later, too much trouble for now Nov 20 19:03:47 https://gist.github.com/damccull/fa7c6b15accf300ebb54 on line 59, I can't access the 'holder' variable without declaring it final. BUt if I do that, I won't be able to change it like the adapter requires...is there another way to access it? Nov 20 19:04:40 g00s you remember yesterday I was talking about that ListView choppyness that only happened on my newer phones, not the older Galaxy Ace we have? It was because I was using weights and a table row in the list item XML. Nov 20 19:05:08 oh, huh. did lint point that out ? Nov 20 19:05:23 was it the nested weights heuristic Nov 20 19:06:39 <|RicharD|> anyone have developed an android app with titanium ? Nov 20 19:07:59 g00s lint didn't point it out, because it wouldn't have known that XML was for the list items. The ListView itself was also in a LinearLayout, and then the list item xml views were composed of a TableRow with two TextViews that used weights. Still interesting that it didn't have a problem on the older phone. Nov 20 19:09:39 theblang: did the older phone have the capability to use weights in the xml? maybe it ignored those values Nov 20 19:09:45 hm; i don't see what the problem is still … well i suck at ui anyhow Nov 20 19:09:48 g00s soon as I switched to a RelativeLayout it was smooth as can be, as apposed to being almost unusable on the Nexus 7 Nov 20 19:10:15 damccull that is a good question, I am not sure. it is running 2.3.3 Nov 20 19:11:26 damccull but weights were added in Level 1, so I'm not sure. Nov 20 19:11:39 theblang: speaking of which, check out https://speakerdeck.com/romainguy/android-performance-tips for more info about layouts and performance Nov 20 19:11:40 then that was problably not the issue Nov 20 19:11:47 it explains what happens with LinearLayout/weights and RelativeLayout Nov 20 19:11:52 and why it can lead to performance degradation Nov 20 19:12:02 and how 4.4 (partially) addresses these issues Nov 20 19:12:17 romainguy do you know why it was more performant on 2.3 though ? Nov 20 19:12:27 anyone know how I can reference children of a holder from a clicklistener in the holder pattern for custom list adapters? Nov 20 19:12:39 g00s: we probably made it correct in 3.0+ Nov 20 19:12:42 romainguy thanks a lot Romain! yeah, what g00s said. Nov 20 19:13:10 the point is: avoid using RelativeLayout high up in your tree Nov 20 19:13:17 and if you use LinearLayout and weights, be careful with them Nov 20 19:13:22 try to use them with width/height=0 Nov 20 19:13:36 and on horizontal linear layouts, try to use baselinealigned=false whenever possible Nov 20 19:14:10 slide 67 of that deck shows the 10x improvement brought by 4.4 :p Nov 20 19:14:17 "Filthy Rich Android Clients' :) Nov 20 19:14:53 romainguy I was definitely using width=0 with the weight, which was inside of a TableRow element. I swapped the TableRow element for RelativeLayout, heck I only had two TextViews anyway just for testing (haven't worked on aesthetics yet). The difference was so huge. Nov 20 19:15:12 a TableLayout is basically a LinearLayout made of LinearLayouts Nov 20 19:15:50 we made a change to horizontal LL which cause children to be measured twice when they have a weight and when baselineAligned=true (which is the default) Nov 20 19:16:47 does android reuse webview object when finishing the activity and going back ? Nov 20 19:17:04 (back to the activity with the webview) Nov 20 19:18:13 ok... so i'm really confused. i mounted the Music folder with this command: mount -o bind,user /storage/sdcard1/Music /storage/emulated/0/Music Nov 20 19:18:38 bitkiller: if you finish the activity, views get destroyed Nov 20 19:18:46 it shows the contents of /storage/sdcard1/Music if i do ls /storage/emulated/0/Music Nov 20 19:19:05 but if i access /storage/emulated/0/Music with any file browser app, it shows it as empty Nov 20 19:19:33 i created a new folder in that directory with the app, and it is there, but i don't see it if i use ls... wtf? Nov 20 19:20:22 romainguy, i really have some strange issue when returning to the activity with the webview. everytime I enter that activity, JS code gets slower, to the point of completely stop running. Nov 20 19:21:06 looks like memory leak, but i couldn't identify the source Nov 20 19:22:30 bitkiller it might be that the webview is actually a singleton, and as long as the process is running its maintained some state. not sure; i thought this was the way it was Nov 20 19:22:39 well, not the view as a singleton, but some state Nov 20 19:23:01 maybe its threading for comms, etc Nov 20 19:23:22 So I'm trying to add the JREngagePhonegapPlugin library project to my app that is building with gradle and gradle does not like the JREngagePhonegapPlugins manifest https://github.com/janrain/jump.android/blob/master/JREngagePhonegapPlugin/AndroidManifest.xml Nov 20 19:23:45 maybe its keeping its js stuff around too Nov 20 19:24:05 https://gist.github.com/anonymous/c404c77bf5385afa5b46 Nov 20 19:24:42 https://gist.github.com/anonymous/14539139be9a347038b6 <-- More detailed Nov 20 19:26:01 The projects manifest is just empty Nov 20 19:26:19 the library* project's manifest Nov 20 19:27:49 if I bind a service, then hit home button to put activity in background, does my service stop too? Nov 20 19:29:43 damccull depends where you bind to the service :) Nov 20 19:29:55 if onresume on onstart, yeah Nov 20 19:30:08 on create, maybe - maybe not depending on things Nov 20 19:30:57 g00s: maybe i can say what I want and you tell me if possible. I want to use a service to start a connection to a telnet server, then maintain that through home presses and going back to the app, liek with an icon. Kind of like andchat does with irc when it's not foreground. Nov 20 19:31:10 a good way to learn about the sequence of all the callbacks, is to put logs in all the things ! Nov 20 19:31:41 damccull when you want the lifecycle to be independent of the activity, you use startService Nov 20 19:32:04 g00s: oic. Nov 20 19:32:08 so, at the point you ask the service to start connecting, say, even though a local service, that would then do a startService Nov 20 19:32:31 Found the solution to my problem --> http://stackoverflow.com/questions/16987512/building-android-studio-project-with-holoeverywhere-fails Nov 20 19:32:48 ok, then i can still bind to talk to it, I know...ok. I was just wondering if I could skip that step to make things less complicated. Nov 20 19:32:51 in onUnbind, you check to see if there is any work going on then - and if not, do stopService Nov 20 19:32:59 also in disconnect ;) Nov 20 19:33:19 so the 2 kinds of lifecycles overlap Nov 20 19:34:01 So I'll basically develop 2 'separate' apps that talk to each other. Nov 20 19:38:05 i may have found the problem. webview keeps caching, even though i disabled it Nov 20 19:44:58 hello Nov 20 19:45:35 is there any command i can run that will list classses i've imported and never used? Nov 20 19:48:53 for anyone who cares, i figured it out. i just had to use adb instead of ssh Nov 20 19:51:24 HEllooooo guys :) Nov 20 19:51:27 how are you! Nov 20 19:51:29 chars6: your ide should do that, eclipse/as/intelij Nov 20 19:52:24 There is no builtin utility in javac for that, as far as I am aware, chars6. Nov 20 19:52:37 You will have to use some kind of static analysis tool (like built into every ide) Nov 20 19:54:09 ctrl+shift+O Nov 20 19:54:19 fn+shifht+O Nov 20 19:54:45 * jug6ernaut just has intillij set to auto manage imports Nov 20 19:54:54 I'm trying to test some code on my Nexus 4 but I'm getting some weird results. Even though the Nexus has a resolution of 1280x768 would I be correct in thinking that we only have 1184x768 to work with? Nov 20 19:54:58 manually importing classes...the insanity Nov 20 19:56:46 anyone knows how to update a konxed note 3? Nov 20 19:56:51 is there a online sqlite databse browser or smth? Nov 20 19:57:15 online? Nov 20 19:57:19 yes Nov 20 19:57:32 i saw something like that but i did not bookmark it Nov 20 19:57:41 or maybe you can help me with my sqlite problem :D Nov 20 19:57:42 11-20 20:53:53.648: E/AndroidRuntime(28222): Caused by: android.database.sqlite.SQLiteException: near ".67553410": syntax error (code 1): , while compiling: SELECT *, assignements.workid as workid FROM assignements LEFT OUTER JOIN assignement_done on assignements.rUID = assignement_done.work_ID WHERE assignements.rUID NOT IN (SELECT assignement_done.work_ID FROM assignement_done WHERE assignement_done.user_ID = user_526e68ee549 Nov 20 19:57:47 that's what i get. Nov 20 20:00:03 why is there a , after your select * Nov 20 20:00:20 because i want to do the as Nov 20 20:00:39 i transformed the code from mysql Nov 20 20:01:23 is that even your full stack trace? Nov 20 20:01:32 i dont see 67553410 anywhere in your statement Nov 20 20:01:41 i'd suspect unquoted string equals, for starters Nov 20 20:01:58 '' Nov 20 20:02:01 FabianH: "assignements" Nov 20 20:02:12 FabianH: that's not how I spell assignments Nov 20 20:03:18 assignement_done.user_ID = user_526e68ee5497f5.67553410 Nov 20 20:03:32 String query = "SELECT *, "+TABLE_ASSIGNEMENTS+"."+ KEY_WORKID+" as workid FROM " + TABLE_ASSIGNEMENTS + " LEFT OUTER JOIN "+TABLE_DONE+" on "+TABLE_ASSIGNEMENTS+"."+KEY_RUID+" = "+TABLE_DONE+"."+KEY_DONE_WORKID+" WHERE "+TABLE_ASSIGNEMENTS+"."+KEY_RUID+" NOT IN (SELECT "+TABLE_DONE+"."+KEY_DONE_WORKID+" FROM "+TABLE_DONE+" WHERE "+TABLE_DONE+"."+KEY_DONE_USERID+" = "+user.getUserId()+" ) ORDER BY `date` asc"; Nov 20 20:03:40 that's my query, Nov 20 20:03:49 i know, i spelled assignments wrong, :3 Nov 20 20:04:30 '' Nov 20 20:06:06 FabianH: Your WHERE should be "WHERE assignement_don.user_ID = 'user_526e86ee549'" shouldn't it? Nov 20 20:06:21 with single quotes around the value 'user_526e86ee549' Nov 20 20:07:02 I love you :) Nov 20 20:07:02 and i typed that incorrectly so make do not copy and paste what I just typed Nov 20 20:07:04 thank you :D Nov 20 20:07:24 i know, i figured it out, seconds before you said it :D Nov 20 20:07:27 now it works :D Nov 20 20:07:29 good good Nov 20 20:07:34 jug6ernaut i'm developing with vim Nov 20 20:07:48 i pity you Nov 20 20:07:49 FabianH: you should look into using the query building tools Nov 20 20:08:22 which query building tools? Nov 20 20:08:29 dragorn: like the classes, or is thre a sql statement builder out there lol Nov 20 20:09:51 The variable substitutions provided in the database class, using the args[] array Nov 20 20:10:06 Ah Nov 20 20:10:11 yea it works well Nov 20 20:10:33 * jug6ernaut just wishes sqlite supported bulk inserts Nov 20 20:10:37 inserting is so slow Nov 20 20:10:48 even with prepared statements Nov 20 20:10:53 should i do inserting in a asynctaskk? Nov 20 20:10:57 not really or? Nov 20 20:11:19 depends how much inserting you're doing Nov 20 20:11:20 jug6ernaut wut? just do a bunch of inserts in a transaction Nov 20 20:11:21 ii would Nov 20 20:11:28 g00s: i was just going to say that Nov 20 20:11:39 g00s: i do, still slow. Nov 20 20:11:51 maybe too many indexes, your table is too large, etc Nov 20 20:12:08 no index. What is to large? Nov 20 20:12:32 hm, well on froyo for my case things slowed down around 100K rows Nov 20 20:12:50 but there are so many factors Nov 20 20:12:51 oh, i found a useful tool on the market for sqlite debugging it's called "sqlite Debugger" Nov 20 20:12:56 Hmm, i was getting a slow down > 10k rows Nov 20 20:13:00 yea true Nov 20 20:13:01 maybe someone finds it usefull Nov 20 20:13:24 jug6ernaut journaling mode, page cache, etc Nov 20 20:13:31 lots of tuning Nov 20 20:13:49 i tried disabling journaling, i dont think i touched page cache Nov 20 20:15:35 you'll also have to experiment with your transaction size Nov 20 20:15:46 too big or too small will be suboptimal Nov 20 20:15:53 hmm Nov 20 20:16:02 i didn't even think about that Nov 20 20:16:15 back to tweaking lol Nov 20 20:16:19 i think mine was around 100 Nov 20 20:18:01 jug6ernaut what type of data are you inserting, and how often ? Nov 20 20:18:51 all TEXT, & not sure. Creating a library, in my testing it was just large #'s of inserts all at once and then large numbers of updates. Nov 20 20:19:03 (i didnt even consider transaction size) Nov 20 20:19:21 so my transactions were 1000+ inserts/updates Nov 20 20:20:11 is here someone who can help me with google maps android api? Nov 20 20:20:33 jug6ernaut i found one: http://checkstyle.sourceforge.net/config_imports.html Nov 20 20:21:00 the relevant section is a little bit down the page Nov 20 20:22:07 cool Nov 20 20:25:24 the basic idea is that i'm developing an app using google maps android api v2. the app reads json data from a server and adds x amount of markers based on the json data on the map. if marker is clicked it opens infowindow. everything works as i want, the only problem for now is that i can't change the infowindow width. now it fills the whole screen from left to right. but the height is working well. Nov 20 20:26:02 Guys does anyone see why it does not go in the catch clause but swaggyObject is null after the try? oO https://gist.github.com/anonymous/59cd6f1db2eaa357ec4d Nov 20 20:26:07 the infowindow has title and some text now Nov 20 20:26:35 + is there any obv. mistake in this: https://gist.github.com/anonymous/704d7917d71c75eb0c8b Nov 20 20:26:49 i want the infowindow use like half of the screen width Nov 20 20:27:15 infowindow has own xml layout file Nov 20 20:28:11 now layout width and height are both wrap_content Nov 20 20:29:47 tried to set width ".50" "0.5" and even "200dp" but no change. but if i change orientation attribute it affects to the layout. so the app uses the infowindow layout xml file Nov 20 20:31:02 Lazeeee: what does your xml look like? you said it is set to wrap_content, maybe the default size of the info box is wider than the screen. what does the height look like by default, does it fill the full screen height as well? Nov 20 20:31:28 romainguy: btw, it all works fine as a view (re: the textureview stuff). Thanks for the shove in the proper direction, it works much better now Nov 20 20:31:41 well nvm, if you tried specifying the width size and that didn't do anything... Nov 20 20:35:11 dragorn , i forgot the exact project you work on - was it kismet ? Nov 20 20:35:21 g00s: among others, yeah :) Nov 20 20:35:26 by any chance, are you storing time series data in sqlite ? Nov 20 20:35:36 hey guys Nov 20 20:35:49 what folder holds images for the vdm Nov 20 20:36:24 g00s: Kismet is my main OSS stuff, i've got some other random OSS android projects, working on the android app for the Wi-Spy spectrum analyzer, just started working for Silent Circle, I do hardware design for a darpa fast-track project... too many irons in too many fires. Nov 20 20:36:52 dragorn you work for silent circle? that is /awesome/ Nov 20 20:36:54 g00s: i've done sqlite stuff; kismet does not currently use it, though I've considered it. Nov 20 20:37:12 g00s: yeah just started a few weeks ago Nov 20 20:37:18 congrats man ! Nov 20 20:37:24 thanks; got some interesting stuff in the pipeline Nov 20 20:37:48 anyone Nov 20 20:37:50 the folder for images Nov 20 20:38:02 i can't wait until dark mail alliance has some tangible stuff Nov 20 20:38:06 anew: what? Nov 20 20:38:13 res/drawable? Nov 20 20:38:16 what folder holds images for the vdm Nov 20 20:38:25 no Nov 20 20:38:28 in the windows directory Nov 20 20:38:33 so i can put a jpg or whatever in there Nov 20 20:38:37 and see it in my phone 'gallery' Nov 20 20:39:10 what is vdm? Nov 20 20:39:17 virtual device manager Nov 20 20:39:34 anew: pretty sure you have to use dab push Nov 20 20:39:35 there is no windows folder Nov 20 20:39:39 you have to push Nov 20 20:39:40 anew: emulated devices would be a single disk image Nov 20 20:39:40 i don't think there is a drag and drop Nov 20 20:39:49 anew: you have to boot the image and push to it Nov 20 20:39:50 adb push* Nov 20 20:39:54 i mean there has to be, where does the gallery look for pictures Nov 20 20:40:05 if I was going to connnect to multiple telnet servers simultaneously using a service...should I use separate threads for each one or not? Nov 20 20:40:12 anew: i could be wrong, but I think it is an image file Nov 20 20:40:17 not a physical directory Nov 20 20:40:37 damccull: I probably would Nov 20 20:41:03 damccull: Just for simplicity. I forget if java has a select() analog or if they expect you to make a thread to handle it. If the latter, definitely multiple threads then. Nov 20 20:41:12 anew: Nov 20 20:41:15 sorry Nov 20 20:41:20 yes Nov 20 20:41:21 looks like you can use DDMS in eclipse Nov 20 20:41:38 SO link: http://stackoverflow.com/questions/2808632/manually-put-files-to-android-emulator-sd-card Nov 20 20:41:39 dragorn: you know of any tutorials on telnet for android? lol. I'm having a hell of a time Nov 20 20:41:46 android doesn't java nio.2 nonblocking networking Nov 20 20:41:55 threads + blocking it is Nov 20 20:41:59 cool thx burmat Nov 20 20:42:07 anew: bottom answer. I have never done it that way though. I have always used adb push to push files Nov 20 20:42:09 good luck Nov 20 20:42:33 damccull: I do not. Telnet is basically just a tcp socket, however. It only gets funky when you have to deal with terminal control codes. In general telnet is pretty scary, security-wise, though Nov 20 20:42:50 dragorn: nothing to do with security. mud client. :D Nov 20 20:43:07 Guys I am trying to load a serialized Object which just contains of an integer and serialized without any errors ... and this code: https://gist.github.com/anonymous/f9bfbb9b1d4ca3c4a407 executes with no errors (had a breakpoint on every line and it just stopped at the ones in the try-clause) but the return value is always null :S you have any ideas what's wrong? Nov 20 20:43:24 burmat: this is the layout file now: http://jankakoira.dyndns.org/layout.txt Nov 20 20:43:48 Yatekii: why use serializable and not parcelable? Nov 20 20:44:12 gdrc: because I just know that you can serialize things? (from C#) Nov 20 20:44:30 damccull: ah hah Nov 20 20:44:33 damccull: I miss muds :) Nov 20 20:44:37 parcelable is better, Yatekii Nov 20 20:44:43 faster and safer Nov 20 20:44:47 dragorn: i do occasionally :D Nov 20 20:44:52 what is the difference? Nov 20 20:45:06 Lazeeee: do you happen to have a screenshot of what it looks like? How long is the text you are popping into those TextView objects? Nov 20 20:45:09 anyways, what's wrong with my code? (I assume it works similar) Nov 20 20:46:00 Yatekii: http://www.developerphil.com/parcelable-vs-serializable/ Nov 20 20:46:13 damccull: so look at android terminal emulator - as i recall it's open soruce, and implements a vt100 terminal Nov 20 20:46:45 damccull: so I expect you'd want to plumb your telnet sockets into something that does proper term emulation Nov 20 20:46:54 dragorn: oh it is, is it? I shall look, though I was hoping for something simpler. Nov 20 20:46:57 Lazeeee: I mean, that looks more than fine to me.. it is probably something very simple you are overlooking Nov 20 20:47:08 burmat: the text length varies but it's usually at least 10 words but may be 100 words(then the infowindow should have scrollbar) Nov 20 20:47:16 dragorn: I have some open source example code in C# that talks to mud clients properly with telnet, pueblo, etc, that I was going to port Nov 20 20:47:30 damccull: you could just write it to a text view or something but the cursor handling/line mode/etc commands would come out as garbage Nov 20 20:47:43 i can take a screenshot, brb Nov 20 20:48:13 Lazeeee: well if that is the case, it will extend the width of the view until the screen edges are hit. That is how wrap_content basically works. if you specify the width of the linear layout and then use "match_parent" on the TextView objects, it will not widen the layout Nov 20 20:49:10 gdrc: well thanks a lot! I will use Parcelable, but I still don't know how to load it ... and I am sure google will not tell me properly like it die not with Serializable after several tuts. Nov 20 20:50:40 so, WTF is going on with Google Play Services killing my battery lately? Setting -> Battery shows its pretty much slaying it. Nov 20 20:52:29 burmat: i try that Nov 20 20:53:17 gdrc: I assume I have to make too ctors for any object, right? Nov 20 20:53:18 *class Nov 20 20:53:39 yes Nov 20 20:53:46 *two Nov 20 20:53:50 kk Nov 20 20:54:06 still have to find out how to write it to files, but I got this Nov 20 20:54:07 omw Nov 20 20:54:11 burmat: how can i set the width like 50% of the screen width? Nov 20 20:54:19 using weight? Nov 20 20:54:30 g00s: http://www.androidpolice.com/2013/11/19/its-not-just-you-google-play-services-seems-to-be-a-battery-hog-today/ Nov 20 20:54:48 gdrc just found that; reading for a solution Nov 20 20:54:55 Lazeeee: LinearLayout does not support weight, you would have to do it dynamically in your code if you wanted to stick with LinearLayouts Nov 20 20:55:39 I installed my own app with the same package name as google play services to get rid of the annoying nagging about crap wanting to install that crap Nov 20 20:55:41 i don't have to stick with linearlayout. it doesn't matter how the wanted layout is achieved Nov 20 20:55:43 gdrc "The biggest problem of the Google Play Service is that we lost transparency in the battery stats. In early days we saw always the app in the battery stats which caused the trouble, but since most apps use the play services for location it "just" lists the play services and not the app which causes this huge waste of power.", hmmm Nov 20 20:55:47 Lazeeee: wait, i might have lied just now Nov 20 20:55:48 seems like a good decision now ;) Nov 20 20:55:53 lol :) Nov 20 20:56:19 i love android and google maps but these layout things are difficult :) Nov 20 20:56:24 Zharf haha ! man this stuff is a cancer Nov 20 20:56:34 I refuse to install that crap Nov 20 20:56:34 and i'm sure i'm not the only one who have problems.. Nov 20 20:56:42 I have absolutely no use for google play services Nov 20 20:56:51 Zharf it was that easy? install app with same package name ? Nov 20 20:56:59 yeah, it didn't even have any code in it Nov 20 20:57:05 hahaha Nov 20 20:57:12 Lazeeee: No, you wouldn't be able to because you would still need to pull the screen width. It would work if you wanted to specify the weight of objects contained within your layout, but it doesn't really help when it comes to the layout itself Nov 20 20:57:19 dude, put it on play store and charge $1 you'll be a millionaire Nov 20 20:57:33 ok Nov 20 20:57:35 I can't, it has the same package name as google play services ;) Nov 20 20:57:37 oh, you can't Nov 20 20:57:46 gah, foiled ! Nov 20 20:57:52 damn it is hard to just set simple width of an infowindow.. Nov 20 20:57:54 f-drod maybe Nov 20 20:58:02 Lazeeee: unless you wrapped it Nov 20 20:58:37 Lazeeee: shit, i don't know.. sorry, let me think for a minute Nov 20 20:59:49 Zharf if you try to uninstall play services, does the Play Store break ? i don't care about the other crap Nov 20 21:00:15 g00s, I haven't found a google app that doesn't work without google play services Nov 20 21:00:28 >.> Nov 20 21:00:30 I use only maps and store though Nov 20 21:00:30 burmat: i suppose you understand the problem and don't need the screenshot anymore? Nov 20 21:02:04 an update on my webview problem: clearing the webview cache when it is created solved the mysterious problem Nov 20 21:03:10 hmm gdrc am I right that Maps are not natively parcellable? Nov 20 21:04:16 Yatekii: don't know never tried Nov 20 21:04:42 Yatekii: you may need this http://devk.it/proj/parcelabler/ Nov 20 21:05:42 Lazeeee: Yes, so what I would do is dynamically create the layout Nov 20 21:06:13 webview got stuck when loading resources from cache Nov 20 21:06:41 hmm Nov 20 21:07:04 gdrc: thanks a whole lot! Very nice, but I am sad it does not work for me since HashMaps: http://grab.by/scOa Nov 20 21:08:05 oh Nov 20 21:08:22 burmat: i have to find out how Nov 20 21:08:23 Lazeeee: you can use DisplayMetrics to pull the width Nov 20 21:08:34 and then you can use LayoutParams to specify the width of a layout Nov 20 21:08:40 then just add the layout to your current view Nov 20 21:09:00 burmat: ok. i remember displaymetrics, used that some months ago with different app Nov 20 21:10:05 burmat: so i pull screen width and then set layout in the code 0.5*screenwidth Nov 20 21:10:17 and then center it Nov 20 21:10:29 yeah, that would be a way to do it Nov 20 21:10:41 i try Nov 20 21:11:14 but if you are specifying the width of the layout in the xml and it is not holding true, I am wondering if it the layout is being placed inside some type of layout wrapper Nov 20 21:11:47 i don't really know anything about infowindow, let me dig into it a little to try and understand how it works Nov 20 21:12:28 these are simple things with normal maps api but not with android maps api Nov 20 21:13:38 burmat: i tried to set the text inside the infowindow to be just few letters and the infowindow size is smaller, only wraps the content Nov 20 21:13:54 because of wrap_content Nov 20 21:14:10 Lazeeee: that's good Nov 20 21:14:40 so it uses much space because there is so much text inside. but there still needs to be a way to modify the width Nov 20 21:15:17 Lazeeee: and your'e sure that specifying the width of the LL and then using "match_parent" on the TV objects doesn't work? Nov 20 21:15:23 because it should Nov 20 21:16:11 gdrc: maybe I hava Solution but can you tell me one thing: https://gist.github.com/anonymous/26afeb0d8857269ad816 why is there a Bracket between Swag and Integer in the first line? Because my IDE (AS) seems to not recognize it Nov 20 21:16:18 do i need to change heights? Nov 20 21:16:38 no, I would just leave that for now and worry about the width Nov 20 21:17:17 http://jankakoira.dyndns.org/layout.txt like this? Nov 20 21:17:41 yeah, how does it look? Nov 20 21:17:50 with this layout the result is still the same :( Nov 20 21:17:55 no change.. Nov 20 21:18:13 tried these earlier btw Nov 20 21:18:17 damn. Nov 20 21:18:27 coz i thought that it should work this way too :) Nov 20 21:18:40 that's why i asked Nov 20 21:19:23 yeah, i figured you would have tried it, but there is something simple we are overlooking because it is not behaving the way it should Nov 20 21:19:40 yea Nov 20 21:20:19 Yatekii: how did you get that code? with parcelabler? Nov 20 21:20:30 gdrc: ya Nov 20 21:20:44 Yatekii: seems not correct, maybe a bug Nov 20 21:20:52 gdrc: https://gist.github.com/anonymous/3e77beee6d2120709545 whole code :) Nov 20 21:21:19 yes a bug Nov 20 21:21:26 k then I somehow have to understand how that whole CREATOR thingy works because atm I have not one clue of understanding lol Nov 20 21:22:37 sorry Lazeeee i'm stumped and I have to get out of here for a bit. keep playing with it and drop me a line later if you are still suffering. in the mean time, i would try setting the layoutparams dynamically in when you have an onclick event. Nov 20 21:23:16 burmat: don't worry. thanks a lot for the help :) i try setting dynamically Nov 20 21:25:00 Yatekii: you can do it :D Nov 20 21:25:17 gdrc: it is so weird ... don't understand a word Nov 20 21:25:19 but yeah Nov 20 21:27:05 ah gdrc the CREATOR thingy is for when another class has do Parcel an object of this Class, right? Nov 20 21:28:30 I'm testing my app on an android 2.3.6 device. I'm trying to register the app to GCM services using the new GoogleCloudMessaging class APIs. I receive a gcm key through a REGISTRATION intent in the broadcast but the app still doesn't receive any gcm messages. Should the app register old devices to c2dm using the old intent broadcast method discribed here http://developer.android.com/google/gcm/c2dm.html#client ? After a while I also get an Nov 20 21:28:31 intent to unregister in my broadcast. Does anyone has a clue? Nov 20 21:28:54 gdrc: I am very sorry to bother you so much but can you have a pretty quick look if this possibly may work: https://gist.github.com/anonymous/b0e9a9642dfe1a0628e7 or if it is general failure in itself? :D Nov 20 21:30:03 compengi: I wish I had an answer, but no clue. Nov 20 21:30:24 Well, thanks then :) Nov 20 21:30:47 compengi: I hate when I ask a question with all the details and get crickets, so i figured I'd at least toss you a bone :) Nov 20 21:31:07 Yatekii: you're missing public static Parcelable.Creator Nov 20 21:31:27 dragorn, Gottcha ;) Nov 20 21:31:58 ahmm gdrc am I? I am pretty sure I have it included ... :S do I missunderstand you? :S Nov 20 21:32:41 Yatekii: just follow instructions Nov 20 21:33:11 and a pretty quick Question: do you know some good tut how to save and load that parcels now? because I am pretty sure now I am too dumb to find one ... just how to implement but not how to save/load that shit :( Nov 20 21:34:10 what you mean with save? Nov 20 21:34:18 you mean print on file? Nov 20 21:35:05 ahm, don't you mean what I implemented on line: 44 https://gist.github.com/anonymous/b0e9a9642dfe1a0628e7 because I just read tha page you gave me (Parcelable vs Serializable) again and I am pretty sure I implemented the creator on my line 44 :S Nov 20 21:35:12 gdrc: yap, print on file :) Nov 20 21:35:19 and load it back in again Nov 20 21:36:00 Yatekii: just save it as raw class Nov 20 21:36:23 uhhmmm so many new things :S "just" :D Nov 20 21:36:32 like just eat that cake I gave you Nov 20 21:36:47 but for me it sounds like "Climb that Mount Everest over there" :D Nov 20 21:36:54 *just climb .. Nov 20 21:36:59 haha Nov 20 21:37:05 well I try to google more Nov 20 21:37:09 thanks for the help! Nov 20 21:37:14 mucho apreciato! Nov 20 21:37:16 good day everyone, as a last resort after 3 days of googling and trying to get a simple google maps application to work, I still cant manage to make it work correctly on a device, if anyone have a few minutes to help me out I would greatly appretiate it Nov 20 21:38:48 tried running custom applications and Google Maps API Demo, registered a key on Google API Console and added it to the code, still getting wierd errors like flickering buttons/panels and failure to authenticate Nov 20 21:39:53 followed multiple guides yet still unable to make a working map, best I managed to get is app running but map staying blank and error showing Authentication problem, even thou all keys are registered and should work Nov 20 21:45:10 if anyone have a few moments and managed to get Google Maps v2 to work on android please let me know, would highly appretiate iy Nov 20 21:48:01 gdrc: would you .marshall() the parcel? Nov 20 21:48:07 and then write to a file? Nov 20 21:50:11 where did you find marshall() ? Nov 20 21:54:40 gdrc: http://stackoverflow.com/questions/12034917/read-and-write-arraylistobject-with-various-type-of-objects-in-parcel Nov 20 21:54:57 you told me to save it as raw class but I only figured out what a raw type is Nov 20 21:55:07 not how to save anything until that thread Nov 20 21:55:24 atm I save as ObjecOutputStream Nov 20 21:55:27 but dunno Nov 20 21:56:02 my idea was to print the original class and not the parcelabled one Nov 20 21:56:46 ha? how would that work Nov 20 21:56:50 oO I don't get it Nov 20 21:56:58 well anyways I think I am done Nov 20 21:57:04 too difficult for me Nov 20 21:57:06 as it seems Nov 20 21:57:14 it is not Nov 20 21:57:28 just search for examples Nov 20 21:57:33 man I started using Java Saturday and yeah there is no examples. Nov 20 21:57:40 except the one I posted Nov 20 21:57:50 and they .marshall() it into bytes Nov 20 21:58:18 ok so what's the issue? Nov 20 21:58:49 I now implemented parcelable and I can create some parcel + if i have a parcel I can create a new object from it Nov 20 21:59:04 anyone in here have any knowledge on how to get Google Map API v2 to work on android device? running into many problems which I cant find a solution for after extensive googling Nov 20 21:59:13 I even figured out I have to do Parcel.obtain() (wow I'ma boss (jus kiddin)) Nov 20 21:59:29 but how do I write that parcel to a file if I cannot it's useless, right? Nov 20 22:00:57 DmitrySokolov: generally, I've just followed the directions Nov 20 22:01:14 Yatekii: do not write parcels to file. Period. Nov 20 22:01:28 Yatekii: mmmh why it is useless? Nov 20 22:01:33 evanc: yeah very useful that Parcels then lol Nov 20 22:01:50 oh yes you're right Nov 20 22:01:59 I mean I have some object and I want to save it for the next time I open the app after closing it? Nov 20 22:02:00 The data you retrieve here must not be placed in any kind of persistent storage (on local disk, across a network, etc). Nov 20 22:02:01 no? Nov 20 22:02:12 Yatekii: so serialize it some other way Nov 20 22:02:29 HARK! someone is trying to persist serialized Parcels Nov 20 22:02:31 Yatekii: save them as xml file I would say Nov 20 22:02:37 use something designed for serialization, such as protobuf Nov 20 22:02:40 Do not do this; no good will come of it. Nov 20 22:02:58 The marshalling code for Parcel can and does change between releases Nov 20 22:03:11 I don't get it Nov 20 22:03:14 and we make NO attempt at compatibility Nov 20 22:03:24 I just wanna save one object to have it back after I restart the app Nov 20 22:03:29 one tells me serialize it Nov 20 22:03:34 one tells to parcel it Nov 20 22:03:34 Yatekii: so save it, just not as a parcel Nov 20 22:03:40 the third tells none of them wirks Nov 20 22:03:40 just dont' use parcel Nov 20 22:03:50 otherwise, your shit gon' dun break Nov 20 22:03:52 there are a number of tools available that do work Nov 20 22:04:10 yeah seems that I'm a douche and can't find them on google Nov 20 22:04:10 oh hai ctate Nov 20 22:04:23 protobufs if that floats your boat, JSON, java "Serializable" infrastructure, whatever XML pile you want to play with, etc. Nov 20 22:04:28 Yatekii: use java.io.Serializable Nov 20 22:04:39 just don't use Parcel. No good will come of it. Nov 20 22:04:52 well I was using Serializables and was then told off to Parcels Nov 20 22:04:57 because it's faster and safer Nov 20 22:05:05 faster yes, safer no Nov 20 22:05:10 what ctate said Nov 20 22:05:11 I dun know nothing Nov 20 22:05:19 Parcels are for IPC, not for long-term serialization Nov 20 22:05:20 like a Soldier just executing :P Nov 20 22:05:26 hmm Nov 20 22:05:26 Parcel is *only* suitable for transient uses when shipping data between processes in a running system Nov 20 22:05:37 oh kk Nov 20 22:05:46 well you kno I'm coding some sort of mp3 player Nov 20 22:05:49 and yeah Nov 20 22:06:01 reading the FS everytime I start the App is like dunno Nov 20 22:06:13 waiting 15sec to perform one searching action Nov 20 22:06:17 hint: it's reading the FS just to load your app :) Nov 20 22:06:37 reading one small bit of data from disk is not going to take a long time Nov 20 22:06:43 so I thought of caching all the Tracks into Objects Nov 20 22:06:48 and store them serialized Nov 20 22:06:55 but then serialization did not work Nov 20 22:06:58 i asked for help Nov 20 22:07:02 and i was told to use parcels Nov 20 22:07:21 ctate if I read 2k + tracks, yes I think so Nov 20 22:07:52 that's a lot of data if you're reading all the audio, not a lot of data if you're just reading in titles etc. Nov 20 22:08:12 whoever told you to use Parcels has shown themselves to be a poor source of advice :) Nov 20 22:08:12 ctate: I just read the ID3-Properties Nov 20 22:08:31 and that costs me a lot of time Nov 20 22:08:35 okay, so you ARE scanning the mp3 stream for metadata. that will be relatively slow. Nov 20 22:08:43 which is why you want to save your findings in a more compact way for later :) Nov 20 22:08:47 for 500 tracks just to search for eminem in artists takes 15secs Nov 20 22:08:48 ~ Nov 20 22:09:15 ctate: that is exactly what I wanted to do :S Nov 20 22:09:22 maybe I am poor at explaining :S Nov 20 22:09:30 right, we're agreeing that you're on the right track. Nov 20 22:09:42 some guy told me once that I explain like a drunk sailorsman Nov 20 22:09:43 :D Nov 20 22:09:44 just don't use Parcel. :) Nov 20 22:10:16 yah can I tell you my thought out strategy and you tell me if it sucks or rocks or is in between? :D Nov 20 22:11:05 i'm sure someone here can provide reasonable feedback Nov 20 22:11:10 * ctate glares at the assembled gallery Nov 20 22:11:17 ^^ Nov 20 22:11:21 Well ok: Nov 20 22:11:23 mostly i'm in the business of pointing out the folly of using Parcel Nov 20 22:12:19 ctate do you think, with improvements in ART & such, if serializable is performant enough they would eliminate parcel ? Nov 20 22:12:40 seems like it solves a problem that won't be there forever Nov 20 22:12:42 there's no way in hell Serializable can ever be as performant as Parcel Nov 20 22:12:57 'performant enough' :) Nov 20 22:12:59 the design of Parcel swaps genericity for speed Nov 20 22:13:05 there is no such thing as "performant enough" Nov 20 22:13:22 okay i lie; in some domains there is Nov 20 22:13:24 IPC is not one of them Nov 20 22:13:27 just ask the Mach team Nov 20 22:13:37 or QNX Nov 20 22:13:37 sure, pay as you go is a good philosophy there Nov 20 22:14:30 I read all the Track info once and checksum the FS and store it in the Trackmanager. In the Trackmanager I have some list of all "Track"-objects. It's a HashMap whilst the key is the Hash of the Track String (so I can find back from the track to the trackdata)) whan the checksum of the FS changes the app performs a new scan on startup and actualizes the list everything else just reads and references to the Nov 20 22:14:31 tracklist. on app-quit I store the track-list in some serialized-file Nov 20 22:14:41 does that sound ok to you? Nov 20 22:14:55 ok, just disabled google search and voice input, lets see if my battery use gets better :) Nov 20 22:15:17 Yatekii sqlite? Nov 20 22:15:41 I hear databases are great for storing persistent data Nov 20 22:15:59 sqlite is awesose replacement for fopen() :D Nov 20 22:16:06 *awesome Nov 20 22:16:18 ah I forgot: I exchanged the checksum strategy with the date the file was changed last Nov 20 22:16:23 * joakime read that as "aw so-so" Nov 20 22:16:39 we're not making that a thing, I hope Nov 20 22:16:41 g00s: ahm I cannot work around the fopen because the ID3-properties are IN the mp3-file Nov 20 22:16:54 Chainfire: what thing? Nov 20 22:17:10 Chainfire: well so you'd just store all the data in sqlite hmm Nov 20 22:17:20 why am I so dumb and did not think of that earlier Nov 20 22:17:36 hmm Nov 20 22:17:41 Yatekii well, it is specifically built for the purpose Nov 20 22:17:42 wow I'm so dumb Nov 20 22:17:45 could hit myself Nov 20 22:18:40 well my I just ask for a ~ answer for this question: what does sqlite do differently that it can retrieve data so fast? I mean the db is stored on the fs too, right? Nov 20 22:18:55 How, in strings.xml, do I make a string with the value @explodes? Nov 20 22:19:01 I get an error because of the @ Nov 20 22:19:15 Yatekii if a column is indexed, its a search in a btree Nov 20 22:19:43 Yatekii there are all sorts of algorithms to load and store persistent data ... you're asking a question to which the answer could fill books. Nov 20 22:20:06 btree kk I will google that Nov 20 22:20:12 well there is so much interesting stuff :S Nov 20 22:20:16 I wanna learn it all Nov 20 22:20:21 but it's impossibruuuuuu Nov 20 22:20:40 I just know the tree that cuts in halves Nov 20 22:21:13 like when you have a tree range from 0 to 100 and you have the number 30 you look if 30 was greater or smaller than 50 Nov 20 22:21:29 but how to perform that on many paramters at once is a riddle for me :D Nov 20 22:21:32 and my english sucks Nov 20 22:21:40 and I stop spamming now Nov 20 22:21:49 thanks so much guys and sorry for everything! Nov 20 22:22:32 aber iwie hani doch no bock uf es game Nov 20 22:22:38 und iich früüre endli nümme :) Nov 20 22:23:21 If you setMyLocationEnabled(true) on a google map v2, is there a way to get a handle to that marker? Nov 20 22:24:43 * ctate . o O ( Schwiizertüütsch? ) Nov 20 22:25:41 Good evening, anyone ever managed to get Android Google Maps v2 to work (authenticate)? failing to do it, and i tried many tutorials and processes still no result, would appretiate any help or tips Nov 20 22:25:55 ctate: where are you from? Nov 20 22:26:07 and why you try to speak in Schwiizerdüschtsch? Nov 20 22:26:08 den USA, natürlich Nov 20 22:26:15 *Schwiizerdütsch Nov 20 22:26:21 aber einmal habe ich Deutsche auf der Uni studiert Nov 20 22:26:27 ich habe fast alles vergessen, leider Nov 20 22:26:29 ah kk Nov 20 22:26:30 :D Nov 20 22:26:33 :) Nov 20 22:26:36 ja, das sehe ich :P Nov 20 22:26:39 ha hah a Nov 20 22:26:47 be nice :) Nov 20 22:26:48 you speak well for just having learned it a long time ago Nov 20 22:26:53 I was kiddin yo Nov 20 22:27:09 i haven't actually used it in, um, a lot of years. more than 20. Nov 20 22:27:10 i couldn't remember my der / die / das :| Nov 20 22:27:12 so yay? Nov 20 22:27:29 I always think I am a good english speaker but I always have to remind myself that I suck Nov 20 22:27:36 DmitrySokolov yes, just recently. what have you done so far, and what is happening? Nov 20 22:27:38 wow that is a lot of time Nov 20 22:27:49 your English isn't that bad, actually Nov 20 22:27:59 well funny you just randomly say Schwiizerdüütsch because yeah I am from Switzerland heh Nov 20 22:28:15 well I make a lot of mistakes I think Nov 20 22:28:20 "iich früüre endli nümme" was sort of a giveaway :) Nov 20 22:28:29 LOL Nov 20 22:28:29 WTF Nov 20 22:28:32 HOW Nov 20 22:28:39 wow I wrote that to this channel Nov 20 22:28:42 wow I'm sorry Nov 20 22:28:45 So far i tried the following: installed ADT from google, downloaded Google Play Services with SDK Manager, Imported existing android code including google play services lib and examples/maps (MainActivity) Nov 20 22:28:46 ha ha Nov 20 22:29:11 DmitrySokolov have you set up your API key? Nov 20 22:29:13 registered application on Google API Console using the SHA1 key i get from (exporting the application) using androiddebugkey Nov 20 22:29:31 I am so excited about implementing sqlit3 into my app :) Nov 20 22:29:36 so it will finally perform well Nov 20 22:29:37 instegrading the key into the manifest, and running the app on the device, also tried transfering (Export) and installing on device as per some guides Nov 20 22:29:48 always getting blank map (eclipse reports authentication problem) Nov 20 22:29:52 DmitrySokolov what error do you get in logcat when you try to load map Nov 20 22:29:53 ok Nov 20 22:29:54 Fun Fact: I use sqlit3 everyday but I did not even think of using it Nov 20 22:29:57 like douche Nov 20 22:29:58 failed to authenticate Nov 20 22:30:28 DmitrySokolov in Eclipse, go to Window, Preferences, Android, Build. Does the SHA1 fingerprint there match the fingerprint you used when registering key? Nov 20 22:32:08 meh, searches don't tell me if the moto skip works with password policies :( Nov 20 22:32:37 moto what? Nov 20 22:32:38 I'd enable exchange on my phone and buy a skip if it worked Nov 20 22:32:47 yes it is Nov 20 22:33:15 i can redo the whole thing, if it will help to avoid any errors i may have caused Nov 20 22:33:24 its just an example google provides, which is not even working Nov 20 22:33:33 so it should be fast to redo Nov 20 22:34:19 thank you for taking the time btw theblang :( i feel like i am banging my head against the wall for past few days trying to get it to work Nov 20 22:38:00 i think i screwed something up getting "Unfortunately, Google Maps API Demos has stopped." Nov 20 22:38:42 and eclipse reporting multiple errors in: main Nov 20 22:38:54 i'll try to redo it, since its seems to be completly broken atm :( Nov 20 22:40:57 DmitrySokolov sorry, my webchat crapped out Nov 20 22:41:09 np, trying to redo the project now completly Nov 20 22:41:15 since i cant even get to the part where i was stuck before Nov 20 22:41:30 DmitrySokolov you shouldn't have to generate a key or anything, if you are just debugging / testing. ADT should sign the app with that key that you saw in Window -> Preferences Nov 20 22:41:48 would you mind to confirm with me step by step, to make sure its not something i am messing up in process of importing existing google example code Nov 20 22:42:07 How do I put an "@" in the string resources file? Nov 20 22:42:19 are you sure? since every tutorial for v2 is making sure to accentate that you need to obtain personal key from google or you will not see the map in the app Nov 20 22:42:53 answer: @ Nov 20 22:43:12 DmitrySokolov Sorry, I shouldn't have said key, I meant the SHA1 fingerprint. Did you make sure to put the SHA1 fingerprint, then also the name of your app? (com.example.test) Nov 20 22:43:44 DmitrySokolov If you were getting the authentication error in logcat, I am pretty sure you imported the play library correctly Nov 20 22:44:06 yep i tried to make sure that my name is imported correctly, even tried to use different variations Nov 20 22:44:18 com.vogella.android.locationapi.GPSA Nov 20 22:44:24 thats the name i imported with SHA1 Nov 20 22:44:32 project name is GPSA Nov 20 22:44:56 AC:FF:8D:EF:C4:03:50:B4:07:8E:04:22:18:36:68:CA:FC:29:A0:A4;com.vogella.android.locationapi.GPSA Nov 20 22:45:04 this is complete import into google API Console Nov 20 22:45:38 http://developer.android.com/reference/android/view/View.OnClickListener.html Nov 20 22:45:46 can someone please tell me what View v is here Nov 20 22:45:50 onClick(View v) Nov 20 22:46:19 i mean when writing this... if v is the view that was clicked Nov 20 22:46:26 why cant you just onClick( v ) Nov 20 22:46:33 why onClick(View v) Nov 20 22:46:48 ok fixed an app, its running on device now, blank white screen Nov 20 22:46:52 and getting authentication error again Nov 20 22:47:13 DmitrySokolov Send me the exact error you get in logcat Nov 20 22:47:54 11-20 22:46:26.619: E/Google Maps Android API(5949): Ensure that the following correspond to what is in the API Console: Package Name: com.example.mapdemo, API Key: AIzaSyCvGBr5in13NK2yYBR7lhXTtnxj3mrXQy4, Certificate Fingerprint: ACFF8DEFC40350B4078E0422183668CAFC29A0A4 Nov 20 22:48:12 hm seems like package name is not what it should be Nov 20 22:48:20 anew, because java Nov 20 22:49:24 DmitrySokolov yeah, that seems to be the problem. if you go into your project, then src, you should have a package folder. whatever that name is, is what should be after the semicolon in the google api website Nov 20 22:49:38 argh Nov 20 22:49:40 that answer sucks Nov 20 22:50:01 ok ill do it right away 1 sec Nov 20 22:50:29 the only device with step counter seems to be the nexus 5 Nov 20 22:51:01 i need a hackathon that I can win a nexus 5 so I can play with it lol Nov 20 22:51:05 anew because Java is statically typed Nov 20 22:51:18 anew unlike python or javascript Nov 20 22:51:47 hmmm Nov 20 22:51:48 i see Nov 20 22:51:50 thx theblang Nov 20 22:51:54 WOW Nov 20 22:51:58 i cant thank you enough Nov 20 22:52:02 theblang Nov 20 22:52:14 2+ days of banging my head against the wall... Nov 20 22:52:27 thank you, it works, i can finally start working on my application now Nov 20 22:53:18 How do you debug your physical phone? My app is working properly on my emulator but crashing on my phone Nov 20 22:55:18 The same way you'd debug on the emulator. Nov 20 22:56:30 kakazza: can you be more specific? Nov 20 22:56:46 adb logcat, or attach ide as debugger over usb Nov 20 22:58:39 DmitrySokolov great! yeah, it was a little frustrating to get set up at first. Nov 20 23:01:06 hello everyone Nov 20 23:01:18 hi shibakaneki Nov 20 23:04:28 It seems like WebView will render html-stuff-that-doesnt-show-up-here html-stuff-that-does-show-up-here as if the first doesn't exist Nov 20 23:04:35 I have a ListView where all row are ViewFlipper. I want to flip all items one after each other. Every row's ViewFlipper is registered to a custom class that acts like an Observable ( so I can determine the order of item). When I want to flip the items, I call this classe's "flip" method that goes in the list of registered ViewFlipper and flip them one after each other. The problem is that the ListView waits and suddenly all the rows Nov 20 23:04:36 flipping at the same time. Any idea how I can flip them one after each other? Nov 20 23:04:57 Unless I am not understanding what WebView does with html Nov 20 23:07:09 exit Nov 20 23:07:13 dammit Nov 20 23:07:14 lol Nov 20 23:09:50 is there a way to automatically wipe data when deploying an app in eclipse? (or what command line can I use to do this before I push to device?) Nov 20 23:10:26 after a year, I've finally moved all the old activites to fargment based -_- Nov 20 23:10:29 lol Nov 20 23:10:31 lasserix: adb shell pm clear com.foo.bar Nov 20 23:11:04 thanks Nov 20 23:17:37 Hello world! Nov 20 23:21:46 btw ctate why would I use parcels if they are just good inApp? I mean why not just directly send the object? :) Nov 20 23:23:06 I've noticed that my "recycled" Loader via getSupportLoaderManager().initLoader(...) sometimes provides the onLoadFinished() with an instance of T with null attributes. :( Nov 20 23:23:14 Yatekii: you can't always just send the object Nov 20 23:23:17 for example, IPC Nov 20 23:25:00 Like, Loader in this example would get a FooClass passed into onLoadFinished() but that instance wouldn't have any actual values in it (myFooClass.getBarList() returns null instead of List) Nov 20 23:25:05 Any ideas why that happens? Nov 20 23:26:25 Is this "storing of values" something that I myself can control/override when using my realisation of the Loader? Nov 20 23:30:17 evanc: http://en.wikipedia.org/wiki/Indice_de_Precios_y_Cotizaciones ? :D Nov 20 23:30:52 I am pretty sure IPC is some SOrt of threading Nov 20 23:31:00 but Nov 20 23:31:10 Parcel is just an Object as well Nov 20 23:31:13 so yeah Nov 20 23:31:20 where's the point? Nov 20 23:42:10 Yatekii: http://en.wikipedia.org/wiki/Inter-process_communication Nov 20 23:43:28 heh Nov 20 23:45:10 heeh Nov 20 23:57:35 hey, was just wondering if anyone has access to a rooted device running 4.4 - are the ODEX files cleared from the device if you switch to libart.so, or is it then storing both the ODEX and the OAT files? Nov 20 23:59:38 speaking of root, I should drop a new su binary on my nexus 7 Nov 20 23:59:42 probably don't have su anymore :-/ Nov 21 00:00:16 * pfn shrugs Nov 21 00:00:56 hey guys, to take a picture with the android camera I just need to call an intent to take the picture correct? Nov 21 00:01:13 or do I need to import Camera and take a picture using the api? Nov 21 00:05:52 (one more tiny unrelated aside re German: https://plus.google.com/+ChristopherTate/posts/PFi6HJEUDTg ) Nov 21 00:06:00 because why not? Nov 21 00:08:02 lol Nov 21 00:14:47 Hi everyone, first time here, could you help me to solve this issue, when I'm evaluating this condition, I get nothing after I take a picture if (requestCode == CAMERA_REQUEST && resultCode == RESULT_OK) { Nov 21 00:15:42 the resultCode equals 0, it should be -1 Nov 21 00:15:47 anyone ? Nov 21 00:16:21 Let me use my magical powers to envision your source code and determine the problem Nov 21 00:16:25 :P Nov 21 00:16:31 Geneller: how are you starting the intent? Also, ==desmin88 Nov 21 00:16:43 Just post the relevant code so we can get a good look Nov 21 00:17:03 clarification: post it to pastebin.com (or similar) and send us the link Nov 21 00:17:14 Intent cameraIntent=new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); Nov 21 00:17:31 startActivityForResult(cameraIntent, CAMERA_REQUEST); // CAMERA_REQUEST = 100 Nov 21 00:17:53 I mean CAMERA_REQUEST = 3 Nov 21 00:18:17 desmin88 lol Nov 21 00:18:34 i try my best lol Nov 21 00:19:26 Geneller post your code on pastebin or something, then link us Nov 21 00:19:55 I need help with Retrofit. How can I differentiate between different callback returns? Like maybe tag a request and then in the response i get that tag back so i can know? Nov 21 00:20:00 pastie.org Nov 21 00:20:47 pastie.org, cool, ill give that one a try in the future. not a huge fan of pastebin Nov 21 00:21:12 heh, funny reading Google+ / Tools, every time a new gradle comes out the first thing on everybody's mind is "is it faster?" Nov 21 00:21:57 lol Nov 21 00:22:00 gradle is pretty slow Nov 21 00:22:03 to be fair Nov 21 00:22:29 http://bin.cakephp.org/view/453841520 Nov 21 00:22:30 I hate maven with a passion though Nov 21 00:23:10 make is fast Nov 21 00:23:19 ya, so are batch files some times Nov 21 00:23:23 .bat ftw ! Nov 21 00:23:27 batch files are slow Nov 21 00:23:46 nah, not if its javac *.java :) Nov 21 00:23:53 slow Nov 21 00:24:34 desmin88, theblang_, this is the link http://bin.cakephp.org/view/453841520 Nov 21 00:26:22 since line 307, this is being triggered when a NFC tag is discovered Nov 21 00:28:07 let's say I have a textView, editText, textView, editText Nov 21 00:28:12 the two textViews are static Nov 21 00:28:47 but I want the two editText's to fill up the rest of the space, each getting 50% of the space left Nov 21 00:29:09 these are in a horizontal Linearlayout Nov 21 00:30:27 oh Nov 21 00:30:30 found it :D Nov 21 00:30:41 wrap_content on the text view, weight=1 on edit text Nov 21 00:30:44 set layout:width to 0dp and layout:weight to 1 Nov 21 00:31:13 ok thanks :D Nov 21 00:32:55 JakeWharton: i dont want to bother but do you know a way to do that with retrofit? Nov 21 00:33:02 do what? Nov 21 00:33:25 with retrofit? Nov 21 00:34:32 Oh nevermind, I thought that I read, that frankdrey asked how to do his layout with retrifit lol Nov 21 00:34:32 I need help with Retrofit. How can I differentiate between different callback returns? Like maybe tag a request and then in the response i get that tag back so i can know? Nov 21 00:35:12 I don't know what you mean by different callback returns. Nov 21 00:35:20 You are re-using the same callback for multiple requests? Nov 21 00:35:24 yes Nov 21 00:35:36 is that bad Nov 21 00:36:09 I have an endlessdapter implementing callback, when it wants to cache more items i do a retrofit request Nov 21 00:36:11 no, they're just simple objects. but there's no way to tag requests Nov 21 00:36:24 you should de-bounce requests so there's never two in-flight at the same time Nov 21 00:36:36 then it's easy to know which request you were called for, it's the only one in flight Nov 21 00:36:36 Geneller so onActivityResult is being called after you take a picture? Nov 21 00:36:45 yes Nov 21 00:37:10 but I never get confirmed the condition Nov 21 00:37:39 Geneller what is the requestCode and and resultCode if you examine them? Nov 21 00:38:12 3 and 0 Nov 21 00:38:26 it should be 3 and -1 Nov 21 00:39:30 what are those message bubble things used in a lot of Holo apps called? I don't know how to describe it any other way :P Nov 21 00:39:50 like...when you type something wrong into an input field, it animates a message bubble coming out with an error Nov 21 00:39:54 but it doesn't interrupt Nov 21 00:40:02 Geneller is Intent null? Nov 21 00:40:09 Eh? Nov 21 00:40:17 A toast? Nov 21 00:40:42 Popup menu? Nov 21 00:41:13 Wait, no, not a popup menu.. what was that thing called Nov 21 00:41:19 yes Nov 21 00:41:33 JakeWharton: The issue arises whenever the user refreshes the adapter, what do i do with the old retrofit calls Nov 21 00:41:58 let me get a screenshot Nov 21 00:42:29 hmm...getting a screenshot on a 2.1 device may prove to be difficult :P Nov 21 00:42:36 Nilium a crouton ! Nov 21 00:42:41 Geneller does logcat show any errors? Nov 21 00:43:07 JakeWharton: before I would just keep a reference to the last task i created and cancel it Nov 21 00:43:33 Uh, never seen a crouton in the context of Android. Nov 21 00:43:34 theblang_: yes, this is the error, I search on Google but I can't find nothing Nov 21 00:43:36 NvOmxCamera::getCameraStereoMode(NvxComponent*, NvOmxCameraUserStereoMode&): Error: invalid NVX mode 0. Nov 21 00:43:50 hmmm...no, not crouton...but that's closer to what i'm thinking than toast :p Nov 21 00:44:50 FOUND IT Nov 21 00:44:56 http://i.stack.imgur.com/XmFEG.png Nov 21 00:45:08 Geneller what is your phone model and android version? Nov 21 00:45:44 The error message frankdrey? Nov 21 00:45:46 Asus Nexus 7 Nov 21 00:46:01 okkk...it's part of editText :D Nov 21 00:46:04 You can set that by calling EditText#setError("something") Nov 21 00:46:15 ahmad96, ok, thanks! :D Nov 21 00:46:39 What ahmad said. Nov 21 00:46:47 Geneller have you tried with both the front and back camera? Nov 21 00:47:34 this model just has a front camera Nov 21 00:49:43 Geneller do you have another model you can test with Nov 21 00:50:00 no, I just has this nexus device Nov 21 00:50:08 can't you see anything weird ? Nov 21 00:51:37 what if instead of using a camera intent, I open the camera and wait for callbacks ? Nov 21 00:51:41 like this: private Camera camera; Nov 21 00:52:01 and then this Nov 21 00:52:03 camera.takePicture(shutterCallback, rawCallback, jpegCallback); Nov 21 00:53:04 so right now when I try to repo init the AOSP, I'm getting: fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle Nov 21 00:53:17 is that... expected? Nov 21 00:53:37 Geneller check this out http://stackoverflow.com/questions/15797302/using-front-camera-on-nexus-7-with-android-4-2-2-doesnt-work Nov 21 00:54:14 command I'm using is repo init -u https://android.googlesource.com/platform/manifest -b android-4.4_r1.2 Nov 21 00:54:27 and my repo script is version 1.20 Nov 21 00:55:16 theblang_: how would I get the camera variable ? Nov 21 00:56:14 Oh I already saw it, let me try Nov 21 00:56:53 arggh. Nov 21 01:04:07 I have EditText blah1 = (EditText) view.findViewByID(R.id.blah1); and the exact same thing but blah2 one after the other...and the second one cannot resolve method findViewByID Nov 21 01:08:24 https://gist.github.com/andreyrd/2edc10ebd5bea356f496 Nov 21 01:13:02 any ideas?;p Nov 21 01:13:04 *:P Nov 21 01:17:22 frankdrey: you are sure they both exist in the layout "fragment_numbers"? Nov 21 01:17:36 or the second one exists? Nov 21 01:17:58 yeah Nov 21 01:18:04 if so, I uncheck "Build Automatically" under the build menu in Eclipse, Right Click > Android Options > Fix Project Properties Nov 21 01:18:19 once done, I go back up to the build menu and build the current project Nov 21 01:18:32 happens to me every once in a awhile and that tends to fix it Nov 21 01:18:39 oh and do a "Clean" before you build it Nov 21 01:18:48 if that doesn't work, idk Nov 21 01:18:53 ok, will try, thanks Nov 21 01:19:09 oh, this is android studio though :p but i get the idea Nov 21 01:19:36 agh okay, sorry that might not help too much then Nov 21 01:21:56 i'm trying it and i started getting IO errors about not being able to delete built files...so let's restart Android Studio :p Nov 21 01:22:47 I did sync with gradle and now rebuild Nov 21 01:24:51 ok same error o.o Nov 21 01:25:00 lemme paste fragment_numbers.xml Nov 21 01:25:53 https://gist.github.com/andreyrd/d4c3587a7a5390c02022 Nov 21 01:41:23 frankdrey: sorry, I am stumped. everything looks fine to me. maybe trying building it in Eclipse to see if you get the same error? Nov 21 01:48:46 eh, don't have Eclipse on here :P Nov 21 01:48:51 I have a temporary solution though Nov 21 01:48:57 Play League of Legends :D Nov 21 01:55:54 hmm, disabling Now and Google Search did not solve my Google Play Service battery drain problem Nov 21 01:56:04 i hope they fix this shit SOON Nov 21 01:56:16 and Voice Input Nov 21 01:57:00 For saving data to the device, is it advice to use a flat file or a DB Nov 21 01:57:43 depends :| Nov 21 01:58:02 i prefer curved files anyhow Nov 21 01:58:46 this may be a silly question Nov 21 01:59:12 but is the java version of multiple inheritance to have inner-objects that do it for them? Nov 21 01:59:36 ala... private BroadcastReceiver mReceiver = new BroadcastReceiver() { // do the stuff in here // } Nov 21 01:59:52 it happens a -lot- in this project, and i dont know if its convention, or just this project Nov 21 02:00:10 otiose i tend to do it like that too Nov 21 02:00:21 hmm ok Nov 21 02:00:31 it feels kind of strange having so many inner classes though Nov 21 02:00:39 if you make your activity / fragment whatever, implement a whole bunch of interfaces, etc, it gets difficult telling what goes to what Nov 21 02:00:48 that coudl be true Nov 21 02:01:00 i like having them 'grouped' in one spot like that Nov 21 02:01:09 thats true Nov 21 02:01:22 plus then you can fold the code! Nov 21 02:01:33 ;) Nov 21 02:02:18 bollocks i am stumped Nov 21 02:03:10 How should i refresh an adapter/endless adapter .-. Nov 21 02:03:41 desmin88 still on the endless adapter thing i see :) Nov 21 02:03:44 yes. Nov 21 02:03:45 its a bitch. Nov 21 02:03:49 hehe Nov 21 02:04:20 My main conundrum is how do I react to any callbacks from before the adapter was refreshed Nov 21 02:04:23 desmin88: still using that library you asked me about a couple weeks agoa? Nov 21 02:04:27 if i cant differentiate between the two Nov 21 02:04:29 yep Nov 21 02:04:46 hmm.. well i still have no idea Nov 21 02:04:51 but good luck :/ Nov 21 02:04:51 lol Nov 21 02:06:52 :g00s_ Simply saving encrypted JSON objects that need to persist if device is turned on/off, but not if app is deleted Nov 21 02:07:31 g00s_: With speed of retrieval not too important, but battery life imporant Nov 21 02:08:26 Obverse: http://pastebin.com/rHkd84Jp Refreshing consists of resetting the counter variable I use to keep track of the requests. Remaining issue is dealing with any callbacks that will come back from before the adpater is refreshed Nov 21 02:08:42 harttho the support lib has some journaled file thingy you can use Nov 21 02:09:44 g00s_: thanks, I'll look into it Nov 21 02:11:00 Observe* lol Nov 21 02:11:55 harttho AtomicFile Nov 21 02:12:09 http://developer.android.com/reference/android/support/v4/util/AtomicFile.html Nov 21 02:12:22 Thankyou Nov 21 02:23:19 romainguy do you think they applied some sort of 'painter' filter to this? http://ppcdn.500px.org/52587562/66f16329c6ce883c0b87acb552b4c331ec905528/5.jpg Nov 21 02:24:35 desmin88: in your success method maybe something like MainActivity.this.adapter.notifyDataSetChanged(); after adding the new items to the list ? Nov 21 02:30:27 g00s_, looks like they ipped the saturation and added a graduated filter for the sky Nov 21 02:30:32 *upped Nov 21 02:31:56 hey alex_PP yeah … i wonder if they also applied something like this http://www.topazlabs.com/simplify/ Nov 21 02:32:49 most of their examples have it 'set to 11' Nov 21 02:33:01 don't think so, maybe over sharpened a bit Nov 21 02:33:19 hm Nov 21 02:35:01 although, the more i look at it. the more the clodes and foreground look weird Nov 21 02:35:09 *clouds Nov 21 02:36:21 i think i'll be saving my $40 though Nov 21 02:37:12 i wouldn't mind the nik collection, $149, tempting Nov 21 02:37:36 I am trying to sideload kitkat through fast boot but when I do adb sideload I get error: insufficient permissions for device Nov 21 02:37:50 alex_PP maybe cyber monday sale ? i'd wait :) Nov 21 02:38:05 Topaz has huge sales around this time, sometime i guess adobe too Nov 21 02:38:16 cyber monday? Nov 21 02:38:43 yeah, the monday following thanksgiving in the US Nov 21 02:38:47 i think Nov 21 02:38:52 * g00s_ isn't much of a shopped Nov 21 02:38:56 i seeeee Nov 21 02:38:56 *shopper Nov 21 02:39:22 but yeah, great time to get digital media (ebooks, informit, manning, etc - most have huge sales) Nov 21 02:41:28 alex_PP Peter Krogh is coming out with a new ebook on Lr 5 DAM; he wrote the DAM Book a while back - should be pretty good Nov 21 02:42:17 still not read any lightroom books Nov 21 02:42:24 http://thedambook.com/ Nov 21 02:42:46 i read Martin Evenings one; all the other i looked at sucked (they assumed you were dumb) Nov 21 02:42:49 i've got my own workflow / archive strategu that's working out ok Nov 21 02:42:56 cool Nov 21 02:42:58 soon to be updated with more NAS boxes Nov 21 02:43:04 :O Nov 21 02:43:33 i've all my older photos on a rain pair in the garage at my parent house :s Nov 21 02:43:51 i want to install a NAS box there and sync it to a NAS box here Nov 21 02:43:58 so i have them all accessible Nov 21 02:44:04 for everywhere Nov 21 02:44:06 *from Nov 21 02:44:13 and redundant Nov 21 02:44:36 my asia pgotos are all on a little external drive Nov 21 02:44:42 that i really need to backup Nov 21 02:44:42 do you think something like p2p could work, like TorrentSync ? Nov 21 02:44:51 looking at torrent sync Nov 21 02:45:10 Hi, I have an activity which provide the ui for user to search route, and then display the routes below. And the route result is a list of data displayed by a ListView , this is what I have done http://imgbin.org/images/15745.png But when the device changed to landscape view, the view below the `Get Route` button may be hidden. So I tried to use the `ScrollView` for the whole layout, but this will meet the problem "ListView inside the SrollView", any Nov 21 02:45:11 alterkative idea? Nov 21 02:45:17 there are a bunch of other ones, i'm sure you've seen them Nov 21 02:45:24 i'll be setting it all up at the same time, so the initail sync wont be too painful **** ENDING LOGGING AT Thu Nov 21 02:59:59 2013