**** BEGIN LOGGING AT Thu Nov 26 03:00:43 2015 Nov 26 03:03:23 anyone using android-studio 1.5 with a custom keymap getting the error: "[key combo] which is now not loaded but may be loaded later" Nov 26 03:03:51 im using keymaps "emacs+" and I can't run certain key shortcuts :/ Nov 26 03:38:55 Hi, how can I create a voice changer in Android? Nov 26 03:59:39 you can't Nov 26 04:00:25 for phone calls? implement your own phone app Nov 26 04:07:45 is there a way to have a button's name read from a value? i.e. if textFile.txt only contains the string "A Cool Button", how would I have ButtonA's display text be "A Cool Button"? Nov 26 04:09:42 I thought you could use setText on button Nov 26 04:09:51 it's true Nov 26 04:10:21 Rush2112, use Button.setText() Nov 26 04:10:44 thanks Nov 26 04:10:46 Rush2112: Why are you reading this from some arbitrary file? Use `strings.xml`. Nov 26 04:11:15 i want the user to be able to enter in custom button names. can i have the user edit strings.xml? Nov 26 04:11:36 Save to local DB maybe Nov 26 04:12:35 Rush2112: What kind of app is this? Nov 26 04:16:53 I'm trying to make an app that's kind of like a calculator, but stores all the information. It's for people to keep track of how much money they're spending. I wanted to make custom buttons so that if someone spends money in a certain way a lot (i.e. dollar pizza slices), they can just make a custom button instead of having to manually enter it every time Nov 26 04:17:44 Pretty cool Nov 26 04:17:45 Okay, a flat file seems fine there. Or a database. Nov 26 04:18:08 SQLite is pretty staight forward Nov 26 04:20:48 Rush2112: If you go the flat-file route, you can use a BufferedReader and a BufferedWriter to read and write lines. Nov 26 04:21:19 ok, i just wasnt sure on how to set the button text. thank you. Nov 26 04:22:26 Whats up TacticalJoke Nov 26 04:23:17 Just watching tiger-versus-lion videos on YouTube. Typical Wednesday night. Nov 26 04:23:49 Cool cool Nov 26 04:53:21 hmm, what's a good way of animating button text? (like state selector, but for text/foreground) Nov 26 06:25:57 this might be a noobie question, is it possible for the network admin who controls the wifi router to see the contents of my device when i connect to his wifi router for internet ? Nov 26 06:37:05 its been some time, so il repeat the question Nov 26 06:37:07 this might be a noobie question, is it possible for the network admin who controls the wifi router to see the contents of my device when i connect to his wifi router for internet ? Nov 26 06:48:54 * tamarind starts to wonder whether his messages are reaching the channel ! Nov 26 06:49:10 tamarind they are, but they are off topic Nov 26 06:49:17 ask in #computer or something ;) Nov 26 06:49:48 hi all, can anyone clear some questions about leaderboards plz? Nov 26 06:49:51 g00s: oh sorry, i thought because the mobile is android this question might be somewhat related to android file system and security Nov 26 06:49:54 g00s: thanks for replying Nov 26 06:51:19 specifically - inconsitency in displaying scores in gpgs Nov 26 07:09:11 Hi there. I have an galaxy s4 device with me. I'm having an issue that as and when S4 reaches battery level 100%, it does not show up in `adb devices`... has anyone experiences this or have an idea why it would be happening? Nov 26 07:15:02 why does *my* app require "read phone status and identify" i have not requested it! Nov 26 07:15:24 my = i developed it Nov 26 07:16:28 ok i'm trying to read some stuff from a text file into a text view and i'm having a real hard time formatting it. can anyone lend a hand? http://hastebin.com/cizeyasone.tex Nov 26 07:16:48 kuldeep: if your minSdk and targetSdk are set to 3 or lower these permissions are added implicitly (see https://developer.android.com/reference/android/Manifest.permission.html#READ_PHONE_STATE) Nov 26 07:17:08 i have not requested the permission. manifest: and some other code for starting main activity Nov 26 07:17:44 your gradle file may be overriding those values? Nov 26 07:18:25 barbs, permission can be added via gradle script? Nov 26 07:18:59 I meant it might be overriding your minSdk and targetSdk to something below 3 Nov 26 07:20:17 barbs, compileSdkVersion=23 buildToolsVersion=23.0.1 (nothing else is specified regarding version information) Nov 26 07:21:10 hmm, try specifying a minSdkVersion and targetSdkVersion in defaultConfig Nov 26 07:21:27 anyone with gpgs leaderboards experience? i am finding that not all users scores are displayed despite having been submitted Nov 26 07:21:48 circles/all - all times Nov 26 07:24:39 barbs, defaultConfig { minSdkVersion 14 \n targetSdkVersion 20 } and still it require Nov 26 07:26:37 welp. I'm out of ideas! Nov 26 07:28:24 barbs, apktool on my own project ;) Nov 26 07:29:01 ah! I was thinking about checking the produced apk for the minsdk and targetsdk but I couldn't remember how to do it Nov 26 07:29:16 been a few months since I've done any actual android dev, I'm a bit rusty! Nov 26 07:49:12 barbs, missing "uses-sdk" in final manifest Nov 26 07:50:21 g00s: !!! Nov 26 07:50:42 and "WRITE_EXTERNAL_STORAGE" "READ_EXTERNAL_STORAGE" "READ_PHONE_STATE" are there. i did not request them :( Nov 26 07:51:03 kuldeep: they might be there because you're using something that implies them Nov 26 07:51:34 i.e. if you have android:orientation in your manifest, it's implied that you have require-feature:orientation Nov 26 07:51:45 thepoosh, i only requested: Nov 26 07:52:03 kuldeep: are you using 3rd party libs? Nov 26 07:52:08 thepoosh, and the use-sdk is missing from final apk Nov 26 07:52:12 thepoosh: that's a feature, not a permission Nov 26 07:53:21 AFAIK permissions need to be explicitly mentioned in the manifest, or in this case these 3 permissions are required if the minsdk and targetsdk are 3 or lower Nov 26 07:53:52 I'd recommend not targetting under 16, or 15 at the lowest Nov 26 07:54:11 cbeust, targetting 14. Nov 26 07:54:37 Why? Nov 26 07:55:22 cbeust, usb host and opengl are supported at that level Nov 26 07:56:01 It's not about that, it's about the odds that your app will crash on these devices in weird ways and the efforts you'll have to spend to avoid that. And all that for just a few percents of users who will upgrade in the next few months Nov 26 07:56:21 Just not worth it if you don't have an excellent reason Nov 26 07:56:27 thepoosh, android app compat, androidplot, android-preference-..... and some in house one Nov 26 07:57:46 cbeust, my app only require opengl es 2.0 and usb. and im using app compat. i will be able to run on those devices. (except corner cases) Nov 26 07:58:23 kuldeep: Famous last words :) I predict that in a few months, you'll remember this discussion and you'll regret not having listened, but good luck! Nov 26 07:58:49 kuldeep: when you run apktool on the apk what does apktool.yml show? Nov 26 07:58:56 cbeust, :) Nov 26 07:59:46 barbs, not yml files generated. (afais) Nov 26 08:00:20 hmmm maybe I'm using a different apktool to you. I used this on an apk https://ibotpeaches.github.io/Apktool/ Nov 26 08:01:22 I ran java -jar apktool_2.0.2.jar d myapp.apk and it spat out a folder with a bunch of stuff including apktool.yml Nov 26 08:01:41 it has sdkinfo in there Nov 26 08:01:51 with minsdk and targetsdk Nov 26 08:02:54 anyone know how to avoid mock network errors with okhttp? Nov 26 08:03:10 It seems to happen at random, so the request isn't bad. Nov 26 08:03:47 barbs, i think i got it. (still investigating) but some manifest xml was missing minSdk version, so it was adding it. as manifest merge log says Nov 26 08:06:21 Hi, how can I create a voice changer in Android? Nov 26 08:21:25 barbs, got it, was due to some manifests were missing min sdk version (set to atleast 4). fixed. thank you Nov 26 08:26:20 how do I play video from InputStream with ExoPlayer? Are there any /simple/ examples laying aroud the internet? Nov 26 08:43:58 kuldeep, glad you worked it out :) Nov 26 08:45:02 Hey, In camera1 api you could setPreviewSize() and set the height/width ratio.. how is it done in Camera2? I cant find a way to tell the camera the width/height ratio of the display Nov 26 08:48:11 I'm trying to fetch data from server. I'm using retrofit 2.0.0-beta for client side. But response body is always NULL. I'm geting 406 reponse and i don't know why? <-- HTTP/1.1 406 Not Acceptable (448ms). If I fetch the same data with postman or with curl everything works fine. What could be wrong? I already tried to change a convert factory. Nov 26 08:49:04 slani: you can use a proxy such as charlesproxy or burp, to have the raw HTTP request, and debug Nov 26 08:49:20 maybe it's formating, maybe it content-type, maybe it's user-agent, ... Nov 26 08:53:01 blusky: do you think thath I should write a custom deserializer Nov 26 08:54:13 if it's your request that bug, a deserializer won't help Nov 26 09:00:54 how can i let an external app handle a file on a webserver? using a normal open intent? i think it might just start the browser Nov 26 09:14:17 how do i generate different dpi image resources without having to actually make them different sizes in an image editor; in other words is there a way to generate them (within android studio) Nov 26 09:14:21 in an enum, can i count on the order of values() to be the same as what's defined in the sourcefile? Nov 26 09:14:44 thornekey: there exists tools like Sketch or Android Asset Studio (website) Nov 26 09:15:05 Ill check that out, thanks Nov 26 09:15:21 thornekey: Better do it with photoshop Nov 26 09:15:34 ok Nov 26 09:15:48 and you can make actions to save to sizes Nov 26 09:15:53 i have no problem making them manually, just thought thered be a quick..er way around it Nov 26 09:16:04 Yeah, make actions Nov 26 09:17:07 make a huge image, then batch process it into smaller versions Nov 26 09:17:10 or use .svg Nov 26 09:17:19 but i find it a bit buggy still Nov 26 09:19:30 what do you think a good size for xxhdpi is (its just an icon) Nov 26 09:25:42 8 Nov 26 09:26:57 8... Nov 26 09:27:09 8 pixels lol? Nov 26 09:27:22 thornekey: for the icons, I use this: https://romannurik.github.io/AndroidAssetStudio/icons-launcher.html Nov 26 09:28:30 is there any way to suppress lint warnings right inside values/string.xml ? Nov 26 09:29:34 Can fragments remove themselves or should the instantiator do it? Nov 26 09:31:21 Having fragments remove themselves will cause your code to be spaghetti like - keep simillar functionality in similar places :) Nov 26 09:32:29 Mavrik : well, you can getActivity().getFragmentManager() and so on, but cleanest way would be to use callback to activity Nov 26 09:33:06 sorry Mavrik, it's for autrilla Nov 26 09:33:33 thanks blusky Nov 26 09:36:00 does anyone know if there is some sort of onclick for markers when using the google api Nov 26 09:39:39 What markers? Nov 26 09:40:16 google map api markers Nov 26 09:44:08 https://gist.github.com/anonymous/0bc68deb8a6a228be979 so this is the way to do it Nov 26 09:46:45 what line/s specifically Nov 26 09:48:14 thornekey: the callbacks are at lines 41 and 47 Nov 26 09:51:16 hi guys, i have a slight problem in my app. At one point, I start an activity for result (capture of and image). According to the result, I have to start an activity or antoher one. It works, but I noticed that there are delays between the moment when I press "ok" in the capture intent, and the moment when the result is used and the resulting activity is fired. Somehow the screen freezes. Is there a way to do this that I'm no Nov 26 09:53:20 autrilla: thanks :) Nov 26 09:56:33 can't i hide sync adapter account completely from Accounts in settings ? Nov 26 10:00:38 H3bus, you're blocking the main thread with something. Nov 26 10:00:41 Hence the freeze. Nov 26 10:01:01 yeah, I guess so, but cant find out where Nov 26 10:01:15 H3bus: are you getting an ANR message? Nov 26 10:01:20 nope Nov 26 10:02:00 hmm Nov 26 10:02:04 have you tried profiling? Nov 26 10:02:42 nope, how should I do that ? I use Ubuntu and IntelliJ Nov 26 10:04:22 H3bus: there are built in ways to do that in your monitor and DDMS view Nov 26 10:19:16 thepoosh Mavrik I have a bunch of async tasks that are launching at the start of the second activity, but they shoulnt block the main thread, right ? Nov 26 10:19:41 Hi all, does somebody know if it's possible to have a layoutmanager for a RecyclerView like a FlowLayout, https://github.com/blazsolar/FlowLayout Nov 26 10:19:48 the question is, is it possible? and does it already exist? Nov 26 10:22:24 in android 4.4 (since 4.1?) when we start new activity soft keys sometimes become dots Nov 26 10:22:38 can i do something about it? Nov 26 10:27:26 H3bus, use a profiler to see what's going on the main thread. Nov 26 10:27:33 Don't guess. Nov 26 10:27:45 Ashiren, don't set the dim flag? Nov 26 10:28:24 i dont do anything Nov 26 10:28:48 new activity -> dots instead of key icons -> new new activity -> go back -> normal icons Nov 26 10:28:57 i bet it is a flag of some sort Nov 26 10:29:15 its annoying because notification bar is dimmed and no time is shown as well Nov 26 10:29:18 until clicked Nov 26 10:29:40 Yes, that's the dimmed mode made for video players. Nov 26 10:29:48 You're somehow causing it to trigger. Nov 26 10:29:55 hmm Nov 26 10:30:26 Ashiren, SYSTEM_UI_FLAG_LOW_PROFILE Nov 26 10:30:28 Is the flag. Nov 26 10:30:52 It turns soft keys to dots and hides stuff in top bar except battery and time IIRC. Nov 26 10:31:10 ah yes! i see it in code Nov 26 10:31:23 thx Nov 26 10:31:29 (not my project*) Nov 26 10:33:27 how does gmail unlock the lockscreen when pressing reply on a notification with lockscreen open? Nov 26 10:37:24 FrancescoV: sure it's possible. You could also fake it by setting a large number of columns ('spans') and have items be a varying number of spans Nov 26 10:37:50 by setting a SpanSizeProvider Nov 26 10:37:57 Zharf, isn't that implicit? Nov 26 10:43:02 osxorgate, I guess this will be a lot of work isn't it? the problem is, I don't have much time to make this so I was wondering what the options are ;) Nov 26 10:43:24 FrancescoV: if you have an idea of the relative size of each item, it's not a lot of work Nov 26 10:44:09 so say for example items can be 3,4 or 5 'units' wide, then it's easy as pie Nov 26 10:44:11 osxorgate, the items are simple, just buttons with a drawableright Nov 26 10:44:22 but you need to think of them in terms of relative size Nov 26 10:44:42 Mavrik, hm, perhaps, now that I think about it, but we don't want to use PendingIntent.getActivity because we need to run some logic first to see what we actually want to do :p Nov 26 10:44:47 of you set the amount of spans to the amount of pixels in the recyclerview ;) Nov 26 10:45:04 with PendingIntent.getBroadcast and PendingIntent.getService and then starting an activity from those doesn't work Nov 26 10:45:26 Zharf, hmm, no idea, honestly I've never seen that behaviour because I use a pin :/ Nov 26 10:52:23 What's the easiest/cleanest way to have a Fragment as a View ? Nov 26 10:53:59 Oh, you have to use fragment transaction things Nov 26 10:56:14 eeyup Nov 26 11:18:25 getGoogleAppid failed with Status 10 Nov 26 11:18:40 Anyone faced this issue ? Nov 26 11:18:55 My AutoCompletePlace stopped working suddenly this morning Nov 26 11:19:05 I can see this in logcat Nov 26 11:37:19 Anyone using Robolectric here? I could not understand its behaviour my tests are randomly passing/failing every time I re-run them without changing anything. Nov 26 11:38:48 This is the error I get when they fail: http://pastebin.com/8PFrXPkP Nov 26 11:49:24 is there a foolproof method to change app UI language from app itself? Nov 26 11:50:34 seems changing locale with updateConfiguration() only sometimes fails Nov 26 11:51:52 hello. if it is not recommended to run a background service infinitely , how does hangouts and facebook and the likes go about checking for new messages and notifying the user ? Nov 26 11:53:14 dsneves : GCM I guess Nov 26 11:55:52 so every device is a topic in gcm? and a person sending a hangouts message is not talking to a xmpp server, but is sending a message throught gcm? Nov 26 11:56:27 xmpp or something else Nov 26 12:03:16 Bah. Nov 26 12:03:28 Any ideas how to force EditText / TextView to relayout the text inside as the size changes? Nov 26 12:03:53 dsneves, not a topic, every device has an ID Nov 26 12:03:58 and you dispatch a message to that device id. Nov 26 12:04:03 Topic are new and are meant for mass messaging. Nov 26 12:05:38 Mavrik: hum ok.. so thats the way to go instead of background service? Nov 26 12:05:47 Of course. Nov 26 12:06:53 ok. thank you. one last question... how to know if the app is in the foreground? i mean, if i send a gcm message, then i have to know if i have to show a notification or display the message inside the app Nov 26 12:08:07 Keep track of resumed activities with ActivityLifecycleCallbacks Nov 26 12:10:17 oh nice... thank you ! Nov 26 12:14:09 hithere Nov 26 12:14:58 Hi, guys. Could you advise me some paid sites, which allow to test my application on different devices. Nov 26 12:16:25 Guest97807: https://aws.amazon.com/device-farm/ ? Nov 26 12:18:17 dsneves, it is automatic testing, i want manual testing. Nov 26 12:18:58 huh Nov 26 12:21:25 AutoCompleteView for autocomplete places stopped working suddenly Nov 26 12:21:47 any idea what could be issue ? googleapiclient gets connected Nov 26 12:44:56 dsneves : you can use background service to update data by request. and GCM just notify your app that it's time to start that service Nov 26 12:47:20 with ExoPlayer, how do I play media from InputStream? Nov 26 12:58:03 Help on Robolectric. randomly getting this exception http://pastebin.com/8PFrXPkP Nov 26 13:06:00 I have problem showing icons on ActionBar. Simply they are not showing even if there is enough room. I am extending my activity with android.support.v7.app.AppCompatActivity accordingly tohttp://developer.android.com/training/basics/firstapp/starting-activity.html. In menu.xml is "app:showAsAction="ifRoom" accordingly to http://developer.android.com/training/appbar/actions.html. Nov 26 13:06:01 After some stackSearch I have found out, that this app name space is used with ActionBarActivity not AppCompatActivity as G training guide states. And for Activity should be used android namespace as usual (which is in AppCompatActivity case its parent http://developer.android.com/reference/android/support/v7/app/AppCompatActivity.html). Pff... Nov 26 13:06:01 What type of activity do you extend for API11+? How do you adress your orderInCategory namespace? Nov 26 13:10:58 How do you overcome space problem using showAsAction and ifRoom... (having 4 icons, all of them ifRoom, does not show 3 accordingly to http://developer.android.com/design/media/action_bar_pattern_table.png , but they are moved to overflow instead. Only wahy how to show those 3 out of 4 is to set 3 of them as ifRoom and rest as never - which is not very usefull considering variability of devices displays... Nov 26 13:15:27 hello :) Nov 26 13:22:03 people Nov 26 13:22:18 i'm getting partial-trasparent image Nov 26 13:23:05 it's trasparent inside, and i want to invert it, so that trasnaparent part would be outside Nov 26 13:23:17 how to do it people? Nov 26 13:35:00 Hi I want to add an intent filter to a Service for twitter login callback url. so when the callback url is triggered I want my Intent service to capture this intent. Its possible for activities but I am not sure if it is possible for IntentServices. Does anybody tried something like this? Nov 26 13:39:02 can i have android download a file for me? so it just shows up in the notification bar. without having to do the networking code myself Nov 26 13:40:26 osxorgate: you can take a look at DownloadManager. Nov 26 13:40:47 http://developer.android.com/reference/android/app/DownloadManager.html Nov 26 13:41:24 I am sure if you search for example code you can find it easily. Nov 26 13:41:49 thanks Nov 26 13:42:07 Hello, is it a bad idea to have a static Fragment Manager? Nov 26 13:42:53 ghosalmartin: it is usually bad idea to have static variables on android. Nov 26 13:43:07 vudu: ahh okay Nov 26 13:44:02 they cause memory leaks and for the fragment manager case if the activity is destroyed you will have problems. Nov 26 13:57:38 ghosalmartin, normally static variables aren't a big problem, but just don't use them for anything that's bound to activity context Nov 26 13:57:49 application context is fine Nov 26 14:19:57 android.support.v7.widget.AppCompatButton + app:backgroundTint="@color/accent" doesn't work on a samsung device I've seen today. Any solution? Nov 26 14:22:07 Zharf: ah I see, I just wanted a static fragment manager because I was going to have a static Fragment handler that made it just one liners to add, delete replace fragments Nov 26 14:22:19 "The system creates a new task and instantiates the activity at the root of the new task. However, if an instance of the activity already exists in a separate task, the system routes the intent to the existing instance through a call to its onNewIntent() method, rather than creating a new instance. Only one instance of the activity can exist at a time. Note: Although the activity starts in a new task, the Back button still returns the Nov 26 14:22:19 user to the previous activity" Nov 26 14:22:50 does the old task get removed? Nov 26 14:23:03 or now we would have to tasks? Nov 26 14:23:09 i don't get that Nov 26 14:26:46 taspat, are you talking about singleTask or what? Nov 26 14:28:10 Anyone using Robolectric here? I could not understand its behaviour my tests are randomly passing/failing every time I re-run them without changing anything. This is the error I get when they fail: http://pastebin.com/8PFrXPkP Nov 26 14:28:38 I also reported the issue here. https://github.com/robolectric/robolectric/issues/2158 Nov 26 14:31:54 Zharf: yes Nov 26 14:35:52 hello Nov 26 14:36:37 Hi Guys, anyone here have develop a collaboration app, I'm taking about an app like a task manager, a manager can give task to his employee. :) Nov 26 14:37:03 the overview of the app kinda long, but I hope you get the point :) Nov 26 14:39:42 thats a nice idea androidnewb Nov 26 14:40:16 @pandabearcoder, thanks, I'm looking for a tutorial online, similar so I will have a base to start on Nov 26 14:41:26 im also here to learn, and get some ideas! Nov 26 14:45:20 AndroidNewb: sounds like Trello is similar in a way to the app you want to build. It's probably worth checking out if you are not familiar with it. Nov 26 14:45:57 @pduin, thanks, I'm gonna check it, thanks for the tip Nov 26 14:45:59 :) Nov 26 14:58:34 hi, anyone knows if ie, foursquare uses gps on a background service? Nov 26 15:13:38 https://youtrack.jetbrains.com/issueMobile/SCL-7973 Nov 26 15:13:41 awesome Nov 26 15:14:58 although I need to check if the 1.5 line imports into intellij ok Nov 26 15:24:54 how can i insert an item in my manifest in debug builds only? Nov 26 15:26:23 Add an AndroidManifest.xml to src/debug/ Nov 26 15:26:36 osxorgate, debug variant overlay Nov 26 15:27:21 and this androidmanifest contains the outer tag, and just the one inner tag i want? Nov 26 15:27:37 or manifest > application > mydebugservice Nov 26 15:27:49 not quite sure what the syntax is here Nov 26 15:30:22 osxorgate, see u2020 for examples Nov 26 15:32:19 cheers fellas Nov 26 15:47:38 hello Nov 26 15:58:09 offtopic: anyone know how to make that IDEA will show unicode arrow instead on -> Nov 26 16:10:20 Hi all Nov 26 16:10:32 anyone here is working on a project? Nov 26 16:15:18 no Nov 26 16:20:50 no, brazil is in crisis, no projects for us until next year Nov 26 16:22:08 I just started a pebble javascript app Nov 26 16:22:30 Leeds that RPi 0 is cool Nov 26 16:22:50 bitkiller did they all get flushed down the river when the damn broke ? Nov 26 16:22:52 so far, it turns out that writing simple JS for a simple device is quite... simple. The decent cloud IDE is nice as well Nov 26 16:22:58 those guys should be sent to jail Nov 26 16:23:02 g00s: https://imgur.com/gallery/cafIy Nov 26 16:23:32 Leeds can you use typescript or do you need JS ? Nov 26 16:23:51 I'm writing plain JS at the moment Nov 26 16:23:54 orbyt_ :D Nov 26 16:24:21 to be fair, so far my app loads a bunch of static data and displays it in a list... it's not complex :) Nov 26 16:24:30 i think those rpi0 are being put in magazine for free :D Nov 26 16:25:23 they are indeed being given away for free attached to the cover of a magazine... like they used to do with cassettes, then with floppies, then with CDs, then with DVDs... Nov 26 16:25:53 i still think Google should have done something like this, hardware accelerated dongle Nov 26 16:26:08 to use instead of emulator Nov 26 16:26:16 but i guess now the emulator should be improving Nov 26 16:26:43 (yes, they did put cassettes on the cover of magazines at one point) Nov 26 16:26:53 maybe they felt bad after MS made a better android emulator :D Nov 26 16:27:06 Leeds I remember CDs ... Nov 26 16:27:14 Hi, would anyone help me with a question? I am working with the Contacts API and going crazy.. :( Nov 26 16:27:37 g00s: https://pbs.twimg.com/media/CUwEJ5aXIAAEAsD.jpg:large Nov 26 16:27:45 i'd probably go crazy working with Contacts API also Nov 26 16:27:51 or actually, https://twitter.com/uisgebeatha/status/669915012748738560 Nov 26 16:28:18 g00s, i'm not exactly sure about what happened. some rural villages and small towns are suffering a lot and i think there are about 15-20 persons missing Nov 26 16:28:29 the river is also dead, they say Nov 26 16:28:53 bitkiller its sounded like one of the worst environmental catastrophes in recent times Nov 26 16:29:26 this is what happens with lax regulations, somebody will suffer - just not the corporation Nov 26 16:29:32 yes, it's pretty sad for the people in the region Nov 26 16:29:37 bitkiller you in brazil then ? Nov 26 16:29:44 yes Nov 26 16:29:50 parana state Nov 26 16:30:57 if heavy metals contaminated that 400 (!?) mile stretch from dam to sea ... many people will get sick Nov 26 16:31:08 think they were talking about arsenic and cadmium Nov 26 16:33:30 I am using RawContacts to get all whatsapp contacts (querying by contact_type as I saw in a stackoverflow q/a), but then I have my collection of contacts coming from my cordova contacts plugin, contacts there have an id that I need to match with the WhatsApp ones, neither CONTACT_ID not _ID seem to match, can anybody point me in the right direction, I have no idea what's going on Nov 26 16:33:42 being 3 days like crazy until I found this group Nov 26 16:34:49 cordovaDev i'd say read the Contacts provider source code ... but that will probably make you even crazier Nov 26 16:35:07 i have to vote that crap some of the worst shit i've ever seen in my life :) Nov 26 16:44:19 I agree, it is horrible, both the code for the provider and the code for the documentation, I am not a Java developer per se, I know and like java, but I actively develop in JS so being this my first cordova plugin has been a difficcult task Nov 26 16:44:36 do you maybe have any idea how can I match those IDs? Nov 26 16:47:05 oh man ppl on stackoverflow still asking about actionbarsherlock Nov 26 16:49:45 Moving from ABS to the appcompat stuff isn't really that time consuming Nov 26 16:50:52 pduin, have you been moving your app to appCompat - more precisely AppCompatActivity now? Nov 26 16:51:50 About half a year ago I think. I was a bit late to the appcompat actionbar party Nov 26 16:52:19 do you use menu items with ???:showAsAction and ifRoom value? Nov 26 16:53:33 app:showAsAction=ifRoom, yes Nov 26 16:56:07 pduin, how does it work for you on older API (16), disp in portrait mode on smaller display (like Nexus S, or Galaxy Nexus) Nov 26 16:57:02 Fine, I guess. I haven't heard any complaining at least. Nov 26 16:57:21 when it comes to situation, where tested device has smaller display hence less icons will fit, but you have in xml defined more items with always value? Nov 26 16:58:15 pduin, I have two main problems 1) I have 4 elements set to always, but all of them are moved to overflow Nov 26 16:58:41 2) using namespace "app" does not work - just android Nov 26 16:59:00 hi Nov 26 16:59:28 On normal phones I'm not using the top bar for icons. I have a bottom bar for that Nov 26 16:59:33 ad 2. - it shows icons only if appropriate number of items is set to always Nov 26 17:00:17 In portrait mode at least. In landscape it shows 5 icons and and an overflow icon on a HTC One Nov 26 17:00:28 at the top bar Nov 26 17:00:45 pduin, how do you check "normal" phone to show bottom bar? Nov 26 17:00:52 this is coming to android soon, should be pretty exciting http://zeroturnaround.com/rebellabs/what-are-fibers-and-why-you-should-care/ Nov 26 17:01:10 when using mocks for Android classes (with local unit test), let's say Context, what is the best use: Mockito mock of Context or the Android mock (MockContext)? Nov 26 17:02:20 bolovanos: " android:uiOptions="splitActionBarWhenNarrow" in the manifest file Nov 26 17:02:42 i think that is deprecated Nov 26 17:03:25 I have given up trying to precisely place menu buttons. That activity is written to support every screen size known to man. Nov 26 17:04:27 g00s: you are right. Deprecated in Android 5.0 Nov 26 17:05:26 Anyway, I have to go Nov 26 17:07:59 split action bar is deprecated in favor of doing anything you want with toolbar Nov 26 17:08:04 g00s, and you use AppCompatActivity with ???:showAsAction and if room walue withou problems I am observing( icons are moved to overflow even if there is place for them? Nov 26 17:08:22 or u pfn Nov 26 17:14:04 osxorgate: It's the future Nov 26 17:16:49 using namespace android for showAsAction, AppCompatActivity, gradle com.android.support:appcompat-v7:22.2.0, Nov 26 17:16:50 having 4 items - all set to ifRoom -> all being moved to overflow Nov 26 17:16:50 having 4 items - 2 of them ifRoom rest never -> two icons visible Nov 26 17:17:23 bolovanos first off, always use the newest appcompat ;) Nov 26 17:17:36 but its major version must == target/compileSdkVersion Nov 26 17:18:25 compileSdkVersion 22, minSdkVersion 11, targetSdkVersion 22 Nov 26 17:18:51 so you are behind then ;) Nov 26 17:27:06 Hi, I am facing a weird issue, in my code suddenly an id (@+id/image) started giving me problems. I've used this ID at many places in my app. My app started to crash giving ClassCastException on the element with that id. Changing it to image1 solved it. Any ideas whats going on? Nov 26 17:29:34 g00s, do you know that that this is that problem or just making fun of me? Consider few months ago there was no 23... - and btw - no this is not the problem... Nov 26 17:30:31 bolovanos not making fun, but appcompat is pretty buggy so you should get the latest ones Nov 26 17:41:50 Hi, does anyone knows how to match ID from RawContacts with Contacts table in the Contacts API? Nov 26 17:45:52 hmm, I appear to have written a working pebble app Nov 26 17:49:40 that was remarkably easy... tomorrow, I shall work out how to do complex things like have it run in colour, have it run on hardware rather than an emulator, and publish it. Nov 26 18:06:28 https://code.google.com/p/android/issues/detail?id=62293 Just to irritate everyone else... Nov 26 18:20:57 hey thepoosh Nov 26 18:21:02 hi hi Nov 26 18:21:26 watch the android summit videos ? Nov 26 18:22:07 not yet Nov 26 18:22:37 the tools one was pretty good, may have to slow it down to half speed though :D Nov 26 18:23:18 are they available split up yet? Nov 26 18:23:26 yeah Nov 26 18:24:25 thepoosh osxorgate https://www.youtube.com/playlist?list=PLWz5rJ2EKKc_Tt7q77qwyKRgytF1RzRx8 Nov 26 18:29:19 g00s: cool Nov 26 18:30:44 hello how to report an ndk-build bug? Nov 26 18:31:20 https://code.google.com/p/android/issues/entry Nov 26 18:32:04 thanks, I don't see a category for the NDK :( Nov 26 18:35:01 http://groups.google.com/group/android-ndk Nov 26 18:35:05 ask ehre i guess Nov 26 18:35:07 here* Nov 26 18:44:36 is it possible to use a svg file as a ressource for an imageview ? Nov 26 19:55:37 Hello guys Nov 26 19:55:40 My app has been suspended due to copyright infringement and I want to update it without that content. How? It doesn't let me. Nov 26 19:56:26 need some help https://gist.github.com/mr-fool/7227a3f094c61be0a8f7 when I resume the activity it won't play the song :< Nov 26 19:56:32 TacticalJoke, Nov 26 20:34:20 I've got a bunch of fragments I'm using in my activity. Nov 26 20:34:35 Should I use different interfaces for each one and have the activity implements a bunch of different interfaces? Nov 26 20:34:38 Or should I just make one Nov 26 20:34:49 That shares loads of methods, and then different fragments use different ones. Nov 26 20:35:02 And then have the activity only implement that one? Nov 26 20:35:33 Just thinking if there's a downside to having an activity implement load of different interfaces. Nov 26 20:35:36 ? Nov 26 20:35:54 is it possible to create a keyboard... that extends default keyboard ? Nov 26 20:36:07 (I want to create a keyboard that filter some words ...) Nov 26 20:38:50 hey so I'm getting data from a REST API, and storing them in a list. But since there are subsequent pages of such data, if it is updated fast enough I get a bunch of repeats. Should I be using a Set or something else instead of a List<>? Nov 26 20:39:46 AKK9: It doesn't matter if something implements a lot of interfaces. Nov 26 20:46:10 AKK9: It doesn't sound like a good idea to reuse one interface for lots of different things. Nov 26 20:48:34 TacticalJoke: thanks man Nov 26 20:48:39 I know my questions are a bit noddy Nov 26 20:49:13 Do i have to put all my layout files under /layout? Nov 26 20:49:18 Or can i make loads of sub folder and stuff? Nov 26 20:49:38 ? Nov 26 20:50:11 like can I put my fragment layouts under /layout/fragments/ and put my row layouts in /layout/rows/ Nov 26 20:50:13 ? Nov 26 20:50:59 guys any recommendations about the List thing? Should I be using some form of Set instead? Nov 26 20:51:51 AKK9: yes, you can do this. You just need to add nested resource folders to your buildscript. Example - https://github.com/eskimoapps/ResourceNestingExample Nov 26 21:01:59 StarLigh1: Thanks Nov 26 21:12:16 My phone keeps connecting and disconnecting from ADB every two seconds or so on linux. Any idea what could cause this? It works fine on Windows. Nov 26 21:47:36 I need something that can hold onto my objects when switching activities, what should i use? Nov 26 21:49:12 In main activity i'm creating these objects, then in activity 2 i'm using something else, going back to main activity should remeber these objects Nov 26 21:54:26 dersand: Why can't the activity hold onto them? Nov 26 21:55:49 TacticalJoke: doesn't the activity destroy it's object(garbage collector) when initiating a new intent and starting that? Nov 26 21:57:54 hey guys Nov 26 21:58:05 has anyone integrated with google fit? Nov 26 21:58:41 dersand: Not typically, although activities are destroyed on rotation and backround processes are killed in low-memory situations. Nov 26 21:58:49 dersand: What are these objects? Nov 26 21:58:57 background* Nov 26 21:59:18 TacticalJoke: An arraylist of a custom class Nov 26 22:03:22 dersand: A simple (but not always great) way to outlast an Activity is to use a static field. Static fields stay alive for the duration of the process. Nov 26 22:03:48 Another possibility is to save the thing in the Bundle in Activity.onSaveInstanceState. Nov 26 22:05:51 The latter approach entails surviving process kills, but you might have to implement Parcelable, which isn't necessarily pretty. Nov 26 22:09:04 is there anyways to fake an activity? Nov 26 22:09:17 google fit wants me to pass it in an activity but i do not want to Nov 26 22:23:28 how is it possible that when drawing on a Canvas, the drawing is black even though I set it red? Nov 26 22:35:50 because you didn't actually set it red? Nov 26 22:36:52 eg 0xff0000 isn't red Nov 26 22:37:27 also shouldn't be black, though Nov 26 22:41:19 I have paint = new Paint(Color.RED);. what do you think it does? Nov 26 22:42:48 not what you think it does Nov 26 22:43:40 this isn't my post, but .. if my thought is incorrect, how can that triangle there be red?? http://stackoverflow.com/questions/20544668/how-to-draw-filled-triangle-on-android-canvas Nov 26 22:46:59 http://developer.android.com/reference/android/graphics/Paint.html#Paint() Nov 26 22:48:19 wow, nice input. Nov 26 22:49:22 match the constructor you are using with passing Color.COLOR to the one on that link that says you can do that Nov 26 22:50:49 oh really? isn't that exactly like the line of code I wrote here 9 minutes ago? Nov 26 22:52:20 there is no constructor that accepts a color int and passes that to the paint as the color. you can create an emtpy, create passing style int, or create passing an existing paint Nov 26 22:53:18 right now you are just passing the value that Color.RED returns as a style int, it has no idea you wanted your color red Nov 26 22:53:35 create your paint object, the setColor on the object Nov 26 22:56:00 saapas, failure at reading the docs is strong in this one Nov 27 00:42:38 o/ Nov 27 00:43:36 so im trying to use a Palette callback to color a view in every row of a listview, but its only working on the last row. what am i doing wrong? lol Nov 27 01:56:48 Leeds vim is at 7.4.9xx - something is probably going to happen soon :) Nov 27 01:58:16 do you have any recommendations for phone mounts in a car? Nov 27 01:58:43 I have a Ram mount that uses a cupholder base. it's good, but takes up one of the cupholders Nov 27 01:59:06 when an Activity starts another Activity it stops updating its UI until the new Activity has loaded Nov 27 01:59:13 I'm looking for a different place to mount it, ideally something semi-permanent. I do not like the idea of adhesive on the dashboard Nov 27 01:59:15 is there any way to avoid this? Nov 27 01:59:21 RustyShackleford i've heard good things about these https://www.rammount.com Nov 27 01:59:32 oh lol, nm Nov 27 01:59:50 g00s: yeah great quality stuff. And it's modular Nov 27 02:00:12 erisco time to read the Activity 101 lifecycle docs Nov 27 02:00:29 I'm more looking for ideas of where to mount it haha Nov 27 02:00:33 It shouldn't stop updating its UI. Nov 27 02:01:31 isn't onStop() called when the next activity is opened Nov 27 02:02:01 I don't see why you'd expect the UI to continue updating. It would do that when you resume that activity Nov 27 02:02:31 It should continue until the new Activity shows. Nov 27 02:02:41 the next activity takes time during OnCreate to do layout Nov 27 02:02:57 during that time the first activity is not updating UI Nov 27 02:03:16 erisco: Are you saying that NewActivity.onCreate is so slow that it blocks the main thread? Nov 27 02:03:31 so for example, if I just have an activity that shows a loading indicator, and I start a new activity that has many UI elements, the spinner will stop animating for half a second or so Nov 27 02:03:57 erisco: Are you running on 5.0+? Nov 27 02:04:34 There is a problem exhibited on 5.0+ where an indetermine ProgressBar's animation won't run immediately if an Activity transition is used (which is the default). Nov 27 02:05:05 You can fix this by saying `intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);` on the Intenet that starts the Activity. Nov 27 02:05:26 indeterminate* Nov 27 02:05:41 Intent* Nov 27 02:09:37 As far as I know, it's not possible to fix this with the launcher Activity unless we disable *all* animation for that Activity (which isn't always wanted). Nov 27 02:14:54 I added those flags but it did not change the problem with the spinner stopping Nov 27 02:14:59 Doh! Nov 27 02:15:16 If you're getting an actual pause, it sounds like you're blocking the main thread. Nov 27 02:16:06 maybe so, though it is hard to tell where Nov 27 02:18:38 I will need a profiler Nov 27 02:18:51 ideally one which is aware of Android Nov 27 02:19:50 There's stuff in Android Studio (under the CPU tab), but I've not found it to be amazingly accurate in the past. Nov 27 02:20:37 I suspect it is time taken to do layout because the activity being started has the most UI elements and it has the most noticeable effect Nov 27 02:21:25 even in a list adapter there is noticeable latency when scrolling due to inflating layout for rows Nov 27 02:32:34 traceview is extremely accurate Nov 27 02:37:53 erisco: How many views does it have? Nov 27 02:38:28 I haven't counted Nov 27 02:38:34 I'd guess around 100 Nov 27 02:38:44 ;o Nov 27 02:38:46 Why so many? Nov 27 02:39:30 it is a tabbed layout Nov 27 02:40:46 How do i go about creating an app that runs on a users device and can send input events? We need to create an app that runs on our employee devices and configures their device Nov 27 02:42:04 erisco: It's hard for me to imagine an Android app that needs 100 views on one activity. Nov 27 02:42:44 Well, I can imagine it, but the things I'm imagining are weird. Nov 27 02:55:37 and not weird in a good way... Nov 27 02:59:15 100 views :O **** ENDING LOGGING AT Fri Nov 27 03:00:52 2015