**** BEGIN LOGGING AT Tue Jul 22 03:00:01 2014 Jul 22 03:06:36 just came across this: https://github.com/JakeWharton/hugo Jul 22 03:06:46 Jake Wharton rulezzz!!! Jul 22 03:16:15 Does there exist a library that has extended the Preference classes to provide a better way of automatically updating the android:summary field for each one? Jul 22 03:27:39 does SystemClock.elapsedRealTime() continue to tick when my app is backgrounded? Jul 22 03:29:18 whomp: "Returns milliseconds since boot" Jul 22 03:32:29 JesusFreke, so yes? Jul 22 03:33:26 yes Jul 22 03:33:43 Boot continues to get further away, even when you're not executing Jul 22 03:34:00 maybe he's writing a time manipulation app Jul 22 03:34:16 If so, can I beta test? Jul 22 03:34:22 I'd love to stop or reverse time Jul 22 03:36:21 wtf are these new annotations.xml in the new versions of appcompat Jul 22 03:43:34 pfn: I wish all this support, appcompat nonsense would go away Jul 22 03:47:54 why? what would you do instead? Jul 22 03:48:43 just use main? eg android.widget.ViewPager no support-v4 or support-v13 Jul 22 03:48:49 they may as well just move the whole OS into appcompat :) Jul 22 03:48:55 exactly! Jul 22 03:48:59 what's the point Jul 22 03:50:22 best would be if we can work out a community sourced library Jul 22 03:50:43 so your answer to no external libs is more external libs? Jul 22 03:51:17 no, *no* external libs and whatever is Google controlled, let it be community driven Jul 22 03:52:10 I don't know if JSR process is the best example but could be used to base on Jul 22 03:53:09 that would be awful Jul 22 03:54:23 dude! I'm using so much of your code in my projects - deepest gratitude :) Jul 22 03:55:11 is your apprehension regarding a central design ICS, Material? Jul 22 03:57:29 does anyone know how to automatically reconnect to a bt device when the connection is lost? Jul 22 03:58:11 the fact that Google is moving to external libraries is good Jul 22 03:58:23 the OS should be a foundation, not an everything-but-the-kitchen-sink Jul 22 03:59:29 JakeWharton that's how I see it but the fact that UI framework is closely controlled and libs, what now seem to be, spawned at-whim Jul 22 04:00:01 OS should be the threading, process, intents, Activity, Fragment, Service, Handlers etc Jul 22 04:00:31 the widget library is Frankesteined Jul 22 04:01:08 suddenly I realize somewhere that my base activity should've extended from the support FragmentActivity Jul 22 04:01:29 and cascading getSupportFragmentManager(), et al Jul 22 04:02:07 fragment should have never been in the platform Jul 22 04:02:26 haha i knew you'd pick at that ;) Jul 22 04:02:37 I think I could agree to that Jul 22 04:13:31 is there any difference between taking y values from each touch event versus taking the y value from onScroll events? Jul 22 04:13:49 wondering if one might be smoother or something Jul 22 04:14:23 hi, anybody compile android version ics 4.0.4 under ubuntu 14.04 successed ? Jul 22 04:14:43 topic .... Jul 22 04:14:45 i got a problem like this : build/core/host_java_library.mk:56: *** Too many words (30381). Stop Jul 22 04:16:09 anybody help ? Jul 22 04:16:14 wh-hw: read teh topic Jul 22 04:17:44 no body answer me over there Jul 22 04:17:53 doesn't make t his the right channel Jul 22 04:19:53 bankai_au this logic pops up so often; there has to be a name for this progression of reasoning Jul 22 04:21:41 the human condition Jul 22 04:54:17 g00s: "entitlement" Jul 22 05:22:20 Is there any way in android to call a local variable in an activity in some other activity? Jul 22 05:34:55 anyone know how to open the amazon app store from another app? Similar to the google play method of startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + appPackageName))); Jul 22 05:47:30 any way to automatically connect to a remote bluetpooth device? Jul 22 05:56:42 JakeWharton, hello using okhttp and making a simple request to a JSON API should I put all requests in AsyncTasks ? Jul 22 05:56:52 no Jul 22 05:56:56 never AsyncTask Jul 22 05:57:16 i mean, it'll work, sure Jul 22 05:57:34 but it's a bug magnet Jul 22 05:57:36 I am a bit loss here, how should I use the client on the working Jul 22 05:57:38 thread Jul 22 05:57:38 ? Jul 22 05:58:15 case scenario: I am starting the application and I should do an API call before I launch another activity Jul 22 05:58:18 Loader, IntentService, Retrofit, Volley, HandlerThread Jul 22 05:58:26 anything but AsyncTask Jul 22 05:59:17 I see I haven't heard of the Loader - will check it out thanks Jul 22 06:00:17 Is there a way to get contact's contact id through Phone class? Jul 22 06:00:58 JakeWharton, what would you use Async for? Jul 22 06:01:19 i don't know Jul 22 06:01:27 saving something to the filesystem Jul 22 06:01:48 something one-off that will take no more than 100ms Jul 22 06:03:13 Retrofit seems kind of nice, it uses okhttp as a client ? Jul 22 06:03:22 it can Jul 22 06:03:26 it's agnostic to the http client Jul 22 06:03:35 but if you have OkHttp it will use it automatically Jul 22 06:04:05 I see what you mean.. Jul 22 06:04:51 so okhttp, retrofit and picasso - alternative of volley Jul 22 06:04:55 as a stack Jul 22 06:05:04 volley can be used with okhttp Jul 22 06:05:07 yes Jul 22 06:05:15 but yes, i use the former three Jul 22 06:05:35 I will give it a try it's a new project thank you Jul 22 06:07:23 tagrudev: an alternative network library that you might want to consider: https://github.com/koush/ion Jul 22 06:07:42 How can I get the Contacts._ID from CommonDataKinds.Phone? Jul 22 06:07:49 the Contacts._ID and Phone._ID don't match. Jul 22 06:11:29 barbs, I was using loopj/async-task-http, it depends on httpurlconnection though Jul 22 06:12:42 this ion thing though looks nice and it's all in one stack Jul 22 06:13:08 tagrudev: I've used it a little bit before, it's quite nice. Jul 22 06:30:32 hey Jul 22 06:30:34 Hmm.. I get runtime exception when searching for contact's phone number. Jul 22 06:31:05 whats a good way of implementing a trial of an app, requiring an in-app purchase after some time? Jul 22 06:31:27 a check on sysdate wont stop hacks like the time machine feature in per app hacking xposed module Jul 22 06:31:41 then again, everything can be hacked Jul 22 06:33:36 hi anyone there? Jul 22 06:34:05 i want to develop an app with using web services Jul 22 06:34:19 can anyone give me idea ? Jul 22 06:36:26 can I look at an existing bluetooth connection to see if it is a client or server or both? Jul 22 06:37:01 haci not sure what you want Jul 22 06:37:54 detachYo i never used web services before Jul 22 06:38:19 so i have no idea i just want to develop simple app as an example Jul 22 06:38:41 have you searched google? Jul 22 06:38:49 web service is mostly your service that the app can talk to Jul 22 06:39:12 for example, if you have RESTful service, something like https://mywebsite.com/user/get/user_id Jul 22 06:39:20 which can return json, then you take that json and parse in your receiver end Jul 22 06:40:57 got it thanks Jul 22 06:51:02 I have a string variable userid_value Jul 22 06:51:29 I want to access this string variable in some other activity Jul 22 06:51:33 how can i do that? Jul 22 06:51:48 will activityname.userid_value work? Jul 22 06:54:05 niru: if you can import the R, then it shouldn't be a problem I think Jul 22 06:54:42 you mean I can access thorugh resources? Jul 22 06:54:47 yes Jul 22 06:55:25 Will R file store all the variables which are either global or local ? Jul 22 06:56:06 oh wait, I thought that you mean a string from strings.xml Jul 22 06:56:15 meital: no :( Jul 22 06:56:33 I have decalred a string like this String userid_value=un.getText().toString(); Jul 22 06:56:33 so you are asking a general java problem? Jul 22 06:56:41 and I want to use this userid_value in someother activity Jul 22 06:57:01 use like only get its value? Jul 22 06:57:04 I'm trying to compile an android project, and I keep getting this error: Jul 22 06:57:08 [ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.8.0:generate-sources (default-generate-sources) on project wallet: Execution default-generate-sources of goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.8.0:generate-sources failed: Invalid SDK: Platform/API level 14 not available. This command should give you all you need: Jul 22 06:57:12 you can write a getter Jul 22 06:57:23 meital: ah ok... Jul 22 06:57:32 I checked with android-sdk/tools/android sdk and I have buildtools installed, platform 14 API is installed as well Jul 22 06:57:39 What might be the problem here? Jul 22 06:57:42 public String getWhatever() { return whatever; } Jul 22 07:07:07 I checked with android-sdk/tools/android sdk and I have buildtools installed, platform 14 API is installed as well Jul 22 07:07:24 I'm trying to compile an android project, and I keep getting this error: [ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.8.0:generate-sources (default-generate-sources) on project wallet: Execution default-generate-sources of goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.8.0:generate-sources failed: Invalid SDK: Platform/API level 14 not available. This command Jul 22 07:07:24 should give you all you need: Jul 22 07:07:38 Problem is that AFAIK, I have that installed already, so who do I keep getting that error? Jul 22 07:12:01 Hi, I'm querying to Events.CONTENT_URI to get all the avaliable events. When there is a full day event, its start time is 0:00 GMT and not local zone. any idea how to fix that? Jul 22 07:15:33 Is this not a proper field String userid_value=un.getText().toString(); Jul 22 07:15:39 meital: ? Jul 22 07:18:24 niru, Activity objects can't access each other, they're not meant to do that Jul 22 07:18:43 If you need to access it, pass it as an intent extra Jul 22 07:19:45 How do I access the documents folder of my app over USB? Can that be done via Android File Transfer tool for Mac? Jul 22 07:20:15 with shell Jul 22 07:20:25 I'll give that a quick google then Jul 22 07:21:02 nope, not rooted. Jul 22 07:21:08 is there a way to access that without root? Jul 22 07:21:14 I guess yes Jul 22 07:21:18 adb shell Jul 22 07:21:34 then /data/data/app.name/ Jul 22 07:21:35 etc Jul 22 07:21:58 ohh Jul 22 07:22:10 wait, it lets me chdir but doesn't let me see anything Jul 22 07:22:39 You can't do it easily without root Jul 22 07:22:49 :/ Jul 22 07:22:56 Unless you code in your own file browser to your app ;) Jul 22 07:23:01 haha Jul 22 07:23:01 ok Jul 22 07:23:04 forget that then Jul 22 07:23:10 I have a higher level question now Jul 22 07:23:59 I want to log the past 20 events and send them with a crashlog when the app crashes Jul 22 07:24:09 frankdrey: what about mounting sdcard elsewhere? Jul 22 07:24:15 My idea is to log to a file, then read the last 20 lines to send with the crashlog Jul 22 07:24:18 Is this reasonable? Jul 22 07:24:56 ekx: crash logging and reporting is common Jul 22 07:25:16 squ, it's not on SD card Jul 22 07:25:30 ekx, why not send just the stack trace? Jul 22 07:25:40 Oh Jul 22 07:25:43 frankdrey: not sure that has enough info Jul 22 07:25:47 I dunno, up to you Jul 22 07:25:49 :p Jul 22 07:25:54 frankdrey: in some cases I might need some other info Jul 22 07:26:03 ekx: I guess you have to have permission to deploy that app Jul 22 07:26:09 Android won't let you access logs you shouldn't Jul 22 07:26:13 As of 4.1 Jul 22 07:26:14 I mean add a logging capabilites and deploy on device Jul 22 07:26:32 I already have an internal Log() function that I use for other purposes Jul 22 07:26:44 so it is your app? Jul 22 07:26:49 I just added (but have not tested) logging to a file on disk Jul 22 07:26:49 yes Jul 22 07:26:57 it's my own app Jul 22 07:27:59 also, on Android, there's only a few directories we can shove data in, right? filesDir, cacheDir, and external versions of each? Jul 22 07:28:47 Anywhere on external if you request the permission Jul 22 07:29:13 ah right Jul 22 07:29:14 ok Jul 22 07:31:23 oh fuck, my mouse stopped working Jul 22 07:33:15 so if I want to keep the log files around as temporary data, yet still want testers to be able to send me the full log files, should I stick it in the caches directory? Jul 22 07:33:26 I see that some files can be accessed from Android File Transfer tool without any special setup Jul 22 07:33:40 I'm not sure what those files are though Jul 22 07:42:28 Getting no where fast, been looking. I run ubuntu 14.04 and my Samsung Galaxy note 3 does not mount at all. Any of you ran into this? if so what did you do ? Jul 22 07:45:04 lasserix are you there? Jul 22 07:51:50 hey, whenever I add a FloatingActionButton (from https://github.com/FaizMalkani/FloatingActionButton) to a DrawerLayout it appears to be treated as a pullout drawer on the right Jul 22 07:52:07 is there any way to stop this? Jul 22 07:59:36 w8 nvm Jul 22 08:14:58 how can i share simple data (imagine an id) to another device running the same app? Jul 22 08:16:02 fancy42: internet, bluetooth, nfc, wifi direct, audio, getting someone to type it Jul 22 08:17:04 Estel, i meant remotely, sorry. also i don't want to write my own webservice Jul 22 08:18:14 i'm currently looking into google cloud messaging... Jul 22 08:19:27 Consider a BAAS like Parse Jul 22 08:21:02 fancy42: try Pubnub Jul 22 08:25:58 thanks, i'm looking into that right now... but since this is for a minor feature i don't think i can spend too much time/money on it :/ Jul 22 08:54:00 hey Jul 22 08:54:18 my app is setting a diferent theme for the main activity in diferent phones Jul 22 08:54:47 different how? Jul 22 08:54:50 i'm testing it with the samsung galaxy s4 and it works fine, on phones that don't have the options key, it fails Jul 22 08:54:57 well the action bar color is diferent Jul 22 08:55:08 and i'm using fragment tab host, and the fragments just overlap the tabs Jul 22 08:55:17 and the tabs are transparent Jul 22 08:55:33 and i can't find a reason for that to happen Jul 22 08:55:48 Can you screenshot, and maybe paste your styles.xml? Jul 22 08:57:45 ofc, give me a few minutes Jul 22 09:11:56 http://pastebin.com/UWDX0m33 why? Jul 22 09:12:50 tabhost ;_; Jul 22 09:13:51 yofun, it doesn't have default category Jul 22 09:18:52 Anyone know which part of the metainformation about a song on a given album is the most used search term when searching music? Jul 22 09:19:24 title? -.- Jul 22 09:19:37 then artist then album? Jul 22 09:19:55 you said given album, so yeah Jul 22 09:20:16 Maybe the album doesn't matter so much these days ;p Jul 22 09:20:36 matters to me, a lot :p Jul 22 09:20:41 I always listen to an album at a time Jul 22 09:20:47 and in order Jul 22 09:20:48 :p Jul 22 09:21:59 Ahh so you must only listen to vinyl? Jul 22 09:22:14 no... what makes you say that -.- Jul 22 09:22:40 one album at a time and in order, most audiophiles swear by their record players Jul 22 09:23:01 I'm a sensible audiophile Jul 22 09:23:03 The seek on a record player is supposed to scratch the quality too! Jul 22 09:23:12 I'm also a music player developer Jul 22 09:23:32 Oh yeah I think I remember you posted up some screen shot some time trying to resolve something? Jul 22 09:23:45 possibly Jul 22 09:24:25 I rarely ask questions though because it's generally so easy to find the answers Jul 22 09:24:56 lasserix: hi Jul 22 09:26:03 Zharf yeah, less fun sometimes though there's a reason to goto classes sometims Jul 22 09:26:07 hello niru Jul 22 09:26:27 is there a very simple logging facility in Android, my target is 4.4 and above. Jul 22 09:26:30 > Jul 22 09:26:33 ? Jul 22 09:26:38 lasserix: you remember I was asking for skipping login activity? Jul 22 09:26:38 but my music player doesn't use android's own decoders and metadata library, so I don't really know much about those... though I should investigate them a little to see if I could fabricate an intent for endomondo to figuere out which song I'm listening to... just simply making a same kind of intent as MediaPlayer does didn't work, most likely because the metadata library didn't have the id Jul 22 09:27:00 lasserix, classes? like... school/study? :) Jul 22 09:28:16 http://stackoverflow.com/questions/5554682/android-imageview-adjusting-parents-height-and-fitting-width there is not standard ImageView to solve this issue? Jul 22 09:29:23 Zharf it should be pretty easy to insert to the Music MediaStore Jul 22 09:29:27 lasserix: http://pastebin.com/yT0whsp3 worked Jul 22 09:29:50 lasserix, yeah probably, I just haven't had the time to look into it :) Jul 22 09:29:57 niru nice looks very clean :) Jul 22 09:30:18 lasserix: but is that correct approach? Jul 22 09:30:21 and you can call it wherever you need to in the activity Jul 22 09:30:23 sure Jul 22 09:30:32 Nivag, define simple logging facility? Jul 22 09:31:16 just remember that getIntent() is really (MainActivity) this.getIntent() Jul 22 09:31:55 Actually which intent are you getting this from? This is in your second activity ? Jul 22 09:32:19 lasserix: no I added it in the first activity. But this gets executed every time Jul 22 09:32:34 lasserix: and even if not logged in I come to 2nd activity automatically Jul 22 09:32:39 niru you are already in mainactivity so why do you launch it again? Jul 22 09:34:21 niru activities are started with intents, so if you start MainActivity with the intent that you set "need logic extra" to true, it'll goto the else. but the android system is calling the launcher intent (usually) when your app starts, so it'll (usually) never a value of "need login extra" set so it'lll never return true Jul 22 09:35:15 Zharf: I'm a very experienced developer, but relatively new to web stuff, and almost a total novice at Android. I would like to put simple debug statements so that they appear on the console when I run it from Eclipse. Later when my app is being tested, I will want to log key information to a file on the device itself. n I'm writing a specialized app that is to run on a Nexus 7, so I only... Jul 22 09:35:16 ...have to worry about Android 4.4 and above. These 2 use cases could be done using different techniques, if that is more sensible. Jul 22 09:37:22 niru: try http://pastebin.com/HqenJYLL this should work in the same way Jul 22 09:37:58 but now you can also insert a value, when the user actually completes the login (after the first time) Jul 22 09:38:29 lasserix: let me check Jul 22 09:38:59 Nivag, http://www.slf4j.org/android/ Jul 22 09:39:05 can probably do it Jul 22 09:39:10 Zharf: I've been programming in Java on & off since JDK1.1, before that several other languages C, COBOL, FORTRAN, and others. In essence: I can over complicate before I realize it! :-) Jul 22 09:39:11 my videoview is reset when I scroll around and it gets out of view Jul 22 09:39:15 thanks Jul 22 09:39:21 turns black and starts over again Jul 22 09:39:25 want to avoid reloading Jul 22 09:40:26 I just finished building aosp for my n7 (flo) and after "fastboot flashall" it is stuck at the google logo screen. Is there any way do debug this? Jul 22 09:41:23 mathias_: got a hammer? Jul 22 09:41:53 niru; sorry got my bools reversed, check your msgs Jul 22 09:44:06 Anyone knowledgeable about Android URI matching in the AndroidManifest? The pattern matcher is really bizarre Jul 22 09:44:37 I want to match example.com/foo and example.com/magic/ but not example.com/somethingOther/andherecomesmore Jul 22 09:45:07 I was quite successful with two data elements pathPattern set to "/..*" and "/..*/", but it still matches the last case Jul 22 09:50:31 How do I add a aar file to the libs folder in a project in android studio? Jul 22 09:51:02 Desarun: Yes, do I need to attach a serial debugger to actually debug this? Jul 22 09:52:50 mathias_: stick the log up on hastebin.com & lets have a look Jul 22 09:53:23 How do I get the log? I think its too early in the boot process to attach with adb Jul 22 09:53:36 At least its not working. Jul 22 09:53:46 mathias_: when you flashed it, you would've done it via the command line, right? Jul 22 09:54:00 Yes, with fastboot, and it reported no errors **** BEGIN LOGGING AT Tue Jul 22 09:55:15 2014 Jul 22 09:57:39 how do I make my app show up on the list of apps to take notes with when using google now's "take a note" command Jul 22 09:59:30 rymate1234: Install IntentIntercept and check what intent to catch. Jul 22 10:00:59 (Assuming it uses Intent based selection) Jul 22 10:01:49 appears to be Jul 22 10:02:00 it looks like the standard intent chooser Jul 22 10:02:10 thanks Jul 22 10:03:27 :) Jul 22 10:03:55 flan3002, apparently it cannot intercept it Jul 22 10:03:56 :( Jul 22 10:04:22 doesnt appear as an option - only google keep and gmail does Jul 22 10:04:35 * flan3002 sighs. Jul 22 10:05:40 ? Jul 22 10:05:56 rymate1234: What exactly do you enter? Jul 22 10:06:07 I mean... how do you take a note? :D Jul 22 10:06:11 "take a note" into google now Jul 22 10:06:20 or "note to self" Jul 22 10:07:03 Indeed... Jul 22 10:07:36 gonna try and logcat it Jul 22 10:07:40 see what happens Jul 22 10:07:57 It shows Any.do and GMail for me... Jul 22 10:08:12 I'll find out. ;) Jul 22 10:08:20 well at least it isnt a google exclusive.. :D Jul 22 10:08:21 hope! Jul 22 10:10:03 I/ActivityManager(12664): START u0 {act=android.intent.action.SEND cat=[com.google.android.voicesearch.SELF_NOTE] typ=text/plain cmp=android/com.android.interna Jul 22 10:10:03 l.app.ResolverActivity} from pid 13118 Jul 22 10:10:19 Well, that solves it. :) Jul 22 10:10:36 I was reading it's huge manifest... Jul 22 10:10:45 *its Jul 22 10:17:09 I have an aar file, I am trying to include in my gradle android studio project, but am failing miserably, anyone do something like this? Jul 22 10:17:27 later this aar file will be in the maven central, but for now trying to just test it locally Jul 22 10:17:37 Configure a local maven repository Jul 22 10:17:51 is an option, anyway Jul 22 10:17:54 Um yeah, I am trying to do it Jul 22 10:18:03 the trick with repo flatDir ? Jul 22 10:18:18 err flarDir { dirs 'libs' } ? Jul 22 10:18:22 *flatDir Jul 22 10:18:50 not looked at flatdir, sorry Jul 22 10:23:53 thanks tho Jul 22 10:24:14 yay it works! Jul 22 10:24:19 time to recieve the intent now Jul 22 11:01:11 I could spend all day watching monkeyrunner Jul 22 11:11:53 I want to call the openLogout() present in once activity in another .How to do? Jul 22 11:24:49 I have a core2duo system with 4gb ram. Is it normal that running eclipse and a AVD takes like almost 100% cpu? Jul 22 11:31:14 Probably, the emulator is awful Jul 22 11:31:17 jesperj: look at genymotion Jul 22 11:32:46 thanks Jul 22 11:33:21 It's crippling my system so much that I have to close the AVD when I want to code because there is delay even scrolling the code <_< Jul 22 11:34:17 I never thought my core2 4gb ram system was EVER sluggish before android development lol Jul 22 11:38:43 did you open the emulator from eclipse? I found out that opening it from "android avd" and not from eclipse has better performance Jul 22 11:39:04 Question: If you have some free time and want to build something small, what would it be ? Jul 22 11:43:55 meital: Always from eclipse via "run" yes. I will try that thanks Jul 22 11:45:16 jesperj: Just try Genymotion. You will not regret it Jul 22 11:46:13 * jesperj googles it Jul 22 11:46:43 the_silver_one: something small like a small app? Jul 22 11:49:07 I am a dev, and will have some free time soon to work on something small... Anyone have any ideas ? Jul 22 11:49:28 yes a small app Jul 22 11:58:19 i'm very confused by the appearance of progress_medium_holo, i believe it *should* look like this: http://i.stack.imgur.com/6o4Bd.png (with 2 circles), but in some places mine seem to get drawn differently, with only one circle like this: http://i.stack.imgur.com/WoRNk.png Jul 22 12:04:45 Hello everyone. I'm trying to connect to arduion via bluetooth, but when i trying to http://paste.ubuntu.com/7835687/ im getting error: 07-22 14:58:14.173 17551-17551/kazak.btwoupe D/BLUETOOTH﹕ read failed, socket might closed or timeout, read ret: -1 Jul 22 12:06:36 kazak1377: just guessing - did you add the permissions to the manifest? Jul 22 12:07:08 meital: uses-permission android:name="android.permission.BLUETOOTH_ADMIN" android:maxSdkVersion="19" /> Jul 22 12:07:08 Jul 22 12:07:22 the_silver_one: with/without ui? a game? something useful? Jul 22 12:16:00 any ideas? Jul 22 12:27:16 my one plus one is doa, woe is me :( Jul 22 12:28:42 Hi. Alll I want is to make a "Hello World" app, that gets the imei of the user. How can i do thi Jul 22 12:29:43 KingInTheNorth: http://stackoverflow.com/questions/1972381/how-to-programmatically-get-the-devices-imei-esn-in-android Jul 22 12:33:18 Thanks for link meital . Do you mind me asking how the developer could save the IMEI in the background? Jul 22 12:33:38 KingInTheNorth: I didn't understand the question Jul 22 12:34:05 meital: How do I save the person's IMEI? Jul 22 12:34:37 String androidID = System.getString(this.getContentResolver(),System.ANDROID_ID); Jul 22 12:34:46 and then u have it in androidID var Jul 22 12:35:44 oe: Jul 22 12:35:45 or: Jul 22 12:35:48 TelephonyManager telephonyManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); Jul 22 12:36:01 String imei = telephonyManager.getDeviceId(); Jul 22 12:36:26 Hey, For some reason GCM gives me a 401 when I try to send a request from my server but it works fine when doing it on my local machine. I set the ip for the server key to 0.0.0.0/0 so that shouldn't be an issue. Do an of you guys know what's happening? My code: https://nnmm.nl/?PVJ Jul 22 12:44:23 a horrendously stupid Q I guess but ..... I have an ImageView and I can set the background using set view.setBackgroundResource(bg); and the fg using view.setImageResource(fg); . I can retrieve the *bg* "drawable" using view.getBackground(). But do I retrieve the foreground "drawable"? Or isnt it a drawable. I'm getting a little confused here .. ;) Jul 22 12:46:24 Anyway of me coding this app without me downloading eclipse and sdk android? am lazy to wait for that t o download(other comp) Jul 22 12:46:43 You're joking right? Jul 22 12:46:47 Nope :)) Jul 22 12:47:10 dont wanna download on this comp Jul 22 12:47:49 KingInTheNorth: Yes, sure. It's just a lot more complicated. :) Jul 22 12:47:49 stop spamming. Jul 22 12:49:47 rgr, setBackground and getBackground are calls on any View Jul 22 12:50:03 rgr, and ImageView has a set of setImage* for settings and getDrawable() for getting image :) Jul 22 12:50:23 hello, sometimes shift esc doesn't collapse the other windows. It's really annoying. is there an absolute way(keyboard way, not mouse) to switch to just the editor view only, aka shortcut? Jul 22 12:50:37 Sorry, in Android Studio Jul 22 12:50:51 ah,. getDrawable. doh. Jul 22 12:51:21 naming is all over the place ;) Jul 22 12:51:40 veQue: not perfect but maybe close enough CMD+up_arrow followed by CMD+down_arrow (in MAC) Jul 22 12:53:06 thanks, i tried ctrl up, ctrl down in windows, no luck. But thanks for the effort =) Jul 22 13:03:03 KingInTheNorth, easy to use vim Jul 22 13:04:26 pfn: Well, plus hand-dexing, zip-aligning, signing and the whole stuff. Without adb you'll have to transfer and install it by hand. And all this assumes he actually got Java installed. :) Jul 22 13:05:39 (Though you don't need to zip-align) Jul 22 13:05:45 ant, gradle, maven, etc do all this Jul 22 13:06:14 Well, without the SDK? Not so much. :) Jul 22 13:10:33 who said no sdk, just no adt or studio Jul 22 13:10:49 Does anyone have an idea on what might cause "jarsigner error: java.util.zip.ZipException: ZIP file must have at least one entry" when signing an apk file? Jul 22 13:11:07 empty apk Jul 22 13:11:12 without me downloading eclipse and sdk android... But it's not worth discussing. :) Jul 22 13:13:45 you can probably get away with no sdk on maven and such, can compile but not produce an apk Jul 22 13:14:27 You can compile to .class-es, which is unlikely to be what he wanted. :) Jul 22 13:17:06 pfn: The apk isn't empty. Jul 22 13:18:06 it's enough for many aspects of development Jul 22 13:18:17 Matt_von_Mises, sure it is Jul 22 13:20:03 Is is possible to restrict user going between two activities using the return/back button ? I have two activities Main and Auth when application runs it starts the Main > onCreate() here I check SP if user is logged in if not I start Auth activity now I have to prevent user from being able to go back to Main activity until they are logged in basically until a string is added to SP Jul 22 13:20:44 neredsenvy, just finish() the main activity Jul 22 13:20:56 and it'll be removed from the backstack, which means pressing back will close the app Jul 22 13:21:12 please, DON'T disable the back button, it's a horrible user-hostile pattern. Jul 22 13:21:30 pfn: I can confirm that it is not. It appears to contain everything in there. Jul 22 13:22:01 Ah ok so basically finish the main activity then when user presses login button I validate the credentials and if they pass I start the main activity and close the auth Jul 22 13:22:02 Thanks Jul 22 13:22:13 mhm Jul 22 13:24:47 how do you confirm Jul 22 13:26:58 pfn: I used ls to see that the apk contains data and Ark to view the contents. Jul 22 13:28:58 I'm having a problem with canvas.drawRoundRect, basically only a small area of the image is drawn. Is there a way I can select a source rectangle? Jul 22 13:29:29 no idea what Ark is, use unzip or jar Jul 22 13:33:30 pfn: Ark is a archive manager. I'm trying to find out what package jarsigner belongs to on my system but I can't find that out. Jul 22 13:34:04 it's part of the jdk Jul 22 13:34:32 I'm using the camera API to let the user take a picture with their camera, but I also want to be able to let the user pick a photo from the file system. is there a standard way of doing this, or do I implement it using the file system APIs? Jul 22 13:39:05 anyone know of a good resource, ourside of the API docs, that discuss the different things you can apply to fg and bg in an ImageView? I can have an AnimatedDrawable on the bg but not the fg it seems. Or is it one or the other? Jul 22 13:39:06 action pick Jul 22 13:39:46 maybe with Intent.createChooser? Jul 22 13:41:31 ah. figured it. the run time crash was because I was trying to cast a simple drawable, not a drawablecontainer/animationdrawable to an animationdrawable. Jul 22 13:43:44 pfn: It looks like my system has JDK 7 (no idea how/when it was installed). I'll try jdk 8. Jul 22 13:44:28 Matt_von_Mises, for andoid JDK 7 should be fine (even 6) Jul 22 13:44:34 why? JDK 7 is fine. Jul 22 13:45:34 it is fine Jul 22 13:45:44 your apk is broken Jul 22 13:45:57 you hav not proven otherwise Jul 22 13:46:36 Whats the best Java technique to determine if my Drawable object is, in fact, also an AnimationDrawable? Jul 22 13:46:53 instanceof maybe Jul 22 13:46:56 rgr, instance of Jul 22 13:47:16 thank you. Jul 22 13:49:08 pfn: I got it working using OpenJDK 7. So it seems as though jarsigner is broken on some JDK versions. Jul 22 13:49:23 I doubt it Jul 22 13:50:09 i'm very confused by the appearance of progress_medium_holo, i believe it *should* look like this: http://i.stack.imgur.com/6o4Bd.png (with 2 circles), but in some places mine seem to get drawn differently, with only one circle like this: http://i.stack.imgur.com/WoRNk.png Jul 22 13:53:08 If jarsigner was broken there'd be a lot more noise about it ;) Problem is elsewhere most probably. Jul 22 13:53:53 Matt_von_Mises, more likely that one file you tried it on is broken Jul 22 14:01:14 what happens if you make a bunch of tabs then view the app on a small device, will the tabs move to a second line? Jul 22 14:01:32 catphish, like what? it's only supposed to be one spinner Jul 22 14:01:44 mattblang, no Jul 22 14:03:09 pfn: i believe it should be one overlayed on another (one clockwise, one anticlockwise) Jul 22 14:05:53 is there an easy way to have only one media player playing at the time Jul 22 14:06:14 i.e. playing the second one would stop the one currently playing Jul 22 14:09:36 I don't know if apps can interact with other apps like that Jul 22 14:10:26 unless both apps worked together to allow it? Jul 22 14:13:43 pfn: I figured out the problem. JDK 6 doesn't appear to do error checking on the digest algorithm used. I tried to use SHA256 but it seems as though this is not available. So using SHA1 solves the problem. Jul 22 14:14:03 pdimitrov, pretty much all my media players do that Jul 22 14:14:57 I believe it's somehow tied to the sound service or general rules on conduct for media playback. e.g. how they all show up in the notification bar while playing Jul 22 14:18:10 pdimitrov, http://developer.android.com/training/managing-audio/audio-focus.html Jul 22 14:19:42 I want to start doing android apps where is a good starting point Jul 22 14:20:02 get the sdk Jul 22 14:20:12 I have the sdk Jul 22 14:20:23 android studio Jul 22 14:20:37 and lots of coffee Jul 22 14:20:40 I got android studio and I have it setup on eclipse also Jul 22 14:21:05 code some games Jul 22 14:21:20 Swede69, http://developer.android.com/training/index.html Jul 22 14:22:07 Matt_von_Mises, you can't use Sha for older versions of Android Jul 22 14:22:39 Syzygy__: sorry I meant doing this within a single app Jul 22 14:22:52 say, a listview of videoviews Jul 22 14:23:19 http://stackoverflow.com/questions/14860258/android-how-to-stop-other-active-media-players Jul 22 14:24:06 basically, just keep a reference of the active mediaplayer(s) and manage that accordingly. Jul 22 14:24:08 Matt_von_Mises, hmm, I guess digest alg is fine with sha1 Jul 22 14:24:14 Syzygy__: yeah, I was thinking of something similar Jul 22 14:24:19 maybe if I only allow one Jul 22 14:24:23 not the signature alg, though Jul 22 14:24:29 it suffices to keep a reference to the last one that was playing actually Jul 22 14:24:50 yes. that sounds pretty simple to me. Jul 22 14:25:08 Hey Jul 22 14:25:12 single app? use a media player managing singleton Jul 22 14:25:30 can anyone tell me why this doesn't show any rows? http://pastebin.com/f2xzxp4q Jul 22 14:25:51 Moony22, because it's wrong Jul 22 14:26:01 ? Jul 22 14:26:30 na, sorry i haven't looked at it yet, I just wanted to be like pfn for once :> Jul 22 14:26:35 :( Jul 22 14:27:02 Syzygy__, why would you want to be an asshole? O.o Jul 22 14:27:19 I am experimenting with ProgressDialog and the examples I've found start a thread and as I understand it use it to update the progress. Running my code it seems like many threads are started at the same time. (Yeah I don't really know much about threads...). I'd like to use progressdialog but have the logic executed after each other instead of parallell as it seems to do now. > http://pastebin.com/1fVdT65F Jul 22 14:27:21 Moony22, because you're telling your list adapter you have 0 items. Jul 22 14:27:33 (getCount returns 0) Jul 22 14:27:37 oh Jul 22 14:27:39 ohh Jul 22 14:27:49 er, your list view, sorry :) Jul 22 14:27:51 can I set an onclick listener on an activity frame? eg my layout is a framelayout containing a couple of imgviews and views but can I detect a click outside of those eelements on "empty space"? Jul 22 14:27:53 btw, you should start your class names with a capital letter Jul 22 14:28:13 rgr, yes. Jul 22 14:28:14 Syzygy__: I thought I did Jul 22 14:28:20 Mavrik: thanks! Jul 22 14:28:22 rgr, just make sure any views above it don't consume the touch event Jul 22 14:28:27 class dataAdapter Jul 22 14:28:51 Im not quite sure what I attach the listener to in this case. Do I assign an ID the framelayout? Jul 22 14:29:00 yes Jul 22 14:29:50 rgr, why not attach it on the top-level viewgroup? Jul 22 14:30:12 which is most likely said framelayout Jul 22 14:30:27 Im being a bit slow today (heatwave and cider hangover). top level ciewgroup? Would that not be ma framelayout? Jul 22 14:30:35 ah ok Jul 22 14:30:37 it is Jul 22 14:30:43 thanks. I'll try be doing... Jul 22 14:30:54 ye gods my typing is foobarred today. Jul 22 14:34:25 hmm... just noticed that my programming music playist on youtube has like 800 views... interesting considering i never actually shared it Jul 22 14:35:08 Syzygy__: the bots like it? Jul 22 14:35:16 most likely Jul 22 14:37:43 Ah yeah. that worked a treat. Jul 22 14:38:41 http://pastebin.com/e6aSS4qM Any idea how I could center the ring without it being affected by the textview? Jul 22 14:38:44 https://www.dropbox.com/s/s2bippsbkzf59xj/Screenshot_2014-07-22-16-06-47.png looks like this Jul 22 14:40:55 Syzygy__: put the avatar and the text in a layout and center that layout in the parent? Jul 22 14:42:07 What is the best way to refresh the content of a FragmentTabHost tab that is already selected? Jul 22 14:42:26 layout_gravity doesn't seem to be available for RelativeLayout Jul 22 14:43:09 and aside from that, it's already in it's own layout, but it's still affected by the textview Jul 22 14:47:46 yay, I fixed it Jul 22 14:48:10 solved my mystery: because of the way it uses transparency, progress_medium_holo appears to only rotate in one direction on a light background, but 2 directions on a dark background, confused me for several hours Jul 22 14:49:16 catphish, I was actually thinking of suggesting "try it on a dark background" but then thought I wasn't quite sure what your issue is Jul 22 14:50:23 i assume there's an alternative light/dark version of it Jul 22 14:52:00 what classes do I need to look at to determine view and absolute corrdinates of where the touch occurred? Can I do it from withing the onClick or do I need to look elsewhere? Jul 22 14:53:52 onTouchEvent looks promising but that isnt called if the onClick is attached. Jul 22 14:57:07 http://pastebin.com/1fVdT65F < This example of progressdialog using threads does stuff in parallell and I'd like it to be done after each other. Can I use progressdialog without using threads? Jul 22 14:57:16 I have a clickable textview. How can I make the background highlight when you touch it, like a listview item does? Jul 22 14:58:43 Moony22: http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList Jul 22 14:59:46 onFocusChangeListener? Jul 22 15:00:06 evanc: I guess that's one way Jul 22 15:00:14 Moony22: that's _the_ way Jul 22 15:01:35 thats a lot of fluff to change just the colour. Jul 22 15:06:18 I want to make a circle shape that always stays a circle, I tried to define a fixed size (5dp width and height), but when I set it as the background of a textview it scales to the size of the text Jul 22 15:06:34 that would normally be a good thing, but the textview displays only a number and I want a circle behind it. Jul 22 15:11:08 rgr, i believe you get a motion event, even with onClick, the motionEvent should contain all the data you need for that Jul 22 15:34:32 Is it possible to add an entry to AndroidManifest.xml to start a service of mine as soon as an app launches? Jul 22 15:35:30 Yes Jul 22 15:35:41 an app or your app Jul 22 15:35:42 oh, app launches Jul 22 15:35:55 my app Jul 22 15:36:14 then just start it when it gets launched? Jul 22 15:36:14 i added a entry under my entry, and it isn't being launched along with the app Jul 22 15:36:30 exported set to false, enabled set to true Jul 22 15:36:41 canvs2321: do you mean from the main activity? Jul 22 15:36:43 yan_: you'd normally start it by calling startService() within an activity Jul 22 15:37:37 Estel: that was my last attempt, (i'm modifying an open source application), its main activity's onCreate isn't being called with the app is launched, so i'm trying to find an alternate method Jul 22 15:38:04 yan_: no, define app launches... Jul 22 15:38:47 actually, you probably don't need to even define that Jul 22 15:38:50 mikedg: the app is reinstalled via android studio's debug cycle and it launches without onCreate being called Jul 22 15:38:59 just tell us what your service does, why/when you want it to run Jul 22 15:39:17 yan_: doubt that Jul 22 15:39:18 yan_: you can't start a service on install Jul 22 15:39:18 You're probably checking the wrong activity's onCreate, because onCreate is always called? Jul 22 15:39:30 if the app is being run after a fresh instlal that's impossible Jul 22 15:39:53 if you see an activity from your app, onCreate is absolutely being called for that activity if it's from a fresh install Jul 22 15:40:44 mikedg: thus i'm here asking questions :) ideally, i'd want the service to be started when a usb device is plugged in. i added intent-filters for android.hardware.usb.action.USB_DEVICE_ATTACHED from AndroidManifest.xml, and those aren't being delivered by to the service/service isn't being started on demand. I found a stackoverflow thread that mentioned a bug where only activities can register intent filters for usb devices Jul 22 15:40:56 so now i'm trying to start a long-running service on app launch and have it poll for the device Jul 22 15:41:07 mikedg lives Jul 22 15:41:22 lol Jul 22 15:41:34 i'd rather not deliver the intent to the main activity, since i'm modifying an existing app and am trying to keep the intersection of code to a minimum Jul 22 15:41:45 question: is it fair to say that on rotation events, fragments do not get destroyed and recreated, but their onCreateView() method gets called, allowing you to recreate the UI? Jul 22 15:43:03 s1gmab3ta: that would depend on whether setRetainInstance() is true Jul 22 15:43:19 sup guys! Jul 22 15:43:35 yan_: onCreate() was definnitely, definitely called Jul 22 15:43:58 Estel: i believe it, but is there anything that'd cause the bp not being hit in Android Studio? Jul 22 15:44:07 Where was the breakpoint? Jul 22 15:44:08 Estel, is it false by default? Jul 22 15:44:25 Estel: the first line after the super.onCreate call Jul 22 15:44:51 how do i set a private string with already setted data?, in php is something like $array = array('some' => 'data'); Jul 22 15:45:02 but i want it to be a property of the class Jul 22 15:45:27 yan_: as long as the debugger is attached, I can't think of anything obvious other than it being the wrong class Jul 22 15:45:37 naschurmann: you can define a property as public and set it on the instance, or likely better, you can create setter/getter functions to modify it. is that what you're asking? Jul 22 15:45:49 s1gmab3ta: I think it's false by default Jul 22 15:46:00 Estel: i made sure that it was the main activity from the manifest.. i can look further into it though Jul 22 15:47:05 yan_: can i set a property as private and define it on the same line? like private string[] = (1 => 2, 3 => 4); Jul 22 15:48:23 s1gmab3ta: so by default, I think that they do get destroyed and created. Jul 22 15:48:45 Estel, good to know, thanks. Jul 22 15:50:17 yan_: java doesn't support associative arrays... so i can't do what i'm asking :P, sorry Jul 22 15:50:47 naschurmann: use a HashMap Jul 22 15:51:18 for a private var in the same line definition? Jul 22 15:51:40 I mean, it's a replacement for associative arrays Jul 22 15:52:08 Quite what you're doing with the data, I can't quite tell Jul 22 15:52:25 naschurmann: as Estel said, you can use a hashmap in place of an associative arrays, but more likely, you're trying to write php in java syntax and there's probably a better way to do it Jul 22 15:52:54 yeah, for what i want to do is have a private var that stores a user and passwd Jul 22 15:53:18 yan_: i'm new and i'm playing with android :P, so i want to go step by step ^^ Jul 22 15:53:22 naschurmann: 'private String userName; private String password;' ? Jul 22 15:53:31 You can declare the variable within the class and then set it later when it's first accessed Jul 22 15:54:21 hi Jul 22 15:54:47 i have a ExpandableListView, how i can get the position of ExpandableListView counting the headers ? Jul 22 15:55:39 it would be the sum of the counts of the prior groups + the number of headers + the current child index Jul 22 15:56:18 How do you run REGULAR unit tests (not instrumentation tests) Jul 22 15:56:25 I'm having odd issues Jul 22 15:56:29 how i can do? Jul 22 15:56:35 this isn't working, absurdly: http://pastebin.com/AU24jy1G Jul 22 15:56:47 the test2 log shows NOTIFICATION_SOUND Jul 22 15:56:56 but test3 log doesn't sh ow at all Jul 22 15:57:23 Moony22: Never do string comparison with "==" use "mystring".equals(whatever) Jul 22 15:58:11 explodes: thanks, I'll try Jul 22 15:58:22 Lint ought to pick that up Jul 22 15:58:26 explodes: :D it works Jul 22 15:58:54 Moony22: remember that rule or it will get you again! Jul 22 16:02:19 explodes: I'll remember! :p (I think I already learnt that but forgot :<) Jul 22 16:03:33 Don't remember the rule. Understand why you want to use .equals almost always in favor of ==. :) Jul 22 16:05:44 If (1.equals(count)) Jul 22 16:06:06 Eww. Jul 22 16:08:13 is there a trivial way to prevent the "up" navigation restarting the parent activity unnecessarily? Jul 22 16:08:47 ie if the parent activity is already in the stack i'd prefer just to return to it, but load it when necessay Jul 22 16:10:02 can i limit a text view on android to a specific amount of lines? Jul 22 16:10:13 yes, maxlines is a property Jul 22 16:11:08 android:maxLines="2" Jul 22 16:11:09 android:ellipsize="end" Jul 22 16:12:07 thanks Jul 22 16:13:05 ah, i think i need android:launchMode="singleTop" Jul 22 16:17:26 Is there any way to change properties of multiple TextView(s) easily, or do I have to do it for each TextView separately? Jul 22 16:18:13 astroduck: each one seperatly Jul 22 16:18:53 but there are loops in java. thing about it :) Jul 22 16:19:33 danijoo: any way to get all views inside some view in a List<...> object? Jul 22 16:20:49 getChilds? Jul 22 16:21:57 there is getChildCount() and getChildAt(int index). You can use them to build a loop Jul 22 16:22:27 Yeah that might work. thanks danijoo ^_^ Jul 22 16:23:00 hellpo Jul 22 16:23:02 hello Jul 22 16:23:12 how can I find out the reason my application is 6mb big? Jul 22 16:23:34 I mean, I've seen apps on play store that are under 1mb - my app doesn't do as much as them Jul 22 16:23:44 all I have are some png files Jul 22 16:23:52 are you running proguard? Jul 22 16:23:53 there you have it. Jul 22 16:24:05 Moony22: open your APK (it's just a zip) and see what's taking up so much space Jul 22 16:24:05 xmls and classes are nothing Jul 22 16:24:15 its usually all in the assets Jul 22 16:24:28 danijoo: unless you're pulling in a shitload of libraries and not proguarding out the unnecessary stuff Jul 22 16:24:30 and libraroes Jul 22 16:24:37 yeah :) Jul 22 16:24:42 thats what I wanted to add :) Jul 22 16:25:05 if you include a jar and dont proguard it, you'll just throw the whole library in your apk Jul 22 16:25:54 evanc: it's classes.dex Jul 22 16:26:19 then you need to run proguard. Also, use mobile-friendly libraries (if you aren't already) Jul 22 16:26:42 evanc: hmm - the only libraries I'm using are cardslib, and actionbar-pull refresh Jul 22 16:26:49 Wow how the hell, how do you run JUnit unit tests? Can I use gradle to make it "easier" ? Jul 22 16:27:38 explodes: automatically us to hard? Jul 22 16:27:46 Is* Jul 22 16:28:13 jug6-mbl: can't run it automatically without a command to run automatically Jul 22 16:28:16 explodes: you can use gradle to make it more annoying q.q Jul 22 16:28:47 danijoo: everything i've read about this is that its a pain in the ass Jul 22 16:28:51 evanc: I'm looking at proguard - it says I should have a proguard.cfg file in the root of my project which I don't Jul 22 16:29:20 explodes: If you run the tests on a phone, you can use the AndroidTest System Jul 22 16:29:34 but plain unit tests are painful to set up.. Jul 22 16:29:49 you should look into robolectric Jul 22 16:30:24 yea, i was thinking I could run this library test as an instrumentation test, but like, seriously? Jul 22 16:31:14 basically you have two kind of tests in android: classes that need andorid stuff (context etc) and plain java classes Jul 22 16:31:24 Hello: has anyone succesfully included an aar file from libs in their android studio project? Jul 22 16:31:27 for the first one you can choose to use robolectic or run them on a device Jul 22 16:31:40 don't worry found it Jul 22 16:31:48 and the other one, you're screwed? Jul 22 16:31:48 for the second one you can make a subproject that isnt an android project, and then use JUnit as usual Jul 22 16:31:55 mm Jul 22 16:32:19 or make a subproject where you use your android project as a library and then run tests Jul 22 16:32:44 Whack Jul 22 16:32:56 with robolectric you can kill two birds with one stone though ;) Jul 22 16:33:24 as you can then just run both as normal junit tests (think of robolectric as a tool to mock all android related stuff) Jul 22 16:33:43 evanc: Ermmm proguard doesn't affect it Jul 22 16:35:42 ugh Jul 22 16:35:55 Any ideas on how to reduce my apk file size? Jul 22 16:36:03 hey, anybody working with openerp android framework? Jul 22 16:36:08 How big is your apk? Jul 22 16:36:18 lasserix: 6mb Jul 22 16:36:27 about 3.5mb classes.dex Jul 22 16:36:30 why is this a problem? Jul 22 16:37:23 hey guys, anyone know of an api that fetches artwork for a location eg san francisco gets golden gate illustration? Jul 22 16:37:55 Tony Danza 2 extravaganza baloo Jul 22 16:37:57 lasserix: It's a very simple application: I don't understand why it's so big, and I think reducing the size will be useful for my audience who probably don't have a lot of memory :0 Jul 22 16:38:07 storage* I should say Jul 22 16:38:32 yeah that does seem big Jul 22 16:38:36 are you using support library? Jul 22 16:38:51 lasserix: yeah - I thought that could be the issue but I'm not sure Jul 22 16:39:04 I'm using 2 other libraries Jul 22 16:39:13 that sprobably why Jul 22 16:39:16 did you chek their size? Jul 22 16:39:49 o.o the size of the java files? Jul 22 16:40:00 library file sizes Jul 22 16:40:25 how do I find out? Jul 22 16:40:46 right click on the libaries Jul 22 16:40:49 properties Jul 22 16:40:59 oh, you mean literally the project Jul 22 16:41:39 one's 300kb and ones 100kb Jul 22 16:41:50 but I just realised I'm using the google play services library Jul 22 16:41:56 which is 3.7mb o.O Jul 22 16:42:22 wow that took you awhile to fully tell the story Jul 22 16:42:33 heh Jul 22 16:43:59 proguard still doesn't help though Jul 22 16:53:21 Any reasons why I would get access denied to SD card on emulator? It worked last time on the exact same project and emulator. Jul 22 16:55:09 architecture question. I have a dashbaord activity with a dashboard fragment. I want to show a different dashboard if the user logs in. Should I made a dashboardAuth fragment and conditionally load it in instead if logged in do you think? Jul 22 16:58:46 I implemented a custom adapter. But how do I tell there are no more rows? public View getView( int position, View convertView, ViewGroup parent ) // when position is to big, how is this handled? How do I say that there are no more rows... Jul 22 17:01:28 glasnost, probably the thing to do is throw an exception, if you want to do something about it. the way i read it, you simply won't (or shouldn't) be given a position out of range. Jul 22 17:02:22 Hello: has anyone succesfully included an aar file from libs in their android studio project? Jul 22 17:02:43 glasnost, put differently, position < getCount() Jul 22 17:03:07 mattblang yeah that sounds good, or you could do a whole seperate activity... Jul 22 17:03:56 glasnost: you can also do get last visible or something like that on your listview Jul 22 17:04:11 glasnost, you will NEVER get a position over maximum item Jul 22 17:04:19 glasnost, if you do, it means you're signaling wrong count. Jul 22 17:05:48 hmm. If I use a color state list then the android:test attribute doesnt seem to work. Jul 22 17:05:55 android:text even Jul 22 17:07:43 timemage: so from what is getCount decided? Jul 22 17:08:07 glasnost, by whatever the backing store of data is. Jul 22 17:08:37 by number of items you have to display? Jul 22 17:08:39 O.o Jul 22 17:08:45 isn't it obvious? Jul 22 17:08:46 I just have an array of values, HighscoreRow[NBR_LEVELS]; where highscoreRow is 3 strings inside] Jul 22 17:09:25 Mavrik, yes but since that is not happening I must be doing something wrong. from what exact item is it decided? Jul 22 17:09:39 show your adapter Jul 22 17:10:16 In my AuthActivity I call SharedPreferences p = new getPreferences(MODE_PRIVATE); then editor = p.edit(); after that I add bunch of strings and call editor.commit(); No problems here however when I restore my MainActivity none of those key/values I added are in shared prefrences ? Jul 22 17:10:20 What am I missing here ? Jul 22 17:10:37 glasnost, I don't understand the question Jul 22 17:10:49 glasnost, your adapter has to implement getCount method... you have to return the number of items you have there Jul 22 17:11:01 if you're using an ArrayAdapter, don't. Jul 22 17:11:13 because that's usually the source of all those bugs and confusion. Jul 22 17:11:37 neredsenvy, you probably don't open same preferences? Jul 22 17:13:48 Mavrik, ok, I see. I extend arrayadapter but have not implemented getCount Jul 22 17:14:26 glasnost, yes Jul 22 17:14:37 glasnost, the problem with array adapter is that it has a hidden list inside Jul 22 17:14:46 which probably is messing your code up and confusing you Jul 22 17:14:49 use BaseAdapter Jul 22 17:14:57 and then you have full control - hence less confusion Jul 22 17:15:13 I have an app that i released in the Play Store last week but it was getting in downloads so I went to the dashboard to check it out. When I select View in Google Play Store it take me to a blank page which says, 'We're sorry, the requested URL was not found on this server.' Jul 22 17:15:22 Any thoughts on why this could be? Jul 22 17:15:34 It does say that the app is published Jul 22 17:16:21 Distribution is selected for all countries Jul 22 17:16:50 Mavrik, I see. Jul 22 17:18:50 I am really concerned about this but have no idea what might have happened to cause this Jul 22 17:22:25 Why? Youll know if its published because you can see it in the playstore. It'll sort it itself out. Jul 22 17:22:41 delete your browser caches too. Jul 22 17:23:38 None of my aar files in my libs folder can be imported in my android studio project, even though I am doing compileFiles ('libs/thelib.aar') in my dependencies Jul 22 17:23:48 Anyone know what i may be doing wrong? Jul 22 17:24:33 just looking at my project and I published a "pure java" *jar* to maven repo and that imports fine in the android bit. Jul 22 17:24:44 (in the same project) Jul 22 17:26:01 yeah Jul 22 17:26:03 jars are fine Jul 22 17:26:05 but i need aar Jul 22 17:26:13 in this case Jul 22 17:26:22 http://i.imgur.com/oKPzb7x.png Jul 22 17:26:28 Can someone help me with that Jul 22 17:26:31 Because it makes no fucking sense Jul 22 17:26:34 ah yeah. they contain resources etc too. sorry. misread. Jul 22 17:27:00 just out of curiosity are you using AS/intelij with gradle? Jul 22 17:27:41 yeah Jul 22 17:27:54 so it looks like aar files published to maven central repo Jul 22 17:27:56 will work Jul 22 17:28:00 running a python test script as root certainly make any *expletive* sense. Jul 22 17:28:03 but i am curious why local libs won't Jul 22 17:28:18 publish to local .m2 and see if that works. Jul 22 17:28:32 possibly it enforces mavens sense of versioning? Jul 22 17:28:47 ahh yeah that would make sense Jul 22 17:29:04 rgr: On the left the script is running on my dev box and on the right it's running on an external server Jul 22 17:29:14 through ssh* Jul 22 17:29:39 But... is that your actual API key that you're supposed to keep secret? Jul 22 17:29:52 kakazza: It's a dev key I'm using. You can just delete them Jul 22 17:30:00 Alright then Jul 22 17:30:01 I'm not gonna use it for the actual server. Jul 22 17:30:06 Ok, good. :) Jul 22 17:30:26 But I'm afraid I cannot help you. Jul 22 17:30:38 I've been struggling with this for like 2 days now Jul 22 17:30:58 It works 100% on my dev machine but google refuses to authenticate me when using my server Jul 22 17:31:10 Mavrik, so implementing getCount still gave me problems for the ArrayAdapter so I am trying with the BaseAdapter. But what do I need to override? Jul 22 17:32:12 http://i.imgur.com/fYC4QRA.png Jul 22 17:32:19 For some reason it's only an issue on that server Jul 22 17:32:32 it runs fine on those two other servers Jul 22 17:33:21 How can I build a release build with gradle from console? Jul 22 17:34:00 bas_: what does this have todo with #android-dev? Jul 22 17:34:10 then that server doesnt have the same python libs or user permissins it would seem.... certainly nothing to do with android dev Jul 22 17:34:27 canvs2321: GCM is android dev Jul 22 17:34:38 Where else should I ask Jul 22 17:34:42 platzhirsch: './gradlew assembleRelease' Jul 22 17:34:58 kakazza: I only have gradle available, should I get gradlew from the sdk tools? Jul 22 17:35:09 sure but it would appear to be a server config issue. since its a PC python script. Jul 22 17:35:10 You're not using the Gradle Wrapper? Jul 22 17:35:10 anyone successfully got android studio going on ubuntu 14.04? Jul 22 17:35:15 platzhirsch: it should be in your project directory Jul 22 17:35:19 detachYo: I'm running linux Jul 22 17:35:26 should be the same thing (Fedora 20) Jul 22 17:35:30 bas_: mhmm... Jul 22 17:35:33 what distro? Jul 22 17:35:35 bas_ Jul 22 17:35:37 ah there it is Jul 22 17:35:38 bas_: Same Python version? (Also, not that I think it matters, but have your tried _not_ running it as root?) Jul 22 17:35:39 detachYo: Fedora20 Jul 22 17:35:44 gottcha, has not chmod +x yet, thanks! Jul 22 17:35:51 kakazza: I tried running it as a standard user, same result Jul 22 17:36:02 Python 2.7.5 Jul 22 17:36:07 bas_: you'd ask in a python channel Jul 22 17:36:09 Same on all the boxes Jul 22 17:36:16 why Fedora? Jul 22 17:36:21 Just curious Jul 22 17:36:35 canvs2321: IT doesn't matter what I'm using (curl, perl etc) it always gives me a 401 and GCM is android related Jul 22 17:36:55 no it isn't, it's web developing Jul 22 17:37:05 detachYo: I just like redhat, kinda up to date packages, yum/rpm, gnome3, great preconfigured drivers etc Jul 22 17:37:13 centos? Jul 22 17:37:15 :) Jul 22 17:37:25 centos is more for servers Jul 22 17:37:31 I run Debian on my servers Jul 22 17:37:35 wheezy/jessie Jul 22 17:37:50 what else is out there that is for every day android studio stuffs? Jul 22 17:37:51 detachYo: but what's wrong with android studio? Jul 22 17:38:00 bas_: where does it write the result, to Jul 22 17:38:01 I could never get it working. Jul 22 17:38:32 detachYo: what's the error? JAVA_HOME is not set? Jul 22 17:38:39 Can I use SIL license fonts in my app without asking for any permissions? Jul 22 17:38:45 platzhirsch: 1 sec let me get it Jul 22 17:38:52 thanks : ) Jul 22 17:38:53 bas_ i don't remember. I am not at home right now (it was my home custom built power pc) Jul 22 17:39:11 bas_: Whitelisted the IP of your server? Also, StackOverflow suggests that you might have whitelisted IPv4 but not IPv6. Jul 22 17:40:23 platzhirsch: I just get a standard

