**** BEGIN LOGGING AT Thu May 15 02:59:59 2014 May 15 03:08:40 hello all May 15 03:09:05 hallo May 15 03:09:21 hi njcomsec May 15 03:16:59 What would be the declaration of class in MyClass.class ? Is it syntax or a static member? May 15 03:17:59 Ah, right, it's a syntax. May 15 03:58:41 does anyone has experience tcp client socket on android keep returning connection refused? May 15 03:58:55 my windows client socket works just fine May 15 03:59:16 so that means the server is fine May 15 04:07:00 Binbo, you've given the app the internet permission, right? May 15 04:07:54 timemage: yes May 15 04:08:53 Binbo, and the server isn't running on the same machine as your windows client? May 15 04:08:57 sometimes I can open the socket for the first time. But when I close and try to open it again, connection will definitely refused May 15 04:09:04 nope May 15 04:13:18 is there a way to spy on the screen of my android device? I want to do a screen cast with out using that crappy emulator May 15 04:17:05 IrishGringo, probably mhl or minihdmi with one of those came capture devices is the way you'd have to go. or maybe you could do something with a rooted device. May 15 04:17:34 Im looking at this article now... http://www.geek.com/android/how-to-use-screen-recording-in-android-4-4-1576505/ May 15 04:28:44 i have a listview of images loaded using picasso via a remote url, now i want to use the share intent to send the images where ever. since i can't access the picasso cached copy (i think the only way to do this is to override where picasso caches too) - i assume i have to download the image then use that to share. my quesiton: is there no built-in "add this photo from remote url" function in the share intent??? May 15 04:30:06 Does 'picasso.get' return the bitmap? May 15 04:30:55 * tweeeaks looking into it May 15 04:38:08 f2prateek: looking for that answer it looks like i may have found a solution... "use Target and set it on the ImageView yourself" May 15 04:38:49 so i have to figure out how the Target works, and want to make sure that doesn't take away from the benefits of normal picasso usage May 15 04:39:37 https://github.com/square/picasso/issues/38 May 15 04:40:22 Call get, save it somewhere. May 15 04:41:34 hey guys, I am making a custom call status screen May 15 04:41:41 how do I get a dialpad working? May 15 04:44:58 JakeWharton: do i call get on the imageview object? or if you know of any point me resource so I can inspect how its done :) May 15 04:45:20 * tweeeaks engrish May 15 04:46:08 Fire an async task, call Picasso with get instead of into, save to external storage, fire intent May 15 04:46:49 JakeWharton: perfect :) thanks man... and thanks for the project, its the tits May 15 04:47:49 hello all May 15 04:49:46 I'm using the haversine formula to get the distance I've traveled (walking) between 2 points 1) is there an easier way to do this in Android? That is fine if there isn't, I have the formula implemented and 2) how do I get bearing? Do I need to calculate that based on the lat/lng change from previous or does Android have a method for this? May 15 05:21:28 hey guys May 15 05:21:46 how do I make a custom dial tone during a call within my app? May 15 05:23:53 you want people to have a special dial tone if their phone rings while using your app? May 15 05:25:20 is there any PreferenceFragment api available for Android 2.2 and above? May 15 05:26:56 or is their any Preference api available which can be added to Fragments directly? May 15 05:29:57 t2mkn i would just use preferenceActivity May 15 05:41:48 g00s: but using that makes me use a depreciated method to load from xml May 15 05:42:43 g00s: also i want to use tabs for more categorization of preferences, so its not suitable. May 15 05:42:59 then minsdk=15 May 15 05:43:03 solved :) May 15 05:43:19 and tabs for preferences? thats - weird May 15 05:43:44 tabs + fragments having preferences May 15 05:44:24 tab 1 = bla bla bla preferences, tab 2 = more bla bla, etc.... May 15 05:44:55 thats nonstandard though, i don't see what it gets you. The Settings app has preferences up the wazzoo - do it that way :| May 15 05:45:56 my minimum sdk is 8, app is on and there are lots of users from android 2.2 also. May 15 05:46:24 i don't know what you can do May 15 05:46:47 prefernceActivity itself is not deprecated, just using a few methods May 15 05:46:48 tere are lots of settings in it, so making it categorized will be good. also look bit more professional May 15 05:47:09 deprecated doesn't mean non-functional May 15 05:47:37 and by the time they really get rid of it all together, there will probably be a better choice :) May 15 05:47:48 or 2.3 won't exist anymore May 15 05:47:56 2.3 doesn't exist May 15 05:47:59 hehe May 15 05:48:58 t2mkn i've never seen preferences in tabs; it seems crazy. if you use preferenceactivity the modern way, it does a dual pane layout for you May 15 05:49:57 Go to harvard!!! May 15 05:49:59 https://www.youtube.com/watch?v=fJ7ULOFBBTM May 15 05:50:20 humm... May 15 05:51:12 addPreferencesFromResource() is depreciated. but is it working perfectly in all available versions. why its depreciated then !!! May 15 05:51:35 because they want you to use preference fragments moving forward May 15 05:51:54 once your minSdkVersion is 14, you can May 15 05:52:24 i would love ot use preferenceFragments but its not their in api 8, also no support in v4 or any :( May 15 05:53:18 right May 15 05:53:32 so use addPreferencesFromResource May 15 05:54:41 i want to use tabs with various preferences in them. also if possible dont want to use depreciated methods. May 15 05:55:07 starting from api 8 to latest May 15 05:56:26 I'm going to a talk by Ray Ryan tomorrow May 15 05:57:30 On dagger, flow and mortar May 15 05:57:42 cool May 15 06:04:55 any one aware of this: https://github.com/saik0/UnifiedPreference looks good May 15 06:08:09 i was aware of it May 15 06:22:52 Hi guys please help me with Robolectric on android studio, i got it some what working, test like assertEquals(true, true); passes but when I try creating an object of the activity class it always gives runtime exception May 15 06:24:28 I am creating the object like activity = Robolectric.buildActivity(MainActivity.class).create().start().resume().get(); inside a setup function with @Before annotation May 15 06:28:16 Morning May 15 06:28:26 has anyone found out a way yet to set the video quality for recording a video May 15 06:28:29 through an intent? May 15 06:28:45 I really dont want to roll my own media recorder activity May 15 06:30:55 hello! anyonne using robotium ? Got INSTALL_FAILED_VERSION_DOWNGRADE when trying to run tests May 15 06:37:55 that has nothing to do with robotium May 15 06:39:52 well, robotium tries to install application many times May 15 06:40:02 so application is there already May 15 06:40:08 with the same version May 15 06:40:10 I guess May 15 06:40:19 or I'm wrong - again :) May 15 06:42:12 let me try something May 15 06:45:50 hi guys, I have a listview which updates when user reaches bottom. The updating logic is working fine, but I want to add a "Loading..." text view in the bottom till it the async operation is done. May 15 06:46:14 I am not sure if listview has a footer or should I use a viewstub or a normal textview and alter its visibility May 15 06:46:20 any suggestions? May 15 06:46:31 JakeWharton: no it failed May 15 06:46:44 I changed version in robolectric's project manifest May 15 06:46:44 uninstall first May 15 06:46:50 I did that May 15 06:46:53 it's always the same May 15 06:46:58 maybe it's android 4.2 fault May 15 06:47:06 (I run it on usb) May 15 06:49:08 god, logcat really does get spammed to the nth degree on a real device with a bunch of apps installed May 15 06:49:26 Leeds: intellij May 15 06:49:33 it filters your app output May 15 06:49:34 gordon_: vim May 15 06:49:41 then, DEAL WITH IT May 15 06:49:53 log spam is an ongoing problem May 15 06:50:03 i think the framework team is unhappy May 15 06:50:03 oh, yes, I know how to filter logcat if I want to - the point is that it really *spews* if you don't May 15 06:50:21 well May 15 06:50:30 one thing i have wondered about, is the log persisted or is it a ring buffer in memory ? May 15 06:50:42 memory I think May 15 06:51:03 a lot is coming from the system - wifi scans every few seconds, for example May 15 06:51:13 yeah the n5 has an issue with some qualcom sensors that spam like mad May 15 06:51:34 does robolectric works on android 2 ? May 15 06:51:52 i'm seeing the qualcomm sensor crap in my battery report now :( May 15 06:51:54 about 10 lines of log every time it updates the wifi/cell signal meter May 15 06:52:02 JakeWharton: the Jake Wharton? May 15 06:52:12 just without the space May 15 06:52:19 lol May 15 06:53:13 JakeWharton: tried different android May 15 06:53:20 now I got at least different error May 15 06:54:30 http://pastie.org/private/z7iibaqvtittkso1y3zwg May 15 06:56:16 any one familiar with this error android studio java.lang.RuntimeException: huh? can't find parent for StyleData{name='AppTheme', parent='Theme_AppCompat_Light_DarkActionBar'} using robolectirc in android studio May 15 06:57:26 seems like it cannot find my HomeActivity May 15 06:57:53 meadhikari: robolectric doesnt support appcompat May 15 06:58:06 if you want just compile with it May 15 06:58:12 use snapshot version of 2.3 May 15 06:58:23 and mock methods which access actionbar May 15 06:59:40 gordon_, how would I "just compile with it"? May 15 07:00:46 using gradle > May 15 07:00:53 you need some plugin May 15 07:00:58 for robolectric May 15 07:01:07 someone reported that one is working May 15 07:01:18 I am using com.novoda.gradle:robolectric-plugin:0.0.1-SNAPSHOT May 15 07:01:42 https://github.com/novoda/robolectric-plugin May 15 07:01:45 this i guess May 15 07:01:48 ok same May 15 07:01:59 brb May 15 07:02:03 need to grab some food May 15 07:03:05 gordon_, thanks for your time May 15 07:13:51 Hi, I'm catching a broadcast intent for phone shutdown and sending an sms before shutting down. Now this works, but the phone shuts down before I could catch a SMS_INTENT broadcast intent. Should I do something like delay function so that I could get the intent or is there a better way to do it? May 15 07:22:52 back May 15 07:25:26 Hi gordon_ you have any sample project with robolectic working in android studio, if so please help May 15 07:27:07 Its been more than a day and I am still with java.lang.RuntimeException May 15 07:28:49 if you ask about gradle - i dont have any May 15 07:29:35 my gradle is made of clay May 15 07:30:05 or any tutorial will help May 15 07:31:01 there wont be tutorials for that May 15 07:34:58 gordon_, you mean appcompat would not work or it needs a workaround to work? May 15 07:37:40 it needs workaround May 15 07:37:45 like 2.3 snapshot May 15 07:37:51 and dont call appcompat code ;) May 15 07:37:56 in t ests May 15 07:40:05 you mean robolectric 2.3 right? May 15 07:46:05 yes May 15 07:47:01 can you please explain how do I "dont call appcompat code in tests"? May 15 07:57:24 meadhikari: getSupportActionBar(), bar.setTitle() May 15 07:57:27 for example May 15 07:58:38 I am doing no such thing in test just activity = Robolectric.buildActivity(MainActivity.class).create().start().resume().get(); May 15 08:00:45 lookgs good May 15 08:00:47 *looks May 15 08:03:32 damn I hate andorid build system May 15 08:03:42 it should be like import project, add dependencies and it works May 15 08:04:21 not excercise with some robotium project setups and funny stuff like exporting and scopes of each jar May 15 08:09:48 its in 0.5.8 hope it gets better May 15 08:10:25 I want to add animation to the fullstops in "Loading..." footerView of listview. like "Loading." ,"Loading..", "Loading...", "Loading." and so on...any idea how can I do that? May 15 08:12:39 meadhikari: I'm not using gradle or android studiio May 15 08:18:30 hello, is there a way to see what version SDK an app was compiled against? I'm trying to check if our app compiled with the version that is vulnerable to the webview RCE May 15 08:33:51 !paste May 15 08:35:13 ~paste May 15 08:36:51 I want to display a time picker dialog and followed the tutorial on d.android. http://pastie.org/private/orldj911sakdanmpzw5sjq However, in line 31 I fail to resolve getSupportFragmentManager. I am targeting version 16. Any ideas what I am doing wrong? May 15 08:43:55 I get getSupportFragmentManager is not defined, even though it is a standard method for Activity? May 15 08:44:23 I have base theme as Theme.AppCompat how do I change that to not use AppCompat but some other thing May 15 08:45:16 Theme.OtherTheme May 15 08:46:38 barq, what other is possible please help May 15 08:48:15 meadhikari: http://developer.android.com/guide/topics/ui/themes.html May 15 08:55:19 need help with analytics v4 (play services) with proguard May 15 08:56:17 http://pastebin.com/wzGWVLHE May 15 08:58:02 plz May 15 08:58:48 risk of being fired May 15 08:59:13 calabash-android doesnt work either May 15 09:00:08 do android apps accept invalid ssl certs by default? May 15 09:03:26 Has anyone used gradle to compile their dependencies directly from a git repository? if so can that person help me? May 15 09:19:41 Syzygy: what problem do you have ? May 15 09:19:42 Syzygy: I dont understand what you mean.. You cloned a git rep and want to compile it? May 15 09:19:51 should be same as if its not a git repo.. May 15 09:20:08 you can host maven repos on github but shouldnt May 15 09:20:16 danijoo, I would like gradle to handle my dependency management May 15 09:20:21 as in, even download them May 15 09:20:41 the way it does it with maven/gradle repos ? May 15 09:20:46 yes May 15 09:20:55 I dont think this is possible May 15 09:21:24 there is a plugin https://github.com/bat-cha/gradle-plugin-git-dependencies May 15 09:22:01 oh oka May 15 09:22:03 interessting.. May 15 09:22:04 but I have not gotten that to work yet May 15 09:22:23 have you done the ./gradlew initGitDependencies May 15 09:22:23 I'm stuck with the following gradle error "Error:Cause: com.google.common.io.Closeables.closeQuietly(Ljava/io/Closeable;)V" May 15 09:22:25 ? May 15 09:22:47 seems like you have to run that everytime May 15 09:22:48 this is what we need from gradle... May 15 09:23:03 not dependencies checksums May 15 09:23:12 not increasing version numbering May 15 09:23:21 but downloading stuff from the internet ;) May 15 09:23:25 : D May 15 09:23:49 How can I get access to a TextView that is located in a Fragment? I tried (TextView) getView().findViewById(R.id.mytextview), but get a NullPointerException. May 15 09:24:09 barq: let me guess: you tr that in onCreate or onCreateView? May 15 09:24:13 try* May 15 09:24:43 anyone used calabash for android before ? May 15 09:25:07 In onTimeSet() from TimePickerDialog. May 15 09:25:40 getView() only returns a view if the fragment is fully initialized May 15 09:25:55 not at initialisation (before onCreateView returns it) May 15 09:26:10 so you cant use it before everthing is set up May 15 09:26:38 Isn't it fully initialised already? I click a button in the fragment in order to display the dialog. May 15 09:26:49 Then want to change the text of a TextView on return. May 15 09:26:56 mh then it should.. May 15 09:27:26 show the code please May 15 09:28:13 danijoo, anyway I'm kind of stuck with including the library. supposedly it works with just apply from: 'https://raw.github.com/bat-cha/gradle-plugin-git-dependencies/0.2/git-dependencies.gradle' May 15 09:28:44 'not found' May 15 09:29:25 try without the ' at the end May 15 09:29:32 oh :D May 15 09:29:32 http://pastie.org/private/svn1wz0ttymapmyuana#14 Line 92 causes the NullPointerException. May 15 09:30:26 try MainActivity.this.findViewById May 15 09:31:13 No enclosing instance available in scope. May 15 09:31:21 Hallo!! :))) May 15 09:32:31 you are calling getView() on the timepicker itself, so it returns the view of the timepicker, but you want to access a view from the fragment or activity, not the picker May 15 09:32:42 Makes sense. May 15 09:33:05 do you want to set it in PlaceholderFragment or activity? May 15 09:33:16 danijoo, http://pastebin.com/66NF6v9s this is my complete buildscript currently. May 15 09:33:54 and it fails with "Error:Cause: com.google.common.io.Closeables.closeQuietly(Ljava/io/Closeable;)V" May 15 09:33:57 Syzygy: sorry bu i have no experience with this. Just found it interessting that this is possible. My own gradle script is just a bunch of copy & pasted lines May 15 09:35:01 The TextView is within the fragment. May 15 09:35:22 ok barq. try this May 15 09:35:28 but what else can we do? May 15 09:35:51 we wat dependcy in gradle from a github repo but non maven May 15 09:35:57 getFragmentManager().beginTransaction() May 15 09:35:57 .add(R.id.container, new PlaceholderFragment(), „this_is_a_tag“).commit(); May 15 09:36:11 at line 29/30 to add a tag to your fragment May 15 09:36:53 then at line 92 you can get that fragment and its view with with getFragmentManager().findFragmentByTag("this_is_a_tag").getView() May 15 09:36:53 AndroidNoob135: install it locally ? May 15 09:36:59 or make your own nexus server May 15 09:39:30 barq: this is the dirty way, the better way would be to use CallbackInterfaces but that requires a lot more of code May 15 09:39:34 Still get a nullpointerexception May 15 09:39:40 stacktrace? May 15 09:40:38 maybe its because you are mixing fragment managers.. thats bad May 15 09:40:42 really bad May 15 09:40:51 line 29: you use the FragmentManager May 15 09:41:01 line 36: you use supportfragmentmanager May 15 09:41:23 05-15 11:21:39.964: E/AndroidRuntime(5940): FATAL EXCEPTION: main May 15 09:41:23 05-15 11:21:39.964: E/AndroidRuntime(5940): java.lang.NullPointerException May 15 09:41:23 05-15 11:21:39.964: E/AndroidRuntime(5940): at com.example.alarm.MainActivity$TimePickerFragment.onTimeSet(MainActivity.java:92) May 15 09:41:56 replace every getFragmentManager with getSupportFragmentManager May 15 09:42:57 Can't change it in onTimeSet though May 15 09:43:23 And can't set tag in 29 either with the support version. May 15 09:43:36 I'm not sure the difference between the two managers. May 15 09:43:49 But I guess you need to use the same to get and set the tag. May 15 09:43:58 when using support lib use supportfragmentmangeger May 15 09:44:06 *manager May 15 09:44:25 Fragments are supported since api 11 (?), if you want to use them below, you have to use supportfragmentmanager May 15 09:44:35 I only used v16 May 15 09:44:44 use* May 15 09:44:58 but your user might not. :) May 15 09:45:04 so why do you use supportfragment ? May 15 09:45:15 what's you minSdk May 15 09:45:25 min=max=16 May 15 09:45:37 why max 16 ? May 15 09:45:38 i have a listview, with 8 items, as soon as one of these items is visible, i fire up a network request to fetch more data, which i then place below that item. So the list is dynamically added to. I notice that during this process, the scrollbar becomes erratic, when i try to move it. Is there anything i should be mindful about, in this case? May 15 09:45:39 :D May 15 09:46:07 that makes no sense but well.. he is learning :) May 15 09:46:16 Because I will exclusively be deploying on v16 devices. May 15 09:46:30 So no need for backwards compatibility. May 15 09:47:11 but what about upward compatibility? May 15 09:47:23 new update for a api16 phone and he cant use your app? May 15 09:48:31 The base system is 4.2.2. May 15 09:49:17 For the moment I just want to get used to the new features of that version since I last developed for 2.3.4. Therefore I chose v16 May 15 09:49:23 osxorgate: May 15 09:50:18 barq: anyways you dont neew to use supportfragments if you dont develop for old devices May 15 09:50:26 ok May 15 09:50:42 But FragmentActivity as opposed to Activity? May 15 09:51:49 you can change all FragmentActivities to normal Activites May 15 09:51:59 and delete v4 support package May 15 09:52:11 fix your imports May 15 09:52:13 etc May 15 09:52:30 then the tags should work May 15 10:01:11 Hi. I am using master detail template. In singlepane/phone mode, when I click the back button, the previous list is restored but when I click the Up button. The listview is again filled up by async and shows up. I am right now using: May 15 10:01:16 NavUtils.navigateUpTo(this, new Intent(this, WebsiteListActivity.class)); May 15 10:01:39 which FLAGS should I add so that list is not refreshed? May 15 10:04:41 how can I change gtk theme in eclipse (adt)? May 15 10:12:07 Is anyone using googles repo git extension together with source tree? May 15 10:24:41 I'm getting a warning about ClassLoader.LoadClass when I try to run a HTTP request and the request never completes, but doesn't error. What do? I'm just trying to do a GET, and this worked five minutes ago. Haven't even edited any code since then... May 15 10:33:45 no code, no stacktrace .. May 15 10:37:03 I thought this was funny (because its true :P): https://vine.co/v/MgWLMmmwUQQ May 15 10:45:29 danijoo: thats because i dont get a stqcktrace. the program just continues. no errors, exceptions or indications that something went wrong. May 15 10:46:25 just a warning about something i havent modified since i ran it and it worked. May 15 10:49:39 and how do you expect anyone to help you without any information on your code or information? May 15 10:51:26 Good question. I had to rush away from my PC and I was hoping someone had experienced thos before. Ill post any info I can ehen I get back. May 15 11:11:48 Hi, is play.google.com down or is it just me ? May 15 11:12:11 Unknown0BC: it's just you, that is down May 15 11:12:24 no seriously, play.google.com is working here May 15 11:12:36 Now I get a classCastException, cannot cast to TextView in line 92.. May 15 11:12:41 weird, May 15 11:13:14 I get not ping response from play.google.com but I do from google.com May 15 11:13:28 their ip's seems to indicate they are on the same network. May 15 11:13:35 Yet I can only access the one. May 15 11:14:03 Does Android provide a card drawable, like the ones on Google Now or Google Play? May 15 11:15:18 Something is wrong with the internet over here :\ May 15 11:15:36 Oh there it loads now. Great :D May 15 11:19:06 It so weird that people actually installed my app :) May 15 11:19:24 Not that its bad though... ( the app ) May 15 11:28:43 i want to pass an object from one activity to another, do i use parceable or intent.putExtra("MyClass", obj); ? May 15 11:28:53 not sure what the difference is May 15 11:30:13 parcelable May 15 11:30:30 putExtra works only if your object implements parcelable or serializeable May 15 11:34:31 Ok. I basically have Chart activity and inputData activity, and an object /class ChartData which contains strings, so I will pass this same object back and forth between the activities and use it to assign data to each activity's relatiive fields as necesssary May 15 11:36:10 do i need to declare namespace prefixes with the package name of the application? May 15 11:36:32 i'm changing the application package while building with ant meaning the xml would be invalid -_- May 15 12:09:22 Hi all, I have a custom view (extends View) and want to use it inside my listview adapter (extends baseadapter). The custom view draws some circles and lines. My question: what's the best way to use my custom view inside my adapter? Currently I'm using a Viewholder for recycling views May 15 12:26:36 Has someone worked more intensively with the MediaPlayer? May 15 12:26:49 I wonder whether it makes sense to create multiple services for each EventListener May 15 12:27:14 onPrepared, onError, etc., because it looks like this from the examples http://developer.android.com/guide/topics/media/mediaplayer.html#asyncerror May 15 12:42:07 how to properly loop over a listview's visible items? I want to get the position in the adapter and the View corresponding to the row May 15 12:42:35 Is EndlessListAdapters replaced by some other UI patterns? May 15 12:48:57 Hi guys. Since I'm becoming quite tired. I begin to doubt about my code. When I ask the user to enable bluetooth with May 15 12:48:57 if (!mBluetoothAdapter.isEnabled()) {startActivityForResult(new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE), Utils.REQUEST_ENABLE_BT); } May 15 12:48:57 does the code continue after this line while the dialog is displayed? Or is it modal? May 15 12:51:44 When I'll get the results of this dialog (actually according to what I read it is an activity with a fragment theme) will the code of the activity (which contains the above line) continue in onActivityResult() or will my activity be restarted? May 15 13:06:14 JakeWharton: are you still there? May 15 13:07:23 I'm trying to implement library management via gradle into our app, we were was already using apaches commons-lang3 v3.3.0 as a jar, but now I replaced it with the version from maven. the problem is now my :dexDebug won't execute without an error. May 15 13:07:57 unexpected top-level exception: java.lang.illegalArugmentException: method ID not in [0, 0xffff] 65536 May 15 13:09:00 as far as I understand the dex file can only have 0xffff lines, but thanks to the "new" library those lines are exceeded... but I exchanged it for the same version of the library, so I don't understand why that would be the case. May 15 13:15:18 I've got a EditText with an onclicklistener, when I click on it the first time nothing happens, when I click on it again it works? Someone who could help me? May 15 13:18:16 Click66: can you paste the code? May 15 13:37:10 How can it be that when I switch a library from a .jar file to a maven repository (but same version) the method count suddenly exceeds 65536 May 15 13:44:15 fragments = what the heck. can anyone recommend a comprehensive, yet somewhat layman, tutorial for setting up buttons to load new fragments? May 15 13:47:16 Jesperhead, look on FragmentTransactions May 15 13:47:33 I'm trying to do some unit testing with robolectric + gradle, and I have failing tests, but no description as to why. All I get is that an exception was thrown. May 15 13:47:54 Jesperhead: thsi is pretty comprehensive http://developer.android.com/guide/components/fragments.html May 15 13:47:57 Is there a better way of formatting test output to give yo umore information? May 15 13:48:08 pthreat: yet missing on the layman :) May 15 13:48:21 thank you autrilla, maybe it will help May 15 13:48:35 uh ... ok ? I just came in May 15 13:52:39 does anyone here test? May 15 13:52:43 nope. May 15 13:53:08 straight to QA without testing =) May 15 13:53:32 how do you sleep at night? May 15 13:56:32 shekibobo: Try attaching the debugger? May 15 13:56:47 (in regard to determining the root cause of your problem, and to sleeping at night) May 15 13:57:48 Robolectric does not support API level 19, sorry! May 15 13:57:51 bah May 15 14:02:50 :( May 15 14:02:58 submit your patches to JakeWharton stat May 15 14:06:23 shekibobo, (we have several dedicated testers) May 15 14:10:57 hey lov May 15 14:11:04 loffffffffffffffffffffffffffffffffff May 15 14:14:05 frankdoyle: could you help me out http://pastebin.com/raw.php?i=cVSYaKFC I'm getting "Stream closed" even though my stream is open? ... May 15 14:15:50 I've looked at DevBytes' ListView cell dragging, and they use long item click listeners. How could I only drag when the drag handle for each item is pressed? May 15 14:16:20 pthreat: I generally don't do http requests by hand, even for file uploads. look into a library called retrofit May 15 14:16:43 ok :/ May 15 14:16:52 I have a for loop and want to create a "sleep" for one second after every step in the for loop, what should I use for this? May 15 14:17:48 pthreat: where are you getting the exception? it may be that the other end is closing it, it may be complaining that you're closing it then doing other stuf May 15 14:18:05 frankdoyle: I'm catting apache logs on the other end May 15 14:18:11 I never see the request coming, that is weird ... May 15 14:19:49 that would do it. id definitely suggest looking into a 3rd party library, unless you're doing it as an intellectual exercise, there's no reason to redo the work others have already done May 15 14:22:19 If there is an event in my service, how can I use this event to manipulate my model? It's not like with AsyncTask where I pass a constructor May 15 14:23:34 platzhirsch: pass your model to the service May 15 14:23:41 platzhirsch: can you elaborate? what model? May 15 14:23:43 Kevel: like how? May 15 14:23:58 frankdoyle: for instance a list of strings which is used with an adapter to be displayed in the activity May 15 14:24:18 I mean with startService(new Intent(this, MyService.class)) I don't see any way May 15 14:24:19 platzhirsch: use a localbroadcast from your service to your activity May 15 14:24:36 neither do I get back a reference to the service object, nor can I make use of a consructor May 15 14:24:38 or, if you want to send information to the service, add it to that intent May 15 14:24:40 platzhirsch: u can make your model parcelable May 15 14:24:52 and then put it into the Intent? May 15 14:24:59 really seems awkward May 15 14:25:10 platzhirsch: is this an intentservice? May 15 14:25:12 I dont really get what you want to do May 15 14:25:33 Your service returns strings to your adapter? May 15 14:25:58 My service is used to start my media player May 15 14:26:04 and I want to log events to a list view May 15 14:26:24 hence I want to pass this list of strings (log messages) [which is hooked to a list adapter] to my service May 15 14:27:05 You can pass an array of strings bundled in the intent given that its an intentservice May 15 14:27:10 platzhirsch: that's probably not the best way to go about that. you shouldn't share the list, you should have your service send a list to your activity to display May 15 14:27:44 frankdoyle: or more like sending strings? for each log message? May 15 14:28:04 platzhirsch: yeah. in either case, you're sending information from the service to the activity May 15 14:28:30 Maybe I could just use Otto to tell the ListView when an item drag handle has been long pressed May 15 14:28:35 I am trying to integrate an ActionBar into my MainActivity. Can't I simply extend ActionBarActivity instead of Activity? May 15 14:28:53 For some reason ActionBarActivity isn't even recognised May 15 14:29:03 barq: target version? May 15 14:29:05 or min version? May 15 14:29:07 barq: do you have the support libraries setup? May 15 14:29:23 you'll need actionbarcompat imported properly May 15 14:29:25 min=max=16 May 15 14:29:35 barq: nevermind, it'll show up with just Activity May 15 14:29:48 frankdoyle: and how would I send data to the activity? Also with intents? I only used intents to start activities so far May 15 14:30:28 platzhirsch: yeah, depending on how you do it, look into localbroadcasts or otto, either will do the job. May 15 14:30:39 thanks :) May 15 14:30:44 platzhirsch: is this an intentservice or a regular service? May 15 14:30:57 But I still need to use AppCompat? May 15 14:31:00 platzhirsch: you might just be able to do bindService, and it should let you interact with it a bit easier May 15 14:31:14 barq: no. appcompat is for versions below honeycomb May 15 14:31:28 16+ will have the actionbar by default May 15 14:31:45 if my app will NEVER use a multipane UI, how will fragments benefit me? May 15 14:31:48 frankdoyle: currently it is only a Service, but maybe IntentService would be propre May 15 14:32:35 I doubt that is a good practice though.. does anyone have experience with drag&drop listviews? May 15 14:32:44 Jesperhead: if you ever have to restructure your app, say adding a sliding drawer or putting things together in tabs, it'll be a whole lot easier May 15 14:33:32 platzhirsch: look into intentservices some, they may be what you need, but im guessing not May 15 14:33:41 ok sounds good, but if I know 100% that my app will never use those, just a simple point/click/back button interface, there's no real point is there? May 15 14:34:54 not really. fragments are about modularity. if that's overkill, then you probably don't need them May 15 14:35:14 thanks for your input May 15 14:47:46 hello May 15 14:47:57 how I make GA4 work, regarding install source? May 15 14:48:07 I followed the manual exactly, but it still don't work May 15 14:48:18 (everything else DO work, however) May 15 14:50:18 Jesperhead if you know 100 percent that your app will be a simple point, click, back and you don't currently know how to use fragments then I'd say just use activities. I will say this though, loading a fragment is definitely quicker than launching a new activity. So you may consider, at some point, learning fragments for that. They aren't too bad if you aren't planning any multi-pane stuff. May 15 14:52:28 mattblang: Yeah time is a factor with my project which is why im cutting whatever corners I currently can. I WANT to use fragments, and use them properly, I just currently cant May 15 14:53:11 Jesperhead yeah, if time is a factor don't. they do have a decent learning curve. the app I am currently on went a few version releases, the first + a coulpe more, before we started doing fragments May 15 14:53:32 I'm trying to reference this library with gradle(which supports maven): http://search.maven.org/#search|ga|1|com.viewpagerindicator May 15 14:54:09 I'm using compile 'com.viewpagerindicator:library:2.4.1' , however this does not work. it only works if i use a different repository than mavenCentral() May 15 14:54:19 why "document.evulate(...)" not work on stock android browser? May 15 14:54:21 is there any way I can get it from mavenCentral directly? May 15 14:54:47 Syzygy: its not currently in maven central May 15 14:54:51 so no, you cant May 15 14:55:10 (had same problem few days back) May 15 14:55:42 it looks available on that link... but ok... May 15 14:55:53 yes i know May 15 14:55:59 ;( May 15 14:56:07 Syzygy, Kevel it would need to say jar or aar in the download probably? May 15 14:56:09 i was foncused also :( May 15 14:56:30 its the @aar thats required May 15 14:56:34 mattblang, it works fine from the other repository. May 15 14:56:35 afaik May 15 14:56:41 Syzygy, Kevel only if it involves resources May 15 14:56:42 without aar May 15 14:56:57 Kevel I think... otherwise it can just be a jar I believe May 15 14:57:40 well if you guys come to a solution, let me know :D May 15 14:58:27 Syzygy what is the other repository May 15 14:58:42 http://dl.bintray.com/populov/maven May 15 15:00:21 Is there an easy way to make the background image of an Activity semitransparent, such that it is easier to read text on top of it? May 15 15:00:25 ViewPagerIndicator isn't compatible with Gradle May 15 15:00:58 JakeWharton: then howcome it works from a different maven place? May 15 15:01:19 Syzygy, Kevel yeah, if you dig into that repo you will find the jar and aar, but according to the maven central repo there isn't a jar or aar uploaded. May 15 15:01:25 because I didn't put it there, someone else did May 15 15:01:28 JakeWharton, is it fine to use Otto to tell my ListView an item drag handle has been long pressed? For drag&drop reordering May 15 15:02:25 JakeWharton, "not compatible" and "I didn't make it for that" are two different things :P May 15 15:03:09 the official version that's in Maven central will not work with Gradle May 15 15:03:34 there are a few uploads to central and other places under different coordinates that may work May 15 15:04:06 ok, guess the other version was modified. could you consider merging those changes back into your original so we gradle users can stick to the central repository? May 15 15:04:34 no. the project is no longer being maintained May 15 15:04:44 barq: you can set the alpha level of your view objects in xml May 15 15:05:03 fair enough. May 15 15:05:04 barq: android:alpha=0.5 or something like that May 15 15:06:51 Does anyone have experience with drag&drop listviews? May 15 15:10:18 Hmm, that makes everything transparent. May 15 15:12:47 does anyone know if loopj 1.4.4 in onSuccess and onFailure if the byte[] responseBody is already decompressed? May 15 15:12:54 if it was sent using gzip> May 15 15:12:57 ?* May 15 15:14:03 anyone knows why painting a solid color rectangle with canvas.drawRect() in a custom widget onDraw() does not draw the rectangle, unless something is drawn in super.onDraw() first with a transparent background ? May 15 15:15:20 Hi there. I'm following this tutorial [1] and I'm stuck on this error [2]. Any help will be welcomed. Thanks. [1] https://developer.android.com/training/basics/actionbar/adding-buttons.html [2] http://paste.debian.net/99749/ May 15 15:17:14 barq: hmm, looks like you can use a paint object to get just the bitmap itself transparent: http://stackoverflow.com/questions/5118894/set-alpha-of-bitmap-image May 15 15:18:12 Is there any open-source app that has ListView cell dragging? May 15 15:21:55 hey guys, I'm trying to make a slick animation where a view (which takes up most of the screen) rotates to reveal something on the other side. Behold my implementation: http://pastebin.com/gUgu9Wjx May 15 15:22:12 however, as it gets about 80% of the way to being perpendicular to the screen, the view disappears. May 15 15:22:36 my "end action" there is to set up the rear side of the view and have it rotate the other 90 degrees, approximately 20% of the way into that second animation, the view reappears. May 15 15:22:39 anybody know what's going on? May 15 15:31:07 anyone know how to style the SearchView in action bar? May 15 15:31:20 when using the NDK is the C code running on the Dalvik vm? May 15 15:34:47 tyl: where else? May 15 15:36:01 danijoo on physical machine? May 15 15:37:07 the C code is not run in Dalvik I don't think, that's why you get the performance gain and you have to compile it for different architectures May 15 15:37:13 The Android NDK is a companion tool to the Android SDK that lets you build performance-critical portions of your apps in native code. It provides headers and libraries that allow you to build activities, handle user input, use hardware sensors, access application resources, and more, when programming in C or C++. If you write native code, your applications are still packaged into an .apk file and they still run inside o May 15 15:37:13 f a virtual machine on the device. The fundamental Android application model does not change. May 15 15:38:05 danijoo ahh ok thanks i was trying to find an answer to that May 15 15:38:34 gotcha May 15 15:39:06 Im not sure but sounds like the app runs in dalvik vm while the part coded in C is passed directly to the processor (but memory still in dalvik) May 15 15:39:15 danijoo so that means that all the ndk does is convert c and C++ to .dex? May 15 15:39:43 i mean code readable to the Dalvikvm? May 15 15:40:13 if you have java code, it is run in a vm on a virtual processor May 15 15:40:26 native C is run directly on the hardware processor May 15 15:40:32 thats why its a bit faster May 15 15:41:04 so i think the NDK coded part of your app somehow "breaks out" of the vm May 15 15:41:11 so its actually run on the machine not the virtual machine May 15 15:41:34 yeah but you are still limited to the limitations android sets your app May 15 15:41:45 like the 32mb memory and stuff May 15 15:42:02 or whatever it is for newer devices May 15 15:42:06 danijoo do you have any like link that says the c is actually run on the physical processor? May 15 15:42:15 http://developer.android.com/tools/sdk/ndk/index.html#choosing May 15 15:42:16 like a website that says it May 15 15:42:22 at least that sounds like it May 15 15:42:31 danijoo yeah but thats not very conclusive May 15 15:42:38 Can I add swipes to an activity to interact with content within a webview? May 15 15:42:42 Typical good candidates for the NDK are CPU-intensive workloads such as game engines, signal processing, physics simulation, and so on. May 15 15:43:02 this would make no sense if all that the NDK does is refractor your code to .dex May 15 15:43:28 yeah but on top they kinda contridict themselves "Notably, using native code on Android generally does not result in a noticable performance improvement, but it always increases your app complexity. " May 15 15:43:43 thats why i wasn't sure if it was run on the physical machine itself May 15 15:44:09 yeah thats because "usually" cpu isnt the bottleneck and java is only minimal slower then c++ these days May 15 15:44:25 but there are usecases (like the mentioned) where it begins to make sense May 15 15:44:57 it doenst matter if you run the concentation of 10 strings on vm or not May 15 15:45:14 but It may if you want to calculate the postion of 100k objects in a 3 dimensional room May 15 15:46:18 Jesperhead: what you mean with "swipe to interact with webview"? May 15 15:46:34 eh, vague i know, trying to phrase it better May 15 15:50:23 Jesperhead: are you talking about Viewpager to switch between fragments by swiping left/right? May 15 15:50:48 n. the layout for the activity is actually just formatted javascript on a webpage May 15 15:50:54 (not my idea) May 15 15:51:39 but on a variant for another popular mobile os, the app user can swipe within the webview, loading different information (yet still hosted on the webpage) May 15 15:52:04 no experience with this, sorry May 15 15:52:10 no worries, thank you anyways. May 15 15:52:31 "another popular mobile os" - dont dare to say the i-word! :D May 15 15:52:58 Is there any open-source app that has ListView cell dragging? May 15 15:53:06 :) hehe. Im android all the way, but these folks want their "i-word" app ported almost pixel for pixel :-\ May 15 15:54:14 i-feel your pain, Jesperhead May 15 15:54:46 java.lang.ArrayIndexOutOfBoundsException: length=1; index=1 May 15 15:54:50 why? May 15 15:54:55 Hey, I'm trying to create a date widget for practice, I'm not sure how to handle the update timing, I basicly need to update the display on midnight.... can I time that somehow? May 15 15:55:13 MalekAlrwily: when length=1 you dont have an element at position 0 May 15 15:55:21 because it begins at 0 ;) May 15 15:55:23 MalekAlrwily: index's start at - May 15 15:55:25 0 May 15 15:56:14 i have use array[array.length] = .....; May 15 15:56:22 thats the point May 15 15:56:32 last element of an array is array[array.length-1] May 15 15:56:45 weird at the start, I know :) May 15 15:57:10 jellybee: use an alarmmanager May 15 15:57:41 danijoo: thanks May 15 15:58:23 danijoo: thanks! in case i want to add a clock an update every minute.. AlarmManager is the way to go as well? May 15 15:58:47 frankdoyle: thanks again, LocalBroadcastManager works like a charm May 15 15:59:01 nice May 15 16:00:00 hello guys May 15 16:00:04 jellybee: If you want that many events, a runnable task would be better May 15 16:00:14 i've some problem with process May 15 16:00:15 http://pastebin.com/htWr7Q6p May 15 16:00:35 i obtain Fatal signal 6 (SIGABRT) at 0x0000029e (code=0) May 15 16:00:47 danijoo: thanks May 15 16:00:50 when i try to exit from app...it crash May 15 16:01:03 Are there any good (current!) books for Android development if you are not exactly a beginner? May 15 16:01:37 platzhirsch, youtube May 15 16:01:41 platzhirsch, so many youtube videos May 15 16:02:00 sigmabeta: I prefer books to put into my shelf, looks more awesome May 15 16:02:12 platzhirsch, to each his own :) May 15 16:03:23 books are pretty….but also heavy May 15 16:03:31 heavy awesome maybe May 15 16:03:33 everytime I move I hate all my books May 15 16:03:39 ah true May 15 16:04:03 I moved from Berlin to London, from a 35qm studio to a shared flat where I have a 8qm room, so no place for my books :( May 15 16:04:05 plus with ebooks etc I can carry nearly all my books with me all the time on my phone :) May 15 16:04:15 platzhirsch: books are nice, but only if the platform is stable. Books on Java? Fine. Books on android? probably behind by the time they're printed and in your hands. not to mention the fact that 3rd party libraries are a huge part of working with android May 15 16:04:36 frankdoyle: yeah that's the point, the best book I found is already partly outdated May 15 16:04:41 it's no use I guess May 15 16:05:03 sometimes there are good ebooks which are frequently updated by the authors May 15 16:05:06 your “book” is just going to have to be the internet. May 15 16:05:45 I just started learning android in january. that’s all I’ve been using. May 15 16:06:51 yeah and realistically like only the last 6mo-1yr of internet May 15 16:06:54 It's fine, the official documentation is really good May 15 16:06:54 otherwise you run into the same problem May 15 16:07:00 just not very vibrant May 15 16:07:25 the official documentation has errors sometimes May 15 16:07:32 and can sometimes be a bit confusing May 15 16:07:44 yea, and there are parts of it that aren’t completely up to date either May 15 16:07:48 it's good as a reference though, but for learning new concepts it's not great May 15 16:08:07 any online resources you found especially useful? May 15 16:08:29 other than stackoverflow? :p no one thing in particular May 15 16:08:54 though as a beginner I went through a coursera course on android. that was super helpful to kickstart things. but it sounds like you’re past that level. May 15 16:09:00 sure, StackOverflow is the default, but it leads often to trail & error May 15 16:09:06 * paralith nods May 15 16:09:53 I don’t know how much you’re going to be able to avoid trial and error though…imho May 15 16:12:21 Oh gosh, deobfuscating this is going to be a pain in the butt May 15 16:13:14 when yall dynamically create new fragments, do you use the factory newInstance way or just new? May 15 16:13:28 hey guys, so say you have two activities, A and B. A might be like a list of things that when clicked on, take you to a B for that particular thing May 15 16:13:59 mattblang, factory May 15 16:14:01 then, while you're looking at B, you get a notification, go to that notification and takes you to A May 15 16:14:18 mattblang: I use Fragment.instantiate May 15 16:14:41 autrilla, paralith okay. I guess there is a good reason for doing so. I hate all the boilerplate stuff with the arguments May 15 16:14:55 the defined back button function for A is to quit the app, but in my app right now when I push back button on A, it goes to the B i was previously looking at May 15 16:15:05 i want it not to do that, is it a manifest setting or something? May 15 16:15:11 Is there any open-source app that has ListView cell dragging? Or someone with experience with it here? May 15 16:15:23 mattblang: I have an activity with a bunch of different fragments, so that way I was able to write a single method that instantiated the proper fragment when necessary. May 15 16:17:17 sigmabeta: are you talking about the back button in the actionbar, or the one on the device? May 15 16:18:25 device May 15 16:19:10 practical upshot, pushing back button on activity A kills a service/network connection, so if it goes to B after doing that, everything goes to hell May 15 16:20:06 autrilla, , have you seen https://www.youtube.com/watch?v=_BZIvjMgH-Q May 15 16:20:17 sigmabeta, yes May 15 16:20:22 autrilla, good :) May 15 16:20:42 sigmabeta: looks like you got to override the onBackPressed() method in your activity. http://stackoverflow.com/questions/8094715/how-to-catch-event-with-hardware-back-button-on-android May 15 16:20:42 sigmabeta, I still wonder how to make it work with a drag handle/grip May 15 16:21:22 autrilla, i haven't implemented it myself and i dont remember how he does it in the video. but I imagine you could just have the onTouchEvent stuff happen on the handle instead of on the view itself? May 15 16:21:50 sigmabeta, it handles the onItemLongClickListener on the ListView itself May 15 16:22:10 autrilla, disregard anything further i say, i am spectacularly unhelpful May 15 16:23:10 paralith, yeah i can override the backbutton function, that's not a problem. still leaves me wondering what to do about where the app flow will go May 15 16:23:33 i.e. i'm basically talking about not calling finish() in onbackpressed(), right? because finish will take me back to activity B May 15 16:24:11 when what i want is for it to take me to the login screen (we'll call it activity X) May 15 16:25:06 sigmabeta: so I take it you’re not calling finish on activity B every time you go back to activity A? May 15 16:25:09 I’ve installed Android Studio but I feel like I’m missing somethig here. I have no command line `android` tool, I apparently have no device emulators, docs reference eclipse for things like AVD Manager. Is there some kind of “tool kit” I need apart from Android Studio? May 15 16:25:52 sigmabeta: my gut reaction would be to make B not an activity, but a fragment hosted by A. May 15 16:26:41 thus, when you finish A, B will be destroyed also for sure. May 15 16:26:45 paralith, i do call finish every time, but if the user clicks the notification while B is visible, can i still do that? May 15 16:27:54 still do what? May 15 16:28:08 cpruitt, on the platforms i've tried (windows + linux) AS comes bundled with the SDK, which is the same as it is with eclipse. If you already had eclipse, you might be able to point AS at your existing SDK May 15 16:28:24 paralith, can i still finish B if the way the user leaves it is by clicking a notification May 15 16:28:51 cpruitt: you shouldnt need the command line but it is in android studio. You create AVD http://developer.android.com/tools/help/avd-manager.html May 15 16:29:01 sigmabeta: I have not installed eclipse. This is my first stab at working with Android. (OS X) May 15 16:29:40 sigmabeta: sorry, I’m not sure =\ still learning a lot of this stuff myself. but I feel like there must be a way to do that. May 15 16:30:20 cpruitt, it is probably on your computer, but the command-line stuff might not be in your path? otherwise, like davidcorrado said, you don't need it in command line. are the icons at the top of android studio (far right end) not responding correctly? May 15 16:30:41 paralith, apology accepted. don't let it happen again May 15 16:31:08 sigmabeta: when you go back to A, you can try getting a reference to activity B, and if it’s successful, then you know B is still alive and so then you kill it from A. May 15 16:31:14 sigmabeta: :p May 15 16:31:30 Hi all ! May 15 16:31:30 sigmabeta: at least, that’s what I would try. May 15 16:31:35 paralith, how do you get a reference to another running activity? May 15 16:31:38 or i guess, a stopped one in this case May 15 16:31:56 is there a maven link for sherlockactionbar? May 15 16:32:16 sigmabeta: davidcorrado: Thanks, I’ll dig deeper through the icons (though I kind of like having my command line avail too, so I’ll look into the path issue later) May 15 16:32:43 cpruitt: command line is called terminal in android studio. That should help you May 15 16:34:40 davidcorrado: Yeah I’m referring to the OS X terminal. I’m in there all the time anyway, nice to know I have my tools set up, but it’s honestly not a big deal if the GUI works. May 15 16:36:18 sigmabeta: hmm. maybe have activity B send an intent or something to activity A in B’s onStop? cuz it sounds like in the normal flow of things, whenever you leave B you want B to finish, not just stop. so then whenever A is started it looks to see if B sent it a message that it’s been stopped, not finished. maybe? May 15 16:37:04 paralith, worth a shot May 15 16:37:08 cpruitt: what are you trying to do? May 15 16:37:35 sigmabeta: cuz calling finish() skips all the intermediate lifecycles and hits onDestroy() directly, right? May 15 16:37:54 I feel like I remember reading that in the docs... May 15 16:38:35 paralith: that is just wrong May 15 16:39:09 Im getting errocode 1 when trying to use SherlockActionBar through maven and gradle May 15 16:39:13 welp? JakeWharton May 15 16:39:26 thepoosh: Terminal is mostly a side conversation. I’m just trying android dev for the first time. I’m just trying to get set up & was asking about the absence of any virtual devices. Didn’t really understand that I had to create them myself. May 15 16:39:30 minSdkVersion="14" May 15 16:39:33 paralith: calling finish will still go through onPause and onStop May 15 16:39:34 no ActionBarSherlock needed May 15 16:39:35 thepoosh: oh, ok. I remembered wrong then. sigmabeta - my idea probably won’t work then May 15 16:40:17 sigmabeta: might have to have B send something to A in onDestroy(), and then if A hasn’t received that msg then it knows B never made it to onDestroy(). May 15 16:40:22 JakeWharton: what if i still want to use ActionBarSherlock? :( May 15 16:40:39 why do you need to catch onDestroy? May 15 16:40:41 paralith, that's kind of what i thought you meant May 15 16:40:41 there's a gradle sample here: https://github.com/JakeWharton/ActionBarSherlock-Gradle-Sample May 15 16:40:52 beyond that, i haven't touched ABS in a year May 15 16:40:55 sigmabeta: oh! well then let’s pretend that’s what I meant from the beginning :p May 15 16:41:33 Kevel: why not use the android support actionBar? May 15 16:41:37 thepoosh: sigmabeta is trying to figure out from an Activity A whether or not Activity B was finished or is just stopped. May 15 16:41:40 it's already in there May 15 16:41:54 he can check the stack to see if it's in there May 15 16:42:02 what's the difference? May 15 16:42:14 thepoosh, abs has a few additions May 15 16:42:19 sigmabeta: you can check the ActivityStack May 15 16:42:26 paralith, well that's one solution to my problem. my problem is "if user is in B, and launches A from a notification, the backbutton takes you back to B, I want it to quit the app" May 15 16:42:49 thepoosh, that sounds more like what i'm looking for. is there a way to modify the activity stack? May 15 16:43:02 yes, you can call finishActivity May 15 16:43:02 thepoosh: apparently its easier to style ABS than the others May 15 16:43:06 so ye May 15 16:43:09 :S May 15 16:43:12 it's exactly the same May 15 16:43:31 JakeWharton: just read the saddest thing ever May 15 16:43:32 So ive been lied to this whole time May 15 16:43:36 yes! May 15 16:43:58 well, looks like I’m not really ready yet to help other people with android, lol! back to studying for me. May 15 16:44:09 From a conceptional point of view: the MediaPlayer object does not emit an error event when the WiFi connection is lost, but maybe that's okay because it should be handled by a/the NetworkChangedReceiver ... separation of concerns May 15 16:44:12 paralith heh, me too :D May 15 16:44:20 the support library action bar and ActionBarSherlock are like twins. they're different enough that you can tell them apart but 99.9% of them are exactly the same May 15 16:44:21 paralith, sub-optimal help is still more help than no help May 15 16:44:27 except unlike twins, ABS was born two years earlier May 15 16:44:39 sigmabeta: thanks. I’m trying to at least contribute some before I start plying others with questions of my own. May 15 16:44:39 lol May 15 16:45:14 paralith, see, that immediately makes you better than me. i'm gleefully leeching May 15 16:45:19 haha May 15 16:47:12 Hi where can I see (and not read) what different default thems are in android. Read through the official guide and read the styles.xml and themes.xml but can I see what some particular themes look like? May 15 16:47:26 Hi there, on android developer studio, how I setup to output to intel mobile device?? Im to used to eclipse May 15 16:48:11 What do I do about this? Is it possible to catch it somewhere? The stack trace seems to have nothing to do with the app. java.lang.SecurityException: attempting to read gservices without permission: Neither user 10075 nor current process has com.google.android.providers.gsf.permission.READ_GSERVICES. May 15 16:49:29 Cyp_: https://developers.google.com/maps/documentation/android/start May 15 16:49:41 Not using Google maps. May 15 16:49:56 you still need this permission in your manifest May 15 16:49:58 Just the admob part of google-play-services_lib. May 15 16:50:04 com.google.android.providers.gsf.permission.READ_GSERVICES May 15 16:50:44 Anyone know what i would enter for device if im using the t989 hercules in this command? ./blbuild.sh May 15 16:50:58 Forgot to mention it works on all devices I know of, but got a crash report on some random device. May 15 16:51:00 Cyp_: https://developers.google.com/mobile-ads-sdk/docs/admob/fundamentals May 15 16:51:36 is there any way to automatically start my app on boot up before the home screen appear? May 15 16:51:36 Cyp_: could it be a rooted device/firewalled/emulator? May 15 16:52:01 Binbo: you should register a receiver on boot May 15 16:52:17 Best I could find is https://groups.google.com/forum/#!topic/google-admob-ads-sdk/sePctoDJbRg[101-125-false] (which I'm guessing is the issue), just not sure if there's a sensible solution. May 15 16:54:16 thepoosh: did you mean using broadcastreceiver and listen to RECEIVE_BOOT_COMPLETE? I have tried it. The app was automatically started but after the home screen appear. I would like to make it run before the home screen appear. If possible though =p May 15 16:55:48 I have a problem with this (very simple) code, what I would is to programmatically place some textview in a tablelayout where each column is of the same width ( http://pastebin.com/q5p0Fdrf ) May 15 16:57:47 I would obtain the same result as if I set android:width="0dp" android:weight="1" in XML layout.. programmatically it doesn't seem to work May 15 16:58:17 I should start a blog and post the problems I eventually solve / people solve for me. May 15 17:00:09 paralith, thepoosh, looks like the answer was to change my activity from SingleTop to SingleTask launchmode May 15 17:00:10 autrilla: i’ve come across several blogs like that. devs writing them both as notes for themselves and for other people to use if it helps. May 15 17:00:29 I'd do it mainly for other people May 15 17:00:42 Once I solve it I tend to remember the solution May 15 17:01:14 sigmabeta: ohhhhh cool. I had to do that for an activity that was launched from a url, otherwise my app was always showing up inside of the chrome app. May 15 17:01:25 autrilla: your memory is better than mine, then! May 15 17:03:23 paralith, good thing you went to the one-line solution instead of suggesting people be sending all manner of lunacy from activity to activity May 15 17:04:04 ^^\ May 15 17:05:14 I’m going to try and salvage my pride a little bit and say we both learned something today! May 15 17:05:22 lol May 15 17:06:24 paralith, indeed May 15 17:06:35 Oh great, I found this: https://github.com/bauerca/drag-sort-listview . Not currently maintained though :( May 15 17:07:26 Woo, there is a fork! May 15 17:16:28 To allow ListView item reordering, my objects should have a "position" field, right? And then, how can I show them in the order I want? May 15 17:17:17 autrilla, it's in your adapter iirc May 15 17:17:38 puckipedia, just do the magic in getItem(int position)? May 15 17:17:46 afaik, yep May 15 17:17:55 or add a method which sorts the internal data structure May 15 17:19:22 any idea how to send a message/intent from a BroadcastReceiver? May 15 17:19:32 I want to notify my activity from my NetworkChangedReceiver May 15 17:19:57 autrilla: Solve mine :P >Hi where can I see (and not read) what different default thems are in android. Read through the official guide and read the styles.xml and themes.xml but can I see what some particular themes look like? May 15 17:20:34 Your question doesn't make sense May 15 17:21:00 autrilla: I know but I am utterly confused what to use and what not May 15 17:21:06 I made a listselector May 15 17:21:20 it looks good on some device but ugly on others May 15 17:21:58 Thats why, I want to see what the "styles" look like, at least for list, buttons, text etc May 15 17:23:17 different screens have different color reproduction, not much to be done but look at it on the device May 15 17:24:10 Thats the problem. I only have a 2.3.5 phone. I need to go to a friend 30 mins away on Sundays to use his Galaxy Tab May 15 17:24:18 Thats the whole issue May 15 17:25:47 it would be nice if there was a visual dictionary to the android themes / attributes May 15 17:25:54 almost seems like it could be scripted May 15 17:25:55 guys i've add a certificate in systems certificate like says this http://forum.cyanogenmod.com/topic/82875-installing-cacert-certificates-on-android-as-system-credentials-without-lockscreen/ May 15 17:25:58 In the master-detail I added that arrow thing (with 9 patch) showing which item is selected. It looks good on emulator, not so good on real device May 15 17:26:18 but not work for me...i add a certificate but i don't see it in store certificates May 15 17:26:30 ExEcUtIvE this isn't android user support :) May 15 17:26:52 g00s is dev support..i do this by app May 15 17:26:59 I am downloading "HoloEverywhere". I hope using that would make some sense May 15 17:27:10 here the code May 15 17:27:26 WantToCode you can try your app on a bunch of different genymotion images May 15 17:27:37 they have all kinds of things like sony, etc May 15 17:27:42 http://pastebin.com/htWr7Q6p May 15 17:28:14 g00s: Thanks. Didnt know that. May 15 17:28:28 i do all useful command in tutorial by shell.. May 15 17:28:34 programmatically May 15 17:28:38 Would HoloEverwhere make it "normal" looking? May 15 17:29:01 i thought holoeverywhere wasn't recommended May 15 17:29:06 never used it myself May 15 17:29:25 I dont know, just googled and it was all over SO. May 15 17:29:42 ExEcUtIvE: This is a channel for application and firmware developers to discuss android applications and firmwares. It is NOT a channel for getting help with your apps, or with rooting. Strongly consider #android-root. May 15 17:31:26 basically, even though you're putting these commands into an application, it isn't really in our domain to help you, and you'll get WAY better help in -root, most likely. May 15 17:32:13 ok thanks lov.. May 15 17:32:15 Also, you haven't told us what actually happens when you run this, such as whether there's any relevant input from the terminal, etc :P May 15 17:32:26 g00s: There demo app looks nice. Atleast now I can see what would I get for different views. May 15 17:33:48 for a LinearLayout with a child TextView - if the LinearLayout is selected in a ListView, does the child TextView inherit that "selected" state? May 15 17:33:58 doesn't seem like it May 15 17:35:28 Napalm|afk i think the easiest way to design a semi-reusable nav drawer, is simply to have it initialize itself from a menu.xml file. and then when things are selected it can pass its hosting activity the menuItem just like onOptionsItemSelected May 15 17:36:00 ooh, there's android:duplicateParentState May 15 17:36:11 nothing as grand as what i was thinking about yesterday, but simple May 15 17:37:30 i have a list view and when i click on an item, i want to let a button pop up to the left of that entry. i have the view of the row (so i have the coordinates). how can i position a button next to this view? May 15 17:37:43 without destroying the rest of the layout etc. May 15 17:37:49 wtf... http://stackoverflow.com/questions/15767274/state-selected-is-not-working-although-state-pressed-works May 15 17:38:28 fancy42: many ways to do it. you could have an empty imageview and set that imageview's image in your onClick May 15 17:38:56 oh, you want a button May 15 17:39:18 in that case, you could add a button programmatically May 15 17:39:57 Hi all, I have a DateFormat object I'm using to create a string like HH:MM but it's coming out as HH:MM:SS:AM/PM and I'm not sure how to adjust for this. Should I just make a NumberFormat object instead and do it manually? May 15 17:40:12 Mango_Man, but how do i position the button? May 15 17:40:24 fancy42: set parameters on the button you're adding May 15 17:40:37 setX requires Api11 May 15 17:40:47 really? hmm May 15 17:40:48 how do I tell AndroidStudio + gradle + robolectric where my tests are? May 15 17:41:12 https://gist.github.com/anonymous/00e948e5011cec9a3564 May 15 17:42:15 Class not found: "com.shekibobo.photoapp.adapters.PhotoListAdapterTest" May 15 17:42:25 fancy42: seems like you still have a lot of setX methods though, i don't see any API restrictions May 15 17:43:25 Hi all, I'm in a situation where my app has to run on both a device with hardware keys as well as a device without hardware keys, is there a layout folder I can define that will be used when the hardware keys are available? May 15 17:43:46 Why do you have a difference? May 15 17:44:42 different drawable resources, the image was designed for without hardware keys and is getting stretched when the hardware keys are present May 15 17:44:56 what? May 15 17:45:25 it's like, 40dp of space? May 15 17:45:53 sort of, it's also an xhdpi vs xxhdpi difference May 15 17:46:03 snowinferno|work: you might have to get the screen dimensions, and based on the aspect ratio, change how the image displays itself May 15 17:46:06 Mango_Man, how do i have "a lot" of setX methods? :D May 15 17:46:13 or switch it out for something that works better at the given aspect ratio May 15 17:46:54 g00s: so using HoloEverywhere is recommended or not. What to do!? May 15 17:47:24 WantToCode i dont think its recommended. let the GB people see stuff in GB theme :) May 15 17:47:47 but what about consistency. I have min API 10 May 15 17:47:48 or minsdk=15 May 15 17:48:04 fancy42: anyway it seems pretty simple. you could even try including a Button in your initial layout, setting its initial visibility to hidden, and make it visible when you need to May 15 17:48:45 yes but how do i align it has the y position of the list view item May 15 17:54:39 JakeWharton, will there be any problems if a not-running fragment has a subscription to an event that could be fired? May 15 17:54:54 no May 15 17:55:13 unless you do something as a reaction to the event that a fragment doesn't like May 15 17:56:10 JakeWharton, I'll be sending click events from my adapter to the fragment, to notify the Listview May 15 17:56:23 Otto is just a decoupled method call May 15 17:56:33 there's nothing magical about it May 15 18:00:32 I am trying to open the Contacts-Database directly using getContentResolver().openInputStream(ContactsContract.Contacts.CONTENT_URI); But it gives me a FileNotFoundException, eventhough it is stated, that it is possible to access content-scheme URIs using openInputStream... What am I doing wrong? May 15 18:01:09 (just trying to somehow backup the whole contacts database using READ_CONTACTS permission) May 15 18:04:31 Alright, I added a "position" field to my listview items, how would you handle the position of new items? May 15 18:05:48 Someone here with good retrofit experience :)? May 15 18:05:52 i am May 15 18:06:18 ArcaneWater: JakeWharton wrote it May 15 18:06:31 @drawable/textfield_searchview May 15 18:06:38 setting this in my theme but its not being applied May 15 18:06:40 any ideas? May 15 18:09:16 I am having some weird issue that I am trying to download a file from default browser a zip file, it always giving me a unsuccessfull in Android 4.1.1 and working perfectly on Android 4.4 May 15 18:09:49 can anyone help me why it is behaving strange here May 15 18:10:17 does SimpleDateFormat give me the option to change 02:10 to 2:10? May 15 18:11:12 tylertylertyler: yes May 15 18:11:52 can you give me an example? looking through it I don't see anything really. I'm using "hh:mm" May 15 18:11:57 JakeWharton: what does the * mean when naming a resource item? May 15 18:12:12 Kevel: not sure what you're referring to May 15 18:12:14 searchview was not using my override until i appended * May 15 18:12:21 @drawable/textfield_searchview May 15 18:12:31 that didnt work, but "*searchViewTextField" worked May 15 18:12:41 Im just wondering what the effect of * has on the item? May 15 18:12:53 i've never seen that May 15 18:13:07 oh, well i guess you've learnt something new today May 15 18:13:09 haha May 15 18:14:30 well i'd need to know what exactly it did before I say that i've learned it May 15 18:15:42 I was trying to style the SearchView for the default action bar May 15 18:16:01 applying drawable to item override for searchViewTextField did nothing in my theme May 15 18:16:19 then I added a * in front of searchViewTextField in the item name May 15 18:16:22 and it worked. May 15 18:16:49 I think it has something to do with some resource inheritance or something May 15 18:17:34 sorry, that was *android:searchViewTextField May 15 18:18:41 that's not a public attribute May 15 18:19:23 i guess because it becomes some kind of wildcard it defers matching until runtime which thus allows you to set non-public attributes May 15 18:19:48 i can only assume this is somewhat not recommended? May 15 18:20:09 it could possibly break from version to version May 15 18:38:38 Hey guys, is it possible somehow to get notified when someone downloads your app from the playstore? like those beep from the movies, it would be awesome May 15 18:39:05 if your app uses a login system of any sort you could know when a new user logs in May 15 18:39:33 jonc, don't have that :( May 15 18:39:39 Hey guys May 15 18:40:01 meadhikari, I don't think google play tells you in realtime, you can just get like daily reports May 15 18:40:57 hi May 15 18:41:11 profiling my app show a lot of overhead in $access method of a private static inner class. May 15 18:41:12 When doing your own App Icon - I am given the options folder-wise in my app project to have mdpi, hdpi, ldpi etc. But I was just wondering - Ive got an icon that is approximately 36x36 pixels, Would it be possible to simple add this as Icon or can I somehow upload it into the app so that eclipse automatically designates it as my chosen icon? If I remember correctly there should be a way May 15 18:41:12 to do this, right? May 15 18:41:19 I thought they were free (normal member access) ?! May 15 18:41:57 Oh gosh, draggable ListViews are impossible. I have to rethink my data model May 15 18:42:26 Trekka12: set it in your manifest as your application icon May 15 18:42:46 jonc, where could i go to activate this daily email any idea, please help May 15 18:45:42 autrilla: draggable = reorderable? or draggable = to another widget May 15 18:45:53 dragorn, reorderable May 15 18:46:11 bah, fragment API is a awful crappy mess May 15 18:46:39 autrilla: if you store in a List<> based collection you should be able to reorder and do notifydatasetchanged. Usually you get a little handle on them. But that's the data side; I don't know offhand how to write the UI to do that, I know I've seen it done tho May 15 18:47:21 First attempt at running an android app in the emulator (from Android Studio on OS X). I just get a big black screen with “Android” written across it. Is that normal? Am I missing a step to run the app? May 15 18:47:42 dragorn, I'm storing data on a SQLite database, via ORMLite, but I'm using a HashMap May 15 18:47:56 So... it has no order May 15 18:48:17 cpruitt: Pretty sure that's *all* the emulator does (in my experience) May 15 18:48:34 cpruitt: emulator is super slow. You might want to use genymotion May 15 18:48:38 cpruitt: Genymotion seems pretty popular May 15 18:49:16 And storing a position field for all items is not something I particularly like May 15 18:49:25 I just saw a video from the google team that explained how to get the emulator running fast. May 15 18:49:29 If the example provided with the lib was decent... May 15 18:49:42 From what I gathered, step 1 was rewrite the emulator May 15 18:49:54 shekibobo, you got the likf for that? please share May 15 18:49:57 autrilla: you'd have to flatten it into an ordered list or broker an iterator to it in a predictable way, yeah May 15 18:50:11 s/likf/link May 15 18:50:18 https://code.google.com/p/android-test-kit/ May 15 18:50:20 Really? The built in tools are THAT unstable? May 15 18:50:36 piezoid: Not exactly. The compiler has to generate accessor methods to have everything work nicely. That said, the overhead should be relatively minimal, so if this is large enough to care with the profiler, consider not doing things in an anonymous manner ;) May 15 18:50:37 my interpretation could be wrong May 15 18:50:56 but they were all like "it runs fast, just make sure you rewrite it in this custom way and run it on a server farm" May 15 18:50:59 My dataser is more or less List -> HashMap>. May 15 18:51:09 cpruitt: Its really slow to boot up. There are things you can do to make it a little quicker. But genymotion is just overall much better May 15 18:51:46 lov: "not doing things in an anonymous manner" ? May 15 18:52:00 got imageview tinting to work :-D May 15 18:52:05 cpruitt, ARM emulators take awhile to boot May 15 18:52:06 so I got my robolectric tests running through gradle cli, but still no luck finding the test classes in studio... May 15 18:52:06 autrilla: so you can write an adapter that takes that and flattens it so it *looks* like a giant list May 15 18:52:08 lov: i'm considering making the class top level and package-private May 15 18:52:16 cpruitt, use an x86 image with GPU acceleration to get a fast emulator. May 15 18:53:08 dragorn, for starters, HashMaps are really bad for databases May 15 18:53:14 autrilla: leaving only the categories as the problem; if you have a fixed set of categories you could define their order outside the hashmap (ie int categories[] = { id1, id2, id3 }) and use that to have a static index May 15 18:53:31 dragorn, nope, the user can add categories May 15 18:53:41 autrilla: yup; i assume you have a reason. I'm focusing on "how do you make a hashmap work as a single listview" May 15 18:53:47 Android studio .gitignore should ignore the .idea/ right? May 15 18:54:00 piezoid: oh, you weren't doing anonymous inner classes. Nevermind, it's just the inner non-static part. May 15 18:54:12 Mavrik: Thanks. Not familiar enough with these tools to actually make use of that advice but I’ll make note of it. May 15 18:54:19 ... May 15 18:54:20 dragorn, I'd be more confident with dropping the HashMap and using something else, actually May 15 18:54:26 autrilla: so build an aux list<> of categories so you can refer to them in the same order, and use that on an adapter to build what looks like a contiguous list, then it's just offset math May 15 18:54:43 cpruitt, it doesn't require much knowledge to choose an Intel image when creating an emulator May 15 18:54:57 Mavrik: it does if he's not on a platform that supports x86 ;) May 15 18:54:59 and knowing what x86/ARM is is kinda basic knowledge for mobile dev :/ May 15 18:55:24 cpruitt, https://www.virag.si/2012/10/speeding-up-android-emulator/ May 15 18:55:26 regardless, the emulator boots very slowly the first time. Subsequent times, it's faster, and you don't need to restart the emulator across app starts. May 15 18:55:27 Are there any x86 phones? May 15 18:55:30 written for older version of tools, but still. May 15 18:55:33 autrilla, yes. May 15 18:55:33 a couple, but it's very uncommon. May 15 18:55:37 autrilla, like one or two May 15 18:55:39 dragorn, I'll look for an alternative to the Map May 15 18:55:40 autrilla, and a few tables. May 15 18:55:43 *tablets May 15 18:55:50 Mavrik, battery life must be veeeery bad May 15 18:56:09 autrilla, not really. May 15 18:56:20 it doesn't run an i7 :D May 15 18:56:25 Yeah well May 15 18:56:49 last I checked it was comparable with ARMs, at least on tablets May 15 18:56:57 just some apps ran slower due to ARM -> x86 translation May 15 18:57:07 Mavrik: I have no problem with the processor difference, I just don’t see anything in the UI for creating a device that references x86. May 15 18:57:19 cpruitt, download the image from the SDK manager May 15 18:57:27 Hey guys anybody know where I can store a keystore file where it won’t be accessible in the built apk. May 15 18:57:35 autrilla: Thanks, I’ll look. May 15 18:57:36 cpruitt, ah, the "CPU/ABI" option May 15 18:57:47 autrilla: yes May 15 18:57:49 cpruitt, if it's disabled go get a x86 image from AVD manager :) May 15 18:57:52 davechason: if you find it let me know May 15 18:57:53 autrilla: there are x86 phones May 15 18:57:55 autrilla: Not many May 15 18:58:06 davechason, wait what :) May 15 18:58:13 davechason, it should never be available in the built apk :D May 15 18:58:29 ok Kevel, thx man May 15 18:58:42 cpruitt, (yeah and that UI sucks and I have no idea why x86 emulators aren't the default ones :P ) May 15 18:58:43 Mavrik: ARM is the only option in that list for me. I’ll have to look for another image. May 15 18:59:18 cpruitt, yep, look for "x86 system image"-s in SDK manager :) May 15 19:00:01 also, Genymotion is another alternative :) May 15 19:00:19 Any1 know the naming conventions of Android App projects? May 15 19:00:29 Can I use dots? Whitespace? May 15 19:00:41 Mavrik: thanks, I see it May 15 19:00:42 or is it CamelCase which is to be applied? May 15 19:00:55 Mavrik this is a seperate keystore that has a aes key inside of it. Our goal is we want to ship our apk with this keystore inside without it be accessible. May 15 19:00:59 Im asking because Im soon to publish an app on Google Play for a company May 15 19:01:01 Trekka12, java world loves its CamelCase :) May 15 19:01:06 yea I know ;) May 15 19:01:11 davechason: If it's in the apk, then it's accessible May 15 19:01:13 Always May 15 19:01:23 davechason, yeah, there's no real way of achieving that May 15 19:01:29 if you send it to a user in an apk it's theirs to take May 15 19:01:30 But is that then the name which GOogle Play store will show when ppl wish to find the app? May 15 19:02:08 Trekka12: You can rename the .apk to .zip and it will show you what is in the apk if you are curious May 15 19:02:08 Trekka12, the name of the app written on Play Store is entered when you create the entry on the webpage May 15 19:02:17 davechason: if you make it available to the APK, it's just as available to an attacker, since they can just access it the same as the APK May 15 19:02:25 davechason: what they said. you can't protect data from the user when the user has access to it. May 15 19:02:25 Ah but when they lateron run it on their devices May 15 19:02:28 it's a depressing thought experiment May 15 19:02:29 Trekka12, the name the users will see on the phone is the name of the application or activity that has the launcher entry (that is, android:name in AndroidManifest.xml) May 15 19:02:34 the name they get is the Android App Project name, correct? May 15 19:03:01 uhm, ok :) May 15 19:03:08 Trekka12, sorry, it's android:label on your application or launcher activity tag in AndroidMainfest.xml :) May 15 19:03:14 that's what they'll see on the device May 15 19:03:22 and Play Store entry is written when you publish it :) May 15 19:03:23 Trekka12: the name of the app is controlled by the app name strings in the manifest. The class name you give is visible in the market URL. The rest is irrelevant. May 15 19:03:44 actually package entry in AndroidManifest.xml not class name :) May 15 19:04:12 autrilla: model name : Intel(R) Atom(TM) CPU Z2520 @ 1.20GHz May 15 19:04:26 hmm ok May 15 19:04:34 autrilla: it's going to be more common in tablets May 15 19:04:34 thx Mavrik, Ill take a sec to look into it now :) May 15 19:04:44 I see May 15 19:05:07 autrilla: intel can't make up its mind about being a phone, tablet, or neither player May 15 19:05:08 If I have an RSA keypair secured in a KeyStore thats been locked, is it safe to put that keystore in the Assets folder? May 15 19:05:18 btw, was there ever a MIPS Android device? May 15 19:05:26 davechason: only if you don't mind that pair being exposed May 15 19:05:27 davechason, why would you do that? May 15 19:05:39 davechason, anything that's in apk can be opened by user May 15 19:05:40 always. May 15 19:05:43 davechason: if it's in the resources, I can pull it out. If the password is in the apk, I can reverse engineer it out of the apk. May 15 19:05:46 Mavrik: tons May 15 19:05:49 Mavrik, is it possible to Duplicate an Android app if you wish one to have one name, and the other to have different name but with same content? May 15 19:05:51 well keystores are password secured May 15 19:05:57 davechason: and where is the pw kept May 15 19:06:02 Trekka12, the package name is used as an identifier May 15 19:06:11 Huh? May 15 19:06:13 source May 15 19:06:20 Trekka12, you cannot have two apps on a device and there cannot be two apps with same package name on app store May 15 19:06:37 Nah man, 1 of them is to be published and 1 of them is not May 15 19:06:47 davechason: and to be accessible, it's a string in the binary May 15 19:06:49 https://play.google.com/store/apps/details?id=com.deeptrouble.yaarreddit <---- package name May 15 19:06:54 davechason: which means it's extrctable. If someone cares. May 15 19:06:59 I was thinking I keep the development name for memory purposes for myself, whilst I still have another app with exact duplicated contents to be published May 15 19:07:01 davechason: If the password is in the source, anyone can read it.. If the password is sent to the device, anyone can read it May 15 19:07:12 Trekka12, you can do whatever you want May 15 19:07:14 right May 15 19:07:14 :) May 15 19:07:15 Mavrik, are you Deepak? :P May 15 19:07:20 autrilla, ? May 15 19:07:20 Mavrik: any shitware tablet from china is mips May 15 19:07:28 * shekibobo is a sad android May 15 19:07:29 Mavrik, that app, is it yours? May 15 19:07:30 Mavrik: so are all those usb-stick sized things May 15 19:07:31 i guess not May 15 19:07:35 dragorn, hmm, I've seen those only with AllWinner ARM chipsets May 15 19:07:44 maybe I don't look at shitware enough :D May 15 19:07:45 Mavrik: thought allwinner was mips May 15 19:07:48 nop May 15 19:07:50 ARMv7 May 15 19:07:54 autrilla, nope :) May 15 19:07:59 autrilla, random app on first page of play May 15 19:08:12 Trekka12, Google and Android tracks "same" app via package name May 15 19:08:12 Mavrik: yeha you're right that's arm. Still, lots and lots of mips stuff May 15 19:08:13 Ah May 15 19:08:21 Mavrik: b/c mips is an unlicensed core afaik May 15 19:08:30 Trekka12, that's all it cares about... if you totally change the app and keep the same package name it'll act like an upgrade / same app May 15 19:08:43 Mavrik: Ainol makes a lot of mips things. Plus their name is just awful. "here, I got you an ainol paladin" May 15 19:08:49 dragorn, ah... haven't seen one in the wild May 15 19:08:58 I've seen tons of MIPS routers and stuff, just no Android thingies May 15 19:09:03 I'm so slow developing May 15 19:09:07 One afternoon for nothing May 15 19:09:41 autrilla: that's what programming is, isn't it? May 15 19:09:55 autrilla: like smashing your head on a brick wall, you only do it because it feels so good when you stop May 15 19:10:03 yep. May 15 19:10:04 Yeah, more or less May 15 19:10:16 It's very frustrating while you're hammering your head though May 15 19:10:27 Mavrik: I don't think there are any google licensed mips devices, but there's a crapton of them out there May 15 19:10:50 Mavrik: all the intel ones have an arm emulation layer built in to handle the native code problem for apps that don't have intel native code included yet May 15 19:11:38 mhm May 15 19:12:12 I think I have a MIPS device May 15 19:12:17 An old one May 15 19:17:46 Persisting a serialized HashMap in a database seems such a bad idea May 15 19:17:57 I'd have to fetch the whole HashMap every time May 15 19:18:23 g00s, you shall be punished. May 15 19:18:33 omnipunished May 15 19:19:05 of course i'm being punished; android does that May 15 19:19:41 Oh indeed May 15 19:20:56 Hey everyone, is there a way to limit the area viewed on a map? May 15 19:23:29 g00s: i spent a day fixing up my nav drawer, that makes 3 apps that you could write a reusable solution for May 15 19:23:57 Mango_Man i was thinking of initializing my nav drawer from inflating a menu xml May 15 19:24:08 but thats a simple hack May 15 19:24:19 i have no idea about how to accomplish something like storyboards May 15 19:24:41 Does using a temporary variable to represent a method you would be calling three times cause any performance gain? May 15 19:24:54 g00s: what do you mean by storyboard? / what's a storyboard? May 15 19:25:26 oh i see: https://developer.apple.com/library/ios/documentation/general/conceptual/Devpedia-CocoaApp/Storyboard.html May 15 19:26:20 yeah May 15 19:26:32 doesn't need to be graphical, although that seems intuitive May 15 19:26:55 What rule to I add to RelativeLayout.LayoutParams to make something align to BOTTOm LEFT ?? May 15 19:27:06 Err I mean BOTTOM CENTER May 15 19:27:34 There is RelativeLayout.ALIGN_PARENT_BOTTOM plus RelativeLayout.ALIGN_LEFT works, but why is there no RelativeLayout.ALIGN_CENTER ?? May 15 19:28:06 zezba9000, use table layout. it's simpler May 15 19:28:21 zezba9000: maybe CENTER? May 15 19:28:31 Try searching for center, see if you don't find something useful: https://developer.android.com/reference/android/widget/RelativeLayout.LayoutParams.html May 15 19:28:36 CENTER_IN_PARENT, i mean May 15 19:29:48 SimonVT: O god, sorry don't know how I missed that May 15 19:30:07 Its RelativeLayout.CENTER_HORIZONTAL) May 15 19:33:11 * autrilla sighs May 15 19:33:31 * paralith pats autrilla on the head May 15 19:34:05 "not feeling smart today? here, have a nullpointerexception!" May 15 19:37:01 ORMLite can't handle HashMaps without serializing them, and there's no alternative to it :( May 15 19:37:41 oof May 15 19:38:33 tough life. May 15 19:39:03 ain’t it always the way May 15 19:39:11 Can I disable gradle import in android-studio? Currently I have to disable the plugin, import then enable it again. May 15 19:45:39 the nicest orm tool i looked at was jooq; but it doesn't work on android May 15 19:45:56 i really dont trust those things :) May 15 19:46:05 iBatis was OK for some scenarios too May 15 19:46:20 whatever its called these days; don't think you can use that on android either May 15 19:46:41 it was the 'no magic' orm May 15 19:47:38 there are really 2 parts of suckage: (1) embedding SQL strings in Java May 15 19:48:00 (2) the mapping; but you could use jooq to solve (1) and (2) or just (1) May 15 19:48:12 that would be good enough for me May 15 19:50:53 i wonder when sqlite4 has its new k/v store if it will be exposed in android via java api May 15 19:52:37 g00s, yeah, on ##java they recommended jOOQ too. It doesn't work on Android though May 15 19:52:52 I might as well jump out of the window May 15 19:53:08 well, android isn't java so :D May 15 19:54:27 So I can either write my own mapper or use plain SQL. yay! May 15 19:55:56 would you like cyanide or polonium :) May 15 19:56:20 A milkshake of both May 15 19:56:28 Im starting to dislike java quite a bit to be honest. No delegates, no properties, brackets everywhere. I remember one guy inhere working with Scala which i found interesting. Anyone used any "exotic" languages for android development for anything other than toy projects? May 15 19:56:34 And I think if I finish this I'm going to need a new brain May 15 19:57:01 liefer pfn is on vacation, when he's back i'm sure he;d be happy to talk about it May 15 19:57:26 Ill be here then :). He uses scala or...? May 15 19:57:47 liefer scala, yeah May 15 19:58:15 cool, i'll try to get a hold of him when he gets back. Thanks May 15 19:58:44 the problem though, is that java influenced the design of the android APIs; i'm unconvinced using another language helps much with that; you still need to stuff bundles and shit May 15 19:59:10 now some things like mocl look cool May 15 19:59:25 https://wukix.com/mocl May 15 20:00:13 where it seems to shine is when your problem easily expressed in the power of lisp, but you don't need to much UI May 15 20:00:14 Sure. But i'd argue if you have enough business logic it may be worth the effort. You'll still have to deal with the API's, but for the rest you can take advantage of what scala offers May 15 20:00:28 yeah May 15 20:00:46 or lisp for that matter May 15 20:01:04 but i was trying to get away from brackets :) May 15 20:01:10 :D May 15 20:04:22 liefer: if you're coming from Obj-C, Java can be kind of odd. That said, I'm doing the reverse, and Obj-C is super odd. May 15 20:04:35 i love obj-c message passing May 15 20:04:43 lov: but you will be more satisfied at the end 8-)) May 15 20:04:48 no, I'm not sure about that. May 15 20:05:01 "Who uses this class? Who the fuck knows! YOLO" May 15 20:05:03 I like Obj-C more. May 15 20:05:05 https://scontent-b-ams.xx.fbcdn.net/hphotos-prn2/t1.0-9/1382285_10202871601369687_1526591974_n.jpg - Java and Objective-C is like this picture exactly, kind of pointless/waste of hard working. Spend 1 week of shitty time just doing the same thing in Objective-C an Java for IPhone/Android what a waste. LOLLL May 15 20:05:08 only thing i wish they fixed was namspaces May 15 20:05:18 "What methods does this class have?... You mean, like, TODAY?" May 15 20:05:25 2 letter prefixes suck May 15 20:05:25 I'll continue tomorrow, i can't concentrate. see you guys! May 15 20:05:36 I dont really have much experience with obj-c at all. Im using C# (Xamarin) whenever possible, but xamarin has its own issues, not to mention the pain if using libraries May 15 20:05:52 Ah. May 15 20:06:02 IamTrying: Strap fails, genitals promptly removed by high-speed wheel. May 15 20:06:03 Yeah, Java is going to be a step backwards in functionality from C#, unfortunately. May 15 20:06:27 LOlllll Nilium May 15 20:07:23 Java8 looks interesting, but i guess thats gonna be a while... May 15 20:07:36 Yeah, with the Oracle lawsuit don't hold your breath :P May 15 20:07:56 I'd guess Android might end up with its own incompatible fork of Java before long. May 15 20:08:19 i.e., not just the classpath, but also language features. May 15 20:08:22 i'm wondering if they will do something like MS and use Cordana May 15 20:08:23 On the other hand, though, they'd have to write their own compiler and stop piggybacking off the existing Java toolset May 15 20:08:30 (as one option) May 15 20:09:05 I strongly doubt android would fork java; nominal compatibility is one of the main selling points. May 15 20:09:20 something kinda like this http://blogs.msdn.com/b/somasegar/archive/2014/05/12/mobile-first-cloud-first-development-visual-studio-apache-cordova-tooling-and-cloud-optimized-net-futures.aspx May 15 20:09:43 i guess that could work for chrome too; actually we know it does since google already announced that May 15 20:10:03 lov yeah, lets hope they come to some agreement May 15 20:11:01 Alternatively: Android 5: new language, everything in the past is deprecated. May 15 20:11:29 Ballsy, i like it May 15 20:11:34 yeah, sounds good :D May 15 20:11:44 Old apps supported by including the runtime as usual (kind of like the hackjob BlackBerry used), new apps do something else who knows I'm not a doctor May 15 20:11:51 * g00s votes Nilium head of Android May 15 20:12:03 That'd be a lame IO. "More than 1 billion devices sold, at least 10 apps in play store" May 15 20:12:09 And now off to the dentist to hear more horrifying things about why my tooth is doomed May 15 20:12:15 Still more than Windows Phone May 15 20:12:22 Nilium is it powered by android? wut May 15 20:12:24 *zing* May 15 20:12:40 bluetooth? May 15 20:12:45 Hi. I have this weird issue. My phone is a Moto G with Android 4.4 and everything was setup in Dutch. Everything worked. Then I started using Text To Speech (because I am developing an app that uses the TTS api, but that's outside the scope of this issue). It worked fine in Dutch. Then I changed it to English, which also worked fine. but the list where I selecten English does not have Dutch anymore. I have also tested German, works fine too, but there May 15 20:12:55 I'm talking about this setting: http://sourcedigit.com/wp-content/uploads/2014/03/g2.jpg (not my screenshot, but it looks almost identical May 15 20:12:55 actually, i don't think 1 billion apps in Play is really an asset, considering 99% of them are shit May 15 20:13:06 even when I force quit and remove all data from the Google TTS app, it still won't give me my native language back May 15 20:14:24 Peetz0r learn by immersion May 15 20:14:30 time to pick up a new language ! May 15 20:14:50 g00s: nah, my english is already at near-native May 15 20:15:02 but I'd like to fix this issue for technical reasons May 15 20:15:06 Peetz0r: I'm not seeing the problem. May 15 20:15:24 Actually, your list contains more than "English (American)" and "Foreign" so I guess I can understand the confusion May 15 20:16:19 lov: when I first used TTS, it was set to Dutch, which is my native language. Worked fine, Then I changed it to English, worked fine. Now I want to change it back to Dutch, but it's not there. May 15 20:16:30 that's the issue May 15 20:16:40 Peetz0r: whoosh. May 15 20:16:54 (It is a joke about cultural perceptions!) May 15 20:17:20 oh, I really believed you misunderstood my question :p May 15 20:17:29 perfect. May 15 20:17:48 If I do a merge in egit, will it give me the option to exclude certain files for merging? May 15 20:18:03 tylertylertyler: I don't know! May 15 20:18:10 perhaps you should ask in another channel? :) May 15 20:18:18 and yes, I have seen the USA-centric (or English-centric) view of the world that many people (worldwide actually) seem to have and it annoys me sometimes May 15 20:19:00 altough I am writing this in English, because there is not (and probably will never be) such an irc channel in a medium-ish language like mine May 15 20:21:12 loll Nilium, hohohoho this made my day: Alternatively: Android 5: new language, everything in the past is deprecated. May 15 20:29:05 Nilium also hopefully android 5 comes with a new permission system May 15 20:29:30 I wonder how fragmented Android 5 is going to be May 15 20:30:05 i'll call it android next, because we don't know what it will be numbered May 15 20:31:08 Guys, I forgot where in Eclipse I could see my Debug Certificate for Google Maps - any1 of you know wher ein the userinterface its locted? May 15 20:31:22 I refactored the name of the app and now that key I found earlier is no longer valid May 15 20:31:27 g00s: is it really happening in the Android history? this is one freaking nightmare for many. Or maybe Android 5 should say we quit use Tizen May 15 20:33:39 Grand pa will write story for there grand children. Once upon a time Android 5 ... and Java.. May 15 20:35:25 http://phandroid.com/2014/05/15/google-play-paypal/ May 15 20:36:44 g00s: does it allow have Westurn Union payment support plan? to allow countries where no CARD exists but wanna pay. May 15 20:37:07 I'd like to create an Android service, talk to it just a bit, kill my UI activity, restart the UI activity (user re-opens app), and finally talk to my service some more. May 15 20:37:25 g00s: hey May 15 20:37:26 Not sure which form of service communication is most appropriate May 15 20:37:36 hey Napalm May 15 20:37:40 g00s: did you end up doing the nav idea? May 15 20:37:47 I only need to send about two or three messages for the life of the service May 15 20:37:53 but the service stays running after the UI dies May 15 20:38:02 hm, still working on it. first i have to get the app finished , cute libraries are second May 15 20:38:42 Napalm i thought about just passing all the items to be shown in the drawer as a menu.xml file May 15 20:39:27 seems like gapps drawers have 2 sections: the top, and the bottom like settings which is a little more grey May 15 20:39:43 maybe the top goes in one menu group the bottom the other May 15 20:39:50 man, you can even put in an ActionView :D May 15 20:40:02 ami crazy? May 15 20:40:10 nope, sounds fine May 15 20:40:15 shouldn't take too long either May 15 20:41:48 if you use expandablelistview the 2nd tier would be submenu May 15 20:42:15 g00s: i'd like to send you my own ActionBar implementation (did it before compat) but can't, so i suggest you should go grab the appcompat source and take a look at how its done. it might give you some good ideas on how to formulate this May 15 20:42:29 cool, thanks :) May 15 20:42:34 g00s: i would even go as far as using the same panel functions with a different featureId May 15 20:42:39 one for side nav May 15 20:42:42 that would be nice May 15 20:42:46 yeah :) May 15 20:43:18 now this is spooking me; i'm not on google+ but when i browse the web verion of Play I see my contacts overlayed on apps saying 'Juan has +1 this' May 15 20:43:59 why is that spooky? May 15 20:44:01 the app does that May 15 20:44:15 and its the same domain so your logged in May 15 20:45:07 google is using my contacts in a way i didn't foresee when i signed up May 15 20:45:32 you can turn it off May 15 20:46:28 start activity -> activity starts service -> user closes activity -> service still running -> users starts activity -> activity talks to service. What kind of service/communication method do I want? May 15 20:46:48 startService ? May 15 20:47:11 g00s: I believe it has to be a startedService May 15 20:47:39 if a service is still in the same process when the activity dies, can it still live? May 15 20:47:43 knapper_tech: it really depends on how you stop it May 15 20:47:47 eg take over the process May 15 20:47:51 knapper_tech: when is the service finished? May 15 20:48:07 the service only finishes when the activity tells it to explicitly May 15 20:48:38 think of the UI as systemctl and the service as systemd May 15 20:49:03 then yes, startService -> bindService -> unbindService .. sometime in future Binder -> someMethodInService -> stopSelf May 15 20:49:23 in the future, where do I get the Binder? May 15 20:49:31 The first version of menudrawer inflated drawer items from menu xml May 15 20:49:40 Rebase got rid of any trace of that :) May 15 20:49:41 SimonVT: too early May 15 20:49:42 :D May 15 20:49:44 Napalm: do I need to put the service into it's own process? May 15 20:49:51 SimonVT really? where did you see that ? May 15 20:50:03 knapper_tech: you dont need to May 15 20:50:11 g00s: menudrawer being the library I wrote May 15 20:50:16 ooh May 15 20:50:19 Napalm: but it will continue living after the Activity dies? May 15 20:50:21 g00s: he's talking about his implementation May 15 20:50:28 cool May 15 20:50:33 knapper_tech: yes May 15 20:50:40 SimonVT did it not work out very well ? May 15 20:50:53 It worked fine May 15 20:50:57 Just horribly limiting May 15 20:50:57 and when the Activity is started again, it's in the same process as the still-running Service? May 15 20:51:02 yeah May 15 20:51:32 knapper_tech: yes May 15 20:52:10 knapper_tech: http://developer.android.com/guide/components/services.html May 15 20:52:17 my brain is overcoming some conceptual beliefs about processes May 15 20:52:19 knapper_tech: and http://developer.android.com/guide/components/bound-services.html May 15 20:52:42 knapper_tech: processes are conceptually a different thing on android May 15 20:52:56 infact a lot of android is conceptually different to "desktop" May 15 20:53:05 but thats its strength May 15 20:53:39 probably some JVM and zygote stuff I'm not familiar with. May 15 20:54:33 Napalm: can I bind/unbind over and over while restarting the activity in between? May 15 20:54:44 knapper_tech: there was some old Dalvik video's from I/O years ago, but still help May 15 20:54:53 at least i think it was I/O May 15 20:55:00 might have been some of the old tech videos May 15 20:55:17 knapper_tech: yes May 15 20:55:50 that's pretty suite. and the service can have more threads....I really need to brush up on my JVM knowledge. May 15 20:57:14 Napalm: is there anything I want to do as far as binding since only my client can talk to the service? May 15 20:58:01 knapper_tech: as-in? add android:exportable="false" to it in the manifest? May 15 20:58:30 yeah, I saw some options such as local, but think that was for broadcast recievers. May 15 20:58:50 can't recall where I read that I can make a service only bindable from the same process May 15 20:59:00 nope May 15 20:59:06 you can bind from any process... thats the point May 15 20:59:42 knapper_tech: why dont you read the docs? if you want IPC with services read http://developer.android.com/guide/components/aidl.html May 15 21:00:24 Are there any alternatives to serializing a Map> to store it in a database using ORMLite? May 15 21:00:59 autrilla: why do you want to use an alternative? speed? May 15 21:01:53 Napalm: I read the docs, but as I expected, my understanding of Android processes was weak. May 15 21:02:06 Napalm, storing a serialized HashMap has serious inconviniencies... for example, I wanted to implement reorderable ListViews, and it's a burden to do it with the HashMap. Same for getting just all the Categories, for example May 15 21:02:47 autrilla: then design a better database where each element is a record May 15 21:03:25 Napalm, each element of what, of the Map? May 15 21:06:47 yes May 15 21:06:55 you would have a table of products May 15 21:07:08 and a table categories May 15 21:07:14 With a foreign key for the Category? May 15 21:07:15 I see May 15 21:07:17 and then a join table May 15 21:07:36 i mean theres plenty of ways to do it May 15 21:07:43 I doubt ORMLite supports that, I would have to write my own SQL code May 15 21:07:44 not sure how this fits with ORMLite May 15 21:07:51 exactly May 15 21:08:29 Also, for the position of each item on the ListView (categories, for example), would you just have a "position" column? May 15 21:08:50 And query the database on getItem(int position) of the Adapter May 15 21:08:52 yup and get the results in that order May 15 21:09:00 Or that May 15 21:09:05 :) May 15 21:09:07 Yeah, that would be better May 15 21:09:13 * autrilla takes notes for tomorrow May 15 21:09:15 you can do a single query to get it all May 15 21:09:30 My SQL is a bit rusty, but it's a very simple language May 15 21:09:33 (for what I want) May 15 21:10:12 hey guys May 15 21:10:38 i have a problem changing return parameters in getView method May 15 21:10:44 i'm not very familiar with this method May 15 21:10:47 SELECT products.* FROM products INNER JOIN categories ON products.id = categories.product_id WHERE categories.category_id = 123 ORDER BY categories.order ASC May 15 21:10:52 so can anyone look at my code? May 15 21:11:01 autrilla: ^ May 15 21:11:19 http://stackoverflow.com/questions/23687297/getview-not-returning-view-parameters May 15 21:11:27 posted it on stackoverflow May 15 21:11:43 wtf? May 15 21:11:47 this is screwey May 15 21:11:48 lol May 15 21:13:07 hey, guys. i'm working on a custom incoming/outgoing call app that needs to open its own full screen activity. for some reason, it never works on samsung devices. suggestions? May 15 21:13:23 fullscreen doesn't work on samsung deviceS? May 15 21:13:38 or te incoming outgoing call service doesn't? May 15 21:13:41 superimposing a view over the keyguard at the time of an incoming call May 15 21:13:46 jvrodrigues: your getView is screwed up.. btw.. and samsung supports Fullscreen just fine May 15 21:13:59 Napalm, how is it screwed up? May 15 21:14:13 totally May 15 21:14:31 jvrodrigues: add a picture of what you what your resulting list to look like. May 15 21:14:44 jbsio: hey, how are you launching your activity May 15 21:14:54 hum May 15 21:15:04 i'm not sure i can share that May 15 21:15:06 anyway May 15 21:15:08 it works fine May 15 21:15:19 well your going to have lots of problems May 15 21:15:21 it's a list separated by categorues May 15 21:15:28 which are textviews May 15 21:15:32 the code isn't mine May 15 21:15:32 right, then this is not the right way May 15 21:15:35 i'm just maintaigning it May 15 21:15:40 i see May 15 21:15:53 well... damn lol May 15 21:16:12 and i'm not that experienced in android programming May 15 21:16:20 infact i'd say its pretty damn nuts May 15 21:16:27 as i said, i'm just maintaigning the code and getting the app ready for deployment May 15 21:16:34 then fix it May 15 21:16:39 what's wrong with it May 15 21:16:40 ? May 15 21:17:24 your telling me you can't tell that while loop is nutty? May 15 21:19:47 jvrodrigues: ok, can you tell me on average how many items is this list going to contain? May 15 21:19:53 jvrodrigues: 1000s? May 15 21:19:56 100s? May 15 21:19:58 10s? May 15 21:20:09 it's sort of a task list May 15 21:20:14 so very small May 15 21:20:18 so i'm gessing max 100 May 15 21:20:25 yes, small May 15 21:20:27 ok, then there are way better ways to do this May 15 21:20:30 and simiple May 15 21:20:31 simple May 15 21:20:38 yes May 15 21:20:42 i was quite stunned myself May 15 21:20:58 when i first cloned the repos and looked at the code May 15 21:21:12 the thing is May 15 21:21:17 there is some particular specs May 15 21:21:19 the list needs to have May 15 21:21:21 for example May 15 21:21:24 drag and drop of items May 15 21:21:28 and swipe May 15 21:21:35 and category re-ordering May 15 21:21:38 well thats ok May 15 21:21:43 infact its easier May 15 21:21:48 doing it the "normal" way May 15 21:21:48 lo May 15 21:21:49 lol May 15 21:22:01 can you point me to an example of the normal way? May 15 21:22:05 most people shoe-horn way too much into adapters May 15 21:22:27 well as i said i'm not that experienced May 15 21:22:37 and i think whoever built this code isn't that experienced either May 15 21:23:15 jvrodrigues: can you post the super adapters getView? May 15 21:24:02 And back from the dentist after much trepidation over said dentist visit. May 15 21:24:02 sec May 15 21:24:08 Also I have a guinea pig on my desk. May 15 21:26:07 http://pastebin.com/GWiUMy5X May 15 21:26:15 this is the getView on the superclass May 15 21:26:54 omg May 15 21:26:57 Any specific way the string is to be formatted except "tel:" in beginning for a DIALING_INTENT to occur succesfully? May 15 21:26:57 i dont want to ask May 15 21:26:58 lol May 15 21:27:49 Do I for example have to use "-" between certain amount of numbers, do I need to use country codes etc? May 15 21:28:09 jvrodrigues: i assume the parent is a CursorAdapter then can i see the newView and bindView May 15 21:28:10 or does plain old fashioned numbers purely following each other do just fine? May 15 21:29:21 http://pastebin.com/PAq59eHS bindview May 15 21:29:39 Napalm, thanks! I just saw it :) May 15 21:29:51 http://pastebin.com/c93wkfMu --> newView May 15 21:29:55 autrilla: something like that should work May 15 21:30:42 jvrodrigues: one moment, i'll sort this out May 15 21:30:52 Napalm, that would sort it according to what, the ID? May 15 21:30:55 Napalm, thank you May 15 21:30:59 Nvm May 15 21:31:02 categories.order May 15 21:31:02 autrilla: an order field May 15 21:31:28 Napalm, is it possible to have the database auto-assign that field to new rows? May 15 21:31:42 jvrodrigues: one last thing what is your constructor on the adapter May 15 21:31:49 autrilla: yes May 15 21:32:14 autrilla: look up triggers May 15 21:32:23 Napalm, sure thing, thank you again May 15 21:33:31 lemme check May 15 21:35:07 TasksAdapter May 15 21:35:29 sorry the whole thing crashed on me May 15 21:35:38 jvrodrigues: k? May 15 21:36:08 Where do i OpenGL ES (2.0) cleanup? The Renderer interface doesn't have a cleanup call. May 15 21:37:01 BtbN: destory of the surface May 15 21:37:58 Napalm, oh, i thought i could only call gl functions in the renderer May 15 21:39:35 BtbN: what are you trying to clean up? the GL Context is destroyed by the GLThread when finish() is called May 15 21:39:48 Textures, buffers and stuff May 15 21:40:01 Anyone here know anything about IRC protocol? May 15 21:40:23 codeguru: http://tools.ietf.org/html/rfc2812 May 15 21:40:25 :) May 15 21:40:49 dun really want to dig through the RFC =p May 15 21:40:49 or is it normal on android to just assume it automaticaly frees VBOs and texutres allocated? May 15 21:41:13 although, I should at least bookmark it for reference if I ever get to the point where I need it May 15 21:45:27 I'm not really working at that low of a level anyway. I'm using pircbot which takes care of most of the details for me. May 15 21:45:28 http://vimeo.com/94248185 < bit of a head fck .. but cool May 15 21:48:27 anyone here running the eclipse from debian? or is that just going to be a pain May 15 21:48:37 s/the// May 15 21:49:02 I use Eclipse in Mint. Should be similar in Debian May 15 21:49:10 jvrodrigues: so, how are you setting the Cursor to the adapter? in the constructor? May 15 21:50:22 Thanks codeguru May 15 21:51:01 Napalm, hmm May 15 21:51:05 Napalm, i think so May 15 21:51:21 jvrodrigues: so whats the constructor for it? May 15 21:51:36 Napalm, the initCols method sets up the cursor May 15 21:51:44 in the getView??? May 15 21:51:45 wtf May 15 21:51:56 yes, that was a hack i was coding today May 15 21:52:04 ok slow down May 15 21:52:07 i setted up the cursor to the database May 15 21:52:14 show me how to get the cursor May 15 21:52:25 initCols(cursor) May 15 21:52:33 and you have your cursor set to the database in question May 15 21:53:16 god this is like pulling teeth May 15 22:16:32 Anyone knows what could cause a crash on OpenGL context resume? I'm using a GLSurfaceView and do all my loading in onSurfaceCreated(). On my real phone, some resources are missing from the screen after resume. If i test it in an emulator, it crashes the entire emulator. May 15 22:18:51 anyone have experience writing instrumentation tests for asynchronous web requests? May 15 22:25:50 if a fragment is defined in a layout using the tag is a transaction still created for it? May 15 22:27:01 Nope, it's added directly to the FragmentManager May 15 22:27:19 good to know May 15 22:27:21 You can check FragmentActivity#onCreateView or Activity#onCreateView to see how May 15 22:28:40 SimonVT: thank you very much, explains why my animations are not working for that fragment May 15 22:35:18 If i have a fragment defined in xml then, is it possible to take advantage of transition animations without programatically commiting a transaction? May 15 22:36:13 You'll have to animate the views directly May 15 22:36:51 SimonVT: alright, that's unfortunate. Thanks for the help May 15 22:41:33 HI! May 15 22:41:44 Finally! May 15 22:41:57 I am now chatting from the emulator May 15 22:42:40 because my phone only supports API 10 and I'm making this app for minSDK=11 May 15 22:42:49 someone say something! May 15 22:44:12 Are you all sleeping? May 15 22:45:53 yep, CodeGuruBot May 15 22:46:09 woot! I got your message May 15 22:46:20 My Simple IRC client doesn't ping yet... May 15 22:46:22 CodeGuruBot, minsdk=14 4lyfe May 15 22:46:31 and doesn't scroll automagically. Gotta work onthat. May 15 22:46:44 like 2 people use honeycomb these days May 15 22:46:51 Yah, I'm debating whether to go higher. May 15 22:47:08 You found 2? May 15 22:47:24 rounded up May 15 22:48:17 okay, gotta restart. Eventually this nick might actually be a bot. May 15 22:49:58 There we go May 15 22:52:33 Okay...question: How do I force a ListView to always scroll to the bottom? May 15 22:56:19 now I need to remove my password from my code so that I don't accidentally commit it to git May 15 22:57:26 testing May 15 22:57:46 anyone want to chat with me? May 15 22:58:57 need to see if my scrolling issue is fixed May 15 23:00:23 so if no one wants to chat, I might just have to spam the channel a few times May 15 23:00:33 one or two more messages should do it... May 15 23:00:37 hmmm May 15 23:00:43 test May 15 23:00:57 looks good! May 15 23:01:30 next May 15 23:08:09 great May 15 23:33:05 aww come on google where is AS 0.5.9; keep having to restart after this 'can't dispose editor internal error' May 15 23:33:14 pita May 15 23:52:14 Nilium there? May 15 23:54:41 dentist killed Nilium :| May 15 23:55:42 Is a GLSurfaceView allways on top? I'm trying to use it in a DrawerLayout, but the drawer is invisible May 16 00:19:45 Hello! May 16 00:21:39 Interesting May 16 00:21:54 still not seeing "leave" messages, though May 16 00:33:44 Nobody ever used a DrawerLayout with a GLSurfaceView? The GLSurfaceView seems to be rendered ontop of my Drawer ListView, but i can still pull it out, and it blocks interaction with the GLSurfaceView May 16 00:42:19 is there a way to completely disable immersive mode's little help balloons? i dont want my app ever showing them (even on first run) May 16 00:42:48 i found Settings.Secure.IMMERSIVE_MODE_CONFIRMATIONS, which helps later on, but i'd rather it not show them ever May 16 00:43:22 What's immersive mode? May 16 00:43:35 https://developer.android.com/training/system-ui/immersive.html May 16 00:49:00 test May 16 01:03:25 Hm, wonder what g00s needed. May 16 01:04:32 Hello, again May 16 01:06:05 Not sure if codeguru same codeguru from room 15 May 16 01:06:33 Head scratching follows. May 16 01:07:29 Room 15? May 16 01:07:58 oh...on SO? May 16 01:08:08 yah, that's probably me May 16 01:08:45 * Nilium stares. May 16 01:10:21 hmm...guess I need to implement actions in my IRC client May 16 01:15:27 Is that any better? May 16 01:15:32 /me shrugs May 16 01:15:45 well, I can't send actions, but I should be able to recieve them correctly now May 16 01:16:16 oh...I guess I can send acctions May 16 01:16:26 they just don't look like actions in my client May 16 01:16:30 im outta here May 16 01:16:36 later May 16 01:17:38 Please find another channel to spam while testing your irc client May 16 01:19:04 it's been pretty quiet here today May 16 01:19:11 I don't get this. No matter what i do, i can't get the DrawerLayout to work with my GLSurfaceView... the OpenGL is allways rendered on top of it May 16 01:26:31 SurfaceViews work different than regular views, there's a bit on it in the javadocs May 16 01:29:19 SimonVT, but it should still be possible to place other UI elements ontop of it? May 16 01:31:36 It sounds like it, but I haven't really used SurfaceView May 16 01:31:57 It's a GLSurfaceView May 16 01:32:01 not directly a SurfaceView May 16 01:36:53 do any of the android phones get NWS alerts in the US ? May 16 01:37:06 tornados, etc May 16 01:37:21 I think the support in general exists for it May 16 01:37:36 hm, would i need to load an app ? May 16 01:37:44 ... but so far my main issue was "how the fuck do I disable the alerts", because they ended up being used for dating service -_- May 16 01:37:53 dahell ? May 16 01:37:59 yes hell May 16 01:38:00 I think you have to register for it: May 16 01:38:28 www.weather.gov/subscribe May 16 01:38:33 maybe there is also an app May 16 01:39:10 p_l had so many potential suitors he had to disable the alerts, thats great :D May 16 01:39:16 p_l: the government is selling access to emergency broadcasts? May 16 01:39:17 thanks CodeGuruBot May 16 01:40:05 Leeds: no, the infrastructure that runs them is in hands of operators, and not everywhere it is used the same way May 16 01:41:06 so one of the alert types on certain network was repurposed for some dating service etc. May 16 01:49:27 trying to get some opinions on fragment architecture design. if you have a second would you check this out (http://www.reddit.com/r/androiddev/comments/25oc6g/fragment_architecture_discussion/) May 16 01:50:51 theblang well, somewhere inbetween May 16 01:51:15 so an activity for all the related fragments May 16 01:51:19 g00s_ well, even considering an architecture with just a few activities, some of the same problems still exist May 16 01:51:39 yeah, i tend to use new activity when options menus and fragments will be completely different May 16 01:51:46 g00s_ i know you said you have been working on a nav drawer. honestly, doing a nav drawer and refactoring to fragments has been making me really dislike my codebase May 16 01:51:47 i used PreferenceActivity becuase it was special May 16 01:52:00 theblang yeah, its a mess May 16 01:52:17 its like, you can't have your cake and eat it too May 16 01:52:39 g00s_ well, part of me is considering just moving back to an activity design. with fragments only when I need to master / detail ors omething May 16 01:52:40 seems like at the end, everything winds up mucking with everything else May 16 01:52:46 g00s_ but dang, it is so much faster to load in fragments May 16 01:52:54 theblang look at square flow / mortar, maybe you will like that better May 16 01:53:12 oh wait, did you say you were going to the talk ? May 16 01:53:17 can't remember who that was May 16 01:53:24 Ray Ryan May 16 01:53:26 g00s_ i'm not May 16 01:53:56 g00s_ it makes me sad though. I used to love love android development, but I'm not loving it so much lately, lol. May 16 01:54:04 i remember Jesse Wilson gave a talk maybe a year ago, when he talked about modernish stuff; mentioned dagger, hating loaders, etc :) May 16 01:54:44 Indeed May 16 01:54:48 theblang: you can do master/detail without fragments, just have hidden layouts that you show when it's landscape or whatever May 16 01:54:54 g00s_, JakeWharton the only things that excite me recently are all third party stuff (square's stuff mostly) May 16 01:55:56 shmooz that thought has definitely crossed my mind. it has been frustrating recently, lol May 16 02:02:41 I don't get this... i can't be the first one to every try this, not a single related result on google oO May 16 02:02:46 -y May 16 02:03:29 Is there some other way to implement a menu which only appears when you touch/slide near the screen edge? May 16 02:04:18 BtbN that sounds like nave drawer? am i missing something? May 16 02:04:34 g00s_, yes, Navigation Drawer is exactly what i intend to use May 16 02:04:36 I have this: webView.loadUrl("file:///android_asset/android.html"); when i build Android.apk file should that file be available inside a folder: android or android_asset or it should be just in root directory as android.html ? May 16 02:04:46 but it doesn't work, it seems to render BEHIND my GLSurfaceView May 16 02:05:43 I have a DrawerLayout, and inside of it a FrameLayout as content, and a ListView as slide-in-view. I aparenly am able to slide it in and even interact with it, but it's not drawn. May 16 02:06:27 BtbN hm, and thats with the first view (the content view) the glsurfaceview? May 16 02:07:35 g00s_, hm? May 16 02:07:42 https://gist.github.com/BtbN/5dac9237000ec516b582 that's the layout i'm using May 16 02:07:59 i then use addView() on the FrameLayout to add my GLSurfaceView May 16 02:08:40 hm, ok. not sure - i guess there is a reason why you can't add it directly w/o the framelayout ? May 16 02:08:45 * g00s_ never used glsurfaceview May 16 02:08:56 because it's a custom override of the class May 16 02:09:07 and why would it make any difference if it's in another layout? May 16 02:09:33 yeah i guess thats ok May 16 02:09:46 why not just ? May 16 02:09:58 because i can't pass parameters to its constructor? May 16 02:10:32 what the hell is a constructor, we don't use those in android May 16 02:10:36 hehe May 16 02:10:43 no idea, sorry May 16 02:11:24 BtbN i gigure you know what you are doing May 16 02:11:27 *figure May 16 02:11:46 so i'm assuming you know you can pass custom parameters & attributes via the layout May 16 02:12:09 not realy, i just started with android. May 16 02:12:38 well its here http://developer.android.com/training/custom-views/create-view.html May 16 02:12:46 maybe usage of glsurfaceview is special May 16 02:13:32 the strange thing is. The layer which handles the input seems to be ok with what i do. If i swipe out the ListView, i can't interact with the GLSurfaceView anymore, until I swipe back left. May 16 02:13:49 So i assume something goes wrong with the rendering May 16 02:16:53 huh, i would have thought http://developer.android.com/training/custom-views/create-view.html would talk about res-auto May 16 02:17:30 instead of belonging to the http://schemas.android.com/apk/res/android namespace, they belong to http://schemas.android.com/apk/res/[your package name] May 16 02:17:38 i think thats old May 16 02:19:56 hello all May 16 02:22:51 g00s_, putting the GLSurfaceView directly into the layout doesn't change a thing. Still the same behaviour May 16 02:23:14 hey QubeZ May 16 02:23:28 hey QubeZ May 16 02:23:55 hey guys May 16 02:24:17 i am down a rabbit hole of location spaghetti soup with crackers May 16 02:24:23 *location-ware May 16 02:24:26 *location-aware May 16 02:24:31 damn im tired May 16 02:41:44 Hello May 16 02:42:56 calabash is so unstable as sh* May 16 02:44:12 g00s_, http://stackoverflow.com/questions/20976149/drawerlayout-not-working-with-android-4-4-surfaceview that solved it. Ugly, but works... May 16 02:44:40 i want to upvote that answer, but i don't have any reputation -_- May 16 02:44:51 commenting needs even more May 16 02:44:58 Get some rep! May 16 02:46:47 theblang you got a response on reddit :) May 16 02:50:01 anyone used android ui automation before ? May 16 02:50:21 http://developer.android.com/tools/testing/testing_ui.html May 16 02:52:20 I've looked at it a little. Why do you ask? May 16 02:55:46 gordon May 16 02:55:51 Need some suggestions on location listener... I have it working with the Google Play Services lib. I'm trying to achieve the following, I have an AR Drone that I am going to feed it directions based on my movements (lat / lng changes). The Android location API should be sufficient to meet my needs ot distanceTo() and getBearing correct? **** ENDING LOGGING AT Fri May 16 02:59:58 2014