**** BEGIN LOGGING AT Mon Sep 30 02:59:58 2013 Sep 30 03:13:55 eclipse build hell day 2 Sep 30 03:16:37 anyone use android studio? i am trying to find a list of the highlighting colors that it uses. i've got several lines partially highlighted in bright yellow, but don't know what that means Sep 30 03:17:05 mouse over it tells you Sep 30 03:19:06 i get a yellow light bulb that gives options such as "remove braces fro if statement" and there's no if statement Sep 30 03:19:42 run the code inspector Sep 30 03:22:55 those lines don't come up. they're all like this: op1.setVisibility(View.INVISIBLE); and it highlits setVisi Sep 30 03:40:13 that's odd, i wonder if it's caching previously bad lines? tried restarting it ? Sep 30 03:48:12 I am getting a NullPointerException in my view handling scroll after I call removeView(). It seems ViewGroup.dispatchDraw throws it as one of the child is null now. Sep 30 03:59:01 hi guys, what framework do you use for automated UAT in android? Sep 30 04:10:10 oy, so tired, I didn't electrocute myself, so that's a good thing, heh Sep 30 04:10:28 need to run a couple new circuits someday, too Sep 30 04:19:25 <^cheeky> oh man he left !!! :( Sep 30 04:19:51 <^cheeky> this it Worked ...!!!!!!!!! Sep 30 04:20:24 <^cheeky> if i could setup a futureTask Sep 30 04:23:15 hello, how can one have a listview item selected only when it is held? Sep 30 04:24:50 onItemLongClickListener ? Sep 30 04:25:05 <^cheeky> OHHH that held // Sep 30 04:25:48 well, onItemLongClickListener is called like once and not while right? Sep 30 04:26:12 I want the list item to be highlighted while it is being pressed Sep 30 04:26:54 <^cheeky> oh ... wait i think i read that you might have to do that on the Contextmenu handler something Sep 30 04:26:59 <^cheeky> hold on lemme look Sep 30 04:27:03 thanks Sep 30 04:29:19 <^cheeky> listView.setMultiChoiceModeListener(new AbsListView.MultiChoiceModeListener() ... Sep 30 04:29:59 <^cheeky> but hey i really suck With droid && stuff but perhaps this might have been what you were talk about Sep 30 04:30:16 thanks cheeky, I'll check that out Sep 30 04:30:45 <^cheeky> oh no problem . ... hope that works Sep 30 04:30:51 <^cheeky> crap i dont want to sleep !!!! Sep 30 04:31:26 <^cheeky> btw... put my app on my phone and then after scrolling the gridView .. i got a bug Report .. :/ Sep 30 04:31:29 <^cheeky> :( Sep 30 04:33:02 haven't worked with gridviews at all, might as well trace through the logcat Sep 30 04:33:25 Could not find BaseGameUtils.apk Sep 30 04:33:40 k... its right f'n there. Sep 30 04:33:41 <^cheeky> oh i can get the bug report through logCat Sep 30 04:33:42 <^cheeky> nice Sep 30 04:35:06 omg cheeky MAX_NOOB Sep 30 04:35:19 <^cheeky> yes sir!! Sep 30 04:35:41 <^cheeky> i have the properties of Tofu thou... :) Sep 30 04:36:02 <^cheeky> i thought only if it stops working completely Sep 30 04:36:18 <^cheeky> lol Sep 30 04:40:51 i dunno how to reason with this contraption Sep 30 04:42:15 con*trap*tion best single word description of my first 1.5 days experience with google play services sdk Sep 30 04:42:40 aww what's wrong with it ? Sep 30 04:43:32 im not a big expert in having multiple projects in single eclipse workspace reference each other, but theoretically it wouldnt be that difficult Sep 30 04:43:48 oh... eclipse ... enough said Sep 30 04:44:11 what else should i use? ant only? Sep 30 04:44:25 IJ :) Sep 30 04:45:08 IntelliJ? Sep 30 04:45:19 <^cheeky> Android Studio Ftw :P Sep 30 04:45:31 AS is rubbish Sep 30 04:46:59 bankai_ dislike AS proper, gradle, or both? Sep 30 04:47:27 <^cheeky> shows how much i know , but so far me likey likey Sep 30 04:47:53 i tried it when it first came out, didn't work properly and i haven't given it the time since. IJ works well. I honestly don't see the 'point' of gradle Sep 30 04:49:26 i don't push it very hard, but its been fine for me since a few weeks ago Sep 30 04:50:35 the first attempt was, not positive ;) Sep 30 04:51:34 actually, with AS, gradle, genymotion, and minSdk=15 or so, android is "almost" fun again ;) Sep 30 04:53:20 but i've just figured out eclipse :D Sep 30 04:53:22 :{ Sep 30 04:53:54 i liked eclipse, but not the ADT Sep 30 04:53:57 eclipse is pretty retarded but doesnt mean whatever alternative isnt equally Sep 30 05:00:53 i have to admit, i like the Darcula theme ;) Sep 30 05:01:58 i don't understand teh appeal with that theme, i've heard lots of people say that Sep 30 05:02:59 bankai_ hm, i use Regular by day, Darcula at night. i hate staring into a lightbulb (white screen) after sunset Sep 30 05:03:17 i had an eclipse plugin that was 'mostly dark Sep 30 05:03:30 but it didn't do all the panes, and some of the UI elements were messed up Sep 30 05:03:41 all my terminals 'n' stuff is black on white, i guess i'm uased to it. the pure dark makes me tired Sep 30 05:07:35 hi android experts... need some direction from u guys... if I install android NDK... and i already have an eclipse environment setup with ADT... do i still need to reconfigure to use NDK i downloaded ? Sep 30 05:07:46 or NDK is just separate for C development ? Sep 30 05:08:00 portValue[0] = (byte)(portValue[0] | (0x01 & 0xFF) << (op-1)); how do i get it to translate 8 to 10000000 ? i'm having some issues with 127 limit Sep 30 05:17:17 hello mates Sep 30 05:17:21 i have a quick question Sep 30 05:17:48 i have captured a screenshot using glReadPixels and then created a Bitmap from it Sep 30 05:18:21 I want to send an intent to share that bitmap, but notice that the putExtra method that takes a Parcelable Uri in the sample code Sep 30 05:18:32 and Bitmap implements Parcelable as well Sep 30 05:18:44 so can I send the intent a Bitmap object right away? Sep 30 05:19:10 as in, place the Bitmap object within the putExtra(EXTRA_STREAM,...) Sep 30 05:21:24 anyone here? :( Sep 30 05:26:49 also, is there like a more ndk oriented channel? Sep 30 05:28:42 limbiccodemonkey: ndk is for what ? Sep 30 05:28:54 native development kit? Sep 30 05:28:56 is it for C development ? Sep 30 05:28:59 aye Sep 30 05:29:01 ok Sep 30 05:29:15 im just trying to setup cocos2dx...asked me to install ndk Sep 30 05:29:48 since i already set up everything... just curious if i still need to reconfigure my eclipse for ndk Sep 30 05:30:08 guess its just specifically for native development purposes Sep 30 05:30:50 so… anyone got anything on the Bitmap Parcelable stuff? Sep 30 05:31:09 hm maybe i add the bin/lib.apk as 3rd party jar as well as project dependency Sep 30 05:31:34 insanity... or genius? Sep 30 05:32:10 the apk size has increased! Sep 30 05:34:56 s/project dependency/project reference/ Sep 30 05:55:31 got my game running... now derived from com.google.example.games.basegameutils.BaseGameActivity! Sep 30 05:55:57 the impossible has been render simultaneously possible and accomplished Sep 30 06:21:05 hey. so to have logging go to logcat i have to set android:debuggable to true in the manifest right Sep 30 06:21:09 is there anything else i have to do? Sep 30 06:27:06 * ^cheeky fails Sep 30 06:30:15 gatt.readCharacteristic(readChar) has a callback method in BluetoothGattCallback called onCharacteristicRead . that callback method never gets entered. i don't know how to debug / fix it. Sep 30 06:36:27 jnewt you're convincing me i should probably wait a bit until ble is more fully baked Sep 30 06:37:16 i got a previous ADT in my ecplise.. and downloaded the latest NDK... do u think building my project can cause it to crash because of some incompatibility... just cant get my cocos2dx to launch properly Sep 30 06:37:25 g00s: i'm not sure that there is anything missing, but the learning curve is quite steep for me. This is my first round with android, let alone BLE Sep 30 06:37:43 g00s: I was able to get everything dark in eclipse including the UI, but it was a lot of searching and work, and now I don't remember how Sep 30 06:38:02 jnewt: android development environment pretty much suxs Sep 30 06:38:22 jnewt i've heard other people have problems with ble Sep 30 06:39:11 quite frankly, this is one of those areas iOS is 12-24 months ahead of android Sep 30 06:39:13 g00s: i think many tried it prior to 4.3 and had lots of issues. Sep 30 06:39:56 no, i'm talking 4.3 official support Sep 30 06:40:05 not the crappy oem specific apis from moto or sammy Sep 30 06:40:06 moto and samsung have proprietary drivers and libraries. luckily i'm using a nexus with 4.3, so i think it's all there, I just suck at java. Sep 30 06:40:27 g00s: oh, well you negated my answer prior to my giving it Sep 30 06:41:36 i think i just don't know how to use this callback properly. i start the read, and then expect the callback. i never get it and have no idea what to do. Sep 30 06:42:42 good mornings Sep 30 06:43:37 <^cheeky> morning :) Sep 30 06:44:39 i mean even if i botched the read call, you'd think i'd still get the callback with the status flag just being something other than success Sep 30 06:55:37 g00s: yes, I looked at OCaml, but so far only briefly Sep 30 06:55:41 if i open up BluetoothGatt.java from the Android API 18 Platform Library there are several 'Cannot resolve symbol errors'. should i have also included the google api 18? and does the java sdk version 1.7.0_25 vs 1.7.0_40 matter? Sep 30 06:56:02 afk Sep 30 06:56:04 p_l what did you think ? Sep 30 06:58:27 <^cheeky> this is somme fun !!!!!!!!!! Sep 30 06:59:02 I have a serious problem .. I always get this error: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.widget.DrawerLayout" on path: Sep 30 06:59:14 and the app crashes Sep 30 07:45:37 i have 640x960 splash but for some reason it is rotating it the wrong way Sep 30 07:45:43 i wonder if i shuold have 960x640 Sep 30 07:49:21 get rid of the splash, problem solved ! Sep 30 07:50:46 <^cheeky> g00s: Niice :) Sep 30 07:51:09 when i use getVal on a BLE characteristic, it just returns the value that was read the last time readCharacteristic was called right? Sep 30 07:59:30 Goodmorning boys and girls, I have a weird thing I hope you can help. I set for a linearlayout background color to "#f8f8f8", but on my LG P9 it shows white. While on my HTC Sensation it shows the correct color. What could be the reason that one device can't show the right color and how to deal with such a problem? Thank you. Sep 30 08:06:24 i have a custom fling method to my custom scrollview - however the fling method doesnt work properly when i have scaled the image. http://pastebin.com/PVz1zt9N Sep 30 08:09:55 fragment manager Sep 30 08:09:59 oh how i hate thee Sep 30 08:10:24 mainly cause i dont understand why my fragment's targetFragment dissappears from it Sep 30 08:12:14 probably better to use some kinds of message bus Sep 30 08:12:43 well, i take that back. maybe target fragment really fits Sep 30 08:13:34 Hello guys, I have a weird thing I hope you can help. I set for a linearlayout background color to "#f8f8f8", but on my LG P9 it shows white. While on my HTC Sensation it shows the correct color. What could be the reason that one device can't show the right color and how to deal with such a problem? Sorry for asking it the second time. Sep 30 08:13:49 the problem sounds like "fragmentation" :) Sep 30 08:13:50 i am in a fragment and starting the other fragment to return data to my original fragment Sep 30 08:14:16 ok Sep 30 08:14:23 as for as i know that is the pattern to use Sep 30 08:14:36 i do a .repalce().addToBackStack().commit() Sep 30 08:14:39 lemonxah, you can keep the data in the main activity, while switching fragments. Sep 30 08:14:46 and it works fine .. till the second screen rotate Sep 30 08:15:10 Number5, that is an anti pattern isn't it? i dont want to make my fragments rely on an activity Sep 30 08:15:16 they should be self contained Sep 30 08:15:23 so that i can reuse them where ever i want Sep 30 08:15:36 without having to remember to implement activity code Sep 30 08:16:12 lemonxah, but what has data to do with it. You could also get data from a database or from a network. Sep 30 08:16:29 its a multi user selector Sep 30 08:16:50 it asks the contacts fragment to do a multi selection and then return the contacts to it Sep 30 08:17:07 contacts fragment has a mode that handles that Sep 30 08:17:16 no code duplication in my codebase at all Sep 30 08:17:25 I understand you want to stick to the right pattern, but maybe for now it's more important to get the job done and than see how to improve it. Sep 30 08:18:04 no cause if we dont fix this now the company will never go back and fix it Sep 30 08:18:11 i dont believe in make it work and fix it later Sep 30 08:18:27 out of experience they never give us time to fix it cause its working** Sep 30 08:18:47 lemonxah, I believe in get it work now and improve it later (in a more professional manner). Sep 30 08:19:16 lemonxah, as long as they don't complain, don't fix ;-) Sep 30 08:19:50 i dont believe in bad code Sep 30 08:19:53 My experience is, get the job done, and than give them updates, they like updates Sep 30 08:20:10 updates should never include bad code fixes Sep 30 08:20:20 only bug fixes that you didn't konw about and new features Sep 30 08:20:54 lemonxah: you can drop fragments and stay clean ;) Sep 30 08:20:56 i cant knowingly add bad code to the app .. i wont sleep at night Sep 30 08:21:06 It's not about bad codes, I assume you have decent skills to program the most of it well. But there are situations you need a quick fix to get the job done. Sep 30 08:21:11 heya Sep 30 08:21:29 Otherwise you'll never end. Sep 30 08:21:35 very rarely do i want to do a quick fix if that means breaking a pattern Sep 30 08:22:06 Well, I wish you good luck ;-) Sep 30 08:22:12 beware the destruction of perfectionism Sep 30 08:22:17 you cant half-ass a pattern .. whats the point of using design patterns if it depends on situational use Sep 30 08:23:02 I really need to learn design patterns Sep 30 08:24:11 thnx Number5 .. but it shouldn't be too hard i just need to understand how the fragment manager manages backstack and how to keep the targetFragment inside the fragment manager when doing a .replace Sep 30 08:25:23 lemonxah, you're welcome. It's going to be more fun when you want Fragments for older versions like 2.x and you want also be able to switch from portrait mode to landscape mode. Sep 30 08:25:47 number5 that is allready in place with the supportFragmentManager Sep 30 08:25:57 we are supporting 2.2 < Sep 30 08:26:09 Great and what about screen orientation? Sep 30 08:26:15 also work Sep 30 08:26:17 s** Sep 30 08:26:42 ok, well, than you understand the concept very well Sep 30 08:26:45 only instance where its not working not even on new devices(which tells me i am doing it wrong) Sep 30 08:26:47 nothing to say about it Sep 30 08:26:48 lemonxah: does your shmoooz, that works if there is external config changes and the onConfigurationChanged(Configuration newConfig) does not get called Sep 30 08:27:58 i have looked into that Sep 30 08:30:24 https://developer.android.com/guide/topics/resources/runtime-changes.html#HandlingTheChange Sep 30 08:30:39 " This technique should be considered a last resort" Sep 30 08:32:39 hello again everyone Sep 30 08:32:53 all i really want to do is keep the fragment in the fragment manager even after a .replace Sep 30 08:33:28 anyone know why this would work: Sep 30 08:33:29 jclass bitmap_config_class = loadExternalClass("android/graphics/Bitmap$Config"); Sep 30 08:33:35 but this wont Sep 30 08:33:36 jclass bitmap_compress_format_class = loadExternalClass("android/graphics/Bitmap$CompressFormat"); Sep 30 08:35:41 lemonxah: how bout this ... http://stackoverflow.com/questions/14184182/why-wont-fragment-retain-state-when-screen-is-rotated Sep 30 08:36:03 lemonxah, detatch().add().commit() ?? Sep 30 08:37:16 alex_PP, that looks ok let me try that Sep 30 08:37:56 shmoooz, that is not my issue thnx though :) already solved that issue months ago Sep 30 08:38:54 alex_PP, thnx that has helped me a little bit Sep 30 08:39:30 it seems on the rotate the current fragment puts the fragment that is in the setTargetFragment into the fragmentmanager again Sep 30 08:39:39 and at this point it fails now cause i have manually added it Sep 30 08:40:04 ah nevermind, solved it Sep 30 08:40:05 so now i just need to figure out why on a second rotate it fails to re-add the getTargetFragment to the fragmentmanager Sep 30 08:40:06 thnx anyways Sep 30 08:48:51 just reflash my nexus7, like a boss Sep 30 08:49:19 meaning i followed some random instructions and did NOT brick my device Sep 30 08:51:14 cut and paste boss? Sep 30 08:51:15 :) Sep 30 08:56:49 <^cheeky> lemonxah: i do alot of cut && paste :( Sep 30 08:57:03 its ok we all start somewhere Sep 30 08:57:15 lol Sep 30 08:57:17 <^cheeky> heh Sep 30 08:57:24 * lemonxah hides his cut and paste scripts Sep 30 09:02:08 <^cheeky> heh Sep 30 09:22:43 What version of the android support library do I need to add an actionbar to android 2.1+ ? Sep 30 09:22:55 v13 v7 or v4? Sep 30 09:23:04 i think v7 Sep 30 09:23:34 The android support library page changelog says that v4 has been updated most recently that's why I'm confused Sep 30 09:24:35 nvm v4 is for api level 4 or later Sep 30 09:24:38 found it Sep 30 09:31:13 Bas_, its v4 but rev 18 Sep 30 09:33:35 lemonxah: ah okay thanks Sep 30 09:33:39 whoops Sep 30 09:34:39 Bas_: you need v7 appcompat library Sep 30 09:36:07 hi guys... how do i add files into the asset folder ? i just added Resource folder into the project but it doesnt appear in asset folder. any ideas ? Sep 30 09:36:21 http://stackoverflow.com/questions/18271429/difference-between-android-support-v7-appcompat-and-android-support-v4 Sep 30 09:36:37 I added the library and followed the instructions on the docs page but I get an exception when initialising Sep 30 09:36:52 ok ... i guess there is an asset folder Sep 30 09:37:07 09-30 09:34:52.576: ERROR/AndroidRuntime(287): java.lang.ExceptionInInitializerError Sep 30 09:37:09 at android.support.v7.app.ActionBarActivityDelegate.createDelegate(ActionBarActivityDelegate.java:51) Sep 30 09:37:25 axilaris, are you using the gradle folder layout if so src/main/java is your java code and sr/main/assets will be where it is Sep 30 09:37:42 axilaris: Refresh the folder in you IDE Sep 30 09:37:47 Bas_, you need v4 rev 18 and v7_AppCompat Sep 30 09:37:57 lemonxah: ok i didnt know asset folder exists... i thought adding a multimedia file automatically inserts into asset folder... Sep 30 09:37:59 I added both libs Sep 30 09:38:00 the v7_AppCompat only adds AppCompat that is all it adds Sep 30 09:38:07 just looking at some cocos2dx example Sep 30 09:38:16 V4 was next to the v7 appcompat in the v7 folder so I added both Sep 30 09:38:30 so everything have to be duplicated just for android Sep 30 09:38:54 is it possible to access multimedia files outside the asset folders ? Sep 30 09:40:36 has anyone knows where to find sample code to decode h264 bitstream using MediaCodec API? Current I have only found decoding from file. I'm facing great difficulty right now =( Sep 30 09:43:06 Bas_: check your actionbar references, you may be referencing the API11 actionbar somewhere, not the AppCompat one Sep 30 09:43:29 import android.support.v7.app.ActionBarActivity; Sep 30 09:43:52 Bas_, there are 2 v7 libs Sep 30 09:43:57 there is the normal v& Sep 30 09:44:04 V&? Sep 30 09:44:05 and there is the v7_AppCompat Sep 30 09:44:09 v7** Sep 30 09:44:15 I'm using V& appcompat Sep 30 09:44:18 v7* Sep 30 09:44:19 Bas_: search in the log what exactly 'caused' the exception Sep 30 09:44:30 the actionbaractivity Sep 30 09:44:33 1 sec Sep 30 09:45:12 http://pastebin.com/LHF1YFsJ Sep 30 09:46:00 Bas_: also, how did you added the libs? Sep 30 09:46:24 through the same way I always add libs in intelij Sep 30 09:46:27 http://pastebin.com/Sqxme8AN Sep 30 09:46:27 are you aware of the special procedure of those libs with resources? not just copying the jars Sep 30 09:46:53 I need to import extra resources? Sep 30 09:47:01 hmmm Sep 30 09:48:12 are you using Android Studio? Sep 30 09:48:24 I'm using intelij Sep 30 09:49:37 http://developer.android.com/tools/support-library/setup.html <-- Search for Adding libraries with resources, there're the procedures with Eclipse and Android Studio, not sure which one will apply for intelij Sep 30 09:50:08 ill have a look Sep 30 09:50:13 brb Sep 30 09:53:55 how is it done with intent extras?If i start an activity and pass an extra, i can get this extra via intent.getExtra(). If i then start the next activity and there press the back button, is the extra null or does it have the same value as when the activity was started the last time? Sep 30 09:55:01 so if i check for an intent extra at the start of an activity, can it be empty if the activity is start by coming back from another (that sends no intent extra)? Sep 30 09:57:44 i hope this is understandable Sep 30 10:04:52 <^cheeky> skullcrasher: hi hi, umm from the lil i know about droidSpeak, there are different type, of Intents you can send, now like if you want the value or anything you passed it to the other activity , you then expecting a code back. so then you use StartIntentForActivityResult() and then get the value or what desired... i am not sure if this is what your question refers to Sep 30 10:14:19 hey ^cheeky, not rly. It's more like that.I have an activity that starts another and passes an extra. the started activity has a search widget. if the search action is start i intercept the intent an put the extra string from the previous activity to it, then start the searchable activity. the searchable activity gets the intent extra (searchoption) and does the search. if i now go back to the activity with the wid Sep 30 10:14:40 if not, at the search action would given a wrong/no extra to the searchable instead Sep 30 10:29:06 com.google.example.games.basegameutils.GameHelper::onStart sabotages me... freezes + burns me Sep 30 10:29:54 if i call it.. suddenly i dont seem to get touch events... altho my touchlistener is a different class Sep 30 10:38:15 ah found the error nice Sep 30 10:50:22 hey. once I have android booted, how do I check if it's jbmr1, jbmr2 or the regular jellybean? Sep 30 10:54:01 Back Sep 30 10:54:30 I added the resources etc but I still get an exception when my activity extends actionbaractivity Sep 30 10:54:39 even though that's what the docs say I should do Sep 30 11:25:32 For some reason it's still complaining Sep 30 11:25:43 java.lang.NoClassDefFoundError: android.support.v7.appcompat.R$styleable Sep 30 11:25:54 But R.syleable exists :/ Sep 30 11:33:59 um... did you add the resources to your own app, or did you add the library properly? Sep 30 11:38:18 guys, if I'm developing an app for API 14 (ICS) minimum, do I also need to set ldpi layout? I only set xhdpi and tablet (7'') Sep 30 11:47:00 bah.. has anyone seen import issues with the latest android studio? Sep 30 11:48:08 hi everyone, im having problems with an ArrayAdapter object, concretaly, loading an String array from database (driver jdbc). The ArrayAdapter is loaded next the try catch with the connection... any idea? Sep 30 11:54:02 is there a way to add a support fragment to a xml layout file? Sep 30 11:54:07 cause fragm Sep 30 11:54:32 fragment = android.app.fragment and that cannot be cast to support.v4.app.fragment Sep 30 11:54:45 and android.support.v4.app.Fragment cannot be cast to View Sep 30 11:55:39 lemonxah: should work Sep 30 11:55:50 oh ok thnx Sep 30 11:56:01 just fragment refers to 11+ fragments Sep 30 11:56:07 The following classes could not be found: Sep 30 11:56:07 - support.v4.app.fragment Sep 30 11:56:24 do i need a new namespace? Sep 30 11:56:35 android.support.v4.app.fragment mabye Sep 30 11:56:41 whatever the full path to it is Sep 30 11:56:41 tried that too Sep 30 11:56:44 same result Sep 30 11:57:43 hi everyone, im having problems with an ArrayAdapter object, concretaly, loading an String array from database (driver jdbc). The ArrayAdapter is loaded next the try catch with the connection... any idea? Sep 30 11:57:53 lemonxah: my bad, now that i htikn about it you can't Sep 30 11:58:08 yeah :/ Sep 30 11:58:13 simplest way is to do it through code otherwise big mess Sep 30 11:58:20 minSdkVersion=14 my friend Sep 30 11:58:24 things get a lot simpler Sep 30 11:58:27 http://stackoverflow.com/questions/14949698/how-to-add-an-android-fragment-to-an-activity Sep 30 12:03:00 how do i start debugging exported apk in eclipse? Sep 30 12:11:37 Anyone had problems to make connection with jdbc driver over android? The log: W/System.err: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Thanks Sep 30 12:15:59 Are you trying to connect to a remote database directly? Sep 30 12:16:13 Is there no API in between the DB and the android application? Sep 30 12:22:10 yes Sep 30 12:22:15 sonOfRa Sep 30 12:22:26 directly Sep 30 12:22:50 that is almost always a bad idea Sep 30 12:24:04 then what can i do? Another solution? Sep 30 12:24:06 hello everyone! Sep 30 12:24:13 Create an API that handles these things Sep 30 12:24:28 if you have the mysql DB password embedded in your application, anyone can do what they please Sep 30 12:24:30 I need some experience feedback regarding ListView usage Sep 30 12:25:40 I know that we can use an empty view that will be displayed when there is no data in the adaper. This View means "there is no data". But I always would like to have some kind of view showing only a progress saying "loading datas". Sep 30 12:25:52 if possible, i would like to avoid using a Dialog Sep 30 12:26:20 what do you think about using 2 Adapters? One for the data and another one only for the wait view. Then I can switch the adapters only? Sep 30 12:29:55 sonOfRa, another thing created yet? Sep 30 12:30:19 I don't understand the question. Sep 30 12:30:46 Usually, if you want your android application to talk to a remote database, you'd have some kind of web-service (usually REST), that talks to the database Sep 30 12:31:08 that way you can handle authentication with your REST service, and have better control over what data can be accessed/modified by a single client Sep 30 12:31:46 and most importantly get better behaviour Sep 30 12:35:06 i see Sep 30 12:35:50 any advice to use a web service? Sep 30 12:36:35 and why doesn't work with direct connection Sep 30 12:40:24 to make phones charge faster, why dont we put more batteries in them? Sep 30 12:40:26 database protocols aren't appropriate for use over high-latency, low-reliability, insecure channels Sep 30 13:27:30 why can't I setup an avd with api 14 ? http://i.imgur.com/ubV3blU.png Sep 30 13:30:18 try restarting? do you have two version sof the sdk? Sep 30 13:30:41 just one Sep 30 13:34:15 reboot worked Sep 30 13:35:16 <^cheeky_> ell00 ell00 Sep 30 13:35:32 https://plus.google.com/u/0/116031914637788986927/posts/LLspEu5Knwf Sep 30 13:38:20 mikedg: you've a strange surname :D Sep 30 13:38:36 <^cheeky> blaah Sep 30 13:38:42 <^cheeky> i need sleep again !!! Sep 30 13:44:44 grdc: you've got a strange ircname Sep 30 13:46:29 gdrc: in fact you missed it :P Sep 30 13:47:56 exactly Sep 30 13:47:59 so weird i cant even type it Sep 30 13:48:08 from now on I will call you Molly Sep 30 13:55:07 hello Sep 30 13:55:25 what IDE shoudl I use? is android studio the ultimate on windows? or should I use xamarin, or should I use the command-line + vim Sep 30 13:56:29 if you're used to cli+vim, use that Sep 30 13:57:00 beaky: android studio Sep 30 13:57:02 maybe i am missing out on some powerful featureset that is exclusive to eclpse or android stuido Sep 30 13:59:50 beaky: android studio. use it. it's good. Sep 30 14:00:32 eclipse Sep 30 14:01:21 android studio is based on jetbrains, so it must be good Sep 30 14:01:33 s/jetbrains/intellij/ Sep 30 14:09:07 * Zharf uses plain old IDEA Sep 30 14:09:32 android studio is too in flux Sep 30 14:09:36 use it if you have time to waste Sep 30 14:09:42 at least IDEA has a good vim plugin, unlike eclipse ;) Sep 30 14:10:33 Can anyone help me fix the memory leak in this code? Sep 30 14:10:47 pastebin.com/h3TE9g5z Sep 30 14:11:10 please add http:// to your links in the future Sep 30 14:11:16 http://pastebin.com/h3TE9g5z Sep 30 14:13:16 Zharf found anything in it? I'm not sure why the memory use keeps increasing Sep 30 14:13:18 yeah i use 13 EAP Sep 30 14:14:16 The retry() method is called till the file is downloaded Sep 30 14:15:53 i am, as ive said in here before, a custom scrollview. I have the dragging and pinching nearly sorted - however, i am trying to get the pinching to work so that it actually scales from the middle of two points. This is somewhat working, but only in a selected area of my image, upper left corner. Any ideas to how i can solve this ? Sep 30 14:16:13 javanoob, it seems weird Sep 30 14:16:39 Zharf the formatting? Or logic? Sep 30 14:16:42 Does anyone have paid applications into Play Store? Sep 30 14:16:46 both Sep 30 14:17:10 My country (Greece) is not listed in the supported for merchant countries. What options do I have? Sep 30 14:17:25 Can you suggest a better way? Sep 30 14:17:52 I couldn't find out why memory use is increasing Sep 30 14:19:29 sorry I'm too tired Sep 30 14:20:02 hakermania: send your cod to me Sep 30 14:20:04 ill publish Sep 30 14:20:10 i give you 30/70 cut Sep 30 14:20:40 mikedg, hahaha. Google already eats 30%. Sep 30 14:21:43 but youll get your name out there Sep 30 14:21:46 thats more important Sep 30 14:21:55 if you save up you can come to america! Sep 30 14:21:57 and self publish Sep 30 14:22:35 like my great grand parents! Sep 30 14:23:01 mikedg, I am wondering if opening a bank account to a bank of the listed countries can be done. What you're talking about it theft. Sep 30 14:23:06 is theft* Sep 30 14:23:13 how is it theft Sep 30 14:23:35 mikedg, You keeping 30% for publishing my app? What the heck? Sep 30 14:23:45 im providing a service Sep 30 14:24:02 in the days before downloads, that would be considered a top notch bargain Sep 30 14:25:01 think about it Sep 30 14:25:02 services are theft! Sep 30 14:25:08 you want to make money, i want to make money Sep 30 14:25:15 you are making apps right now btu not making money Sep 30 14:25:18 mikedg, Nope. I will get 70% of my app. Nothing less. Sep 30 14:25:50 i can be your publisher and you can get small percent, you can be your publisher and you get 0%, or you can start cooking meth Sep 30 14:25:57 there's a huge market for meth now Sep 30 14:26:19 throw some food colouring in it, make it blue Sep 30 14:26:33 kroot, ping Sep 30 14:27:40 pong Sep 30 14:28:05 So, anyone else who has attempted being a merchant from an unsupported country ? Sep 30 14:39:42 helo Sep 30 14:39:51 how do i become a better programer Sep 30 14:40:05 write programs Sep 30 14:40:10 practice :P Sep 30 14:40:15 google can answer that for you Sep 30 14:40:17 i write programs but they all suck Sep 30 14:40:19 magic Sep 30 14:40:20 and i still suck Sep 30 14:40:27 you haven't written enough Sep 30 14:40:35 to master something, you need 10s of thousands of hours of practice Sep 30 14:40:39 I doubt you've spent that Sep 30 14:42:51 yes ive only started programing last year Sep 30 14:43:00 so i need.... 10 more years? Sep 30 14:43:20 anyone http://stackoverflow.com/questions/18618067/how-set-textview-text-both-clickable-and-selectable ? Sep 30 14:46:08 I started writing useful programs after 10 years of on-and-off writing crap ;) Sep 30 14:46:20 wasn't very active about it Sep 30 14:46:53 should i use xml or json Sep 30 14:47:01 for what Sep 30 14:47:16 for android Sep 30 14:47:26 iformation interchange Sep 30 14:48:20 i still don't write useful programs Sep 30 14:48:34 i plan to write something good right before I retire Sep 30 14:48:47 and then get sucked into maintaining it Sep 30 14:49:02 mikedg, better wait for someone to write something good and jump in to get the 30% Sep 30 14:49:20 hakermania: thats what ive been trying to do Sep 30 14:49:41 mikedg, yeah, and everyone will trust you. Immediately :) Sep 30 14:50:01 im the most turtleworthy person in this room Sep 30 14:50:41 mikedg, at turtle for you http://bit.ly/1bmfqqF Sep 30 14:51:00 thank you Sep 30 14:51:49 an app a day keeps the doctor away ;) Sep 30 14:52:38 does GCM require that the sending server have an entry for every single android device that will receive its message? Sep 30 14:53:52 i.e. if i wanted to broadcast scores for a game, ideally the app would just register to listen to the messages for the game, and my server would tell GCM to send the latest scores to all devices that are registered for some shared game specific key Sep 30 14:54:25 rather than the app connecting to my server and me having to tell gcm to send the latest score to each device individually Sep 30 15:03:30 broadcasting scores isn't a good use of gcm Sep 30 15:03:38 scheduled polling is better Sep 30 15:04:14 and yes, every registered device must have a record on the server Sep 30 15:04:40 because spam ftl Sep 30 15:05:05 i was hoping to use gcm to allow a light weight server to send common data to a potentially large number of clients Sep 30 15:05:25 presumably spam would result in users being annoyed and uninstalling the app Sep 30 15:05:40 pfn: Regarding broadcasting, why isn't this a good use? It's been designed for exactly this.. (well, in batches of thousands, but still). Sep 30 15:05:59 i.e. i was hoping gcm would allow mere mortals to scale enough to support a large install base Sep 30 15:06:09 it's not designed for broadcasting, otherwise every single request wouldn't only allow a single registrant Sep 30 15:06:47 can i develop for android withut prior experience in phone devleopment Sep 30 15:06:54 or any knowledge of telecommunications egnienrering Sep 30 15:06:56 yes Sep 30 15:07:59 pfn: The GCM server API takes a list of recipients. That's not a "single registrant". Sep 30 15:08:49 (at least the lib I use does that, not sure if it carries through though...) Sep 30 15:09:37 It carries through, "registration_ids" in http://developer.android.com/google/gcm/adv.html Sep 30 15:12:32 According to this, you can send to 1000 at the time. http://developer.android.com/google/gcm/server.html Sep 30 15:12:58 It's called multicast in that doc. Sep 30 15:13:59 That's a hell of a lot more efficient than "push to pull" per device. Sep 30 15:16:55 GM everyone! Sep 30 15:17:12 Have a problem with the mobile backend starter deployment by source code. Should I be asking here, or on #appengine? The problem is with deploying the backend code Sep 30 15:17:21 http://pastebin.com/NS0zq19L Sep 30 15:17:49 yaraju: Use python lol, I love Java, but I love python for GAE much more Sep 30 15:18:32 yiati: Is there a mobile backend starter sample in Python too? I'm hoping to do little to no coding on the backend, and spend most of my time writing my Android code Sep 30 15:18:34 yaraju: You should probably ask their first if the problem's backend but if someone here can help it's worth posting Sep 30 15:19:33 yiati: I was unsure because the mobile backend starter solution is marketed as something to be used by Android devs mainly, not cloud devs. Sep 30 15:20:00 As advertised in this article and Google I/O talk: http://bradabrams.com/2013/05/google-io-2013-session-overview-from-nothing-to-nirvana-in-minutes-cloud-backend-for-your-android-application-building-geek-serendipity/ Sep 30 15:20:44 yaraju: Ah I see yeah, I don't know possibly not. I thought you were just talking about general google app engine for web hosting and stuff. I am making my own custom backend for an app with the python GAE, but no libraries. Sep 30 15:21:51 yiati: K. I'll hang around until someone familar with Geek Serendipity sample responds. Will also seek out on #appengine, thanks! Sep 30 15:21:53 Hey guys, I am trying to use the new "reverse port forwarding" feature available in chrome dev-tools without a GUI on the "host" machine. I have a StackOverflow question open at http://stackoverflow.com/questions/19082895/connecting-to-host-from-android-via-usb/19082930. Could anyone shed some light on this? Sep 30 15:22:01 This commit has proven to me that it may be possible https://chromiumcodereview.appspot.com/11828051/ Sep 30 15:22:09 I know that this is Chromium code and not strictly Android related but it involves port forwarding on an Android Sep 30 15:27:50 hello , is there any default tmpfs on android ? Sep 30 15:28:03 i need fast temporary io Sep 30 15:31:57 JDuke128: Not that I'm aware of, you can make sqlite databases in memory though Sep 30 15:32:28 you could also make other ram buffers that acted like general data stores I'm sure if you felt like it Sep 30 15:33:07 dragorn , i need to for fast image capturing Sep 30 15:33:09 saving Sep 30 15:34:28 You'll have to capture it into a blob of ram in your app then write it out to flash when you have time Sep 30 15:34:56 and hope you have enough ram :P Sep 30 15:35:08 there is no api to save image on ram on core android api... Sep 30 15:35:43 fos = new FileOutputStream(imagePath); Sep 30 15:35:44 bitmap.compress(Bitmap.CompressFormat.JPEG, 100, fos); Sep 30 15:35:53 fos is Sep 30 15:35:53 fos = new FileOutputStream(imagePath); Sep 30 15:36:10 hmm ByteArrayOutputStream... Sep 30 15:36:16 Make a derivative of FileOutputStream that writes to a bytebuffer or something? Sep 30 15:36:23 Yeah, or that, which probably already exists Sep 30 15:40:57 Is there a way with the intent Action_Chooser, for me to specify that email stuff should be piped in if they pick email, and a twitter handle should be pumped in if they pick twitter, etc? I am implementing a contact us button that I want to have fill out the fields for the user should they choose a specific app. Sep 30 15:42:53 i'm beginning to wonder if using GCM is useful at all... if i'm going to be keeping track of IDs that every install submits to my server, i might as well just send the data they need when they connect. Sep 30 15:43:17 and connect to refresh each time the app is launched Sep 30 15:45:32 yiati: I don't believe so, unless you figure out a different intent that you can use for twitter; i haven't looked at what it accepts, and then you'd have 2 buttons in your app, one for email and one for twitter Sep 30 15:46:07 yiati: you prep the total intent and submit it, the user picks where it shares to; I don't think there's any chance to get at the data after they pick Sep 30 15:47:25 kjeldahl, indeed, I guess that's new with gcm vs. c2dm Sep 30 15:48:18 dragorn: Hmm okay, yeah I know I can do it with two button just can't find any way to do it with one. It doesn't look like it's possible :( Sep 30 15:58:17 are there any extremely accurate android augmented GPS systems/libraries? Sep 30 16:31:31 what is the best way to sync something like pictures? Currently i request a structure of all synced images from the server (filepath, filepath on device, filesize, lastmodified), compare them and all pictures which are not in the json but in mediastore will get synced. Is there a better way doing that? Sep 30 16:32:11 Can't really think of anything better Sep 30 16:32:31 If there's an intent for "photo taken" you could maintain a list of new photos and then shortcut your compare a little Sep 30 16:32:44 okay, the problem is that if the user has about 10000 images (which can be possible!) then its a very very large json which need to be processed. And in most cases GC will kill the service before its done Sep 30 16:33:18 how about storing all uploaded files on a sqlite database? But how to identify if the image is already uploaded? Sep 30 16:33:39 if it were me I'd probably reverse-date sort it on both ends Sep 30 16:33:40 comparing filesize, filepath and lastmodified should be enough, right? Generating SHA1/MD5 Checksum on the device takes HUGE performanceload Sep 30 16:33:44 and segment the json reports Sep 30 16:33:52 so you look where there's most likely new data first Sep 30 16:34:04 and you do 100 reqs for 100 files instead of 1 req for 10000 files Sep 30 16:34:26 ah, you mean requesting JSON Parts and if everything is synced requesting the next part Sep 30 16:34:27 can you declare a unique primary key per image ? Sep 30 16:34:43 no, not really. Thats the next problem. There is not a Unique Key for a image. Not even in MediaStore Sep 30 16:35:08 Its possible to generate Sha1 or MD5 for each file but this is not very well for a low-memory device Sep 30 16:35:30 misterli: well it's photo-style data you can assume they're more likely taking new photos than suddenly getting old photos, so for UX responsiveness, start on the 'new' side of things, then backfill into history and see if anything has changed Sep 30 16:35:43 and for ram, yeah - request it in parts Sep 30 16:36:30 Okay. I want to sync only thumbnails anyway for preloading, ill do this way. Btw. Is there any way to keep the service(IntentService, Service) running even without notifications? (RETURN STICKY is there) Sep 30 16:37:18 if you don't run it as a foreground service you can run it w/out notifications Sep 30 16:37:24 you're just more likely to be OOM killed over time Sep 30 16:37:53 Yeah, its running in the background without notifications but in some cases its getting killed (GC, DalvikVM, ..) Sep 30 16:37:53 foreground services MUST have notifications Sep 30 16:38:02 yeah, that'll happen Sep 30 16:38:09 is that a requirement or can it be gotten around Sep 30 16:38:11 and it suxx to get it killed while sync is in process Sep 30 16:38:15 And i want to avoid using wake locks.. Sep 30 16:38:26 afaik it's a requirement; foreground services must have notifications Sep 30 16:38:40 since they can impact device performance Sep 30 16:38:49 right Sep 30 16:38:52 okay :-/ Sep 30 16:39:23 infact the startForeground call requires a notification object Sep 30 16:40:10 does this mean that ForeGround services wont get killed while background services can be killed within a process/thread running/whatever? Sep 30 16:40:31 it means foreground services are less likely to be killed Sep 30 16:40:41 but anything can be killed at any time if the system decides to Sep 30 16:42:43 i thought an intentservice wont get killed (because you can overrride onHighMemory or similar) Sep 30 16:42:52 anything can be killed Sep 30 16:43:03 otherwise random malware can just tank a phone Sep 30 16:43:08 you can just ask for it to be less likely Sep 30 16:44:03 Okay, thanks for the info Sep 30 16:44:08 Acidic: You might read online about tricks to get around the notification requirement (by passing a new Notification() object or such). This might work on your test devices but will not on any Android 4.3+ devices since Google tightened up on this. Sep 30 16:44:17 (just incase you read up on it and thought about trying) Sep 30 16:44:45 JuiceSSH: it was more for interest's sake since I've felt that I've had some "foreground" tasks running without notifications on my phone during regular use Sep 30 16:44:54 and I just got into the ADT over the weekend for the first time Sep 30 16:45:40 well, there are lots of workarounds like doing return_sticky and keep the state in onPause/onDestroy.. Sep 30 16:46:00 but it's more time to spend for coding instead of just keeping the server running Sep 30 16:47:12 i haven't heard of anything like that yet, but according to docs it seems like ON_STICKY just means that your activity gets started again when the phone has enough memory to accomodate it again. Though it starts it with a null intent Sep 30 16:47:45 don't use tricks Sep 30 16:47:54 that's what im gathering from this conversation Sep 30 16:48:14 i did have a hell of a time figuring out the whole ASyncTask thing for network connectivity Sep 30 16:48:14 Acidic, you can serialize stuff and continue when the service started again Sep 30 16:48:39 Acidic: are you using an asynctask in your service? Sep 30 16:48:41 probably shouldn't have picked something with network connectivity for my first project, but whaya gonna do Sep 30 16:48:57 not a "service", it doesn't do anything in the background Sep 30 16:49:04 my question regarding the notification was purely interest Sep 30 16:49:08 oh ok Sep 30 16:49:32 my app right now is just an html lookup/parsing/display for eve-online's market aggregator Sep 30 16:49:42 You can use IntentService and it will create a new thread (and run in the background) Sep 30 16:50:45 Acidic, i would highly recomment an IntentService for that. You can use Receivers to get the current status/notified when done Sep 30 16:50:59 when done what Sep 30 16:51:36 done with the stuff your app does. Lookup and parsing. Sep 30 16:51:40 I feel like I'm making some elementary mistake in using ExpandableListView - I'm not able to see the little indicators for the open/close status on the top-level items. Here's the xml, and the code that's expanding the header. http://pastebin.com/cK43xAxc Sep 30 16:51:54 misterli: why would it be advantageous over the ASyncTask I have Sep 30 16:51:57 The display is on an emulator, running android 2.2 Sep 30 16:52:29 kbs: just by hearing the symptom, it sounds like the lookup for the children might not be successful Sep 30 16:52:46 the lack of arrows might be used to display a lack of children in that category Sep 30 16:53:09 Acidic: I have do children show up in the list. Its just the indicator icons aren't appearing Sep 30 16:53:17 oooh ok Sep 30 16:53:34 so they still expand when you hit them? Sep 30 16:53:38 yep. Sep 30 16:53:52 http://stackoverflow.com/questions/15167152/should-i-use-asynctask-or-intentservice-for-my-application Sep 30 16:54:16 misterli: thanks, according to this it sounds like ASyncTask was the correct choice Sep 30 16:59:11 Is it possible that ExpandableListView requires some minimum width for the listview before it decides to draw the indicators? [I see some docs around *IndicatorBounds*] Sep 30 17:03:41 expandable listview is so horrible Sep 30 17:03:45 i wish they would deprecate it Sep 30 17:03:55 Well -- if anyone runs into this - I should have used R.layout.simple_expandable_list_item_1 rather than R.layout.simple_list_item_1 - the former contains the magic padding requirements, also explained in the docs. "pebkac" mistake on my end. Sep 30 17:04:05 lists by mike Sep 30 17:04:16 mikedg: what would you use instead? There's a distinct use-case that expandable listview resolves Sep 30 17:04:17 mikedg: is there any better/equivalent widget you would use? Sep 30 17:04:28 whats the use case? Sep 30 17:04:41 having parent children relationships with the children hidden at first Sep 30 17:04:55 drill down Sep 30 17:05:06 just using normal listviews? Sep 30 17:05:14 replace the adapter's list with the children's? Sep 30 17:05:30 the portrait view contains horizontal viewtabs below an image. I'd like the landscape view to use something similar, but to the right of the image. Accordianview might have been a less worse choice, but expandablelistviews seem convenient. Sep 30 17:09:51 btw, may it happen that the mediastore is not up2date? IS there a way to "Rescan" all images? Sep 30 17:10:18 I believe there's an intent that it looks for; but I can't remember the details. Sep 30 17:10:32 Okay Sep 30 17:12:00 Some vague recollection that it's connected with the sdcard mount/unmount event; but my brain cells are going blank. At some point, I remember grabbing the intent from logcat and running it manually in a shell using "am something something", because I was tired of the same situation you describe. Sep 30 17:13:37 okay. Yeah, i found the MediaScannerNotifier but it looks like that i need to set the path to look for. I bet its not possible to look for Environment.getExtenalStorageDirectory or just / Sep 30 17:21:05 While I'm at it - where's the documentation on the meaning of the various magic characters that prefix a resource reference? Ie - "@" versus "?", etc? I'm not immediately seeing it in the providing-resources.html part of the docs Sep 30 17:22:57 +kroot, can i pm you? Sep 30 17:30:44 Hi guys, I have a question about menu items in the action bar. How do I create a menu item that has text AND an icon in xml? Right now I can create one and call menuItem.setText("add me"); to put whatever text I want in. How do I make it happen right away? Sep 30 17:30:57 kbs: try accessing resources Sep 30 17:31:03 http://developer.android.com/guide/topics/resources/accessing-resources.html Sep 30 17:32:08 navetz: android:title ? Sep 30 17:32:10 mmathis: ah. :-) thank you Sep 30 17:33:50 mmathis: I have android title set but it doesn't appear. I also have android:showAsAction="always|withText". I have to longpress the button for the title to show up as a small popup under the icon. Sep 30 17:34:23 oh, i was thinking about an other way for syncing. Is it possible to add a custom flag to an image using the mediastore? Sep 30 17:36:03 I dunno, that works for me navetz Sep 30 17:36:21 mmathis: okay thanks, I'll keep trying Sep 30 17:36:50 Did anybody get the Greendao example to work in studio? I get the weirdest errors like duplicate dex files and junit not found. Sep 30 17:38:56 is there any way to have some menu buttons at the top, and some at the bottom? I know you can use: android:uiOptions="splitActionBarWhenNarrow" but that moves all the icons to the bottom. Any way to only move some to the bottom? Sep 30 17:39:58 the solutions I've seen have used the split action bar and a custom view for the top action bar Sep 30 17:40:41 mmathis: thanks i'll look into it Sep 30 17:41:20 using a native framework, calling the ime ofr inputting text, how can one change the input type of a existing ime to numeric or password? Sep 30 17:45:08 hi Sep 30 17:45:39 is there any ready-to-use view for capturing a signature? Sep 30 17:45:57 i worte my own implementaiton but i run into performance issues when drawing a Path on a canvas Sep 30 17:54:18 I don't believe there's one - but out of curiosity, isn't there some demo in the sdk that basically does a simple finger-painting type thing? Is that performant enough? Sep 30 17:54:38 Hey, I have a question about exceptions in native code. I'm seeing the app process restarted and then the last android activity started (except w/o your static variables and singletons). Is this documented somewhere, ie, how android recovers from crashes in native code? Can I force the backstack to be cleared when this happens? Sep 30 17:55:17 kbs: no :( all implementation are "make a Path in onTouch" and in onDraw - draw it ;) Sep 30 17:55:30 and this is slow on some devices - e.g. the S3 :( Sep 30 17:55:46 monsti: ah, I see - okay. Sep 30 17:55:54 i fooled around by making a bitmap Sep 30 17:56:01 or optimize the invalid() reckt Sep 30 17:56:12 -k Sep 30 17:56:56 I'm getting 'error: package com.google.android.gcm does not exist' when trying to use a Gradle build. I do have "compile 'com.google.android.gms:play-services:3.2.65'" in my dependency list Sep 30 18:15:19 How do I send an END_OF_STREAM flag to MediaCodec when it's input is a Surface? Sep 30 18:15:58 I want to stop the video encoding without interrupting updates to the surface Sep 30 18:19:36 Ahhh call MediaCodec.http://developer.android.com/reference/android/media/MediaCodec.html#signalEndOfInputStream()()! Sep 30 18:19:38 of course Sep 30 18:40:25 is there a way to set the keyboard type to password or numeric when calling inputMethodManager.showSoftInput... using native input field so can't set EditText.inputType Sep 30 18:47:12 is Google Web Designer AS 2.0 :P Sep 30 18:51:14 We were talking about dying services a few hours ago. Now i rode that IntentServices run aslong as the onHandleIntent() is not finished. it seems that there is no need to use notifications to keep the service running in background aslong as it has not returned anything, right? Sep 30 18:55:31 misterli you can look at the code, IntentServices won't use wakelocks or other tricks to stay 'unkillable' Sep 30 18:56:35 okay Sep 30 18:57:11 last but not least question is.. when i try to access the mediastore i may access the INTERNAL_CONTENT_URI and EXTERNAL_CONTENT_URI. Is there a way to query for ALL images/storage devices or do i really need to use 2 querys for that? Sep 30 18:59:39 Hi guys Sep 30 19:01:55 I'm using MediaStore.Images to retrieve images from MediaStore but what I get is a list of ALL images (here is the code: http://pastebin.com/P7z6txZU ). What I want now, is to get the FOLDER name wich contains each images. I want to show a list of images folders and then, if user taps on folder name, show only the images it contains. Any idea to do this?? Sep 30 19:02:00 thanks in advance! :) Sep 30 19:22:25 Hi android community Sep 30 19:22:31 hope somebody can help me Sep 30 19:22:45 is anybody here experienced on how to remove the statusbar Sep 30 19:22:51 for a custom build Sep 30 19:23:13 I followed this thread but no luck => http://forum.xda-developers.com/showthread.php?t=2128647 Sep 30 19:38:12 Hi android community, hope somebody can help me Sep 30 19:38:21 is anybody here experienced on how to remove the statusbar, for a custom build (im running this one http://www.freaktab.com/showthread.php?6365-NEOMODE-CUSTOM-ROM-1-3-MK802IV-UG007B-CX-919-MK809III-with-AP6210) Sep 30 19:45:26 lolziac: do you need java code to remove the status bar ? Sep 30 19:46:51 shmoooz I need a way :D to remove the damn status bar Sep 30 19:46:56 whatever is the best way Sep 30 19:47:12 I just can't figure it out how to remove it Sep 30 19:47:19 i don't wan't it shown at all Sep 30 19:47:33 I wan't it modified on the ROM Sep 30 19:47:54 did you ask #android-rom ? Sep 30 19:48:10 no man Sep 30 19:48:24 there is nobody on that channel Sep 30 19:49:05 getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); should hide it in java Sep 30 19:49:27 anyone here playing zynga facebook games? Sep 30 19:50:17 shmoooz where should I put that code ??? help Sep 30 19:50:38 I'm editing the framework-res.apk Sep 30 19:50:58 shmoooz: I don't think he wants to remove it in an app, he wants it gone from his device. Sep 30 19:51:09 RyanM, yes Sep 30 19:51:10 :) Sep 30 19:51:24 I want it vanished Sep 30 19:51:48 which...yeah, you'd want to ask #android-root or something. It's not really an application development question. Sep 30 19:51:50 by deleting SystemUI.apk I achieve that, but then my application doesn't work Settings and so on Sep 30 19:52:01 I asked there no help yet Sep 30 19:52:02 :) Sep 30 19:53:56 I thought by editing framework-res/res/values/dimens.xml Sep 30 19:54:03 and changing 25.0dip Sep 30 19:54:11 25.0dip should do the work Sep 30 19:54:17 to 0.0dip Sep 30 19:54:31 didn't work Sep 30 19:55:21 lolziac: do you use a hex editor ? Sep 30 19:55:22 D0 not listen to the 10 hours epic musics located @youtube !!!! Sep 30 19:55:50 no, but I could download one I guess Sep 30 19:55:59 I use simple vi, nano , mc :) Sep 30 19:56:03 for text editing Sep 30 19:56:33 shmoooz, you say I need hexeditor to achieve this :) Sep 30 19:56:46 Ill try it, just point me on the right direction Sep 30 19:56:58 no I was just wondering if you used one Sep 30 19:57:06 I don't know about hacking roms Sep 30 19:57:23 aight Sep 30 19:57:24 :) Sep 30 19:57:53 my only suggestion would be to try to find how CyanogenMod does it for their hide-status-bar-and-nav-area option in the power menu Sep 30 19:59:35 paranoid android has that feature too Sep 30 20:01:17 RyanM, Im quite new in android :) and most of the time I get lost by the structure, but at least Im trying and I will remove somehow that status bar Sep 30 20:01:22 thank you guys for your help Sep 30 20:06:47 oh man i still can hear the music Sep 30 20:09:53 Oh I'm here Sep 30 20:09:56 lolziac: here looks like a dirty hack ... http://www.arctablet.com/blog/forum/arnova-10-g2-general/hiding-the-status-bar/ Sep 30 20:09:58 Hello devs. Sep 30 20:10:37 Is there any simpel to start but extensible development framework with cross device (os) capabilites with a good android integration, that's free as in speech or at the very least beer, and you would recommend? Sep 30 20:11:02 no, it's not recommended at all Sep 30 20:11:45 Lars_G_: if you want to develop games then yes, but you need to tweak a bit with platform tools anyway Sep 30 20:11:47 nseidm1: Was that directed at me? or shmoooz? Sep 30 20:12:07 Lars_G_: you can try PhoneGap for that Sep 30 20:12:12 Lars_G_: directed to your question, although icedp makes a valid point about games Sep 30 20:12:12 icedp: Not games. Hardest in this case would be some video streaming, the rest... almost can work with html5 :) but any language is welcome really. Sep 30 20:12:20 Lars_G_: I don't think you will much help about cross platform frameworks in this channel Sep 30 20:12:38 Lars_G_: as shmoooz says you can try PhoneGap, but that will lead to a failure of an app. Sep 30 20:12:43 birbeck: Ok, I need an android framework, which accidentally might support other devs Sep 30 20:12:59 who's this noah seidman asshole and why's he adding me on linkedin? Sep 30 20:13:01 * pfn snickers Sep 30 20:13:02 ;-) Sep 30 20:13:06 :-P Sep 30 20:13:09 html5 will also lead to a failure of an app Sep 30 20:13:44 So, the answer basically is, code entirely from scratch with native tools only, and recode completely for every platform, or otherwise it'll always fail? Sep 30 20:14:00 Lars_G_: almost spot on ;-) Sep 30 20:14:20 Lars_G_: if web frameworks will do look at phonegap, if native is needed try unity for 3d games or kivy(python) if looking for 2d games or normal interfaces Sep 30 20:14:21 Ok. Sep 30 20:14:31 thanks. Sep 30 20:14:35 qua-non: I'll check Sep 30 20:14:35 even using jni in a native android app is a pretty poor route to go Sep 30 20:14:44 birbeck: native on all platforms, otherwise it's an insult to the userbase. Sep 30 20:15:04 Lars_G_: you can use C libraries Sep 30 20:15:33 icedp: fascinating approach, that should turn out well Sep 30 20:15:38 qua-non: If you've used it, is unity as "good" as it's made to be? Sep 30 20:15:48 icedp: yeah, and hook with jni or ndk. no thanks Sep 30 20:16:06 Lars_G_: sure for game dev Sep 30 20:16:21 Lars_G_: no haven't used Unity but heard good things, it supposed to be great for 3d games. Sep 30 20:16:30 please use the SDK relative to the platform to attempt to achieve a reasonable product Sep 30 20:16:50 ^ +1 Sep 30 20:17:00 Lars_G_: nseidm1 it exists for a reason there, it all really depends on the app Sep 30 20:17:11 nseidm1: It's not always possible cost wise Sep 30 20:17:31 hey nseidm1 Sep 30 20:17:38 The old NBC app was the perfect example of what happens "cost wise" Sep 30 20:17:42 it was a 1 star app Sep 30 20:17:50 napalm in the houseeeeee Sep 30 20:17:51 Lars_G_: This is a app written in kivy http://www.youtube.com/watch?v=MAYW-4ZM7p4 Sep 30 20:17:51 Lars_G_: thats when you need to pick a single platform to target first, until you start getting revenue or more financing Sep 30 20:18:06 hows it going buddy Sep 30 20:18:12 Lars_G_: a cross platform app, in 99.999999999% of the cases is poor on all platforms Sep 30 20:18:21 not a great way to start acquiring users Sep 30 20:18:37 good stuff, trying to accommodate my ux designers that keep requesting horizontal listview structures as a vertical listview's item Sep 30 20:19:01 nseidm1: nothing wrong with that as long as you handle things correctly Sep 30 20:19:06 indeed Sep 30 20:19:21 I thinks there's more modern ways to handle it though Sep 30 20:19:44 nseidm1 you're ux designers aren'tt worth crap then, they can experimentally determine that without any specific platform at all with standard usability tests Sep 30 20:20:06 Lars_G_: kivy uses OpenGL ES2.0 for it's interface so the ui is accelerated, you can simply search for "kivy" on google play and apple store to look at some example and how they perform Sep 30 20:20:22 horizontal scrolling isn't a fail on one platform and a god on another ;) Sep 30 20:20:27 *good Sep 30 20:20:58 goos: I'm trying to push them in the right direction, had the lead see Roman at a design in action meetup. Sep 30 20:21:34 They just don't understand how to accommodate phones, and tablets. They keep making these huge fragments solely designed for tabs Sep 30 20:21:46 and when I say, uhhh and wtf do you want to do on a phone? Sep 30 20:21:52 they just pause Sep 30 20:22:08 so this whole app has frags solely targeting tablet real estate Sep 30 20:22:19 qua-non: You've given me something to chew on too. thanks Sep 30 20:22:32 gonna have to either redesign all the frags, or create frags entirely targeting phones in addition to tabs Sep 30 20:22:42 great code reuse I keep telling them Sep 30 20:22:44 fml Sep 30 20:22:56 looks like unity and kivy don't support windows phones or blackberry Sep 30 20:23:14 nobody will support BB eventually ;) Sep 30 20:23:29 not even BB Sep 30 20:23:44 don't think they support symbian either Sep 30 20:24:14 Napalm: I recall a website you sent me about javascript performance requiring 40x to meet native performance, something like that? Sep 30 20:27:39 nseidm1: tell them to start on a phone and then its easy to scale it to tablet, its hard the other way Sep 30 20:27:56 i think its hard either way Sep 30 20:28:07 sometimes, the usage of the app is different between form factors Sep 30 20:28:20 for example, stock trading. on a phone, you may just want to monitor your stocks Sep 30 20:28:30 but to actually trade, you may be more likely to want a tablet Sep 30 20:31:07 shmoooz: as Roman says you start with content, and built with the notion of an adapter displaying a collection Sep 30 20:31:27 build a fragment around such an adapter backed structure, displaying the frags in a ViewPager on phones Sep 30 20:31:51 and display the frags strategially on tabs utilizing available space Sep 30 20:32:25 Create designs the frags Sep 30 20:32:31 and UX arranges the frags Sep 30 20:32:53 If ux and creative are considering only a specific sized device there methodology is flawed Sep 30 20:35:41 If the fragments I made for a tablet cannot be used on a phone then it was a waste of time Sep 30 20:35:45 at its core, the UI principle of progressive disclosure. on the tablet, you can show everything - on the phone, you have to decide how to partition - but i still think a lot of times the disclosure is not as simple as throwing all the pieces in a ViewPager Sep 30 20:35:46 and visa versa Sep 30 20:36:01 good point Sep 30 20:36:03 nseidm1: get them 320x240 resolution smartwatches to fit everything in first Sep 30 20:36:58 i wrote the worse compareT0() in history of my life !!!! Sep 30 20:37:01 haha Sep 30 20:37:55 nseidm1 turns out, people navigate a disclosed UI the way they forage for food :) Sep 30 20:38:02 looking for hints Sep 30 20:38:09 'information foraging' Sep 30 20:38:38 i still wish Play had A/B testing like Amazon store does; Sep 30 20:38:53 makes sense, something my designers unilaterally neglect Sep 30 20:39:02 Amazon has an A/B testing library you can include in your app, and their console supports that. they let you deploy a few versions Sep 30 20:41:13 my biggest struggle with android, is that generally i can plan the UI but can't poke the android apis to make it rich they way i want :( Sep 30 20:41:40 g00s: regarding ML/Ocaml - looked into it but haven't really worked with it enough to make an opinion Sep 30 20:42:00 g00s: there's a lot of fancy UI stuff which seems to take a ton of work, and everyone keeps recreating all that work Sep 30 20:42:06 g00s: or I just suck :P Sep 30 20:42:44 i …definitely suck in this area. more comfy with the non-UI apis Sep 30 20:43:27 its deeply frustrating, because i take interest in graphics design, interaction design, UX, all of that … but just suck with the APIs Sep 30 20:43:44 hi Sep 30 20:43:52 g00s: i'm the opposite lol Sep 30 20:49:40 hi Sep 30 20:50:03 g00s, sounds like you should take up a different profession :p Sep 30 20:50:14 or consider realigning your interests Sep 30 20:50:26 back, what i miss Sep 30 20:50:32 hmmmmm Sep 30 20:50:50 prolly a hobby Sep 30 20:51:02 is it possible to place SurfaceVew on widget layout? Sep 30 20:51:30 yacek19, no Sep 30 20:51:38 Napalm, the world Sep 30 20:51:54 pfn: I saw application that showed camera preview inside widget Sep 30 20:52:00 how this can be achieved? Sep 30 20:53:27 yacek19: you mean my Shady Camera Widget app :-) Sep 30 20:53:40 yes :) Sep 30 20:58:07 Nifty !!!!! and nice man Sep 30 20:58:09 nseidm1: do you have any idea? Sep 30 20:58:12 "Sprint phones WILL make a shutter sound,..." Sep 30 20:58:14 use an ImageView Sep 30 20:58:36 birbeck: correct, even a fully silent phone will still make a shutter sound Sep 30 20:58:45 huh? my sprint htc one allows me to mute the camera, as did my sprint nexus s, galaxy nexus, evo 4g, 3vo 3d and evo 4g lte Sep 30 20:59:04 good, then Shady Camera Widget will work just fine on those phones Sep 30 20:59:17 last time I checked a Galaxy S3 and 4 the camera shutter was a forced sound Sep 30 20:59:41 galaxy note tooo Sep 30 20:59:42 well its a good disclaimer so you dont get 1*'s saying it still made a shutter sound Sep 30 21:00:00 it's only Sprint, every other carrier is silent Sep 30 21:00:04 my s3 and note are international unlocked dev devices, so no idea on those Sep 30 21:00:12 will be fine on the international variant Sep 30 21:00:21 so you think, to achieve similar effect I should use ImageView? Sep 30 21:00:32 It's a Sprint TOS, Privacy Policy Sep 30 21:00:38 but yeah, all those samsung and htc devices i listed were sprint variants Sep 30 21:01:21 I can't wait for VoLTE Sep 30 21:01:37 so I can just get any LTE phone and just activate it on whatever provider I want Sep 30 21:01:48 instead of this vzw bullshits Sep 30 21:01:59 +1 Sep 30 21:02:10 I really don't want to leave vzw Sep 30 21:02:17 but.... the coverage Sep 30 21:02:17 but damn, they're making it hard to want to stay Sep 30 21:02:25 nseidm1: yeah, on my one i just checked, there is a shutter sound option in the camera app, and it is on sprint Sep 30 21:02:44 i can turn that off with phone volume on, or i can mute the phone Sep 30 21:02:46 But... it's part of the native camera app, third party apps will make the sound Sep 30 21:03:26 hmm, interesting. ill download it and try Sep 30 21:03:48 shady camera widget... interesting concept Sep 30 21:03:49 The widget specifically asks the camera to use no shutter sound, and also mutes the phones volume Sep 30 21:03:56 launch your camera from your widget, that's kinda nice Sep 30 21:04:03 bah. $0.99! :-) Sep 30 21:04:09 not quite, it's a full camera preview in a widget Sep 30 21:04:19 nseidm1, yeah, basically what I mean Sep 30 21:04:47 * pfn goes and pulls an espresso shot, yummytime Sep 30 21:04:49 like a SurfaceView in a widget, jurryrigged using an ImageView Sep 30 21:05:04 yeah, not really a surfaceview, you're just passing an image to the imageview in the remoteviews Sep 30 21:05:13 exactomundo Sep 30 21:05:28 nseidm1: so does it request layout like every few ms after you click the icon? Sep 30 21:05:30 I really like how you name your crap shady, heh Sep 30 21:05:37 lol Sep 30 21:05:45 birbeck: 30fps Sep 30 21:06:43 how nice, some fucker gave me 1* without even a word Sep 30 21:06:46 im surprised you can request layouts that often, or that the launcher will comply Sep 30 21:06:48 I think I need to turf in some more 5* Sep 30 21:06:57 pfn: umm, get used to it :) Sep 30 21:06:58 you won't get 30fps on your widget rendering, though Sep 30 21:07:00 birbeck: doesn't work on many phones Sep 30 21:07:06 birbeck, just annoying when it's a new paid app with few reviews Sep 30 21:07:08 stock android usually works just fine Sep 30 21:07:20 I usually schedule 4-10 updates a second Sep 30 21:07:28 that seems about the limit that'll render smoothly Sep 30 21:07:42 pfn: for irc? Sep 30 21:07:44 I have a stopwatch widget that I run on my homescreen Sep 30 21:07:54 I haven't published it or put it on github yet Sep 30 21:08:11 so I render time updates ~10 times a second Sep 30 21:08:45 nseidm1: another idea would be an activity with just a dialog fragment Sep 30 21:09:15 click the icon, show a small window with the preview and snap/cancel buttons Sep 30 21:09:35 might work on more devices and launchers Sep 30 21:10:09 birbeck, that's no fun Sep 30 21:10:17 lol Sep 30 21:10:19 but yeah, it would work more smoothly and universally Sep 30 21:10:22 Lots of ideas, just no reason to make them because nobody pays Sep 30 21:10:23 also launchable from anywhere, too Sep 30 21:11:04 nseidm1: i just do crap like that to play with apis or test ideas without doing a full blown app release Sep 30 21:11:43 I used to be like that, I spent a long time getting Shady SMS where it is now Sep 30 21:12:02 is that like snapchat? Sep 30 21:12:18 nothing is like Shady SMS Sep 30 21:12:31 heh Sep 30 21:12:32 was the first, over 4 years of dev Sep 30 21:13:27 oh, there's a review Sep 30 21:13:32 oh well, it's so nice that we can respond Sep 30 21:13:50 It's soooooo hard not to be sarcastic Sep 30 21:14:17 how to programmatically dial a number via a certain sim in a phone? Sep 30 21:14:22 impossible Sep 30 21:14:22 *bonjour Sep 30 21:14:27 nseidm1, all I ever am in responses is sarcastic Sep 30 21:14:49 nam3l3zz: there is absolutely no support for multi sim phones in Android Sep 30 21:15:30 Fahrbot makes the best sarcastic responses Sep 30 21:15:56 nseidm1: no native support will do, any hacks/tweaks/crooks/etc ? Sep 30 21:16:03 nothing Sep 30 21:16:03 cyano ? :) Sep 30 21:16:09 absolutely no way to do it at all Sep 30 21:16:15 only the primary sim is supported Sep 30 21:16:23 low level modem functional calls ? Sep 30 21:16:24 :) Sep 30 21:16:36 That's where you're heading Sep 30 21:16:41 :) Sep 30 21:16:41 ok Sep 30 21:16:46 nseidm1: thanx Sep 30 21:16:48 radiooptions binary commands Sep 30 21:16:56 etc... Sep 30 21:17:11 straight up driver level Sep 30 21:17:53 hi guys... do u know if i need to enable accelerometer to use it in my app ? i just dont have a device to test it... is this really required ?android.hardware.sensor.accelerometer in Manifest? Sep 30 21:18:02 then again, you can likely decompile the sms app on a dual sim phone to learn a bit, but I bet it's a native method call to access the second sim Sep 30 21:18:36 nseidm1: dialer has two "green" button, i "just" need to emulate the right "green" button :D Sep 30 21:19:16 or a hidden prefix number routes the call to each sim Sep 30 21:20:30 SuD: that would be nice, still heading down the road of determining how each manufacturer does it Sep 30 21:20:33 SuD: creative, thnx Sep 30 21:20:45 and it may be different for each model from each manufacturer Sep 30 21:20:54 Hey all! Anyone here familiar with Geek Serendipity or the Mobile Backend Starter sample? I get a NPE when I try to deploy: http://stackoverflow.com/questions/19098237/npe-in-xsrftokenutility-google-mobile-backend-starter Sep 30 21:21:26 meh, I wish mtp support in windows were more verbose Sep 30 21:21:30 tell me how fast data is copying, damnit Sep 30 21:21:47 I hate explorer... pos.... microsoft can't even get file copy right Sep 30 21:21:58 who spends 10 minutes calculating time required to copy rather than actually copying... Sep 30 21:24:49 pretty sure it's mtp being horrid, not explorer Sep 30 21:25:19 well, explorer is always terrible, I hate using it Sep 30 21:25:24 (for the most part, I don't) Sep 30 21:25:28 gui file managers ftl Sep 30 21:25:43 it's just on windows, using explorer is required to work with mtp.... Sep 30 21:25:56 pfn: isn't there a circle with a greater sign that you click to expand to show more verbose info ? Sep 30 21:26:23 shmoooz, not for mtp Sep 30 21:28:01 pfn: what command line file copy is going to give you any progress at all? Sep 30 21:28:28 birbeck, normally, on a unixish, I'd use some variety of iostat, vmstat, lsof, etc. to get an idea Sep 30 21:28:31 not to mention ls Sep 30 21:29:32 but those wont give you real-time progress Sep 30 21:29:37 close enough Sep 30 21:29:59 there's a few things you can cat a file through for progress Sep 30 21:30:07 im not defending windows here, just gui file copy generally is a bit better ux as it gives at least _some_ info Sep 30 21:30:29 I like the way wget displays progress, they should build that into cli copy commands Sep 30 21:30:40 and yeah, I usually like having other ways of inspection, like dtrace, strace, etc. Sep 30 21:30:44 at least to verify that crap is moving Sep 30 21:31:04 dragorn: im not saying there arent other os tools to figure out what the progress is, but cp is going to just block until the operation finishes Sep 30 21:31:31 birbeck: yes; i'm saying there are tools like 'pv' which handle that case Sep 30 21:31:43 birbeck: if you're really bound up on lack of progress bars Sep 30 21:33:24 :(, this sucks my brain is dead right now Sep 30 21:33:55 meh, screw it, gonna resort to copying the file over cifs @ 1.5MB/s rather than deal with mtp hanging with no info Sep 30 21:34:53 ok, coffeebreak for real now Sep 30 21:34:57 there are monitoring tools, i have gkrellm always running Sep 30 21:36:12 pfn: try monsters!!!! Sep 30 21:36:22 try what? Sep 30 21:36:34 has all the vitamins and minerals as well .. replaces what the caffein depleated Sep 30 21:36:43 oh, not interested in energy drinks Sep 30 21:36:45 *depleted Sep 30 21:36:48 lol Sep 30 21:36:53 yeah are so bad for you Sep 30 21:37:15 http://www.youtube.com/watch?v=gAYL5H46QnQ ... run faster, jump higher Sep 30 21:37:16 i a up like almost 2 days LOL Sep 30 21:37:44 and I drink coffee for the flavor, not for the caffeine Sep 30 21:37:54 hah watched it befoee Sep 30 21:38:23 i dunno if that being sarcastic or not at this moment Sep 30 21:38:51 srsly .. its scary i can still hear the 10 hour you tube mix .. even when i went out for a walk 1!!!!! Sep 30 21:39:21 should get shady widget to document :P Sep 30 21:39:33 Patches O'Houlihan: Necessary? Is it necessary for me to drink my own urine? Sep 30 21:39:34 Peter La Fleur: Probably not. Sep 30 21:39:34 Patches O'Houlihan: No, but I do it anyway because it's sterile and I like the taste. Sep 30 21:40:53 Zombie_process99: document, what is the meaning of this word you speak of Sep 30 21:41:20 jibberish from me not having enough sleep Sep 30 21:41:48 i think i drank too many of these monsters lol Sep 30 21:41:57 i havent been productive Sep 30 21:42:37 yes time for some valuum for you Sep 30 21:42:41 shady widget is a very interesting project and so was crap shit app , or c... Sep 30 21:42:44 crap chat Sep 30 21:42:58 tripped me up all day but i like the concept Sep 30 21:43:37 but i want to finish!!! and cant listen to youtube anymore Sep 30 21:44:21 oh man i have to write to txt file on deveice and ssh grab Sep 30 21:47:04 nvm ill heat my room up using AVD Sep 30 21:47:44 heat is a catalyst, you need cool Sep 30 21:48:04 someone needs to rename this channel to #zombie_process99_stream_of_consciousness Sep 30 21:48:25 LOL Sep 30 21:48:43 not this place how about android-offtopic Sep 30 21:49:31 jj ill stop sorry sorry :) Sep 30 21:58:16 oh man ... later .. Sep 30 21:58:51 you say "stream", I think more of a sewage line. Sep 30 22:03:20 Hello, if I want to do this: https://developer.android.com/training/managing-audio/volume-playback.html does it means that I have to create a subclass of BroadcastReceiver? can't just use an object? Sep 30 22:12:35 hi all Sep 30 22:13:07 does anyone have any info on how to dfisplay a tracking icon on a google map if I have a server I can poll to get gps data? Sep 30 22:19:43 Hi guys, has anyone had any bugs with android 4.3 and actionbarsherlock? When I call getSupportActionBar().hide(); in android 4.3 it hides the top and bottom action bars but it leaves a white space where the bottom action bar use to be. I also have windowActionBarOverlay set to true Sep 30 22:20:02 that has nothing to do with ABS. that's all native action bar Sep 30 22:21:03 JakeWharton: I thought so, perhaps it's a 4.3 bug or i'm doing something wrong Sep 30 22:21:26 if you have an overlay action bar then the content should stretch beneath a split bar Sep 30 22:24:07 JakeWharton: in 4.2 the content doesn't go below the bottom action bar, it stops at it, but when it's hidden the content get's stretched and acts the way I would expect. I was expecting the content to go below the bar though considering it is an overlay action bar. i think maybe I made a mistake in my view then. Sep 30 22:24:08 thanks for the hlep Sep 30 22:24:33 hmmm that's not how overlay is supposed to work Sep 30 22:29:32 JakeWharton: yea i'm not sure how to tell if it's actually an overlay or not. I believe I set it correctly Sep 30 22:30:41 i think my layout is wrong Sep 30 22:35:04 if I make the actionbar transparent I should be able to see the background of the view under it right? Sep 30 22:37:17 Hi guys Sep 30 22:37:19 I'm using MediaStore.Images to retrieve images from MediaStore but what I get is a list of ALL images (here is the code: http://pastebin.com/P7z6txZU ). What I want now, is to get the FOLDER name wich contains each images. I want to show a list of images folders and then, if user taps on folder name, show only the images it contains. Any idea to do this?? Sep 30 22:44:39 Hmm Android Studio seems a bit more finnicky than I expected. Sep 30 22:45:15 anyone able to get the google I/O sample app to load in the current version of android studio? Sep 30 22:45:40 Its still in beta :-\ Sep 30 22:46:18 bdbaddog should work Sep 30 22:47:13 is it possible with IJ to make two build configurations, one for TEST and one for PROD. i have two WS servers that i'd love to have two run configurations for so i don't have to keep changing my static String SERVER_TYPE var Sep 30 22:48:35 I follow readme and point it at the settings.gradle and get "resolve error failed to find target android-18"… Consult ide log.. but there's no way to get to the log cause the IDE doesn't come up. Sep 30 22:54:53 mmm, espresso, so yummy Sep 30 22:55:04 bankai_, use BuildConfig.DEBUG Sep 30 22:56:01 thanks :) Sep 30 23:02:54 I have a context object type is it possible to get the name of the object type it holds? (the name of the class) Sep 30 23:03:23 Context.class.getSimpleName() Sep 30 23:04:29 I'm trying to use ant for automated builds, but "ant release" always takes almost two minutes on the same source code. Specifically it freezes on this part of build for a minute or so: http://pastie.org/8368214 Sep 30 23:05:13 Found 95 AIDL files Sep 30 23:05:15 :O Sep 30 23:05:55 I'm not a java dev, don't ask me. it's a very big project basically. Sep 30 23:06:36 it looks like that shiete doesn't happen on linux box. E.g. windows build probably has piss off enabled by default. Sep 30 23:07:04 *windows build of ant or android sdk Sep 30 23:08:21 thanks g00s_ you are awesome, loginActivity.getClass().getSimpleName() perfect Sep 30 23:08:52 i'm thinking to even throw entire ant mess to garbage can and do all the steps manually, since it always rebuilds. On windows it takes almost 2 minutes, on linux it's faster, still it's not as fast as it should have been. Sep 30 23:09:59 can anybody suggest what I should check, why the hell this annoying insect wants to rebuild that pile of code every time?? Sep 30 23:10:31 if it s a big project, and you're not a java guy, maybe find somebody familiar with the build system Sep 30 23:10:53 Is there a way to disable restarting the app after an exception? Or at least restart the activity I want to restart? Sep 30 23:11:29 handle exceptions properly ;) Sep 30 23:11:35 what if you wind up in an endless exception/start loop :P Sep 30 23:11:38 well... i'm taking care of the build system, so i'm more or less familiar. I'm doing myself the ndk part. but ant doesn't do ndk part, we use ndk-build manually before running ant. Sep 30 23:13:00 ah.. are you saying find some one familiar = hire a build system java guy?! :) Sep 30 23:13:12 bankai_: fan of bleach>? Sep 30 23:13:16 bankai_: the exception is coming from native code I have no control over… Sep 30 23:14:20 no, that's overkill. We have a few java devs, but I don't think that anybody is remotely familiar with ant... .they are as familiar with ant as most c/c++ devs are familiar with make: they know how to run it and get builds :) Sep 30 23:15:24 make love Sep 30 23:15:25 Make: Don't know how to make love. Stop. Sep 30 23:16:06 basically... out build.xml is plain vanilla cript, nothing unusual. At least the aidl step isn't repeated with every build on linux box. So it's doesn't look like any fault in our code or buildscripts Sep 30 23:17:09 touch me Sep 30 23:17:15 chmod 000 me Sep 30 23:17:19 touch me Sep 30 23:17:26 touch: cannot touch me: permission denied Sep 30 23:24:15 another question... why source.dir cannot be a list of source dirs?? There is a proposed solution that requires that ant/build.xml be updated: http://stackoverflow.com/a/14786100/468725 Sep 30 23:26:24 randomguy123 xavier admitted that their ant tasks were a pile; thats why they went to gradle - but i'm afraid gradle is slower Sep 30 23:26:26 hi Sep 30 23:27:36 Hi. I need to run my shared object library file as root. It seems to best way to do this is to add the .so file to /system/lib/ is this true? Sep 30 23:27:39 well, it cannot be that slower if ant rebuilt half of my shit. Who is xavier by the way? Is android sdk going to eventually distribute some decent build system?? Sep 30 23:28:03 is Context only for something that extends Activity ? Sep 30 23:28:11 randomguy123 xavier is the tools team lead, from what i gather Sep 30 23:28:30 gradle is the build system they are replacing it with Sep 30 23:28:47 randomguy123 http://tools.android.com/tech-docs/new-build-system/user-guide Sep 30 23:28:58 ahh, cool. I hated ant partially because I hate xml :) Sep 30 23:29:21 thanks for the link, I'll check it out. Sep 30 23:29:39 its a work in progress ;) Sep 30 23:51:39 Hi. My app needs to use a shared object library file as root. What is the best way to do this? Sep 30 23:54:44 dlopen() Sep 30 23:55:32 is there a way to detect when "Power saving mode" is on? Sep 30 23:56:53 p_l, What do you mean? Sep 30 23:58:18 hi Sep 30 23:58:19 Bitwise: Well, you cannot run an Android application as root (without some really hairy tricks). So you'll have to launch a "normal" linux application, and in order to get around some issues with Bionic's ELF interpreter, you might need to manually open the library Sep 30 23:58:28 * kbs is also surprised if dlopen can change process privileges Sep 30 23:58:36 is there an easy way to display a tracking icon on a google map type deal if I have gps data? Sep 30 23:58:55 kbs: it can't Sep 30 23:59:20 p_l: ah, good :-) Sep 30 23:59:42 dlopen() = mmap() Oct 01 00:00:05 p_l, I'm not sure how I'd call dlopen from my app. Oct 01 00:01:35 Bitwise: I think you don't have any idea about making an application that uses root privileges (at least for something other than runnin shell scripts), I guess, so I suggest you start there, and learn how to make executables that will run on android, then how to deal with dynamically-loaded libraries (manpages: dlopen(3), dlsym(3) ) Oct 01 00:02:51 p_l, The .so file I'm trying to use is libpcap. Oct 01 00:03:07 Bitwise: doesn't matter Oct 01 00:03:27 dlopen() is how you "load" a library, dlsym() is how you get specific functions out of loaded library Oct 01 00:03:43 train yourself first on normal linux, then move that onto android :) Oct 01 00:04:12 it *might* work without manually calling dlsym()... but I have no time or patience to check that without seeing a cheque Oct 01 00:04:24 (sorry, it's late here :D) Oct 01 00:06:24 In other mysterious issues - is there something in android-8 that prevents the groupindicator in an ExpandableListView from showing up? http://pastebin.com/jfnDHJtb - is the code snippet in use. Indicators show up in an android-17 emulator, but is missing in an android-8 emulator. [the view itself works normally, expands and collapses children in the view.] Oct 01 00:09:29 p_l, On top of libpcap I'm trying to use jnetpcap which is a wrapper for libpcap. The jnetpcap jar uses native methods to call the libjnetpcap.so which in turn calls libpcap. I don't think there is much room there for calling su. Oct 01 00:09:45 Bitwise: won't work Oct 01 00:10:04 you won't be able to do root-level calls from inside java android app Oct 01 00:10:19 at least not without some hairy things Oct 01 00:25:33 http://www.theglobeandmail.com/report-on-business/the-inside-story-of-why-blackberry-is-failing/article14563602/ Oct 01 00:25:33 Apple’s iOs and Google’s Android systems were relatively easy for outside software developers to use, compared to BlackBerry’s technically complicated Java-based system. Oct 01 00:25:45 So glad android doesn't have a technically complicated java-based system Oct 01 00:25:57 *SNRK* Oct 01 00:26:07 well, I suspect getting started was easier Oct 01 00:29:32 poutine: Are you saying Android will fail too? Oct 01 00:30:06 In favor of say normal websites Oct 01 00:30:21 boytoy, I don't know how you could have possibly come to that conclusion, first line was the URL, 2nd was an excerpt, and 3rd was my sarcastic commentary Oct 01 00:31:13 boytoy: http://sealedabstract.com/rants/why-mobile-web-apps-are-slow/ Oct 01 00:31:35 also, repeat after me: Mobile Network Internet *SUCKS* and WILL FAIL Oct 01 00:34:53 i think this is interesting " “If that thing catches on, we’re competing with a Mac, not a Nokia,”" Oct 01 00:35:18 same problem Android will have; competing with Macs and Windows Oct 01 00:35:33 just further down the road Oct 01 00:36:28 p_l: Interesting, thank you! Oct 01 00:36:43 was just watching this though Oct 01 00:36:45 Google I/O 2013 - Mobile HTML: The Future of Your Sites: https://youtube.com/watch?v=EPYnGFEcis4 Oct 01 00:36:53 boytoy: for sites. not for apps Oct 01 00:37:01 doesnt seem too bad, seems to be a lot of offline stuff coming up for sites too Oct 01 00:37:14 there are also cases where making a local app is the bad idea, but people make local apps instead Oct 01 00:37:58 p_l: what, you don't want to have your very own shopping app for every online store you visit? Oct 01 00:39:20 zinx: I can't zoom in them :> Oct 01 00:39:49 p_l: yeah but they provide the retailer with information that lets them enhance your customer experience!! Oct 01 00:40:49 is there a way for blocking settings being changed on android devices given to employes that only have to run one app? Oct 01 00:41:29 android 4.3 and the guest profile, maybe Oct 01 00:41:39 lock the main profile with a strong password Oct 01 00:51:45 ads are coming to gmail, woohoo Oct 01 00:51:50 gmail for android ;) Oct 01 00:52:07 k-9 ftw Oct 01 00:52:48 I hardly ever use the web gmail anymore; that whole interface has gotten more and more unpleasant Oct 01 00:52:59 "UI icons are now darker" uh oh, hope they design guidelines aren't changing again Oct 01 00:53:10 kbs yeah Oct 01 01:00:13 ah, finally fixed an issue in passifox Oct 01 01:00:20 stupid new apis Oct 01 01:01:48 guys is there any code generation tool for android? Oct 01 01:04:11 Trudko what kind of code generation :P Oct 01 01:14:20 something like rails Oct 01 01:14:41 hey guys, question Oct 01 01:15:01 is android:debuggable true the only thing you have to set for logs to appear in adb logcat? Oct 01 01:15:58 Anyone know why my media player is skipping forward when I rotate the device: http://stackoverflow.com/questions/19106212/mediaplayer-skips-forward-about-6-seconds-on-rotation?noredirect=1#comment28250113_19106212 ? Oct 01 01:17:27 Trudko: there's ASE, android scripting environment Oct 01 01:18:24 Trudko: I think they ship a jruby. Not really rails. Android isn't really a server environment, but it's linux enough that if you're willing to put in a fair bit of effort you can get most things running. Oct 01 01:35:01 dragorn: well i am more interested in code geretaion Oct 01 01:35:16 I don't know what you mean by code generation Oct 01 01:35:26 same as with rails Oct 01 01:35:54 you say i want to have model with this attributes create db scripts , pojo and views for me Oct 01 01:41:09 rails doesn't do code generation Oct 01 01:41:12 it generates stupid templates Oct 01 01:41:33 anyone know the answer to my question about logging? Oct 01 01:41:37 :? Oct 01 01:41:44 you don't need to set android:debuggable Oct 01 01:41:53 it does need to be set so that you can filter by package name, etc. Oct 01 01:42:14 pfn: so what controls whether a log command is echoed to logcat or not? Oct 01 01:42:36 "/* Log.d ... */ ? Oct 01 01:42:43 That'll control it. :) Oct 01 01:42:46 no they aren't commented Oct 01 01:42:54 i decompiled a random apk and i'm playing with it Oct 01 01:43:32 there are logging commands that aren't commented out but nothing in logcat. so there must be a switch for it somewhere Oct 01 01:43:41 i thought that was android:debuggable Oct 01 01:46:50 pfn: is there maybe a google search you could direct me towards that will get me on the right track? Oct 01 01:50:03 I haven't tried this; but https://developer.android.com/reference/android/util/Log.html#isLoggable%28java.lang.String,%20int%29 might have some ideas Oct 01 01:52:45 pfn: it does create basic boilerplate, migration for database, it has orm would love to have something like that in android. Oct 01 02:10:08 What options do I have for using Python on Android? And what's Pygame performance on it like? Oct 01 02:11:29 BlueProtoman have you tried this https://code.google.com/p/python-for-android/? Oct 01 02:12:00 DwordKnight: No, I have not. Thanks! Oct 01 02:13:36 tsukasa_, nothing controls it, just log level, but by default it's debug Oct 01 02:15:37 ormlite does orm... Oct 01 02:15:39 * pfn shrugs Oct 01 02:15:47 BlueProtoman, jython is workable Oct 01 02:15:50 but slow Oct 01 02:16:46 Urrrggghh so hard to make a dual time range picker that doesn't look absolutely awful Oct 01 02:26:06 Is there a way of blocking the settings in android so that users can't change them? this is for enterprise phones owned by a company Oct 01 02:30:53 totic: https://support.google.com/a/users/answer/2364439?hl=en I think Oct 01 02:33:15 thanks Oct 01 02:34:14 Leeds decide to go to the BB event? Oct 01 02:34:26 Leeds: I guess I have to get a Google Business account Oct 01 02:37:06 its too expensive $5 a month just to block the settings Oct 01 02:43:15 g00s_: I went for the keynote, and the free lunch and hardware :) Oct 01 02:43:50 hey, could be your last chance Oct 01 02:44:05 who knows how much longer they will be around Oct 01 02:44:21 yeah, exactly Oct 01 02:44:58 had lunch with a mate who was also there - and it turns out I know a couple of guys working for the HK company which is responsible for 30%ish of all BB10 apps Oct 01 02:45:05 totic: you can control things under device administrator - and afaik, only those things Oct 01 02:45:42 dragorn: but I dont see how to block them from getting in the settings Oct 01 02:45:43 totic: the list of admin controls is on the developer site; primarily they're focused on device password and wipe, some vendors also offer extended APIs under the devadmin stuff Oct 01 02:45:45 just about passwords Oct 01 02:45:45 you can't. Oct 01 02:46:03 things android does do very well: enterprise, and device management. Oct 01 02:46:07 doesn't do. Oct 01 02:46:42 I just want to stop them from turning the GPS off/ allowing mock location and setting the device "Saving battery mode" Which somehow screws the GPS Oct 01 02:46:51 hmm has anyone busted the new timepicker from the 4.3 alarms app out into a library? Oct 01 02:46:57 I already fixed GPS off and mock locations with listeners Oct 01 02:47:00 totic: afaik not possible Oct 01 02:47:18 is there a listener for "power modes" ? Oct 01 02:47:20 I don't think under modern android you can even force it back on w/out a custom rom Oct 01 02:47:44 You definitely can't get at airplane mode anymore after 4.2 and I believe they moved all the GPS controls under that umbrella Oct 01 02:49:05 so any recommendations? I just have to have the GPS always sending the location back until the battery dies Oct 01 02:49:23 I have wakelocks Oct 01 02:49:51 but if you have it in battery saving mode after a while it decides to stop getting gps Oct 01 02:49:59 You can solve it by layer 8 - "stop fucking with your phone or we dock your pay" Oct 01 02:50:27 i mean if they really cared they'd just wrap the phone in aluminum foil Oct 01 02:50:41 nah because they can always blame it on the phone Oct 01 02:51:03 they can't wrap it up on aluminum foil because then they can't use the other functionality they need Oct 01 02:52:02 damn users!! **** ENDING LOGGING AT Tue Oct 01 02:59:58 2013