error 401

page Jul 22 17:40:37 bas_: apparently app/build/outputs/apk Jul 22 17:40:50 kakazza: hmm ipv6 could be the issue. I only did 0.0.0.0/0 Jul 22 17:41:01 I'm pretty sure though I have ipv6 disabled Jul 22 17:43:06 Either whitelist that or try "allow any IP", not sure. That's all I could find, never had to deal with that problem in particular. Jul 22 17:43:07 Mavrik, what is getItem and getItemId supposed to return? because returning the items I thought were done in getView... Jul 22 17:43:27 getView returns the view for an item. Jul 22 17:43:38 getItem returns... well, you can guess. Jul 22 17:44:10 kakazza: I did 0.0.0.0/0 so it should allow any ip. I disabled ipv6 and it didn't help Jul 22 17:44:28 Maybe enable IPv6 or whitelist the IPv6 of your server? Jul 22 17:44:43 my server is unable to make ipv6 connections Jul 22 17:44:47 Oh Jul 22 17:44:48 so it can't be that Jul 22 17:45:13 I guess the last thing I could do is contact google support Jul 22 17:45:32 What does 'curl http://curlmyip.com/' return, tho Jul 22 17:45:39 There's a Google Group Jul 22 17:45:49 an ipv4 address Jul 22 17:45:59 kakazza: mailing list? Jul 22 17:46:40 When you use gsutil, what is the project nbr? the app asks me to find it in the google developer console but this is android app... Jul 22 17:47:24 How do you guys install fastboot on mac? Jul 22 17:47:32 Is it present on brew? Jul 22 17:47:33 are you sure its not just something as silly as you execing it as root rather than your own user? Jul 22 17:47:58 napster: $ANDROID_HOME/platform-tools/fastboot Jul 22 17:48:21 kakazza, oh its already there?!! sorry never mind :) Jul 22 17:49:48 kakazza: where can I find the mailing list? Jul 22 17:50:09 https://groups.google.com/forum/#!forum/android-gcm Jul 22 17:50:14 thanks Jul 22 17:50:57 https://groups.google.com/forum/#!searchin/android-gcm/401 Jul 22 18:06:02 I thought a listview would extend to cover the whole screen? is there no way to do that? If I take the smallest screen in the normal group, make sure it fits, then on bigger screens it will get scaled to fill the screen? can that be done? Jul 22 18:06:29 try design mode in AS... Jul 22 18:07:03 height=MATCH_PARENT Jul 22 18:07:13 Anyone ever have issues with mtp when usb debugging is on with the mtp remounting ever 500ms ? Jul 22 18:09:02 Anyone who knows a thing or two about "Androidplot?" I'd like to make vertex points positioned towards the edges of the grid show whole and not cut off so only the half inside the grid shows... Jul 22 18:11:12 Oh ha figured out how to include local aar files Jul 22 18:11:13 jesperj: It's somewhat doubtful you'll find someone that knows about a particular niche thing like that. Feel free to ask of course, but don't be surprised if no-one knows anything about it. Maybe try something like stackoverflow? Jul 22 18:11:50 JesusFreke: Thanks. I've already posted on stackoverflow :-). Jul 22 18:12:12 All I ever did with androidplot was copypasta Jul 22 18:13:19 It should be doable because if you have a vertex point in the top right corner for example, it really doesn't show well if you don't have a line connected from an earlier vertex point Jul 22 18:13:38 you only see one 4th of the vertex point dot Jul 22 18:14:03 oh well Jul 22 18:18:50 so it is not possible to make any sort of view stretch to fit the screen? a list of stuff that can be stretched to fill the screen? Jul 22 18:19:25 glasnost: canvs2321 already answered Jul 22 18:19:42 Set the height to match_parent Jul 22 18:22:55 are there any alternatives to Google Cloud Messaging that provide more reliable latency? Jul 22 18:25:39 i already set it to match_parent but it is still smaller than the view Jul 22 18:26:00 glasnost: Is its parent match_parent (and its parent, and its parent,...) Jul 22 18:26:21 See the Layout Editor for a visual preview. Jul 22 18:26:36 yes Jul 22 18:26:54 Well, probably not. Paste your layout Jul 22 18:27:14 With XML syntax highlighting enabled please. Jul 22 18:28:20 hey guys, was onStart() for services replaced with onStartCommand()?? Jul 22 18:28:52 Services have never had onStart Jul 22 18:29:02 Or wait Jul 22 18:29:08 according to SO it did Jul 22 18:29:31 it did, deprecated at api level 5 Jul 22 18:29:36 https://developer.android.com/reference/android/app/Service.html#onStart(android.content.Intent,%20int) Jul 22 18:30:20 oh, I should really improve my lookup-skills Jul 22 18:30:21 tks Jul 22 18:46:19 I'm trying to compile an android project. I have andoid-sdk installed, I compiled this same project various times without problems, then I rebooted, and now every time I get this error: Jul 22 18:46:29 [ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.8.0:generate-sources (default-generate-sources) on project wallet: Execution default-generate-sources of goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.8.0:generate-sources failed: Invalid SDK: Platform/API level 14 not available. Jul 22 18:47:06 I already ran $ANDROID_HOME/tools/android sdk and ensured that platform 14 is installed, I removed the complete android-sdk directory, redownloaded everything from scratch, problem still persists Jul 22 18:47:20 Anybody who might have an idea whta the problem is? Maybe some missing PATH or environment variable?? Jul 22 18:51:41 Any help for clearing all activities in a task? http://stackoverflow.com/questions/24873131/android-clear-task-flag-not-working Jul 22 18:53:49 hello, you guys know what might have caused this crash report: http://pastebin.com/WvvCFqQc Jul 22 18:58:30 I am using android studio, imported from vcs from remote git repo, now i created a new project inside, but i get a gradle build error-> unregistered vcs, so i goto settings and add the directory, but the error still shows... Jul 22 18:59:31 Ahh nevermind had to add .gitignroe plugin Jul 22 19:00:57 test Jul 22 19:00:58 oh Jul 22 19:00:59 hi Jul 22 19:06:23 right I need to start giving thought to rendering my own character sets. What facilities do you recommend I look it for handling the bitmaps that are then used for ahalphanumerics on my screen? Are there built in renderers which can look at bitmap strips of dequential characters and auto generate the single bitmap for each unique character based on an offset/ascii value? Jul 22 19:08:39 can I not have a view like this? My listView is not displayed after I added the LinearLayout with titles. Only the titles are now displayed... http://lpaste.net/107895 Jul 22 19:11:46 glasnost: delete the weights and see if they appear Jul 22 19:18:46 should that height really be match_parent and not wrap content? Jul 22 19:20:47 Greetings, folks! Couldn’t anyone here familiar with multiple APK delivery help me? Well, I got separated graphics for tablet app for: 600dp, 720dp, 768dp and 800dp. I tried to use with only large and xlarge screens, but changing requiresSmallestWidthDp each time. So I had a version of 800001 and 768001 for example, but my publisher pane says 800001 will be installed instead of 768001 one, which means that smallest width dp Jul 22 19:20:48 param was totally ignored. Couldn’t please anyone tell me how to fix it, cause if I merge all graphics into one, they will take like 700mb instead of 220mb (800dp) as maximum? Jul 22 19:23:54 shmooz: but I want the weights...I want each column to be equal in space... Jul 22 19:25:13 glasnost: I would make the weights = 0.33 Jul 22 19:25:31 the problems was match_parent... Jul 22 19:25:46 ok Jul 22 19:26:55 Is there an Alexy Dmitriev in here? Jul 22 19:36:59 If he is, it's unlikely he's reading. :) Jul 22 19:37:42 i need to run a callback exactly once when all animations on two views are done. i can't use an AnimatorSet, it's best if i use an individual animator for each view. when i set a listener, the listener gets called when each animation finishes, which is the problem. any ideas? Jul 22 19:37:42 lasserix: Do you mean https://github.com/dekart ? Jul 22 19:38:25 Um maybe he posted an SO post i answered Jul 22 19:38:30 i was wondering if it worked for him, Jul 22 19:38:38 this is all in the last like 5 hours so i was wondering if he is here Jul 22 19:38:52 (there's a 50 rep bounty, not that i have ever used SO before ;p ) Jul 22 19:38:56 *er posted too Jul 22 19:39:02 So, I'm trying to dex a JAR file, but it's giving me a very confusing error:java.lang.IllegalArgumentException: already added: Lcom/jain/sip/ClientTransaction; Jul 22 19:39:07 I'm running it on just a single jar file.. Jul 22 19:39:18 And I've unjarred the file, and there is only one instance of ClientTransaction. Jul 22 19:39:54 lasserix: Link? Jul 22 19:39:56 dx --dex --output test.jar jain-sip-api.jar Jul 22 19:40:56 /home/jthomas/AndroidStudioProjects/SilverVueNative/app/libs/jain-sip-api-repackaged.jar Jul 22 19:41:13 http://speedy.sh/9V7Sf/jain-sip-api-repackaged.jar Jul 22 19:41:14 Sorry :) Jul 22 19:42:56 Like, a jar file can't possibly have two instances of a class... and since I'm dexing a single jar file- how is it possible to get this error? Jul 22 19:43:34 TheDracle: it's possible the jar file has duplicate entries for that class Jul 22 19:44:31 Guys, I use: on my Nexus 5 with 4.4 Kitkat, why does ADB tell me it can't run the app? :S Jul 22 19:44:37 Hm, I'm running this jarjar thing on it to repackage it because Android was nagging about it having javax classes. Jul 22 19:44:46 Maybe it pollutes the jar somehow. Jul 22 19:44:47 Yatekii: look in logcat for a more specific error Jul 22 19:45:35 https://gist.github.com/anonymous/66e13aea0c2d1fc80a89 is this LogCat? @ JesusFreke Jul 22 19:45:44 I think so Jul 22 19:46:20 I mean there is sdk20 I think and I am pretty sure Kitkat has nothing < 19 Jul 22 19:47:17 Yatekii: no, that's just the output from the adb command Jul 22 19:47:20 Yatekii: adb logcat Jul 22 19:47:42 explodes: I failed my challenge Jul 22 19:47:43 yeah well how do I use a console in AS Jul 22 19:47:47 okwell I hate AS Jul 22 19:48:13 What's the last callback that I can do something. Essentially when going from Activity A to B, there is a static variable set in onStop of Activity A, but by the time Activity calls onResume, onStop hasn't been called yet. Jul 22 19:49:02 TheDracle: yes, that jar file has a duplicate entry for com.jain.sip.ClientTransation Jul 22 19:49:15 JesusFreke, Yeah, I just checked with jar tf Jul 22 19:49:17 Wtf.. Jul 22 19:49:21 among other classes Jul 22 19:50:08 Moony22: lol already? Jul 22 19:51:59 anyone here have any experience with registering uncaught exception handler... i am doing so but i am trying to send data via URL connection or HTTPclient and code seems to just die right there ... weird shit ... and the application doesnt close out ... i get just a blank screen ... (when i throw an uncaught exception on urpose in testing) Jul 22 19:52:27 wow, AS is so retarded Jul 22 19:52:44 when I Open the logs window it hides the logcat and I cannot get it back Jul 22 19:52:46 great Jul 22 19:53:16 btw JesusFreke logcat shows even less: https://gist.github.com/anonymous/278a7476e231d5821fdf Jul 22 19:53:35 Is there any callback, right when the Activity is visible to users? Jul 22 19:53:35 AS shouldn't be used for logcat, just use adb from the terminal Jul 22 19:53:59 Or pidcat Jul 22 19:55:53 but i like the highlighting of errors in logcat in AS Jul 22 19:56:00 Yatekii: there will be more in logcat than that Jul 22 19:56:04 how do i get it it to show different color text ... thatshit is hard to read as is Jul 22 19:56:05 that's totally unrelated Jul 22 19:56:10 JesusFreke: want a screen? Jul 22 19:56:27 http://noah.wapple.ch/screens/Screen%20Shot%202014-07-22%20at%2021.56.14.png Jul 22 19:56:29 here you go Jul 22 19:56:34 jaspertheghost: AS? Jul 22 19:56:49 Yatekii: run adb logcat from a terminal. Jul 22 19:56:57 How do I set the color of the scrollbar? Jul 22 19:57:07 explodes: yep Jul 22 19:57:12 JesusFreke: terminal doesn't know adb Jul 22 19:57:15 jaspertheghost: https://plus.google.com/+CyrilMottier/posts/Q6cZdf57cj7 Jul 22 19:57:22 because dumb android stududio Jul 22 19:57:25 well I try a hack Jul 22 19:57:25 sec Jul 22 19:57:31 hell yea Jul 22 19:57:32 explodes: I spent about 15 minutes staring at my screen wondering why my if statement wasn't working Jul 22 19:57:32 Yatekii: you have android sdk installed, right? Jul 22 19:57:45 adb is in there somewhere. /platform-tools or something Jul 22 19:58:20 actually again thats in the application Jul 22 19:58:20 Yatekii: minSdk and targetSdk? Jul 22 19:58:21 not terminal Jul 22 19:58:26 how do u make it work in terminal? Jul 22 19:58:27 Yatekii: your screenshot shows that logcat is filtered to only show entries from a single process. The installation errors will be from a different process Jul 22 19:58:34 jaspertheghost: install pidcat Jul 22 19:58:50 'brew install pidcat' on OS X, I think Arch linux also has a package Jul 22 19:59:02 Otherwise, just grab it on github from Jake Wharton's repo Jul 22 19:59:16 i got brew Jul 22 19:59:36 There you go Jul 22 19:59:51 Either just call 'pidcat' or 'pidcat your.package.name' Jul 22 20:01:12 D/AndroidRuntime(30855): Jul 22 20:01:12 D/AndroidRuntime(30855): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<< Jul 22 20:01:12 D/AndroidRuntime(30855): CheckJNI is OFF Jul 22 20:01:14 D/dalvikvm(30855): Trying to load lib libjavacore.so 0x0 Jul 22 20:01:16 D/dalvikvm(30855): Added shared lib libjavacore.so 0x0 Jul 22 20:01:18 D/dalvikvm(30855): Trying to load lib libnativehelper.so 0x0 Jul 22 20:01:20 D/dalvikvm(30855): Added shared lib libnativehelper.so 0x0 Jul 22 20:01:22 D/dalvikvm(30855): No JNI_OnLoad found in libnativehelper.so 0x0, skipping init Jul 22 20:01:24 D/dalvikvm(30855): Note: class Landroid/app/ActivityManagerNative; has 179 unimplemented (abstract) methods Jul 22 20:01:26 D/AndroidRuntime(30855): Calling main entry com.android.commands.pm.Pm Jul 22 20:01:28 W/ActivityManager( 808): No content provider found for permission revoke: file:///data/local/tmp/com.mirar.noah.sws Jul 22 20:01:30 D/Finsky (28573): [1] PackageVerificationReceiver.onReceive: Verification requested, id = 8 Jul 22 20:01:31 does anyone know off hand is android 4.4 handles thread.uncaightexception handler diff (such as not allowing it to do network tasks...) ? im not getting anything out of logcat is helpful... i do Log.V(before http execute and Log.v after and the after doesnt execute ... and i get nothing from logcat Jul 22 20:01:32 D/Finsky (28573): [1] WorkerTask.onPreExecute: Verification Requested for id = 8, data=file:///data/local/tmp/com.mirar.noah.sws flags=114 fromVerificationActivity=false Jul 22 20:01:34 D/Finsky (28573): [2811] PackageVerificationService.getPackageInfo: Cannot read archive for file:///data/local/tmp/com.mirar.noah.sws in request id=8 Jul 22 20:01:36 W/PackageParser(28573): /data/local/tmp/com.mirar.noah.sws (at Binary XML file line #7): Requires development platform L but this is a release platform. Jul 22 20:01:38 D/Finsky (28573): [1] PackageVerificationReceiver.onReceive: Verification requested, id = 8 Jul 22 20:01:40 W/ActivityManager( 808): No content provider found for permission revoke: file:///data/local/tmp/com.mirar.noah.sws Jul 22 20:01:42 I/PackageManager( 808): Copying native libraries to /data/app-lib/vmdl-2119439080 Jul 22 20:01:44 W/PackageParser( 808): /data/app/vmdl-2119439080.tmp (at Binary XML file line #7): Requires development platform L but this is a release platform. Jul 22 20:01:46 D/dalvikvm( 808): GC_EXPLICIT freed 1058K, 18% free 46569K/56352K, paused 7ms+7ms, total 92ms Jul 22 20:01:46 Yes, please more of this. Jul 22 20:01:48 D/AndroidRuntime(30855): Shutting down VM Jul 22 20:01:50 D/jdwp (30855): Got wake-up signal, bailing out of select Jul 22 20:01:52 D/dalvikvm(30855): Debugger has detached; object registry had 1 entries Jul 22 20:01:52 god Jul 22 20:01:54 D/dalvikvm(21313): GC_FOR_ALLOC freed 441K, 3% free 17571K/18060K, paused 14ms, total 14ms Jul 22 20:01:54 STOP! Jul 22 20:01:54 yeehaaa! Jul 22 20:02:04 lol Jul 22 20:02:09 It even tells what's wrong... Jul 22 20:02:36 i remember the xdcc days .. bots would flood the shit out of rooms with stuff Jul 22 20:02:36 http://pastebin.com/LmHpSCEu JesusFreke Jul 22 20:02:46 Yatekii: It already tells you what you're doing wrong. Jul 22 20:02:49 I'm trying to compile an android project. I have andoid-sdk installed, I compiled this same project various times without problems, then I rebooted, and now every time I get this error: [ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.8.0:generate-sources (default-generate-sources) on project wallet: Execution default-generate-sources of goal com.jayway.maven.plugins.android.generation2:android Jul 22 20:02:49 -maven-plugin:3.8.0:generate-sources failed: Invalid SDK: Platform/API level 14 not available. Jul 22 20:02:59 Anybody who might know what could be a cause for this? Jul 22 20:03:33 yea Jul 22 20:03:37 install the right sdk Jul 22 20:03:49 or change your target sdk/compile sdk verison Jul 22 20:04:11 kakazza: I don't see it Jul 22 20:04:31 how should I handle tab navigation for a detail screen when it is in master detail? should the tabs just go across both the list and the detail screen I guess? anyone know any apps that do this? Jul 22 20:04:33 "Requires development platform L but this is a release platform." Jul 22 20:06:22 kakazza: well besides that I do not see any relation from that error to my app as a newbie, I do not see what is platform L and why it is looking for it oO I didn't change anything in the manifest but my sdk Jul 22 20:06:32 btw, before I changed the sdk to 10 it was working fine Jul 22 20:06:46 i can use android:textColorLink="#ff0000" to set link color to red in TextView. how can i make android NOT to set any color for links? Jul 22 20:07:14 What is your targetSdkVersion? Jul 22 20:07:19 And also minSdkVersion Jul 22 20:07:43 kakazza: min is 10 Jul 22 20:07:47 target didn't specify Jul 22 20:07:54 Set target to 19 Jul 22 20:08:31 And did you use anything from API Level 20? Jul 22 20:09:42 Hi there. I have a question related to FragmentActivity.onStart(). When timing the execution of this method during startup of my app, I'm seeing it takes up to 2 - 3 seconds. Has anyone seen this? Anyone know why this could be happening? Jul 22 20:10:08 g00s/ kakazaa, do you guys have any experience with thread.uncaghtexceptionhandler ... Jul 22 20:10:22 nope Jul 22 20:10:37 redbull8775: Well, what are you doing in onStart? Jul 22 20:10:48 kakazza: well I thought target is optional but yeah Jul 22 20:10:55 and no I think I use only things from 5+ Jul 22 20:11:14 in my own onStart() method I'm doing nothing special. It's the execution of the support library code for FragmentActivity.onStart() that's taking this long. Jul 22 20:11:29 and what sucks is that warning: http://noah.wapple.ch/screens/Screen%20Shot%202014-07-22%20at%2022.11.08.png because I have it to 10 ... ffs and not 1 Jul 22 20:11:29 How do you figure? Jul 22 20:11:58 Yatekii: What does build.gradle say about min and targetSdkVersion? Jul 22 20:11:59 kakazza: Specifically this code: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.0.1_r1/android/support/v4/app/FragmentActivity.java#FragmentActivity.onStart%28%29 Jul 22 20:12:27 kakazza: I know this because I simply measured the time of execution around the super.onStart() method call. Jul 22 20:12:34 So you timed super.onStart()? Jul 22 20:12:37 yes Jul 22 20:12:38 Ah ok Jul 22 20:12:44 I wouldn't know, seems odd. Jul 22 20:12:55 hmm Jul 22 20:17:34 jaspertheghost: Well thats the thing, I HAVE the right SDK installed already.. platform level 14 is installed, hell, I installed all 14.. still nothign Jul 22 20:17:36 Yatekii: Yeah, I suspect setting the target will fix the problem Jul 22 20:18:13 jaspertheghost: Also, where would I specify this? the pom.xml file? Jul 22 20:21:28 jaspertheghost: One thing I do see in the android SDK manager is that for build tools, I do not see level 14 available Jul 22 20:22:07 always use the latest buid tools Jul 22 20:22:11 i think we are at 19 on those Jul 22 20:22:23 phoenixz have you considered moving to Android Studio? Jul 22 20:23:38 mattblang: I"m using maven to compile this. I only need to compile and I'll be done.. Weird(er) thing is, last week I was doing a lot of compile tests, and did not have this problem.. Now I do.. The only thing I know that changed is that I rebooted my laptop once in that time. After reboot, I get this.. Jul 22 20:24:19 phoenixz man that sucks. I'm assuming you are using Eclipse. I got sick of issues like this Jul 22 20:25:15 mattblang: nope, not even eclipse.. I'm just trying to compile an existing project using maven, thats all! And this worked last week, I really don't understand why it stopped working now.. Jul 22 20:25:29 Also, I HAVE level 14 installed already, this does not make any sense Jul 22 20:25:58 android maven projects don't use local api Jul 22 20:26:15 they pick it up from central, most of the time Jul 22 20:26:48 pfn: what would "Central" be here? Jul 22 20:26:55 the maven repository Jul 22 20:27:36 well, I dunno for sure, actually, the android maven plugin is a whole lot of hack Jul 22 20:27:59 What does the angle attribute do for a gradient? Jul 22 20:28:02 pfn: Alright, and how would I fix this? because right after the error, it tells me this: his command should give you all you need: Jul 22 20:28:02 [ERROR] /home/phoenixz/projects/vegascoin/android-wallet/wallet/~/android-sdk-linux/tools/android update sdk --no-ui --obsolete --force Jul 22 20:28:25 then run it Jul 22 20:28:32 That command obviously doesnt work, its incorrect, but ~/android-sdk-linux/tools/android update sdk --no-ui --obsolete --force does do someting Jul 22 20:29:04 well, something.. Basically, it seems to try to download every platform and tool version out there which is some 10GB or so.. yay.. and after that, it STILL doesnt work, argh :( Jul 22 20:29:30 pfn: See above, I ran that, 1 day of downloading later, problem still not fixed Jul 22 20:36:06 So what else might be the cause? If I have API level 14 installed already? Jul 22 20:37:41 i'm having some trouble with studio. i've just created a brand new project and it can't find any framework classes. android.os.Bundle, android.app.Activity, you name it. it's as if the android plugin isn't adding the android jar to the classpath. Jul 22 20:38:04 can i have a list view with height as "wrap_content"? Jul 22 20:38:14 whomp no, i don't think so Jul 22 20:38:46 kk ty Jul 22 20:39:07 so AS 0.8.3 has lots of fixes for 0.8.2, but a bunch of new stuff too. why couldn't they just put the fixes in 0.8.3, and the new shit in 0.9.0 ? Jul 22 20:39:18 so 0.8.2 is beta, 0.8.3 is canary Jul 22 20:39:21 make sense ? no Jul 22 20:40:08 Do you really use sp for textsizes? i find it pretty hard to make it so that textsizes can be scaled... Jul 22 20:40:32 it is neough to have to cater to so many devices with different screen rations and sizes... Jul 22 20:43:29 does anyone know with which baud rate does bluetooth 4.0 read data? Jul 22 20:43:50 on Android phone afcorse Jul 22 20:53:40 depends on the adaptor hw. google. Jul 22 20:53:47 kakazza: it says nothing Jul 22 20:53:52 JesusFreke: ok I just wonder why :D Jul 22 20:54:02 sindbad: you mean SPP/RFComm? There is no baud rate in the protocol; whatever front-end serial device feeds data to the bluetooth adapter has to match whatever the physical serial port is of course. Jul 22 20:54:03 Yatekii: yeah, I'm not entirely sure myself Jul 22 20:54:16 phoenixz, then your ANDROID_HOME is set wrong Jul 22 20:54:27 phoenixz, you have it set to literal ~ Jul 22 20:54:39 JesusFreke: didnt fix :( Jul 22 20:54:48 export ANDROID_HOME=$HOME/android-sdk-linux Jul 22 20:55:02 phoenixz, obviously, you have '~' as a literal which is fail Jul 22 20:55:10 Yatekii: can you pastebin your manifest? Jul 22 20:55:25 JesusFreke: sure: https://gist.github.com/anonymous/a9d88e5c5568d6eab9ce Jul 22 20:56:01 how do yall think I should handle tab navigation for a detail screen when it is in master detail? should the tabs just go across both the list and the detail screen I guess? anyone know any apps that do this? Jul 22 20:57:10 Yatekii: hmm. how about your build.gradle? Jul 22 20:59:28 Yatekii: better yet, if you can post the apk somewhere, I can take a quick look. Jul 22 21:00:58 so I have figured out how to open my google camera app with an android application record on an nfc tag with com.google.apps.camera. This opens the camera, now I want it to take a picture 3 seconds after opening. How can I do this. Would this be another type of record? or do I somehow insert java code that calls the camera capture action? Jul 22 21:02:04 in_deep_thought: I would be surprised if you could do that from an nfc tag Jul 22 21:02:29 Unless you write your own application to take the picture Jul 22 21:02:44 JesusFreke: why is that? isn’t taking a picture a relatively simple action? what kinds of applications are nfc tags good for? Jul 22 21:02:45 pfn: so my $ANDROID_HOME, which now is /home/phoenixz/android-sdk should be simpl android-sdk? Jul 22 21:02:52 phoenixz, yes Jul 22 21:03:00 android-sdk-linux Jul 22 21:03:03 whatever the right name is Jul 22 21:03:08 don't ask me what your filesystem looks like Jul 22 21:03:11 pfn: ouche.. alright.. I'll try that, thanks for the tip! Jul 22 21:03:22 pfn: I could but I won't Jul 22 21:03:29 in_deep_thought: that would basically allow any application to take a picture without the required permission Jul 22 21:03:55 or rather, to cause the google camera app to take the picture.. which they could then access from the sdcard Jul 22 21:04:28 JesusFreke: so is it a permissions issue? As in taking a picture generally is an action that should require user intervention? Or is there something about nfc tags that limit them to only opening apps, not using them Jul 22 21:04:52 Can I crash the app if there is a certain condition not met? Like... if (myAge==0) crash the app? Jul 22 21:05:06 in_deep_thought: it's been a while since I've done anything with nfc tags, but my mental model is that it's basically equivalent to sending an intent Jul 22 21:05:56 if the camera app allowed an intent to automatically take a picture, then any application could trigger that. And since taking a picture is normally protected by a permission, that would be a way to circumvent that permission Jul 22 21:05:58 in_deep_thought: what you want to do will require writing your own app which handles the URI encoded on the nfc tag and takes a timed photo. Jul 22 21:06:12 yes, that. :) Jul 22 21:06:31 Without having read everything, but... Tasker? O.o Jul 22 21:06:42 JesusFreke: There's more you can do w/ tags, but you can't have one executing arbitrary code the phone the way he wants anyhow Jul 22 21:06:44 yeah, tasker might be an option Jul 22 21:06:53 tasker in that case being the other app handling the URI Jul 22 21:06:56 flan3002: well I am trying to make it so that it works on everyone’s phones, not just mine Jul 22 21:07:09 in_deep_thought: Tasker Appfactory. :) Jul 22 21:07:30 in_deep_thought: For use by a greater audience a 'real' app would be better, of course. :) Jul 22 21:07:38 in_deep_thought: your best course of action is making your own URI and your own app that you tell people to install. The built-in camera app doesn't have remote-control functionality like you're trying to get, for the aforementioned security issues Jul 22 21:08:26 dragorn: ok so in general, is this an issue because I am trying to take a picture? Or am I going to have trouble with nfc any time I try and send actual app actions - rather than just opening the app itself? Jul 22 21:08:54 in_deep_thought: it just depends on the app and what you're trying to do Jul 22 21:09:12 a nfc tag, the way you're using it, just raises an intent, same as if the user had clicked a URL or some other functionality. Some app receives that intent and does a thing. You've made a camera intent - but you can't tell the camera to take a photo, because that's not something the stock camera apps allow you to do. Jul 22 21:09:42 e.g. You can't (or shouldn't be able to) start a phone call automatically. but you could start the dialer with a number pre-populated Jul 22 21:11:11 So you'd probably want to make your own limited camera app which accepts a URI of something like "coolnfccamera://...", and make it very clear in your app description that it takes photos automatically Jul 22 21:11:34 you might be able to accomplish that via tasker or the tasker app factory thing flan mentioned Jul 22 21:12:00 but basically your tag makes an event; you need something that does what you want with that event, and you'll probably have to do that yourself Jul 22 21:12:36 And iirc, it should be possible to make the app do the action via nfc only, and not accept an arbitrary intent from any app. Jul 22 21:12:54 Basically, I have a bunch of nfc tags and I want to put them in different places in public that do different things - like take a picture/ open a bus schedule/ open a menu url / check in to certain social media. The only problem is I can’t make people install apps before hand - it has to work on the apps they already have Jul 22 21:13:05 in_deep_thought: can't be done then, afaik Jul 22 21:13:10 Im trying to figure out just what is possible without an app using an nfc tag Jul 22 21:13:49 JesusFreke: hmm my apk is very bare https://gist.github.com/anonymous/3b63e30e23bd92dd8243 <<-- build.gradle https://gist.github.com/anonymous/416668dd6ead5854e3b4 <<-- Controlpad.java https://gist.github.com/anonymous/2931a46d25aab646d65d <<-- LockGuard Jul 22 21:14:52 Yatekii: sorry, I meant the build.gradle for the module, not the top level one. Jul 22 21:15:38 pfn: Did the change you suggested, same error.. Jul 22 21:15:49 I even went to android-sdk-linux Jul 22 21:15:56 tools/android list sdk --all Jul 22 21:16:05 pfn: then installed all level 14 stuff I could find Jul 22 21:16:07 Same error.. Jul 22 21:16:12 I do not understand :( Jul 22 21:16:16 hit enter a few more times Jul 22 21:16:36 phoenixz: did you restart eclipse/AS/whatever you're using? Jul 22 21:17:00 JesusFreke: Im using maven on command line, mvn clean install -DskipTests -Dandroid.sdk.path=~/android-sdk-linux/ Jul 22 21:17:09 phoenixz: ah, k Jul 22 21:18:03 * g00s_ tries FF 31 Jul 22 21:18:19 JesusFreke: uhmm gotta look for that :S Jul 22 21:18:48 Yatekii: it should be at the same level as, e.g. your src dir Jul 22 21:18:56 ahh JesusFreke there is the mistake: https://gist.github.com/anonymous/fc6a427b86b00b1ba4e5 but why does it not change the L to 15 Jul 22 21:19:02 and why is it L anyways Jul 22 21:19:05 and what does it mean? Jul 22 21:19:12 and what is min for if it has no impact LOL Jul 22 21:19:29 Yatekii: yeah, that's your problem. the 'L' is for the L preview Jul 22 21:19:32 I mean min means: AT LEAST THAT MINIMUM WILL RUN but if it doesn't run, it's not min wtf Jul 22 21:19:35 motfh..... I think the problem was the trailing slash on -Dandroid.sdk.path..... I removed that slash, and now it seems to be compiling.. Jul 22 21:19:57 Yatekii: that style (the text, instead of numeric) of target sdk level is handled specially Jul 22 21:20:24 Either that or parameter order, I moved -DskipTests to the end Jul 22 21:20:29 hmm Jul 22 21:20:50 JesusFreke: you can do weird stuff w/ nfc tags, they're basically smartcards. Or rather, some are. Jul 22 21:21:14 dragorn: yeah, I've only ever played with the dumb ones Jul 22 21:22:13 One of my co-workers was considering getting a http://dangerousthings.com/shop/13-56mhz-s50-glass-nfc/ implanted. heh Jul 22 21:23:16 JesusFreke: I've got some javacard smart cards w/ nfc built in, but no time to mess w/ them properly Jul 22 21:23:39 dragorn: those should work just fine Jul 22 21:23:49 JesusFreke what if he ever needs an MRI ? Jul 22 21:24:02 p_l|backup: work jsut fine as what? I had no specific goal Jul 22 21:24:07 g00s_: they're generally MRI safe Jul 22 21:24:08 you can send raw commands, HCE in 4.4 is essentially emulating the same interface Jul 22 21:24:12 dragorn: as smartcard Jul 22 21:24:22 p_l|backup: well, yues :) that's what I was saying :) Jul 22 21:24:27 g00s_: he either forgets, and gets it removed forcibly.. or he gets it removed beforhand :) Jul 22 21:24:33 g00s_: you usually need to inform the doctor about placements of such crap Jul 22 21:25:25 JesusFreke fuck that man :) http://www.washingtonpost.com/wp-dyn/content/article/2007/09/08/AR2007090800997_pf.html Jul 22 21:31:13 Hi there Jul 22 21:32:53 Somebody knows how to implement ActionBar.TabListener using Fragments with the support library? Jul 22 21:35:47 Anyone know how to create an aar file from andriod studio project? Jul 22 21:36:51 anyone kind enought to give me a helping hand with tasker ? Jul 22 21:38:18 lasserix, ./gradlew assembleRelease ? Jul 22 21:38:30 where do you run this command from? Jul 22 21:38:53 is that a serious question? O.o Jul 22 21:39:12 phoenixz, it's not the same error Jul 22 21:39:19 phoenixz, because the error before had ~ in it Jul 22 21:39:28 lasserix: you can locate is with locate or whcih command Jul 22 21:39:50 lasserix: you can locate iT with locate or which command Jul 22 21:40:20 Do I have to change some of the gradle.build files in the project before i do this? Jul 22 21:40:47 Mavrik: have never used gradle before Jul 22 21:40:51 (or maven) Jul 22 21:43:33 JesusFreke: so how to fix? :S Jul 22 21:44:44 Yatekii: replace L with 15 for the target Jul 22 21:46:13 Mavrik where does the aar get put once built? Jul 22 21:46:25 (sorry for the noob question) Jul 22 21:46:56 ahh nm found it ;p Jul 22 21:50:36 JesusFreke: hmm just because I thought gradle is done automatically Jul 22 21:51:09 Yatekii: you might be able to change it via the module properties in AS Jul 22 21:51:24 but it should have approximately the same effect either way, I would expect. Jul 22 21:51:38 I'm not sure how well changes are synced between the project and gradle build though Jul 22 21:56:50 JesusFrekeok tks Jul 22 22:02:10 JesusFreke: still Failure [INSTALL_FAILED_OLDER_SDK] Jul 22 22:04:45 Yatekii: clean build Jul 22 22:05:35 JesusFreke: I did that Jul 22 22:06:25 build with gradle from command line. make sure you're not using an old apk, etc. etc. Jul 22 22:06:31 I asked this question yesterday but had to leave. So, my question is, if an application is closed, can it still track/work? Jul 22 22:06:39 I'm sure you can figure it out :) Jul 22 22:06:46 Yatekii: dunno what you guys been talking bout, but can you just uninstall the app then reinstall? Jul 22 22:06:52 JesusFreke: compileSdkVersion 'android-L' that's the problem I think Jul 22 22:07:03 but googling didn't reveal any real tips Jul 22 22:07:04 I am having a problem with my backstack. When I resume my activity I am creating a backstack to put the user back to the wizard step where they left off. My problem is that when I hit the back button, the view does not change. I inspected the backstack at a breakpoint and all fragments appear to load correctly. Any ideas? Need more info? Jul 22 22:07:15 canvs2321: ya I can but doesn't work Jul 22 22:07:36 detachYo: if you use a service, yes Jul 22 22:07:56 Error running app: Gradle project sync failed. Please fix your project and try again. now I get that Jul 22 22:07:58 great :D Jul 22 22:08:07 Yatekii: Do you have a device with API 20? Jul 22 22:08:40 kp Jul 22 22:08:47 dunno where to look it up Jul 22 22:08:54 where does gradle put the apk file when it builds it? Jul 22 22:08:54 google is retarded Jul 22 22:08:58 [18:06] JesusFreke: compileSdkVersion 'android-L' that's the problem I think Jul 22 22:09:02 i'm saying why L? Jul 22 22:09:15 as I said I googled for options to put there Jul 22 22:09:25 Yatekii: "15" Jul 22 22:09:28 and len(results) == -1 Jul 22 22:09:44 L isn't even for production Jul 22 22:09:56 I didn't put it Jul 22 22:09:58 as I told Jul 22 22:10:08 as i told i dunno what you are talking about, but you said that Jul 22 22:10:18 Yatekii: actually 15 without quotes Jul 22 22:10:22 compileSdkVersion 19 Jul 22 22:10:26 15* Jul 22 22:10:29 or whatever version you want to use Jul 22 22:10:58 yeah I figured that :) Jul 22 22:11:07 yeah well I dunno Jul 22 22:11:10 I have no Idea Jul 22 22:11:28 https://gist.github.com/anonymous/ca2f6b3f611b00016a57 now it's trolling me even more Jul 22 22:11:29 well Jul 22 22:11:46 dunno why it even put that L-target if you say it's weird Jul 22 22:11:49 retarded shit Jul 22 22:11:58 programming for Watch? Jul 22 22:12:37 and using Material? Jul 22 22:12:43 no Jul 22 22:12:54 Theme.Material.Light Jul 22 22:12:55 it's just the basic app that is there when you do a new gui project Jul 22 22:13:08 Yatekii: do a new gui project.. but not using the L preview Jul 22 22:13:12 line 7 Jul 22 22:13:14 well U know what? this is so fucked. I delete this shit and do it new Jul 22 22:13:22 I was not using the L preview ffs Jul 22 22:13:27 I do not even know what that is Jul 22 22:13:27 yea you are Jul 22 22:13:30 Yes, you were Jul 22 22:13:40 It was probably an option you overlooked Jul 22 22:13:41 *popcorn* Jul 22 22:14:13 Yatekii: New project is in order if you can't fix what you have Jul 22 22:14:31 JesusFreke: can those services be killed? Jul 22 22:14:46 detachYo: anything can be killed Jul 22 22:14:54 if you send a kill -9 to it, it's going to die :) Jul 22 22:15:05 If it is killed, can it be restarted? Jul 22 22:15:13 Basicallyl, what I am wondering is how reminder apps work. Jul 22 22:15:17 detachYo: if an app is closed, it still can track stuff, based off services/receivers etc Jul 22 22:15:20 Third party that is (if that makes a difference) Jul 22 22:15:36 depends on how it was killed, but generally yes, android restarts it automatically (depends on what value you return from onStartCommand, iirc) Jul 22 22:16:22 can we bind to WearListenerService? Jul 22 22:17:30 what did google say? Jul 22 22:18:29 Ok guys, thanks for all the help, works like a charm now! Jul 22 22:18:45 Well appreciated, all the help :) Jul 22 22:18:52 canvs2321, pretty sure they run with background priority unless you specify foreground priority, which will force you to put a notification Jul 22 22:19:03 now I gotta figure out how to monitor all services run by an app :D Jul 22 22:20:33 Yatekii: run by your app or others? Jul 22 22:21:03 Afzal: That response was different from binding, not sure where you went with that Jul 22 22:21:46 canvs2321: run by my app Jul 22 22:21:50 canvs2321, yeah, my question was different. I was responding to your previous chat Jul 22 22:21:52 well I can see it in the settings Jul 22 22:21:59 I failed horribly because it doesn't run :D Jul 22 22:22:00 or rather detachYo's question Jul 22 22:22:13 that makes sense :) Jul 22 22:22:42 Yatekii: What do you mean monitor all your services then? Jul 22 22:24:42 canvs2321: well just see if one is running Jul 22 22:24:46 W/ActivityManager( 808): Unable to start service Intent { cmp=com.mirar.noah.lockguard/.LockGuard } U=0: not found ohwell Jul 22 22:24:53 well, gotta look into that tommorow Jul 22 22:24:55 bedtime Jul 22 22:27:06 Yatekii: make sure your service is defined in manifest Jul 22 22:27:57 canvs2321: ohwell forgot it this time, was automaitcally generated last time Jul 22 22:27:57 tks Jul 22 22:28:03 I always forget about that Jul 22 22:28:17 hmm last time deving for android was much easier ... Jul 22 22:28:18 : Jul 22 22:28:21 :) Jul 22 22:28:22 D Jul 22 22:28:31 you'll get all the quirks Jul 22 22:28:38 guess it was because I didnt really use android features but more java Jul 22 22:30:52 anyone know how to change where android studio pulls its default source files from, by default? Jul 22 22:31:25 ie, it's showing me source for android-20, but i'm debugging on an android-18 device, so i need to see android-18 code. any ideas? Jul 22 22:31:54 Hi, I'm trying to download data from a URL. But I get HttpConnection error, does anyone know how to work with URL? here is the log: http://pastebin.com/fv1E83KL Jul 22 22:32:26 first line, kid ... Jul 22 22:32:58 what does it mean? Jul 22 22:33:10 use a seperate thread for Network I/O Jul 22 22:33:10 or I don't know how to fix it Jul 22 22:34:11 ok I'll try to fix it Jul 22 22:34:57 don't try, just accept that you have to do it, and do it :) Jul 22 22:35:38 not sure when it started, if jellybean or kitkat, but no more doing network calls on main UI thread Jul 22 22:36:29 started in honeycomb Jul 22 22:37:01 wow haha, guess pretty old, i've never done it on main thread so never encountered it Jul 22 22:37:51 is it really not ok to calculate things from screensizes? I have tried on various device and never had any problems... Jul 22 22:38:03 In the end a graphic engine has to do that at some point right? Jul 22 22:38:29 what you making a game? Jul 22 22:39:49 i've written graphing code that gets the size of a view and bases widths and sizes scaled on X amount of info based on Z amount of space Jul 22 22:42:18 I see. Is it OK to you use the size of Views just not the size of the screen? Jul 22 22:42:49 is there any way to use a PagerAdapter with views and not fragments? Jul 22 22:42:51 Everyone tells me it is bad to calculate things from screensize... Jul 22 22:43:18 hujn: i think the problem is some devices lie about their screen size Jul 22 22:43:20 but I don't see another way foy my game. For the normal UI, ok, but for the game I have to calc things from size of screen Jul 22 22:43:51 bankai_au, so then those devices are doing things wrong. For uch a fragmented market as android it seems hard to do anything about that Jul 22 22:44:11 hujn: it depends, in xml it is best to not hardcode values, but with other classes, i pass a imageview, and upon the size of that imageview i use it to draw what i want Jul 22 22:44:13 bankai_au, but then getting the size of the view is OK? but how does the view get its size...? Jul 22 22:44:33 hujn: i don't use screen size as much as the view i want to modify Jul 22 22:44:51 it gets it size after being created then calculated based on the layout Jul 22 22:46:02 are you using a surface view fullscreen, or activity with children? Jul 22 22:58:50 of course yo uwould never do network calls on the main UI thread. That would be ridiculously stupid. Jul 22 23:04:09 that would also throw runtime exception Jul 22 23:05:54 rgr: but it isn't so well known, based on so many users joining asking that question. It happens to new developers Jul 22 23:06:11 no it wouldn't shipit Jul 22 23:06:24 n/m Jul 22 23:06:33 was thinking compile time exception Jul 22 23:07:57 Doing anything time consuming on the main UI thread is pretty much the #1 do not do. It would be ridiculously stupid to do it : but I didnt think it needed stating that obviously people need to learn this. Jul 22 23:08:21 So I have to disagree : it is very well known. Jul 22 23:08:45 Q: can one apply animations to fg & bg drawables on an imgview on only to the view itself? Jul 22 23:09:26 rgr: what's your intentions? Jul 22 23:09:51 Hey guys. Anyone here is familiarized with asmack? Jul 22 23:09:59 I'm having problems trying to send a file. Jul 22 23:10:04 rgr: and the answer is yes, you can do whatever you want, that is well known Jul 22 23:10:05 Birk: xmpp? Jul 22 23:10:10 yep. Jul 22 23:10:13 To apply animations to fg and bg drawables as opposed to the view...... Jul 22 23:10:15 android xmpp Jul 22 23:10:37 fg&bg drawables are related to a view Jul 22 23:10:46 I have sent messages and other text based mime types eg url or html but never binary data. Jul 22 23:10:53 you can write custom code, unless you are wanting a simple answer Jul 22 23:11:27 yes. I think we all realise we can write custom code. But that isnt what I'm asking. Thanks anyway.. Jul 22 23:11:28 Birk: I think I got around it by sticking the binary data on s3 and sending across the url :/ Jul 22 23:12:08 rgr: goodluck Jul 22 23:12:13 i want to mimic the behavior of a view pager, where when you don't scroll far enough to change the page, it snaps back in a certain way to the current page. any ideas as to how to do this? Jul 22 23:12:35 like i want to move the view in the exact way the view pager does Jul 22 23:13:00 rgr: your question alone shows you don't know enought Jul 22 23:13:09 shipit: nice workaround. I'm getting disconnected after the sendFile command, don't know why. Jul 22 23:13:33 Birk: possibly something at the server end? Jul 22 23:16:10 shipit: maybe. But i don't have access to the server right now :(. Jul 22 23:16:11 Birk: did you paste any code or errors/stacktraces kyet? Jul 22 23:16:33 canvs2321: No, but I can post the logs. Jul 22 23:16:59 you probably should post relevant code&errors Jul 22 23:17:12 just words of i'm getting disconnected doesn't help others help u Jul 22 23:17:45 the more info you can give, the more others can chime in Jul 22 23:18:41 canvs2321: sure, I'll do that. Thanks for the advice. Jul 22 23:27:41 Hi all, I'm trying to build a spinner style. I set the style's background to a XML drawable file, where I handle the 9patch background and the States. This seems to give a problem; either the item android:state_pressed="true" replaces the 9 patch, or it over-draws it, but the 9 patch isn't vissible anymore when pressed. Here's a minimized version of the selector XML: http://pastebin.com/F69zbQLN Jul 22 23:28:12 How would I set a style's background as a 9 patch, and keep it visible while changing the background's color when pressed? Jul 22 23:28:23 a double layer background as it were Jul 22 23:28:54 ThomQ: Jul 22 23:29:32 I puth both itemsin a layer list? Jul 22 23:29:57 First time working with that. Does the order in the list translate to the Z-order? Jul 22 23:30:16 ThomQ: yes -- try it out, not sure of the details at your end Jul 22 23:30:20 ThomQ: Post some code Jul 22 23:33:09 http://pastebin.com/XWL6bn1m Jul 22 23:33:45 i've set the statepressed line before the bitmap, which seems to translate to the correct z-order. Jul 22 23:33:51 seems you are mixing layer-list with your selector Jul 22 23:34:16 how can i track whether frames are being dropped or not? Jul 22 23:34:31 your code? or what you see GC? Jul 22 23:34:56 Yeah, upon shipit's advice. Thing now is that it always shows the darkgrey color drawable, state always looked like being pressed Jul 22 23:35:01 ThomQ: you wouldn't expect a layerlist with a selector Jul 22 23:35:18 Ahh k. How would you handle it canvs? Jul 22 23:35:19 or a layerlist ontop your selector Jul 22 23:35:21 ThomQ: you haven't mapped states. Jul 22 23:35:31 shipit: do I have to map all the states? Jul 22 23:35:44 canvs2321: it's perfectly ok to use layer-list as an item within a selector Jul 22 23:35:58 he is using a layerlist for the parent of the selector items Jul 22 23:36:08 not just a state Jul 22 23:36:31 ThomQ: if I understand the problem, you want a base layer and then depending on pressed/etc you want a different drawable? Jul 22 23:37:38 Yeah, I want the bitmap to be shown On top of the drawable color layer. The color layer should change upon being pressed, the bitmap should always be shown Jul 22 23:37:54 any ideas on how to track dropped frames? Jul 22 23:39:08 whomp: yes, reading your logcat, or with your code Jul 22 23:39:12 ThomQ: the way you can proceed is -- Jul 22 23:39:36 canvs2321, how exactly? Jul 22 23:40:10 ThomQ: it maybe easier to define the layer-list as drawable xml in res/drawable Jul 22 23:40:27 whomp: basically, if you are tying up the main thread, it'll drop frames, and plus in your code you can syncronize your drawings Jul 22 23:40:53 canvs2321, i understand, but i want to quantify the jank that various changes add Jul 22 23:40:57 i don't trust my eyes :) Jul 22 23:41:22 then log if while drawing a new draw is being called, meaning you aren't syncronizing Jul 22 23:41:34 so i override onDraw and do what? Jul 22 23:41:35 whomp: what are you doing? Jul 22 23:41:46 canvs2321, i just want to benchmark gfx performance Jul 22 23:42:11 well that doesn't help, if you don't know how to benchmark based on your code Jul 22 23:42:29 you should be able to know if a draw gets passed Jul 22 23:42:39 ok, well perhaps you could enlighten me Jul 22 23:42:55 is there a way to keep a method running at each 30 minutes even with the app closed? Jul 22 23:42:56 whomp: this may help you http://www.curious-creature.org/docs/android-performance-case-study-1.html Jul 22 23:43:14 you are the one drawing, if upon drawing, there are more drawings happening while you are still drawing, then things maybe dropped Jul 22 23:43:53 Suchorski: google for loop alarm Jul 22 23:44:18 tks Jul 22 23:44:56 shipit: that is giving me a lot of problems :) Essentially you are trying to use a layer list as the drawable in the state tag, correct? Jul 22 23:45:01 thus creating a layered drawable Jul 22 23:45:09 ThomQ: yes Jul 22 23:45:28 K, let me try and fix that Jul 22 23:45:52 ThomQ: what I wrote may not even compile, just to give you a general idea Jul 22 23:50:24 This compiles: http://pastebin.com/TSGwjjH4, but gives me a Invalid drawable tag Item error Jul 22 23:51:12 ThomQ: you have an extra tag Jul 22 23:51:52 ThomQ: you will also need the item for no state Jul 22 23:52:31 * shipit thinks he has a drawable fetish Jul 22 23:52:55 which item tag is extra? Jul 22 23:53:33 the one after Jul 22 23:53:39 before Jul 22 23:53:48 ahh Jul 22 23:54:01 that item tag is unnecessary and since not defined properly maybe causing the problem Jul 22 23:54:05 that's the only way it will compile though, if i give the layer-list a item tag Jul 22 23:54:31 hm Jul 22 23:54:55 ahh no, my bad, I can remove that item tag Jul 22 23:55:04 hmm .. Jul 22 23:55:16 still the invalid drawable tag though Jul 22 23:56:01 ThomQ: try this, save the layer-list as drawable xml and then set is at top level item's drawable attribute Jul 22 23:56:12 the way the explain it in the ref doc's, the drawable and the state should be in the sime item tag? Jul 22 23:56:17 Ahh yeah, i can try that Jul 22 23:56:20 gimme a minute Jul 22 23:56:57 altho I wonder why is complaining ... Jul 22 23:57:43 what root tag would I give the layer-list drawable xml? Jul 22 23:59:15 look at the answer here: http://stackoverflow.com/questions/8339529/android-using-layer-list-for-button-selector Jul 23 00:11:54 Almost there! :D Jul 23 00:12:16 It is working, and it does load the different layout lists on different states Jul 23 00:14:11 Only thing that's not working now, is the drawable color background in this layout list: http://pastebin.com/772yPn3m Jul 23 00:14:18 Hello Jul 23 00:18:39 Woo around the IDE's in 2 days Jul 23 00:19:12 ThomQ: looks like you have formatting error? Jul 23 00:19:32 ThomQ: you need an item tag on both bitmap and drawable in that layer-list Jul 23 00:20:10 yeah, it's me trying to create the drawable from an @color string, instead of just a @drawable Jul 23 00:20:30 ThomQ: for that you need a shape Jul 23 00:20:31 you can assign a color id to a drawable attribute? Jul 23 00:20:56 you need to use and tags Jul 23 00:21:04 within an Jul 23 00:21:05 maybe you need shape Jul 23 00:21:11 http://android.amberfog.com/?p=9 Jul 23 00:22:02 JesusFreke::: Hi, can you remember me? Jul 23 00:22:12 not really, sorry :) Jul 23 00:23:48 Can someone help me make this code work? I do not get any errors just does not work. Jul 23 00:24:05 Yesterday you recommended me to use on activity result jesus Jul 23 00:24:09 Http://pastebin.com/VCg6YTV6 Jul 23 00:24:34 I read about it, but the string is not sent Jul 23 00:25:46 you need to comment the code to explain what it is supposed to do "to work". Jul 23 00:25:46 hMMMm.. ok so i've created a shape in the layer list, which works fine. BUt, i'm kind a back to where I started. I can't see the bitmap :D If I place the bitmap higher in the layerlist, I see the bitmap, but not the shape..http://pastebin.com/yxFdAUQ5 Jul 23 00:26:19 No, i need fix the code, the code no contain errors Jul 23 00:26:52 If I specify and animation xml file, if the root tag is a "set" and it has "android:repeatcount" set to "infinite" can anyone suggest why it isn't actually repeating on my on screen activity? Jul 23 00:26:56 Yeah, I basically can't figure out what code is what there. e.g. you have a case statement, but there's no switch. Jul 23 00:27:18 Messii: my point is despite it "not working" you dint explain what "working" means. Jul 23 00:27:37 Ok Jul 23 00:27:39 ThomQ: that's because your 9patch obscures it :/ Jul 23 00:27:46 yeah, i fixed it Jul 23 00:27:47 woohoo Jul 23 00:27:50 thanks guys :D Jul 23 00:27:54 rgr::: The string is not sent Jul 23 00:28:05 String resultado = ":)"; Jul 23 00:28:12 To editText Jul 23 00:28:18 after 3 months of development I thought i was kinda out of n00bie territory.. Then I went and tried to finish the layout... Jul 23 00:31:14 heh. its easy to start going around in circles with layouts, views, drawables, images, int IDs, animations, lists etc... Jul 23 00:32:41 153 views Z-z Jul 23 00:33:40 Messii: your code is impossible to read. What you pasted won't even compile Jul 23 00:34:09 rgr: yeah, especially if you've never dealt with them.. Our app is done, but the last 2 days i've just been spending on doing tiny little details, like spinner details. Getting really close to a launch build though, finally Jul 23 00:34:10 Ok i put all Jul 23 00:37:40 JesusFreke::: Its all Jul 23 00:37:41 Http://pastebin.com/2nFtN4x1 Jul 23 00:39:39 Messii: why are you calling startActivityForResult in the REQUEST_CODE_EMOTICON case in onActivityResult()? Jul 23 00:39:58 that doesn't make any sense. That method gets called when the EmoticonActivity finishes Jul 23 00:40:58 when you call startActivityForResult for the EmoticonActivity, you have to pass REQUEST_CODE_EMOTICON as the second paramater Jul 23 00:41:08 Private static final int REQUEST_CODE_EMOTICON= 8; Jul 23 00:41:20 which is then passed as the requestCode parameter to onActivityResult, when that activity finishes Jul 23 00:43:09 Ok, how to fix? delete the call to REQUEST_CODE_EMOTICON ? Jul 23 00:43:37 Messii: read what I said again. Jul 23 00:43:50 Ok Jul 23 00:47:11 hi Jul 23 00:47:55 i have this code http://pastebin.com/v6EDk360 Jul 23 00:48:03 why always my location == null? Jul 23 00:48:08 i active my gps Jul 23 00:48:13 and put permission in Android Jul 23 00:50:13 I swear to god the animation stuff is only half implements. android:repeatCount at the set level does not propagate down to the child animations as the documents state. 100% not. Jul 23 00:50:39 JesusFreke::: StartActivityForResult(intent, REQUEST_CODE_EMOTICON); Jul 23 00:50:41 ??????' Jul 23 00:51:11 "when you call startActivityForResult for the EmoticonActivity, you have to pass REQUEST_CODE_EMOTICON as the second paramater" Jul 23 00:51:16 Messii: yes, but that call shouldn't be in onActivityResult Jul 23 00:51:59 Tell me the result, I do not know many tracks Jul 23 00:52:25 If you call startActivity from onActivityResult, like you have now, you'll just get into a loop, where it starts the EmoticonActivity immediately after it finshes Jul 23 00:53:29 Noooo f** loop Jul 23 00:55:32 I think that is too much work, each emoticon, emoticons I have 100, my code take too Jul 23 00:58:35 why my BroadcastReceiver is not called when the device is locked? Jul 23 00:58:58 well Jul 23 00:59:09 Suchorski: look into wake_lock Jul 23 00:59:16 yeah Jul 23 00:59:21 i added it Jul 23 00:59:27 it is working locked Jul 23 00:59:33 my mistake Jul 23 00:59:36 ok Jul 23 00:59:42 it isn`t workin with scren turned off Jul 23 01:00:02 when i turn the screen on i get the alarm back Jul 23 01:00:09 are you doing the work in onReceive()? Jul 23 01:00:13 yes Jul 23 01:00:28 i put a log.i inside and a toast Jul 23 01:00:37 they just show up with the screen turned on   [Boss] [XP: 2150] Jul 23 01:00:40 that won't work Jul 23 01:00:56 because when device is sleeping, it's has restricted context Jul 23 01:01:05 hum Jul 23 01:01:15 you need to move the work into a service, within which you request cpu lock Jul 23 01:01:29 so Jul 23 01:01:29 and onReceive() you startService() Jul 23 01:01:43 broadcastreceiver just work with the screen on? Jul 23 01:02:22 no, broadcastreceiver works in all kinds of cases eg when network type changes or battery level etc Jul 23 01:02:46 but in many cases what kind of work the code can do in the Context passed is restricted Jul 23 01:03:16 in your case, you should trigger a service with "full" context Jul 23 01:03:26 from the broadcast receiver Jul 23 01:04:28 shipit in my case Jul 23 01:04:36 this was for test   [Mega Boss] [XP: 8500] Jul 23 01:04:46 my job is to download a json Jul 23 01:04:54 and check with another and send a notifiction Jul 23 01:04:58 do i need a service? Jul 23 01:05:00 yes Jul 23 01:05:03 tks Jul 23 01:05:12 will make tomorrow Jul 23 01:05:35 when device is locked/screen-off, it won't let you access network, disk etc Jul 23 01:05:46 so you must request the OS for that Jul 23 01:05:58 hum Jul 23 01:06:00 understood Jul 23 01:06:08 o/ Jul 23 01:06:10 when you start the service, then some seconds later the OS will schedule the service w/ full context Jul 23 01:06:25 right Jul 23 01:06:37 hth - good luck! Jul 23 01:06:57 tks for your time Jul 23 01:07:03 its late here Jul 23 01:07:10 i will do this tomorrow Jul 23 01:07:16 i'll be back hehehe Jul 23 01:08:03 shipit one last question :) Jul 23 01:08:13 can i access the sharedpreferences with a service? Jul 23 01:08:17 yes Jul 23 01:08:30 that is all i need Jul 23 01:08:32 well   [Ultra Boss] [XP: 20000] Jul 23 01:08:33 bye Jul 23 01:08:35 thank you Jul 23 01:08:36 service doesn't have a UI other than that it can access anything Jul 23 01:08:49 ok Jul 23 01:30:07 I'm using a custom spinner adapter, and when overriding getDropDownView, that method get's send a Viewgroup parent. What's the parent, the spinner to which I set the custom adapter? Jul 23 01:30:59 i dunno capella , FF31 (mac) is taking 1G on a cold start with a sessionstore.js from FF30, around 450mb cold Jul 23 01:31:30 i only have adb; my other install had quite a few plugins Jul 23 01:32:12 meh, desktop Jul 23 01:32:26 >those people< Jul 23 01:33:16 i'm going to try adding noscript, maybe it prevented stuff from running which was taking memory Jul 23 01:35:20 I'm trying to add a dedicated Favicon loader / background Thread to the mobile version to avoid task contention ... I've given up on a ThreadPool for now, though I did manage to implement a basic one ... seems easier to just segregate the actual tasks causing network delays to backlog Jul 23 01:36:07 let em blobk each other as long as they let higher priorities complete Jul 23 01:36:39 current state analysis is two days on and yow! ;) Jul 23 01:38:48 is there a glass developer channel Jul 23 01:38:48 capella isn't there a about:config param for http pipelining ? Jul 23 01:38:48 where I can bitch? Jul 23 01:38:56 ron_frown btw, W source code is out Jul 23 01:39:33 Anyone remind me how to change the language level on AS? Jul 23 01:40:31 lets try this again Jul 23 01:41:23 The JDK level pointed at is 1.8.0_05 but I cant use Lambda functions? Jul 23 01:41:30 g00s_ not sure ... and what? we have a dedicated "BackgroundThread" that we post a lot of things to, including network resource requests like Favicons ... lengthy network delays are felt in weird ways ... such as backing up user actions involving copy-to and paste-from the clipboard Jul 23 01:41:36 g00s_: wtf Jul 23 01:44:54 bbiab Jul 23 01:45:06 Is it possible to change the language level of a created project in AS? Jul 23 01:45:26 Its also bizarre how much easier AS is to use once you change the colour theme :S Jul 23 01:45:37 I cannot use the dark theme at all, yet love SublimeText Jul 23 01:49:44 .n n00b Jul 23 01:49:47 Fuck Jul 23 01:49:51 .n n00b_ Jul 23 01:56:44 Does anyone know if it is possible to change the language level of an Android Studio project? Jul 23 01:57:58 It is Jul 23 01:58:32 Tobias|: Do you know how and are able to tell me? Jul 23 01:58:40 What language level do you want to use? Jul 23 01:58:44 1.8 Jul 23 01:59:00 the IDE is currently pointing to a 1.8 compatible JDK Jul 23 01:59:19 Just when I created it I forgot to change the level in set up Jul 23 01:59:44 Not sure where the menu is in Android Studio (familiar with IDEA), but just typing something using 1.8 syntax should show a context hint to change to 1.8 Jul 23 02:00:19 I tried to use a lambda function and all I get is a message saying "Lambda functions are not supported at this language level" Jul 23 02:02:44 Oh, strange Jul 23 02:03:36 I'm not sure how to do it with 1.8 (or if 1.8 is supported) Jul 23 02:03:59 1.8 is supported - it is an option when you create the project Jul 23 02:04:03 I just forgot to change it Jul 23 02:07:18 doesn't AS have a similar intelliJ File->Project Structure? Jul 23 02:07:36 Yeah, but I don't see a language level option in there Jul 23 02:08:13 Platform Settings -> SDKs? Jul 23 02:08:22 or isnt that what you're looking for Jul 23 02:08:23 All correct and pointing to the right level Jul 23 02:08:36 Its not that though, I want to change it specifically for the project I have Jul 23 02:08:51 Something on the internet has said close the project, change the default level of AS and reopen? Jul 23 02:08:57 Doesnt seem like that should work though Jul 23 02:09:40 ProjectSettings->Project? Jul 23 02:10:10 You mean Project Structure? Jul 23 02:11:31 File->Project Structure->'Project' ListItem under 'Project Settings' Jul 23 02:12:27 I click Project and all I see are "Gradle version", "Android Plugin Version", "Android Plugin Repository", and "Default Library Repository". Jul 23 02:16:52 AHhh found a fix Jul 23 02:17:41 Open your build.gradle within the app folder, and add: compileOptions { % sourceCompatibility JavaVersion.VERSION_1_7 % targetCompatibility JavaVersion.VERSION_1_7 % } Jul 23 02:17:49 replace the % with a new line Jul 23 02:18:01 oops, and change it from 1_7 to 1_8 Jul 23 02:18:25 Then build it, and you get a message saying that the language level has changed, restart the project and it restarts for you Jul 23 02:20:34 .c Jul 23 02:20:53 .d Jul 23 02:21:02 .h Jul 23 02:22:07 n00b living up to its name? Jul 23 02:23:36 .l Jul 23 02:40:34 ron_frown did you see the wearble sources are in aosp ? Jul 23 02:40:39 no Jul 23 02:40:43 for glass too Jul 23 02:40:47 or just watch etc Jul 23 02:40:55 um Jul 23 02:41:13 honestly... I look at glass and dont know how such a good idea could have gone so wrong Jul 23 02:41:19 you should see trying to take pictures of shit Jul 23 02:42:06 its like taking a 4k screen, making it about 1", making that you video preview, placing that preview about 30 degrees above your normal vision Jul 23 02:42:12 then aim the fucking camera down Jul 23 02:42:23 i heard it was giving people headaches Jul 23 02:42:35 I just find it hard to believe thats the best they can do Jul 23 02:42:46 everything I tried to do with my good ideas Jul 23 02:42:51 it just didnt do well Jul 23 02:43:36 i'm not sure what google was trying to do with it. its probably in some interview with page somewhere; maybe they should have focused on things like medical, etc Jul 23 02:43:47 I did some augmented reality with it, and it was cool but it was literally burning me at that point Jul 23 02:43:58 as far as general public wearing glasses, it struck a nerve wrt privacy, etc Jul 23 02:43:58 didnt have the horsepower to do it efficiently Jul 23 02:44:20 There are two schools of thought on that privacy thing though. Jul 23 02:44:37 1) Shouldnt look at people without their say so. 2) Shouldnt be bothered about being caught if you are doing nothing wrong Jul 23 02:44:54 Neither side will agree with the other, all you hear is those that are dissatisfied by some decision. Jul 23 02:47:31 Anthaas and of course, that google made Jul 23 02:47:34 it Jul 23 02:47:36 hehe Jul 23 02:48:05 Of course. The biggest problem lies in two areas - the media needing to sell news, and the uneducated lapping it up. Jul 23 02:48:16 It isn't something that is confined to this situation, of course. Jul 23 02:48:16 i amazed to hear how many people say they don't want google tracking them, advertisers tracking them, etc - but they really have no idea in a technical fashion what this means, or how to protect themselves Jul 23 02:48:25 Exactly. Jul 23 02:48:47 The biggest one is "I dont want Google tracking me. They might steal my bank details". Jul 23 02:49:00 Because thats exactly how Google got rich... Jul 23 02:49:25 i think there is a legit angle to this though, there is little difference between surveillance and targeted advertising :) Jul 23 02:49:56 For me, the difference is what is behind the two Jul 23 02:50:03 If it is an algorithm, or a person making decisions. Jul 23 02:50:13 CCTV = Surveillance. Jul 23 02:50:15 if the government has access to it, i'm not sure it matters Jul 23 02:50:21 Hahaha, thats a fair point. Jul 23 02:50:41 At the same time though, what is being done or can be done about it? Jul 23 02:51:01 It seems like these days you are made to feel guilty about not wanting to be tracked, as if clicking No puts you on some list in some office somewhere. Jul 23 02:51:29 yeah, its the same as "what, you don't have a FB profile? you must be weird / unhireable / etc" Jul 23 02:51:38 axe murderer Jul 23 02:51:53 i read an article that pretty much said that Jul 23 02:52:05 problem is we all have FB profiles :| Jul 23 02:52:06 Haha exactly. See, Im the type of person that doesn't mind social media, it does have a lot of benefits, the problem lies in how people use it. Jul 23 02:52:07 if you have no FB/twitter profile you can't be trusted Jul 23 02:54:19 Anthaas now in the US its about car insurance companies giving you a better deal if you have a black box in your car (telemetry) Jul 23 02:54:43 Oh that is offered over here too, very few if any people go for it and as such insurance prices are still low without Jul 23 02:55:07 Saying that, we have so much CCTV and speed cameras and traffic police that it really isn't necessary. Jul 23 02:55:15 hehe Jul 23 02:55:40 i was just reading in the news, somebody got on the brooklyn bridge and replaced the flags Jul 23 02:55:50 no small feat ... and they had 3 security cameras there Jul 23 02:56:04 they can't figure out how it happened :| Jul 23 02:56:11 Crikey, but saying that where is the monitoring station for those 3 cameras? Jul 23 02:56:25 Other side of the city? By the time they got there they'd be halfway up Jul 23 02:56:57 not sure, but ... seems like they were in a blind spot Jul 23 02:57:19 saw a video show the lights go out on the flag, and lights go back on ... new flag Jul 23 02:57:52 Fantastic - stick it to the man, one flag at a time haha Jul 23 02:58:21 i'll be interested to hear how it was done, i mean its very high up Jul 23 02:58:33 if they ever figure out Jul 23 02:59:04 Im sure the guy would eventually tell all. I've just Googled an image of it - it certainly is quite high. Walk up the wires? Jul 23 02:59:11 Im sure Ive seen that done on a few bridges before. **** ENDING LOGGING AT Wed Jul 23 03:00:01 2014