**** BEGIN LOGGING AT Sat Nov 07 02:59:59 2015 Nov 07 03:37:03 freakyfidlers, it cannot, not directly. On some platforms (samsung) it can be used to gain system. Nov 07 03:38:12 i see too bad, hoping i could use it to backup TA DRM keys on Xperia Z5 phone Nov 07 03:38:30 but looking at the permissions everything is set to root Nov 07 03:40:19 so a root privilege escalation exploit will be required :-( Nov 07 03:41:33 thanks dragorn Nov 07 04:05:35 Bleh...I made $700 last month on my app...now it was suspended due to a bogus DMCA email Nov 07 04:05:58 If anyone is interested in my tale of woe... http://www.vartmp.com/blog/2015/11/06 Nov 07 04:08:01 Hello Nov 07 04:08:15 An app Iā€™m looking at doesnt have an Application class Nov 07 04:08:39 however I want to implement Parse which requires initialization in the subclassed Application Nov 07 04:09:25 do I introduce a new class? how does that affect the launcher activity? Nov 07 04:12:41 Ologn: your books are still copyrighted, just not in the US but EU and international Nov 07 04:17:49 apineda: yea just create a class that extends Application, and add the name in your manifest Nov 07 04:18:29 Ologn: agatha christie died in 1976 so the copyright will expire in 2046 in GB Nov 07 08:51:48 hello, I want to compile a project that uses NDK, can someone help me? https://github.com/xpheres/android-opencv-ocr Nov 07 08:54:38 can I compile it from android studio or should I do it from eclipse? Nov 07 09:22:43 xpheres, cant help you compiling it but this is an AS project Nov 07 09:32:16 Hi! I'm trying to fix a vertical line in java code(so not in xml since I wanna try this also) and I got this: http://pastebin.com/tDEMZHEg but right now there are two lines, one after the button and one after the EditText field. I want to remove the line after the button, how can I do that? Nov 07 09:32:46 Because I commented out line 23 so it's weird that the line after the EditText appeared when I commented out that line Nov 07 09:35:26 hi.. i simple question. how get all fragemnt in FragmentManager Nov 07 09:36:04 the suppor FragmentManger has getFragments() Nov 07 09:37:54 anyone experiencing problem opening developer.android.com? Nov 07 09:38:31 LemonadeCarl_, works for me Nov 07 09:39:39 to ndk to eclipse should I add Android native development tools? Nov 07 09:39:45 to add ndk to eclipse Nov 07 09:39:49 I'm in China so I have to go there by proxy, but I tried Hongkong/ Singapore/ USA, no one worked Nov 07 09:40:07 xpheres, as I said, this is an android studio project Nov 07 09:40:27 right Nov 07 09:40:36 and what should I do to compile it? Nov 07 09:40:44 should I open it on android studio or eclipse? Nov 07 09:40:54 and how do I add NDK to eclipse? Nov 07 09:41:20 xpheres, you cant open it in eclipse Nov 07 09:41:26 right Nov 07 09:41:28 and noone uses eclipse for android anymore Nov 07 09:41:32 right Nov 07 09:41:35 so Nov 07 09:41:45 in android studio I can not compile it because NDK is missing Nov 07 09:48:22 LemonadeCarl_, are other firewalled sites working? Nov 07 09:48:54 @danijoo, yes youtube and facebook works Nov 07 09:49:48 thats strange :/ maybe the proxy is somehow blocking it? dunno.. Nov 07 09:49:53 Error:(9, 0) Error: NDK integration is deprecated in the current plugin. Consider trying the new experimental plugin. For details, see http://tools.android.com/tech-docs/new-build-system/gradle-experimental. Set "android.useDeprecatedNdk=true" in gradle.properties to continue using the current NDK integration. Nov 07 09:52:46 xpheres, it tells you what to do Nov 07 09:52:50 ok Nov 07 09:52:57 I'm installing ndk from sdk manager Nov 07 09:53:05 it says it is version 1.0 Nov 07 10:28:54 what Nov 07 10:29:03 what's the best way to show icons Nov 07 10:29:19 as in, say a heart for a liking something Nov 07 10:29:34 a normal image? a vector? built in icons? Nov 07 10:30:08 are there any default drawables for stuff like heart, comment, etc? Nov 07 10:33:19 Find your icons here: https://github.com/google/material-design-icons Nov 07 10:38:04 theres also a nice AS plugin for importing material design icons Nov 07 10:38:26 will let you select one and automagically ads it in all sizes Nov 07 10:38:52 oh right I heeard about that, it was added in 1.3 right? or was it 1.4? Nov 07 10:39:06 its been arround longer Nov 07 10:39:11 its not an official thig Nov 07 10:39:14 thing Nov 07 10:43:13 oh i thought you meant the image resource importer. that too lets you select an image and automatically adds multiple sizes Nov 07 10:53:22 KaylieG: danijoo: there is now an offical one built into AS Nov 07 10:53:31 1.3 Nov 07 10:53:34 1.4 Nov 07 10:54:27 okay so the recommended way to display the instagram style heart icons is still the good old multiple drawables way then? Nov 07 10:54:46 no Nov 07 10:55:28 KaylieG: if you target your gradle to 2.4+ and android plugin to 1.4+ you can use VectorDrawable resources and choose them from a built in list. The resource compiler will automagically create png's for older versions of android and use vector on newer ones Nov 07 10:58:04 ah yes i just got that notification! Nov 07 10:58:34 cool, well im off.. laters Nov 07 11:39:07 anyone been using the palette stuff? Nov 07 12:15:01 hello people Nov 07 12:15:41 I am new to app development and I have questions about authenticating to my own backend service. How do I ask questions? Nov 07 12:16:00 you type them in. and then you press enter. Nov 07 12:16:02 lol Nov 07 12:16:24 I could be hallucinating, but I think you have already asked one. :D Nov 07 12:16:38 this is the instructions for google though Nov 07 12:16:54 hey, im animating recylerview's items but first item is not animated. Nov 07 12:17:02 daijoo, I never understand this computer thing. It's devil's machine. But I will try Nov 07 12:17:26 http://cdn.meme.am/instances/500x/63628685.jpg Nov 07 12:17:53 lol you keep that link in your clipboard? Nov 07 12:18:20 im very fast at meme-googleing Nov 07 12:18:57 * zagooda brofists danijoo Nov 07 12:19:46 so I want to add "login via twitter" functionality to my app. Actually I want to limit logins to that only Nov 07 12:20:27 zagooda, twitter api allows that Nov 07 12:20:36 so I get the user's credentials in the app using twitter api Nov 07 12:20:57 but what is the magical secret thing I should be sending to my backend service Nov 07 12:21:16 the user id? or token? or ...? Nov 07 12:27:22 can can someone tell me what should (twitter user id, token, secret etc...) I store in the app, how should I store it securely and use it for identification purposes? Just give me a summary that I can use to do a further research myself please Nov 07 12:51:25 Anybody know anything about aide ide? Nov 07 12:56:46 guardian-project, you should use a real development environment Nov 07 12:57:19 Switching now. Nov 07 12:57:56 Danijoo it says it has the ndk it compiles and packs apks apparently. Nov 07 12:58:06 Is gcc part of the ndk? Nov 07 12:58:25 i dont work with ndk\ Nov 07 12:58:42 Why not? Nov 07 12:58:48 why should I? Nov 07 12:59:43 Do any amazon instances run arm compiled linux? Nov 07 13:00:01 amazon instances? Nov 07 13:00:10 aws? Nov 07 13:00:17 i doubt Nov 07 13:00:19 It is supposed to be native danijoo. Nov 07 13:00:41 what are you talking about Nov 07 13:01:04 Ndk is supposed to compile for arm. Nov 07 13:01:14 When I create a new project, i don't get the actionbar at the top but I take the same version as my friend and he gets different layout from beginning. Why? My friend uses an earlier version of android studio but i don't know why i don't get the same result from beginning Nov 07 13:01:25 guardian-project, no. ndk compiles for arm and x86 Nov 07 13:01:29 its for both Nov 07 13:01:34 What is androids directory structure to look for the compiler? Nov 07 13:01:43 but what does that have to do with online bookshops? Nov 07 13:02:31 Hey all Nov 07 13:02:51 I cam make a freenode bookshop. Nov 07 13:03:12 With all of the authors on the motd. Nov 07 13:03:36 why would you need an ndk for that? Nov 07 13:03:47 doesnt sound performance critical Nov 07 13:04:40 aaearon, knows that when you have crystal shift Nov 07 13:04:58 Native avoids eras Nov 07 13:06:26 era? whats that? Nov 07 13:06:56 Your talking about drm. Nov 07 13:07:07 * danijoo gives up Nov 07 13:07:25 Digital rights managment. Nov 07 13:08:02 Era is something that faded during crystal shift. Nov 07 13:08:34 So if the code fades the drm vanishes. Nov 07 13:09:20 theres clearly a language barrier involved here.. Nov 07 13:09:38 What language? Nov 07 13:09:43 exactly Nov 07 13:10:45 Your going to have to nominate a successor then. Nov 07 13:11:07 guardian-project, http://youryoure.com/ Nov 07 13:11:32 It isn't mine. Nov 07 13:11:45 It is your action to take. Nov 07 13:11:52 shush Nov 07 13:12:00 Keeps you from being are. Nov 07 13:12:08 time to stop answering i guess... I feel like talking to a robot Nov 07 13:16:21 Yes exactly danijoo so your successor is? Nov 07 13:17:53 Danijoo sure you want to give up? Nov 07 13:18:06 Love never quits. Nov 07 13:19:03 Apparently standard english is dark basic. Nov 07 13:20:01 So you nominate a successor or become the darkness lovers of Jn 3:16. Nov 07 13:20:57 Already condemned. Nov 07 13:21:29 I invite you to never give up. Nov 07 13:21:47 If you quit you're a quitter. Nov 07 13:25:07 Your is possessive. Do you reject the gift I give you to possess by quitting? Nov 07 13:27:05 Agape is. Nov 07 13:52:19 Danijoo what do you mean by real development environment anyway? Nov 07 13:56:06 morning Nov 07 14:52:31 Is there a way to connect to the android emulator console and set its location when using android studio? Nov 07 14:53:21 Tried connecting to 5554 and getting cnnection refused :/ Nov 07 14:53:56 List of devices attached Nov 07 14:53:56 emulator-5554 device Nov 07 15:08:06 guys this is my first time using broadcasts, an onReceive is not invoked.What am i doing wrong ? http://paste.ubuntu.com/13147981/ Nov 07 15:08:30 anyone here using SensorManager.TYPE_ROTATION_VECTOR ? Nov 07 15:12:53 sci-fic: maybe you could try without the filter? Nov 07 15:13:02 temporarily? Nov 07 15:13:21 I don't have much experience with broadcasts, but my first thought is to just get something working.. Nov 07 15:15:29 local broadcast manager, who even uses that Nov 07 15:20:18 snapfractalpop: i've found it. i had to add same action and category -.- Nov 07 15:20:53 sci-fic: nice Nov 07 15:21:47 now, if only I can figure out why my rotation vector gets twitchy when the top of my phone crosses due south Nov 07 15:42:19 Can the /system partition just be resized with fdisk? Nov 07 15:42:31 huh what Nov 07 15:43:08 My phone has a ~500 mb system partition Nov 07 15:43:15 I want to resize it to 1GB Nov 07 15:43:26 goodluck, this isn't the channel for that Nov 07 15:43:27 ldiamond: not without losing the data Nov 07 15:43:37 shmooz: that's ok Nov 07 15:43:53 canvs2321-: how is that not a channel for that? Nov 07 15:44:02 that proves it Nov 07 15:44:16 No it doesn't. This is exactly a channel for that. Nov 07 15:44:28 just because "android" is in the name doesn't make it the right place Nov 07 15:44:33 this is for app dev Nov 07 15:44:35 show your code Nov 07 15:44:42 No it's not for app dev Nov 07 15:44:44 it's for Android dev Nov 07 15:44:50 Includes OS dev. Nov 07 15:44:50 android app dev Nov 07 15:44:53 false Nov 07 15:44:56 go away Nov 07 15:45:07 ldiamond: it is app only dev here Nov 07 15:54:55 What should i write to access the java files in packageName from mainactivity? http://i.imgur.com/HGtRpwM.png Nov 07 15:55:30 make it make sense Nov 07 15:56:34 I'm writing code inside mainactivity.java. I'm trying to use a class that is defined in assets/packageMain, Happening.java. Nov 07 15:56:48 packageName.Happening doesn't do anything Nov 07 15:57:06 sounds like a mess Nov 07 15:57:39 you can't put code in assets and expect it to execute Nov 07 15:57:39 dersand: you cant. Nov 07 15:57:41 ^ Nov 07 15:57:50 code in assets and res is not compiled. Nov 07 15:57:52 where am i supposed to put the code? Nov 07 15:57:57 src/main/java Nov 07 15:58:43 i thinks it's there because i created a new package, so the lesson her is don't use packages? Nov 07 15:58:48 here* Nov 07 15:58:50 what? Nov 07 15:58:53 no. Nov 07 15:59:08 you just put the package into the wrong folder. Nov 07 15:59:19 Hi Nov 07 15:59:20 Hi all Nov 07 15:59:23 java code does not belong in res, unless you want to ship java files for some reason. Nov 07 15:59:48 allright, roger Nov 07 16:01:29 is it a good practice to put packes inside the com.example.applicationame-package? Nov 07 16:01:39 yes. Nov 07 16:02:15 https://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html Nov 07 16:04:33 Ok.. I think I've determined when this ROTATION_VECTOR "glitch?" happens.. Nov 07 16:04:35 anyone here want to be a team mate in making apps? Nov 07 16:05:06 when the top of my phone (in portrait) crosses due south Nov 07 16:05:39 but the odd thing is, I'm using a rotationMatrix, and the -180 to 180 jump shouldn't matter.. Nov 07 16:06:01 especially, since the sensor fusion is supposed to be using quaternions Nov 07 16:06:14 so.. I'm confused .. why this jump Nov 07 16:06:21 or "twitch" Nov 07 16:06:28 anyone have experience with this? Nov 07 16:08:35 snapfractalpop that seems a pretty specific issue, has googling not produced similiar results with answers? Nov 07 16:08:37 This is cool. Connected my new Moto E to my computer, and USB debugging works instantly. :D Nov 07 16:08:46 hax Nov 07 16:09:45 canvs2321-: I can't seem to find a specific answer.. the odd thing is, Sensor.TYPE_ROTATION_VECTOR works so beautifully well Nov 07 16:09:50 with this one exception Nov 07 16:10:22 could be a bug, have you filed one, or checked for others? Nov 07 16:10:32 it is a very specific issue Nov 07 16:11:01 canvs2321-: I could / may do just that Nov 07 16:11:13 you'll have to if you are stuck Nov 07 16:11:14 first I want to rule out if I'm doing something stupid, which is sometimes the case Nov 07 16:11:44 canvs2321-: do you know how I can search issues on that sensor? Nov 07 16:11:47 just google ROTATION_VECTOR errors Nov 07 16:11:52 just use precise keywords Nov 07 16:12:24 search using items you've dialed down and use Nov 07 16:21:50 canvs2321-: hm.. still can't seem to find any issues on this, but I'm not confident I'm searching all the right places Nov 07 16:22:03 I wonder if there is a place to specifically search aosp issues? Nov 07 16:22:41 if can't find similar issue, then post a detailed bug report Nov 07 16:22:45 it could be a bug Nov 07 16:23:18 canvs2321-: ok, I think I will do that Nov 07 16:23:37 canvs2321-: can you point me to the correct place to post a bug report? Nov 07 16:23:59 i don't know the link off hand, but there are places to post bugs on aosp Nov 07 16:24:09 i can google if you are unable Nov 07 16:24:32 b.android.com Nov 07 16:24:58 or that :) Nov 07 16:25:22 awesome, thanks! Nov 07 16:26:34 I should ask in Java, but given a primitive type wrapper object is there a way to determine the default uninitialized value of the primitive type? Nov 07 16:27:12 can use the java docs about default values based on scope Nov 07 16:27:14 wow, it's currently flooded with porn spam :) Nov 07 16:28:55 Any good books on android development or the design of the backend of apps? Nov 07 16:29:07 design of backend? Nov 07 16:29:32 like OO design but relating to specificcaly to android Nov 07 16:29:56 OO is java, learn java Nov 07 16:30:02 ooh, design Nov 07 16:34:37 canvs2321-, don't want a document based approach, want programmatic Nov 07 16:36:19 guava has a defaults class. that cans the documents, yuck Nov 07 16:36:38 I guess I just have to do something similar Nov 07 16:42:25 thanks all Nov 07 16:48:43 canvs2321-, I work as a C# dev Nov 07 16:48:52 well was PHP and then switched to C# Nov 07 16:49:37 well, if you're strong with c#, moving to android us easy Nov 07 16:51:29 The biggest difference will be the naming convention Nov 07 16:52:23 you can always use xamarin ;) Nov 07 16:57:32 but you should feel bad while doing it :p Nov 07 17:25:46 is xamarin any good? Nov 07 17:25:56 Does it have any marketshare? Nov 07 17:26:11 i was really shocked to see Parse have a specific sdk for it Nov 07 17:31:11 only reason to use xamarin is if you absolutely must use c# Nov 07 17:31:19 otherwise it's pointless Nov 07 17:32:20 Hello, when I upgrade play services in build.gradle from 7.3.0 to 8.3.0 (and sync) I dont have com.google.android.gms.analytics anymore..... com.google.android.gms is available, on the official docs I see that's the path didnt change... any idea what's gone wrong ? Nov 07 17:33:04 err, nm, ignore it Nov 07 17:41:21 to create dynamic fragment should we use framelayout? Nov 07 17:47:52 when i press the ā†’ keyboard key in an empty edittext, viewpager switches to the view that's on the right. what's responsible for that? Nov 07 17:49:40 what is the difference between static and dynamic fragments? Nov 07 17:51:10 i guess xml vs creation in java Nov 07 17:52:07 squirrel: i did not understand Nov 07 17:52:13 Static fragments can't be replaced or removed (or added). Nov 07 17:52:48 hum. how does one make such a fragment Nov 07 17:54:00 first i want to ask something.when i google static and dynamic fragment examples i always see framelayout Nov 07 17:54:26 squirrel: You can declare them in XML. Nov 07 17:54:32 do we have to use framelayout for dynamic fragments? Nov 07 17:54:40 No. It's just nice and simple. Nov 07 17:54:51 TacticalJoke: what makes it unremovable? Nov 07 17:55:03 Hey, post lolipop you can set the notification bar colorPrimaryDark using styles, can i be done programmatically? I dont want to change the colorPrimaryDark for the entire app, just the color of the system notification bar Nov 07 17:55:23 cant it be done* Nov 07 17:55:32 TacticalJoke: no was for my question ? Nov 07 17:56:07 aleandro: Yes. Nov 07 17:56:20 thank you :) Nov 07 17:56:52 getWindow().setStatusBarColor() does the trick Nov 07 17:59:15 squirrel: I'm not sure; I've never investigated. Nov 07 17:59:27 I just remember that they're very static when declared in XML. Nov 07 18:01:46 using fragment transaction means it is dynamic ? Nov 07 18:02:11 Yeah. Nov 07 18:03:04 can i use fragment manager in static fragment? or is it dynamic fragment also ? Nov 07 18:04:34 I think you can't use fragment transactions at all with fragments declared in XML. Nov 07 18:05:19 i'm not sure about that Nov 07 18:05:49 Why are you not sure? Nov 07 18:05:55 you can still remove. the fragment Nov 07 18:06:03 and add stuff into the container, iirc Nov 07 18:06:25 i see a code for static fragment like this Nov 07 18:06:27 Fragment fragment = getFragmentManager().findFragmentById( R.id.static_fragment ); Nov 07 18:06:57 aleandro read this, pretty good https://guides.codepath.com/android/Creating-and-Using-Fragments Nov 07 18:08:27 g00s: thanx Nov 07 18:20:40 Hi guys, quick question... If you were using an SDK and you expect a key-value object from it. Would you prefer it to be a JSONObject or a HashMap? Nov 07 18:20:56 a Map. Nov 07 18:21:18 first of all, JSONObject is part of a horrid api that should die. Nov 07 18:21:38 second, use the contract types for collections, not the implementation types. Nov 07 18:30:39 Thanks Nov 07 18:31:10 If the HashMap hold all kinds of types (JSONish) should I define a HashMap? Nov 07 18:31:41 you should rethink the design in this case :/ Nov 07 18:31:47 ^ Nov 07 18:32:06 java is statically typed. work with it, not against it. Nov 07 18:32:19 * wakelock totally thinks everything should be defined as Object and typecasted as needed Nov 07 18:33:10 In my case I must have it generic Nov 07 18:33:19 It's a configuration file that constantly changes Nov 07 18:33:35 have you considered making a class for it Nov 07 18:33:52 or interface Nov 07 18:34:02 i dont really see many cases where a configuration would have changing keys. Nov 07 18:34:05 What will that give me if it's constantly changing? Nov 07 18:34:26 maybe you should explain your specific situation Nov 07 18:34:51 I'm building a library for pulling configurations Nov 07 18:34:57 It will be used by many applications Nov 07 18:35:20 and so I can't have a class for it and the keys will definitely change from app to app Nov 07 18:35:30 so let the app author define the class Nov 07 18:35:37 pullConfiguration(type) Nov 07 18:35:38 natanavra have you looked at google tag manager ? Nov 07 18:35:45 then use jackson or gson for deserialization Nov 07 18:36:00 there is also http://developer.android.com/reference/android/util/TypedValue.html Nov 07 18:36:08 I don't want the app author to have any overhead in implementing it Nov 07 18:36:22 like they said... you need to rethink your approach Nov 07 18:36:23 @g00s what's that? Nov 07 18:36:34 google it Nov 07 18:37:12 K thanks. Nov 07 18:38:28 you can use it to configure apps , they get a default container and can then update later on Nov 07 18:40:22 but you may also just want to see how they deal with the api for keys/values Nov 07 18:40:53 you give them a json and then tag manager api can get things out of it, but its limited Nov 07 18:41:50 g00s: Yeah I'm looking into it now Nov 07 18:42:16 they just have an API for each type e.g. "getString(key)" "getColor(key)" etc Nov 07 18:43:30 By the way, holding that object inside the library would be done using a HashMap anyway Nov 07 18:43:43 ew. Nov 07 18:43:49 What's a possible alternative to keeping a reference to the map? Nov 07 18:44:05 seriously, consider data binding. Nov 07 18:44:23 Not possible, I can't define a class for that Nov 07 18:44:37 so let the user define the class. Nov 07 18:44:42 it's a much, much better solution. Nov 07 18:44:52 this isnt javascript. Nov 07 18:44:53 natanavra: weak references might be important in such case, btw Nov 07 18:45:00 what? Nov 07 18:45:13 p_l: How is that accomplished in Java? Nov 07 18:45:31 yawkat I understand this ain't javascript, the I'll probably advise the users to do it Nov 07 18:45:40 * yawkat does not see any connection with weak references Nov 07 18:45:43 But I still need to expose an API for pulling these values Nov 07 18:46:01 natanavra: don't remember, mostly used libs that wrapped the necessary work, but depending on case getting a reference from the map, I might not want to keep that reference forever... Nov 07 18:46:13 just pull an Object and let the user guess what it is :rolleyes: Nov 07 18:46:16 p_l: i really dont think this applies here Nov 07 18:46:34 yawkat: I might have missed bits and pieces of the conversation Nov 07 18:47:01 wakelock: I'm thinking something around the lines of the Google Tag Manager Nov 07 18:47:18 with one additional method "getValue(key)" which will return an Object and should be casted by the user Nov 07 18:47:50 well you probably need to pass in the class as well. Nov 07 18:47:59 because strong typing. Nov 07 18:48:29 Can you elaborate? Nov 07 18:48:45 The method accepts a second argument of type class? Nov 07 18:48:49 yes. Nov 07 18:49:01 And how will it be casted back for the user? Nov 07 18:49:03 unless you have other ways of knowing the type of the object. Nov 07 18:49:15 Or the class returns a "T" type? Nov 07 18:49:21 (Sorry, Java is not my strongest side) Nov 07 18:49:42 okay, say your json is {"a":{...}}. what type is a? Nov 07 18:49:56 a JSONObject Nov 07 18:50:12 and how is the user gonna cast that to anything? Nov 07 18:50:19 JSONObject is just an ugly form of map Nov 07 18:50:32 you cant just cast a map to an object with matching fields Nov 07 18:51:37 If a method "getValue(a)" return an Object type Nov 07 18:52:04 and the user on his end calls like so: "JSONObject a = (JSONObject)lib.getValue("a"); Nov 07 18:52:08 Won't it work? Nov 07 18:52:23 natanavra, what about giving the user the possibility to return basic types by key Nov 07 18:52:27 yes, that will work, but i assumed you wanted to do actual object mapping because thats sane. Nov 07 18:52:28 like sharedPreferences does it Nov 07 18:52:32 getInt(key) Nov 07 18:52:35 getString(key) Nov 07 18:52:36 etc Nov 07 18:52:46 also, FYI, json-simple is the absolute worst json api for java, dont use it. Nov 07 18:52:47 can i use fragment manager in static fragment Nov 07 18:53:05 danijoo: That's the plan + another method for generic types Nov 07 18:53:06 aleandro, its not a class method Nov 07 18:53:18 aleandro: yes you can Nov 07 18:53:36 but not transaction right ? Nov 07 18:53:37 yawkat: One moment, leaving the JSON api aside Nov 07 18:53:48 yea, it was just a side note. Nov 07 18:54:17 The object mapping is not exposed to the user, he only accesses values using a string Nov 07 18:54:34 Like demonstrated, so as far as my lib should work - it's fine. Nov 07 18:54:42 * yawkat is not a big fan of that pattern. Nov 07 18:55:10 Well, if the user isn't creating an object by himself to map it, I'll still let him the config Nov 07 18:55:13 see i work with a project that has this class: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/configuration/Configuration.html Nov 07 18:55:18 Let's say he wants to map it to a class Nov 07 18:55:39 He will be expecting a HashMap to use in a constructor, correct? Nov 07 18:55:40 one of the most terrible design choices in the project, and it does exactly what youre currently doing. Nov 07 18:55:53 natanavra: no? just use jackson to map it automatically. Nov 07 18:56:08 natanavra, no he will expect to be able to pass some kind of deserializer to let your lib make the object for him Nov 07 18:56:39 at least that would be what I expect Nov 07 18:56:50 yawkat: I'm checking up on jackson now Nov 07 18:56:56 danijoo: The object will be created in runtime Nov 07 18:57:07 so how will it be typed in compile time? Nov 07 18:58:20 natanavra: this example does what youre currently trying to do, your way. http://wiki.fasterxml.com/JacksonInFiveMinutes#A.22Raw.22_Data_Binding_Example Nov 07 18:58:55 thats a clumsy way of doing data binding. Nov 07 18:59:37 this here is proper data binding: http://www.cowtowncoder.com/blog/archives/2010/08/entry_409.html Nov 07 19:01:42 I'm sorry I don't get it... You're taking me back to defining a class for data representation? Nov 07 19:02:00 danijoo: ? Nov 07 19:07:09 "As a user, I want to serialize a class containing a Paint object, and unserialize said class, which returns an identical Paint object" Nov 07 19:07:34 I created "SerializedPaint extends Paint implements Serializable" Nov 07 19:07:48 and I can serialize the class Nov 07 19:08:11 but when unserializing, the color and strokewidth (i.e., everything) is off Nov 07 19:08:46 might be not that easy. Nov 07 19:08:56 look at the source if theres something not serializeable Nov 07 19:09:00 You can't just implement serializable and expect it to work.. Nov 07 19:09:09 Otherwise everything might as well be serializable Nov 07 19:10:00 worked for every other class I serialized....I had no basis to expect otherwise Nov 07 19:12:36 Well, now you know Nov 07 19:18:42 where can I read up on WHY Paint is "a pain to serialize"? Nov 07 19:20:08 http://android.wanderinghorse.net/2012/06/17/serialization-101-with-json-in-android/ is the closest I've gotten to be given an even remote explanation Nov 07 19:24:19 Serializable lets you serialize an object and its fields Nov 07 19:24:28 There's no color or strokewidth field: https://android.googlesource.com/platform/frameworks/base/+/master/graphics/java/android/graphics/Paint.java Nov 07 19:28:18 so is it pretty much established that updating apps on play at a regular interval improves their ranking ? Nov 07 19:31:59 is their any way turn off the mini icon of a persistent notification? Nov 07 19:39:46 Hey what does one call the little alerts that pop up ontop of your screen when an APP has something to alert you about? Nov 07 19:41:09 a Dialog message Nov 07 19:42:29 A notification? Nov 07 19:43:17 cart_man: AlertDialog Nov 07 19:43:20 ? Nov 07 19:44:19 how can i understand a code is static or dynamic fragment Nov 07 19:46:46 cart_man: are u looking for a "Toast" message? Nov 07 19:48:31 Snackbar? Nov 07 19:48:53 cart_man: heads-up notification it is Nov 07 19:51:42 is there any test case which can remove a persistent notification. any system side issue or any other app? Nov 07 19:52:03 hey guys... my android studio emulator doesn't boot up, what could be the reason? Nov 07 19:52:43 veryhappy: aren't you getting any error message? Nov 07 19:53:44 t2mkn: no, the emulator is just stuck booting up the android x86 image... the x64 image even doesn't work at all. Nov 07 19:54:45 veryhappy: no messages at all ! Nov 07 19:57:27 t2mkn: ok i'll look it up again if you guide me where to look... sorry Nov 07 19:57:36 i've been way to unspecific Nov 07 19:58:22 veryhappy, use genymotion Nov 07 19:58:30 veryhappy: do u see "Run" window when you try to start it? the messages will be coming their. Nov 07 19:59:14 t2mkn: ok, hold on Nov 07 20:02:35 last_staff: Sounds about right... Nov 07 20:02:44 squirrel: will have to check...probably right also Nov 07 20:02:50 t2mkn: No that is not it Nov 07 20:04:04 cart_man: then it can be System Alert using a Service. Nov 07 20:05:06 This looks so pointless: https://www.reddit.com/r/androiddev/comments/3rwvfj/check_out_my_neveremptylistview_it_puts_an_end_to/ Nov 07 20:05:29 t2mkn: so when i start the avd manager and the avd separately from the project where do i find the logs then? Nov 07 20:06:16 veryhappy: how u r starting? Nov 07 20:07:00 TacticalJoke lol Nov 07 20:07:27 hey , somebody has embedded lisp for android :D Nov 07 20:07:50 See this pic -- > http://www.droid-life.com/wp-content/uploads/2014/06/android-l-heads-up2.jpg Nov 07 20:07:51 which one? :P Nov 07 20:08:07 https://common-lisp.net/project/ecl/ Nov 07 20:08:07 The one first from the right... right ontop there is a pop up message Nov 07 20:08:25 I want to do that from a service Nov 07 20:08:40 t2mkn: i open the avd manager and start the avd ... normally i use the green execute symbol with the play symbol like on old recorders but i'm not sure if i have a working project now. Nov 07 20:08:55 g00s: ahh, ECL, yes, my friend works on that Nov 07 20:08:58 p_l i was reading swiftkey used clojure Nov 07 20:09:33 ... might fit occassional slowness :P Nov 07 20:09:44 XD Nov 07 20:10:10 tl;dr clojure had issues that were related to android specifically, not so much with the language Nov 07 20:10:38 p_l the Skummet project is working on those areas Nov 07 20:10:55 veryhappy: in AndroidStudio on very left-buttom u can see a menu option. take your pointer their and click "Run". the window will show up. Nov 07 20:11:48 p_l TacticalJoke CedricBeust meanwhile ceylon guys are making progress on intellij plugin Nov 07 20:11:55 t2mkn: got it! i'll give you a pastebin in a few seconds ok? Nov 07 20:12:07 t2mkn: Have you seen the picture? Nov 07 20:12:12 squirrel: ^^ Nov 07 20:12:18 exciting times ... if google can get the underlying java story back on track Nov 07 20:12:37 g00s, jetbrains themselves support the scala plugin :p Nov 07 20:12:41 g00s: well, there's currently a commercial ANSI (w/ MOP) Common Lisp implementation for Android (and iOS too) Nov 07 20:12:46 cart_man: yes, thats the new notification. max priority. Nov 07 20:13:07 t2mkn: Hmm ok so its called new notification ? Nov 07 20:13:15 p_l yeah i think i know what you're talking about, last i looked it was pretty expensive Nov 07 20:13:26 t2mkn: Im just looking for the general name so I can get tutorials on it Nov 07 20:13:30 g00s: well, it's not really expensive for typical client of theirs Nov 07 20:13:44 might as well do clojure if you want a lisp on android Nov 07 20:14:02 yeah i pretty much lost interest in common lisp, i'd go for clojure Nov 07 20:14:06 you can even do it on ios. via robovm. Nov 07 20:14:08 cart_man: no it's new type of notification with special buttons :D u cant add Dismiss and Snoze like buttons in a normal notification message. Nov 07 20:14:29 g00s, you'll go for nothing and you'll like it Nov 07 20:14:33 :p Nov 07 20:14:34 t2mkn: Ohh right ok! Yes that would be really usefull ! Nov 07 20:14:44 t2mkn: http://pastebin.com/vm3waWu8 Nov 07 20:15:06 pfn just trying to stay focused and ship something by black friday :P Nov 07 20:15:08 cart_man: just bringup the tutorial in Android doces. You will be able to see such things. Nov 07 20:15:35 TacticalJoke you are shipping before xmas too right, right ? ???? Nov 07 20:15:40 :D Nov 07 20:16:04 I'm happy, I have a solution for fully typesafe view lookups at compile time in my dsl Nov 07 20:16:12 no TR stuff Nov 07 20:16:26 I hope so. Nov 07 20:16:48 pfn what is TR ? Nov 07 20:16:55 IO(aTextView) >>= id(Id.something) Nov 07 20:17:07 t2mkn: Awesome its exactly what I wanted! Thanks allot man! Nov 07 20:17:16 and later, view.find(Id.something) // returns TextView Nov 07 20:17:24 not View Nov 07 20:17:24 veryhappy: it clearly states RAM is low for your emulator. Increase it. And also see if HAXM is properly installed. Nov 07 20:17:30 g00s, typed resources Nov 07 20:17:47 cart_man: wc ;) Nov 07 20:18:39 veryhappy: Set the emulator image to use 1GB RAM. Nov 07 20:18:55 g00s, old, but the general gist remains the same http://blog.andresteingress.com/2011/09/20/programming-android-with-scala/ Nov 07 20:18:57 t2mkn: ok... i'm new to programming, i already wrote a few programs (small ones) but not in android and i also didn't look behind all the settings yet... have some experience with virtualbox though i first need to get into this stuff... i'm sure you guys help me ;) Nov 07 20:20:11 veryhappy: use Google. thats your best friend. Don't let us be Google for you :D Nov 07 20:20:23 cart_man: https://developer.android.com/guide/topics/ui/notifiers/notifications.html#Heads-up Nov 07 20:20:33 t2mkn: yea ok... but for some questions i'll ask you anyway ;) Nov 07 20:20:36 internal storage set to 1GB? or sdcard? Nov 07 20:21:32 RAM amount. Nov 07 20:21:33 veryhappy: RAM is not SD Nov 07 20:21:52 well ram is already set to 1536MB Nov 07 20:22:07 Is that 1GB? Nov 07 20:22:16 <1GB Nov 07 20:22:23 nope i mean more than 1GB Nov 07 20:22:34 lol Nov 07 20:22:51 does it need more than 1 GB/ Nov 07 20:23:00 then something has gone wrong with your emulator image. delete that and make a fresh one. Nov 07 20:23:38 veryhappy: Just read http://pastebin.com/vm3waWu8 . Nov 07 20:24:29 g00s, TR is auto generated at build time Nov 07 20:27:43 to be honest... i read that after i got the hint where to find the logs... i'll try to set that up after i'm back... need to know anyway what haxm is.... Nov 07 20:28:12 all the best (y) Nov 07 20:28:58 thanks.. Nov 07 20:29:46 i'll read it up thanks to our hints... i'll join the room if i got new questions that i can't solve with google. thanks. see you later Nov 07 20:30:06 (y) Nov 07 20:46:20 what is static and dynamic frament Nov 07 20:55:19 aleandro: Didn't we go through this before. :s Nov 07 20:55:53 i still not get that Nov 07 21:11:46 Hi Nov 07 21:14:36 Anyone have an idea of how to make a Location object from a postal zip code? Nov 07 21:16:08 did t2mkn just use skype smileys on irc Nov 07 21:28:14 How do I programmatically animate the elevation of a View? I want to add it to an AnimationSet where I've already added a TranslationAnimation, ScaleAnimation and RotateAnimation. Nov 07 21:31:44 Switch to ViewPropertyAnimator Nov 07 21:31:47 elevation is translationZ Nov 07 21:33:23 view.animate().translationZ(...).scaleX(..).rotation(..) etc Nov 07 21:40:15 why android studio memory tool text size so small, cant read... Nov 07 21:44:38 Limpik: go for MAT Nov 07 21:49:53 squirrel: MAT? Nov 07 21:50:05 Limpik: AS is a damn hipster tool. It's meant to be eye-bleeding ugly just so you feel special. Use the dracula (HAH, I spelt it wrong!) theme for an extra boost of *LOOK AT ME*. Nov 07 21:50:20 Use Eclipse =) Nov 07 21:50:38 SimonVT: Right, I'll see if that's doable. Nov 07 21:51:30 Limpik: eclipse memory analyzer tool Nov 07 21:52:05 Zta: but dracula is awesome Nov 07 21:52:47 Thanks Nov 07 21:53:27 squirrel: I can understand why a dark theme is compelling. But I personally thing the theme has too low contrast. Also, as soon as you alt-tab (or Macintosh-tab) or a different app, your eyes will burn. Nov 07 21:54:08 (..because white is the de-facto background of browsers, file managers, document writers, etc. and you're likely to hit one of those). Nov 07 21:54:30 Zta: Ā½ my apps are white on black, and there user css out there as well Nov 07 21:55:05 contrast is subjective tho. fine for me Nov 07 21:56:52 squirrel: really? These are white on black for you? https://www.google.com/ developer.android.com/develop/ https://www.facebook.com/ Nov 07 21:58:36 Too bad view.setScaleX() doesn't return the View and allows for chaining, like animate()... does Nov 07 22:02:50 Zta: user css tho Nov 07 22:03:19 squirrel: I'm not sure I know what that is. Nov 07 22:03:33 stuff that changes how websites look. Nov 07 22:04:15 https://userstyles.org/ Nov 07 22:05:45 I am having some trouble with onCreate()/onResume() Nov 07 22:06:06 my activity displays a list of tasks. The user can click it, mark it as completed, and then use the back button to return to the list of tasks. Nov 07 22:06:30 Then, I want the task to be marked as completed, which I ususally solve by putting the entire task fetch/list generation in onResume() Nov 07 22:06:49 However, this time I programatically add some titles and fragments, so if I keep them on onResume(), everything disappears upon rotation Nov 07 22:07:10 so currently it seems like I have to choose between updating the list upon back press and supporting rotation Nov 07 22:07:16 I guess I am doing something very wrong? Nov 07 22:10:06 squirrel: Clever. But too complex for me, I think. I occasionally use Super+N to negate (invert) a specific window, mostly for reading PDF. Firefox has a nice Reader View mode that removes clutter and allows white on dark gray, but too few pages support it. Nov 07 22:11:30 Come to think of it, OLED monitors and more white on darkgray or black would be welcome =) Nov 07 22:16:35 w0bni: I think you have to look into onSaveInstanceState() and the Bundle that gets passed to onCreate(): http://developer.android.com/training/basics/activity-lifecycle/recreating.html Nov 07 22:21:47 ello Nov 07 22:50:11 hey does anyone mind helping me out with getting my app to launch with boot? i have the boot receiver and manifest set up but it's not booting with android. Nov 07 22:50:11 http://pastebin.com/UubRcAsh Nov 07 22:59:01 anyone awake? Nov 07 23:06:44 angrytortoise: Aye. Nov 07 23:06:49 Hey Nov 07 23:07:01 think I may have found my problem? Not using a fully qualified class name in the manifest Nov 07 23:07:01 How goes? Nov 07 23:07:20 Just playin with Java. Not much of a developer but doing a little project for a friend :) Nov 07 23:08:26 so for the bootreceiver specifications in the manifest, I had: android:name=".BootReceiver" Nov 07 23:08:48 should I be using: "android:name="com.example.siriu5.automata.BootReceiver"" Nov 07 23:08:56 instead? Nov 07 23:10:04 I'm usually the one that asks questions. Nov 07 23:10:17 But I'll have a look at your code. Nov 07 23:10:18 You need to put it in the application tag Nov 07 23:10:56 ah, I see Simon. So the receiver element needs to be under the app element? Nov 07 23:11:22 http://developer.android.com/guide/topics/manifest/receiver-element.html Nov 07 23:11:45 If you're ever in doubt, it's documented for all manifest tags Nov 07 23:12:07 thanks a bunch. Googling never quite beats man pages does it? xD Nov 07 23:12:20 Or SimonVT can look for me šŸ˜Š Nov 07 23:13:39 also, another problem - not coding related(well kinda). I have a fresh install of Win7 I'm working with, and android studio seems to keep freezing(i have the newest version) on gradle build Nov 07 23:13:44 it'll just sit there and spin its wheels Nov 07 23:13:57 anyone know whats up with that? it's really annoying and not like I have a large program I'm compiling Nov 07 23:14:27 E8400 @ 3.6ghz and 4gb ram so it's not resource related either. Nov 07 23:14:27 What version of Java do you have? Nov 07 23:14:55 JDK 7 update 79 Nov 07 23:15:15 And is it Oracle's build? Nov 07 23:15:29 yep Nov 07 23:15:32 3:05:17 PM Executing tasks: [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:compileDebugSources, :app:compileDebugAndroidTestSources] 3:05:20 PM Gradle build finished in 4s 82ms 3:09:31 PM Executing tasks: [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:compileDebugSources, :app:compileDebugAndroidTestSources] Nov 07 23:15:32 Or OpenJDK or something. Nov 07 23:15:34 just sits there Nov 07 23:16:09 it's been trying to cancel the task for around 10 minutes now -_- i end up having to manually end the tasks. thinking of just reinstalling on my ubuntu partition and going from there. Nov 07 23:16:31 That's what I did. Nov 07 23:16:45 And now I can sleep peacefully. Nov 07 23:16:52 lmao Nov 07 23:17:03 When I'm not on IRC, of course. Nov 07 23:17:37 *nix, the real it just werks Nov 07 23:30:25 http://stackoverflow.com/questions/33588986/androids-sound-card-randomly-turned-off-with-audiotrack Nov 07 23:30:29 Anyone? :) Nov 07 23:30:30 What could be causing this? Nov 07 23:30:55 im using images from drawable and using imageview to display them and getting OutOfMemoryError when I try with higher res images. Should I just use low res images or is there easy work around? Nov 07 23:37:51 hallo Nov 07 23:37:52 i have 2 fragments, once contains button and edittext, the other holds arraylist of strings. i am struggling with onSaveInstanceState , onRestoreInstanceState to rotate phone and get same content. Nov 07 23:37:59 how do we do get content of arraylist at onSaveInstanceState and restore ? Nov 07 23:40:30 dcz outState.putStringArrayList("savedList", list); Nov 07 23:41:05 or int or whatever Nov 07 23:41:12 i did that but it doesnt :( Nov 07 23:41:27 you are doing something else wrong then Nov 07 23:43:12 or nevermind I don't know if it's because of fragments, someone else can tell Nov 08 00:36:31 hey. so I have a program that launches at startup with android, and it crashes on start up. heres my code: http://pastebin.com/rcF5bRAz Nov 08 00:36:51 i've tried putting the app to sleep to see if that'd resolve it but it doesn't Nov 08 00:38:07 where is the stacktrace for the crash? Nov 08 00:38:43 how do i find that? I'm a total java and android dev novice Nov 08 00:38:50 logcat Nov 08 00:40:38 i ran adb logcat to a text file, I found "Automata", what should I be looking for as a error report? Nov 08 00:42:14 k I found this Nov 08 00:42:14 E/AndroidRuntime( 780): java.lang.RuntimeException: Unable to instantiate receiver com.example.siriu5.automata.BootReceiver: java.lang.ClassNotFoundException: com.example.siriu5.automata.BootReceiver Nov 08 00:44:01 package="com.example.automata" > Nov 08 00:44:14 then you have com.example.siriu5.automata Nov 08 00:44:41 the added ".siriu5." maybe the issue Nov 08 00:44:42 okay. I haven't played with OOP since 3 years ago in college(IT major, not comp sci/programming) Nov 08 00:45:09 should probably be com.example.automata.BootReceiver Nov 08 00:45:26 the basics behind it is that I am requesting the *package* which holds all the methods? how's this work? maybe theres a quick read I could use to familiarize myself with classes/objects/methods etc. Nov 08 00:45:42 because clearly I was requesting "automata"(my app) instead of the package itself. Nov 08 00:45:45 what's the difference there? Nov 08 00:45:46 just use the correct package name Nov 08 00:46:23 what's the difference between com.example.siriu5.automata and com.example.automata Nov 08 00:46:44 com.example.siriu5. doesn't exist? Nov 08 00:46:52 AH! hahaha dope Nov 08 00:46:54 unless you have a package for that Nov 08 00:46:59 one of my previous projects had siriu5 appended to it Nov 08 00:47:10 and i was CPing the code Nov 08 00:47:11 xD Nov 08 00:47:14 thanks amte Nov 08 00:47:16 mate* Nov 08 02:07:30 does anyone know how apps automatically create an icon on the launcher when their apps install? I find links like this (http://stackoverflow.com/questions/19240194/how-to-create-app-shortcut-on-home-screen-on-android-phones-on-installation) that describe how but it requires someone manually running the command Nov 08 02:11:09 huh "jack will probably be in beta for another year or two" ... i wonder if this guy is right, thats a long ass time Nov 08 02:25:52 comcast put a lock on our internet because someone downloaded too much or something. so now i literally cant google anything. But at least android-dev still works so i can ask every question here Nov 08 02:27:55 they only let you go to google, youtube, facebook, wiki. But not stackOverflow:( I guess i can use the google.dev site still! which is cool Nov 08 02:42:32 JimHawking without SO, you are SOL :) Nov 08 02:52:18 hey Nov 08 02:52:43 i have a onClick function that I want to close the application Nov 08 02:52:46 how does one do xD Nov 08 02:53:41 angrytortoise one does by reading docs Nov 08 02:53:59 yeah think I just found it Nov 08 02:54:04 laziness Nov 08 02:54:16 in other news my automation application is near completion :) Nov 08 02:54:36 my ethics have decreased exponentially but the money sure does look nice. Nov 08 02:58:51 ya know you coulda just said finish(0)/system.exit g00s xD Nov 08 02:59:03 and pointed me to a recommended beginner tutorial. Nov 08 02:59:39 he was waiting to make sure the check you wrote cleared first Nov 08 02:59:50 learned quite a bit about good 'ol java and android development in the past 24 hours browsing tutorials Nov 08 02:59:52 LOL Nov 08 02:59:57 angrytortoise no, because you are both lazy and (i guess unethical) **** ENDING LOGGING AT Sun Nov 08 02:59:58 2015