**** BEGIN LOGGING AT Fri Apr 04 02:59:59 2014 Apr 04 03:00:20 hmm Apr 04 03:01:46 and follow the newest pages closely Apr 04 03:02:57 slani: so the error you cmplained about was one you were explicitly generating. sigh. Apr 04 03:05:42 dragorn: yes. but will iI later need onFragmentInteraction?? and how can I do that my activty will show first fragment when I start my app. Should I add it or can navigation drawer automaticaly celect position 0 when I start my app?? Apr 04 03:12:59 Every time I wipe my phone and install certain apps, they still has my gmail on it - I took out the sim card, went to storage > erase SD, & factory reset under backup & reset, factory reset in CWM, wiped delvik cache... It is a Samsung Galaxy S2x - How can an App do this? The gmail is not on the device, yet it shows up in the app... Apr 04 03:25:56 aretecode: wrong channel Apr 04 03:30:46 dragorn: now every think works fine. Thanks for you time. I really appreciate this. Apr 04 03:44:31 OK, so I just found that a method I've been using was only introduced in api 18, so it won't support older devices, how could I use this method with newer devices, but include compatibility for older ones? String dateFormat = DateFormat.getBestDateTimePattern... Apr 04 04:04:30 hello Apr 04 04:04:42 Hello. Does anyone know what the average / a decent salary for an android developer (i am definatly not a junior developer, closer to mid-way to middle developer) in the bay area is? I was completing my degree when I was offered the job, so I have no degree (yet) but I did demonstrate my ability as a coder over a period of 6 months of working 12 hour days everyday. Apr 04 04:05:04 im trying to change all my code to be compatible with api 9 and im getting this Cannot make a static reference to the non-static method getSupportFragmentManager() from the type FragmentActivity any idea on how to solve it? Apr 04 04:06:58 did you try to run 'FragmentActivity.getSupportFragmentManager()' ? Apr 04 04:09:50 you will probably need to pass in an instance of the fragmentactivity Apr 04 04:26:48 lasserix, tried glassdoor? Apr 04 04:34:54 lasserix, http://careers.stackoverflow.com/jobs?searchTerm=android Apr 04 04:37:00 lasserix, never used this before but a quick query on Google gave me http://www.indeed.com/salary/q-Middle-Android-Developer-l-United-States.html & http://www.swexperts.com/it-salaries-2013-ukraine-versus-uk-usa-germany-2/ Apr 04 04:53:55 lasserix coding for 6 mos? ha ! Apr 04 04:54:01 lets talk in 10 years :D Apr 04 04:54:34 http://norvig.com/21-days.html Apr 04 04:55:52 my friend is at MS Build, he says he still doesn't believe he's at a MS event. i guess they are opening a lot of stuff up Apr 04 04:55:53 how would i get context from a custom class that extends phoneListener? Apr 04 04:56:03 sorry extends "PhoneStateListener" Apr 04 04:56:35 large chunks .net going Apache2 Apr 04 04:56:44 open source c# compiler Apr 04 05:11:09 bankai_au around ? Apr 04 05:15:16 aretecode, not the right place, but you probably logged in to your google account... Apr 04 05:15:28 so of course it will have your Gmail Apr 04 05:17:22 pfn, I discussed it with the #cyanogenmod-dev team & it turns out it has to do with WIFI + BT MAC addresses. Apr 04 05:19:55 pfn, but if you signed in on your Google account, but then factory reset (including Google accounts removed), delvik cache wiped, and SD card formatted, no sim card, why would it be of course that it would have your Gmail? Apr 04 05:20:27 because you signed in after you turned your phone on... Apr 04 05:21:06 I used a new Google account after I turned it on. Apr 04 05:21:53 I don't believe it, but ok, still not the right place Apr 04 05:22:24 Regardless of whether or not you believe it or not, it is how it happened. Where is the right place? Apr 04 05:26:27 keep finding these teeny tiny flash beacons on github; like 5x5 pixels Apr 04 05:26:53 or whatever the hell they are; just assuming because of their size Apr 04 05:55:12 g00s, screenie them! Apr 04 05:57:01 can anyone help me with phoneStateListner, I'm not too familiar with android. and I have code to show Apr 04 05:57:41 any suggesion how to configure Android Studio to work with dagger? It cannot resolve some dagger classes Apr 04 05:57:43 im looking to get a context inside my class Apr 04 05:58:26 jareddlc, besides the Context passed in to the onCreate() method, there is also getApplication() or getApplicationContext() Apr 04 05:58:27 jareddlc you are asking questions, that have been on android's FAQ for half a decade Apr 04 05:58:48 in case you wonder, why answers don't come quickly here ;) Apr 04 05:59:09 http://developer.android.com/reference/android/content/Context.html Apr 04 05:59:15 kamol: compile 'com.squareup.dagger:dagger:1.2.1', provided 'com.squareup.dagger:dagger-compiler:1.2.1' Apr 04 06:00:22 * Zharf presses TheBigRedButton Apr 04 06:00:30 :) Apr 04 06:00:43 :JakeWharton in build.gradle ? I have it there Apr 04 06:00:54 then that's all you need Apr 04 06:01:02 maybe resync gradle files Apr 04 06:01:13 aretecode: is there a way to get onCreate() method to autofill in eclipse? Apr 04 06:02:16 :g00s I did many times Apr 04 06:02:40 kamol maybe you also need to press TheBigRedButton Apr 04 06:03:36 :D Apr 04 06:04:01 jareddlc, http://developer.android.com/reference/android/app/Activity.html http://developer.android.com/guide/components/activities.html Apr 04 06:05:18 thx aretecode i'll give these a read, i forgot to mention the phonelistener is in it own class file Apr 04 06:05:26 brb reading Apr 04 06:07:28 jareddlc, http://stackoverflow.com/questions/13395633/add-phonestatelistener http://www.compiletimeerror.com/2013/08/android-call-state-listener-example.html#.Uz5MFvldV8E Apr 04 06:08:27 aretecode: the link #2 assumes its running in activity Apr 04 06:08:45 g00s: I will try to rebuild the project. Thank :JakeWharton Apr 04 06:08:59 kamol yeah, try from command line Apr 04 06:09:10 put it as a static class in your activity or use a fragment manager. Apr 04 06:09:21 err running nested class Apr 04 06:10:00 so to be honest im not sure what im looking for Apr 04 06:10:06 i know that i want to avoid keeping context Apr 04 06:10:11 to avoid mem leaks Apr 04 06:10:45 Then make a property in the other class and assign it to reference the Context from the main activity. Apr 04 06:11:38 extend a method in my service and have my phonelistener access the context that way? Apr 04 06:12:29 YourClass { private Context c; public void setContext(Context newContext) { this.c = newContext } } Apr 04 06:12:42 :g00s what do you mean? `android create project…` Apr 04 06:13:19 aretecode: isnt that bad? Apr 04 06:13:28 Define bad. Apr 04 06:13:31 that makes context long living inside YourClass Apr 04 06:13:37 i got chewed out by g00s Apr 04 06:13:48 that i should not saved contexts Apr 04 06:13:59 long lived context, can cause mem leaks Apr 04 06:14:03 kamol oh i thought you were using AS, and so gradle Apr 04 06:14:16 Assign it to null once you use it. Apr 04 06:14:34 You didn't want to use a nested static class or a fragment so. Apr 04 06:14:40 :g00s I am using AS and gradle Apr 04 06:14:45 but its a listener, so it constaly needs it Apr 04 06:15:04 How about you make a service then, jareddlc? Apr 04 06:15:10 extending a method in service getContext() {return context} Apr 04 06:15:21 would that work? Apr 04 06:15:34 Why don't you test it out? Apr 04 06:15:41 extending a method? Apr 04 06:15:54 ;) Apr 04 06:15:56 canvs2321: sorry, create a method Apr 04 06:16:08 i just want to make sure Apr 04 06:16:11 :g00s how do you usually create project? Apr 04 06:16:25 Don't be sure, test. Apr 04 06:16:33 im doing things "good" avoid bad practices Apr 04 06:16:37 kamol i create the gradle files by hand and then import into AS Apr 04 06:16:44 I hope someone might know what's going on here. I have a series of fragments in an activity. I've set the activity so it has to be used in portrait mode. On one of the fragments the user can take a photo. If they take the photo in landscape mode, and return the device to portrait orientation before they click the Tick in the camera app... there's no problems Apr 04 06:16:50 so if creating a getter for context is bad Apr 04 06:16:59 if they leave it in landscape mode before they click the Tick, then it crashes Apr 04 06:17:00 someone here would hopefully chime in and explain Apr 04 06:17:16 :g00s why? can you show me the link please? Apr 04 06:17:19 jareddlc, what are you using phonelistener for? That could be bad :P Apr 04 06:17:32 Is the activity containing the fragments potentially being finished and re-started? Apr 04 06:17:52 ir7466, what does it say in the Log Cat when it crashes? Apr 04 06:18:29 aretecode: sure, I have a service, that will listen for phone calls. And i want to catch all incoming phone calls, so i can do something once that phone calls comes in. When i recieved a call i want to broadcast using localbroadcastmaneger, but that requires a context to broadcast, which i dont have inside phonestatelistern class Apr 04 06:18:35 aretecode, I've traced it down to a null pointer exception on the Uri object i'm using to keep track of where the image saves Apr 04 06:18:59 But I've got a breakpoint on the setter for that field, it only gets hit once and it's with a proper Uri - not a null value Apr 04 06:19:02 jareddlc, tracking people Apr 04 06:19:07 people's phone calls... sounds bad :P Apr 04 06:19:13 aretecode: no, not tracking Apr 04 06:19:19 The default value for the field is null though, which is why i'm wondering if the activity is being re-created or something. and the state is not being saved Apr 04 06:19:22 im not intercepting phone calls, Apr 04 06:19:30 just getting notified when it rings, Apr 04 06:19:48 Why? Taking up battery life for that. Apr 04 06:20:05 i dont want to explain in detail, but im using bluetooth as well Apr 04 06:20:27 The Bluetooth Mac address by any chance >.> Apr 04 06:20:40 aretecode: ? Apr 04 06:20:59 my bt code is working for most part Apr 04 06:21:07 im already catching SMS Apr 04 06:21:11 i just need to catch phone calls Apr 04 06:21:41 ir7466, what if you listen to what orientation they have onResume() ? Apr 04 06:22:06 aretecode: and forcibly override it back to landscape? Apr 04 06:22:19 ir7466, try it anyway Apr 04 06:22:51 ir7466, or toast them saying "turn your phone facing up!" hahaha! Apr 04 06:23:56 okay, I'm trying it no aretecode Apr 04 06:23:58 now Apr 04 06:24:27 jareddlc, I am not a fan of anything catching my SMS. Apr 04 06:25:19 aretecode: would it make u feel better if this app is just for myself? Apr 04 06:25:49 &also your unsuspecting spouse Apr 04 06:26:06 i just need to know when a msg comes in text, or call, so i can perform an action. i dont plan on doing anything with the text or call Apr 04 06:26:09 canvs2321, hahah! Apr 04 06:26:19 sigh, Apr 04 06:26:35 I told you 3 ways. Apr 04 06:26:59 aretecode: yep thx! Apr 04 06:27:10 i was trying to justify my ap Apr 04 06:27:11 :D Apr 04 06:27:23 if u interested Apr 04 06:27:28 once im done with my device Apr 04 06:27:33 i can share you the link Apr 04 06:27:42 so u can see what im doing isnt creepy :D Apr 04 06:28:00 any other ideas aretecode? Apr 04 06:28:06 but i dont want to explain exactly, what im doing due to the nature that if someone else likes it, can probably make it faster than i can Apr 04 06:29:20 jareddlc, I have so many ideas I don't need anyone elses :P Feel free to send it to me though I will give you tips Apr 04 06:29:49 alright! Apr 04 06:30:01 ir7466, http://stackoverflow.com/questions/21776802/taking-picture-with-camera-intent-rotate-picture-in-portrait-mode-android Apr 04 06:30:07 i hope to have a working proto in a few days, (as soon as i can solve this phone stuff) Apr 04 06:32:46 that's not the issue I'm having Apr 04 06:32:53 I don't mind if the photo is in portrait or landscape Apr 04 06:33:01 it's just the activity has to be portrait Apr 04 06:33:42 I'll keep looking :) Apr 04 06:34:17 ir7466, does this help http://stackoverflow.com/questions/9143519/coming-back-from-camera-intent-crashes-activity ? Apr 04 06:34:19 as long as I correct the device to portrait before I click the tick in the camera app (ie. activity portrait, go to camera, tilt to landscape, take photo, tilt back to portrait, click tick) Apr 04 06:34:22 it's ok Apr 04 06:34:31 let me have a look :) Apr 04 06:35:01 yes Apr 04 06:35:04 that sounds right Apr 04 06:35:11 what does the user responding mean in http://stackoverflow.com/a/9143593 though? Apr 04 06:36:14 what should I put in onSaveInstanceState ? Apr 04 06:37:59 http://developer.android.com/reference/android/app/Activity.html#onRestoreInstanceState(android.os.Bundle) http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle) Apr 04 06:38:36 thanks Apr 04 06:39:10 Did you try the quick & dirty? Apr 04 06:43:34 i'm still trying to figure out what exactly I need to add Apr 04 06:46:06 Thus I recommend trying the quick & dirty :P Apr 04 07:03:07 my god, Slack is so awesome! Apr 04 07:04:21 what's that ? Apr 04 07:08:32 is there a non-hacky way to overlap the actionbar with your own view? Apr 04 07:09:29 Sicp slack ? Apr 04 07:09:56 rhcake i though the ab could be translucent, not sure Apr 04 07:10:01 is it possible to get the soft keyboard to overlap a linear layout I have at the bottom of the screen without pushing it up ? Apr 04 07:10:38 yea, slack.com Apr 04 07:10:47 awesome for team communication, like IRC x1000 Apr 04 07:10:52 Sicp: Have you tried HipChat? Apr 04 07:11:01 well i still want it to be there and just draw one view on top of it at one point Apr 04 07:11:20 that was the second suggestion I read Jeff Attwood making in his latest article Apr 04 07:11:23 didn't get to that yet Apr 04 07:12:17 this guy can be integrated to Bitbucket, and posts in the channel when a user pushes code Apr 04 07:12:21 just saw that now Apr 04 07:12:28 I'm using HipChat at work, it's just nice. Group chat, and all the commits to GitHub can be redirected to rooms. Apr 04 07:12:35 yea same Apr 04 07:12:36 Yeah, HipChat, too. Apr 04 07:12:53 It also integrates to BugSnag, Travis. Apr 04 07:14:38 I tried android:windowSoftInputMode="stateUnchanged" on the layout but that didn't make a difference Apr 04 07:15:33 shmooz: Tried "adjustNothing"? Apr 04 07:15:53 sensen: no, I'll try it now Apr 04 07:16:50 Anyway, I think you should set it on the Activity, not layout. Apr 04 07:17:08 I see Apr 04 07:17:15 yeah it made no difference on the layout Apr 04 07:17:20 I'll try it on activity Apr 04 07:17:34 do I do that in my manifest.xml ? Apr 04 07:18:16 the thing is I need only that layout to be overlapped when it is showing Apr 04 07:18:38 there are other layouts on top of that which I do want the keyboard to push up Apr 04 07:18:58 shmooz: You can set it in Java code. Apr 04 07:19:42 sensen: ok thanks I'll look into it Apr 04 07:50:45 Hi all, I add a Fragment to my FragmentActivity. When I go t a newIntent (onNewIntent), I look for the Fragment (findFragmentByTag), But it returns null, what is the problem for this? Apr 04 07:54:39 I can't get my (really simple application) to register scroll and fling gestures, can someone take a look? http://pastebin.com/ikN6yzbn Apr 04 07:54:42 When I scroll or fling nothing happens, where it should log something. Apr 04 08:06:52 What is a strong binder ? Some sort of memory reference towards a created object which is passed in IPC, afterwards retrieved, resulting in the same object ? Apr 04 08:09:19 could someone kindly explain me with this question? http://stackoverflow.com/questions/22857059/how-mediacodec-finds-the-codec-inside-the-framework-in-android Apr 04 08:12:10 If you add a Fragment to a FragmentActivity, the FragmentActivity gots recreated, is the fragment gone? can't find it anymore with supportedFragmentManager Apr 04 08:19:05 any alternative to gcm for push notifications ? Apr 04 08:32:39 what about Pickers, man? Apr 04 08:32:53 been researching and there doesn't seem to be anything about custom ones Apr 04 08:33:35 use UrbanAirship, tagrudev Apr 04 08:33:53 abstracts everything away Apr 04 08:33:54 urbanairshit Apr 04 08:34:03 it's awesome Apr 04 08:34:21 urbanairchique Apr 04 08:34:23 i dunno, i probably have biased opinion due to the badly coded implementation of it in this app that i had to pick p for work Apr 04 08:34:39 up, I implemented correctly for work and was happy with it Apr 04 08:34:42 it's a clusterfuck Apr 04 08:34:45 but I was implementing in cross-platform Apr 04 08:34:50 not native Apr 04 08:34:59 so you might know more Apr 04 08:40:34 what the difference between `public @interface ForActivity {}` and `public interface ForActivity {}` ? Apr 04 08:48:19 an @interface defines an annotation Apr 04 08:51:32 Is it possible to allow access to a paid app with a coupon code or something like that? Apr 04 08:52:07 I want all my beta testers to have access to the paid version... is it possible? Apr 04 08:53:39 I need to create a pendingIntent which goes to an existing activity and without recreate the activity, what do I need (flags)? Apr 04 08:53:56 aviran i dont think so Apr 04 08:55:00 g00s, is there a way to send an app as a gift? I dont mind paying for the app, I just need someone else to recieve it Apr 04 08:55:14 aviran you can email them the apk ;) Apr 04 08:55:26 they just won't get updates from Play Apr 04 08:55:26 aviran, have a look at deploygate ;) Apr 04 08:57:20 hmmf Apr 04 08:57:50 Play updates are pretty important.. Apr 04 09:01:39 aviran devs have been asking for this … for years Apr 04 09:02:37 g00s, I guess Google wants us to buy redeem coupons instead Apr 04 09:26:45 anyone worked with MuPDF? Apr 04 09:26:53 Nope Apr 04 09:34:24 is there any alternative to IntentCompat.makeRestartActivityTask() that works down to api level 7? Apr 04 09:34:46 makeRestartActivityTask does not seem to empty the backstack. Apr 04 09:44:11 :alex_PP tq! :) read it now Apr 04 09:44:20 thank you for pointing Apr 04 09:46:41 Hi all, is it possilbe to detect in onresume if the app comes from the background? Apr 04 09:48:39 FrancescoV i don't think so Apr 04 09:48:53 (should it matter?) Apr 04 09:50:30 g00s: I need to know it, get a pending intent and only need to handle it if app comes from background or one fragment is present Apr 04 10:03:56 I have Activity1, opens Activity2 (which launchmode = singleInstance), if i close the app, try to open the app from launcher icon, Activity2 is not visible, how come? Apr 04 10:07:37 Hi. For an android application, I need to update some persistent information (stored in an sql table on the devices) from time to time. Apr 04 10:08:19 therefore, i want to create a backend that notifies the app about changes to a database stored on the backend Apr 04 10:08:28 is GCM a good way for doing this? Apr 04 10:08:56 like sending a message to all devices ("time to get updates!") and then let them connect to a backend restfull service or something like this Apr 04 10:10:26 potentially, if you don't mind the lock-in Apr 04 10:10:39 if your app is iOS or WP too, you'll have to think of something else Apr 04 10:10:51 no its android only. Apr 04 10:11:03 and its no critical data. Apr 04 10:11:20 danijoo, yes, GCM is the perfect way to do that Apr 04 10:11:33 danijoo, you can even send diff payload if it's small Apr 04 10:11:38 Problem is I read GCM does not allow broadcast to all devices, am i right? Apr 04 10:11:50 no, you'll have to manage them Apr 04 10:12:02 e.g. app will have to send you its ID to you on first startup Apr 04 10:12:20 registration_ids: For sending to 1 or more devices (up to 1000). When you send a message to multiple registration IDs, that is called a multicast message. Apr 04 10:12:59 so. if I have like 200k devices, i would have to track all registration ids in a database and split it into multiple messaegs to gcm, right? Apr 04 10:13:06 yep Apr 04 10:13:12 you'd do 200 calls to their REST Apr 04 10:13:34 ok thanks. just wanted to know if im on the right track :) Apr 04 10:13:51 usually the pattern is to send a "ping" with GCM that wakes up a service Apr 04 10:13:55 and then app retrieves data Apr 04 10:14:27 yeah I basically just want to send the app a notification that tells it that its time to update Apr 04 10:15:24 one more question: is this scaleable: I mean that may work for 200k devices (200 calls), but what happens if i have a million? Apr 04 10:15:43 then you have 1000 calls Apr 04 10:15:52 which in grand scheme of things isn't that much Apr 04 10:15:52 so there is no limit from googles site Apr 04 10:15:56 I'm pretty sure Google will scale as much as you need Apr 04 10:16:05 danijoo, remember, google uses that for gmail notifications ;) Apr 04 10:16:18 and you can pretty much space out calls as much as possible Apr 04 10:16:30 yeah. im just curious why they dont allow broadcoast notifications but this kind of "abuse" Apr 04 10:16:30 you just have to handle the case where google API talls you "busy, try in a minute@ Apr 04 10:17:08 good question Apr 04 10:18:02 anyway. thank you very much for that information. Apr 04 10:18:33 now I can drop that stupid idea to let the app check for updates every time it starts :p Apr 04 10:18:45 well, that's a good idea too ;) Apr 04 10:20:12 data might change once a month so gcm seems to be a more professional solution :) Apr 04 10:28:16 hey y`all. can someone explain me this intend Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED in simple words ? i`m not getting the doc`s explanation ;) Apr 04 11:00:54 I am rather new to Android and I had to ask, why would one run into a NullPointerException when attempting to open an activity from another? I have defined the new activity in the Manifest, layouts and everything seem to be in order.Seems to be related to ComponentInfo. Apr 04 11:08:36 seems i found the problem on my own. Apr 04 11:08:37 :) Apr 04 11:20:14 The problem was caused probably by passing a value from one actvity to the othr Apr 04 11:20:17 other even. Apr 04 11:20:49 :JakeWharton I am having ClassCastExcetoin in this tile DemoApplication application = (DemoApplication) getApplication(); android.app.Application cannot be cast to DemoApplication Apr 04 11:21:24 Hi guys. I've an adapter which defines a list view, and I would like to upgrade that adapter. For that, I update the list contained in my adapter then I call notifyDataSetChanged(); on my adapter to update its content. But my listview doesn't get updated. Any idea? Apr 04 11:21:51 for lerning purpose, I am trying to copy line by line, maybe I missed something… but cannot find anyting different Apr 04 11:34:19 :JakeWharton I got it, just need to name my application in AndroidManifest file :) Apr 04 11:46:40 Hi all, I found that the timepicker in kitkat has a different design: http://cdn.arstechnica.net/wp-content/uploads/2013/11/timepicker.jpg I gues it's not possible to use this in api vesions < kitkat, right? Apr 04 11:47:14 stupid question but cant find it searching google as a distict definition, what actually is an instance?? Apr 04 11:54:37 amazwon: a concrete representation of an abstract entity. e.g. an object is an instance of a class Apr 04 11:58:31 thanks, thilden are you an actual android developer? Apr 04 12:11:30 g00s: you pinged? Apr 04 12:16:51 bankai_au hm i did. so i was thinking of taking this blob and turning it into an observable. thing is, on a thread it blocks with a bluetooth call. when i unsubscribe, i need to make sure the call unblocks by interrupting the thread. so the unsubscribe has to interrupt the thread. any ideas? Apr 04 12:20:25 i think you know a lot more about this than i do Apr 04 12:20:42 i guess i would have to write a custom subscriber Apr 04 12:21:01 its like peeling an onion, lots of decorators Apr 04 12:21:10 you can do actions on unsubscribe,if that helps Apr 04 12:21:16 lol yeah Apr 04 12:31:39 I have been trying all this time to pass values between two activities. this happens when someone selects a value from a list view. what I am trying to pass is the text of the current selected item however I get a ComponentInfo related NPE. Apr 04 12:33:54 List View listener is here: http://pastebin.com/DRHaJdAU Apr 04 12:35:32 onCreate from second activity is here: http://pastebin.com/2MBQJ9nD Apr 04 12:35:51 I would love any advice you may have. Both activities are declared in the manifest Apr 04 12:41:09 hm, i wonder if this crouton library is worth it Apr 04 12:43:34 g00s, the chromeos lib? Apr 04 12:43:54 Mavrik this thing https://github.com/keyboardsurfer/Crouton Apr 04 12:44:07 i guess based on cyril mottier blog Apr 04 12:45:56 the demo looks kinda buggy Apr 04 12:46:02 visuals are nice tho Apr 04 12:46:22 hm Apr 04 12:47:43 g00s, I am using it it's pretty awesome Apr 04 12:47:49 already in production Apr 04 12:48:23 hm Apr 04 12:48:45 do you need to use somethng crazy like CroutonActivity ? Apr 04 12:49:10 i think Cyril's original idea had that , to make sure the view hierarchy was a certain way Apr 04 12:50:49 g00s, https://gist.github.com/tagrudev/9974068 Apr 04 12:51:06 :) Apr 04 12:55:01 cool, thanks tagrudev :) Apr 04 12:57:28 tagrudev library feel high quality, well maintained & stable then ? Apr 04 12:58:50 g00s, I haven't had any problem with it so far, and I like that the croutons can be easily styled - saved me a lot of time managing error textviews Apr 04 12:59:15 that's what I am mainly using it for Apr 04 13:14:56 If I do a System.exit(0) will that terminate any running IntentService as well? Apr 04 13:16:08 mihalybak, don't use that Apr 04 13:16:14 Morning Apr 04 13:16:55 tagrudev: Why not? These is for exiting the application AND cleaning all data Apr 04 13:16:55 yeah tht's a pretty violent way to stop an android app from running and will probably throw errors at the user. use finish() in your activity Apr 04 13:17:24 mihalybak, just .finish() the activity Apr 04 13:17:39 So it is not the "main" everyday exit feature Apr 04 13:17:59 use finish() and let android clean you up. It's the difference between doing a clean shutdown of a system and hitting the power switch. They both get the job done but there's a right way to do it in the framework. Apr 04 13:18:11 ^ Apr 04 13:18:13 tagrudev: .finish is not sufficent. most times it does not close down the application Apr 04 13:18:55 or, you know, the alternative. Ask a question and then ignore all the advice. Have fun with that. Apr 04 13:19:49 dragorn: I am trying to discuss something, is that not allowed here? :( Apr 04 13:20:26 it is but discussion is open when there is some base ground Apr 04 13:20:30 Why is scrolling a listview smooth if i use a holder/tag and why is it lagging if i dont use a holder/tag? Apr 04 13:20:38 and in this case there isn't Apr 04 13:20:51 I have Activity.finish() and System.runFinalization(), but the application does not shut down when calling those Apr 04 13:20:56 Sure, you didn't seem to be discussing though, just arguing that you didn't want to do it the recommended way in the platform Apr 04 13:21:06 adkins, because findViewById isn't a fast operation Apr 04 13:21:21 I am doing that way, but it does not shut down the application Apr 04 13:21:28 adkins, view holder does that call only once for each recycled view not every time the content updates Apr 04 13:21:35 that's the point where we need some code Apr 04 13:21:37 :) Apr 04 13:22:02 Mavrik: alright, thx a lot! Apr 04 13:22:03 ;) Apr 04 13:22:05 the finish method will end the current activity but you may have more in the stack Apr 04 13:22:21 mihalybak: android attempts, among other things, to keep as much in ram at all times as possible. It's faster to fire a new activity than to spin up a whole new instance of the app. You shouldn't be trying to manage androids app lifecycle out from under it; when you finish your activity make sure you've shutdown everything you nee dto shut down, and let android worry about the rest Apr 04 13:22:26 tagrudev: how do I find out which they are and close them? Apr 04 13:23:21 mihalybak, I think that's pretty easy to find in stackoverflow or just a google search Apr 04 13:24:56 Okey, I feel that we got a bit offtopic :) I will rephrase my question: how can I make sure my IntentService is not doing any work? On stackoverflow I found solutions that all said to download and override the IntentService with different "hacks" Apr 04 13:26:29 the intent service ends usually when it's done with the work you've sent to it Apr 04 13:26:36 dragorn: that is all good for a music player or something else nice, but I am working with an application that handels secure information. When you request it cleaned this way, you want it done NOW and not when Android feels like it Apr 04 13:26:51 tagrudev: so there is no way to cancel it all? Apr 04 13:27:06 you shouldn't be storing anything in ram that you don't explicitly overwrite before finishing yourself Apr 04 13:27:28 so clobber any passwords in ram and finish the activity and you're done Apr 04 13:28:05 hi all Apr 04 13:28:41 i have a question each time i use ImageView.setRotation, the image inside it becomes jagged. Any idea how to resolve it? Apr 04 13:29:30 oh man, this is too funny. i was tearing my hear out because the 'request enable bluetooth' dialog was malformed in my app. the title was behind the dialog (WTF!?!?) Apr 04 13:29:46 lo and behold, from 2012 https://code.google.com/p/android/issues/detail?id=60002 Apr 04 13:29:53 * g00s not sure, laugh or cry Apr 04 13:30:27 g00s: oh that sucks Apr 04 13:31:07 dragorn crazy this kind of thing exists Apr 04 13:31:08 lol Apr 04 13:31:15 luckily, i can just make my own Apr 04 13:31:16 g00s: also goes to show what parts of the API are commonly used Apr 04 13:31:23 g00s: which is a little sad Apr 04 13:31:51 g00s, mm-qcamera-daemon bug beats it all Apr 04 13:32:30 dragorn also, there is another bug with that … each time you rotate the screen, another dialog pops up Apr 04 13:32:44 so if you rotate 4 times, you will have to dismiss 4 of those Apr 04 13:33:06 see … even google can't write software that runs right on android Apr 04 13:33:08 g00s: so that's a fun lifecycle bug i guess there Apr 04 13:33:52 dragorn i think i found out what my older problem was with SDP failure / multiple connect tries. it would be stupid on my part ... Apr 04 13:34:08 turns out, that createRfcommSocket was broken before 2.3 Apr 04 13:34:24 Hello, I'm new to the Android development. I am trying to make an application that draws 4 tabs at the top of the screen and on each tab there is to be an 8x8 grid. Where should I start for designing this? Apr 04 13:34:29 g00s: can you put the connect req into a service instead of your activity? Apr 04 13:34:33 so they fixed it, and created one called createInsecureRfcommSocket Apr 04 13:34:49 dragorn oh, BT stuff is in service Apr 04 13:35:26 g00s: i mean, the req to initiate asking the user to connect, so that screen rotation doesn't come into play there - or does it happen regardless, 'cause, google Apr 04 13:35:26 Technicus, -> http://developer.android.com/training/implementing-navigation/lateral.html Apr 04 13:35:39 Technicus, http://www.androidhive.info/2013/10/android-tab-layout-with-swipeable-views-1/ Apr 04 13:35:40 romain guy is not here anymore Apr 04 13:35:40 ? Apr 04 13:35:47 a ViewPager will do it Apr 04 13:36:24 dragorn interesting, i'll have to see. maybe i can do startActivityForResult() from service, but not catch the result and subscribe the BT adapter state change instead Apr 04 13:36:40 well, not forResult, but startActivity ;) Apr 04 13:36:58 g00s: might not work at all, but Apr 04 13:37:02 Maziz not for a long time Apr 04 13:37:14 i see Apr 04 13:37:26 g00s: re: < 2.3, ah. I don't think I wrote BT stuff for 2.2 thankfully :) Apr 04 13:37:58 dragorn luckily i found this https://code.google.com/p/android/issues/detail?id=15919 Apr 04 13:38:49 so i have to switch to createInsecure to get the old behavior Apr 04 13:39:18 (weird thing was, both work, but the secure version just took many retries, uh weird) Apr 04 13:39:32 g00s: I just use createRfCommSocketToService and it never blew up enough to cause me trouble Apr 04 13:39:48 g00s: but maybe it was my hw, too Apr 04 13:39:56 dragorn ah Apr 04 13:39:57 g00s: and it always had a pin - a shitty pin, but, a pin - on it Apr 04 13:40:13 because it was easier to let the hc05 clone keep a pin than to mess with it Apr 04 13:44:08 dragorn this device does have a pin. using the insecure variant to connect to an unpaired device still shows the 'enter pin' dialog Apr 04 13:44:26 using the wrong pin denies connection Apr 04 13:44:40 i have to read up on that part of the spec again, forgot how this worked Apr 04 13:45:04 Whats usually the smallest portrait aspect ratio we have to take into account? 3:4? Apr 04 13:46:59 is "jagged" the right word to use to describe when a drawing line is not smooth because there's no anti-alias Apr 04 13:47:00 ? Apr 04 13:47:47 aliased? Apr 04 13:47:54 but jagged works also Apr 04 13:48:06 im trying to refine my search Apr 04 13:48:12 seems unable to find any answer.. Apr 04 13:57:12 if i have a plain java 8 jar, will dalvik/art consume it? Apr 04 13:57:22 no? Apr 04 13:57:40 that makes sense Apr 04 13:57:42 carry on then Apr 04 13:57:56 maybe if you tell javac v8 to use java 7 compatability Apr 04 13:58:18 dalvik is java6 Apr 04 13:59:12 so a v8 javac -target 7 may work Apr 04 13:59:49 it works and api 19 supports iava7 Apr 04 14:02:22 Still no one for my question asked a few hours ago? "Hi guys. I've an adapter which is applied on a listview, and I would like to update that adapter. For that, I update the list contained in my adapter then I call notifyDataSetChanged(); on my adapter to update its content. But my listview doesn't get updated. Any idea?" Apr 04 14:04:06 wget, are you updating the list or creating a new list? Apr 04 14:05:07 jonc-1: Updating the list Apr 04 14:05:07 mUserList = DroidContact.getInstance().getApplicationUserDAO().getAllUsers(); // getting updated Apr 04 14:05:07 mUserListAdapter.notifyDataSetChanged(); // should work but doesn't Apr 04 14:05:39 I would imagine mUserList = DroidContact.getInstance()... returns a reference to a new list Apr 04 14:05:52 which is not the same reference that is contained within the adapter Apr 04 14:06:58 jonc-1: nope, the reference seems correct, as I have the following code for the definition (which is working) --> http://pastebin.com/NHk5aSVY Apr 04 14:07:10 pfn: so we have a gradle project with a java lib and the app. idea is to enable java 8 in the lib project. that should work, right ? Apr 04 14:07:26 wget, yes that will work the first time Apr 04 14:07:50 but when you do it the second time to update it, mUserList no longer references the original list passed into mUserListAdapter Apr 04 14:08:01 just because it has the same name does not mean it is the same reference Apr 04 14:08:31 DroidContact.getInstance().getApplicationUserDAO().getAllUsers(); returns a new reference Apr 04 14:08:53 so when you call it again, you change the reference that mUserList is pointing to, but inside the ListAdapter it still has the old reference Apr 04 14:09:38 mUserListAdapter has the reference that mUserList HAD when you first created mUserListAdapter Apr 04 14:10:42 if mUserList is changed to a new reference, mUserListAdapter's reference is still unchanged Apr 04 14:10:46 funkbox, absolutely not Apr 04 14:10:53 jonc-1: mhhh ok thus, I have to use the same reference, by using the same list and calling add() or remove() methods on that list in order for my adapter to be notified, right? Apr 04 14:11:08 wget, yup Apr 04 14:11:20 pfn: that's rough Apr 04 14:11:43 why rough, the bytecode doesn't work Apr 04 14:11:53 wget, or you could update the reference for your listadapter, up to you really Apr 04 14:11:54 use retrolamda Apr 04 14:12:01 that's what i entirely suspected, but i thought there was some magic Apr 04 14:13:38 jonc-1: How can I update it? Apr 04 14:13:50 seems a trivial question... Apr 04 14:15:53 jonc-1: The problem is that the new user is inserted from a dialog fragment calling my DAO. I've no access to the newly inserted user from outside the fragment dialog. Apr 04 14:16:03 funkbox its only going to get rougher :) Apr 04 14:16:43 jonc-1: So I've difficulties to call the add() method to my list ;-) this is why I used DroidContact.getInstance().getApplicationUserDAO().getAllUsers(); which seems easier Apr 04 14:16:57 funkbox, retrolamda is that magic Apr 04 14:17:20 hm.. Apr 04 14:18:43 funkbox lets hope given google + jetbrains, something kotlin related will happen Apr 04 14:18:52 g00s: that is my dearest hope Apr 04 14:19:19 wget, are you using a custom adapter? Apr 04 14:19:33 jonc-1: nope just an array adapter Apr 04 14:19:55 jonc-1: the one we talked about Apr 04 14:19:58 yup Apr 04 14:20:17 jetbrains already made kotlin support for android... Apr 04 14:20:30 kotlin is too risky w/o official google endorsment Apr 04 14:22:08 wget, there doesn't seem to be a nice way to change the reference in an ArrayAdapter, so you may have to find the items added or removed from the new list and then make those changes to the old list Apr 04 14:23:26 jonc-1: Ok, and how can I recover these new items since they are inserted from my dialog fragment, and I haven't access to them? Apr 04 14:24:14 calling setArguments() like a Bundle (thus calling serialization, and parselable implicitelly ) seems a bit heavy for what I want to achieve Apr 04 14:25:04 this will be "slow" but it should be fast enough to never be an issue: mUserList.clear(); mUserList.addAll(DroidContact.getInstance().getApplicationUserDAO().getAllUsers()); Apr 04 14:25:25 unless you get a few hundred K contacts, you'll be fine doing it that way Apr 04 14:25:39 then call notifyDataSetChange Apr 04 14:27:12 "Google's Nest Stops Selling Smart Smoke Alarms Over Fire Safety Concerns" hehe Apr 04 14:27:21 lol Apr 04 14:27:29 as an android user, i'd never buy a smoke detector made by google hah ! Apr 04 14:27:38 all it has to do, is detect smoke Apr 04 14:27:55 to be fair, google didn't originally create android, and it has been getting better Apr 04 14:29:25 jonc-1: My listview doesn't get updated :-( Apr 04 14:29:45 with mUserList.clear(); mUserList.addAll(DroidContact.getInstance().getApplicationUserDAO().getAllUsers()); mUserListAdapter.notifyDataSetChanged(); Apr 04 14:29:52 still nothing... Apr 04 14:31:21 using arrayadapter is dumb Apr 04 14:32:29 toss a breakpoint in to make sure the list has the new data in it, if it doesn't then the database doesn't have it either Apr 04 14:39:20 jonc-1: I made a test with log.v http://pastebin.com/XjrKzDxk and it seems when I trigger my dialogfragment and I enter in case R.id.droidcontact_menu_add_user: Apr 04 14:39:20 the whole switch case is executed THEN the fragment is launched --> the reason why the listview doesn't change as the adapter doesn't change since the list is the same. Apr 04 14:39:24 An idea to fix that? Apr 04 14:40:03 jonc-1: The test at line 11 and 18 basically report the same result. If I reload the activity or check manually in the db the data are present Apr 04 14:40:23 looking at it now Apr 04 14:40:25 dragorn still there ? Apr 04 14:40:41 g00s: yeah Apr 04 14:44:15 wget, what does UserManagementNewUserDialog look like? Apr 04 14:45:06 jonc-1: It's a simple DialogFragment --> http://pastebin.com/NpTDhenC Apr 04 14:46:07 does addUser add to the same table as getAllUsers? Apr 04 14:46:15 yes Apr 04 14:46:22 it does Apr 04 14:47:15 lo Apr 04 14:47:22 i'm trying to setup the fb sdk and when i create a new project in eclipse i am getting "The import android.support.v7 cannot be resolved" Apr 04 14:47:43 erebel55 follow directions for using support library v7 Apr 04 14:47:50 (from the support library page) Apr 04 14:48:07 should eclipse take care of this when i create the project Apr 04 14:48:10 wget, what does DroidContact look like? Apr 04 14:48:19 *shouldn't Apr 04 14:49:15 nope, you have to add seperate libraries yourself, it's best for things not to be packaged with dependencies (especially things that are used quite frequently) otherwise you run into duplicate definition issues / version issues Apr 04 14:50:04 okay, so eclipse just creates a project with errors. lol don't really understand that Apr 04 14:50:10 i will try the directions you pointed out Apr 04 14:50:28 jonc-1: http://pastebin.com/B2ZemwBj an Application object to have my DAO in the whole app lifetime Apr 04 14:51:00 and ApplicationUserDAO ? Apr 04 14:51:26 that's where the actual DB access happens, so what does that look like? Apr 04 14:52:38 jonc-1: http://pastebin.com/Px4C7TNK Apr 04 14:57:22 Hi, I posted this : http://stackoverflow.com/questions/22866152/floor-issues-on-specific-devices if anybody has informations :) Apr 04 14:59:28 looking at the documentation for insert, you can probably send null as the second parameter (line 52) and toss in a check + a log to see if the returned value from line 56 (it will be a long) is -1 Apr 04 14:59:33 if -1 it couldn't insert Apr 04 14:59:38 yeah, I have already done a right click on the project -> Android Tools -> Add Support Library Apr 04 14:59:59 but i'm still getting "The import android.support.v7 cannot be resolved" Apr 04 15:00:42 that's not a real package Apr 04 15:00:51 v7 is wrong Apr 04 15:01:32 well eclipse setup that import call when i created a new android project Apr 04 15:01:33 wtf Apr 04 15:01:49 i haven't touched a line of code yet.. Apr 04 15:04:37 jonc-1: The data are really well inserted, I've checked manually with sqlite3 on the .db file (since my phone is rooted) Apr 04 15:04:45 all i have done is create a new project, with a blank activity, and linked this to the facebook sdk project Apr 04 15:04:48 jonthe problem cannot come from that side then. Apr 04 15:04:52 jonc-1: ^ Apr 04 15:05:18 gotcha, but it seems as that even after insert, the get all users returns back without the new name? Apr 04 15:06:23 jonc-1: Actually, as I said, the http://pastebin.com/XjrKzDxk whole swicth case is executed BEFORE the dialog fragment get shown Apr 04 15:06:41 this explain why the log display the same content before and after Apr 04 15:06:54 wget, that's right, yeah, that will happen, showing a dialog fragment is not blocking Apr 04 15:07:52 jonc-1: then, how can I avoid that? since I need to modify my adapter after the dialog fragment has returned. Apr 04 15:08:01 look into onDismiss, you can add a listener Apr 04 15:08:09 http://developer.android.com/reference/android/app/DialogFragment.html#onDismiss(android.content.DialogInterface) Apr 04 15:08:14 http://developer.android.com/reference/android/content/DialogInterface.html Apr 04 15:09:55 um, does a Fragment need to be declared as a public class ? the docs say it needs a public empty constructor Apr 04 15:10:17 yes, if you plan on using the fragment manager Apr 04 15:10:33 aha, thanks jonc-1 Apr 04 15:10:48 i got Caused by: android.app.Fragment$InstantiationException: Unable to instantiate fragment com.xxx: make sure class name exists, is public, and has an empty constructor that is public Apr 04 15:10:58 so even when i detach the facebook sdk the errors are still there Apr 04 15:11:01 jonc-1: by triggering the onDismiss(), I'll still be in my dialog fragment :-( Apr 04 15:11:06 i had it package scope Apr 04 15:11:15 so all i have is a new android project with a blank activity Apr 04 15:11:25 onDismiss listener will be called after the fragment is dismissed Apr 04 15:11:46 you'll have to setup some form of listener to notify you when the dialogfragment is done and when to reload the list Apr 04 15:11:48 and i try right click -> android tools -> add support library. and then clean the project but this doesn't resolve the errors Apr 04 15:12:03 dialogFragment.show() is not a blocking call, code will continue to execute Apr 04 15:12:30 so you get to the point of updating your contatct list before someone even enters data into the dialogfragment Apr 04 15:12:40 erebel55, eclipse doesn't import android.support.v7 Apr 04 15:13:09 unless you added one of the -v7 libraries Apr 04 15:13:16 these are the import calls that were created when i made a new project Apr 04 15:13:17 import android.support.v7.app.ActionBarActivity; Apr 04 15:13:17 import android.support.v7.app.ActionBar; Apr 04 15:13:24 i will delete it and create a new one just to make sure Apr 04 15:14:27 jonc-1: yep that true I agree with your reflexion, I need to leave now (i'm an intern, and they are closing the company doors :-/). Apr 04 15:14:28 thanks a lot for your help. Apr 04 15:18:52 hm nevermind its all working now Apr 04 15:18:54 no idea why Apr 04 15:20:32 I'm trying work on a custom portrait layout in photoshop for a reference app. Problem is that I'm not sure what size to make the 'main content' area so that it will be visible on all screen sizes and how much of the image should be 'borders'? Apr 04 15:20:51 somebody experience with metaio SDK? Apr 04 15:28:25 apple741 just use a pencil, so much easier :) Apr 04 15:29:43 apple741, if you create it at "max size" for phones (right now 1080x1920 seems to be good), you can then just scale everything down by the approriate percentages and put them in the different dpi resource folders Apr 04 15:31:44 to go from xhdpi to mdpi you'd scale it to 50% Apr 04 15:32:06 xhdpi->hdpi = 75% Apr 04 15:32:21 hehe true although I'm actually used to PS now so its not so bad g00s Apr 04 15:32:43 jonc-1: hmm thats not a bad idea :) I was planning on using a single background image with 'excess' areas that would get cut off on smaller devices this would avoid scaling images up and down. Apr 04 15:32:47 https://github.com/pfn/android-sdk-plugin/issues/40 Apr 04 15:32:54 there is some good wireframing stuff out there, i can't afford it tho Apr 04 15:32:54 huh, views in xml don't need to point to public classes? Apr 04 15:32:58 what kind of fucked up crap is that Apr 04 15:37:41 man, if this next iphone has no bezel, everything else is instantly going to look like cheap crap Apr 04 15:38:05 that new htc m8 looked nice, until ugh that bezel Apr 04 15:39:46 new m8 is way too big Apr 04 15:41:59 new M8 might be slightly too big Apr 04 15:43:48 I'm thinking about getting the Galaxy MEGA Apr 04 15:46:27 these curved displays seems silly to me; i can see on a TV maybe, but the phone is too small. gimmick Apr 04 15:47:26 I can see it being useful on a watch that curves around your wrist Apr 04 15:47:35 yeah ... Apr 04 15:50:20 if anybody have an idea on this http://stackoverflow.com/questions/22866969/google-maps-reuse-marker-but-doesnt-say-it-clearly Apr 04 15:50:24 I don't see why for tvs Apr 04 15:50:30 but curved on phones may improve pocketability Apr 04 15:50:57 for really large tv's 70" and above it makes sense Apr 04 15:51:12 if you sit stupid close, like the front row of a movie theatre Apr 04 15:51:17 then yeah, the screen should be curved Apr 04 15:51:30 but if anything like a 30-40deg field of view, curved just really makes no sense Apr 04 15:51:38 someone was doing a tv that curves and goes back straight according to what user wants Apr 04 15:52:14 adjustable makes sense but will it be durable and quiet Apr 04 15:56:21 it was LG , http://technology.canoe.ca/News/2014/01/07/21380171-relaxnews.html Apr 04 15:57:01 anyone now any examples for creating a facebook like button in android using facebook sdk? Apr 04 15:57:57 it seems to be missing from all of their samples.. Apr 04 16:01:51 oh Samsung made one too Apr 04 16:01:52 whic http client should I use for android? Apr 04 16:02:01 I need to download a binary file Apr 04 16:02:34 DoYouKnow: HttpCient Apr 04 16:03:45 I want it to be asynchronous Apr 04 16:03:48 since it's a bigger download Apr 04 16:03:49 DoYouKnow: http://developer.android.com/reference/org/apache/http/client/HttpClient.html Apr 04 16:04:14 anybody around who is familiar with stagefright? or more generally, using MediaPlayer to play rtsp livestreams? Apr 04 16:05:44 s1gmab3ta: I did play rtsp from youtube with VideoView fine, but had a lot of problems with other places Apr 04 16:06:25 shmooz, yeah. i am trying to play a stream & it kills the media server before the stream starts Apr 04 16:07:19 shmooz, RTSP DESCRIBE message gets sent, and a reply is received from the streamer with a valid SDP, but then android's media server dies and the exchange doesn't continue. sound familliar? Apr 04 16:07:26 wow that could be an exploit Apr 04 16:07:41 * s1gmab3ta laughs dastardly Apr 04 16:07:53 but seriously though, i'd rather it worked than be an exploit Apr 04 16:10:29 I haven't done the serving side of it, only client Apr 04 16:10:58 and tried a bunch of rtsp streams I could find on google or wherever Apr 04 16:14:11 how can i add udf file supprt for android ?? there is no udf support in /proc/filesystem Apr 04 16:21:58 you don't Apr 04 16:22:07 build your own kernel for your own rom Apr 04 16:22:12 and that is out of scope for this channel Apr 04 16:26:29 shmooz: hmm... now I'm getting a stack dump "Unable to start activity", when I try to .connect Apr 04 16:29:08 URLConnection .connect, shmoo Apr 04 16:29:09 z Apr 04 16:37:28 Is there another way to implement on-screen keyboard support aside from using TextView.OnEditorActionListener()? Apr 04 16:40:34 anyone know the approximate extra battery drain if location services is on? (differes between device, but a rough estimate is fine) Apr 04 16:41:01 jonc-1: "some" Apr 04 16:41:09 haha, fair enough Apr 04 16:41:34 could I leave it on all day and still be fine? Apr 04 16:44:05 it seems Google Now by default tries to get your location Apr 04 16:48:58 anyone know if the facebook sdk for android has like functionality? Apr 04 16:52:52 pfn: there is no way for load udf module for android as loadable ko module?? it should compiled with that flag ?? Apr 04 17:00:16 no Apr 04 17:00:21 and not the right place to ask Apr 04 17:08:34 hey, Apr 04 17:09:14 the android docs regarding GCM says in case of an app version update, the app should request a new registration ID. Why is this the case? Apr 04 17:09:45 only for compatibility between backend and app or is there another reason? Apr 04 17:18:25 Hi ! ^^ Apr 04 17:19:48 Why is it so hard begining developing for android ?, I'm a newbie in development in php, making websites, but I don't get how to make simple things on Android Apr 04 17:20:19 And I don't find usefull tutorials on search engines Apr 04 17:21:10 Neither the google official training tutorials. They are not very clear Apr 04 17:21:26 do you know java? Apr 04 17:21:38 A little ^^ Apr 04 17:21:50 maybe thats our problem ;) Apr 04 17:21:55 :D Apr 04 17:22:24 its like wanting to code a fancy website in php without knowing html and css :> Apr 04 17:23:37 You then should start with learning the java first Apr 04 17:23:38 I just want to code properly a form with fragments shown by clicking on a navigation drawer, and put my values in a sqlite database Apr 04 17:24:49 But Java is so vast, what should be my first lessons, I tried 2 or 3 tutorials with JSF Apr 04 17:25:48 jsf = JavaServer Faces? Apr 04 17:25:52 yep Apr 04 17:26:12 don't go looking for "tutorials", don't look at JSF, find something that teaches basic java programming, then consider grabbing a book or slugging through d.android.com Apr 04 17:26:16 well you should start but just learning the basics of java. with no framwork of whatever on top of it Apr 04 17:26:45 also, a *very* important point - learn about asynchronous, concurrent component oriented programs Apr 04 17:26:45 when you go for "java tutorial", youll find something Apr 04 17:29:13 ok dudes ^^ thx for the advice :) Apr 04 17:36:44 hi all im in europ i updated to 0.5.4 android studio and now no google play servise map is runing Apr 04 17:37:04 'com.google.android.gms:play-services:4.1.32' is this still correct Apr 04 17:38:22 on androidstudio 0.4.2 everything has been great Apr 04 17:39:30 i also see the liniar layout vertical double in the design layout frame on xml Apr 04 17:50:42 does anyone have a webview example that does require a new activity? Apr 04 18:01:14 got a noob question for you .... how do I make a text view to also show me the text I initially set in the XML and also the value I make it set itself in the code? -.- Apr 04 18:02:28 like for example I want my textview to show: "Zebra: 100kg" where "zebra:" and "kg" are my text and 100 is a value I get from a database Apr 04 18:03:09 I seriously never stumbled upon this thing in android until now and I realised I don't know how to do that in android lol Apr 04 18:03:17 which is really basic in normal programming lol Apr 04 18:05:18 You'd use this https://developer.android.com/guide/topics/resources/string-resource.html#FormattingAndStyling Apr 04 18:05:21 Formatting strings Apr 04 18:05:51 Wait, what the hell kind of example is that Apr 04 18:06:25 Same definition of string resource, use https://developer.android.com/reference/android/content/res/Resources.html#getString(int,%20java.lang.Object...) instead of String.format Apr 04 18:09:37 Hello. I have 2 projects in eclipse. First package has name like com.myname.ui. Second has name like com.myname.service Apr 04 18:09:54 How use service in ui? Apr 04 18:10:21 I try simple import "com.myname.service" Apr 04 18:10:52 if the problem was just with strings I wound't have even bothered to ask the question. the thing is, I implement a listview from an existing database using SimpleCursorAdapter(so I don't really have direct access to the textview to modify it) ... can't I just edit the textview and make some text non-editable ? Apr 04 18:11:23 But... App die with java.lang.NoClassDefFoundError: com/myname/service/MyServiceName Apr 04 18:13:20 Jov, http://imgur.com/jacoj Apr 04 18:13:49 autrilla: :) One moment Apr 04 18:13:56 autrilla: LOL Apr 04 18:14:37 Jov, it means it can't find that class in the compiled apk Apr 04 18:14:55 so it either doesn't exist, or you should clean then rebuild Apr 04 18:15:55 seriously there is no atribute to the textview to make some text non editable by the code? -.- Apr 04 18:17:00 I now. And I rebuild both projects and install Apr 04 18:17:02 no Apr 04 18:17:11 Just make an adapter where you have access to the textview Apr 04 18:17:16 more than one time :) Apr 04 18:19:08 Stack trace http://pastebin.com/4CzsgYXT Apr 04 18:19:24 SimonTV: the textview it's modified by a SimpleCursorAdapter method which extracts the values from a database and then sets the textview to the value ... how could I insert some text there ... like for example: "Dog: 50kg" where "dog:" and "kg" are my text and 50 is the value from db .... that's my question Apr 04 18:19:45 In line 23 i write Intent intent = new Intent(this, GateService.class); Apr 04 18:20:03 actually I use the simplecursoradapter for setting a listview in which I set the textviews to the valuse Apr 04 18:20:53 By making a string resource that you can format with Resources#getString Apr 04 18:21:16 Get string, set on textview Apr 04 18:21:52 jonc-1: have an idea? Apr 04 18:37:39 I am using a slider drawer navigation. Problem is I have an edit text in the content view, and if you click on the slider drawer above the edit text area, it'll send the touch down to the edit text pulling up the keyboard Apr 04 18:44:23 How could I debug why my app is toggling on the system UI after hitting a certain button. I have my app in full screen mode and after tapping a button the status bar and actionbar pop up although I cannot find a single call that toggles them on Apr 04 18:45:05 code or it didnt happen :p Apr 04 18:49:11 I have a simple doodling app. You select a picture. You can "draw" on it, and then you save it. It's super easy and it works well. I want to implement a new feature though called "stamps" basically you choose from like 50 different stamps and then you can put it on the image. I also want to be able to rotate and resize the stamp, and then save all of it (original picture, doodle, stamp) as a new picture. What would be the best wa Apr 04 18:55:02 is there any performance difference between db.insert() and statement.execute() Apr 04 18:55:04 ? Apr 04 18:55:33 Have any ideal about import problem? http://pastebin.com/4CzsgYXT Apr 04 18:55:38 on a second thought, i'll try it and find out Apr 04 18:56:11 Jov_: that error message is pretty clear - you're missing a class Apr 04 18:56:38 Mango_Man: I know. But I create 2 projects Apr 04 18:57:06 Mango_Man: with com.myname.ui and com.myname.service Apr 04 18:57:29 I try import service in ui. But got error Apr 04 18:57:30 two packages, you mean? Apr 04 18:57:42 check your import statements maybe? Apr 04 18:58:38 two projects. And each project has own package name. But started with myname.[ui/service] Apr 04 18:59:01 does anyone know how to disable the elastic scroll on a ListView? Apr 04 18:59:06 Mango_Man: I try use import wilix.chris.connector.*; and import wilix.chris.connector.GateService; Apr 04 18:59:22 But in Intent intent = new Intent(this, GateService.class); add die Apr 04 18:59:30 *app die Apr 04 18:59:46 Jov_: if you're importing a class from another project, then i think you need to link that other project in or something Apr 04 19:00:03 Hm... How make link? Apr 04 19:00:25 *shrug* google build paths and library projects? Apr 04 19:01:01 Am.. What you mean? Apr 04 19:02:11 Jov_: i don't know how to link projects, you should try googling "android build path" and "android library project" to figure out how to do it Apr 04 19:02:53 Mango_Man: Ok. I forgot about library Apr 04 19:13:57 Hey, Android doc about GCM says when the app receives an update, It should request a new requestorsId from GCM and drop the old one. Whats the reason behind that? Apr 04 19:24:05 I made an app and published it, but I can't find it on my nexus 7. Apr 04 19:24:16 I don't have anything that does it wont support it. Apr 04 19:24:26 How do I begin to trouble shoot that? Apr 04 19:24:35 how long have you waited Apr 04 19:24:45 is it visible on other devices, the play web site, etc? Apr 04 19:24:51 Yeah Apr 04 19:25:06 well i'm out of stellar ideas :P Apr 04 19:25:08 If I maunually type it in. it says not aviailble on your device Apr 04 19:25:17 "not available on your device" Apr 04 19:25:53 would have to be a version or feature incompatibility; do you require things like a cell modem? Apr 04 19:26:20 Nope. I don't have any tags... =/ Apr 04 19:26:32 ' Apr 04 19:27:42 show us the manifest Apr 04 19:28:06 or the project name Apr 04 19:28:12 can probably look it up on the play stoe Apr 04 19:28:14 store Apr 04 19:29:14 did you set support for xlarge screens in manyfest. maybet thats the problem Apr 04 19:29:23 because nexus 7 is 7" Apr 04 19:29:28 Nope. Apr 04 19:29:39 I dont have any support tags either. Apr 04 19:29:54 But I have other apps with no support tags and I can see them. Apr 04 19:30:09 just show us the manifest then :> Apr 04 19:30:31 (and you really should set those tags) Apr 04 19:30:44 danijoo: Really? Apr 04 19:31:31 .. Apr 04 19:31:40 timing database queries is fun :D Apr 04 19:32:03 Did I hear sarcasm? ^^ Apr 04 19:32:12 Mango_Man: just run them in an executor, single threaded Apr 04 19:33:26 jaynewstrom: using asyncqueryhandler at the moment Apr 04 19:33:45 gotcha Apr 04 19:33:48 never used that Apr 04 19:36:26 Anyone using RxJava yet? Any good resources you found? Apr 04 19:39:09 what the heck does "Not annotated paramter overrides @NotNull parameter" mean? Apr 04 19:39:15 *parameter Apr 04 19:39:49 guess i'm missing an annotation Apr 04 19:40:05 You override a parameter which was annotated with @NotNull, in your override, its not annotated anymore Apr 04 19:40:41 danijoo: yeah, but i don't see an annotation in the android source Apr 04 19:40:57 hmm. Apr 04 19:41:10 maybe hidden in a super.super.superclass? ^^ Apr 04 19:41:17 dunno Apr 04 19:41:25 yeah, android doesn't use @Nullable/@NotNull annotations in the public apis, afaik Apr 04 19:42:02 just annotate it and go on:p Apr 04 19:42:26 Or disable the inspection Apr 04 19:43:00 most of lint is shit anyway .. Apr 04 19:43:18 It's likely intellij complaining Apr 04 19:43:55 I disabled these errors all together Apr 04 19:44:00 disabled, time to move on :) Apr 04 19:44:23 android studio points out one too many possible nullpointerexceptions... Apr 04 19:45:14 Yet another intellij ploy to get you to use @Nullable/@NotNull annotations Apr 04 19:45:18 yeah. default configuration sees possible nullpointers at every 3ed line :D Apr 04 19:45:48 does anyone know of an example showing how to do a like button via a webview in android? without the facebook sdk Apr 04 19:46:23 problem is that the user still has to sign in then Apr 04 19:46:54 yeah, I am okay with that. however, I would like to be able to have it remember their credentials after the 1st time they login if possible. Apr 04 19:47:48 you need to get the cookies from the webview after the signin Apr 04 19:47:52 and store them somehow Apr 04 19:48:31 but dont know if this is even possible :p Apr 04 19:48:53 okay, well at the least a remember me check box would be nice Apr 04 19:49:01 the sdk doesn't have "like" functionality Apr 04 19:49:08 so i'm trying to do it via a webview Apr 04 19:50:48 i guess a like api-call would lead into much abuse Apr 04 19:51:32 yeah, i agree. i want to implement a like button and a share button. that is it. Apr 04 19:51:42 and i would rather not use the sdk if i don't have to Apr 04 19:53:56 http://dennisforbes.ca/index.php/2014/03/19/go-golang-and-android/ -> this is great Apr 04 19:58:00 Can anyone tell me how I'm suppose to load a xml file into a android app? Apr 04 19:58:12 I can't find a working example. Apr 04 19:59:37 http://developer.android.com/training/basics/network-ops/xml.html Apr 04 20:01:24 Those examples are a bit verbose for me. I never programmed anything in Android before. But is it the same as Java? Apr 04 20:02:18 Java's just a language. Apr 04 20:09:54 I have an issue where I want to launch a dialog from a spinner on selecting "new". The user enters some data, and saves. When I exit the dialog I want the new entry available in the spinner Apr 04 20:10:08 how do I do this Apr 04 20:17:55 i'm trying to create a new webview and im not sure what to pass it for the context parameter Apr 04 20:18:18 https://www.youtube.com/watch?v=9-ltOVyNYO8 Apr 04 20:19:52 Is it hard to add a skin to an app? like.. a picturebackground? Apr 04 20:20:54 Majere_Dreavan: should be pretty straightforward, just set android:background of a view Apr 04 20:21:06 it'll probably be really ugly though Apr 04 20:21:37 Man Its getting to the point i don't care about uglylol I just want one of the plethora of Game boy emulators to.. you know.. look like a gamboy. Apr 04 20:23:29 unrelated question: if you're doing database inserts in a handler (i.e. AsyncQueryHandler), what happens if there's a configuration change while a database insert is running? Apr 04 20:24:12 Mango_Man: I guess that depends on if the db is transactional Apr 04 20:25:25 either way it should save the insert and do it after config change if the config change doesn't stop it from happening Apr 04 20:26:14 shmooz: so if there's a config change before I call db.endTransaction(), the transaction will fail and i'll have to restart it in the new config? Apr 04 20:26:33 ehhh...in any case i'm going to try it out and see what happens Apr 04 20:26:40 sleep() ftw Apr 04 20:26:42 yeah , you tell us Apr 04 20:27:12 can you change the SHA-1 key that was used in the developer console after you entered it? Apr 04 20:27:25 I'm not able to find it anymore Apr 04 20:28:14 Hello . . . I am trying to get started with Android application development. I have Eclipse IDE installed and the SDK manager installed. I am trying to configure a device that will approximate a Samsung Note II, but I do not understand how to do that, so I am here looking for advice. Any suggestions? Apr 04 20:29:06 Yeah. This room is over my head. Apr 04 20:29:20 I barely know Unity C# Apr 04 20:29:36 Majere_Dreavan: i remember hanging around #unity3d Apr 04 20:30:02 neat community Apr 04 20:30:25 It is. Apr 04 20:31:06 wish I had time for unity Apr 04 20:32:15 I'd make a 3d android bot tron game Apr 04 20:32:42 probably been done lol Apr 04 20:33:07 RetroDude: you mean the sha-1 hash of the signing cert, to get API keys? Yes, just generate it again from your signing cert the same way you did before (plenty of directions out there) Apr 04 20:33:34 RetroDude: if you mean the signing cert used to sign an app you uploaded - no. if you lost your cert you're screwed. you'll have to delete the app and upload a new one and lose the existing user base. Apr 04 20:34:19 anyone works with RoboGuice? Apr 04 20:34:32 I just got in a project that uses it, but something is making me kinda lost Apr 04 20:37:09 Woo, Just got off the phone with nintendo america. I'm WII U Dev bound Apr 04 20:41:14 Majere_Dreavan: to develop games for Wii? Apr 04 20:41:35 Yeah. Apr 04 20:42:02 #humbleBrag i guess.; I meant to type that to my buddy Apr 04 20:42:34 I'm not offended Apr 04 20:42:42 hehe Apr 04 20:43:07 I didn't even know wii was still being developed for Apr 04 20:44:01 there's a wii downstairs, but we haven't bought any new games for it anytime recently Apr 04 20:44:20 wii u sorry Apr 04 20:44:34 ohhh Apr 04 20:44:36 ok Apr 04 20:45:59 I guess that is pretty cool, they let you buy some kind of dev station or is it free Majere_Dreavan? Apr 04 20:47:45 I have 365 days to pay. Apr 04 20:48:05 When the AVD that I make starts, the orientation is rotated 90 degrees clockwise, how can I rotate it? Apr 04 20:48:16 If I get a dev kit- I can go ahead and get the software- and start making. but testing would be the issue Apr 04 20:49:50 dragorn, how about the app image as seen in the playstore. Can that be modified? Apr 04 20:51:44 RetroDude: I'd expect so, log in and see if you can upload a new image. Apr 04 20:52:07 I don't see an option to, only to change the icon image Apr 04 20:52:17 hence why I asked if its even possible Apr 04 20:53:59 anyone know what import i need for Apr 04 20:54:02 View.Visible Apr 04 20:54:09 and setVisibility Apr 04 20:54:30 java.lang.OutOfMemoryError when setBackgroundResource Apr 04 20:54:31 widget.view Apr 04 20:54:32 hey Apr 04 20:54:33 or something Apr 04 20:54:41 how can i optimize this code / view generation? Apr 04 20:54:42 http://ideone.com/LtuQOr Apr 04 20:54:44 android.widget.view? Apr 04 20:54:56 I want to print the squares of the numbers 1 to 25 Apr 04 20:55:11 After starting the activity, there is some 2 second delay currently Apr 04 20:56:06 do you run the task asynchronously or in a seperate thread smart_ptr? Apr 04 20:56:15 you might want to do that Apr 04 20:56:22 DoYouKnow: i use the code exactly as i copied it there Apr 04 20:56:46 asynchronously adding views? Is that possible? Apr 04 20:57:12 shmooz: seems like the db transaction runs to completion even after a bunch of rotations Apr 04 20:57:58 not asynchronously adding views. completing the math part of things in a seperate thread while displaying something like Loading... then load a view onpostexecute Apr 04 20:58:44 I'm a newbie somewhat myself. just throwing an idea out there based on what i've been working on Apr 04 20:59:05 guys Apr 04 20:59:07 java.lang.OutOfMemoryError when setBackgroundResource Apr 04 20:59:42 DoYouKnow: i like the idea, thank you :) Apr 04 21:00:18 btw., what is all this abc stuff? https://www.dropbox.com/s/a8fk5keg9wje1xb/Screenshot%202014-04-04%2023.00.11.png Apr 04 21:00:25 480 * 800 image Apr 04 21:00:46 Mango_Man: is that good ? Apr 04 21:01:03 not sure Apr 04 21:01:29 ActionBarCompat resources Apr 04 21:01:43 ok Apr 04 21:01:53 shmooz: yep, should be good. moral of the story: db insertions in a background thread run to completion despite configuration changes in the UI thread Apr 04 21:02:09 well...i should check if there's a memory leak first Apr 04 21:02:46 A configuration change is equivalent to you doing myObject.someMethod(); myObject = null; Apr 04 21:03:00 myObject = new MyClass(); Apr 04 21:03:28 Just basic java Apr 04 21:03:46 you mean in onCreate/any of onPause/onDestroy()/etc? Apr 04 21:04:43 Lifecycle callbacks are just one class calling methods on another to let it know "hey, this happened.. deal with it" Apr 04 21:05:32 Threads don't stop because the one that started it is de-referenced Apr 04 21:06:13 what do you mean? i thought lifecycle callbacks were really messages processed by the UI thread's looper Apr 04 21:07:47 I'm trying to simplify what a configuration change is, in order for you to realize why a configuration change would have, in itself, have any impact on threads you started that does work Apr 04 21:08:00 would not have Apr 04 21:10:23 guys Apr 04 21:10:31 why it happens? Apr 04 21:12:04 ok, this made me curious. If I animate a child-view the parent view is animated as well here? http://ideone.com/7BhlKD Apr 04 21:12:16 I am using a LinearLayout as parent and TextView's as childs Apr 04 21:13:12 SimonVT: ah i see what you mean. so we've established that a bg thread is unaffected by the state of its starting activity, but 1) i'm assuming the Handler (tied to the bg thread) has an implicit reference to its parent class, the activity. so stale activities are actually not garbage collected? and 2) what if the user exits the app completely? does the bg thread continue? Apr 04 21:15:34 If you're using the Handler class in a way that would cause it to have an implicit reference to its parent class, then yes, the activity would stay in memory until the Handler is gc'd Apr 04 21:16:29 If the user finishes all activities thread will continue to run until it finishes, or until the process is reclaimed for other purposes Apr 04 21:18:42 SimonVT: darn, those are really subtle bugs... Apr 04 21:34:22 sigh, TestFlightApp was bought by Apple so now the Android functionality is disabled. That sucks Apr 04 21:37:24 It's possible to create a ViewPager using XML, is it possible to insert views into the ViewPager using the XML layoyt? ? Apr 04 21:38:16 no Apr 04 21:41:09 pfn: thanks Apr 04 21:42:25 if I'm using CursorLoader to get data from my database. what should I pass for URI field if I have more tabel in database. ??? Apr 04 21:44:42 theblang: Apple is nuts Apr 04 21:45:06 If you think programming android is annoying, look at apple and all the silly tricks up their sleeves Apr 04 21:46:37 slani: are you also the person who implemented the ContentProvider you're querying? if so, you can make it generate an apropriate query for an URI you have chosen, which would be a better idea Apr 04 21:58:37 http://pastebin.com/imhYMrAX - I've got a ViewPager in the XML, and I'm trying to create two pages using code... the textviews are not showing... any idea why? Apr 04 21:59:47 Because it gets its views from an adapter Apr 04 22:00:41 SimonVT: had a feeling about that :) Apr 04 22:01:24 p_l: yes I implement ContentProvider. so URI is content://AUTHORITY/table . and then i use urimatcher in contentProvider in qurey method ?? Apr 04 22:02:18 I'm creating a ListView with custom rows, each row can be swiped to the left/right... ViewPager is the correct choice here? Apr 04 22:05:44 Hello all, gots a question! Apr 04 22:06:05 I'm wondering if keeping a list of fragment references in a view pager adapter is a bad idea Apr 04 22:06:21 hope not, i do it Apr 04 22:06:48 just make sure you keep track of their lifetimes -- remove references when destroyed, etc. Apr 04 22:06:48 Yeah, basically I need to call a fragment's function to change stuff in the fragment from the activity Apr 04 22:07:06 go for it Apr 04 22:07:07 I actually want the fragments to stay the life of the activity Apr 04 22:07:12 alright then! :D Apr 04 22:07:26 the ViewPager manages child fragment lifecycle, so be aware of that Apr 04 22:08:06 you'll figure it out, it's all fairly trivial. Apr 04 22:18:15 sabton, I am going to make sure the viewpager has switched to the item with the fragment I am going to reference first... I think I should be okay... I think >__> Apr 04 22:32:24 one of my projects is corrupt :( Apr 04 22:32:34 I can't fix the xml because it keeps changing things back Apr 04 22:32:55 and I'm not 100% sure as it is Apr 04 22:33:12 I tried deleting the mainactivity and recreating it Apr 04 22:33:19 and it doesn't like that Apr 04 22:35:08 java.lang.OutOfMemoryError happen on Note 3 Apr 04 22:35:49 this templete requires a minimum sdk version of 4, and the current version is 1 Apr 04 22:37:38 DoYouKnow anything about my problem? Apr 04 22:38:03 oh, are you using eclipse? Apr 04 22:38:11 yes Apr 04 22:38:14 you can change the eclipse.ini Apr 04 22:38:22 to allow for more memory Apr 04 22:38:47 it happen on android devices Apr 04 22:38:49 not on my pc Apr 04 22:38:56 ohh Apr 04 22:39:13 how much memory are you using? Apr 04 22:39:14 a lot? Apr 04 22:39:26 wait to pastebin the stacktrace Apr 04 22:39:30 you may want to look into pre-allocating the memory Apr 04 22:39:32 if you are Apr 04 22:39:47 not even sure if android allows for that though Apr 04 22:41:18 http://pastebin.com/JUJ72Buq Apr 04 22:41:25 full StackTrace Apr 04 22:42:32 are you using 32 bpp in the image? Apr 04 22:42:38 err Apr 04 22:42:39 24 I meant Apr 04 22:42:40 line 28 is relativeLayout.setBackgroundResource Apr 04 22:43:26 yes Apr 04 22:44:35 I ask because with higher pixel depth bitmaps the arrays are slightly larger and there's a greater chance for corruption Apr 04 22:44:56 try using a different image Apr 04 22:44:59 with a lower pixel depth Apr 04 22:45:52 also, can you tell me what function in your program is being invoked to cause the stacktrace? Apr 04 22:46:21 you .setBackgroundResource, but are you using a Bitmap object? Apr 04 22:46:42 or is it a file pointer you are passing it? Apr 04 22:46:54 no Apr 04 22:47:04 i am using R resource Apr 04 22:47:17 R.drawable.myimage Apr 04 22:48:45 oh, I see Apr 04 22:50:20 is it possible to make the pixel depth lower via photoshop? Apr 04 23:00:55 probably Apr 04 23:09:00 any idea why I can't see my footerView which I added to listView when I have now Item to show on list Apr 04 23:09:37 my class extends ListFragment Apr 04 23:15:02 any IntelliJ user here? Apr 04 23:49:46 I'm trying to add footerview to my list. But I can't see it http://bpaste.net/show/oAJUqN7XtFd0UVKK5mw3/ Apr 04 23:52:49 does anyone know if pageradapter will call destroyitem automagically Apr 04 23:53:01 That'd be totally cool and convenient! Apr 05 00:00:49 If I want to program my galaxy tablet so there's just one big skype button that automatically starts skype and calls someone - is this possible? Apr 05 00:02:18 I already have the code Apr 05 00:02:19 http://stackoverflow.com/questions/10132556/how-to-start-a-skype-call-from-an-android-app Apr 05 00:02:23 I'm just not sure where to begin Apr 05 00:22:38 failed_array, sure Apr 05 00:22:54 try making a widget, here's an okay guide: http://www.vogella.com/tutorials/AndroidWidgets/article.html#overview_steps Apr 05 00:23:17 put a button in your layout, and set its onclicklistener to start the activity with that intent like in your link Apr 05 00:23:33 Of course, you could make your own app to do the same Apr 05 00:24:30 Consider other things though, like: skype will likely keep you in their app after the call ends. there may not be a simple way around this Apr 05 00:24:31 Nice thanks Apr 05 00:24:42 I just want to link this to an intent I coded Apr 05 00:24:47 that automatically skype calls a person Apr 05 00:25:45 is there anyway to make shape size compatible with the view size Apr 05 00:25:47 ? Apr 05 00:29:59 MalekAlrwily, you'll probably need to clarify your question a bit. I haven't messed with shapes much, but from what I understand, it's just another drawable resource. You'd define it in the layout inside of whatever you put it in, like a button background or something Apr 05 00:31:18 i'll try now Apr 05 00:43:53 where can I find all column names for contact Apr 05 00:44:48 MalekAlrwily: I just tried a really big background for a textview and it loaded ok after a few seconds, so I wouldn't say it's a size issue, but it could be an issue with your file Apr 05 00:44:58 did you try picking a different file and seeing what the results are? Apr 05 00:45:22 no Apr 05 00:45:34 my file is ok Apr 05 00:45:36 LinearLayout rather Apr 05 00:45:43 and works on my phone Apr 05 00:46:12 oh, it might be a limitation of the device's graphics then. I am not sure Apr 05 00:46:50 i don't know why Note 3 graphics is low Apr 05 00:47:08 it's new device Apr 05 01:08:27 how do i tell gradle the javaHome location on linux? for some reason it's stuck on thinking it's in the wrong location Apr 05 01:08:36 i tried exporting the JAVA_HOME environment variable Apr 05 01:08:40 but that didn't help Apr 05 01:09:04 Supplied javaHome is not a valid folder. You supplied: /usr/lib/jvm/java-7-oracle Apr 05 01:31:23 Hi, is there anybody familiar with MediaCodec? I'm using it to decode h264 (not avc1) stream to surface but decoding is very slow (about 60-120ms per frame). I've also tried OMXCodec with same result but playing h264-avc1 movie is perfect. MX Player with HW decoder plays problematic video smoothly, so problem is probably with my code. Do you have some idea what might be wrong? Apr 05 02:23:49 Hello. I'm having a problem setting up the action bar in my app--the entries appear in my overview menu correctly but they are not appearing in the actual menu bar--even though I used a menu inflater in my onCreateOptionsMenu method. Apr 05 02:24:05 I am not getting any error messages either. Apr 05 02:24:10 Does anybody know what might be going wrong? Apr 05 02:27:52 I'm competing in a weekend long hackathon, and I just need a pretty quick answer--that's why I'm asking in irc. Apr 05 02:29:47 In fact I'm beginning to think the method isn't being called at all Apr 05 02:29:58 My app doesn't appear to have an options menu in the first place. Apr 05 02:49:05 Seriously, the search option appears in the overview menu correctly, and it is set to always appear on the action bar. Apr 05 02:49:08 but Apr 05 02:49:21 it doesn't appear on the action bar. Nothing does--except for the title. **** ENDING LOGGING AT Sat Apr 05 02:59:58 2014