**** BEGIN LOGGING AT Sun May 18 02:59:59 2014 May 18 03:05:40 @all is there a way to grab a snapshot of an RTSP stream? May 18 03:37:06 i'm trying an implementation of code similiar to this: http://stackoverflow.com/questions/16898675/how-does-it-work-requestlocationupdates-locationrequest-listener May 18 03:37:52 however for this line: `mLocationClient.requestLocationUpdates(mLocationRequest, this);`, i'm getting `The method requestLocationUpdates(LocationRequest, LocationListener) in the type LocationClient is not applicable for the arguments (LocationRequest, MainActivity)` May 18 03:38:11 any suggestion how i can correct this error May 18 03:41:17 davo: the error tells you how to correct it. by writing mLocationClient.requestLocationUpdates(mLocationRequest, this), you’re supplying a locationrequest and a reference to your main activity. the error tells you are supposed to supply a locationrequest and a reference to a location listener. May 18 03:41:44 so something like mLocationClient.requestLocationUpdates(mLocationRequest, mLocationListener) May 18 03:48:01 Thank you paralith May 18 03:48:03 I'm getting some conflicts but trying to implement that now May 18 04:07:49 hello all May 18 04:19:52 Hello May 18 04:20:47 hey CodeGuruBot May 18 04:23:54 hi QubeZ :) May 18 04:24:39 hey Carbonflux May 18 04:24:47 whats a good way to setup an in-app donation? May 18 04:25:08 is there a lib that makes in-app purchases eaiser to implement? May 18 04:25:44 I have not gotten that far yet heh. May 18 04:26:07 I do notice some people just publish a donate version which is the same as the free one May 18 04:27:01 I think the google play apis are all you need from the reading I have done May 18 04:36:08 Hello, I am working on the big nerd ranch android book and I am on the final chapter. I am having trouble with the Google Maps API and I am getting the following stack trace: May 18 04:36:16 E/AndroidRuntime(12333): java.lang.NoClassDefFoundError: com.example.runtracker.RunMapFragment E/AndroidRuntime(12333): at com.example.runtracker.RunMapActivity.createFragment(RunMapActivity.java:13) E/AndroidRuntime(12333): at com.example.runtracker.SingleFragmentActivity.onCreate(SingleFragmentActivity.java:21) E/AndroidRuntime(12333): at android.app.Activity.performCreate(Activity.java:4728) E/AndroidRuntime(1 May 18 04:36:49 I guess that's part of the stack trace.. May 18 04:41:52 any idea where in my code to check why this app is crashing? http://pastebin.com/jBCH1QXy May 18 04:42:14 ☻ May 18 05:34:51 davo: those _are_ line numbers at the end, ya know May 18 05:42:02 hello May 18 05:43:13 Hi, Raziel May 18 05:43:38 mornin May 18 05:44:37 sweet...my IRC client seems to work! May 18 05:45:00 chatting from the emulator atm, but I'll install this on an actual device shortly May 18 05:56:47 jamesson: yes i am aware they are line numbers, but i couldn't tell which files to refer to as i didn't write any of those classes with line numbers May 18 05:58:54 Does RunMapFragment exist? May 18 06:14:51 hi can you tell me where is default download location for market apps or internet app stored? May 18 06:15:01 is it possible to change / link / set it to sd card? May 18 06:15:18 i am not able to install some app its download leaves 2 mb space May 18 06:15:27 and then gives insufficient internal memory May 18 06:20:04 in your manifest file you can set `android:installLocation="preferExternal"` May 18 06:20:30 a1234: at least I assume you are talking about your own app? May 18 06:21:01 codeguru: i know about preferexternal May 18 06:21:09 codeguru: but its not my app May 18 06:21:32 i know it had preferExternal on as the developer tells me May 18 06:21:37 a1234: then you don't have any choice. It will install on the internal memory unless the dev has set preferExternal. May 18 06:21:52 but, i have 50 MB in internal memory free, and apk is 44 mb May 18 06:21:58 I think it is up to your device whether to honor preferExternal May 18 06:22:10 from google play it downloads into internal memory instead of sd card and then tries to install May 18 06:22:20 it honors May 18 06:22:21 but May 18 06:22:23 listen May 18 06:22:38 when we download from google play, it downloads into internal memory May 18 06:22:45 a1234: I think you have the wrong room, then. This room is for developers and programming related questions. May 18 06:22:52 oh i am sorry May 18 06:23:06 no worries, mate May 18 06:23:29 i thought because android sdk developers would be here they might be knowing where is the default location set May 18 06:23:54 afaik, the default location is the device's internal storage May 18 06:23:59 like that app link2sd, links data and all to sdcard May 18 06:24:10 i was thinking of some similar app i could make or manually do May 18 06:39:29 although seems like an awful idea, it would be very nice to make that app May 18 06:39:38 only if i knew the script file location May 18 06:39:47 or the folder it downloads to May 18 06:44:41 I am having a strange error. I just updated my adt version to 22.3 and now the button states in my app aren't working May 18 06:44:52 well no error just a side effect May 18 06:46:59 hello everybody May 18 06:47:28 i am have developed a game which i have in google play. I want to make it a multiplayer game May 18 06:48:09 i have my code ready in the client side. All i need to do is do a serverside setup May 18 06:48:37 i was thinking of using push notification mechanisim of GCM for this May 18 06:49:18 my game is actually a card game and player turn game. I mean each player plays according to their turn May 18 06:50:10 i am very new to the multiplayer game in android. Any ideas what process should i follow ? May 18 06:50:46 sunny_slls: google recently added api's for that stuff May 18 06:51:45 shmooz, are you talking about google game services ? May 18 06:52:11 not sure, I remember them talking about it at the IO May 18 06:52:31 where it saves the scores and keeps track of players and stuff May 18 06:54:33 ok May 18 07:05:28 hmm May 18 07:11:18 hello codeguru May 18 07:19:40 Hi, can anybody share there knowledge about Gesture and Touch detection? Why are there many different types of classes like GestureDetectorCompat, MotionEventCompat, SimpleOnGestureListener and onInterceptTouchEvent? May 18 07:20:02 I found only the last one different. Is there a significant difference in all? May 18 07:56:53 hello guys May 18 07:57:02 someone can help me with sign apk? May 18 07:57:16 What part are you having trouble with? May 18 07:57:27 did you read the android developer documentation? May 18 07:57:29 i've a my self signer certificate May 18 07:57:45 and i want use it for sign my apk May 18 07:58:18 yes, but i have not understand how work with my certificate.. May 18 07:58:19 developer.android.com/tools/publishing/app-signing.html May 18 07:58:50 How did you create your cert? May 18 07:59:26 and how are you building your app? command-line, Eclipse, or Android Studio? May 18 08:01:24 i build with adt (eclipse) May 18 08:01:57 i've create my cert in .pem format May 18 08:02:11 using openssl May 18 08:04:26 What happens when you load your cert into Eclipse? May 18 08:05:22 AFAICT, you can just use your key when you export your apk from eclipse May 18 08:07:18 yes but in .pem private key and certificate are together May 18 08:07:34 i don't know how extract key May 18 08:07:41 from pem May 18 08:10:19 not sure, man. Any success with google? May 18 08:10:27 brb May 18 08:10:30 i try.. May 18 08:12:02 back May 18 08:12:17 http://stackoverflow.com/questions/12566939/android-apk-sign-information May 18 08:12:49 This might help with your signing. In particular, the last line of the accepted answer shows an example of signing with a PEM cert. May 18 08:15:22 ok, i try it..thanks! :) May 18 08:27:52 is there a way to update a notification with a new instance of Notification.Builder? May 18 08:47:05 test May 18 08:48:20 CodeGuruBot: please don't test in here May 18 08:48:26 open your own channel May 18 09:13:43 capella: did the "Scroll To Read" thingy from yesterday! :D Warning: Got a really buggy capture from GifCam. Brace your eyes for green colour. http://i.imgur.com/lRBzAj5.gif May 18 09:13:49 Anyways, see bottom of detail fragment. Scroll To Read with animation only when images are too large. A little thing but feels like an accomplishment :D May 18 09:14:38 Now making a 9patch for it :) May 18 09:36:45 Is there a way to project coordinates of a touch event to the view containing those coordinates, even if the touch event started in another view? May 18 09:37:07 i want to make a simple app to get content of webpage and show it as source or whatever but i could not success first i wrote this code http://codepad.org/0FygKcW4 then i've got android.os.NetworkOnMainThreadException http://codepad.org/drROibUs now it's my code: http://codepad.org/kW51nS2g and now i got this error: java.net.MalformedURLException: Protocol not found http://codepad.org/LrYqN3kK what should i do? May 18 09:45:42 hi guys May 18 09:46:24 the app I'm working on relies heavily on BLE, and right now I've doing all dev on a Nexus 5 which supports BLE just fine. Now I have the option of picking 3 more devices to test the app on May 18 09:46:51 besides Motorola's Droid RAZR, which devices should I request for testing? May 18 09:48:59 I think Im going to pick the RAZR, HTC ONE MAX and Sony XPERIA May 18 09:50:00 If you know where your app is going, you can look at majority share on device manufacturer to decide May 18 09:50:12 I don't know where, no May 18 09:54:56 this should be the list http://www.bluetooth.com/Pages/Bluetooth-Smart-Devices-List.aspx May 18 10:07:33 I notice a lot of people have samsung galaxy series phones May 18 10:08:53 yea.. May 18 10:09:04 yea May 18 10:09:14 shoulda gone for S4? May 18 10:09:20 meh May 18 10:10:06 I should include that yea May 18 10:26:52 hi, i have a problem with gestures, scrollview and custom views. main activity implements onGestureListener which updated my custom view (which height is unknown and should be able to change when user is using the app) but when i wrap the layout inside a scrollview activitys onFling is not called at all and thus the custom view is not updated May 18 10:26:57 http://pastebin.com/zYTeMtyw May 18 10:27:03 *updates May 18 10:28:34 it works fine without the scrollview but then custom view but because the custom view should be able to change its size dynamically the user should be able to scroll down May 18 10:29:02 (custom view shows votings which can have 1-n options, if the votings are closed their results are shown which takes more space) May 18 10:29:47 Hello. I currently have a fragment executing my asynctask and recieving responce via implemented callback. I want to make an API class and move technical parts there, so in my fragment I would only make a simple API call. Should I leave callbacks in the fragment and pass self to the API method still, or there is more conventional way to go about it? May 18 10:30:34 me on #android-dev, *Starts to read*....."FRAGMENT"....Alt-Tab...life goes on May 18 10:32:06 Sicp: what is wrong with fragments? May 18 10:32:23 just haven't worked with them yet, all this time May 18 10:35:27 flam_ http://mobiarch.wordpress.com/2013/11/21/prevent-touch-event-theft-in-android/ May 18 10:36:19 creitve usually apis encompass many classes May 18 10:37:31 but if you are trying to seperate implementation from interface, you would probably want the callbacks to be embedded and hooked to the object that will expect the callback: your API class. that way you can instantiate the object in the fragment, and it'll handle the async call back itself May 18 10:37:38 creitve, I think I write this about 10x per day now... "use a message bus" :D May 18 10:37:43 lasserix, thanks May 18 10:37:46 I sound like a broken record. May 18 10:37:47 :( May 18 10:37:51 to propogate this to the class you would technically use another interface, but you can also use a static nested class May 18 10:38:30 and just use a weakreference to your fragment, so your api class won't hold the reference to the context if the async task persists past the context's lifespan May 18 10:38:52 weakreferences are mostly bad idea May 18 10:38:56 you can do UIHandler.sendMessage May 18 10:38:58 since Dalvik doesn't really handle them all that well. May 18 10:39:05 I resort to that inside threads May 18 10:39:24 maybe.. May 18 10:39:36 creitve, either use RxJava or EventBus/Otto to emit results to everyone that's interested to the result of your operation May 18 10:40:04 this'll decouple your API methods from UI, make design way simpler, save you from race conditions, background operation hell and ease handling of orientation changes May 18 10:40:13 cause im sure he wants to learn all that: you can also make a nonUI fragment handle your async and then just set the target of that fragment to your ui fragment May 18 10:40:21 Sicp, how do you make tablet UIs without fragments? May 18 10:40:33 I have zero idea May 18 10:40:36 Mavrik, how does it help orientation changes¿ May 18 10:41:01 but I would imagine you have to use fragments, there's so much screen real estate May 18 10:41:11 autrilla, first it saves you from "load portrait -> get result landscape" race condition May 18 10:41:24 autrilla, since the messages get delivered to whichever fragment is displayed right now May 18 10:41:31 Macrik have you used rxjava or eventbus/otto? May 18 10:41:41 and you don't have to watch and handle de/reregistration of listeners May 18 10:41:46 lasserix: Mavrik: Sicp: wow, thanks, guys. May 18 10:41:51 (or accidentaly leak fragments all around :P ) May 18 10:42:01 lasserix, I think I haven't written an app without it in last year :P May 18 10:42:10 which one? May 18 10:42:25 Huh. I wonder how it's possible to do that with Otto May 18 10:42:26 autrilla, other thing is, I abuse sticky messages, which means I just dispatch loaded data to the bus and the UI just shows it whenever the onReceive is triggered May 18 10:42:32 so I don't have to worry about reloading stuff :) May 18 10:42:33 Event bus/otto was what i spent most of time figuring out how to when i first tacked apps ;p May 18 10:43:04 thanks for the recomendation May 18 10:43:06 lasserix, I used all three, prefer EventBus due to some feature set I use, Otto is fine too, RxJava mostly for more complex projects May 18 10:43:25 RxJava sadly tends to make code look like spaghetti at times... but IDEA helps :P May 18 10:43:35 Mavrik, I guess this would be the "sticky events" on Otto: When subscribing to events it is often desired to also fetch the current known value for specific events (e.g., current location, active user, etc.). To address this common paradigm, Otto adds the concept of 'Producers' which provide an immediate callback to any subscribers upon their registration. May 18 10:43:44 Hi, I am trying to run com.google.android.gms.plus.sample.quickstart but I keep getting An internal error occurred, i have checked all the troubleshoot steps and followed some SO answer but still I am not able to setup May 18 10:43:48 autrilla, yeah May 18 10:44:03 EventBus has them slightly more convenient, but that's basically the functionality May 18 10:44:26 so when new Fragment is created it just registeres to Otto/EventBus and just shows whatever data is there waiting for it... or it shows a loading throbber May 18 10:44:39 I see. I think I'm going to leave the listview dragging for the end and start handling orientation changes May 18 11:02:58 I'm using dropdown navigation, and I only use one Activity, so I can easily retain what Fragment is currently displayed. Unless the Fragment currently displayed is not one that can be reached through dropdown navigation. How would you handle this? May 18 11:21:18 has anyone else expirienced that on Samsung devices (S3 and S4) that run android 4.3 tapping on a notification doesn't open the lockscreen? May 18 11:35:51 before I go ahead and do this manually, is there a physics lib that gives me the same effect as Facebook's chat heads? May 18 11:40:04 love the do this manually part May 18 11:40:06 lol May 18 11:40:56 Guess not, oh well May 18 11:43:04 hi guys May 18 11:43:54 i have a rather simple question http://pastebin.com/DMAUf0ry May 18 11:44:27 can someone explain to me why i am not getting change notifications on my seekbar? I have registered an onProgressChanged function but it appears never to be called May 18 11:44:35 MohammadAG: seen this http://stackoverflow.com/questions/15975988/what-apis-in-android-is-facebook-using-to-create-chat-heads ? May 18 11:45:09 emotionull I already have the implementation working, I'm just interested in the physics May 18 11:45:49 MohammadAG: Oh great! May 18 11:46:40 seekBar.setOnSeekBarChangeListener(new OnSeekBarChangeListener() { public void onProgressChanged(SeekBar seekBar, int progresValue, boolean fromUser) { Log.d("seek","bar1"); }); May 18 11:47:10 i am doing that in onFinishInflate() but for some reason it doesnt give me any output when i slide my seekbar May 18 11:47:13 any ideas? May 18 11:48:44 how can I unlink an apk from google play? I need to use an old version of SuperSU but I don't want it showing up in the list of updates May 18 11:50:11 hello everybody May 18 11:51:28 is there any channel where i can get support on using the android sdk? May 18 12:02:46 what? May 18 12:03:00 the docs are support enough, pick something you want to use from the SDK and try to use it May 18 12:08:14 Sicp: well i am trying to overload the seekBar.onSeekBarChangedListener but when i do findViewById() it returns null on the id if i call it in onCreate() May 18 12:08:56 Sicp: if i call it much much later then it works.. but i dont know when it is appropriate to call findViewById() May 18 12:09:08 then you've called it before setContentView maybe? May 18 12:09:27 nope May 18 12:09:37 that much much later is your answer then May 18 12:09:41 see what's happening before that May 18 12:09:51 something hasn't had the chance to be initialized May 18 12:10:09 http://pastebin.com/UnmWybN3 May 18 12:11:00 Sicp: what do you mean by "see what's happening before that" May 18 12:11:09 when is "much much later"? May 18 12:11:22 well i have buttons and i added that code to when i hit a button May 18 12:11:23 that should work, unless your Seekbar0 is not the ID of the seek bar in XML May 18 12:11:25 and then it works May 18 12:11:33 well it is the ID May 18 12:11:42 otherwise it wldnt compile May 18 12:11:54 hmm pretty annoying... May 18 12:12:12 >:o May 18 12:12:17 nah there's something much more primitive that's wrong with your code May 18 12:12:25 this code should work, Ive done this many times May 18 12:12:31 hmmm weird.... May 18 12:13:45 Sicp: mind taking a quick look if you can see somehting obivous? May 18 12:13:46 http://pastebin.com/P97u2N6G May 18 12:13:50 i just pasted the entire code May 18 12:13:55 its *very* simplistic May 18 12:14:29 that won't run if you don't have the onClick method of the Switch defined May 18 12:14:52 the layout is really too much May 18 12:14:59 learn RelativeLayout May 18 12:15:16 this is too much, can't imagine it in my head May 18 12:15:20 Sicp: i just started with android coding yesterday May 18 12:15:50 i build quiz app, and the result show the textview about answer and question, nah i want to add wrong answer result betwen question and answer so how to add wrong answer like that :) May 18 12:16:16 Sicp: its an app which controls a 433 mhz module of mine which turns on/off or dimms the lamps in my room.. i would like a slider so that i can adjust the brightness of the lamps May 18 12:16:36 but i cant get the sliders to notify me of their progressChanged() May 18 12:17:02 the other buttons work fine May 18 12:17:20 what if the if (fromUser) condition is failing? May 18 12:17:30 I don't know May 18 12:17:35 make it more simple, make it work May 18 12:17:40 Sicp: no unfortunately not. May 18 12:17:41 then add the suspect code May 18 12:17:58 it crashes because seekbar is null May 18 12:18:10 i dont get the Log.d() ok.. anyway.. i'll just have to keep trying May 18 12:18:37 If seekBar is null, then there's no view with the id seekBar0 in R.layout. activity_main May 18 12:18:53 there is May 18 12:19:02 he just calls them with "S"eek bar May 18 12:19:11 better to begin with lower case May 18 12:19:16 SimonVT: it is null if i call it in onCreate() if i call it much later it is non-null May 18 12:19:20 and what Simon mentioned is the only reason that might cause this May 18 12:19:44 I'm imagining the seekbar is in the fragments layout, not the activitys May 18 12:20:15 Considering the pasted layout doesn't have a viewgroup with the id content May 18 12:20:48 http://tuxx.bdn.de/dimmer.tgz May 18 12:20:56 incase anyone is interested May 18 12:22:53 to be honest i dont have the slightest idea what the fragments layout is May 18 12:23:13 Find out then May 18 12:23:13 i guess i will just have to read some more documentation May 18 12:25:38 Fragments are kind of views inside of views May 18 12:38:23 I always deletes the fragments file :) May 18 12:39:21 flam_: are you trying to set OnTouchListener to your custom view or scroll view? please paste your code. May 18 12:54:49 how much minSDK does the SmoothProgressBar by castorflex support? May 18 12:56:34 lo May 18 12:56:45 has anyone ever seen this error before? May 18 12:56:47 http://stackoverflow.com/questions/23721828/unable-to-connect-to-google-play-store-unexpected-response-code-500 May 18 13:12:56 I am trying to implement background notifications in my app by calling handler.postDelayed(runnable, time) in my activity's onPause() May 18 13:13:57 what happens is that it runs once, I get a notification, but then after that it doesn't run again May 18 13:14:11 int time = 10000; May 18 13:15:03 any advice? Should I be doing this a different way? May 18 13:22:04 doesn't even sound remotely relevant to notifications May 18 13:22:49 Sicp: in the runnable, I send the actual notification using Notification/NotificationManager May 18 13:22:52 sounds like it does 1 thing, after a delay May 18 13:23:34 wait.. Does a runnable not repeat?? May 18 13:24:40 why would it May 18 13:24:51 it's just a means of getting off the UI thread May 18 13:24:58 when used in Android I guess May 18 13:25:19 well I feel stupid. I just always presumed it did May 18 13:25:27 I might be wrong, check May 18 13:26:27 You're 100% right May 18 13:26:46 well that's new May 18 13:30:01 working now haha May 18 13:30:05 thanks :) May 18 13:30:09 great May 18 13:30:17 If you want stuff to happen while your app is backgrounded you should use AlarmManager May 18 13:30:41 AlarmManager? May 18 13:30:47 yes May 18 13:30:52 Why? This seems to work perfectly now. May 18 13:31:12 And I don't need to use any alarms May 18 13:31:13 Because with handler, if your process is killed, it stops happening May 18 13:31:25 good point is good May 18 13:31:59 hmmm May 18 13:32:59 its more work, get what you want to get done now, then reiterate May 18 13:33:20 Ah agile dev :P May 18 13:33:26 lazy* :P May 18 13:33:36 difference? ;) May 18 13:33:55 SimonVT: Thank you for telling me about AlarmManager May 18 13:34:06 I will have to use that May 18 13:34:57 I will get the notifications as I want them now using this handler/runnable thing I've got going on, then after that, I will use AlarmManager :) May 18 13:47:04 I'm using dropdown navigation, and I only use one Activity, so I can easily retain what Fragment is currently displayed. Unless the Fragment currently displayed is not one that can be reached through dropdown navigation. How would you handle this? May 18 13:53:55 I don't really understand how to handle configuration changes with otto or any other Bus May 18 14:05:18 When I'm passing context to a method, how do I specify this context implements certain interface? May 18 14:06:39 So that I will be able to pass this context to an asyntask that expects listener May 18 14:07:48 A cast May 18 14:07:58 Or an implements check May 18 14:10:06 instanceof* May 18 14:12:15 autrilla: A cast to interface like (InterfaceClass) context? I'm getting "AsyncTaskName(My.Interface) cannot be applied to android.context.Context". May 18 14:13:02 so it is not a runtime issue, where a check would help, but something my IDEA shows May 18 14:13:40 For example your interface is called ICheckable, your Activity or whatever implements it May 18 14:14:05 You would have to create an AsyncTask May 18 14:14:58 Or create a subclass of Context that implements that interface, for example CheckableActivity extends Activity implements IChackable, and make your AsyncTask ask for a CheckableActivity May 18 14:15:08 I override onFling in GestureListener on scrollview (to hide an overlay). Now the scrollview doesnt behave well when "flinged". It stops abruptly. How can I get that smoother scrolling back? May 18 14:19:40 autrilla: I will have several fragments that all implement this interface. How do I generalise so my asyntask could accept any of these? Should I create a class between Fragment and the final fragments, or there is a more sane way? May 18 14:19:56 That's a sane way May 18 14:20:06 Cool, thanks! May 18 14:21:09 Gosh this looks so hacky: http://pastebin.com/9KR5X7Zj May 18 14:23:24 Especially considering the fragmentmanager retains fragments for you if you give them a tag May 18 14:23:29 I dont think onRestoreInstanceState is a good way to handle changes. Atleast I read it at many places (and I dont remember where). But let more experienced people comment. May 18 14:24:03 SimonVT, it retains the Fragment, but I don't think it places it into the container right? May 18 14:24:29 No, it places them into their containers May 18 14:24:39 Oh, then this code just isn't needed May 18 14:24:46 Does it handle the backstack too? May 18 14:25:23 yes May 18 14:28:05 SimonVT, but it does not set the spinner selection, so... I still have to set it May 18 14:28:52 android development helped me forget my girl friend and wife :D \:D/ thanks android May 18 14:31:49 WantToCode, what's a better way then? May 18 14:34:26 Mostly there's no reason to wait until onRestoreInstanceState to restore state, but there's no issue doing it May 18 14:35:02 SimonVT, I still have to bundle the fragment on onSaveInstanceState, right? May 18 14:35:52 What? May 18 14:36:50 SimonVT, getFragmentManager().putFragment(outState, getFragmentManager().findFragmentById(R.id.container).getClass().getName(), getFragmentManager().findFragmentById(R.id.container)); May 18 14:37:06 No May 18 14:37:14 Then I must be doing something wrong May 18 14:38:05 As I said, Fragment state is retained by the FragmentManager if the fragment has a tag May 18 14:38:07 I think the problem is I have an onItemSelectedListener on my Actionbar spinner, which creates Fragments May 18 14:39:51 autrilla: When you have tags set for your Fragment and you call setRetainInstance(true); in onCreate of your Fragment class, then the fragment is automatically retained by the manager. AFAIK. May 18 14:40:16 And I have tags set, and I call setRetainInstance May 18 14:41:54 http://pastebin.com/9Cmya7SG May 18 14:43:07 autrilla: I think there is not setRetainInstance in this code!? May 18 14:43:12 *no May 18 14:43:19 WantToCode, because this is the Activity, not a Fragment May 18 14:44:55 oh sorry, in The activity you need to check for previous fragments if available by findFragmentByTag May 18 14:45:01 http://pastebin.com/SU1dNZxw Code from my class May 18 14:46:14 I hope SimonVT could comment on this, because I am new to this myself. May 18 14:48:03 Not sure why you'd use a custom view for this, instead of the existing list navigation May 18 14:48:27 I think you would need to implement the findFragmentByTag in your onItemSelected on the line 30, autrilla May 18 14:48:48 SimonVT, because the existing list navigation is bad May 18 14:48:53 It doesn't allow theming May 18 14:48:54 But if a fragment is added to a container it will still be added to the container after an orientation change. If that's not the case, something in your code is replacing it May 18 14:50:03 SimonVT, and it's getting replaced on onItemSelected May 18 14:52:23 I added an if(fragmentManager.findFragmentByTag("shoppinglist") == null) { ... } May 18 14:53:20 And that still doesn't work May 18 14:58:55 Yep, the Spinner doesn't keep the selection May 18 15:03:55 SimonVT, fragmentManager.findFragmentByTag("shoppinglist") == null returns true, even though I created a fragment with that tag May 18 15:08:28 I don't know, works for me May 18 15:09:08 :/ May 18 15:31:40 I have a TabHost up inside an Activity, and a TabHost hosts TabSpecs (each opening an activity), tab navigation, you know May 18 15:32:17 but now I have an issue with the Menu, the onCreateOptionsMenu is not taking effect on any of the activities because naturally, they are all hosted by 1 main activity May 18 15:32:37 so if I set THAT activity's options menu, they show up, but the options for each activity do not show May 18 15:33:21 Is it possible to override the menu that shows on the browser when selecting text: https://www.dropbox.com/s/gkiy75vftfy4ii4/Screenshot%202014-05-18%2011.30.08.png … I want to add an option for my application May 18 15:34:03 here's the answer to my question, http://stackoverflow.com/questions/5618803/can-i-have-different-menu-for-each-tab-of-tabhost May 18 15:36:20 Hello guys May 18 15:36:44 i've signed my app with my certificate putted in system credentials May 18 15:36:54 good job May 18 15:37:14 but when i try to install it, require me classic permission May 18 15:37:22 dat grammar May 18 15:39:18 classic permission? May 18 15:39:55 non newfangled modern permissions here, no sir! May 18 15:41:02 some permission that i require...the point is that this should not require permission.. May 18 15:41:44 because is authorized by system certificate.. May 18 15:41:57 permissions are not restrictive or permissive of installing the apk May 18 15:42:02 they are for things that the APK will perform May 18 15:42:28 you will understand as much of my answer as I did from your question May 18 15:42:30 hehe May 18 15:42:50 Yeah, try phrasing an understandable question May 18 15:44:28 isnt the certificate merely to identify the developer? May 18 15:44:41 what does that have to do with what permissions your app needs May 18 15:45:28 that link about separate Menu for each Tab in the TabHost, did not end up working May 18 15:45:37 if i sign an apk with a private key of a system certificate, it should not require permission for perform something..i'm right? May 18 15:45:52 those two things have nothing to do with each other May 18 15:46:13 back to the drawing board May 18 15:47:04 basically you are wrong exec May 18 15:48:10 why? May 18 15:48:31 dude! May 18 15:48:46 app permissions have nothing to do with signing the APK May 18 15:49:10 "If I walk really fast, will I be able to understand nietzsche better?" May 18 15:49:54 The Android system requires that all installed applications be digitally signed with a certificate whose private key is held by the application's developer. The Android system uses the certificate as a means of identifying the author of an application. May 18 15:50:07 in a TableRow how can i configure one element to take 3 columns ? May 18 15:50:47 makes prev question sound OK :P May 18 15:51:00 Sicp also if signing is executed by a certificate added to "system certificates"? May 18 15:51:34 not a simple certificate, but a CA certificate May 18 15:51:59 no matter what you do, there is no relationship between what the permissions that an app might require to perform certain things and the validity of the APK that harbors that "app" May 18 15:52:24 njcomsec you're right for classical use of certificate.. May 18 15:58:38 I did this test program in android http://pastebin.geany.org/6o0BF/ http://pastebin.geany.org/iRC5W/ . It writes a txt file when click in grabar and show its content when click recuperar. but the problem is that It doesn't create file May 18 16:00:10 and I changed the permissions in AndroidManifest to android.permission.WRITE_EXTERNAL_STORAGE May 18 16:05:31 So, what are the advantages for an app signed with a key of a system certificate..why when you add a user certificate, it require wi-fi,vpn and also APP...i think there are some pros.. May 18 16:10:53 ok, i've find a paper that explain it...i think.. May 18 16:17:12 any idea how to achieve this? http://stackoverflow.com/questions/5618803/can-i-have-different-menu-for-each-tab-of-tabhost May 18 16:18:00 using onPrepareOptionsMenu inside the host activity (the activity with hosts the tabHost) will work, but you cannot then have the listeners for those menu items defined in that activity because their code reaches into other areas that have nothing to do with the host activity May 18 16:18:28 all else will not take any effect (i.e. onCreateOptionsMenu/onPrepareOptionsMenu of each activity inside the TabHost) May 18 16:18:35 the menu does not show up May 18 16:19:08 and defining the listeners in their own activities causes an exception of course because it XML cannot find the corresponding onClick May 18 16:19:52 let me try and define their listeners in the traditional way (i.e. onOptionsItemSelected of corresponding activity) May 18 16:22:49 nope, the listeners need to be defined inside the activity which inflates that menu May 18 16:23:28 is it normal for a dev to write an ugly but functional piece of code, then rewrite it completely just to make it legible? May 18 16:24:31 meh, nothin May 18 16:28:17 Fpr detectomg swipes, I overrided onFling of the scrollView. The purpose was completed but now the natural flinging animation is now gone. How can I get it back? May 18 16:47:02 How exactly do i use constants? Are they used in event handlers, or do I poll them, or what? May 18 16:58:07 anyone know what these "requestLayout() improperly called by android.widget.ListView" warnings relate to? May 18 17:08:00 Im trying to pass an arraylist but im getting an error "expression expected" on this line: bundle.putIntegerArrayList("name", ArrayList list); May 18 17:08:53 "ArrayList" is underlined in AS it seems to be causing the errr May 18 17:08:55 error* May 18 17:09:27 does anyone know how to fix this error with hugo public void sendMessage(String recipientUserId, String textBody) { May 18 17:09:35 Error:Execution failed for task ':app:compileDebugJava'. > Could not find property 'bootClasspath' on com.android.build.gradle.AppExtension_Decorated@2b3967a2. May 18 17:09:50 Radzell, use android build tools 0.10+ May 18 17:10:03 classpath 'com.android.tools.build:gradle:0.10.+' May 18 17:10:55 I tried that I saw that as a answer on this forum a while ago. May 18 17:11:20 Are you sure it is on your top-level build.gradle? May 18 17:11:55 oh I'm stupid May 18 17:12:01 thanks May 18 17:12:06 ;D May 18 17:13:41 if I use: bundle.putIntegerArrayList("name", list); I get a "cannot be applied to bundle" error May 18 17:13:58 it seems that is used for sending String arraylists May 18 17:17:39 Im just trying to pass an arraylist of integers from one activity to another in bundle May 18 17:18:37 but the: putIntegerArrayList(key, value), gives me an error May 18 17:20:44 error "putIntegerArrayList (String, java.util.ArrayList) in Bundle cannot be applied to (String, java.util.list) May 18 17:20:55 does that mean Im trying to pass a List not an arraylist May 18 17:21:23 List list; list = new ArrayList<>(); May 18 17:21:58 Yep, that's a List May 18 17:22:34 that explains it May 18 17:23:50 SimonVT, can you provide any code that retains Fragments with tags? I can't figure out why mine doesn't work May 18 17:25:12 getSupportFragmentManager().beginTransaction().add(R.id.content, new MyFragment(), "fragmentTag").commit(); May 18 17:25:38 SimonVT, I'm not using the support fragment manager, does it matter? May 18 17:25:44 No May 18 17:25:58 huh May 18 17:26:10 And it should work with .replace too May 18 17:26:30 Yep May 18 17:27:59 And if I called fragmentManager.findFragmentByTag("mytag") on onCreate, it shouldn't return null (after an orientation change) May 18 17:28:12 Right May 18 17:28:48 But it does May 18 17:28:59 As long as a fragment with myTag was added to the fragmentmanager before the orientation change May 18 17:29:18 SimonVT, well, I do this: fragmentTransaction.replace(R.id.container, shoppingListFragment, "shoppinglist"); May 18 17:29:49 And I use the same tag for findFragmentByTag May 18 17:33:17 If you create a sample app you'll see that this is the behavior.. I don't know where you broke it May 18 17:45:30 SimonVT, something is very wrong. On onCreate, even fragmentTransaction.replace(R.id.container, shoppingListFragment, "shoppinglist"); Log.d(getClass().getName(), (getFragmentManager().findFragmentByTag("shoppinglist") == null) + ""); returns true May 18 17:47:05 Transactions don't happen immediately when you call commit, they're posted to the message queue May 18 17:47:33 I guess it runs on another thread, right? May 18 17:47:42 So a thread sleep of a couple of seconds should do the trick May 18 17:48:12 No, it's on the main thread May 18 17:48:18 It's just posted to the back of the message queue May 18 17:49:40 SimonVT, so is there any way to simulate it? May 18 17:50:16 You can call executePendingTransactions to have them happen immediately May 18 17:51:58 SimonVT, now it returns false. Something else is broken May 18 18:05:16 Heyy. I need one clarification. Does describeContents() method of class UsbDevice return the device descriptor? The documentation at http://developer.android.com/reference/android/hardware/usb/UsbDevice.html#describeContents() is odd and unclear. May 18 18:07:48 Is there any way to load Activity classes from a dex file which does not involve reflection? Ruboto does it as well to load Activity components https://github.com/ruboto/ruboto/blob/e961c186add5c89d82f922966d24a2f685d42560/assets/src/org/ruboto/FrameworkHack.java May 18 18:07:57 I guess this way is okay then? May 18 18:11:55 ok I believe I am succesfully bundling the arrayList........bundle.putIntegerArrayList("name", list); ....... but now I am having trouble retrieving it........ArrayList list = getIntent().getIntegerArrayListExtra("name"); gives me a nullPointerException when I try to use it................ May 18 18:12:36 SimonVT, I think it's broken because of the Spinner, it doesn't retain selection May 18 18:12:43 so I am trying: Intent receivedIntent = getIntent(); ...... Bundle bundle = receivedIntent.getExtras(); ...... ArrayListlist = bundle.get("name"); ...... but this is giving me an error: Required ArrayList, but Object found May 18 18:13:14 And the spinner gets recreated every time onCreate is called May 18 18:16:39 do most people just use sqlite for using data between activities? May 18 18:16:59 no May 18 18:17:00 Is there any place else I can ask my Usb Host mode related question? No one seems to answer here. :( May 18 18:19:13 stackoverflow.... guess I'l put my question there too May 18 18:19:49 Yeah.. I'll give it a shot. May 18 18:19:57 *sigh* May 18 18:20:01 basics of java. cast stuff. May 18 18:20:28 me? May 18 18:21:14 yes May 18 18:21:58 Go ask at ##java May 18 18:22:51 Weekends are slow days here May 18 18:23:32 If all you paste is random lines of code that doesn't give nearly enough information to debug the issue, you're unlikely to get any help May 18 18:24:52 Likewise if you paste your entire codebase when only a few lines are relevant May 18 18:25:21 ok I will pastebin only what could be relevant May 18 18:27:48 I didn't understand what describeContents() did but for device descriptor one needs to use UsbDeviceConnection.getRawDescriptors(). Sorry for bothering you guys. May 18 18:32:49 http://pastebin.com/wbQAzv9X May 18 18:34:01 line 85 is giving me the error. ArrayListlist = bundle.get("name"); .... so it might be to do with casting.......I guess bundle.get("name"); maybe expects something else May 18 18:35:18 Gosh, ArrayList list = (ArrayList) bundle.get("name"); May 18 18:35:20 Go learn Java May 18 18:36:01 Or just use getIntArray May 18 18:36:38 So much noise.. You also forgot to paste the part where you set the extras on the intent May 18 18:37:11 SimonVT, his issue is very simple, just basic java as mavrik said May 18 18:37:26 Also he must be using a very lousy IDE May 18 18:37:26 And use getIntegerArrayList May 18 18:38:57 yes I know I need to improve my Java skills May 18 18:39:37 A lot May 18 18:39:50 i pasted all my code May 18 18:40:07 I'm going to guess you posted one class May 18 18:40:30 oh I didnt paste the bit I commented out May 18 18:40:36 which didnt work May 18 18:40:40 I'm going to guess you posted the Activity that's being executed, and not the one executing it May 18 18:41:59 njcomsec: You create a bundle, put an arraylist in it, then use it for nothing May 18 18:42:45 And for future reference, the relevant part would be your click listener along with where you try to read the extras in the new activity May 18 18:42:51 Not all that other crap May 18 18:43:54 SimonVT, I think I've found the problem, the fragments are being kept. May 18 18:43:59 But now I have another one May 18 18:44:42 oh nbm May 18 18:44:44 nvm* May 18 18:47:53 Right. Sorry I was uncertain. May 18 18:50:54 SimonVT, if the Fragment were being persisted, EditText text should be persisted too, right? May 18 18:51:31 Yes, views which have an id has their state saved May 18 18:53:13 Then I don't understand at all why they aren't being persisted May 18 19:02:51 Now to even weirder stuff. I set the selection to 2 on the Spinner and the Listener triggers for 0 May 18 19:03:00 That's just great May 18 19:05:03 After adding support library appcompat_v7, I am having error "The hierarchy of the type WebsiteListActivity is inconsistent" on almost all the classes. Tried re adding everything, also tried to add remove v4 too, nothing working! May 18 19:05:59 For some weird reason 0 gets selected May 18 19:07:28 autrilla: dealing with fragment thingy? Can I help? I just joined May 18 19:07:43 Sure, it's not Fragment stuff though May 18 19:08:19 I set the selection for my actionbar Spinner to 2, and then the listener is triggered for 0 May 18 19:09:07 Unrelated to the Fragments, which I still haven't been able to retain May 18 19:09:34 Once something like this was happening with my listview, I tried to make the "mActivatedPosition" static and it work, you can try that. May 18 19:10:00 mActivatedPosition? May 18 19:11:40 sorry, i saved the "position" from the getView as static mActivatedPosition and used it everywhere. position variable was giving me 0 everywhere but the static variable was giving me proper position May 18 19:12:02 It's not a ListView, it's a Spinner May 18 19:12:36 I am just giving an advice, maybe it can work with your case too May 18 19:13:23 Saving the position in a static variable could cause issues if the process is killed. The position would be out of sync with the rest of your state May 18 19:13:53 I am saving it on SharedPreferences May 18 19:13:59 What would be the correct way of doing it then? May 18 19:14:08 I set it as 0 in onDestory(), SimonVT . Does it help? May 18 19:15:27 Alright, I've removed every unrelated line of code. http://pastebin.com/950nurAU it is called on onCreate May 18 19:16:12 No. The state of added fragments are saved even if the process is killed. Once relaunched, previously added fragments would be recreated and added to the content May 18 19:16:24 Your position would be 0, but it might be the fragment for position 3 that's shown May 18 19:16:58 Shared preferences is also not the right place to save something like this, onSaveInstanceState is May 18 19:17:57 Thanks SimonVT , I'll relook into it again. May 18 19:18:08 I'm thinking May 18 19:18:43 SimonVT, why would the position be 0? May 18 19:19:48 I manually set the selection, so it shouldn't be 0 May 18 19:20:27 Setting an adapter clears state of adapter backed views, that might be it May 18 19:21:00 In the third line, if getInt(SELECTED_POSITION, 0)) means that the default value is 0, It maybe so that the "sharedPreference" is null that's why it is always returning 0? May 18 19:21:18 No, the value on SharedPreferences is not null, it's 2 May 18 19:23:02 SimonVT, yep, the adapter seems to clear the state. Now it works, though Fragment state is still not being kept May 18 19:23:55 They have a tag, the position is being kept... May 18 19:24:52 question on layouts: I have an edittextbox in my prefs.xml and it is correctly masking the text, but is there a way I can set a default "greet" string? Perhaps greyed/italicized? May 18 19:25:11 revision to the above: the edittextbox is being used as a password box May 18 19:25:51 since I have android:inputType="textPassword", any text I put in there by default shows as pw characters May 18 19:26:26 http://stackoverflow.com/questions/5387985/android-edittext-for-password-with-androidhint May 18 19:26:40 autrilla: thank you kindly. hint is a good keyword i didnt think of May 18 19:26:55 :) May 18 19:33:30 I fixed it using putextra instead of bundle May 18 19:45:32 anyone know what causes a "requestLayout() improperly called" warning? May 18 19:52:21 if I were to have a desktop project in android studio with gradle, is there a way to compile a jar? May 18 19:52:55 What? May 18 19:54:35 I want to generate the jar file for a desktop project in Android Studio. Maybe I'm missing something obvious. May 18 19:55:42 I didnt know AS could make desktop apps May 18 19:55:46 I use libgdx, which allows the same code to be used for an android and a desktop project. May 18 19:56:00 Hey, quick question. Do you know how to remove the holo light that marks when a tab is selected on the ActionBar.Tab? May 18 19:56:08 I can run the desktop project from android studio which works fine, but I don't see a jar anywhere May 18 20:00:43 Use IDEA May 18 20:00:46 Instead on AS May 18 20:03:32 does canvas understand gif transparency? May 18 20:08:02 ~tias May 18 20:08:43 And no, from a simple google search, you can't use gifs on canvases for transparency. Use PNGs May 18 20:09:54 Alright, got a lot of trouble importing my projects into another IDE, but if that's the only option I'll keep trying May 18 20:10:17 I'm sure there's another way, but I just prefer using IDEA May 18 20:10:28 It's simpler to do that kind of stuff May 18 20:11:15 autrilla: ty May 18 20:19:38 Why don't my Fragments get persisted? I create them with this: http://pastebin.com/950nurAU it is called on onCreate May 18 20:25:27 Good night autrilla. Best of luck. :) May 18 20:25:36 GOod night, thanks! May 18 20:30:21 this is weird. my nav drawer closes itself when an item is selected, but lets say i select something and go to another activity. when i press back, the drawer is open again. i dont get it. its closed when i first enter the activity, i see it closing when i select something May 18 20:31:48 g00s: probably an ordering issue w/ the close/activity/store state stuff May 18 20:32:27 can i view exceptions while running the application i wrote on my android phone ? May 18 20:32:41 dragorn : closeDrawer() is called before startActivity(). but yeah some weird race thing? May 18 20:32:47 g00s: that's my bet May 18 20:36:47 any webview guru's feel like tackling my question? http://stackoverflow.com/questions/23717844/webview-social-login May 18 20:36:58 if anyone can point me in the right direction please let me know May 18 20:37:13 there are no webview gurus May 18 20:37:27 webview is inscrutable even to the brightest minds May 18 20:37:32 there only madness lies May 18 20:37:36 I used to think I was one, then I came upon this problem May 18 20:37:44 lol very true, this is maddening May 18 20:43:04 Hi guys May 18 20:43:07 dragorn yeah, seems like race condition. i put log statements in the drawer open and close listeners. when I do: close() startactivity() then the log for close() doesn't fire May 18 20:43:20 but if i do close() without startactivity() then the log fires May 18 20:43:35 someone know how self signed certificate in system credentials can be used?? May 18 20:44:03 you can only edit the system credential store on a rooted device, or in a custom rom May 18 20:44:20 yes, i've rooted device.. May 18 20:44:24 you can use your own SSL chain and write your own trustmanager plugin for it in your app, however. Just don't f it up. May 18 20:44:42 we're app-dev centric so #android-root is probably where you should ask May 18 20:44:54 if you're trying to do something w/ rooted custom stuff May 18 20:44:57 is there some way to check which minimal-API version i would need for a project? been developing with min/max api set to 16, but would like to use the lowest possible setting May 18 20:45:35 PatrickBic there are reasons not to use the lowest possible setting, from a technical sense ;) May 18 20:45:44 you'll have older devices, more devices, more bugs May 18 20:45:52 :) thanks May 18 20:45:55 its probably more of a software ROI choice now May 18 20:46:06 g00s, the devices i run it on, are all within my control ;-) May 18 20:46:08 software economics, rather than 'technical feasibility' May 18 20:46:15 PatrickBic: 2.x devices are about 20% to 25% still May 18 20:46:16 i am just curious which version i could use May 18 20:46:25 dragorn, 10% from what i read on the android page lately May 18 20:46:34 PatrickBic lint will tell you May 18 20:46:48 PatrickBic: maybe. w/in the last few months i saw 25% reported in the network category by the store, so i dunno May 18 20:47:01 is this some setting or as in project reports an error if set too low? May 18 20:47:02 anyhow, you have to decide if you care about them May 18 20:47:19 hopefully things like the moto E will nuke the shitty 2.3 phones still being sold May 18 20:47:29 dragorn, https://developer.android.com/about/dashboards/index.html?utm_source=ausdroid.net May 18 20:47:39 ~ 17% with everything prior to 3.x May 18 20:48:24 g00s, so setting it to like (in example) minApi Version 1 in the manifest, and cleaning the project should report an error, right? May 18 20:48:42 hm, i think you need to run lint May 18 20:50:17 well, lint runs automatically if i do save any xml file within the project May 18 20:50:28 cool May 18 20:50:35 http://developer.android.com/tools/debugging/improving-w-lint.html <- May 18 20:50:46 i think in AS i have to run it explicitly May 18 20:51:51 well, i dont use AS ;-). May 18 20:51:59 g00s, anyway, thanks for the hint with lint =) May 18 20:53:13 Hi Guys , what's best language to write android softwares ? May 18 20:53:48 Java May 18 20:53:58 Why ? May 18 20:54:00 C++ is your other option. May 18 20:54:06 how about C# ? May 18 20:54:29 Nope. Java and C++ are the only 2 supported, and Java is the most common. May 18 20:56:45 autrilla, you just hit compile project with IDEA? Where is your .jar located then? May 18 20:57:02 you can make android apps in javascript using phonegap May 18 20:57:22 Joozey, export May 18 20:57:36 I think May 18 20:57:37 Google it May 18 20:57:51 http://stackoverflow.com/questions/2025607/how-to-create-a-jar-file-or-export-jar-on-intellij-like-eclipse-java-archive-e May 18 20:58:55 Hm. Looks like I'm wrong. You can write android apps in C# using Xamarin. I've never used it, though. May 18 20:58:57 http://xamarin.com/android May 18 20:59:31 yes May 18 21:00:02 pwnedu46: also monodevelop May 18 21:03:55 Thank you all mentioned May 18 21:04:04 Why don't my Fragments get persisted? I create them with this: http://pastebin.com/950nurAU it is called on onCreate May 18 21:04:50 I have an activity where I show the user all his fb friends in listview, and for some reason my customadapter.getView always getting the wrong position May 18 21:05:24 from debugging I see that it does gets an arraylist with 100+ elements, but when I'm logging the position its shows me: Pos: 0, 1, 2, 3, 4, 5, 6, 0 May 18 21:05:36 So? May 18 21:05:43 and then I have scroll of 100+ contacts which is basicaly the same ones May 18 21:05:48 It only runs getView for the elements on the screen May 18 21:05:49 basically May 18 21:06:00 yeah but it doesn't run getView again May 18 21:06:09 only once with this six positions and thats it May 18 21:06:11 pastebin the adapter please May 18 21:06:15 one sec May 18 21:06:46 watching android unfiltered logs is frightening May 18 21:07:01 i keep seeing weird stuff like 05-18 14:04:41.475 14032-14032/? E/GCoreUlr﹕ Error deleting /data/data/com.google.android.gms/files/flog May 18 21:07:22 and strictMode policy violations in gapps May 18 21:07:50 like com.google.android.apps.gmm.map.l.a.c.b(SourceFile:67) May 18 21:08:01 you're lucky.. on my main device i get tons of adreno320 (gpu) driver log things.. cant even read without filtering ;-) May 18 21:08:35 autrilla, http://pastebin.com/qZJ1hSzQ May 18 21:09:36 seems like everything is always blowing up :| May 18 21:09:49 9/11 all over again? :o May 18 21:10:00 L8, it seems ok. Print the rowItems and see if they repeat May 18 21:10:18 autrilla, did it May 18 21:10:20 they aren't May 18 21:10:37 I believe that the getView is the problem but I can't prove May 18 21:11:27 L8, if you scroll down, what positions does it log? May 18 21:11:33 nothing May 18 21:11:36 How do i call from a bound service into the activiy? The activity can just call methods from the bound service, but i don't see how i can call from inside the service into the activity. May 18 21:11:41 huh? May 18 21:11:42 just repeats all the six ones already showing May 18 21:11:49 in the view May 18 21:11:52 but doesn't log anything May 18 21:12:23 I knew I should learn objective c :( May 18 21:12:24 Is your ListView a normal ListView? May 18 21:12:30 yes May 18 21:13:36 Hi on _all_ android 4.x phone devices is it possible to hook the native SMS app to intercept outbound messages so I can do alternative delivery of them? May 18 21:13:55 L8, I don't think it will help, but on getItemId, just return position May 18 21:14:28 compiling May 18 21:14:28 I know the sms app and google hangouts replacement and OEM replacement SMS apps would cause some extra difficulty, along with the 4.4 telephony changes May 18 21:15:02 autrilla, nope :( May 18 21:15:27 I have defined a subclass of AsyncTask and I want to make it reusable. I was thinking of creating an interface which Fragments that make use of this class might implement which defines the callback for when the task completes. Is this proper "form". Is there a better way of doing this? May 18 21:15:37 This is somewhat of a Java question, I suppose. May 18 21:15:57 L8, remove everything on the getView and just return a TextView with the position May 18 21:16:02 Comment it out May 18 21:16:10 L8 you have to always bind data to the view. ListView reuses views. Watch the world of listview from Google io if you don't know how listviews work May 18 21:16:57 since I'm not sure what do you mean by binding data, autrilla ^, does he make sense? May 18 21:17:15 L8, simonvt know stuff a lot better than I do May 18 21:17:15 Set text, load images, etc May 18 21:17:33 http://lpaste.net/104291 <- I am getting that error when trying to build all the sudden, I have restarted computer. Anyone that can help? So annoying how Eclipse bugs out every now and then for no apparent reason. May 18 21:17:51 And yes, he makes sense May 18 21:18:19 Is there a way to stipulate that a class member implements an interface? May 18 21:18:28 SimonVT, If I understand right May 18 21:18:37 I should remove the convertView == null? May 18 21:18:45 askhader, if(mObject instanceof IInterface) May 18 21:19:14 No, don't remove that.. Only create the view when convertview is null, always bind data May 18 21:19:29 SimonVT, well after removing it it started to work May 18 21:19:33 And watch the world of listview, you'll learn all about it May 18 21:19:36 L8, what he means, is ste the ImageView data and everything anyways May 18 21:19:54 Wow an hour long May 18 21:19:58 * autrilla should watch it May 18 21:20:08 SimonVT, I will check it tomorrow May 18 21:20:12 SimonVT, is there a world of Fragments and Fragment persistence? :P May 18 21:20:14 Yes, it works without it, but there's a reason why it should be there May 18 21:20:31 its like 1:20 am now May 18 21:20:46 It would take more than an hour to explain fragments :) May 18 21:21:08 SimonVT, so if I'm understanding right May 18 21:21:13 keep the if statment May 18 21:21:14 SimonVT, I've been since 4pm. It's 11pm. I think I could take a couple of hours May 18 21:21:20 and get out the databinding outside of the statment May 18 21:21:26 I've been since 4pm trying to fix this May 18 21:21:28 Yep, L8 May 18 21:21:37 :D May 18 21:22:04 and tomorrow I'm back again writing some php May 18 21:22:06 feels kinda sad May 18 21:23:01 so navigationdrawer won't remember whether it was open or closed correctly unless it settles before starting a new activity May 18 21:23:14 so if you close() then startActivity() its fucked May 18 21:23:18 p[os May 18 21:23:35 remember out-of-body and keep it in your own state May 18 21:23:39 g00s, why do you want multiple activities? May 18 21:23:47 autrilla ugh, what ? May 18 21:24:16 You said it before May 18 21:24:30 You were using more than one activity May 18 21:24:40 why use multiple activities? because thats what makes sense :) May 18 21:25:12 i'm going from one activity with the drawer to a PreferenceActivity May 18 21:25:16 So when you use fragments you exclude users with API level 8 right? How big percentage is that? Is it worth it? May 18 21:26:13 dragorn i could, when coming back to the activity, consult my own saved state, but then you would see the animation of the drawer close right awat May 18 21:27:04 https://developer.android.com/about/dashboards/index.html?utm_source=ausdroid.net <- So you exclude 17.2 % + some uncertainty because phones older than API 8 are not in there. That is quitw a lot of market you exclude... May 18 21:27:04 when returning back to the initial activity May 18 21:27:22 outinputput, you can use the support library May 18 21:27:38 And I usually don't care about that 17& May 18 21:27:40 17%* May 18 21:27:50 People with old Android versions tend to be old people May 18 21:28:00 Old people don't download app May 18 21:28:02 apps* May 18 21:28:10 autrilla, another small question for today May 18 21:28:16 Go ahead May 18 21:28:20 any best practices on caching arraylist? May 18 21:28:29 Caching arraylists? May 18 21:28:40 I don't want that each time the people who will enter the activity will send request to facebook for getting his friends May 18 21:28:53 so I want to cache the result from the request May 18 21:28:57 Well, save it into a database or a file May 18 21:29:19 I doubt you really want to cache it, I think you want to save it May 18 21:29:32 by saving you mean saving to sqlite? May 18 21:29:38 autrilla, took a while but it finally works, thanks a lot for your help May 18 21:29:56 L8, or a plain text file. Wherever you want May 18 21:30:03 Joozey, no problem May 18 21:30:41 L8, http://gyazo.com/940cbf22a0cfd3884447bdc987390441 May 18 21:30:57 I've always read the domain as gayzo May 18 21:31:13 already done it :) May 18 21:31:44 thanks for the help and good night/day May 18 21:33:57 * autrilla should use a ViewHolder May 18 21:35:58 I have an AsyncTask which will trigger a callback on the class which invoked it. However, the invoker might be an instance of class A, B or C - what is the best way to implement this patternnn? May 18 21:36:06 All of A, B and C implement the callback method May 18 21:56:40 * capella wish Google play would stop telling me to enjoy my app May 18 21:57:28 Please, enjoy your app :) May 18 21:57:52 "Press continue to supply us with information" .... no cancel button May 18 21:58:52 I think it's a 4.4 thing, my 4.3 GS3 doesn't do it May 18 22:10:36 mmm ... looks like it stops nagging after you press continue at least once before pressing back May 18 22:12:52 capella there was no cancel button because google already anticipated you would press it, based on previous information you supplied to them :) May 18 22:13:59 Seems like Play decides that you've opted out, once you get pass first-run of the password-protector software it's offering May 18 22:14:44 simply hitting back instead of selecting their proffered "continue" button won't tell them anything May 18 22:15:00 as-in "don want" May 18 22:15:44 ;) Software can't take a hint May 18 22:20:55 ok; so seems this drawerlayout thing is a known issue; solution http://stackoverflow.com/questions/18343018/optimizing-drawer-and-activity-launching-speed May 18 22:21:19 so lame, since there is a delay between drawer being visually closed and onDrawerClosed() can't even use that May 18 22:21:31 basically have to hard code a delayed runnable at 250ms, yuck ! May 18 22:23:36 although that person only saw stuttering May 18 22:44:07 If the import import android.support.v4.app.Fragment; cannot be resolved, what is the problem? May 18 23:10:10 How do you get the actionbar in the support library? May 18 23:29:25 If I store login info (Uname and Passwd) in preferences, how secure is that info? Do I need to hash the passwd? May 18 23:44:13 if you hash the password, how are you supposed to use it for authenticating, Jesperhead ? May 18 23:44:49 honestly? crypto is lost on me for the most part. Im just curious if storing sensitive material in preferences is wise May 18 23:45:06 Jesperhead, if you use MODE_PRIVATE only your app can access them, plus root. May 18 23:45:20 leslie: thank you kindly for your input. May 18 23:46:50 leslie: is that an xml attribute? May 18 23:47:43 Jesperhead http://developer.android.com/reference/android/content/Context.html#getSharedPreferences(java.lang.String, int) May 18 23:47:50 yep just googled. thanks again May 19 00:06:38 So I integrate acceleration to get the speed for my moving ball. but the problem is the ball does not move immmdeitaly when you tilt the phone because the acceleration is to small. can you solve this by using normalization somehow? I want the ball to move with 1 pixel as soon as there is accelerationa nd then increase ofc. May 19 00:40:50 Android cookbook says, to share data among activities subclass Application as singleton. But programming android says many applications do not subclass Application. Should I conclude that if an app does not subclass application it does not need to share data between its activities? May 19 00:41:08 no May 19 00:41:45 alex_PP: so what is the real story? May 19 00:41:55 i wouldn't use application to share data May 19 00:42:01 that's just weird May 19 00:42:45 the documentation for android.app.Application even spells it out now May 19 00:43:00 "There is normally no need to subclass Application. In most situation, static singletons can provide the same functionality in a more modular way. " May 19 00:43:14 alex_PP: Well, cookbook says thats what android devs said to do May 19 00:43:36 android devs said they should have made Application final May 19 00:43:40 what's this book? May 19 00:43:41 linky? May 19 00:44:13 alex_PP: Android cookbook, links here http://mytensions.blogspot.com/2011/03/androids-application-object-as.html May 19 00:44:33 the link is basically a quote of the book May 19 00:45:29 wow that looks like a really stupid thing to do May 19 00:45:48 wabz: heh oreilly goofed May 19 00:45:59 whist this will work, any data you store in there isn't going to last May 19 00:45:59 First for everything I guess May 19 00:46:11 and is a real mess May 19 00:46:20 just create your own singleton object May 19 00:47:08 jamesson, what's the problem you're trying to solve? May 19 00:47:29 alex_PP: nothing really, I am just going through all the oreilly books May 19 00:47:39 i see May 19 00:47:45 maybe skip this one May 19 00:47:54 alex_PP: heh May 19 00:48:46 alex_PP: any books I whould look at besides oreilly? May 19 00:49:09 i think reto's is pretty well regarded May 19 00:49:39 http://www.amazon.com/Reto-Meier/e/B002BMF4OC May 19 00:49:42 not read it though May 19 00:51:48 alex_PP: TY May 19 00:57:25 I subclass application all the time May 19 01:04:26 it can be useful, but not for passing data May 19 01:04:55 and singletons can be done other ways not tied to the application lifecycle May 19 01:07:43 Hello, I'm having trouble enabling facial recognition May 19 01:07:54 I just have a small app to test it out - https://github.com/dkullmann/glassgoggles May 19 01:08:19 any help would be appreciated - basically I never see any faces recognized (nothing in the logs) May 19 01:20:52 How to use 'this' of Activity into OnClickListener? May 19 01:39:22 if i have 2 positive buttons in my dialog, how to know which is clicked thought 'which' parameter? May 19 01:39:46 MalekAlrwily: Use "YourActivityName.this" May 19 01:41:32 also, are you using AlertDialog? How are you getting two positive buttons? May 19 01:43:14 barbs: what difference between positive and negative buttons? May 19 01:44:52 for the purposes of the AlertDialog, it's really just a way to identify the buttons in terms of their positions - the positive button will on the right, the negative on the left, and the neutral in the middle May 19 01:45:57 they're named that way to encourage that standard May 19 01:46:17 barbs: thank you man! May 19 01:46:26 no worries :) May 19 01:47:20 anyone have any ideas about this? http://stackoverflow.com/questions/23728561/android-glass-unable-to-detect-faces-in-onfacedetection May 19 01:48:30 I'm trying to import an eclipse library project as a module into android studio, but it asks to select a module to import without showing any list. Should I create full-sized project first? May 19 02:03:10 hello May 19 02:03:52 has anybody got obb encryption working? May 19 02:05:36 my track record is spotty at best: sometimes I can mount, sometimes I don't May 19 02:13:20 http://paste.ubuntu.com/7486496/ - why is it saying cannot find symbol ? May 19 02:15:31 and good resource of android *code* design patterns ? May 19 02:15:52 IamTrying: the first parameter should be a Context; is that your case? May 19 02:16:37 peres: YES Context is in this case: org.appspot.apprtc.AppRTCClient May 19 02:16:48 and that is this May 19 02:16:57 IamTrying: so AppRTCCClient is a subclass, you mean? May 19 02:17:12 peres: YES May 19 02:20:52 IamTrying: does it build if you pass it in a variable of type Context? May 19 02:21:52 peres: No i tried Activity.this or getActivity() but failed May 19 02:27:01 IamTrying: looking at the AppRTCClient in webrtc, I can see it doesn't subclass Context May 19 02:27:25 IamTrying: you are probably doing something different, I suppose? May 19 02:30:09 peres: Well from AppRTCClient i want to use the Toast (for debug ) May 19 02:32:46 IamTrying: does your AppRTCClient really extend Context? May 19 02:33:49 peres: Not really no May 19 02:34:15 IamTrying: some lines ago, I asked: "the first parameter should be a Context; is that your case?" May 19 02:34:32 IamTrying: your answer was 'YES', but it should have been 'NO' May 19 02:34:33 what's a good starting salary for a nyc-based android developer fresh out of college? May 19 02:34:54 IamTrying: and that's your problem: you need to pass a subclass of Context as the first parameter of makeToast May 19 02:35:34 IamTrying: the compiler is telling you that it cannot find "makeText(org.appspot.apprtc.AppRTCClient,java.lang.String,int)" May 19 02:36:28 IamTrying: if your AppRTCClient had been a subclass of Context, the compiler would have been able to resolve the type of the first parameter correctly May 19 02:36:32 peres: private AppRTCClient appRtcClient = new AppRTCClient(this, gaeHandler, this); // this is how calling the subclass May 19 02:39:20 public AppRTCClient( Activity activity, GAEChannelClient.MessageHandler gaeHandler, IceServersObserver iceServersObserver) {} May 19 02:40:07 IamTrying: since you are passing your Activity into AppRTCClient, why don't you expose it to the method that creates the Toast? **** ENDING LOGGING AT Mon May 19 02:59:58 2014