**** BEGIN LOGGING AT Sun Jun 26 02:59:58 2016 Jun 26 03:06:38 hey, I would like to start a service from boot that never dies. I have currently created a WakefullBroadcastReceiver however it doesn't have an option to run the service in the foreground to ensure it isn't killed. Is there a way to ensure a background service doesn't die? Jun 26 03:08:17 Or is there a messaging API which connects to a service and waits for messages to be pushed to it? (I am thinking on using MQTT however any other protocol that is supported natively will do) Jun 26 03:13:46 wyoung mqtt won't work well these days on android Jun 26 03:14:12 the only reliable way you can be woken up if GCM Jun 26 03:14:18 for incoming messages Jun 26 03:15:21 hmmmm, and it needs to go back to google for that :\ Jun 26 03:15:45 I would prefer to set it up on a local network Jun 26 03:16:41 g00s: I guess the other choice is to keep the device awake but in a lower power state? hmmmm Jun 26 03:16:58 android actively fights that Jun 26 03:18:09 as in Android OS itself or Play app requirements? Jun 26 03:19:37 g00s: hmmm, well I could ensure my MQTT service is still running via watchface service? (Android wear 2.0 preview) Jun 26 03:21:01 or via a very periodic Alarm? with a wakelock perhaps? Jun 26 03:36:58 Hey guys, on my Nexus 9 here with a nVidia Tegra processor, it seems that sometimes glBufferData() will not work properly if I delete the buffer I passed to it right after. Calling glFinish() in betweem seems to work around that. Is that possible? Is that a bug? Jun 26 03:37:38 not deleting the buffer also does not exhibit the behavior. Jun 26 03:58:21 hello Jun 26 03:59:13 '/ Jun 26 04:00:04 how can i set a background image on my layout, so it centers on the screen, not to stretch to fit or try to show it all, just like a css cover Jun 26 04:05:41 g00s: Still there? Jun 26 04:39:24 pfn: ? Jun 26 04:57:36 ? Jun 26 05:36:48 hello Jun 26 05:39:35 hi dunkel2 Jun 26 05:40:17 hi, im trying to set a full screen background on my app, but i cant make it fullscreen, how can i do that? i have this image: Jun 26 05:40:41 http://d.pr/i/Pa0K Jun 26 05:41:06 i made a 1080x1920 image and set some guides there, one for th e status the other for the bottom bar Jun 26 05:41:17 but when i add it to my layout with wrapcontent i see that Jun 26 05:41:44 in my mind, that is supposed to show only the blue part, as the other colours must be hidden or cropped Jun 26 05:58:38 hello? Jun 26 06:02:42 could anyone help me with identifing some information on a nexus tablet I bought Jun 26 06:03:19 nexus 7 came with ubuntu no idea on storage size or anything and I need to do reflash Jun 26 06:06:42 check #android-root or #android Jun 26 06:13:54 ok Jun 26 06:16:10 hi Jun 26 06:30:27 bye Jun 26 06:30:42 Ashiren: you scaed him away! Jun 26 07:10:20 pfn: you there? Jun 26 07:10:33 what Jun 26 07:17:30 hi guys Jun 26 07:17:54 guys,I need a suggestion for managing my project structure. Jun 26 07:18:34 I want to group my related files to clarify project structure. Jun 26 07:19:02 At first, I added a group of my files a andoird library. Jun 26 07:19:15 but I noticed that I can use sourcesets too Jun 26 07:19:33 what do you suggest?which one is better? Jun 26 07:19:42 (in andorid studio) Jun 26 07:20:45 In addition, is it a god idea to make for example "libraries" and a root project with 2-3 subprojects in it? Jun 26 07:24:43 pfn: I am just wondering what is recommended for push like/ MQTT services Jun 26 07:33:29 to do what, gcm then Jun 26 07:56:17 making android game app is difficult? Jun 26 07:56:52 hi guys Jun 26 07:56:56 LunarEclipse120: lol Jun 26 07:57:23 you aren’t sleeping now Jun 26 07:57:45 i have compiled android from source code. i can see system.img, cache.img and ramdisk.img but no boot.img Jun 26 07:57:59 can someone help out how to make boot.img Jun 26 07:58:17 mimtf: Couldn't sleep. Why are you hwre? Jun 26 07:59:07 here? Jun 26 07:59:11 Yes Jun 26 07:59:28 i must earn money with game app. Jun 26 07:59:33 android game app Jun 26 07:59:41 For fucks sake Jun 26 07:59:46 Im going back to bed Jun 26 08:02:21 making android game app is difficult? Jun 26 08:19:17 mimtf: very Jun 26 08:20:47 gordon_: what you mean? Jun 26 08:27:53 very difficult Jun 26 08:28:11 but honestly Jun 26 08:28:15 depends on what you're using Jun 26 08:28:36 gordon_: i m too poor, so i must earn money Jun 26 08:28:50 but i have no skill to make android game app Jun 26 08:29:09 so i can get apk file of game app? Jun 26 08:29:21 from some android developer? Jun 26 08:30:49 gordon_: ? Jun 26 08:36:03 haha, no Jun 26 08:36:27 download unity, play with it Jun 26 08:36:34 and maybe you will make something Jun 26 08:42:52 pfn: yeah I don't really want to use a google service, I would rather host is on my own servers in local network Jun 26 08:52:36 all push notifications come from gcm Jun 26 08:52:42 at least system onec Jun 26 08:52:44 *ones Jun 26 08:53:39 gordon_: unity? Jun 26 08:55:43 I'm out Jun 26 08:55:45 -> Jun 26 08:56:40 gordon_: *bails* Jun 26 08:57:40 ;) Jun 26 09:08:38 gordon_: what is unity? Jun 26 09:08:57 jackbrown: you are android developer? Jun 26 09:09:13 I'm not Jun 26 09:09:39 anyway you can make it? Jun 26 09:09:47 android game app. Jun 26 09:10:27 mimtf, I've had successful Android game apps Jun 26 09:10:51 Ologn: you can give me apk file? Jun 26 09:16:29 -_-" Jun 26 09:24:58 guys Jun 26 09:25:41 I have a big project with few variants which each variant differs only in 1 class with others. Jun 26 09:26:29 I can make those variants and my class in each one. Jun 26 09:26:39 but how I can use those classes in main project? Jun 26 09:27:49 I mean,for example whn I build variant x, all files from main project and class in variant x will get used, and when building variant y, all files in main project and class in variant y. Jun 26 09:29:22 hithere - not sure, but what about flavours? Jun 26 09:30:01 i'm using them for making variant Jun 26 09:30:56 but not sure how I can make project with main files + variant files. Jun 26 09:40:01 hero_biz, put your classes in common under src/main, put your flavor classes under src/flavor1 src/flavor2 search about it online, it's documented, poorly but it's documented Jun 26 09:43:24 I have done thid Jun 26 09:43:27 *this Jun 26 09:43:37 i have put 1 in src/main Jun 26 09:43:48 and similar ones for flavors Jun 26 09:44:11 but when I build,it uses default one, not flavor one. Jun 26 09:45:15 is it important to give different applicationId to each flavor? Jun 26 09:49:56 yes Jun 26 09:55:11 sources in different flavors replace eaach other, but not what is in main. Jun 26 10:00:14 ok,now :) Jun 26 10:01:07 don't put in main the classes you have inside the flavor path Jun 26 10:04:00 yea,removed it and it si ok now. :) Jun 26 10:11:48 Hello to everybody! I would like to ask, what do you guys use for prototyping your apps? I would like a tool where I could lay out how my application would work visually and logically how would the activities connect to each other. Do you have any ideas, preferrably some free tools? Jun 26 10:17:41 now to to modify clean task....default clean task is really idiotic. Jun 26 10:17:43 task clean(type: Delete) { delete rootProject.buildDir } Jun 26 10:18:21 tested, when I clean project, my project frolder goes from 78MB to 77MB.... Jun 26 10:18:55 I don't know why ot does not delete everything in every build folder. Jun 26 10:20:36 It deletes everything in every build folder by default Jun 26 10:21:01 it does not for me... Jun 26 10:21:06 I wonder why... Jun 26 10:21:45 Something in your setup is changing it then Jun 26 10:22:16 I have not done anything special. Jun 26 10:23:12 i can make a project strucure and show my build.gradles. Jun 26 10:25:37 Sure Jun 26 10:26:00 If you've stumbled upon a bug you need a test case to file on b.android.com as well Jun 26 10:32:51 http://paste.ubuntu.net/17902372/ Jun 26 10:33:33 i made a project structure and pasted gradle build files after it. Jun 26 10:34:17 Why have you defined a clean task? Jun 26 10:35:39 Looks like you're telling to not to delete every build folder Jun 26 10:36:02 I have not defined it Jun 26 10:36:17 when I clean project for 1sttime, it gets defined automatically Jun 26 10:36:18 Who did? Jun 26 10:36:42 then I guess android studio? O.O Jun 26 10:38:15 That's not supposed to happen Jun 26 10:39:15 I removed that task Jun 26 10:39:35 but files in build folder does not delete. Jun 26 10:39:52 let me clean cache and try again. Jun 26 10:43:04 it does not get generated anymore... <.< Jun 26 10:45:01 this is a part of gradle console when I run clean. Jun 26 10:45:02 http://paste.ubuntu.net/17902765/ Jun 26 10:45:41 I wonder why line 7+ should run.... Jun 26 10:46:14 i don't do rebuild,I think they should run on rebuild... Jun 26 10:47:12 it seems "clean project" and "rebuild project" do same thign for me. Jun 26 10:48:25 Just run the clean task directly Jun 26 10:48:55 gradlew clean? Jun 26 10:49:00 Yep Jun 26 10:49:24 Not sure why you'd do that when working in AS tho, leads to lots of errors until you build Jun 26 10:49:49 cleaning project? Jun 26 10:50:08 Removing every build folder Jun 26 10:50:31 I want to clean project to get smaller for sending it to a git repo. Jun 26 10:50:56 I didn't want to send items that can be made locally into git. Jun 26 10:51:00 Uh, set up .gitignore to not include the build folders Jun 26 10:51:23 https://github.com/github/gitignore/blob/master/Android.gitignore Jun 26 10:51:29 ok. :) Jun 26 10:52:08 but anyway,if I clean project, files in builds directory will be remade after making project again,isn't it? Jun 26 10:52:27 Yes Jun 26 10:55:24 ty for help simon Jun 26 10:59:52 i guess adding **/build/ to .gitignore will do what I want. Jun 26 11:02:40 where is admin... Jun 26 12:23:24 hi guys is there a way to get a cache directory location without having to pass the Context everywhere? Jun 26 12:25:51 where are you that you can't access a Context? Jun 26 12:28:36 in my services that do REST api calls Jun 26 12:28:42 I don't want to pass it everywhere Jun 26 12:29:34 Right now i am doing this, but not sure if its safe. Have a static class called "Globals" and set Globals.cacheDirectory = getCacheDir() on activity resume Jun 26 12:34:27 Why not pass a path when initializing the service? Jun 26 12:34:38 Usually dependency injection does that for you, but you can do manually. Jun 26 12:37:44 i am not using a DI container Jun 26 12:42:36 Mavrik: what you using for DI ? Jun 26 12:43:31 Mavrik: how would one DI the cache dir using Dagger? :/ Jun 26 12:57:25 hi all what tool do you use to draw a mock UI? do u just use pen and paper mainly or is there a software that helps with this? Jun 26 12:58:18 I've heard Balsamiq is great but moneyz Jun 26 12:59:38 cool. looks like its not free Jun 26 13:00:21 droidace: "but moneyz" «« already said that :) Jun 26 13:00:51 ya. i wonder if there's any free one Jun 26 13:05:15 hi, does someone know bluestacks and this networking on it? Jun 26 14:32:10 I have a master activity/fragment, where images are shown in a GridView (using a CursorAdapter). In the detail fragment, I want to show some images but in a *horizontal* gridview (single row). What's the best way to achieve this? Jun 26 14:32:29 preferrably, I'd want to re-use the same CursorAdapter... Jun 26 14:33:04 I've found a "trick", on StackOverflow, which describes setting up a single column GridView, and rotating it 90 degrees... That works, but is that extremely hacky? Jun 26 14:34:29 Use RecyclerView, both LinearLayoutManager and GridLayoutManager lets you specify an orientation Jun 26 14:36:15 SimonVT: How do you mean? I guess my question is, is it "OK" to use rotate a GridView like that, or should I do the work and implement a HorizontalGridView? Jun 26 14:37:10 You should not use GridView at all, you should use RecyclerView Jun 26 14:37:22 Aha Jun 26 14:39:41 SimonVT: public class HorizontalGridView extends RecyclerView Jun 26 14:39:53 so HorizontalGridView *is* a RecyclerView Jun 26 14:41:06 leanback is tv stuff Jun 26 14:41:15 Just use RecyclerView and GridLayoutManager Jun 26 14:44:51 Thanks for the tip! I'm looking into it now. But, just out of hand: is it a big rewrite to change existing code from using a GridView, to use RecyclerView/GridLayoutManager? Jun 26 14:45:03 why would you extend recyclerview Jun 26 14:45:24 I have run Analyze -> Inspect code, one Lint info says "Missing density variation folders in 'src\main\res': drawable-mdpi, drawable-hdpi, drawable-xxxhdpi" Jun 26 14:45:29 and it's very little. change Jun 26 14:46:28 since I have vectorDrawables there - I thought that there is no need to create special folders for each resolution Jun 26 14:46:43 what does it really mean? Jun 26 14:50:59 It just means that you don't have those folders.. Suppress it if you don't care about the check Jun 26 14:58:06 SimonVT, I have right clicked on that notice in Inspection Result Jun 26 14:59:12 and chose "Suppress with @..." Jun 26 14:59:55 Suppress it with lint.xml Jun 26 15:00:05 If you run the lint task and read the report it should point you to the documentation Jun 26 15:00:13 but nothing really happened Jun 26 15:01:15 ad lint.xml - I thought that AS add this Suppress to lint.xml (which does not exist right now...) on its own Jun 26 15:01:58 hi, anyone familiar with alarms? onenabled doesnt seem to run.. Jun 26 15:02:12 btw ad report - it that is what you might have on your mind - it says "Select inspection result on left to see details" Jun 26 15:02:49 but on the left is only information I have posted earlier "Missing density..." Jun 26 15:07:35 which means I do not know lint id to add it to lint.xml Jun 26 15:09:24 Luckily the lint report tells you Jun 26 15:12:14 SimonVT, thats what I see now https://snag.gy/I5cBG4.jpg Jun 26 15:12:35 gradlew lint Jun 26 15:21:59 No one here? Jun 26 15:22:54 Is it best to define event method for button in XML or in Java file? Jun 26 15:23:28 or event listener.. i don't know Jun 26 15:23:45 java Jun 26 15:23:46 i prefer to keep code things near other code things Jun 26 15:24:13 but its clear and easy with XML Jun 26 15:24:33 the syntax is java for it is complicated Jun 26 15:24:47 so why still java? Jun 26 15:24:55 xml definition doesn't work in fragments Jun 26 15:25:14 ah Jun 26 15:25:35 And it's not really complicated Jun 26 15:25:57 somewhat cryptic syntax still Jun 26 15:26:01 idk about fragments yet but i see Jun 26 15:26:22 Cryptic syntax? Jun 26 15:26:42 anonymous inner class thing Jun 26 15:26:45 AS will autocomplete 95% of the method call and isntance creation, as well as collapse it down to a few lines Jun 26 15:26:58 i guess im not used to it Jun 26 15:28:40 SimonVT, thank you - this is more talkative lint output Jun 26 15:35:37 SimonVT: just tested autocomplete, yes sounds fair enough Jun 26 16:14:58 So if I have class A and then class B (Class B is a static inner class) Jun 26 16:15:04 If class B has a private String field Jun 26 16:15:10 I can access that from within class A right? Jun 26 16:15:21 With ClassBInstance.propName Jun 26 16:18:51 drose379, should be easy to test ;-) Jun 26 16:19:38 ktwo, :) Jun 26 16:22:19 Does anyone use Picasso? Jun 26 16:22:23 I noticed soetimes it doesn't fade. Jun 26 16:22:52 I have an image which is loaded by PIcasso as soon as the activity is created. Jun 26 16:23:00 It won't when loaded from memory Jun 26 16:23:24 Yeah, its not that though. Even on item sloaded from the web. It is because of the activity transition or something? Jun 26 16:23:46 Most of the time it fades, but every now and then the activity transition finishes and the image pops in. Jun 26 16:24:01 I can only think its because the transition blocks the fade animation Jun 26 16:24:11 And then it just updates the imageview after it finishes Jun 26 16:24:13 I coujld be wrong. Jun 26 16:24:32 I have the indicators on to see Web/cache Jun 26 16:24:39 Happens on stuff from disk and web sometimes Jun 26 16:25:29 I'm gonna put a couple seconds delay between activity oncreate and loading the image. See if i can recreate it then Jun 26 16:37:10 Tested 50 more times and can't recreate it Jun 26 16:37:20 I think its becuase of the activity transition. Jun 26 16:37:31 Have you ever had this kind of issue? Jun 26 16:48:43 hey guys, I'm trying to use call a java method from my NDK (C++) code, but I can't quite figure out how to get access to the JNIEnv without having to call a native mathod first and saving the JNIEnv somewhere. Is there a way to get a pointer to it without the native callback first? Jun 26 16:56:46 Im leaning towards setting up a JNIContext class and just calling an init() native method on it first and storing the pointer, does this make sense? Jun 26 16:59:22 Okay I figured it out. If Picasso fades an image into an imageview while activity transition is running you don't see the fade, but once the transition finishes the imageview updates and the image just appears. Jun 26 17:03:51 Hey Guys .. Maybe Someone can help .. I have a Listview which gets Vars from JsonArray .. but i need to be there a hidden value, which i can call via onclick .. code: http://pastebin.com/KdKSb2fk Jun 26 17:05:27 MESSAGESHOW.JAVA should get the messageID of what i clicked in MESSAGESOVERVIEW.JAVA .. Jun 26 17:29:00 Does a regular vanilla non-service app continue to execute when it's not the displayed app, or does it get paused? Some google search results say that the app is paused, however my test app which fetches a web URL (on my own web server) once a second seems to keep on hitting the webserver once a second even if another app is showing and even if I tap the power button to lock the screen. Jun 26 17:39:41 vanilla? Jun 26 17:40:26 non-service app like activity? with a background thread? Jun 26 17:40:41 background thread may continue to work even if activity is destroyed Jun 26 17:51:46 Ashiren, I'm using a timerHandler/Runnable and .postDelayed(), so I'm not sure if that's a thread or what Jun 26 17:52:34 afair that works too after activity is destroyed Jun 26 17:53:24 also keep in mind te runnables are usually anonymous classes so they hold implicit reference to outer class (ie. Activity) thus oter class wont be garbage collected properly Jun 26 17:58:25 how can I clean the TextView after the Toast got showed? Jun 26 17:58:29 http://pastebin.com/VsA9MzhV Jun 26 17:59:18 varaindemian "with a cloth or something?" Jun 26 18:00:21 g00s: hm? Jun 26 18:00:36 sorry I'm totally n00b Jun 26 18:00:47 sorry, reference to us politics ;) Jun 26 18:02:56 I think after Toast.makeText(MainActivity.this, "Settings got tapped " + ourMessage.getText(), Toast.LENGTH_SHORT).show(); numTimesClicked = 0; needs to be the thing, but I'm not sure what Jun 26 18:07:00 what about ourMessage.setText(""); Jun 26 18:08:03 that would work /: Jun 26 18:08:58 mhm Jun 26 18:10:58 interesting job in glassdoor. requested: Jun 26 18:10:58 Mobile Developer | requirements: 5+ years of experience in developing C / C++ on Linux. Jun 26 18:12:01 Ashiren: yeah, ty Jun 26 18:12:34 I thought there is a more elegant way Jun 26 18:35:01 I'm trying to write to one of the getExternalCacheDirs() results, and I Get UnauthorizedAccessException why could that be?? Jun 26 18:39:35 targeting 23? running 23 device? Jun 26 18:40:04 running 23, targeting 22 Jun 26 18:41:10 did you give the correct permissions? Jun 26 18:42:13 Um. Jun 26 18:42:13 No permissions are required to read or write to the returned paths; they are always accessible to the calling app. Write access outside of these paths on secondary external storage devices is not available. Jun 26 18:42:15 yup, Jun 26 18:42:47 I have that, just in case. Jun 26 18:43:04 mz|alex, how are you trying to write there? Jun 26 18:43:07 I'm writting to Secondary external storage (which is sdcard on s7) Jun 26 18:43:26 Mavrik I'm doing it from c# on unity Jun 26 18:43:36 using Directory.CreateDirectory() Jun 26 18:44:09 but I'm calling a java object to get the dirs before. Jun 26 18:44:30 using getExternalCacheDirs() and choosing the second option it comes out from it Jun 26 18:44:40 which is the secondary storage Jun 26 18:44:46 Can you double check what the actual resolved path is? Jun 26 18:46:27 externalCacheDir: /storage/0123-4567/Android/data/com.okular.vrnode/cache (comming straight from a Log.i I set on the java object) Jun 26 18:46:45 is there a way to make an alert dialog non-dismissable on a button press? What I'm really trying to do is pop an alert dialog with an EditText to get some user input value, I want to have the cancel button always dismiss but the submit button should only dismiss if there's a value Jun 26 18:47:01 (29921): UnauthorizedAccessException: Access to the path "/storage/0123-4567/Android/data/com.okular.vrnode" Jun 26 18:47:05 or would I have to create my own activity and show it as a modal Jun 26 18:48:47 everything seems to be ok when comparing the getExternalCacheDirs() and the one I'm using Jun 26 18:50:51 grekkos, create a DialogFragment and use custom views Jun 26 18:51:06 It's possible to hack the AlertDialog, but usually easier to just build your own since you're using custom views anyway Jun 26 18:51:32 mz|alex, that doesn't look like you're accessing the cache dir. Jun 26 18:52:09 mz|alex, note the difference between the `/cache` (which is where cache dirs usually are) and what you're getting as an error. Jun 26 18:53:04 Mavrik the error gives that, but I actually have "/Android/data/com.okular.vrnode/cache/videos"; and the code rasises error saying: "/Android/Data/com.okular.vrnode" Jun 26 18:53:20 SimonVT, ad Lint output - do you know what this could mean "There are predefined sizes (for each density) for launcher icons. You should follow these conventions to make sure your icons fit in with the overall look of the platform."? Jun 26 18:53:25 data != Data Jun 26 18:53:37 mz|alex, are you using recursive stuff or something? Jun 26 18:53:48 Mavrik if I don't actually run getExternalCacheDirs() can I get permission denied even the dir matches its result? Jun 26 18:53:50 Is Xamarin messing up stuff? Jun 26 18:54:12 Would have to check the source, but I guess not. Jun 26 18:54:24 Mavrik no recursion, just plain script Jun 26 18:54:38 I have imported launcher icon with AS, checked sizes - are fine as stated here http://stackoverflow.com/questions/12768128/android-launcher-icon-size Jun 26 18:55:16 only one size is missing - they call it WEB - and people says that it is uploaded at time of upload to Play Jun 26 18:56:07 btw it is id="IconExpectedSize" and Explanation: Icon has incorrect size. Jun 26 18:57:38 Web icon isn't part of your apk or app. Jun 26 18:57:44 What's your question? Jun 26 18:58:01 mz|alex, *shrug* out of ideas then, did you try if a plain Java test app throws the same on the device? Jun 26 18:58:22 Mavrik good Idea, I'll create those dirs from the java plugin side, and see Jun 26 19:02:23 According to the docs ContentProvider.insert and ContentProvider.delete are supposed to call notifyChange... Which URI are they meant to pass? Jun 26 19:02:33 https://developer.android.com/reference/android/content/ContentProvider.html#insert(android.net.Uri, android.content.ContentValues) Jun 26 19:02:45 https://developer.android.com/reference/android/content/ContentProvider.html#delete(android.net.Uri, java.lang.String, java.lang.String[]) Jun 26 19:03:31 I could pass the same URI to notifyChange that was passed to insert/delete but doesn't this mean that some observers will miss a change? Jun 26 19:03:43 URI of the content item Jun 26 19:04:34 Mavrik, Is that the same URI that is passed to insert/delete? Jun 26 19:06:39 For example, if I delete then many rows may be affected. Am I meant to call notifyChange for each individual row or just once for the whole table or both...? Jun 26 19:07:09 yes Jun 26 19:08:29 sasser, Uhm yes to which: The first, second or third alternative? Jun 26 19:08:40 Each item has an URI Jun 26 19:08:46 It's the URI denoting an item :) Jun 26 19:08:58 So yes, of course it's the same as you're passing into the other functions :) Jun 26 19:10:25 Mavrik, So if someone is observing "content://contacts/people/22" they will still get notified if I send the notification to "content://contacts/people" ? Jun 26 19:14:42 Yeah, and notifying contacts/people/22 will notify contacts/people Jun 26 19:15:32 And notifying contacts/people/22 will not notify contacts/people/23 Jun 26 19:17:20 Found a good explanation in https://developer.android.com/reference/android/content/ContentResolver.html#registerContentObserver(android.net.Uri, boolean, android.database.ContentObserver) Jun 26 19:17:57 SimonVT, So notifying contacts/people/22 will only notify contacts/people if they set notifyForDescendants to true. Jun 26 19:18:25 Yep Jun 26 19:18:30 So basically I should send only a single notification to the most precise identifier I can. Jun 26 19:18:39 SimonVT, Thanks mate. Jun 26 19:21:55 By default I usually just notify the Uri passed to the methods Jun 26 19:23:05 Then let the calling code decide how specific it wants to be (e.g. whether to delete contacts/people with a where clause or contacts/people/22) Jun 26 19:25:36 I also have convenience Uris like contacts/people/withEmail. Notifying that wouldn't reach contacts/people/22, so in that case you probably just want to notify contacts/people. As well as register a content observer for contacts/people rather than contacts/people/withEmail when querying. Jun 26 19:48:21 SimonVT, I notice BaseColumns._COUNT is set to "_count" instead of "count(*)". Do I need to do anything special to handle this or does SQLiteDatabase.html.query magically translate it? Jun 26 19:49:46 SQLiteDatabase.query Jun 26 19:53:45 do you guys recommend using hackintosh for android studio? Jun 26 19:55:34 Not sure what _COUNT is for, I've never used it Jun 26 19:55:51 But I doubt anything special happens without you defining it Jun 26 21:52:43 anyone use ST by chance Jun 26 22:21:13 hi guys, anyone of you know how/which toll use to reverse engineering a android app from cell phone? Jun 26 22:29:59 thomaslnx: if that is your question, seems google would retrieve quicker responses Jun 26 22:32:41 hi. I'm compiling hostapd, and I get "openssl/opensslv.h: No such file or directory". could anyone help me understand problem? Jun 26 22:32:44 *the problem Jun 26 22:35:19 thomaslnx: APK Tool. Jun 26 22:38:38 LunarEclipse120: i mean after that app alread install on phone. I alread know apktool, but it intended for apk files... Jun 26 22:39:17 thomaslnx: You need to take the app off the phone. Jun 26 22:39:23 You need root to do that. Jun 26 22:40:11 LunarEclipse120: is the only way? Jun 26 22:40:45 thomaslnx: Yes. Jun 26 22:42:04 LunarEclipse120: ok, i'll do that. Thanks.... Jun 26 22:42:16 you don't need root to pull an apk ... Jun 26 22:42:50 unless you're talking about the data itself Jun 26 22:43:07 g00s: /data/app/app.apk Jun 26 22:43:16 Unless it is a system APK then you do. Jun 26 22:43:35 no you don't. i pull apks all the time, never had root Jun 26 22:43:42 Where do you pull them from? Jun 26 22:44:00 /data shouldn't be able to be read by the user. Jun 26 22:44:22 i'm confused if he wants the apk or the data Jun 26 22:44:30 He wants the apk. Jun 26 22:44:46 But user-downloaded apps are stored in the /data/app directory. Which shouldn't be able to be read. Jun 26 22:44:50 yeah, thats doable w/o root. but this isn't android-reversing ;) Jun 26 22:45:13 How do you pull them without root? Or are you just pulling the off the play store? Jun 26 22:45:15 i'm speaking from nexus experience, i have no idea what samsung does though Jun 26 22:46:09 What is your method? Jun 26 22:48:20 On your Nexus, can you see the contents of /data? Jun 26 22:50:14 you can normally get the apk with an adb backup Jun 26 22:50:24 should you need it for some reason... Jun 26 22:50:30 Oh, there is that. Jun 26 22:50:44 But any other way and you would need root. Jun 26 22:51:46 Leeds lol adb backup :D Jun 26 22:51:57 i guess that could work too ;) Jun 26 22:51:58 So is that how you do it? Jun 26 22:52:06 How do you do it then? Jun 26 22:53:20 Leeds what are your friends in UK thinking about brexit ? Jun 26 22:53:41 i figure thats about on topic as reversing apks so ;) Jun 26 22:54:23 g00s: *my* friends almost unanimously think it's a disaster of epic proportions Jun 26 22:56:03 I was out drinking by the harbour on Friday night, and at a dinner party on Saturday night, both mixed expat/local groups - and it was the first topic of conversation both times... again, pretty much total agreement that it's a horrible thing, but you'd expect that from an internationalist crowd Jun 26 22:56:35 yeah, i suppose so ... Jun 26 22:57:13 if you think the UK could do with less foreigners and should go it alone, you're unlikely to be drinking by the harbour in Hong Kong on a Friday night :) Jun 26 22:57:26 haha Jun 26 22:58:10 (there's a nice laid-back beer counter by one of the ferry piers, which tends to become an impromptu beer garden on warm evenings) Jun 26 22:58:46 (also on cold evenings - Hong Kong is still quite a serious party town) Jun 26 22:59:59 Leeds have you used your pizza hut projector box to play movie outside on some building? :) Jun 26 23:01:00 I never got a pizza hut projector box - it was only ever a promotional thing, really... same with KFC nail polish, in case you saw that story as well Jun 26 23:01:18 lol no Jun 26 23:02:33 http://www.bbc.com/news/world-asia-china-36220142 Jun 26 23:04:26 must be refrigerated and lasts for only five days. Jun 26 23:04:48 well, thats one way to get you to kfc so you can use up your nail polish Jun 26 23:05:49 Leeds no bacon flavor ? Jun 26 23:06:21 NO BACON Jun 26 23:12:43 Corbyn reshuffling his shadow cabinet Jun 26 23:12:58 what's left of it... Jun 26 23:13:27 With the Midlands UKIP pensioner takeover of the UK, I don't see him coming to power any time soon Jun 26 23:13:27 Corbyn really does need to go back where he belongs - to be a maverick on the back benches Jun 26 23:13:56 I say Sadiq Khan for PM Jun 26 23:35:34 Why would my app data in native code setting a global value to tru? Jun 26 23:35:42 Why would my app die* Jun 26 23:39:59 Seems to be happening only when I build my lib with -O2 :S Jun 27 00:09:18 -O2 is normal Jun 27 00:10:29 I think I figured out why, was not checking 64 bit properly for ARM64 Jun 27 01:29:48 Is there a reference somewhere of what size my icon images are meant to be? Jun 27 01:30:03 In particular, in this example: https://developer.android.com/samples/BasicSyncAdapter/res/xml/authenticator.html Jun 27 01:30:18 Lewoco in the material icon spec, there are some. i think notifications might be missing Jun 27 01:30:25 What are the required dimensions of android:icon and android:smallIcon? Jun 27 01:32:41 no idea ... Jun 27 01:53:58 I'm skimming thru the Telegram source trying to find out if it keeps a connection open to the server at all times Jun 27 01:54:04 does anybody know? Jun 27 01:54:33 hard to find out.. some classes there have over 10 thousand lines, and it uses a lot of C++ integration Jun 27 01:55:03 https://github.com/DrKLO/Telegram/tree/master/TMessagesProj/src/main/java/org/telegram/messenger Jun 27 02:02:06 havent looked at telegram source ;) Jun 27 02:03:01 https://github.com/DrKLO/Telegram/blob/cd9d188fe2bed8e5df5a1b0f0bd34ab336c2892f/TMessagesProj/src/main/java/org/telegram/messenger/ConnectionsManager.java Jun 27 02:10:38 JFlash, almost certainly they don't; I know they require GCM/push so they almost certainly just use that to notify of a new message Jun 27 02:13:29 this page from 2014 says telegram uses XMPP Jun 27 02:13:35 dragorn, http://talk.maemo.org/archive/index.php/t-91888.html Jun 27 02:13:52 it's also from 2 years ago Jun 27 02:14:00 and I *know* it doesnt' work without google services Jun 27 02:14:01 * dragorn shrugs Jun 27 02:14:05 Or read the code Jun 27 02:17:09 lol Jun 27 02:17:40 dragorn, agree on gcm but its most probably some kind of mixed aproach, right? Jun 27 02:17:56 this SO anwer discusses it : Jun 27 02:17:57 http://stackoverflow.com/questions/22281279/xmpp-service-connection-dies Jun 27 02:18:52 A while back I changed my support lib up to 23.2.0 or something and it caused an app crash on all kitkat and lower devices. Does anyone know the solution to this? Jun 27 02:19:45 I think it was a vector drawable thing... but I now jumped straight to 23.4.0 I think, and kitkat and lower doesn't crash. Just want to know whether I have to add anything to my build.gradle or not. **** ENDING LOGGING AT Mon Jun 27 02:59:58 2016