**** BEGIN LOGGING AT Mon Jul 28 03:00:01 2014 Jul 28 03:34:45 I have an app that uses an obb expansion file; sometimes when the app is in the background the system unmounts the obb (even if the app is keeping a references to the StorageManager) Jul 28 03:36:02 when the app restarts and a file from the obb is needed, I mount it again, but need to wait until the mount is finished, which I am doing like they do here (https://github.com/android/platform_frameworks_base/blob/master/services/tests/servicestests/src/com/android/server/MountServiceTests.java) Jul 28 03:36:45 I'm basically waiting on the main thread, which for some reason takes a lot of time (5~8 seconds) Jul 28 03:37:19 is this the right way of doing it? Jul 28 03:40:50 hey guys Jul 28 03:40:59 i'm getting an error with Retrofit =D Jul 28 03:41:22 retrofit.RetrofitError, and threadid=1: thread exiting with uncaught exception (group=0x41886da0) Jul 28 03:41:41 Paste the actual exception Jul 28 03:42:10 kind of big Jul 28 03:42:16 07-27 23:36:26.104 31359-31359/com.nasch.mobile.vegan E/AndroidRuntime﹕ FATAL EXCEPTION: main Jul 28 03:42:17 Process: com.nasch.mobile.vegan, PID: 31359 Jul 28 03:42:17 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.nasch.mobile.vegan/com.nasch.mobile.vegan.MapsActivity}: retrofit.RetrofitError Jul 28 03:42:18 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2282) Jul 28 03:42:20 at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2340) Jul 28 03:42:22 at android.app.ActivityThread.access$800(ActivityThread.java:157) Jul 28 03:42:24 *sigh* idiot ... Jul 28 03:42:24 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1247) Jul 28 03:42:26 at android.os.Handler.dispatchMessage(Handler.java:102) Jul 28 03:42:30 hmmm Jul 28 03:42:52 https://gist.github.com/nschurmann/8ec1c77fc12f0f8ed730 Jul 28 03:43:57 You're doing networking on the main thread. Jul 28 03:44:55 you should keep networking threads off the main or they will freeze the ui Jul 28 03:45:10 I thought that retrofit handled that automatically Jul 28 03:45:21 this is the actual code Jul 28 03:45:23 tyl it actually crashes out nowadays, not even freeze Jul 28 03:45:26 https://gist.github.com/nschurmann/3fe15ecb01c8d53ee3db Jul 28 03:45:41 oh really wow i haven't done it in a long time Jul 28 03:50:00 JakeWharton: tyl: thanks! :D Jul 28 03:50:09 bankai_au: go suck a d&% Jul 28 03:50:12 np man Jul 28 04:07:00 i just got a click install of ubuntu 14.04 Jul 28 04:07:07 anyone has proper guides for installing android studio? Jul 28 04:07:12 everytime there seems to be a problem Jul 28 04:07:57 what kinda problem ? Jul 28 04:08:25 honestly, bankai_au I don't remember it was 2 weeks ago last time i tried Jul 28 04:08:32 probably something minor i forgot to do Jul 28 04:13:32 it's a bit fickle with non-oracle java Jul 28 04:14:33 yeah that's what I've heard. Jul 28 04:18:12 bankai_au from au :() http://www.itnews.com.au/News/390365,popular-android-apps-inherit-bugs-from-recycled-code.aspx Jul 28 04:19:56 nothing new there Jul 28 04:21:54 yeah, i read similar things at http://android-ssl.org/ a while back Jul 28 04:24:30 I am thinking of implementing a multithreaded game loop , anyone have any good links to tutorials/source code of example implementations (for java, or android-java)? Jul 28 04:49:55 Hi all, check out a digital money wallet we are building http://coinomi.com/ Jul 28 05:01:24 capella any thoughts on eff privacy badger ? Jul 28 05:02:36 g00s: I tried it couple months ago ... don't use it regular for some reason I forget Jul 28 05:04:02 probably as I use ad-blocker Jul 28 05:16:57 g00s: I finally got my thread pool with custom threadFactory and loopers working .... then realized instead of moving my tasks there and away from the offending tasks on background thread, I could just move the offending tasks off background thread onto a oneTimeExecutor w/defualt ThreadFactory Jul 28 05:16:58 \o/ - whole patch is down to couple dozen lines and much more predictable Jul 28 05:17:43 nice learning experience ;) Jul 28 05:17:48 capella is now an expert :) Jul 28 05:17:57 * g00s remembers who to ask for that stuff ;) Jul 28 05:18:10 * capella likes working closer to the OS than to the UI Jul 28 05:18:31 yeah, especially since the android UI stuff keeps changings, its like webdev Jul 28 05:19:12 never got into VisualFoo-dio development ... wasn't like real programming :D Jul 28 05:38:36 Hi all Jul 28 05:41:41 Here is my code for getting the gps lat and longitude when the gps is on.http://pastebin.com/yJwuRESn Jul 28 05:42:08 But my edittext is still empty even if I click on the gps button Jul 28 05:42:40 * capella-s3 switches devices Jul 28 05:43:33 and here is the code for the button http://pastebin.com/f7vY8aQB Jul 28 05:43:59 any help? Jul 28 05:48:46 Hello! I have an editText field to take comma separated numbers. I've allowed 1234567890., to be entered. Need to handle error when something like 2.3.4 is entered. I used catch to toast a error message. How do I wait for the user to correct his input and press the button? Jul 28 05:49:13 Please help! Jul 28 06:01:38 Got disconnected. Please paste if I missed some response to my query Jul 28 06:07:17 hey guys, know of a tablet that accepts hdmi? Jul 28 06:09:45 hdmi in? Jul 28 06:13:24 yes Leeds Jul 28 06:13:42 I have a project that requires realtime video streaming Jul 28 06:14:00 I don't think USB will work Jul 28 06:14:21 and I don't know if nVidia Shield supports it Jul 28 06:15:41 that seems a pretty obscure thing to want on a tablet... I wouldn't rely too much on finding it Jul 28 06:15:48 hm Jul 28 06:17:13 shipit Jetson TK1 has an HDMI port Jul 28 06:18:03 hello ? Jul 28 06:18:28 thanks g00s! Jul 28 06:18:42 how do I run a touch screen with it? Jul 28 06:18:44 display HDMI though Jul 28 06:18:51 I'd want to run full Android Jul 28 06:18:54 also not android :) Jul 28 06:18:57 ah, k Jul 28 06:19:10 it has A15 Jul 28 06:19:17 http://beagleboard.org/black Jul 28 06:19:21 so technically same arch. as their tabltes Jul 28 06:19:23 how can i run multidisplay Jul 28 06:19:46 all of china tablet have hdmi but not working :D Jul 28 06:19:51 g00s: hdmi *in*? Jul 28 06:20:02 oh, i missed that Jul 28 06:20:06 heh, hdmi in ? Jul 28 06:20:14 yeah ... Jul 28 06:20:21 shipit wants to take in video and stream it Jul 28 06:20:36 shipit also these are good http://www.hardkernel.com/main/main.php Jul 28 06:20:37 Leeds I want to display realtime video Jul 28 06:21:13 technically, I think it can't be done Jul 28 06:21:22 this is nutz... http://bgr.com/2014/07/25/galaxy-tab-q-release-phablet/ Jul 28 06:22:24 shipit: it can obviously be done with built-in camera Jul 28 06:22:41 Leeds unfortunately, the video sources are not on-board Jul 28 06:22:56 g00s what's this ODroid? Jul 28 06:24:02 capella-s3 ugh, thats just effing stupid. i really lime my lumia 521 because its so SMALL and fits in my fanny pack when i go trail running :) Jul 28 06:24:21 shipit just another android SBC Jul 28 06:24:34 STOP THE PRESSES Jul 28 06:24:38 ron_frown uses them a bit Jul 28 06:24:42 g00s just admitted to wearing a fannypack Jul 28 06:25:01 hmm, sashimi from yesterday should be fine, right? it's been in the fridge... :) Jul 28 06:25:03 * Nilium flitters away Jul 28 06:25:08 g00s what's a good source for SBC info? Jul 28 06:25:10 yeah, when i run i need to put my phone and keys somewhere. its tine, like marathon stuff Jul 28 06:25:12 Fridge? Yes. Engulf it. Jul 28 06:25:14 might be cool in an office setting... conference calls etc but... on the go? Jul 28 06:25:54 http://www.nathansports.com/gear/training-paks-belts/gel-pak Jul 28 06:26:03 my lumia fits in this damn thing Jul 28 06:26:11 I've actually been considering getting some sort of pack for my walks Jul 28 06:26:14 and the phone being cheap shit, plastic is light as hell Jul 28 06:26:35 i'd break my back with my old droid-1 :) Jul 28 06:26:38 'Cause I remember having a fanny pack when I was a kid and having one now for like my phone would be pretty nice since screw pants pockets, nothing stays in them Jul 28 06:26:50 i wear a similar cheapie to the gym Jul 28 06:27:02 armband Jul 28 06:27:47 * shipit sings his own songs at the gym Jul 28 06:27:58 what do you think android 4.4 backdoor : Jul 28 06:28:17 Nilium well, more cool than fanny packs for walking around are from maxpedition, like http://www.maxpedition.com/store/pc/REMORA-GEARSLINGER-72p384.htm Jul 28 06:28:23 i have that and love it to hell Jul 28 06:28:42 That seems kind of like overkill Jul 28 06:28:59 i can keep my phone , n7, pad, wallet in there Jul 28 06:29:01 Might as well just get a sling backpack at that point Jul 28 06:29:16 they have all kinds of sizes, but yeah remora is smallest Jul 28 06:29:18 Used to have one, it was nice. Jul 28 06:29:27 A sling backpack, that is. Not one of these things. Jul 28 06:31:13 I have just read possibly the best burn in the history of Something Awful. Jul 28 06:46:48 lasserix: are you there? Jul 28 06:57:14 hi all Jul 28 07:09:48 Is it worth creating content providers when all I need is accessing the database for some rows and displaying in ListFragment's listview? Jul 28 07:10:41 i think you fix this listview Jul 28 07:10:49 customadapter and viewholder Jul 28 07:10:52 detachYo if you'll be using LoaderCallbacks, I recommend it -- it's quick to write one if you've already got your db working Jul 28 07:11:07 detachYo and I recommend using LoaderCallbacks Jul 28 07:12:13 shipit since your first recommendation, I am almost always using LoaderCallbacks Jul 28 07:12:25 I got my db working, but not sure if it has the best structure Jul 28 07:12:26 detachYo awesome! :) Jul 28 07:12:44 but it does have a correct structure Jul 28 07:12:56 and by best, I mean, architectural wise Jul 28 07:13:30 detachYo yeah, I think you're on a good path here Jul 28 07:13:48 shipit, does it get complicated if the main table has relationships? Jul 28 07:13:53 for ContentProvider, just implement the query() method Jul 28 07:14:13 rawquery return cursor Jul 28 07:14:14 detachYo you should aim for simple relationships Jul 28 07:14:42 and then add intelligence at the content prodvider Jul 28 07:14:55 separate storage from topology Jul 28 07:15:59 makes sense Jul 28 07:16:21 Volkiriki, hah I didn't know that. Jul 28 07:16:29 i mean its pretty simple web wise Jul 28 07:16:31 :) Jul 28 07:17:03 I am a web dev and the db setup makes sense from that pov Jul 28 07:17:21 I was just having hard time translating it to "android code" Jul 28 07:21:03 Any idea if there's a way to do fuzzy text matching for speech to text controlls? Jul 28 07:29:56 shipit, should I have a custom ContentProvider for each table/model? Jul 28 07:30:27 hmm, no -- in a ContentProvider you can service many URIs Jul 28 07:31:18 eg uri://com.detach.yo/users, uri://com.detach.yo/jobs, uri://com.detach.yo/user/123 etc Jul 28 07:31:49 ah, I see, kinda like, RESTful Service Jul 28 07:31:59 in ContentProvider.query(), you intercept the uri and figure out which table(s) you're going to run the query against. Jul 28 07:32:15 yes! but be careful, don't go overboard :) Jul 28 07:32:49 eg if you want to get items for a user, you can craft a uri like uri://com.detach.yo/items/user/ Jul 28 07:33:18 use UriMatcher in ContentProvider for a basic switch/case Jul 28 07:33:37 sounds good, this is all great information Jul 28 07:34:12 you're welcome :) for study, look at the Android's SMSProvider implementation -- Jul 28 07:37:20 is that the mms app code? Jul 28 07:37:24 in* Jul 28 07:37:30 hm Jul 28 07:37:34 one sec Jul 28 07:37:38 https://gitorious.org/0xdroid/packages_providers_telephonyprovider/source/70ec48c96a2f0820c69f88e395ccdf7c18497aa8:src/com/android/providers/telephony/SmsProvider.java#L83 Jul 28 07:37:59 I don't know which version of Android this is :p Jul 28 07:38:11 but look at query() and UriMatcher Jul 28 07:38:49 Will do! thanks. I bookmarked it. I gotta take off now. Jul 28 07:38:58 good luck! Jul 28 07:38:59 Always greateful for all your help, shipit. Jul 28 07:39:05 thanks again, good night Jul 28 07:39:06 sure thing :) Jul 28 07:44:06 hi there, i got alot of network transfer interruptions because i can download faster than android allocates the memory. any ideas how to handle this basically ? here a slim ocde example: http://pastebin.com/M5T3Sf78 Jul 28 07:47:51 Does anyone know how I can open the default SMS app, given a thread id, in kitkat and above? Jul 28 07:48:07 No matter what I try i keep getting noactivity found problems Jul 28 07:49:40 smart1: are you preallocating? Jul 28 07:50:00 i mean, using buffers? Jul 28 07:51:13 no, i thought redirecting the stream would work fine Jul 28 07:53:41 lasserix, i found also this kind of solution: http://www.androidsnippets.com/download-an-http-file-to-sdcard-with-progress-notification , which one is better you think? Jul 28 07:55:02 well they do have buffered streams... Jul 28 07:55:12 how can I force android studio to show me the parameters of a method? Sometimes the suggestion disappears Jul 28 07:55:17 but preallocation is usually a good technique Jul 28 07:55:25 gdrc cntrl q Jul 28 07:55:47 err Jul 28 07:55:49 cntrl p Jul 28 07:55:53 cntrl q is info Jul 28 07:55:58 *java doc info Jul 28 07:56:08 doesnt work Jul 28 07:56:12 I'm on mac Jul 28 07:56:13 ctrl+p inside ( ) Jul 28 07:56:39 ctrl + p = up arrow Jul 28 08:11:03 cmd p Jul 28 08:19:58 Hello guys, would someone please help me? I am trying to make my JSONParser work with https. When I use only http, it works, but as soon as I change url to https, parser always returns null object, no matter what I try. Jul 28 08:21:46 when debugging, it gets stucked here: HttpResponse httpResponse = httpClient.execute(httpPost); Jul 28 08:21:55 then jumps right to the end, where it returns null Jul 28 08:28:42 remember to add your auth? Jul 28 08:29:29 hm? Jul 28 08:30:46 well since it is https is there something you have to do to make sure you've enabled it on your httpconnection object Jul 28 08:32:39 well i tried following the answer from here - http://stackoverflow.com/questions/2012497/accepting-a-certificate-for-https-on-android Jul 28 08:32:54 but it returns null, as if I haven´t done anything. Jul 28 08:39:21 post your code? Jul 28 08:39:26 at least the connecting part Jul 28 08:41:23 did you try the second answer? Jul 28 08:55:40 I want to know if my app's connection with server is okay and make an exception, if not. I know how to check for enabled wifi and 3g, but I'm not sure how to handle more subtle troubles, when everything is enabled, but just doesn't work due to middle network problems. I've found a way to add a timeout check to my http request. Will I have everything covered (enabled services + http timeout) when I will have it implemented, or is there something else I sh Jul 28 08:56:46 younedd http class Jul 28 08:56:48 man Jul 28 08:58:19 Thought the L preview crashed, nope my loop couldn't end Jul 28 09:05:47 What if you make a game that causes people to break their phones? Jul 28 09:07:00 lasserix: they dont download it Jul 28 09:07:04 :D Jul 28 09:09:14 yeah but i think people would anyways, just wondering if the noteriety would be good, guess it would be Jul 28 09:11:09 lasserix: the game where you have to throw your phone? Jul 28 09:11:17 like there's that famous 80s song " i like big butts" and now everyone knows that musician who wrote it as that guy, regardless of whatever else he does no matter what else he does Jul 28 09:11:22 smash or throw Jul 28 09:12:17 the famous 80s song from 1992? :) Jul 28 09:12:23 : D Jul 28 09:12:30 hehe i was like 8 or something ;p Jul 28 09:12:48 thanks for the earworm btw Jul 28 09:12:59 anyone try the google carboard? Jul 28 09:13:07 now I will have this in my head the whole morning :D Jul 28 09:13:19 its a cool idea but you can't touch the screen so it seems like a failure Jul 28 09:13:44 well i guess you could still use the accely Jul 28 09:15:28 Why there is no Search API for Google Play like https://www.apple.com/itunes/affiliates/resources/blog/introduction---search-api.html ? Jul 28 09:15:35 Ok so the parser is still not working, I am totally out of the ideas. Code here: http://pastebin.com/yZHJRSqh Jul 28 09:16:21 it works for http, but as soon as I change url for HTTPS, it jumps to Error converting result " + e.toString(), basically it says its null again. Jul 28 09:16:25 MetalGuru: You said its working with http, but not with https . so its not the parser. its the connection Jul 28 09:16:46 CodePulsar: best guess is that google wants to go open source/ community drive to promote 3rd party app stores Jul 28 09:17:06 or alternatively force the user into using playstore app Jul 28 09:17:08 but I dont really get it what could be wrong with the https connection? Is there anything I have to change on the server-side when I´m using https? Jul 28 09:17:29 is the certificate self signed? Jul 28 09:17:44 yes (at least my hosting provider says that) Jul 28 09:18:39 do you get an error when getting the content? Jul 28 09:19:10 its usually something like CertPathValidatorException: blabla certification not found. Jul 28 09:19:32 nope, nothing like that Jul 28 09:19:45 ok. the url you gave me is self-signed Jul 28 09:19:50 it gets stucked on executing httpPost Jul 28 09:20:05 Hello, I want to compare 2 drawables for that I'm creating a md5 hash from the R.drawable.icon and comparing it with the md5 hash I generated on my machine. But the 2 results are different, can someone explain? Jul 28 09:20:09 and then jumps to line 108 Jul 28 09:20:50 httpPost is line 81? Jul 28 09:21:01 lasserix: that doesn't make any sense Jul 28 09:21:12 yes :) Jul 28 09:21:13 lasserix: I mean why there is no official API to search for things in Google Play store Jul 28 09:21:45 If it stops there and then jumps to 108, you have an error somewhere there Jul 28 09:21:52 CodePulsar: well, I guess they don't have a good enough reason to make one? Jul 28 09:21:57 and becuase you do e.printStacktrace(), you cant see it in logcat Jul 28 09:22:13 replace the printStacktrace with Log.e Jul 28 09:22:16 to see the trace Jul 28 09:22:34 then we know whats going on Jul 28 09:23:23 it says "java.lang.NullPointerException" Jul 28 09:23:40 full trace please Jul 28 09:23:46 when I debug it and stop at that Log.e line where it always sends me Jul 28 09:23:54 one second please Jul 28 09:24:02 no. i dont want the log from line 108 Jul 28 09:24:12 and from which one? Jul 28 09:25:12 go to line 89,91 and 93 and replace the e.printStackTrace() with something that prints to logcat like Log.e(TAG, message, e) Jul 28 09:25:30 then you will see that you have an error there that is catched by your try block and ignored Jul 28 09:25:41 this is the reason why you have a nullpointer later on. Jul 28 09:26:23 k, running it now Jul 28 09:26:58 at the moment there is an error (i guess at line 82), that is thrown and catched by your try. this is why variable 'is' is still null and you get a nullpointer later on Jul 28 09:27:08 oh... Jul 28 09:27:13 javax.net.ssl.SSLPeerUnverifiedException: No peer certificate Jul 28 09:27:27 at IOexception Jul 28 09:28:43 : > Jul 28 09:28:57 damn.. Jul 28 09:29:53 where do you have this certificate code from? Jul 28 09:30:13 its auto-generated in admin panel of my hosting Jul 28 09:30:41 im not sure if this works in android .. Jul 28 09:30:48 better try this: https://developer.android.com/training/articles/security-ssl.html#UnknownCa Jul 28 09:31:56 requires some more work though :) Jul 28 09:32:13 ok, thank you :) Jul 28 09:32:15 as you have to create the certificate and put a file on your phone.. but its secure Jul 28 09:32:20 you're welcome Jul 28 09:32:22 but - Jul 28 09:32:43 When I publish the app Jul 28 09:32:55 wont there be any problems with this? Jul 28 09:33:01 why? Jul 28 09:33:07 I know it will work for me on my phone Jul 28 09:33:13 but will it work for others? Jul 28 09:33:19 why shouldnt it Jul 28 09:33:41 i dont know :D I have never worked with SSL certificates before Jul 28 09:34:20 for me it does. Im using client and serverside certificates for my app, too Jul 28 09:35:24 you can also use this: http://www.baeldung.com/httpclient-ssl Jul 28 09:35:31 its simpler to implement but less secure Jul 28 09:36:06 thank you, i will check that out Jul 28 09:36:16 it still secure enough for what I need I guess.. Jul 28 09:36:26 for the first one you have to put a verification file in your apk that is used to check if the certificate from server is valid, the second method does "fuck off - just use the https connection and dont verify" Jul 28 09:36:57 the first one is only relevant if you must be sure that nobody can man-in-the-middle your connection Jul 28 09:39:25 what is the second one good for then? I can use normal http and it will be the same thing, right? Jul 28 09:40:12 ssl is encrypted. so nobody can sniff the network and read it without intercepting your connection (which is impossible over 3G and only relevant in wifi) Jul 28 09:40:37 oh, ok :) Jul 28 09:40:42 with the first one the app can determine if the server certificate is your own or the one from someone who want to intercept your connection Jul 28 09:42:51 hi, is findViewbyid expensive? Jul 28 09:43:09 yeah Jul 28 09:43:33 it's not terribly so, but you certanly shouldn't call it in animations, scrolling and multiple times if not necessary Jul 28 09:43:41 I need to save the ratings of some items from a listview in shared preferences. Should I use one sharedpref for item when I don't want to re-add each preferences of the other items again when modifying just one? Jul 28 09:43:42 Mavrik, thx. so i have to bind it at onCreate or on onResume? Jul 28 09:43:53 smart1: its going through all views and check if the id == requestedId so i guess its O(n) Jul 28 09:44:02 onCreate. onResume will get called multiple times and it's pointless to do so Jul 28 09:44:10 thx alot guys Jul 28 09:44:26 danijoo, yeah, it's actually recursive because it goes down the view hiearchy from the view you call it on Jul 28 09:44:36 yep Jul 28 09:48:13 On button click, I want to let the user download an image from an url and save it in the gallery. Jul 28 09:48:29 is there an intent for it or do i have to manage that on my own? Jul 28 10:11:34 Hi, I have a question regarding DNS Jul 28 10:12:05 I have set DNS using setprop but android device is still using the old dns servers Jul 28 10:12:59 Any one knows what could be happening? Jul 28 10:17:08 danijoo isn't volley like able to do half of that? Jul 28 10:17:26 never used volley Jul 28 10:17:32 oh Jul 28 10:17:58 the link was only to show how trustmanager works Jul 28 10:41:23 How should I debug AVD, if I need to check what exception it throws in offline mode? Jul 28 10:43:53 disable your internet on pc Jul 28 10:45:27 I have a simple code here http://pastebin.com/TRrPbvFa Jul 28 10:45:27 How to make clickable links in TextView ONLY, and not all TextView as I have it now? Jul 28 10:46:08 danijoo: Judging by the app's behaviour, it is different for the app. The exception that is thrown with my internet off doesn't show up in F8 mode Jul 28 10:49:12 maybe you should use a real device for that then Jul 28 10:49:14 or genymotion Jul 28 10:50:45 that sums up what I thought, but thanks Jul 28 10:52:29 Nvm, solved the problem locally: it was enough to leave it off, and it starts up offline, providing the trace Jul 28 10:56:04 I am using an intent to start a activity (search request), now every time I press back, the intent gets refired and so the activity re-created Jul 28 10:56:19 so I really have to override onBackPressed here and finish the activity myself? Jul 28 10:56:48 no Jul 28 10:56:53 you just have to stop calling that intent Jul 28 10:57:00 sounds like you are doing something wrong.. Jul 28 10:57:11 like calling the intent in onResume.. Jul 28 10:57:30 I just call handleIntent(getIntent()); in onCreate() Jul 28 10:57:54 mmhmmm Jul 28 10:58:50 I think I have one activity too much, a search activity and a search result activity Jul 28 10:58:57 although it's based on the action bar search :o Jul 28 10:59:27 oh, activity subclassing issue Jul 28 11:00:01 I have an abstract SearchActivity subclass, so that might cause it in the first place… sorry for rubber ducking into the channel Jul 28 11:03:19 I'm trying to check if data connection (3g/4g) is enabled, no matter if Wi-Fi is enabled. How do I do that? Jul 28 11:05:31 you can call "isConnected" on networkinfo from connectivityservice Jul 28 11:05:46 but that won't tell you much, because established session doesn't mean anything in terms of actually getting data acreoss Jul 28 11:05:48 *across Jul 28 11:09:16 found it: http://stackoverflow.com/questions/12806709/android-how-to-tell-if-mobile-network-data-is-enabled-or-disabled-even-when Jul 28 11:09:20 I'll check it out Jul 28 11:18:36 Mavrik danijoo: I guess my intent problem is related to the launch mode using "singleTop" the intent gets rerouted back Jul 28 11:19:41 maybe FLAG_ACTIVITY_CLEAR_TOP is the right flag here Jul 28 11:29:01 yeah, also not really. waaahh, why does it not throw away the search intent Jul 28 11:34:08 only handleIntent if savedInstanceState == null > solved it Jul 28 11:36:53 CONNECTIVITY_ACTION not called when turn data on/off where Wi-Fi is enabled Jul 28 11:37:07 any idea how to get called on data connection changed when wifi is on? Jul 28 11:38:18 "The ConnectivityManager broadcasts the CONNECTIVITY_ACTION ("android.net.conn.CONNECTIVITY_CHANGE") action whenever the connectivity details have changed. You can register a broadcast receiver in your manifest to listen for these changes and resume (or suspend) your background updates accordingly." Jul 28 11:39:20 http://developer.android.com/training/monitoring-device-state/connectivity-monitoring.html Jul 28 11:39:46 but when wifi connection is active Jul 28 11:39:52 it doesn't care about data connection Jul 28 11:40:06 why should it. its not used.. Jul 28 11:40:53 danijoo: toggle "widget" (actually it is Quick Circle (g3 smart case) application) Jul 28 11:41:01 Could it be that Android-art doesn't properly support multiple commands at once in their JDWP implementation? Jul 28 11:42:58 danijoo: I can change it on the click, But on the wifi toggle I set it to wait for official proof Jul 28 11:43:32 the android default search icon is darker than other action bar icons Jul 28 11:43:33 :l Jul 28 11:46:54 anyone familiar with cardslib? Jul 28 11:47:09 Moony22: yea, ask Jul 28 11:47:29 well, specifically the extra drag drop list Jul 28 11:47:40 I stop using it on 1.4 :( Jul 28 11:47:51 Moony22: did u join the google plus group? Jul 28 11:48:01 nope Jul 28 11:48:10 did now :) Jul 28 11:48:15 ki9a: Well, of course it can be, it's not stable yet. Your question (which I can't solve) should be how you can work around it. Jul 28 11:48:30 Moony22: gabriel answer on questions there Jul 28 11:48:35 nice Jul 28 11:48:46 need to fix this fast though :// Jul 28 11:50:30 Nalfon: yeah; I think I got it now; just don't send two commands at once without waiting for the other to finish. Jul 28 11:51:32 danijoo: Broadcast action to indicate the change of data activity status (idle or active) on a network in a recent period. The network becomes active when data transmission is started, or idle if there is no data transmission for a period of time. Jul 28 11:51:36 will it work for my case? Jul 28 11:53:48 What the... Jul 28 12:01:58 what the... Jul 28 12:21:19 So what about clickable links in textview? http://pastebin.com/TRrPbvFa Jul 28 12:21:56 https://developer.android.com/reference/android/text/util/Linkify.html Jul 28 12:22:03 Flank_Y320-U30: ^ Jul 28 12:22:35 Oh sorry... Jul 28 12:23:42 Depending on what code you're hiding from us, you might already do the above. Jul 28 12:40:17 Hello Jul 28 12:40:31 can someone give a simple example of how to check if the users locale is arabic? Jul 28 12:41:33 Locale current = getResources().getConfiguration().locale; Jul 28 12:41:44 that'll get the locale Jul 28 12:42:39 what about getting an arabic locale? Jul 28 12:43:04 iffa: why not just CultureInfo.CurrentCulture / Jul 28 12:43:28 flan3002, I did that (Linkify), and it doesn't work. Maybe I lost something Jul 28 12:56:22 hey. is it possible to record from my phones camera and switch files every minute without resetting everything? Jul 28 12:56:29 so i don't lose video but i have multiple files Jul 28 12:56:45 uggh Jul 28 12:57:01 this surely should be simple, how can I check if the users current language is arabic? Jul 28 13:07:59 What exactly is the vm heap? is it like available ram for the application? Some avd's have only 16 mb vm heap and I get error "ava.lang.OutOfMemoryError: bitmap size exceeds VM budget". Does 16 mb vm heap really reflect any fairly modern phone? Jul 28 13:17:24 jesperj: heap is the portion of memory some where memory allocations are made from. Jul 28 13:17:50 there are ways to escape the heap, such as use native code that allocates things differently, or to request large heap in manifest Jul 28 13:17:58 escape small heap that is Jul 28 13:18:20 I think I need to wake up and start writing properly... *sigh* Jul 28 13:18:51 alankila: Any suggestions about what I could google for to find info on "allocate things differently"? Jul 28 13:19:04 I'll google "request heap manifest" Jul 28 13:19:12 the heap size tends to scale with display resolution, and I think that as a rule the available memory grows, the heap size restrictions will be changed as well. Jul 28 13:19:37 alankila: I'm creating a bitmap that is much larger in pixels than the device screen size Jul 28 13:20:13 it works fine on a avd with 64mb heap size set, but crashes with 16 heap size set Jul 28 13:20:28 I dont even know if there are any real phones with only 16mb heap size... do you? Jul 28 13:20:43 my guess is that they're all left behind by now. Jul 28 13:21:29 googling around some I found that one can manually call the garbage collector... maybe I could try to do that before creating my bitmap? Jul 28 13:22:13 no. The garbage collector will be called when native allocation fails anyway Jul 28 13:22:40 my guess is that you should limit to 4.x and better and do android:largeHeap="true" Jul 28 13:22:51 or change your image handling mechanism to not load more pixels than are necessary Jul 28 13:23:09 see BitmapFactory.Options inSampleSize to reduce size on loading, maybe use 16-bit color precision, etc. Jul 28 13:24:34 iirc androids less than 4 have some 10 % market presence so you can probably just ignore them Jul 28 13:25:37 Hey all, I have a bunch of views in a list that need to animate only once they are on screen, what's the best way to detect when a view is visible to the user during and after scrolling? Jul 28 13:27:00 Charl1e: a listview is called to create the row when it becomes visible, so you need to check at that time if it's the first time you are showing or not Jul 28 13:27:16 sorry, a listadapter Jul 28 13:27:49 Sorry I need to do this at View level Jul 28 13:28:12 basically I have a bunch of custom bar chart views that I need to animate only when they are visible Jul 28 13:29:05 well whenever your adapter adapts a row, just call a method you have defined that animates the thing Jul 28 13:29:38 I assume you have all the views at hand when adapting the row Jul 28 13:29:38 but the view can still be invisible and off screen when that happens Jul 28 13:29:51 well it is that maybe, but it won't be after the method returns Jul 28 13:30:09 when you return the converted view in the adapter, it will get attached to the listview Jul 28 13:30:27 so this sounds like the appropriate time to trigger whatever animations you might have. Jul 28 13:31:25 unfortunately it's not the right time as I can have a lot of bar chart rows in this item Jul 28 13:31:37 (which is stupid) Jul 28 13:31:42 I simply do not understand your situation I guess. Jul 28 13:31:46 yeah Jul 28 13:31:50 probably it ;) Jul 28 13:31:55 probably not me explaining it best either Jul 28 13:34:16 hi how i can write in a file and if dont exist create it? i want create a file in default directory of my app Jul 28 13:34:41 Alfreda: Writing to a file using standard Java file IO will automatically create the file. Jul 28 13:34:42 how i must write in File file = new File("..... "); Jul 28 13:34:53 Use Streams. Jul 28 13:34:56 ok and for default? Jul 28 13:35:17 Thank you alankila Jul 28 13:35:26 i dont have a specific directory i want default folder of my app Jul 28 13:35:26 Well, there is no default. There are several defaults. Jul 28 13:35:33 Which do you want? Jul 28 13:35:55 in unix $pwd\test.txt Jul 28 13:35:58 https://developer.android.com/reference/android/os/Environment.html Jul 28 13:36:00 do you andstand? Jul 28 13:36:11 Of course, but that's nonsensical. Jul 28 13:36:20 (Does that word even exist?) :P Jul 28 13:36:29 See the above link. Jul 28 13:36:51 i dont view directory of current app Jul 28 13:37:16 See the above link. Jul 28 13:37:28 i see it Jul 28 13:37:35 but where is current directory Jul 28 13:37:42 Hey! Can somebody on a real Android device try to see if http://jsfiddle.net/frank_o/5YDjS/5/show/ is scrollable please? Jul 28 13:37:57 There is no current directory, Alfreda, it does not make any sense! Jul 28 13:38:28 and where i can storage a file of a my app? Jul 28 13:39:35 Alfreda: Read https://developer.android.com/guide/topics/data/data-storage.html#filesInternal Jul 28 13:40:18 flan3002: but if i write FileOutputStream prova = new FileOutputStream("prova.txt"); where is created prova.txt? Jul 28 13:41:46 To be honest... I don't know. :/ Jul 28 13:42:07 :D Jul 28 13:42:25 my guess is that the chdir is either at /data/data/$package or at / Jul 28 13:42:37 new File().getAbsolutePath Jul 28 13:42:37 err, cwdir. That would be current working directory Jul 28 13:42:42 Yeah, or at /sdcard, but guessing does not help... Jul 28 13:43:23 one would use context.openFileOutput("somenamehere") to write some stuff under the private area Jul 28 13:44:14 alankila: The bitmap I am producing is greyscale... Can I reduce the bitmap size by specifying a low but color precision? Do you know what I should google on to find more info? Jul 28 13:45:16 jesperj: you could try Bitmap.Config.ALPHA_8 Jul 28 13:45:32 you just have to understand that you're basically drawing with soft mask after that Jul 28 13:46:17 alankila: I dont even know what soft mask means but thanks. I'll google on it Jul 28 13:46:44 soft mask is a pdf term for 8-bit alpha, basically you choose a color and draw the mask, and it will materialize an image Jul 28 13:46:57 doesn't necessarily come out as grayscale because you can select different foreground and background colors Jul 28 13:47:07 hey. is it possible to record from my phones camera and switch files every minute without losing video? Jul 28 13:47:19 ok thanks Jul 28 13:47:49 flan3002: where i must write my file for you? is a internal file I/O for my app Jul 28 13:47:53 local use! Jul 28 13:48:24 Is is security sensitive? How big will it get? Jul 28 13:48:58 to be honest I don't even understand how you use bitmap as mask on android... haven't ever done it Jul 28 13:49:41 flan3002: what you mean? is a little file .txt Jul 28 13:50:09 oh it must be just canvas.drawBitmap(mask, 0, 0, somePaintHere) Jul 28 13:50:15 Well, then you can just use https://developer.android.com/reference/android/content/Context.html#openFileOutput(java.lang.String, int) , Alfreda Jul 28 13:50:40 I forgot drawBitmap accepted a Paint argument... it's been a while Jul 28 13:50:49 You'll want to write to files in https://developer.android.com/reference/android/os/Environment.html#getDataDirectory() Jul 28 13:51:22 environment is a class? Jul 28 13:51:28 i must create an object? Jul 28 13:51:37 -.- Jul 28 13:51:59 Java has no freestanding methods, therefore Environment must be a class... Jul 28 13:52:27 But the methods are static. Read up on that. Jul 28 13:52:41 ah ok Jul 28 13:52:52 flan3002: FileOutputStream prova = new FileOutputStream(Environment.getDataDirectory()+"prova.txt"); ? Jul 28 13:53:08 correct? Jul 28 13:53:24 you're probably better off with some new File(new File(Environment.getDataDirectory()), "prova.txt") Jul 28 13:53:49 alankila: yes it return a file Jul 28 13:53:49 oh never mind, it already is a File Jul 28 13:53:55 no string Jul 28 13:53:57 Alfreda: you should use one of the methods from: http://developer.android.com/guide/topics/data/data-storage.html Jul 28 13:54:03 so new File(environment.getdatadirectory(), "prova.txt") Jul 28 13:54:19 OutputStream prova = new BufferedOutputStream(new FileOutputStream(new File(Environmen.getDataDirectory(), "prova.txt"))); Jul 28 13:54:34 Where "prova.txt" should really be a constant! Jul 28 13:54:52 anyon messed with MP4parser? its crashing on files ive made from jcodec ;/ Jul 28 13:55:46 flan3002: fileoutputstream or outputstream? Jul 28 13:56:04 I'd use OutputStream. Jul 28 13:56:29 But that's nitpicky. Either will work. Jul 28 13:56:37 unless you need the specific things of the concrete implementation Jul 28 13:56:55 the api vs impl separation is common and probably good idea Jul 28 13:57:03 flan3002: utputStream prova = new BufferedOutputStream(new FileOutputStream(new File(Environment.getDataDirectory(), "prova.txt"))); PrintStream scrivi = new PrintStream(prova); scrivi.println(result); scrivi.close(); Jul 28 13:57:06 is correct? Jul 28 13:58:23 flan3002: Error: java.io.FileNotFoundException: /data/prova.txt: open failed: EACCES (Permission denied) Jul 28 13:58:24 More or less. You still don't use a constant and you could directly create the PrintStream from the BOS... Jul 28 13:58:41 Files.write(path, "foo".getBytes()) Jul 28 13:59:09 Have you added the permission to your manifest? Jul 28 13:59:24 the multilayered android io streams are so much bullshit compared to the new Files and Path stuff Jul 28 13:59:30 s/android/java/ though Jul 28 13:59:56 flan3002: which permission? Jul 28 14:00:05 there's no way to get permission to write under /data though Jul 28 14:00:14 maybe /data/data/your.app.package.here/ Jul 28 14:00:47 * alankila idly wonders if there's some method that returns that Jul 28 14:00:48 what permission i must add to manifest.xml? Jul 28 14:01:26 how does one know when volume has been changed? Jul 28 14:01:47 sdaq: by volume you mean audio playback volume? Jul 28 14:02:05 alankila: yes Jul 28 14:02:29 Well, actually, you shouldn't need a permission... Jul 28 14:02:42 and why i have error? Jul 28 14:02:43 sdaq: see android.media.VOLUME_CHANGED_ACTION, says internet Jul 28 14:02:49 That's because it's trying to write to /data instead of /data/data/... Jul 28 14:03:01 it's apparently a broadcast receiver, and there's probably a method in some audiomanager to get the current volume as well Jul 28 14:03:42 flan3002: i must write : OutputStream prova = new BufferedOutputStream(new FileOutputStream(new File(Environment.getDataDirectory(), "data\\prova.txt"))); ? Jul 28 14:03:44 Alfreda: which is why you're supposed to use the APIs in the link I gave you. There's an API specifically for opening private files in your app storage area. Jul 28 14:04:24 dragorn: ? Jul 28 14:04:25 Alfreda: no. The path separator is firstly "/" on linux, and secondly /data/data/prova.txt isn't creatable either. Jul 28 14:04:53 how i do it? Jul 28 14:04:55 Alfreda: you should use one of the methods from: http://developer.android.com/guide/topics/data/data-storage.html Jul 28 14:05:45 FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_PRIVATE); Jul 28 14:05:52 where storage FILENAME? Jul 28 14:05:56 in which folder? Jul 28 14:06:34 that is going to go into the private storage area, should be /data/data/packagename. Jul 28 14:07:57 ah ok Jul 28 14:08:00 perfect i try Jul 28 14:09:34 any body here have any experience with OpenCV+Android? Jul 28 14:10:09 Alternatively, replacing Environment.getDataDirectory() with getFilesDir() will also work, as long as you call this from an Activity (You'd have to pass Context else). Jul 28 14:10:30 flan3002: and now how i view this file? Jul 28 14:10:32 on my cell? Jul 28 14:10:37 where is my cell? Jul 28 14:11:18 android doesn't really have filesystem access in the usual way. The file is in the private area, you presumably have other parts that open it and do something with it later. Jul 28 14:11:50 if you have a rooted device, you can check the contents with some of the usual unix tools though, or maybe download it with adb pull Jul 28 14:13:17 sheet Jul 28 14:13:25 root explorer? Jul 28 14:14:11 Alfreda: $ adb pull /data/data/your.package.name/files/prova.txt ~/prova.txt && vim prova.txt Jul 28 14:14:32 with root explorer work Jul 28 14:14:35 i view file Jul 28 14:14:37 :) Jul 28 14:14:39 thanks Jul 28 14:16:14 Alfreda: Or $ adb shell vi /data/data/your.package.name/files/prova.txt, but you can't scroll like that. (I can't): Jul 28 14:16:52 (Assuming you have vi/busybox installed, which I'm not sure of) Jul 28 14:18:07 Hello everyone! I don't understand how do I cache google map tiles to utilize via local TileProvider. Which part of documentation should I refer to? Jul 28 14:21:50 hello my app says its unsupported by alcatel devices .... how can i find out why and how to fix thaty? Jul 28 14:22:34 Is anyone familiar with cardslib? specially dragdrop? Jul 28 14:22:43 especially* Jul 28 14:26:52 anyone know why certian phones would be in the unsupprted list for an app Jul 28 14:27:02 or how can i find out why in general so i can help myself in the future? Jul 28 14:27:51 jaspertheghost: as I remember its a setting that app developer sets up in play market Jul 28 14:28:13 or its just android version not supported (too old eg.) Jul 28 14:28:13 its auto figured out ... Jul 28 14:28:21 4.1.2 android alctel Jul 28 14:37:01 Why would my imageView be reporting the width and height of the previous rotation? Jul 28 14:39:02 why i have in catch(IOException e) { e.printStackTrace();} Multiple markers at this line - IOException cannot be resolved to a type - Unreachable catch block for IOException. This exception is never thrown from the try statement body Jul 28 14:39:28 you forgot to import IOException maybe Jul 28 14:39:59 Alfreda: http://stackoverflow.com/questions/7242710/syntax-warning-showing-exception-is-never-thrown-in-body-of-try-statement Jul 28 14:40:20 also e.printStackTrace is a bad way to handle the exception Jul 28 14:40:25 tldr is your try{} doesn't ever throw what you catch. (can not, e.g.) Jul 28 14:40:36 there's a way to hide those suckers which may or may not be acceptable... "throw new RuntimeException(e)" Jul 28 14:41:30 or just make the method throw the exception is possible, or wrap the exception in a type that is acceptable for that particular method and vaguely makes sense Jul 28 14:42:11 I often just rethrow exceptions which I know can't happen inside RuntimeExceptions to keep them from cluttering the API, and either wrap the others into context-dependent types or just let them throw in the signature. Jul 28 14:42:53 ok and now how read from a file line for line in an array? Jul 28 14:43:04 first: FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_PRIVATE); fos.write(result.getBytes()); fos.close(); Jul 28 14:43:10 now i want read this file Jul 28 14:43:15 Alfreda: How big is the file? Jul 28 14:43:42 is small Jul 28 14:43:45 .txt file Jul 28 14:43:53 FileInputStream ? Jul 28 14:44:35 Just read everything and .split in memory? Jul 28 14:44:59 I don't feel like walking you through reading it line by line... Jul 28 14:46:25 anyone know of an open source offline GPS? Jul 28 14:46:50 flan3002: yes Jul 28 14:46:56 but how openfile? Jul 28 14:47:03 with fileinputstream? Jul 28 14:48:06 Like you did before. Jul 28 14:48:09 i dont know what good is it have gps satellite on an android if that shit does not even work. Jul 28 14:48:32 it only responds to internet connectons or wifi Jul 28 14:48:53 I depend on wifi to txt and call Jul 28 14:49:02 flan3002: InputStream ? Jul 28 14:49:15 Oh... Jul 28 14:49:28 Yes, of course. Jul 28 14:51:31 another strange issue that cropped up at the same time - i'm on windows 7, when i right click to get a context menu within the android studio directory (c:\program files(x86)\android\androd-studio\foo), explorer crashes, each and every time Jul 28 14:52:39 im not using android studio until they release a stable version, not a version in beta that still has bugs Jul 28 14:53:50 Well, Eclipse is not classified as beta, but has bugs as well. And you can only show that there are bugs, not that there are no bugs, so that's a stupid thing to say. Jul 28 14:54:26 I only experience bugs in eclipse when I used it on windows 7 Jul 28 14:54:37 other then, running it on linux is much faster and no bugs Jul 28 14:54:58 Your choice, but I feel like the majority in here doesn't use Eclipse anymore... Jul 28 14:56:29 Is anyone familiar with cardslib? especially dragdrop? Jul 28 14:57:41 in here Jul 28 14:57:42 but out there im sure its used Jul 28 14:58:31 hmm.. I did not know Android Studio had NDK support.. Jul 28 14:58:40 Sure it is used... Jul 28 14:59:25 i did use eclipse, but switched to android studio on a lark, and until this issue i preferred it Jul 28 15:01:01 i guess it wouldnt hurt to try xD Jul 28 15:01:33 you can run them both on the same project folder without conflicts Jul 28 15:01:56 Yea, im still gonna keep eclipse jsut incase Jul 28 15:01:57 just* Jul 28 15:02:00 shmooz: i haven't tried that yet, actually, but probably should given this issue Jul 28 15:02:10 Android Studio did restructure my project though Jul 28 15:08:24 do I have to download different api's again like in android sdk manager (or) android studio comes prepared with this? Jul 28 15:09:05 it will use your existing SDK Jul 28 15:12:37 for constants that I will use only programatically, do you still define in your XML or do you create final static variables? Jul 28 15:12:58 final statics Jul 28 15:13:12 i think they are faster Jul 28 15:14:10 mattblang: If you need the selection based on the configuration, xml might make sense, but otherwise constants are better. Jul 28 15:14:41 danijoo, flan3002 thanks! Jul 28 15:19:12 flan3002: after in = new BufferedInputStream(new FileInputStream(FILENAME)); how i read line? Jul 28 15:19:42 Alfreda: Damn. Learn to read documentation. Hint: I'm not documentation. Jul 28 15:22:13 flan3002: there isnt method on documentation! Jul 28 15:22:20 for BufferedInputStream Jul 28 15:23:45 You can e.g. use BufferedReader or Scanner. Google can become your friend. Jul 28 15:24:28 Can somebody please answer this question? http://stackoverflow.com/questions/24998561/how-do-u-ensure-that-a-method-calljni-callinside-a-thread-inside-onpreviewfram Jul 28 15:26:58 flan3002: ok and which is the condition in my while? Jul 28 15:27:17 while (....){String id=in.readLine(); Jul 28 15:27:17 myid.add(id); Jul 28 15:27:27 EOF? Jul 28 15:27:54 end of file Jul 28 15:28:00 how is in Java? Jul 28 15:29:45 Alfreda: Read the documenation on https://developer.android.com/reference/java/io/BufferedReader.html#readLine() Jul 28 15:29:51 It's all in there... Jul 28 15:30:52 flan3002: so while (true) s=b.readLine(); Jul 28 15:30:52 if(s==null) Jul 28 15:30:52 break; Jul 28 15:30:55 ? Jul 28 15:32:07 Alfreda: all you need to do is googleing "read file from inputstream in java" Jul 28 15:43:05 shdassowee ma dassowee Jul 28 15:49:13 do you need IDs to prevent things overlapping. when doing RelativeLayout? http://pastebin.com/raw.php?i=nGNYJNsr I understand one can do things like android:layout_toLeftOf="@id/abc.... But can one position them in a relativelayout without IDs? Jul 28 15:50:16 you can't position something by id if there is no id to position it relative to, so, no, you can't if you don't give your view an id. Jul 28 15:50:42 yeah but can you position it without id Jul 28 15:50:57 just, if I place a TextView then a TextView, can it know to put them alongside each other? Jul 28 15:51:09 can it place them as I write them, without a new line in between Jul 28 15:56:01 you could position it against the edge, not relative to any other element, breaking a lot of screen size scaling. Is there some reason you're allergic to providing a line of xml and giving it the ID? Jul 28 15:58:03 Can we configure the size for action bar icons? Jul 28 15:59:18 you dont need an ID no. use relativelayout and specify the orientation of the layout. no overlap. use gravity and margin. Jul 28 15:59:50 And you're thinking of LinearLayout Jul 28 16:12:05 [android_version] => 2.3.7 Jul 28 16:12:05 [stacktrace] => java.lang.NoSuchMethodError: android.webkit.WebSettings.setAllowFileAccessFromFileURLs Jul 28 16:14:29 anyone wanna take a stap at that? Jul 28 16:15:17 jaspertheghost: http://developer.android.com/reference/android/webkit/WebSettings.html#setAllowFileAccessFromFileURLs(boolean) Jul 28 16:15:19 public abstract void setAllowFileAccessFromFileURLs (boolean flag)Added in API level 16 Jul 28 16:15:20 jaspertheghost: added in api level 16 Jul 28 16:15:28 ahhh Jul 28 16:15:31 heh Jul 28 16:16:15 thanks Jul 28 16:16:26 ok btw how do i find what codename api level 16 is? Jul 28 16:18:11 mostly google. Jul 28 16:18:18 lol Jul 28 16:18:18 thanks Jul 28 16:23:57 Would there be a way for a wear app to detect that the mobile is no longer receiving its messages? Jul 28 16:24:11 The result is always a success if the wear device is connected to the phone Jul 28 16:24:59 And I don't think it's guaranteed that the mobile app's WearableListenerService will start every time the wear device sends messages Jul 28 16:25:11 Hey Jul 28 16:25:45 honedevchat Jul 28 16:25:49 oops Jul 28 16:26:05 Anyone here did use succesfully getUserMedia/Stream API in their android webview based app on android 4.4? Jul 28 16:26:14 http://caniuse.com/#feat=stream Jul 28 16:26:28 Is it possible to do padding tweaks on action bar icon positioning? Jul 28 16:27:21 Android 4.4 webview is supposed to be based on chromium 30, can i use said that MediatStream work on chromium 30 but not on webview 4.4 ...??? Jul 28 16:27:29 Is it correct? Jul 28 16:27:41 *caniuse Jul 28 16:27:47 platzhirsch, you could deactivate the actionbar and implement your own, not sure if you could tweak the default action bar Jul 28 16:28:52 Heyo! Jul 28 16:29:40 Hey everyone! Jul 28 16:31:05 what's the best way to save instance state of fragments in a fragment manager of an activity? Jul 28 16:31:17 Uhmm... guys, so I started learning about Android App Development deciding that Android Studio would be a good idea. Now, following YouTube videos, where the guy uses eclipse he has written out a simple line of finding a class by name. Class.forName(name)... The problem is that I copy the reference for the class, but it comes up with an error saying that it is unable to resolve the file :( I know that you'll need a few more deta Jul 28 16:32:13 platzhirsch, possibly programmatically Jul 28 16:32:40 MissionCoder, well if the Class doesn't exist in your project, obviously it won't be able to find it Jul 28 16:33:16 What is a good unit testing framework for android? Jul 28 16:34:08 Hi all- why does this command not invoke the Su app? Process process = Runtime.getRuntime().exec("su -c \"svc data disable\""); Jul 28 16:34:22 Afzal, the thing is that the class exists, that's how I was able to copy the reference for it. Jul 28 16:35:05 What is a good unit testing framework for android? Jul 28 16:35:31 lordgreg: su may not be in your path. you may not have permission to run su. runtime.exec sometimes just doesn't work well on android. for problems with su itself, I suggest #android-root Jul 28 16:36:52 See if I have a package by the name of "org.hopto.coolest.myapplicationut12" and inside it, there is a class "MyActivity" Would the full name of that file be: "org.hopto.coolest.myapplicationut12.MyActivity"? Jul 28 16:38:12 dragorn: thank you Jul 28 16:38:16 Will method profiling impact the profiling dump? Jul 28 16:41:06 Anyone? Jul 28 16:42:46 no the file name would be MyActivity.java Jul 28 16:43:18 I have my first AnimationDrawable being displayed properly on a canvas through SurfaceView : I have added a Drawable.Callback to enable it to be animated. But after about 30 seconds it stops animating. Debugger isnt indicating any crashes. App on the device is displayed but my AnimationDrawable is not animating. Any hints as to how to discover the culprit? Jul 28 16:45:48 MissionCoder: no. it would not be the name of that *file*. Jul 28 16:46:19 oh sorry. danijoo already answered. Jul 28 16:47:20 MissionCoder: which youtibe vids are you using? Is that one where the guy says "basically" a lot and doesnt have a clue what he's doing because he's "basically" cut and pasted direcr from the official docs and stackoverflow? Jul 28 16:47:33 has anyone run into intellij android gradle build target: org.gradle.tooling.gradleconnectionexception errors? Jul 28 16:48:29 I implemented tab navigation in my action bar. Within each tab there are various screens the user can go to, and I'm trying to keep a backstack so the user can return after loading them. THe problem is that when the user switches to another tab completely the back stack gets wonky, understandably. Should I just clear the back stack everytime the user changes to another tab to fix that? Jul 28 16:49:13 according to a 2 second google. lots of people. Jul 28 16:49:56 rgr, It's thenewboston one, as I couldn't find any reasonable ones. Jul 28 16:52:26 How did you make a decision on what was reasonable or not? Jul 28 16:53:34 I ask because most of them are complete dross created by people looking for hitcount : very few explain anything and nearly all I looked at show them regurgitating the same code you find all over the net invariably ripped from the samples. Very few of the "tutorials" explain anything at all. Jul 28 16:54:38 Just what you said, and I thought that he covered quite a few topics, so I thought it would be a good one to look at. Jul 28 16:54:47 A sad truth I have found the past week is just how many people there are who do things wrong and teach others to do them wrong : and how easily people are led to continue doing things wrong. In a developing infrastructure like Android its even more obvious : google land is full full full of rubbish. Jul 28 16:55:35 To be honest, I think that Java itself is praised a little bit too much, but I'd rather not discuss it. Jul 28 16:56:29 I myself have practiced quite basic C-like languages before, so the syntax is a little bit... different for me. Jul 28 16:57:45 Anyway, focusing on the issue. What would I use for the filename then? Jul 28 16:58:10 What does it consist of? Jul 28 17:00:14 Ive grown to like Java : but I have to convince myself to ignore garbage collection Jul 28 17:00:36 rgr, try openGL, the tutorial landscape is littered with outdated concepts and code of an API that has been deprecated 6 years ago. Jul 28 17:00:40 anybody here knows how to work with sms android Jul 28 17:00:43 could help me Jul 28 17:01:17 Q about scaling : if in a method like SurfaceView::SurfaceChanged I rescale a bitmap already loaded like this 'mBackgroundImage = Bitmap.createScaledBitmap(mBackgroundImage, width, height, true);' , is Android smart enough to do this so its not lossy when it scales back and forth? Jul 28 17:01:45 delgiudices: dint ask if anyone can help. Just ask your specific question. Jul 28 17:02:29 sorry rgr, i have a BroadcastReciever subclass, and i was wondering how do i update the view in the application onrecieve sms Jul 28 17:02:35 because right now i have a button that does it Jul 28 17:02:36 Syzygy: yeah Ive seen that. Jul 28 17:02:59 dont apologise to me : Im offering no help on the subject - its just better to ask and not to ask if you can ask ... ;) Jul 28 17:03:36 Where would I get the name of the flipping class file, if the one that I reference is wrong? Jul 28 17:03:53 MissionCoder: this is not an android issue. Its a basic java issue. Jul 28 17:04:04 rgr do you know how to get an instance of an activity from a broadcastreceiver at least? Jul 28 17:04:09 MissionCoder, you're just trying to reference a class file? Jul 28 17:04:16 delgiudices: please do not tag me directly. Ask the GROUP. Jul 28 17:04:22 YourActivity.class ? Jul 28 17:04:26 have you tried this? Jul 28 17:04:27 Yes, that is exactly what I am trying to do. Jul 28 17:05:01 Uhmm, it's not really the class file that I am referncing, I'm trying to use class.forName Jul 28 17:05:12 MissionCoder: check its in the correct src directory and has the right package name declaration. nothing to do with android. I would say ask in ##java but a bigger bunch of rude, arrogant fuckwits you're not likely to find. Jul 28 17:06:05 I feel like they will send me straight to here, though. Jul 28 17:06:19 haha rgr... that's unfortunately true Jul 28 17:06:49 MissionCoder, only if you mention android, but it's actually a java problem Jul 28 17:07:05 Okay, I'll attempt not to do that. Jul 28 17:07:22 http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html#forName%28java.lang.String%29 have you tried this btw? Jul 28 17:07:35 specifically it mentions Class t = Class.forName("java.lang.Thread") Jul 28 17:08:07 so in your case that would be "your.package.here.YourClass" Jul 28 17:08:50 Syzygy: Ive been a profi programmer for years an inhabit many many irc channels. Never in my life have I seen such a bunch of arrogant arses who invariably know nothing about their subject. Rude, offsensive, quick to "kick" or "ban". Absolutely pits of the earht. Jul 28 17:09:05 yeah Jul 28 17:10:36 fun http://techcrunch.com/2014/07/27/the-return-of-the-desktop-productivity-app/ Jul 28 17:11:17 so for android, the multi-screen counterpart would be web based most likely, and for ios -> oS X, WP -> Windows Jul 28 17:11:48 but i agree to avoid commoditization that extra screen has to be there for stickiness Jul 28 17:12:27 evernote has a web plugin for the major browsers. Jul 28 17:12:41 in the case of ios & wp, it seems easier to reuse parts of your app across the desktop versions Jul 28 17:12:52 which would make android more difficult in that respect Jul 28 17:13:05 rgr yeah, evernote is huge Jul 28 17:13:16 they can afford to do "all the things" Jul 28 17:13:27 I love Dolly's comment. spot on. Anyone who thinks Android devices in our pocket can replace a proper desktop is in lala land. Jul 28 17:13:44 not least .. developing the apps... ;) Jul 28 17:14:15 I would like to see an android compiler ON android though :> Jul 28 17:14:18 that would be fun Jul 28 17:14:29 or IDE Jul 28 17:14:41 there is AIDE or something Jul 28 17:14:58 I would probably rather kill myself than actually use it though. but it would be fun. Jul 28 17:15:33 heh heh. MissionCoder is being told his code is "from a moron" in ##java. LOL. As predicted. What a bunch of tits in there. Jul 28 17:16:11 I would love to see an advanced version of google now/siri on PC btw. Jul 28 17:16:23 Hello. Anyone know how to, given a thread id (refering to SMS thread), prepare an intent to launch the default SMS app to view the thread? Jul 28 17:16:53 something that would tell me to stop looking at porn and get back to work :( Jul 28 17:17:43 Uhmm.. I ain't no pro, but why couldn't you start that up yourself? Jul 28 17:17:52 It will take a butt load of work though Jul 28 17:18:03 Syzygy: I'd prefer you don't detail that. ;) Jul 28 17:18:55 MissionCoder, probably not, mostly because I'm a lazy bum. Jul 28 17:19:43 but I actually coded some voice recognition stuff last friday, using the google APIs, that part is easy, but actually doing stuff with the returned strings... I'M still not entirely sure how. Jul 28 17:20:23 especially since the stuff said is in a certain context that the API doesn't understand Jul 28 17:21:08 Yeah well, I started to port my little "learn by doing" app from a View layout to a SurfaceView with a secondary thread to render to a canvas. What a nightmare. SO many conflicting ways to do it. So few examples properly explained or uptodate or even work properly. LunarLander out of date and in "Legacy" so you wonder if its worth even using (it is since it uses surfaceView.Callback). Jul 28 17:21:44 Canvas... Damn. Why? Jul 28 17:21:45 Syzygy - What if you could link it to a thesaurus of sorts that would filter out through possible words? Jul 28 17:22:12 MissionCoder: told you what it be would be like in ##java. It's quite unique. The usual suspects bounds off each other showing off and bullying noobs. Jul 28 17:22:23 s/bounds/bounce Jul 28 17:22:50 flan3002: why on earth would you say that? Jul 28 17:22:59 I can't give the google API a dictionary, and if it thinks i'm talking in a regular context, it won't even return certain words as heard Jul 28 17:23:12 rgr: Why would you use a Canvas? Jul 28 17:23:46 for all the reasons documented in the official docs : not least the ability to render from a secondary thread not blocking the main UI thread. Like pretty much every animated/game app out there. Jul 28 17:23:50 how do you get the last item in a fragment manager? Jul 28 17:24:12 posting to the main ui message queue sucks. Jul 28 17:24:21 What I need is something like SoundEx, Metaphones or some distance function. basically for every word I need to figure out the probability that it's one of my keywords to actually take an action. Jul 28 17:24:41 can you use MySQL or whatever for that on android? Jul 28 17:25:12 (I have no ideas which rdbms exist or work on android but the full fledged mysql etc generally have good soundex functions) Jul 28 17:25:22 Yeah, I thought about something like that myself. If you would have the library that Google has built up with the words and sounds. You could attempt to match them by probability Jul 28 17:26:01 Thats, err, very "high level" and short on actual implementation detail.. Jul 28 17:26:23 rgr: You probably /could/ use MySQL with an awfully thick layer of hacks, but it's just easier to stay with SQLite... Jul 28 17:26:26 rgr, I copied apaches Metaphone class (since metaphones are supposedly better than soundex), and used a few keywords (and similar words) Jul 28 17:26:46 s/hacks/adaptions and effort/ Jul 28 17:27:25 our company does the thingy where once a month you can develop whatever you want, that's why I looked into it last friday Jul 28 17:27:48 That's nice! Jul 28 17:28:34 flan3002: I said "MySQL or whatever" and then pointed out thats only because I know ti features good soundex and something else would probably be needed. So you know for a fact MySQL does work "with an awfully thick layer of hacks"? What hacks do you mean? Jul 28 17:28:57 Syzygy: yeah. Jul 28 17:29:53 And "staying with SQLite" is kind of nothing to so with what we were talking about if it doesnt support soundex. We were talking about soundex functions. Jul 28 17:30:04 later. Jul 28 17:31:03 Actually, now that I am completely frustrated by people telling me that it's useless to even look at things to learn something. How should I learn? Jul 28 17:31:13 The magnificent syntax and methods of Java? Jul 28 17:32:05 so I created an arraylist with pairs of keyword/similar word (5 keywords, 18 similar words (including correct ones)), took the said text, split it into words, parsed all numbers, compared the similar words to the metaphones and added the keywords as extras (together with the parsed numbers) for an intent Jul 28 17:32:16 Learn Java, then learn Android. Jul 28 17:32:41 What study materials would you recommend? Jul 28 17:33:10 MissionCoder: Buy a book on Java, then use the Android online docs and API examples to learn the Android way of doing things. Google is your friend. Jul 28 17:33:23 anyway, time to play some table soccer against a workmate and then go home. Jul 28 17:33:24 MissionCoder: If you don't want a book: http://docs.oracle.com/javase/tutorial/ Jul 28 17:34:02 thinking in java Jul 28 17:34:05 java concurrency in practice Jul 28 17:34:08 then start the android docs Jul 28 17:34:33 rgr: the trick is is to draw to the canvas, then push the canvas over, and unlock and post it Jul 28 17:34:58 kind of like in opengl drawing into a frame buffer, pushing it over, dumping into render Jul 28 17:35:32 you only need the two threads, in most cases Jul 28 17:35:42 Anyone know how to, given a thread id (refering to SMS thread), prepare an intent to launch the default SMS app to view the thread? Jul 28 17:37:34 guys how is my app looking design-wise http://imgur.com/a/5wxk8 Jul 28 17:38:47 I'd say that the bottom aprt is a little too big in terms of height, but that might be just me. Jul 28 17:38:56 It looks nice touhgh. Jul 28 17:39:01 the bottom part unexpanded? Jul 28 17:39:03 hmm Jul 28 17:39:19 Yeah. Jul 28 17:39:31 your app is not legal Jul 28 17:39:40 how so Jul 28 17:39:57 how do i get a notificationmanager from a broadcast receive Jul 28 17:40:08 getSystemService is a context method Jul 28 17:40:28 onReceive passes a Context parameter Jul 28 17:42:55 i don't see anything illegal in my app, all it does is search google and play a file that the user searches for Jul 28 17:45:51 That is distribution of copyrighted material Jul 28 17:46:10 sure, it is Jul 28 17:46:23 Where are you from? Jul 28 17:46:26 finland Jul 28 17:48:12 however my app isnt made to be a pirating tool, its made to play the legal content on zippyshare Jul 28 17:48:40 and unfortunately i cant really prevent the illegalities from popping up (for example when searchng david guetta) Jul 28 17:49:21 If you look at it from that perspective, then yeah - there's nothing illegal Jul 28 17:49:25 is there a sane way to preserve the position of a scrollview within a fragment? Jul 28 17:49:48 MissionCoder: i should be fine though putting it on the play store if i make it 120% clear the app is made for playing legal content only Jul 28 17:49:53 ? Jul 28 17:50:00 and discourage pirating Jul 28 17:50:52 Yeah, as long as you put up a disclaimer. However, if your app goes too huge - you'll have the piratebay paradox. Where they are just sharing links, yet charged with aid. Jul 28 17:51:38 But as it's unlikely to happen, you should be cool. Jul 28 17:53:04 yeah Jul 28 17:53:20 and i made the app mostly for myself so i wouldnt mind if it was taken off because of pirates Jul 28 17:54:32 now that i'm here: how do i make it so when a user goes to *.zippyshare.com/v/*, it asks if they want to open the url up in my app Jul 28 17:54:39 ive never figured this out how some apps do that Jul 28 17:55:25 iffa don't know, but your question moved me to finally look it up, after years of not knowing ;) http://stackoverflow.com/questions/7902807/matching-a-url-to-an-intent-not-working Jul 28 17:56:12 seems obvious now Jul 28 17:56:56 going to have to test that out Jul 28 17:57:09 i remember i tried but it only worked on a specific page of the site (and it wasnt the one i want) Jul 28 17:59:34 Hi all. Jul 28 17:59:38 Hi ddobrev ! Jul 28 17:59:40 I use ExoPlayer. Jul 28 18:00:02 If I have to play a list of tracks, which is more optimal: Jul 28 18:00:18 Reuse an ExoPlayer instance or create a new one for each track? Jul 28 18:03:26 just what i thought, I copied the code the guy got in there (the working one), changed the stuff there to match zippyshare, but it didnt work Jul 28 18:03:29 :( Jul 28 18:06:13 so how do i make this work when going to url's like http://www51.zippyshare.com/v/63827906/file.html :D (the number after www can be pretty much anything, and the id after /v/ is also different) Jul 28 18:09:42 pathPattern="/v/.*" Jul 28 18:10:07 host="*.zippyshare.com" Jul 28 18:10:11 try that Jul 28 18:11:05 or pathPrefix="/v/" instead of using pathPattern Jul 28 18:11:24 ( http://developer.android.com/guide/topics/manifest/data-element.html ) Jul 28 18:12:14 ill have to experiment with this.. Jul 28 18:12:16 thanks Jul 28 18:14:39 how do i make my application to ask to be the dafault sms application Jul 28 18:18:34 I need an opinion here. I implemented action bar tabs for navigation. Now within each tab you can also go to new screens that are within the context of that tab category. I want users to be able to go back after delving into those different screens. I was thinking I might just handle the top left back arrow, and back button, manually from each fragment, loading back in the "parent" fragment Jul 28 18:19:55 Has anyone used ExoPlayer? Jul 28 18:19:56 I could do something like bread crumbs, but I feel that might not be good since I already have tabs Jul 28 18:20:10 cant get this to work :/ Jul 28 18:22:02 Anyone know how to, given a thread id (refering to SMS thread), prepare an intent to launch the default SMS app to view the thread? Jul 28 18:22:15 iffa: why just music? ;p Jul 28 18:22:38 haha :D Jul 28 18:22:50 how do i make this thing work Jul 28 18:23:00 ive tied like 10 different things there now Jul 28 18:23:01 :/ Jul 28 18:23:06 anybody knows what mimeType i have to put so my application can be default messages application Jul 28 18:23:07 Did you try chainfires suggestion? Jul 28 18:23:10 sms ** Jul 28 18:23:15 yeah i did Jul 28 18:23:23 iffa: try it using another url? see if you can get it to work doing something else? Jul 28 18:24:20 delgiudices http://android-developers.blogspot.in/2013/10/getting-your-sms-apps-ready-for-kitkat.html contains some docs on how to be the default SMS app Jul 28 18:24:36 only available for kitkat? Jul 28 18:25:20 yeah Jul 28 18:25:40 delgiudices you can do it on other Android versions as well, might be slightly different Jul 28 18:25:52 specifically, I think ACTION_VIEW is used instead of ACTION_SENDTO Jul 28 18:26:01 I advise you to research and test ... Jul 28 18:26:07 Anyone know the answer to this SO post? http://stackoverflow.com/questions/20421500/intent-to-view-sms-threads-on-kitkat Jul 28 18:26:11 it's usually the quickest way to find the answer Jul 28 18:26:51 lasserix I think that's not a standard feature, tbh... reverse the sms apk and see which intents it responds to Jul 28 18:27:04 which sms apk? Jul 28 18:27:14 it worked prior to kitkat Jul 28 18:27:16 whichever one you want to support and isn't currently working Jul 28 18:27:27 oh? well I guess that's the end of it then. Jul 28 18:27:49 well i have a thing that indexes sms, and you can click on the sms so it will open the thread, Jul 28 18:27:58 seems like it should be supported tho? Jul 28 18:28:05 why? Jul 28 18:28:18 Why not? Jul 28 18:28:18 I have not seen any docs from Google saying this functionality exists Jul 28 18:28:29 well it existed prior to 4.4 Jul 28 18:29:00 well anyways i am asking cause my boss is getting pissed off he keeps seeing silent exception reports saying no activity can be found Jul 28 18:29:02 ;p Jul 28 18:29:03 but it wasn't documented as far as I can see, and thus not supported Jul 28 18:29:08 hmm Jul 28 18:29:36 i dont think he is going to be able to comprehend that it did work and now it doesn't but maybe that is just the case Jul 28 18:29:38 well then, the course of action is clear. Take apart the APKs of the two messaging apps on KitKat (hangouts and the standard one), and see which intents they use to open a specific conversation Jul 28 18:29:45 yeah Jul 28 18:29:51 no amount of complaining about how something unsupported used to work is going to make it work Jul 28 18:29:57 Thanks for all your great apps btw Jul 28 18:30:02 nothing wooorks :( Jul 28 18:30:08 wasn't complaining, just asking Jul 28 18:30:54 k then, well... (unfortunately) it is the case that if you cannot find something on developer.android.com, then even if it works, in the eyes of Google it does not exist, and that functionality may change or disappear without notice or consideration Jul 28 18:31:31 iffa keep trying, find some more examples online, I'm quite sure it's possible, you're just not doing it right somehow Jul 28 18:33:19 if anyone has a second, I would value your opinion on this navigation architecture question http://www.reddit.com/r/androiddev/comments/2bytp9/need_opinions_on_my_apps_back_behavior_and/ Jul 28 18:36:44 wtf is wrong witht he manifest merger, I'm using tools:remove and tools:node=remove but it's just ignoring it... Jul 28 18:44:42 mattblang: you might consider what back is expected to do in a browser and model it off that Jul 28 18:46:18 lasserix yeah, that is very much what it would be like in this situation. just didn't know if it was bad to be doing so much manual navigation myself with android.R.home and android.R.back (or whatever its called). also, not sure if the user expects back to take them to a previous selected tab. Jul 28 18:54:48 i would feel if i were at one tab and go to another, back would go to the last tab Jul 28 18:54:54 eventually it'd go up Jul 28 18:55:02 and then eventually itd go out of the activity Jul 28 18:55:35 also, if you have an edit text that has input for like search, the first thing the back buon my dois clear tjesearch Jul 28 18:55:55 did you have two rows of tabs? Jul 28 18:56:57 Hey fellows what is the best way to target a custom device but still support standard android devices. I feel my situation is a bit unique my company has a custom android device that was built for us. The device uses a custom version of android api 4.2.2 that was also distributed to us. Here is the thing I want to move foward to 4.4 kitkat although still want to support the custom device. Is this possible? Jul 28 18:57:52 hi,i'd like to create an app completely same as mobile banking apps, like you generate one usage password to login your bank account via website Jul 28 18:58:18 Currently the custom sdk sits ahead of the standard sdk so eclipes is pulls the specific class files Jul 28 18:58:25 how can i do that ? can somebody tell me step by step easily ? im pretty new i dont have any idea Jul 28 18:58:29 in the build process Jul 28 18:59:40 Whats the best way to identify what packages to use in eclipse Jul 28 19:01:43 xMYTHICx: there's a handful of ways Jul 28 19:01:57 the easiest is an add on library for the platform level apis Jul 28 19:05:14 mikedg, Im sorry for my ignorance but thanks for your help. I just overtook this project from a recent developer from my company. I believe it is set up in the manner that you say . Although the add on library sits ahead of the standard library in the build path. I believe this is do to some packages having the same package name. so eclipse always pulls in the packages from the custom add on library. Jul 28 19:06:11 haci541: far to vague. Jul 28 19:06:30 for example import android.webkit.WebView; referance the custome library not the standard library 4.2.2 Jul 28 19:06:58 Is there a way to decipher package imports Jul 28 19:07:05 thanks again Jul 28 19:07:26 if youre using customised libraries then no. other devices wont support them. Jul 28 19:07:42 I understand that much Jul 28 19:08:06 or are you talking multiple builds? Jul 28 19:08:43 rgr, I just dident know if there was way to say if device.x import library y else library z Jul 28 19:09:23 Maybe multiple builds might be the best solution Jul 28 19:11:32 xMYTHICx: think you can alter the source you build with to make it compatible, since it won't bebuilt with it later Jul 28 19:12:41 rgr i have an online game. If user activates security app, My App will generate a random code by sending sms and/or clicking button Jul 28 19:12:50 for login Jul 28 19:19:31 I want to make an app that keeps track of school grades, I need to use an SQLite database to handle the courses, each course has a set of tests, assignments, etc... I completed this tutorial http://developer.android.com/training/notepad/index.html but I'm still lost. For example I can make a database for the courses but then when I click on a course there should exist another database... Jul 28 19:19:33 ...specifc to that course that holds the assignments Jul 28 19:19:51 what else should i learn? Jul 28 19:19:57 You dont need another database for that, you need another table Jul 28 19:20:09 Pr several tables Jul 28 19:20:11 Or* Jul 28 19:21:11 So one database can have multiple tables? Jul 28 19:21:32 :o Jul 28 19:21:33 Yes, of course! Jul 28 19:21:39 of course Jul 28 19:21:41 You need to learn databases before attempting your assignment. Jul 28 19:21:51 You should also learn normalisation as a part of that. Jul 28 19:22:23 oh boy where do i start :s Jul 28 19:22:49 Learn about databases, normalisation, and keys - this is the crux of your application Jul 28 19:23:00 The code that interacts with the data in the databases can come later. Jul 28 19:23:33 learn common SQL statements first Jul 28 19:23:37 No Jul 28 19:23:40 was i learning about databases here: http://developer.android.com/training/notepad/index.html ? Jul 28 19:23:41 goddamnit, why can't I get the manifest merger to honor the tools:remove/replace/whatever attributes Jul 28 19:23:42 Don't. Jul 28 19:23:57 Learn the theory of how databases work etc and how to design them before learning to create them. Jul 28 19:24:12 If you create before you understand the design of them, you'll only have to create it again. Jul 28 19:24:37 that actually makes sense Jul 28 19:24:43 yeah but don't get stuck in design theory, sometimes making mistakes while trying is better Jul 28 19:25:22 Of course once you've understood the design part, etc. you will still make mistakes, but with an understanding of the theory you can understand why and how you have made those mistakes. If you don't you'll just keep making different mistakes. Jul 28 19:25:37 any recommendations on a good source to learn? I know theres a lot out there but not all teach it properly Jul 28 19:25:50 At least if you understand why what you did is wrong you may be able to rectify the problem after. Jul 28 19:25:57 Hello all! Could someone point me in the right direction? I'm trying to build the S2 (i9100m) from JB AOSP.. Jul 28 19:26:20 * pfn tries updating sdk platform tools Jul 28 19:26:31 hmm, they are up-to-date... Jul 28 19:27:46 jonDeer: A quick google should find something that suits you - this doesn't seem to bad to read to get an idea of areas to read about: http://sqlmag.com/database-performance-tuning/sql-design-why-you-need-database-normalization Jul 28 19:28:17 cool beans ill give it a read thanks! Jul 28 19:28:18 There is probably a channel where you'd get better help with this though Jul 28 19:28:29 Cool beans? Jul 28 19:29:05 yessir Jul 28 19:29:15 jonDeer for what you are doing, the primary topics would be Tables, Primary Keys, Foreign Keys, and relationships (many-to-many, 1-to-many, many-to-1). Jul 28 19:29:53 jonDeer: mostly the thing to understand is normalization and denormalization and what / why it is used how to do it. this the crux of the relational in relational table. if you can do this the rest is details Jul 28 19:30:33 lasserix, jonDeer do you think he should understand the theory, and then use an ORM to implement? Or go with straight sql first? I've never thought about it from the perspective of someone new to databases Jul 28 19:30:36 i guess this is gonna take a lot longer than I thought Jul 28 19:30:57 just read a tutorial on what a database is and what primary keys are and how foreign keys link tables Jul 28 19:31:04 this gets you two normalization / denormalization Jul 28 19:31:09 it's fairly straight forward, Jul 28 19:31:17 but just download sqlite browser Jul 28 19:31:26 you can perform sqlite commands Jul 28 19:31:34 and build a table on your desktop Jul 28 19:31:58 I'd recommend keeping away from ORMs at first at least... Jul 28 19:32:03 and view it / probe it, then if thisis a school assignment you have to implement in android you can use your sqlite statements Jul 28 19:32:22 yeah definatly, orm is just convience Jul 28 19:32:32 knowing SQL is fairly useful, and there's generally no real reason to have object representation for table rows. You can just treat the cursor results by adapting them to your listview or whatever you have Jul 28 19:33:16 any idea how to remove the natural selector that comes up when UI elements are clicked? Jul 28 19:33:20 You'll need to know SQL, but there is no point in knowing the language to interact with a database, when that database is poorly created/designed etc. Jul 28 19:33:26 I use hibernate in proper java side but I do have to escape hibernate every now and then Jul 28 19:33:29 that faded out contour box that appears around the element when you press it Jul 28 19:33:42 jondeer http://code.tutsplus.com/tutorials/relational-databases-for-dummies--net-30244 Jul 28 19:33:46 my row representation is just Object[] and I use some dynamic programming to turn whatever is in that Object[] slots into viewable strings Jul 28 19:34:03 be sure to check out youtube tutorials Jul 28 19:34:04 sometimes literally if (foo instanceof X) { return ((X) foo).something() } Jul 28 19:34:04 let me show a screenshot Jul 28 19:34:55 jonDeer: http://www.alevel-computing.x10.mx/TutorialSQLite.php Jul 28 19:35:46 wow thanks ! Jul 28 19:35:55 "just read a tutorial on what a database is and what primary keys are and how foreign keys link tables" ;) A gem lasserix .... In other words ... educate yourself. Jul 28 19:35:56 there, that thing https://dl.dropboxusercontent.com/u/19390574/Screenshot_2014-07-28-22-33-46.png Jul 28 19:36:06 how do you remove that box behind the pressable element Jul 28 19:36:37 rgr cant tell if you are being sarcastic, i was giving him keywords to google ;p Jul 28 19:39:52 Hello, I want to integrate a API in my webproject so that android developers can use it. What is the best output format for android so that the developers can easy use the informations (only text)? Jul 28 19:40:46 Laire: JSON is pretty universal. Jul 28 19:41:11 + Jul 28 19:41:19 It will be usable from almost any platform, which is a big plus by itself. Jul 28 19:41:20 as is REST, or just plain query parameters for input Jul 28 19:41:40 json as ouput, query params as input seems to be the current wisdom Jul 28 19:42:19 query params? somthing like GET or POST ? Jul 28 19:42:48 http://www.restapitutorial.com/ Jul 28 19:42:58 Sicp: I assume you're using a gridview, so that's from its listSelector Jul 28 19:43:05 http://en.wikipedia.org/wiki/Representational_state_transfer Jul 28 19:43:13 yes, always I see that in listview or gridview Jul 28 19:43:14 query parameters are those shits you put into url after ? Jul 28 19:43:24 so listSelector = null? Jul 28 19:43:33 they imply GET. in POST, you do the same shit but instead of using the URL, you send those things as request body Jul 28 19:44:07 oh there is no such thing as = null. I mean = nothing Jul 28 19:44:07 there's alternative post style that is based on the godawful mime spec though Jul 28 19:44:22 if you can, avoid the mime spec to your last breath. It should have never seen light of day. Jul 28 19:44:57 @color/transparent should work Jul 28 19:44:58 however, when files are being sent to server, there's a general need for metadata, to specify the filename to use. I think taht is the only reason why mime was chosen. Whoever made that decision should burn in hell. Jul 28 19:45:09 alankila: yes i know. but didn't know the phrase query params Jul 28 19:45:12 Or @null Jul 28 19:45:18 Not sure why you wouldn't want a selector tho Jul 28 19:45:35 dont have a proper one yet, until then, dont want that thing Jul 28 19:46:04 Touch feedback is usually a good thing Jul 28 19:46:15 yes of course Jul 28 19:46:21 but it isn't implemented yet Jul 28 19:46:51 I do regard with some amusement that it apparently took until servlet spec 3.0 that java servers had to support mime bodies in requests Jul 28 19:46:54 I see the same thing in listview, but it doesnt have listSelector parameter in the suggestions Jul 28 19:47:50 Luckily there's documentation that can tell you supported attributes, so you don't have to rely on ide's for that Jul 28 19:49:44 hi guys, i have problem with layouts, i have frame layout and i want to add relative layout ontop of it, when i try to find it by view i get null Jul 28 19:50:39 any help would be appreciated Jul 28 19:51:00 Then there's no view with that id in the view hierarchy where you're trying to find it Jul 28 19:51:41 i gave id to that layout, and tried to fetch it with that name but get null Jul 28 19:53:42 It doesn't randomly decide not to return views. Either a view with that id exists in the hierarchy and findViewById will return it, or there's no view with that id and you'll just get null Jul 28 19:53:56 And as always, make sure to clean project Jul 28 19:59:54 i know it doesnt do random stuff, i did clean, im new to android, and obviosly i didnt do something right, tnx for answers Jul 28 20:04:54 All you told us was "it doesn't work", the only answer to that is "you're doing it wrong". You could've shown your code and we would probably have been able to provide a better answer. Jul 28 20:09:12 * pfn kicks the manifest merger some more Jul 28 20:10:37 i thought it was not polite to do it like that Jul 28 20:11:14 ok here is my layout file http://pastebin.com/DQTE5hBH Jul 28 20:12:31 relativelayout is going to be sometimes shown and sometimes hidden Jul 28 20:12:44 hmm, interesting, the manifest merger doesn't seem to work right if you explicitly pass in values to AndroidBuilder.processManifest Jul 28 20:14:43 and this is where im trying to fetch it http://pastebin.com/GVVrXb7Z Jul 28 20:15:15 but layout1 is null Jul 28 20:15:32 You never set that layout as the content view Jul 28 20:15:53 Your view hierarchy only contains a MapView Jul 28 20:18:32 right, tnx a bunch Jul 28 20:22:18 Hey guys. I'm having problems trying to get the Id column from my sqlite table. The column is a numeric primary key. I can get the other ones without problems. Any ideia ? Jul 28 20:24:01 I'd like to be able to take the largest possible square picture on the phone, but show the preview in portrait mode (with translucent overlays on the top and bottom to indicate which parts aren't the viewport). this should also work if the camera is oriented differently from the phone, for example, camera that is longer horizontally than vertically Jul 28 20:24:26 is there a way to do this that doesn't involve a bunch of messy code and calculations? Jul 28 20:29:31 funny guy. "bunch of messy code and calculations". Jul 28 20:29:59 or sitting in front of a computer Jul 28 20:30:20 "Here's my partially specified problem, can I get it to work without coding it?" Jul 28 20:31:10 and he quit before we could even answer it Jul 28 20:31:58 short answer: no. Jul 28 20:31:59 heh Jul 28 20:36:50 Hi all. I'm trying to submit a patch to the Android Developer's Guide (https://developer.android.com/guide/index.html), but I can't find the relevant git repository at https://android.googlesource.com/. Does anyone know where I should look? Jul 28 20:37:01 I just want to submit a patch about some documentation Jul 28 20:40:43 are there archives for this channel? Jul 28 20:40:53 I asked a question earlier, but then got disconnected Jul 28 20:43:51 gavri: noone answered your question Jul 28 20:44:21 gavri: maybe android:scaleType="centerCrop" is the shortcut you're looking for Jul 28 20:44:41 or something like that Jul 28 20:46:00 shmooz: thanks. I'll look that up Jul 28 20:46:47 I'll probably still have trouble with landscape mounted cameras though Jul 28 20:46:54 driving me insane Jul 28 20:52:43 when taking an image with camera, it might be a good idea to force that activity to be in portrait orientation Jul 28 20:53:07 otherwise you get extra rotation as the camera is already rotated in real life and gets rotated once more for display, it seems Jul 28 20:53:50 alankila: thanks a lot. that helps me Jul 28 20:54:11 this is confusing as it is. that could only have made things worse Jul 28 20:56:08 Is there any new great tool/lib you'd use for an Android project? Like Otto/Dagger/that kind of stuff Jul 28 21:08:13 can anyone point me in the right direction? I want to build JB AOSP for my samsung galaxy s2 i9100... Jul 28 21:12:37 tessawill: doesn't xda-developers have anything on it ? Jul 28 21:14:02 hi shmooz. I've been on xda for 3 days now. LOL! Jul 28 21:14:22 trying to figure out what exact search words I should use. Jul 28 21:15:01 like: i9100 jb asop build Jul 28 21:16:14 i've gone to the howto "pages", they all talk about using existing ROMS. and how to build the enviornment. which is great. but how do I build with the open source and propritiry files.. nope Jul 28 21:16:27 #android-root Jul 28 21:17:06 this conversation is for #android-root??? Jul 28 21:17:17 read teh topic Jul 28 21:18:04 i did before I asked the question. i'n not looking to use a custom rom. just want to build from scratch... but ok. thanks for pointing me out. I'll go there. Jul 28 21:18:09 thank you! Jul 28 21:21:10 Hello all! Jul 28 21:24:09 I would have some help for software keyboard events catching Jul 28 21:24:35 I 'm new here and I don't know if it's the better chan Jul 28 21:28:04 Is created an IME is necessary to catch this kind of event? The doc refers to OnKeyListener but it is only for hardware Keyboard Jul 28 21:28:06 I am very surprised that this doesn't have more stars https://github.com/Nimrodda/WizarDroid Jul 28 21:31:38 hey guys, has anybody successfully contacted google about Google Play Developer Account Suspension Jul 28 21:31:47 I'm trying for couple of weeks Jul 28 21:32:23 such poor support :( actually, there is no support Jul 28 21:32:25 anybody here? Jul 28 21:34:07 any google person here? Jul 28 21:40:23 Hey, anyone familiar with Kitkat porting? Jul 28 21:40:37 I'm trying to port Android L to my Kobo Arc Jul 28 21:40:52 It boots to the kernel, I can access it via adb shell Jul 28 21:41:25 Framebuffer seems to be initialized, I can cat /dev/urandom to my /dev/graphics/fb0 and generate random pixels Jul 28 21:41:32 but it can't start the GUI Jul 28 21:42:25 I get lots of "init: untracked pid xxx exited" and "request_suspend_state: wakeup (0->0)" in dmesg, logcat can't be accessed as the bootanimation doesn't start Jul 28 21:43:19 Wendigo98, this channel is for app dev. Try #android-root or one of the aosp mailing lists Jul 28 21:43:38 Ok Jul 28 21:44:17 has anyone had experience with google play Developer Account Suspension? Jul 28 21:44:34 Anyone know how to catch software keyboard event? Jul 28 21:44:41 I just want to know whyyyyyyy Jul 28 21:45:30 vichod: did yhou have apps suspended recently? or did you do something not allowed Jul 28 21:45:45 vichod, I don't know much about it but as far as I know Google never tell you why. Jul 28 21:46:02 all of them.. all the account. I don't know what I did, that's the question Jul 28 21:46:24 what kind of apps did you have? Jul 28 21:46:34 I think it could be a mistake, or it can be resolved somehow.. Jul 28 21:46:39 I would expect you got an email explaining it to whatever the owner email of the account is. I wouldn't expect much of an explanation however. Check your spam folder. Jul 28 21:46:50 I can't believe why don't care so much Jul 28 21:46:59 Google is architected to not allow anyone to interact with them, so there's likely nothing you can do, and definitely nothing anyone here can do Jul 28 21:47:10 I had the generic email like many people Jul 28 21:47:24 Notification of Google Play Developer Account Suspension Jul 28 21:47:42 you only had one app? or did you have others Jul 28 21:47:43 pastebin the contents if you really want, but it won't change anything Jul 28 21:47:53 i want to know what apps you had Jul 28 21:47:54 :) Jul 28 21:47:55 not one I had 10 Jul 28 21:48:12 and they were? Jul 28 21:48:30 I had several games and 2 horoscope apps Jul 28 21:48:47 nothing adult or anything illegal Jul 28 21:49:06 did you have any copright infrigemenmenmt going on Jul 28 21:49:15 since if you don't pastebin your email tihs is all just guessing, this is rapidly becoming boring Jul 28 21:49:21 I think the horoscope apps were the problematic ones because I got letter from admob only for them Jul 28 21:49:30 but don't know what was the problem with them.. Jul 28 21:49:47 most likely it was either because you violate data collection/advertising rules, or copyright claims Jul 28 21:49:47 my email is info@buzlylabs.com Jul 28 21:49:54 BuzlyLabs was the dev name Jul 28 21:49:55 https://play.google.com/about/developer-content-policy.html Jul 28 21:51:05 so you didnt have any apps removed before the suspension? it just happened in one go? Jul 28 21:51:34 I had 2 other warning for 2 years Jul 28 21:51:55 three strikes anyone Jul 28 21:51:55 ? Jul 28 21:52:20 yep, this was the third one.. Jul 28 21:52:23 if google suspends your play account, don't they also suspend your wallet also ? Jul 28 21:52:27 yes Jul 28 21:52:30 vichod: 2 warnings in 2 years? I never had one at all. Jul 28 21:52:33 maybe thats the reason Jul 28 21:52:34 yes, they did Jul 28 21:52:46 well, you broke the rules three times Jul 28 21:52:53 @danijoo you're lucky :D Jul 28 21:53:11 vichod: thats nothing with luck. Thats reading the TOS and not violating them Jul 28 21:53:24 I didn't want to.. Jul 28 21:53:27 vichod: what two apps got you a warning before? Jul 28 21:53:36 like iffa I guess the suspension was the #3 . Jul 28 21:53:48 "Google Play considers all prior violations of the Content Policy and Developer Distribution Agreement from individual developer accounts as well as associated accounts. These violations will have been outlined in previous emails sent to the registered email address(es) of the Publisher account(s)." Jul 28 21:53:58 the first one was ios theme, which is understandable...I was guilty Jul 28 21:54:07 second? Jul 28 21:54:26 https://support.google.com/googleplay/android-developer/answer/2491922 Jul 28 21:54:31 there you go. follow that. Jul 28 21:54:34 the second one was for a flappy bird type of game, called Clumsy Penguin Jul 28 21:54:39 it never got live Jul 28 21:54:57 Well. How many warning do you want to get before getting banned from store? No offense. Jul 28 21:54:58 http://www.amazon.com/BuzlyLabs-Clumsy-Penguin-Flappy-Wings/dp/B00IIHY2DI Jul 28 21:55:22 There is one thing, and one thing only, you can do, which is file an appeal on the url i just pasted. Jul 28 21:55:29 There's nothing anyone here can do Jul 28 21:56:36 vichod: do you have a list of apps you had? or descriptions of each Jul 28 21:57:01 i didn't know that i'm violating any terms with the clumsy penguin game... Jul 28 21:57:12 custom graphics, music, everything Jul 28 21:57:33 chances are you werent, but youll have to write that appeal to try and sort this out Jul 28 21:57:37 yeah vichod. its just a copy with another skin on it. Jul 28 21:58:13 there are still games like this live Jul 28 21:58:15 https://play.google.com/store/apps/details?id=com.seriouscorp.clumsybird Jul 28 21:58:19 what's the difference Jul 28 21:58:32 there are still murderers arround, so am I allowed to murder? :) Jul 28 21:58:37 :D Jul 28 21:58:55 seriously ? :D Jul 28 21:59:25 btw clumpsy bird has a lot of more features then flappy burd, like online multiplay Jul 28 21:59:42 danijoo: https://play.google.com/store/search?q=flappy%20bird&c=apps Jul 28 21:59:53 i dont see why vichod 's clone cant be in there Jul 28 21:59:55 to be honest Jul 28 22:00:03 iffa: I hate them all together :0 Jul 28 22:00:07 I agree but still I don't think they look at the features.. Jul 28 22:00:20 vichod: write that appeal Jul 28 22:00:29 just tell them everything you know Jul 28 22:00:31 I did that Jul 28 22:00:45 and got automated response like everybody that tried did Jul 28 22:00:53 they didn't even read it... Jul 28 22:01:02 oh, you already got the "nope" response? Jul 28 22:01:05 yeah google sucks at those q.q Jul 28 22:01:06 yep Jul 28 22:01:12 big time Jul 28 22:01:12 i have problem with drawing relativelayout over framelayout code: http://pastebin.com/1G0emedz layout: http://pastebin.com/HqpBSSYk log: http://pastebin.com/5mpaxCtM Jul 28 22:01:19 vichod: well... thats agme over i guess Jul 28 22:01:23 same for admob. they ignore most of requests. Jul 28 22:01:27 please help me Jul 28 22:01:27 I had troubles with Apple apps, they even called me on the phone Jul 28 22:01:33 im rookie Jul 28 22:01:55 problems? Jul 28 22:02:11 yep with update rejections for some reason Jul 28 22:02:16 google is a lot like valve with customer support Jul 28 22:02:26 they dont have the staff to do it and they dont care Jul 28 22:02:36 but there is a resolution center, you can ask, write, get responses... talk to people.. Jul 28 22:02:41 true Jul 28 22:02:43 with google... they just don't care Jul 28 22:03:14 vichod: but good news: you can still continue making apps... only you cant put them on the play store! Jul 28 22:03:19 long live amazon app store! Jul 28 22:03:27 :D Jul 28 22:03:35 thank you for telling me that D: Jul 28 22:03:38 :D Jul 28 22:04:28 so you had 1) violation because of using iOS layout Jul 28 22:04:33 You can violate the TOS without even knowing Jul 28 22:04:40 2) cloned a game (others do to, but thats still not ok to do ) Jul 28 22:04:46 if some ad network or jar is using something.. I don't know.. Jul 28 22:05:05 3) ???? Jul 28 22:05:07 sounds like your own fault, althought this sounds harsh.. Jul 28 22:05:18 don't know the 3 one Jul 28 22:05:20 vichod: can you make that list of your apps and their descriptions Jul 28 22:05:26 I guess they didnt send the 3) and just took the consequences. Jul 28 22:05:29 danijoo: they do that Jul 28 22:05:42 i guess they think by the third one the dev knows what they did wrong Jul 28 22:06:40 not sure about the descriptions, I'll try to find if crawling site has it Jul 28 22:08:23 vichod: are all your apps on amazon too Jul 28 22:08:27 http://www.apkcraft.com/dev/buzlylabs.com-buzlylabs Jul 28 22:08:30 some of the apps Jul 28 22:08:35 not all Jul 28 22:08:58 danijoo: lets get to work :P ^ Jul 28 22:09:36 Sometimes google is right, and I think this is one of those cases .. Jul 28 22:09:55 that crodocile looks familiar Jul 28 22:10:00 spelled that wrong Jul 28 22:10:16 it's a stock image that i bought.. Jul 28 22:10:25 ah Jul 28 22:10:37 2 violations and update rejections by apple (they have reasons, too) Jul 28 22:10:53 :D who didn't have rejections come on... Jul 28 22:11:04 companies like appgratis got wiped out Jul 28 22:11:11 with 16M funding Jul 28 22:11:17 and many others Jul 28 22:11:36 what are we talking about? (just joined) Jul 28 22:11:52 porn Jul 28 22:12:09 shipit: TOS violating apps Jul 28 22:12:27 On Android or iOS though? Jul 28 22:12:32 Android Jul 28 22:13:25 anyway :) thanks for the .. for your thoughts :) Jul 28 22:13:32 My biggest gripe, on a slight tangent, is currently with Google Play Store. The fact that games has its own section, as well as merging them with "Apps". Gaming and non-gaming apps should be completely separate. Jul 28 22:13:36 vichod: do your games use in-game purchasing? Jul 28 22:13:54 I knew that, i just wanted to know what was it.. and don't think it's normal not to have any kind of support Jul 28 22:14:02 Anthaas: that annoys me so much as well Jul 28 22:14:10 unfortunatly normal for google. Jul 28 22:14:17 no, they don't Jul 28 22:14:33 ads? Jul 28 22:14:35 if anyone read TechCrunch, who here is above/below the app poverty line? Jul 28 22:14:39 ads yes Jul 28 22:15:06 mainly admob & chartboost Jul 28 22:15:24 shipit: whats that povery line? Jul 28 22:16:19 hang on, lemme look for the link and tl'dr Jul 28 22:16:33 I think I found it already http://techcrunch.com/2014/07/21/the-majority-of-todays-app-businesses-are-not-sustainable/ Jul 28 22:16:43 yep, I saw that Jul 28 22:16:46 true story Jul 28 22:17:16 http://techcrunch.com/2014/07/21/the-majority-of-todays-app-businesses-are-not-sustainable/ Jul 28 22:17:25 if you search, there are many stories and much more dramatic... Jul 28 22:17:28 oops Jul 28 22:17:39 y, click bait Jul 28 22:18:28 and believe it or not many people don't want to violate TOS Jul 28 22:18:30 im above with one app. This gets me through my mastery study Jul 28 22:18:57 like this guy with the clumsy bird game... it's again a clone.. but it was lucky, one of the first or something Jul 28 22:19:42 I like when apps succeed, doesn't matter if it was silly or deep. It was useful for someone! Jul 28 22:20:02 yeah. but being lucky does not make it right.. Jul 28 22:20:04 agree Jul 28 22:20:31 danijoo: there is no "right". It just is. Jul 28 22:21:02 im no lawyer so I dont actually know if this cloning is a legal infrigment. Jul 28 22:21:10 but if its up to me, it is Jul 28 22:21:18 and all those clones should be banne Jul 28 22:21:20 d Jul 28 22:21:32 the game wasn't even in any store :D Jul 28 22:21:43 if you're talking about the flappy bird game Jul 28 22:22:06 but this is another topic Jul 28 22:22:31 you got a warning from google for a game not even released ? O.o Jul 28 22:23:40 you know what happened with flappy bird.. the guy removed it, and then the clones started Jul 28 22:23:49 to flood Jul 28 22:23:55 yep. Jul 28 22:25:10 As I said. Im not a laywer. I dont even know if this is a real infrigment Jul 28 22:25:13 i made it because i thought it will be funny to play it with http://skillz.com/ Jul 28 22:25:46 but it never made it :D Jul 28 22:26:04 please i need help with these layouts Jul 28 22:26:15 OK than you guys... Jul 28 22:26:25 i have problem with drawing relativelayout over framelayout code: http://pastebin.com/1G0emedz layout: http://pastebin.com/HqpBSSYk log: http://pastebin.com/5mpaxCtM Jul 28 22:26:56 vichod: TOS of google dont allow playing for money. Maybe there you have the reason. Jul 28 22:27:32 but i didn't integrated it yet :D Jul 28 22:27:38 ok ^^ Jul 28 22:27:40 i wanted to release it first Jul 28 22:27:46 and then integrate it Jul 28 22:27:58 and you got a message from google before even releasing the game Jul 28 22:28:01 ? Jul 28 22:28:02 and there are many android games with skillz Jul 28 22:28:05 thats creepy Oo Jul 28 22:28:16 yep, it never got live Jul 28 22:29:34 not before releasing, I published it but it didn't pass Jul 28 22:29:55 Vasquez: Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f070026 type #0x12 is not valid Jul 28 22:29:56 maybe the description was the problem then Jul 28 22:30:27 Somewhere in you xml is a value assigned that doe not exists Jul 28 22:30:36 but htere it is in xml Jul 28 22:31:23 Whats that view in line 9 to 14 Jul 28 22:31:40 if this should be an image, change it to ImageView Jul 28 22:32:10 its ackground image on which i catch onTouch events Jul 28 22:32:49 any advice or tips on tricks for how best to log and examine object member data when running an app? Do you tend to use logcat or maybe use some special class to log to an on device file? Jul 28 22:33:06 System.out or Log.whatever Jul 28 22:33:22 anyhere here is hierarchyviewer? if it shows 0ms is that a great time or a mistake? Jul 28 22:33:25 Whatever is easiest to add in and remove. Jul 28 22:33:28 and you advise them over other methods because? Jul 28 22:33:51 rgr: I usually write a custom Logger class that does Wrap Log.d, Log.e usw. All with an if(Build.DEBUG) Jul 28 22:34:09 by this way there wont be logcat messages for production builds Jul 28 22:34:23 Why not use log.d or whatever Jul 28 22:34:26 and then i have static variables to enable/disable logging for different parts of the app Jul 28 22:34:28 System.out strikes me as a pretty stupid thing to do. Jul 28 22:34:32 and then before deploying remove all log calls Jul 28 22:34:42 Why if you only need to know whilst developing? Jul 28 22:34:45 Anthaas: he does. but wraps it. Jul 28 22:34:47 again it throws same exception Jul 28 22:34:53 Anthaas: if you do if(Build.DEBUG) Log.d(blabla) you dont have to remove them Jul 28 22:35:09 No, but every time your app does anything, if will run an unnecessary if statement. Jul 28 22:35:14 I know it doesnt take long, but still... Jul 28 22:35:15 because the compiler will remove them for you when building a non-debug version Jul 28 22:35:16 nope Jul 28 22:35:24 Build.DEBUG is a static false then Jul 28 22:35:28 Anthaas: because adding system.out is dumb : you need to comment out etc. With a custom class logging or not based on a debug flag you dint need to modify the code. thats bad. Jul 28 22:35:34 and java compiler will remove the whole statement Jul 28 22:35:45 danijoo: +1 Jul 28 22:36:19 I'd just use Log.d and use the (i believe it is adb way) of removing all Log calls before deploying Jul 28 22:36:28 Anthaas: look up Heisenbugs too. Jul 28 22:36:33 That way it is in your code but not in your release Jul 28 22:36:54 the compiler is pretty intelligent. It also automatically replaces string contenation in while loops with StringBuilder and stuff like that Jul 28 22:36:55 <_3mpty> rgr: I'm using Timber library for logging, one if in app.onCreate and ready to go Jul 28 22:37:00 yeah, that would be pretty silly whne you can do it with the compiler. Jul 28 22:37:25 _3mpty: I'll take a look. Jul 28 22:37:53 Anthaas: and If you find a bug at some part of your app one month later, you have to readd all those Log.d's again. pretty annoying.. Jul 28 22:38:34 danijoo: You'd have to read them anyway? How else are you going to debug? Jul 28 22:38:37 and inefficient and plain silly. Jul 28 22:38:43 Timber <3 Jul 28 22:38:48 Also FlipTable <3 Jul 28 22:38:54 (which is completely unrelated) Jul 28 22:39:18 Anthaas: adjusting code for release is a no go on any well thought out project. Its just not done. You let the compiler do the work. Jul 28 22:41:33 so to come back to your question rgr: I have this Logger class as wrapper of android Log class and static final boolean log = true/false; in several classes to enable or disable logging for them Jul 28 22:42:00 works fine Jul 28 22:42:29 yeah, I had something similar a while back. are you getting the logs in real time in the IDE log pane? (I use intellij) Jul 28 22:43:07 yeah just the normal logcat output from intellij or DDMS. Jul 28 22:43:22 it also has a button to save the log afaik Jul 28 22:47:12 do i need to make a service if i want to have my music playing app keep playing the music when the user goes to do something else? Jul 28 22:58:54 iffa: yes Jul 28 22:59:07 i hate doing that Jul 28 23:05:29 are there good examples of making a service for my music player? Jul 28 23:12:28 Heyo! Jul 28 23:12:54 How are you feeling today? Jul 28 23:13:37 Are you a therapist? Jul 28 23:13:51 No, it's just a conversation starter :D Jul 28 23:14:32 i am feeling not too good, i cant get android to ask to open my app when going to a url :( Jul 28 23:15:42 Uhmm... http://stackoverflow.com/questions/2958701/launch-custom-android-application-from-android-browser might be some help? Jul 28 23:15:53 trust me... it isn't Jul 28 23:16:04 I've browsed about 20 similar questions Jul 28 23:16:37 You sure? It has everything quite detailed. Jul 28 23:16:52 yeah true Jul 28 23:16:57 The first part pretty much ansewers your question Jul 28 23:17:04 iffa: if you need a known working example: https://github.com/JesusFreke/Penroser/blob/master/AndroidManifest.xml Jul 28 23:18:04 Anyway - I have a Java question. There seems to be an issue, that one of the function is unable to resolve the file, making me thing I have missed something regarding filenames Jul 28 23:18:19 but i only want it to open up when going to http://www(random numbers).zippyshare.com/v/(random numbers)/file.html Jul 28 23:18:21 thats my issue Jul 28 23:18:29 it gets too complicated for my brains Jul 28 23:18:31 or android Jul 28 23:18:49 regex? Jul 28 23:19:01 if (link matches regex) { open with my app } Jul 28 23:20:00 what's a kick ass tablet except for Nexus 7? Jul 28 23:20:11 I'm looking for speed and crisp display Jul 28 23:20:41 There you go: http://stackoverflow.com/questions/4762251/android-matching-a-url-pattern Jul 28 23:20:53 android:pathPattern Jul 28 23:20:57 MissionCoder: i'll have a look Jul 28 23:20:58 thanks Jul 28 23:21:35 MissionCoder: (not having read the backlog), you probably want to explain your problem better. a "function is unable to the file" doesn't make much sense Jul 28 23:22:57 Ohh, never noticed that typo. Jul 28 23:23:08 MissionCoder: is this the same issue you had before? Jul 28 23:23:16 Yeah. Jul 28 23:23:28 I just can't let it outta my head Jul 28 23:23:58 I just noticed that it says that it's the file that it can't resolve, which I guess just adds to the awkwardness :/ Jul 28 23:24:31 what says what? Pastebin or something.. :) Jul 28 23:24:37 Yeah, I'll do that. Jul 28 23:24:42 Then go ask in ##java. Its nothing to do with android per se. Its simply because you havent put your source inthe right place with the right package name in the source file I think. I dint want to be unhelpful - and we did say this before. Jul 28 23:24:53 (assuming its the same issue) Jul 28 23:25:39 It is the same issue, but those guys are even more unhelpful than you guys are. They just complain about me using this method. Jul 28 23:26:28 Do I need support libraries if I am only targeting Android 4.4.4? Jul 28 23:26:58 No Jul 28 23:27:01 possibly Jul 28 23:27:18 Yeah, they're wankers. But this is down to java classpath etc. Work it out. And really, dint go posting links to stackoverflow that you (generic you) dont understand knowing nothing of someone like iffa's problem - it doesnt help anyone and brings this group down to the level of ##java which is the dregs. Jul 28 23:27:23 thanks! Jul 28 23:27:34 viewpager is only in support lib Jul 28 23:30:14 Zharf: That's funny! I was just thinking I should replace my idea for NEXT & PRIOR buttons with ability to swipe left & right, then you tell me exactly what I need! Are you a mind reader??? :-) Jul 28 23:30:38 it's quite commonly used component... :P Jul 28 23:33:32 I see lots of libraries use the support libraries for things, I'd keep them in Jul 28 23:34:48 Here's the pastebin by the way: http://pastebin.com/C8crmxXT Jul 28 23:35:10 Zharf: Curious: I thought support libraries were for features inn later versions of Android, made available for earlier versions! So I would have thought there would be an equivalent page swipe functionality built into the 4.4.2 API, so what am I missing in my understanding? Jul 28 23:36:02 Nivag: There is, but there is also the possibility to do things depending on API at run time. (Alternative for multple APKs I guess) Jul 28 23:36:03 I think it's a good idea to put functionality like that into external libraries so they can be used anywhere and not duplicated Jul 28 23:36:23 i've tried another 4 different things and cant get the browser to ask to open my app when going to the url Jul 28 23:36:24 :/ Jul 28 23:36:49 MissionCoder: are you sure it says "cannot resolve file"? Jul 28 23:36:54 Cannot resolve class, maybe? Jul 28 23:37:02 It says file.. Jul 28 23:37:19 Which I was weirded out about myself Jul 28 23:37:29 can you pastebin the actual error? Jul 28 23:37:38 I'll get you a screenshot Jul 28 23:39:05 Here it is http://i.imgur.com/RkBTSIZ.jpg Jul 28 23:40:12 ah, that's just an IDE warning Jul 28 23:40:46 Looks more like an interpreter exception to me Jul 28 23:41:17 the IDE doesn't do any interpretation Jul 28 23:41:32 yes it does. well AS does. Jul 28 23:41:50 now the Q is : what happens in the debugger when you set a break point there? Jul 28 23:42:11 MissionCoder, why are you even doing it like htat Jul 28 23:42:41 and DOES that clas exist in your classpath for the x1000th time of asking. Jul 28 23:42:58 The correct way to do that anyway would be new Intent(this, MyActivity.class) Jul 28 23:42:58 MissionCoder, why not just use MyActivity.class? Jul 28 23:43:10 or rather, the normal way Jul 28 23:43:22 Well, I know that the correct/normal way would be that. It's just that it does not works what buggs me. Jul 28 23:43:23 no exceptions to worry about Jul 28 23:43:27 *bugs Jul 28 23:43:36 what doesnt work? Jul 28 23:43:39 MissionCoder, define doesn't work Jul 28 23:43:43 MissionCoder: it's just a problem with the IDE. If you actually run it, it would work like that Jul 28 23:43:49 Throws out an exception. Jul 28 23:43:57 no it wouldnt. it says exception. Jul 28 23:44:05 because 100% that class doesnt exist. Jul 28 23:44:26 oh, wait. forName might expect the class name with the slash syntax, rather than the dot synta Jul 28 23:44:26 x Jul 28 23:44:34 yeah.. Jul 28 23:44:47 Really? Jul 28 23:44:56 hmm, nope. the dotted syntax should work Jul 28 23:45:27 MissionCoder: what's the actual runtime exception when you try to run it? Jul 28 23:45:59 Error:(28, 43) error: unreported exception ClassNotFoundException; must be caught or declared to be thrown Jul 28 23:46:29 Yeah, that's just a compile error that 's trivially easy to fix Jul 28 23:46:30 because you're not catching it -.- Jul 28 23:46:33 just add a catch for that type Jul 28 23:46:45 multicatch \o/ Jul 28 23:46:56 the problem there is the "Unhandled exception", not the "cannot resolve file" Jul 28 23:47:08 that doesnt help anything. its still raising an exception meaning its not found or? There should be no unhandled exception. Jul 28 23:47:14 Ooh, I got the wrong exception :D Jul 28 23:47:25 rgr: I don't think he's ever actually successfully compiled it Jul 28 23:47:33 Damnit :D Jul 28 23:47:35 what?!? Jul 28 23:47:36 Now it worked Jul 28 23:47:41 -.- Jul 28 23:47:51 I accidently put ClassCastException instead of ClassNotFoundException for catch... Jul 28 23:48:05 thats not working. thats just catching the exception. Jul 28 23:48:10 MissionCoder, learn of these things: alt+enter, alt+space :) Jul 28 23:48:31 erm, ctrl+spac Jul 28 23:48:32 e Jul 28 23:48:36 Uhmm... Jul 28 23:48:42 rgr: his previous "not working" was really just "not compiling" Jul 28 23:48:45 who was that guy here recently constantly asking about his intent not working. I have a funny feeling..... Jul 28 23:48:46 Now that it compiled, I wonder where can I see the exception? Jul 28 23:48:46 the ide would just fill it out for you Jul 28 23:49:03 MissionCoder: you won't get an exception Jul 28 23:49:03 Zharf, that's what I did, just too soon. Jul 28 23:49:05 MissionCoder: you use the debugger. read the manual. Jul 28 23:49:06 because the class exists Jul 28 23:49:22 although using printStackTrace is bad Jul 28 23:49:35 and printStackTrace can cause more interesting problems := Jul 28 23:51:35 Okay, now that this has gotten off my mind, and you seem already annoyed with me. I guess I shall leave you professionals until I have any other questions. Jul 28 23:51:40 Farewell. Jul 28 23:52:06 meh Jul 28 23:53:00 taking the mickey wont help..... try to understand how to use the IDE and debugger. Jul 28 23:53:09 he left Jul 28 23:53:36 Hi. Is there more documentation on Android's magnetometer vector Jul 28 23:53:48 hes the same guy who kept asking about his intents last week. pretty sure of it. kept asking the same issue with no attempt to provide any context or code or proof of what he tried. Jul 28 23:56:57 Nah, I doubt it was him Jul 28 23:58:14 This guy had better grammar :) Jul 28 23:58:27 oh yeah, he was badgering you ;) Jul 28 23:58:28 Assuming you're talking about Messii, or whatever his name way Jul 28 23:58:38 yeah. thank that was him. Jul 29 00:02:23 Does anyone have a good ViewPager Tabs tutorial I can reference? Looking to make an app with only two navigation elements - seems like the nav drawer is overkill. Jul 29 00:02:57 hi is anyone having issues connecting to godaddy? Jul 29 00:03:42 Helloooooo Jul 29 00:03:46 Anybody help me? Jul 29 00:04:08 my app stopped working with godaddy over the weekend, nothing changed... and then I found this http://stackoverflow.com/questions/24970431/android-the-target-server-failed-to-respond Jul 29 00:04:13 so godaddy did something Jul 29 00:06:20 When i put a setText in a editText, the string setText delete all text writing in my editText Jul 29 00:09:08 - Jul 29 00:09:15 -- Jul 29 00:09:25 wat Jul 29 00:09:42 CRonaldoo: people dont have crystal ball. pastebin your code and explain what lines you have paused at in the debugger and what you think should happen. Jul 29 00:09:51 Ok man Jul 29 00:10:41 EditText emoticon = (EditText) findViewById(R.id.input); Jul 29 00:10:41 Input.setText(emoticon); Jul 29 00:10:48 Messii, pastebin, not here Jul 29 00:10:57 oh right. CRonaldoo is Messi. Jul 29 00:10:57 Its only Jul 29 00:10:59 Messii, although, the answer is: well duh? Jul 29 00:11:07 Messii: pastebin : not here. Jul 29 00:11:28 Ok Jul 29 00:11:38 Are you for real? Input.setText?!?!?!?! Jul 29 00:12:15 post the layout and onCreate. Jul 29 00:13:32 Ok Jul 29 00:13:33 Here Jul 29 00:13:35 Http://pastebin.com/WpmGVs0C Jul 29 00:14:23 Is difficult to explain, but it is understood Jul 29 00:14:40 once again your dont paste anywhere near the code. you layout. I give up. Jul 29 00:15:14 You do not need more than that. Jul 29 00:15:22 Im inrigued as to what you think you're doing there. Jul 29 00:15:26 intrigued Jul 29 00:16:17 Explained this perfectly. You need not look too Jul 29 00:16:23 you dont "put a setText" into anything. But allowing for language : you are applying an EditText as a string? Im not familiar with that. Jul 29 00:16:44 rgr: isn't it obvious? you put the foo in the bar, and the fizzle does the dizzle. You don't need to see any more to be able to understand it Jul 29 00:16:59 Ok Jul 29 00:17:07 even allowing for my confusion there why do you think setText will "append" anything. Jul 29 00:17:18 heh Jul 29 00:17:59 Button -> emoticon -> setText -> sent to editText -> Correct Sent!!! -> The emoticon put en my editText-> "BUT" delete all text and replace for the emoticon Jul 29 00:18:20 I have no idea. You have provided no code. Jul 29 00:18:39 foo -> bar -> fizzle -> dizzle -> EMOTICON OMG LOL HAND Jul 29 00:19:08 Messii: setText replaces the text in the View... it doesn't append Jul 29 00:19:52 I wish that when you press an emoticon, just my EditText is added without replacing anything Jul 29 00:19:59 Messii: last chance . We dont know what the View type is for R.id.input. We have NO idea what "input" is. You have provided nowhere near enough. Have you used te debugger? Read the JavaDoc for SetText? Jul 29 00:20:21 Ok Jul 29 00:20:22 One moment Jul 29 00:20:33 you cant add an edittext through setText.... READ the JavaDoc. Jul 29 00:20:35 rgr::: Its for you Jul 29 00:20:56 I ont want it for me. I want it for everyone and then maybe someone can help you. Jul 29 00:21:34 where's JesusFreke ? Jul 29 00:21:49 I don't think so :) Jul 29 00:21:57 in heaven, at the right hand of FatherFreke Jul 29 00:22:01 heh. Jul 29 00:22:37 Http://pastebin.com/0d1TtJvE Jul 29 00:22:40 Part of the problem is that morons in ##java discourage using a debugger because of that crap Kernighan spouted decades ago when OO didnt exist and a big program was 100 lines long .... Jul 29 00:22:54 Not know what else you want to see, the code works Jul 29 00:23:19 wow :) Jul 29 00:23:31 I need a method that the emoticon only add, delete or replace anything without Jul 29 00:24:24 well done. Still no layout. emo1-6 look , err, interesting.... You really are lost. I'll give you that. Jul 29 00:24:24 Does anyone have a good ViewPager Tabs tutorial I can reference? Looking to make an app with only two navigation elements - seems like the nav drawer is overkill. Jul 29 00:24:53 Messii: set a breakpoint with the debugger and step over those setText lines. bring up the javadoc. No one will help you if you dont help yourself. Jul 29 00:25:10 Messii: just get the text and then append and then set it, what's the problem ? Jul 29 00:25:20 that's close to being so bad that I'm not sure it's real Jul 29 00:25:25 exactly Jul 29 00:25:30 trolling maybe. Jul 29 00:26:05 I will say, for the ninth time Jul 29 00:26:23 rgr: seems feasible Jul 29 00:26:31 When a sent the string emoticon to edittext , the emoticon replace and delete all text Jul 29 00:26:32 trying to set text with an EditText reference : is that some kind of trick I dont know about? I guess it could be. Because surely Messii would realise its rubbish otherwise. Jul 29 00:26:37 When a sent the string emoticon to edittext , the emoticon replace and delete all text Jul 29 00:26:57 s/with/to... Jul 29 00:27:51 rgr::: I is not that what you do not understand, all i want absolutaente script to try it in your eclipse? Jul 29 00:27:55 Right. A day dealing with secondary rendering threads, callbacks and handlers has left my brain frazzled. the docs really are crap....night. Jul 29 00:28:07 Bye friki Jul 29 00:46:40 Anyone know a way I can export an xml layout file into html? Jul 29 00:46:51 Somehow i got roped into making the webpage for the documentation ;p Jul 29 00:49:02 Zzzzz Jul 29 00:51:02 hey guys. do tabhosts usually go to previous tab on back, or no? Jul 29 00:52:28 not previous, but last visited Jul 29 00:55:02 theblang: I don't think they work like that Jul 29 00:55:48 shipit okay, great. because that would have complicated things Jul 29 00:56:05 yeah and would be sort of weird behavior :) Jul 29 01:27:56 any thoughts on using Android L preview - pros & cons? Jul 29 01:30:02 for what ? Jul 29 01:33:37 making a service wasn't as complicated as i thought... wow Jul 29 01:33:48 anyone have experience compiling cyanogenmod from source? Jul 29 01:38:27 I was trying to use this "$ ./get-prebuilts" but I get a permission error. Jul 29 01:38:27 #android-root Jul 29 01:38:28 bankai_au: ? Jul 29 01:38:28 ?? Jul 29 01:39:03 ax562: He just gave you the best channel for help on that matter. Jul 29 01:39:12 bankai_au: were you replying to my question? If so I didn't understand Jul 29 01:39:26 yes, read the topic Jul 29 01:39:35 Anthaas: Ok thank you. Jul 29 01:39:41 bankai_au: thank you Jul 29 01:44:53 Well, Android Studio doesn't like RecycleViews (L UI widget, AS says they can't render it and it'll be fixed in a few weeks) Jul 29 01:48:04 can't remember where I read that it'll take a few weeks, might have been for something else actually. Jul 29 02:00:57 this is a weird situation. how do I access the super method of an @Override function from within the anonymous class Jul 29 02:01:49 (doing an alert dialog anonymously) Jul 29 02:05:29 should just be super.whatever(...) **** ENDING LOGGING AT Tue Jul 29 03:00:00 2014