**** BEGIN LOGGING AT Fri Apr 18 02:59:59 2014 Apr 18 03:00:03 viktech: so probably not the skillset needed for that. Could also try android-root. Apr 18 03:00:05 * shmooz slaps mogg49 Apr 18 03:00:15 viktech: no-one checks CRLs Apr 18 03:00:20 fail on my part. Apr 18 03:00:23 g00s: lets try that again Apr 18 03:00:27 g00s: no-one checks CRLs Apr 18 03:00:33 g00s: apple doesn't either, nor does chrome Apr 18 03:00:41 i do :( Apr 18 03:00:46 * viktech sec wonk Apr 18 03:00:56 but doesn't chrome update itself with a CRL? Apr 18 03:00:57 g00s: the problem with CRL checking is every SSL query then has to bounce off a remote server so everyone drops it Apr 18 03:01:05 yeah, they dont use OCSP Apr 18 03:01:23 g00s: plus, y'know. it's difficult. Apr 18 03:01:36 ;) Apr 18 03:01:39 g00s, is it because their brains lack the bandwidth or processing power to deal with the huge data from 3d? Apr 18 03:01:42 g00s: plus everyone just googles "ssl error android" and plugs in some shitty "bypass all cert checking" Apr 18 03:01:59 haha Apr 18 03:02:14 g00s: 'cause, y'know. security is hard. Apr 18 03:02:28 it is, i get nervous thinking about it ;) Apr 18 03:02:29 g00s: me? bitter? what? :P Apr 18 03:04:57 i think you can download CRL, then you don't have to look it up to a remote server every time Apr 18 03:04:58 smallfoot-: possibly. return to, "it's hard" so no-one does it Apr 18 03:04:58 g00s: anyhow, it's that footnote in all the docs that says "you should really check the crl" and no-one does it. I'm massively unsurprised. :P Apr 18 03:04:59 hey guys Apr 18 03:04:59 maybe i' don't understand, i think android should have some lightweight but centralized way to update its trustore Apr 18 03:04:59 not rely on carriers, oems, etc. has to get pushed by google Apr 18 03:04:59 g00s: and I'm grateful every day I can throw crypto problems at the experts at work and say "make this not suck, k, thx" Apr 18 03:05:00 anyone know any good resources for unit testing android? Apr 18 03:05:00 :D Apr 18 03:13:48 i must ask this boneheaded question; are the we've all made custom views and used … but an attr can have as its parent also Apr 18 03:15:44 in that case, what exactly is it then ? Apr 18 03:16:57 if you're using the same attr in a lot of styleables, declare it in resources with a type, then only a name in all the stylables Apr 18 03:16:59 g00s, Apr 18 03:17:04 i think that's what it's for Apr 18 03:17:13 i hate working with the attrs stuff Apr 18 03:17:57 g00s, line 34 onwards https://github.com/JakeWharton/Android-ViewPagerIndicator/blob/master/library/res/values/vpi__attrs.xml Apr 18 03:18:32 alex_PP thanks i will take a look Apr 18 03:20:24 the styles / themes part of the docs is OK, i just feel like i'm missing some overarching first principle :) Apr 18 03:20:38 when i dive into the platform attr.xml / etc Apr 18 03:20:56 hello all Apr 18 03:21:32 does anyone know of an exploit like psneuter to push into a 4.4 device Apr 18 03:21:43 for root Apr 18 03:22:18 freddy57 please see our topic ;) Apr 18 03:23:17 if I'm trying to use an image for a background, how can i ensure that it'll scale properly across all devices? Apr 18 03:23:47 g00s, so i should ask somewhere else? Apr 18 03:24:02 yes, like the topic suggests android-root ? Apr 18 03:24:17 genius Apr 18 03:26:40 while im here i must ask does know anything about development for biometric security features of the the new samsung device and would the be able to print finger prints or heart rythm patterns? Apr 18 03:26:56 If I have an image that i'd like to use as a wallpaper, and im testing it on my own development device, how can i make sure that itll scale properly on other devices? Apr 18 03:27:30 freddy57: if it's usable by third parties w/out samsung authorization they'll have libraries on their site somewhere in the developer area Apr 18 03:27:38 freddy57: I have no idea if it is or if you have to license it Apr 18 03:27:49 or if it's even exposed to non-system apps Apr 18 03:28:06 it may also simply be exposed as an account provider of some sort. who knows. Apr 18 03:50:20 mantazer: what's the image? Apr 18 03:52:55 seems like there haven't been many updates to the android gradle-plugin; i'm thinking its almost done and ready for 1.0 Apr 18 03:53:22 canvs2321-: nvm i figured it out. thanks though Apr 18 03:55:12 cool Apr 18 04:01:04 this bear naked chocolate granola from walmart is insanely good Apr 18 04:13:07 what is a keyboard shortcut to jump to specific line in android studio Apr 18 04:14:28 what lov is in iphonedev :| Apr 18 04:14:32 hehe Apr 18 04:15:02 slani: dunno, but can always click the bottom right where it shows current line&line index and input where you wanna go Apr 18 04:15:40 Hey, so I'm getting some really weird stuff going on with my app! When I install it from the playstore via my computer, it works fine, but if i install it from the playstore on my phone, it acts funky and resets when it shouldn't. Apr 18 04:16:10 What on earth could cause some a strange inconsistency? Apr 18 04:16:36 resets what Apr 18 04:22:43 resets the current state, it goes back to the title screen Apr 18 04:25:39 RetroDude: it's still a bit vague, you should give more details, on what you are doing and how, and the code that is faulting. Install it from playstore via computer? as in play store on emulator? or..., you need to give more specific details Apr 18 04:27:32 canvs2321: and what is the shortcut to open linenumber window Apr 18 04:29:13 Here is what is happening, if I install my app via play.google.com on my computer, it installs to my phone and the app works perfectly. If I install it from my phone by through the playstore icon, it installs the app fine, but it doesn't resume where I left off when I pause the game and return to it. Apr 18 04:29:42 does that make sense? Apr 18 04:29:54 one version resumes after pausing, one does not. Apr 18 04:30:22 No, it does not, what you're describing is not possible Apr 18 04:30:24 slani: google it, i don't know the shortcut, but pressing 3 or more keys at a time just to do the same thing that a one level click moving your mouse down a little bit gives you the exact same thing Apr 18 04:30:45 you are confusing doing certain things with different installation methods Apr 18 04:30:57 RetroDude: sounds like some permission difference so its not saving the state or something Apr 18 04:31:15 how do you install app on computer and it installs on phone? what do you mean installs on computer? Apr 18 04:32:24 Why would the permissions be set differently from one installation method versus the other/ Apr 18 04:32:52 eg, you're launching it differently Apr 18 04:32:55 canvas, I just explained, if you go to play.google.com you can install apps directly onto your phone from the website. Apr 18 04:33:06 has nothing to do with permissions Apr 18 04:33:30 i have 4 t Apr 18 04:33:32 you probably use the open button in play vs using the launcher, etc Apr 18 04:33:47 yes, that it true, I did use the open button versus the launcher Apr 18 04:33:48 RetroDude: maybe you uploaded different version to playstore Apr 18 04:35:11 alex_PP quick q; "even if you create a new attribute inside of a element it can be used outside of it and you cannot create another attribute with the same name of a different type." so what difference does it make to declare it in or out of declare-styleable? is it more for your note that its supposed to be used somewhere ? Apr 18 04:37:17 hm ok its needed for the custom view Apr 18 04:38:09 RetroDude: actually you didn't explain, you said you installed onto your computer multiple times, which makes no sense....thats where your choice of words make reading harder. but anywho hope you figure it out, just learn terminology alittle better Apr 18 04:38:12 google should just link to this in the android docs, since they are too lazy to flesh it out themselved ;) http://stackoverflow.com/questions/3441396/defining-custom-attrs Apr 18 04:40:58 canvs2321: Ctrl+G Apr 18 04:41:37 why does using the open button versus launching the app change its behavior? Apr 18 04:44:06 If I have a ListView populated by items in another XML file, how do I set onClickListeners for each of the items? Ie i want the Button in the first item in the list to have the same listener as the Button in the second item of the list, but also have separate onClickListeners for each ImageView in a List entry Apr 18 04:44:31 So im trying to change the image of an imageview. the image exists in a drawable folder under res. whenever i call .setImageResource(R.drawable.image) or .setBackgroundResource(R.drawable.image) the app crashes with a null pointer exception. any ideas? Apr 18 04:44:37 btw they are png files Apr 18 04:45:31 your image is probably OK; you probably didn't do findVieById ;) Apr 18 04:45:57 myImageView = (ImageView)findViewById(....) Apr 18 04:46:07 MyImage is probably null Apr 18 04:46:20 Is there a way I can set my GPS coordinates from a terminal? Apr 18 04:46:26 on my PC over USB Apr 18 04:47:03 the emulator wont open for some reaosn Apr 18 04:47:22 GEEGEEGEE i'm sure google has an answer Apr 18 04:47:42 search for 'mock location' ;) Apr 18 04:52:57 yeah ive been using the mock location with a mock location app from the appstore, but I cant find a way to do it from a terminal on my pc which would be a little easier Apr 18 04:56:28 is onDestroy method allways called after onPause method. or can system call onDestroy without prior call onPause Apr 18 04:56:31 ? Apr 18 04:57:15 it is always called after onStop which is always called after onPause Apr 18 04:57:19 what about onStop? Apr 18 04:57:53 what about literacy? Apr 18 04:57:55 onDestroy might never be called if the process is killed, but at that point you shouldn't care. the key is to not rely on onDestroy Apr 18 04:58:13 not to rely on it for significant things, that is Apr 18 04:58:50 hm Apr 18 05:00:07 why then my sesnoreventlistener is still register if I cahnge screen orientation and I only call unregister in onPause mthod?? Apr 18 05:00:08 doom to the system that kills my app Apr 18 05:01:39 changing orientation destroys the activity Apr 18 05:01:55 yes Apr 18 05:02:42 then onPause method is not called Apr 18 05:02:44 ??? Apr 18 05:03:19 slani the docs on this part of android are actually OK Apr 18 05:03:26 slani: maybe pastebin some code Apr 18 05:03:33 (I'm assking about fragment) Apr 18 05:04:22 like how you declared your sensoreventlistener&where you set it etc... Apr 18 05:05:13 canvs2321: http://paste.ubuntu.com/7273032/ Apr 18 05:06:19 where are you registering it that tells you it's already registered Apr 18 05:15:04 So I have a list of custom java objects that is being inflated into a list with a custom array adapter, and one of the views being inflated into each list item is an edit text and I am wondering how to maintain a reference to each edit text associated with each item in the list of custome objects originally passed to the custom array adapter. Apr 18 05:15:09 I hope that makes some sense Apr 18 05:15:47 my hopes is to set a textWatcher on each edit text so that when the user puts in a number in one, all hte other edit texts are updated appropriately Apr 18 05:25:07 canvs2321: hm.. Apr 18 05:25:12 set your listeners in your getView of your adapter, and modify adapter data accordingly to update each view? Apr 18 05:25:31 slani: hm what? Apr 18 05:26:28 the4andy: you should mention what the relation is from modifying one list items edit text to all the others Apr 18 05:27:41 ( canvs2321) where are you registering it that tells you it's Apr 18 05:27:41 already registered Apr 18 05:28:47 im sorry i dont know that i understand what you mean, but my intention is that in the afterTextChanged of any of the editTexts in the list that it gets the value, saves it temporarily and then reapplies that same value with some cosmetic changes to each of the other editText Apr 18 05:30:30 [01:00] "why then my sesnoreventlistener is still register" if I cahnge screen orientation and I only call unregister in onPause mthod?? Apr 18 05:30:48 like it says, "this text is black = _____" "This Text is Red _______" etc etc and when a user enters text into any edit text, the txt is saved, and made a different color at the entry point of each new edit text in the list Apr 18 05:31:42 the4andy: you said modifying one list item affects all? Apr 18 05:32:01 i know how to use a text watcher and how to change the text color and all that jazz, but I dont know how to do it dynamically (if thats the correct term) so that the list of options can be gotten from a theoretically dynamic list Apr 18 05:32:05 yes Apr 18 05:32:46 affects all how? sounds like setting this text is ... = ... is list item dependent, you need to be more specific or atleast post code Apr 18 05:34:54 i dont have any working code, that is the problem. I dont know how to get the reference to each list items edit text Apr 18 05:35:34 you'd set your listeners in your adapter's getView Apr 18 05:35:57 and sorry, let me be more clear i guess, when ANY list item is changed, ALL list items change DIFFERENTLY of one another but BASED ON the change made to the list item that was changed Apr 18 05:36:30 just clicking a list item you set a listener for your listview/gridview, getting each items specific view listeners you set in the get view Apr 18 05:36:36 getView* Apr 18 05:36:52 not just clicking, like i said, there is an editText in each list item Apr 18 05:37:51 and your adapter should have a set data set, if you need others to be affected, then in your listeners/textWatchers you set in getView update your adapters data set to reflect changes then notifyDataSetChanged() Apr 18 05:39:03 basically without code, you are stuck in a theory, just try it and see to figure out what to do Apr 18 05:39:47 Sorry, let me get to where I get stuck and Ill show you Apr 18 05:46:26 canvs2321: if onDestroy is always called affter onPause. then sensoreventlistener should should not have been registered anymore Apr 18 05:51:19 Is there any widget that I can use from the API to create a view pager indicator instead of using thirdparty solutions? Apr 18 05:51:49 What is the difference between PagerTabStrip & PagerTitleStrip in this context? Apr 18 05:59:52 slani: what i'm saying is you are getting your listener as already set, where are you setting it, is it static, etc....there is a reason you are expierencing these problems Apr 18 06:00:11 post more code Apr 18 06:06:26 Anybody have any idea why do I get a “can’t resolve” error for this statement? —> import android.app.FragmentActivity; Apr 18 06:06:55 I have a bunch of editTexts in an activity that I put in a list on the java end to make traversing the editTexts for valid inputs easier. Since I do this in a setOnClickListener method, I have to make this List final. does that restrict me from editing the text in the editText? Apr 18 06:12:29 anyone say convert sqlite to mysql Apr 18 06:12:39 i mean anyone know Apr 18 06:14:08 creatorb1 maybe #sqlite knows Apr 18 06:14:16 i'm guessing, export csv Apr 18 06:15:36 canvs2321: http://paste.ubuntu.com/7273292/ Apr 18 06:16:11 g00s: export csv and build too mysql? i want to change db on assets to mysql for access online database Apr 18 06:19:00 canvs2321: Sorry about before, I threw this together, which is as far as I get Apr 18 06:19:01 https://gist.github.com/the4ndy/dfb455db49a3cd8ca089 Apr 18 06:19:52 i want to store my data online for easily update data Apr 18 06:20:17 bro, you need a web service or something Apr 18 06:21:30 There are a few problems with this set up too. It will display everything fine, but any value put into an edit text is lost immediately after the keyboard is closed......and also the first time i select focus of ANY of the edit texts it opens the kayboard for like a few millicseconds, closes it and then reopens it,but without focus in the editText, this happens with every keyboard and only on the first editText i Apr 18 06:22:13 but those issues i can look into at a later point, i need to figure out mainly how to retain the reference to each editText so that I can update them after any of them is changed. Apr 18 06:23:10 Is there a way to hide "E/SQLiteDatabase﹕ Error inserting .... " from Logcat? Ive already got a try/catch but they still show up Apr 18 06:23:46 why is it erroring ? Apr 18 06:24:22 because its trying to insert something with a already existing primary key. I intended for it to do this, and think its more efficient than doing double the queries to check if it exists or not Apr 18 06:24:48 g00s: yeah, now i trying Apr 18 07:04:49 GEEGEEGEE: I think you need INSERT ON CONFLICT IGNORE Apr 18 07:05:32 GEEGEEGEE: or, potentially, INSERT OR IGNORE depending on the rest of your sql. Apr 18 07:05:46 im using db.insert() Apr 18 07:06:24 oh theres insertOrThrow Apr 18 07:06:28 :D Ill try that Apr 18 07:07:33 GEEGEEGEE: insertWithOnConflict may be more worth considering as well. Apr 18 07:08:41 alright thanks for your help :) Apr 18 07:08:50 good luck. Apr 18 08:41:15 SDK manager is the only way to download Android API? As SDK manager is really slow here, I want to download Android API via web browser Apr 18 08:44:27 wiky, SDK manager, even though it might not look like it, will resume... Apr 18 08:48:22 * wiky is away: I'm busy Apr 18 09:02:49 Hi, currently I'm using ACRA for crash resports. Now I need to catch the crashes and send the message with an api call (no more mail via ACRA). Is it possible to just get the ACRA message (crash log) and not showing to send the mail? ACRA contains a long crash log which is good, and need this Apr 18 09:06:13 FrancescoV: you can use ErrorRporter. addReportSender Apr 18 09:06:28 and add your own sender Apr 18 09:06:51 and if you remove all senders before adding your own Apr 18 09:06:56 that will be the only one Apr 18 09:13:50 thepoosh: tnx, but send(CrashReportData report) isn't called inside my own ReportSender Apr 18 09:15:01 do I need @ReportsCrashes, I gues this isn't necessary but I'm not sure Apr 18 09:23:56 FrancescoV: did you override it? Apr 18 09:26:37 thepoosh: yes but found the problem, still need th @ReportsCrashes to get this work, now I use a Toast and do the api call Apr 18 09:38:00 I have a Thread that I stat from my main activity class after close the activity the Thread remains running but I want to show a toast to show it is still running how can I get the system context from there? Apr 18 09:38:12 FrancescoV: why not just use google play's built-in crash reporting? You can see stacktraces on your play developer page. Apr 18 09:40:35 pragma-: good question, will look for it Apr 18 09:42:48 FrancescoV: you know, that dialog you see when an app crashes? "Unfortunately, So-and-so has stopped. [Report] [Ok]" Apr 18 09:43:00 the report button sends the stack trace to your developer page Apr 18 09:44:30 It says "Sorry! The application So-and-so has stopped unexpectedly. Please try again. [Force close] [Report" on some systems Apr 18 09:45:54 http://android-developers.blogspot.com/2010/05/google-feedback-for-android.html Apr 18 09:46:34 pragma-: so the user must click on report, else you won't receive anything? Apr 18 09:49:39 hi guys.. i have a problem... how execute asynctask in splashscreen? Apr 18 09:57:39 pragma-: one bad thing with google crash report, it doesn't work for apps that aren't installed from play store, and I use deploygate to distribute the app to testers Apr 18 09:59:12 hey Apr 18 10:01:51 Im using a ArrayList> and put it into a SimpleAdapter and then ListView. How can I check if a newly added item already exist in the ArrayList? The entries are like {number=567, name=Foo} Apr 18 10:03:43 im looking for a tool that will let me put in an image and have it return scaled images for different dpis. like android asset studio, but that one forces the images to be square, which i do not want Apr 18 10:04:08 osxorgate maybe imagemagick Apr 18 10:09:12 I'm having some trouble Apr 18 10:11:53 how can I use mediarecorder to record a video without audio? Apr 18 10:14:50 I tried with myList.contains(zenumber), but it didnt work Apr 18 10:15:18 if your list contains hashmaps Apr 18 10:15:27 why are you asking it for an integer? Apr 18 10:15:38 also, remember, contains looks for same OBJECT INSTANCES Apr 18 10:15:49 and uses equals() on objects to find them :) Apr 18 10:16:05 hmm Apr 18 10:16:19 that is... it looks for instance id if equals isn't implemented Apr 18 10:16:30 IIRC hashmaps don't have equals() implemented :) Apr 18 10:18:30 Quacked thats a pretty gross data structure :) Apr 18 10:19:33 LinkedHashMap would probaly work as well if there are no duplicates :) Apr 18 10:28:02 new question Apr 18 10:28:11 difference between capturerate and videoframerate? Apr 18 10:30:49 connection not that good out here :p Apr 18 10:30:55 guys i get nullpointer when i call asynctask.. why? Apr 18 10:31:11 roxdragon: logcat? Apr 18 10:31:40 anyways, heres my hashmap in the arraylist.. I wonder if Im adding it incorrectly: http://pastebin.com/bFkRAB7m Apr 18 10:31:52 Moony22, when making a timelapse movie, you set the capture rate. The video framerate is the rate at which the frames are played back. Apr 18 10:32:39 if I dont create a new map on line 13 for every action, every line in my listview becomes identical when a new action is run Apr 18 10:33:17 Unknown0BC: This is what I'm trying to do. Does the video framerate affect the mediarecorder preview? Apr 18 10:33:46 Mavrik, with that code, how should I check for existing content in the list? :) Apr 18 10:34:26 Moony22,not sure. Apr 18 10:34:31 try it out :). Apr 18 10:34:52 thepoosh: http://paste.ubuntu.com/7274502/ Apr 18 10:35:00 Unknown0BC: are there "supported" video playback framerates? Can some devices not do certain framerates? Apr 18 10:35:23 roxdragon: SplashScreen line 49 Apr 18 10:35:23 ? Apr 18 10:36:27 thepoosh: new arrivi().new MyTask().execute(); Apr 18 10:36:41 Moony22, you can get info on a device's camera abilities with code. All devices will not support all framerates. Apr 18 10:36:54 roxdragon: that makes no sense, paste that line Apr 18 10:37:30 Unknown0BC: I think there is something wrong: I set the capture rate to 120FPS, and the videoFrameRate to 30fps - I don't see a slowing down of speed Apr 18 10:38:28 Moony22, the best way to sort it out is to read the documentation on relevant objects. Read some googled pages etc... Apr 18 10:38:30 :) Apr 18 10:38:46 it's is a call of asynctask in splashscreen and this prog = new ProgressDialog(getActivity()); is into arrivi.java.. asynctask thepoosh Apr 18 10:38:54 this is nullpointer Apr 18 10:39:06 getActivity() returned null Apr 18 10:39:11 do I have to make a new HashMap for every action here? http://pastebin.com/bFkRAB7m Apr 18 10:39:13 yes Apr 18 10:39:21 Unfortunately I cant remember it all off the top of my head now Moony22, but I wrote a time lapse app some time ago. Apr 18 10:39:48 roxdragon: getActivity can be called only after onAttach that happens after onCreate Apr 18 10:40:08 I don't think MediaRecorder.setVidoeFrameRate affects the playback speed Apr 18 10:41:26 uhm.. ok thepoosh ho can fix this? :( Apr 18 10:41:31 Ok, can someone point me to what class I'm going to need in order to create a thread that runs a listening socket indefinitely? Apr 18 10:42:08 roxdragon: execute the asynctask in the onStart as recommend in the docs Apr 18 10:43:51 I can't believe how well written the docs are :{ Apr 18 10:46:37 *connected socket indefinitely Apr 18 10:49:03 thepoosh: i have changed in onStart but i don't see my splashscreen app Apr 18 10:49:50 getActivity in thread is wrong? Apr 18 10:50:26 i have edite onStart in splashscreen only Apr 18 10:51:44 thepoosh: i have changed in onStart but i don't see my splashscreen app Apr 18 10:51:47 i have edite onStart in splashscreen only Apr 18 10:52:20 that means something else went wrong Apr 18 11:08:37 is this a weird way of adding items into a listview? http://pastebin.com/bFkRAB7m Apr 18 11:11:45 why would one use Intent.getSerializableExtra instead of Intent.getStringExtra ? Apr 18 11:13:29 thepoosh: i have moved asynctask in Splashscreen... but there is a problem... prog = new ProgressDialog(); this doesn't work,... it's nullpointer... tried on Splashscreen Apr 18 11:13:53 logcat Apr 18 11:14:19 loldragon Apr 18 11:14:29 lolcat Apr 18 11:14:34 logdragon Apr 18 11:14:51 :P Apr 18 11:15:13 lol! Apr 18 11:15:49 thepoosh: i'm confuse... prog = new ProgressDialog(); params? it's into class SplashScreen Apr 18 11:15:51 roxdragon: logcat Apr 18 11:17:57 thepoosh: but i don't know what's argoument for ProgressDialog in my case Apr 18 11:18:14 does it compile? Apr 18 11:18:25 no no Apr 18 11:18:42 :S Apr 18 11:19:04 public class SplashScreen extends Activity { ........................... class MyTASK Apr 18 11:19:43 ??? Apr 18 11:20:12 this is the structure Apr 18 11:20:36 paste that shit!!! Apr 18 11:22:52 thepoosh: http://paste.ubuntu.com/7274821/ Apr 18 11:24:23 roxdragon: why aren't you using alertdialogbuilder like it should be used? Apr 18 11:25:27 why is the progressdialog a member of the asynctask and not of the activity? Apr 18 11:25:46 i know! but i'm intrested only thread at moment Apr 18 11:26:35 Hi, if we extend ListAvtivity, can we use our own xml layout within setListAdapter instead of android.R.layout.simple_list_item_1 Apr 18 11:26:39 prog = new ProgressDialog(SplashScreen.this); Apr 18 11:29:56 yes, this workk!!! but http://paste.ubuntu.com/7274855/ Apr 18 11:29:59 thepoosh: Apr 18 11:30:38 arrivi line 101? Apr 18 11:33:24 i'm getting error ClassCastException: android.widget.LinearLayout cannot be cast to android.widget.TextView Apr 18 11:33:44 SanB: and? Apr 18 11:33:54 roxdragon: arrivi line 101? Apr 18 11:34:22 SanB, write your own list adapter Apr 18 11:34:38 thepoosh, application stops unxpectedly Apr 18 11:34:57 SanB: that is how casting fails Apr 18 11:35:19 SanB: don't cast a LinearLayout to a TextView. no unexpected exceptions regarding this. Apr 18 11:36:02 thepoosh, i'm not having any TextView in my xml file Apr 18 11:36:19 SanB: that's the issue then. Apr 18 11:36:35 SanB: full logcat please Apr 18 11:37:43 SanB: do you do `(TextView) foobar` at any place in your code? Apr 18 11:38:39 Why do i get this error everytime i start a project unable to write jarlist cache file?Do i need to worry about this error or not? Apr 18 11:38:56 thepoosh, No, iis it because instead of android.R.layout.simple_list_item_1, i used R.layout.myxml Apr 18 11:39:22 i see i was worry about and i don't have to:D thanks Apr 18 11:39:22 SanB: http://imgur.com/jacoj Apr 18 11:40:24 never mind i was reading someone other post silly me. Apr 18 11:41:27 i have a bitmap i want to display in an imageview. The width of the imageview can vary depending on device. I want the height to adjust, keeping the aspect ratio intact. How can i best achieve this? Apr 18 11:51:07 how would i perform a full text search on the values of a table layout, i have many rows in a table layout, i want to add a search field to filter out the data, please help, thanks in advance Apr 18 11:54:13 Does anyone know why this will not import android.support.v7.app.ActionBar? Apr 18 11:54:33 If i am right that make the error message. Apr 18 11:54:56 Is anyone get that error to? Apr 18 11:58:44 thepoosh, http://pastebin.com/4z2mqM5W Apr 18 11:59:06 like I said Apr 18 11:59:10 write your own list adapter Apr 18 11:59:35 ^^ Apr 18 12:02:18 but then I think it'd just be better if you read the freaking documentation first Apr 18 12:02:27 you're not going to get anywhere by guesesing how it should work Apr 18 12:04:39 Well i take i shouldn't worry about the error then. Apr 18 12:07:20 So. Sending KeyEvents programatically to other apps on rooted devices. Possible? I mean, without signing the app with system key Apr 18 12:08:12 i'd say you'd need to hook into the linux driver to do something like that Apr 18 12:09:49 My current implementation is absolutely horrible, using java.lang.Runtime.exec() to run the "input keyevent" command. This is horribly hacky, and slow (input command hangs for a second before doing anything) Apr 18 12:16:54 thepoosh, sorry but did you see the logcat details Apr 18 12:23:08 hi all happy eastern IM searching for a simple directory chooser alert Apr 18 12:23:35 isent there somthing realy easy available Apr 18 12:24:43 Zharf, u talked about writing own list adapter to whom? Apr 18 12:25:35 SanB, it's the solution to your problem Apr 18 12:26:49 Zharf, that means "but then I think it'd just be better if you read the freaking documentation first Apr 18 12:26:49 you're not going to get anywhere by guesesing how it should work Apr 18 12:26:49 " were also meant for me? Apr 18 12:30:16 Hi folks, as a newcomer to Android programming, i wonder, is it possible to read the Cell Broadcast settings stored on a device and change them from an app ? Apr 18 12:33:33 what do you mean 'cell broadcast'? Apr 18 12:35:07 In the Netherlands the government has this service 'NL Alert' where it uses text messages over GSM Frequencies to alert people. Apr 18 12:35:36 These messages are not actual SMS but are deliverd as a broadcast on a GSM Station to the whole cell. Apr 18 12:35:43 oh yeah i saw taht setting on my phone a few months ago, i don't think it's used here, but cool idea Apr 18 12:36:02 sounds like something you might be able to read, but maybe not able to change Apr 18 12:36:19 I will accept reading the settings. Apr 18 12:36:49 I have over 1000 phones that need to be checked wether they have cellbroadcast on or off. Apr 18 12:37:09 And we can't send a message to them, because that would be done by the operators. Apr 18 12:37:29 So i want to write an app that i can push to the devices to read this setting. Apr 18 12:43:01 looks like you might have to dig into internal code Apr 18 13:03:17 hello Apr 18 13:03:53 is there and identity style for SpanStyle ? Apr 18 13:10:12 Is it possible to hide picasa/hangout albums from the gallery app with the image pick intent? Apr 18 13:14:43 Is it possible to hide picasa/hangout albums from the gallery app with the image pick intent? Apr 18 13:44:07 anyone have any experience with having game assets made. How/where/cost Apr 18 13:51:25 at line 24 here, how can I set that line in listview to a specific color? http://pastebin.com/uWY1tk5R Apr 18 13:51:37 do I HAVE to use a custom adapter? Apr 18 13:52:00 04-18 16:49:24.620: I/dalvikvm(30566): Could not find method android.view.WindowManagerImpl.getDefault, referenced from method com.serajr.xperia.xposed.hooks.SystemUI_FullScreenMode.getPlatformWindowManager Apr 18 13:52:21 Quacked SimpleAdapter, ArrayAdapter SimpleResourceAdapter - they all suck. just extend BaseAdapter Apr 18 13:52:53 hmm Apr 18 13:53:29 with a separate class and stuff? Apr 18 13:53:42 Could not find method android.view.WindowManagerImpl.getDefault Apr 18 13:55:07 MalekAlrwily: You can safely ignore that, some user with a broken rom Apr 18 13:55:37 g00s, what about overriding getView in the SimpleAdapter? Apr 18 13:55:46 Quacked how about, not being lazy ! Apr 18 13:55:52 SimonVT: he is me X_X Apr 18 13:56:17 Lol Apr 18 13:56:40 MalekAlrwily custom rom ? Apr 18 13:56:42 heh Apr 18 13:57:00 yes, with XposedBridge Apr 18 13:57:21 Could not find method android.view.WindowManagerImpl.getDefault, referenced from method com.serajr.xperia.xposed.hooks.SystemUI_FullScreenMode.getPlatformWindowManager Apr 18 13:57:41 maybe the error from an Xposed Module Apr 18 13:58:19 #android-root for all your broken rom needs Apr 18 13:58:34 thank you Apr 18 13:59:15 another customer served :) Apr 18 13:59:42 lol Apr 18 14:02:56 lol Apr 18 14:04:26 hello Apr 18 14:04:29 question: if i create a bash script (somehow?), is there any way i can create an icon to spawn it? or do i have to create an apk for it? Apr 18 14:04:57 you'll have to create an apk Apr 18 14:05:20 :( Apr 18 14:07:26 also Apr 18 14:07:31 stop treating Android like a Linux Apr 18 14:07:46 it'll save you lost of issues in the long run... there's Androids out there without working bash environment Apr 18 14:09:44 hm, bummer was hoping xmlns="http://schemas.android.com/apk/res-auto" would work for an xml file in res/xml Apr 18 14:10:36 Mavrik, example? everything I've seen comes with at least toolbox Apr 18 14:11:42 and toolbox is required for cts Apr 18 14:12:41 g00s, to do what, it's just a namespace Apr 18 14:13:44 seems like i can't read an attr via a TypedArray unless its bound to a namespace in the xml; i was hoping to cut verbosity in this custom xml file by just making the default namespace res-auto; Apr 18 14:14:11 Anyone here use BaaSbox.com ? Apr 18 14:14:32 don't really want to say then just give it a 1 letter ns Apr 18 14:18:02 seekcolor.in.this.object.via.that.one(); // get color Apr 18 14:18:42 ya, may have to do that Apr 18 14:21:07 Hi guys. If I make a new MyHeadLessFragment() into a DialogFragment. Does the MyHeadlessFragment onAttach() method be invoked when my headless fragment will be instantiated? What argument will I have in the onAttach() method: my dialog fragment or the activity which used that dialog fragment? Apr 18 14:21:07 To summaryse you have MyActivity -- which uses --> my dialog fragment -- which uses --> my headless fragment Apr 18 14:25:51 you need to call show() on dialog fragment in order to make it call onAttach() at some point Apr 18 14:27:51 macolour_: obviously regarding the dialog fragment. Apr 18 14:27:51 But my question does concern my headless fragment. Is the onAttach() method invoked on it? Apr 18 14:28:25 As it is not shown (==headless), only instantiated. Apr 18 14:30:36 don't you need to commit a transaction anyways? Apr 18 14:32:37 g00s, I guess theres special behavior around the default ns Apr 18 14:33:22 macolour_: Mmmh. According to the doc, for a visible fragment it's the procedure, but for a headless one, I don't know, maybe. Apr 18 14:35:12 pfn ok Apr 18 14:35:17 I think it's the only way, instantiating doesn't seem do anything app-wise Apr 18 14:44:10 How to add new 2 states to CheckBox Apr 18 14:48:49 MalekAlrwily: why would you want to do that? checkbox by default has only two states: checked, unchecked Apr 18 14:49:23 i want to add unknown, away Apr 18 14:49:45 use a spinner Apr 18 14:49:50 4 states Apr 18 14:49:59 on, off, unknown, away :| Apr 18 14:50:51 is it possible to extend CheckBox and do that? Apr 18 14:51:37 How do you expect to represent 4 things with a 2-state metaphor Apr 18 14:51:52 checkboxes are, by definition, "yes" or "no", not "yes, no, maybe, sorta" Apr 18 14:52:04 either use a spinner or radio buttons. Apr 18 14:52:21 button with custom states is also an option Apr 18 14:52:40 macolour_: but isn't a checkbox :P Apr 18 14:52:50 macolour_ nice idea Apr 18 14:52:57 i will extend button Apr 18 14:53:00 also I'd tend to say dont' make a custom button when there's already a UI metaphor for this Apr 18 14:53:06 specifically, spinners or radio buttons Apr 18 14:53:42 dragorn: that is corrent, but it's not us who reinvent the wheel ;) Apr 18 14:53:44 dragorn: this take some time for user Apr 18 14:53:49 dragorn: Fuzzy logic! Apr 18 14:54:05 i want One-click only Apr 18 14:54:09 SimonVT: The checkbox hides a neural network that determines if you're actually there! Apr 18 14:54:14 MalekAlrwily: aka, radio buttons. Apr 18 14:54:25 MalekAlrwily: making new custom UI elements does not make a users life simpler. Apr 18 14:54:34 but I strongly suspect I'm just wasting effort at this point, so, have fun Apr 18 14:54:51 SimonVT: man I haven't thought about NN stuff in like a decade :) Apr 18 14:57:18 that stuff was fun Apr 18 14:58:06 don't settle for neuro or fuzzy MalekAlrwily … use a neurofuzzy button ! Apr 18 14:58:57 dragorn: Not sure I'm comfortable with my checkboxes becoming sentinent Apr 18 15:01:00 dragorn i guess the new hot is deep belief networks Apr 18 15:01:45 deep learning, and it's not even new Apr 18 15:01:52 and is vague enough to be always "hot" Apr 18 15:02:44 deep hot belief network Apr 18 15:02:47 :) Apr 18 15:04:05 ;) Apr 18 15:05:00 my last foray into 'ai' (easy ai stuff) was a neuro fuzzy controller which balanced a ball Apr 18 15:05:17 g00s: deep learning name comes from "deep" neural networks Apr 18 15:05:20 iirc Apr 18 15:05:59 written in c, on a superH risc processor hooked up to all kinds of sensors i embedded in a milled piece of 6061 Apr 18 15:12:58 how do you remove an apk file thats been uploaded in the beta testing tab of the developer site? Apr 18 15:28:13 tim bray still on the android team ? Apr 18 15:34:45 I saw a method for making the top status bar translucent while making the app full screen. Anyone remember what it was? Apr 18 15:36:16 I should say it was on here. Sadly it seems that my logs were auto purging. Apr 18 15:39:38 https://developer.android.com/training/system-ui/immersive.html Apr 18 15:39:40 This? Apr 18 15:59:40 I want to add an overlay detailing electoral boundaries using the Android Google Maps API. How would I go about this with a KML file? Apr 18 16:07:44 Bacta: not sure about specifics, but you would have to parse it w/ a SAX parser (or use a library) and I assume you would take the points that you parsed out and draw lines on the map Apr 18 16:10:43 You would think they would make it easier than that Apr 18 16:10:44 But ok Apr 18 16:11:09 Bacta: how much easier would you expect it to be? Apr 18 16:12:27 Well Google Earth can open KLM files Apr 18 16:12:42 *KML Apr 18 16:13:23 Bacta: are you wanting to display it in Google Earth or Google Maps? Apr 18 16:13:49 i assume google maps since you mentioned it earlier Apr 18 16:15:25 Bacta: you may want to check out https://github.com/Ekito/Simple-KML. At initial thought, parsing the data is probably the hard part. Apr 18 16:16:02 Thanks Apr 18 16:17:47 Having a ton of trouble deleting from my database; is there a good way to debug this? Apr 18 16:18:13 https://www.irccloud.com/pastebin/dpAaFF73 Apr 18 16:18:27 return db.delete(RX_TABLE, RX_ID + " = ?", Apr 18 16:18:27 new String[] { String.valueOf(ri) }); Apr 18 16:18:30 is just not working Apr 18 16:23:42 i would like to run a script as root from command line, but without having to do su and then running the script. I tried to do su -c "sh /sdcard/myscript.sh", but i get an error "Unknown id: sh" Apr 18 16:47:09 #android-root Apr 18 16:59:26 Is this active? Apr 18 17:04:00 Looking for lifffe in android irc Apr 18 17:06:56 Chinatown Apr 18 17:08:30 no point in finding life xMikeVG Apr 18 17:08:50 goto some place with public/people phsycially Apr 18 17:08:58 downtown or thereof Apr 18 17:09:03 .... Apr 18 17:09:09 Just zombies here. Apr 18 17:09:21 Noticed Apr 18 17:09:23 Just try not to end up in jail... Apr 18 17:10:01 xMikeVG could try having a deep discussion with b0t when he's (it?) around Apr 18 17:11:20 Fun. Apr 18 17:12:33 * Unknown0BC writes a program called AndroidBuddy and hands the source code to xMikeVG Apr 18 17:12:37 So, are there any android related irc channels that are active? Or did I just catch this one in a dull moment? Apr 18 17:14:23 This is the best Android channel on earth. Apr 18 17:15:18 That's concerning Apr 18 17:15:46 I agree. Apr 18 17:15:51 ;) Apr 18 17:17:56 I am also a bit worried. Apr 18 17:18:21 Well. Back to xda, I suppose. Apr 18 17:19:52 What were you expecting circus entertainment ? Apr 18 17:23:11 Some people do code like clowns... Apr 18 17:23:26 ( not excluding myself ) Apr 18 17:25:59 String what = this.getContext().getDiscussion().getPurpose(); Apr 18 17:27:37 Its a dull moment Apr 18 17:29:06 <[boxmein]> 1) is it an economic thought to have sub-menus as new Activities in themselves Apr 18 17:29:29 <[boxmein]> 2) how the hay do I transition between two menus/Activities, and why are LayoutTransitions such a bother to set up Apr 18 17:30:17 Because you need patience, understanding and LOTS of time to debug. Apr 18 17:32:05 <[boxmein]> was that a response to someone who joined before me, I'm confused Apr 18 17:33:32 Don't mind me, i'm done with work and android for the day. Just teasing. Apr 18 17:33:44 <[boxmein]> Lovely Apr 18 17:35:24 Thats what I say. Apr 18 17:36:31 Its easter. Apr 18 17:46:18 Hey anyone know if https://github.com/keyboardsurfer/Crouton will combine the same messages into one notification? So say I throw at it 2 notifications "New message in X", "New message in X" would it combine the two into one? Apr 18 17:47:05 try Apr 18 17:47:22 Mentos_: last time I checked, no. Apr 18 17:48:20 alexfu: ah damn, thanks Apr 18 18:31:58 Has anyone else seen Eclipse get stuck in Installing app... and then be unresponsive to input? It's just hanging here and driving me nuts. Apr 18 18:37:28 When creating my own exception types, should I use static nested classes, or top-level classes in their own files? Apr 18 18:53:14 is there a command line to the Android's native dialer black list? Apr 18 18:53:47 What is the best testflight alternative for android... now that testflight is no longer an option? Apr 18 18:56:17 We use TestFairy; working out well for us so far Apr 18 18:57:06 I just activated my account with them Apr 18 18:59:22 guys i have a problem with my code: http://paste.ubuntu.com/7277925/ logcat attached Apr 18 19:00:49 i have edited this: list=(ListView)arrivi.findViewById(R.id.listView1); replace arrivi to getActivity() but cras app Apr 18 19:01:32 I have a ViewPager with a FragmentStatePagerAdapter and now on rotation it just gives me a blank fragment - until I scroll back/forward to a count beyond the offscreen cache limit, then I get content again. Familiar to anyone? Can't find a decent answer on SO either. Apr 18 19:08:18 We are using testfairy too. it's not bad Apr 18 19:15:01 where is the DB of the BlackListProvider located? and how to is it possible to modify it from commandline? Apr 18 19:18:00 When the Android SDK requirements state "JDK 6" does that mean JDK 6 or later? Apr 18 19:23:10 ((DummyObject) R.id.getAppState(this)).castTo("MyObject").extend(new HashTable() { public String whyIsJavaSoVerbose() { return "I dunno"; }}).endRantTransaction(); Apr 18 19:25:26 ice9: Try #android-root .. This channel is for app dev. BlackListProvider is also a custom rom feature as far as I know Apr 18 19:26:27 Chainfire: Forgot to saveState/restoreState or something? Apr 18 19:31:44 SimonVT I'm not doing any save/restore state myself ... the strangest thing is if I step through my code all the variables in the fragments are exactly what I expect them to be. Somehow it has something to do with the FragmentStateAdapter's internal fragmant caching Apr 18 19:32:07 if I remove "android:viewHierarchyState" and "android:support:fragments" from the savedInstanceState bundle, it works Apr 18 19:32:23 but thats rather hackish :P Apr 18 19:33:41 Ah, ViewPager saves the state of the adapter Apr 18 19:34:47 any way to turn that off? I have all the code in place to recreate everything as it should be, it's just the built-in stuff that is borking somewhere Apr 18 19:35:17 No need to use FragmentStatePagerAdapter if you don't want the adapter to save the state :p Apr 18 19:36:11 FragmentPagerAdapter lets the fragmentmanager handle fragment state Apr 18 19:36:18 ah I see Apr 18 19:36:23 (well I don't, but I'll look it up) Apr 18 19:37:09 Stupid me for following an example, haha, should have realised. Apr 18 19:38:35 unfortunately that change doesn't fix the issue, so that isn't it Apr 18 19:40:37 Proobably an issue with your fragments then Apr 18 19:41:08 android:support:fragment is probably what the fragmentmanager uses to instantiate fragments when restoring state Apr 18 19:41:08 no doubt, figuring out what it is is the challenge ;) Apr 18 19:41:26 Some difference in what you do depending on whether there's savedinstancestate or not? Apr 18 19:42:21 nope, the fragment code is deceptively short, can't really be anything wrong with that Apr 18 19:42:38 the fun thing is, theres also a listview that when clicked set's the pager's current item Apr 18 19:43:16 it gives the same 'nothing' for the cached fragments as swiping the pager, when its recreated after rotate Apr 18 19:43:52 but if I click a few rows down, to go beyond what it could ahve possible cached - boom, works Apr 18 19:46:51 I don't know, I'd probably have to see some code Apr 18 20:11:36 Hey everyone ! Apr 18 20:16:39 Anyone worked on badges that appears on app icon as Facebook do in Android ? Apr 18 20:17:22 I see this code is specific to manufactures, Apr 18 20:18:22 code which I saw that is specfic to Samsung and other to Sony, Is there any general way to do this in Android ? Apr 18 20:18:37 No, android doesn't support that Apr 18 20:19:41 hmm SimonVT then how other apps do this ? Apr 18 20:21:03 None do on stock devices Apr 18 20:21:08 Hi, all. I'm compiling using NDK r9d (64-bit). I get an error from gnu-libstdc++/4.8/include/utility: bits/c++config.h: No such file or directory. And indeed, there is no c++config.h in /bits. Apr 18 20:21:14 Manufacturers can add whatever api's they want to their devices Apr 18 20:21:47 okay got you Apr 18 20:21:52 thnx Apr 18 20:22:10 It's odd ... this is a pre-built NDK. include/utility has: #include hard-coded. Apr 18 20:22:42 "It's odd"… welcome to Android native. Apr 18 20:24:20 keepsake, thanks. r9c doesn't have bits, either. Apr 18 20:25:06 ... sorry. Typed too fast. I meant to say r9c doesn't have c++config.h Apr 18 20:25:57 Are you building with Eclipse? Apr 18 20:26:48 keepsake, no. Qt. Apr 18 20:28:07 In that case I don't know. My bits are located in sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi/include/bits/c++config.h perhaps you need to add some more paths to your build environment. Apr 18 20:28:32 keepsake, yeah, I just did what you did ... I'm finding them elsewhere Apr 18 20:33:10 I am trying to pass a arraylist of parcelables through a localbroadcastreceiver, but I'm getting an error. When trying to extract it, I'm getting a null object. Debugging shows the bundle contains an extra with the right object type but expanding that object gives me a ClassNotFoundException. Gist is up at https://gist.github.com/damccull/6185798204fc2c3f7359. The service file packages the MUTextRu Apr 18 20:33:10 n file, and the activity file pulls it out. Any ideas? Apr 18 21:06:55 anyone familiar with why after flashing a custom rom, dtmf tones dont get sent while in a call? audible tones play fine but when i call another phone, the numpad keys dont send a tone period Apr 18 21:14:42 skr1lla: #android-root Apr 18 21:17:18 Hi Guys..I am not able to export apk for a Android project that uses AndEngine Apr 18 21:18:10 I am getting Conversion to Dalvik format failed with error 1 Apr 18 21:27:28 Hey guys. just wondering if something like this seems plausible to you guys: Apr 18 21:28:09 Have a dialog where if somebody clicks on ADD, it brings up a list (populated from a DB) of custom objects, say, Teachers, that you've created Apr 18 21:28:29 (and if there are no Teachers in your DB, then it tells you that you have to create your first Teacher) Apr 18 21:28:35 easy Apr 18 21:28:50 i.e. yes it's plausible Apr 18 21:29:15 awesome! just wanted to know if it was before i started barking up the wrong tree :) Apr 18 21:29:47 Mango_Man: do you have any good suggestions on what i should look up for a tutorial? i didn't search very hard but i was strugglign to find one when i was looking for "Custom Object Picker Android" Apr 18 21:31:45 RedDunce: in the onclick listener for your add button, use a loader to load teacher objects into row views. have an empty view that says "create your first teacher". Apr 18 21:31:52 RedDunce: no tutorial needed Apr 18 21:35:29 Sorry, a loader? I'm not very familiar with that. You mean essentially a DB adapter? Apr 18 21:37:19 RedDunce: yep. if you use a cursoradapter directly, then that adapter is running on the UI thread. a loader is one way to get that cursoradapter off the ui thread Apr 18 21:38:51 ahh cool, so for performance reasons a Loader would be a better alternative? i'll start looking at some documentation, cheers! Apr 18 21:51:33 Hi all in a ListFragment if i notify the adapter should the list update on the screen? Apr 18 22:12:02 Using the NDK I can't seem to get any directories back when I use the AAssetManager. Does the java AssetManager.list() return directories? Apr 18 22:14:02 what is called that show a description about a view for user at first time use? Apr 18 22:15:07 tutorial? Apr 18 22:17:56 no Apr 18 22:18:57 introduction? Apr 18 22:26:03 Anyone here use SharedPreferences to persist class data? Apr 18 22:26:58 is calling a method to clear & Add-all from my DBAdapter.getAllRxs() every time I do anything with my data a bad move? is there a better way? Apr 18 22:27:13 probably something with notifyDatasetChanged or something? Apr 18 22:34:25 i want to make my app action bar like google play app, if user tap the title it will show a list Apr 18 22:34:57 what's the best method of sending Push Notifications from my backend to both Android and iOS apps? Apr 18 22:35:00 Parse maybe? Apr 18 22:35:12 or possbily Redis PubSub Apr 18 22:38:35 narruc: I use Parse, would be interested to hear what everyone else uses Apr 18 22:55:31 Hi, all - have any of you ventured the way of deploying a Qt app designed in Qt Creator using Qt''s C++ libs, without Eclipse? If so, I could really use some help. Apr 18 22:57:19 Chainfire: hi are u dev of SuperSU? Apr 18 22:59:39 roxdragon, no :) Apr 18 23:00:31 litropy: I... don't think he was asking you. Apr 18 23:00:50 * litropy shrugs Apr 18 23:01:23 In particular, I'm fairly sure your nick isn't "Chainfire" :) Apr 18 23:01:54 hello, when using the SQLiteOpenHelper, do I need to call close() after I have called getReadableDatabase() or getWritableDatabase()? Apr 18 23:03:08 JesusFreke, ah. I didn't see that. Sorry - my sight is blurry from coding all day. Apr 18 23:03:43 litropy: yeah, just thought it was.. curious :) Apr 18 23:04:27 JesusFreke, yah I should really increase text size in times such as these Apr 18 23:12:55 For those of you that Serialize their objects rather than use SQLite, am I right to assume that serializing to/from JSON is the best approach as it makes it easier to handle adding/removing properties? Apr 18 23:13:08 or a preferred approach Apr 18 23:22:33 there is anyone? Apr 18 23:22:59 guys help me please... http://paste.ubuntu.com/7279675/ it's possible? my app don't execute CheckRow... why?? Apr 18 23:25:05 roxdragon: might it be return info; is returning null? Apr 18 23:26:26 hi guys... no no Mentos_ string don't interesting me... i want only execute CheckRow after return arrivi; Apr 18 23:26:45 there is a solution for delete thread? Apr 18 23:31:59 Mango_Man was tryna help me figure it out, but I never really made any progress because I didn't have the DB set up. Now that I do, does anyone know how I can set up a custom item picker?? Apr 18 23:33:19 can u help me? Apr 18 23:38:51 roxdragon: delete thread? Apr 18 23:48:07 Hi, all - I've been at this all day, and I still have the same problem: /opt/android/ndk/sources/cxx-stl/gnu-libstdc++/4.8/include/utility:68: error: bits/c++config.h: No such file or directory #include Apr 18 23:48:54 canvs2321: http://paste.ubuntu.com/7279780/ i want execute checkRow after return arrivi; Apr 18 23:49:07 how fix? Apr 18 23:49:12 This happens when I try to build using Qt Creator. I know, I know - many of you are used to Eclipse, and i get that. If _anyone_ has used Qt creator to successfully run an app on an AVD, please respond. Apr 18 23:49:39 Furthermore, maybe some of you are knowledgeable about using the NDK outside of Eclipse. Apr 18 23:50:25 See, it seems it's looking in the wrong /bits directory. Apr 18 23:51:39 roxdragon: why if checking rows of a current adapter are you resetting the adapter? think you need to refine your logic Apr 18 23:53:25 There is no /opt/android/ndk/sources/cxx-stl/gnu-libstdc++/4.8/include/bits/c++config.h. There is, however a /opt/android/ndk/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a/include/bits/configc++.h, and armeabi-v7a is in fact the kit I'm using. Apr 18 23:54:46 yes, but the problem is: how call CheckRow after return arrivi? Apr 18 23:56:05 you aren't using english language in your code so i can't tell what you are doing Apr 18 23:57:45 ok, ok canvs2321 I want to run CheckRow after creating the view, if I put checkRow arrivals me before return the application crashes Apr 18 23:59:20 what are you checking row for? seems you aren't checking anything, you are just setting Apr 19 00:00:59 canvs2321: I have to change CheckRow but I just want to know how to call CheckRow after creating the view Apr 19 00:01:37 after you create view, or your adapter? Apr 19 00:01:47 after create view Apr 19 00:02:08 no timeout Apr 19 00:02:30 i just think you are going down some weird unnecessary route, don't think you get the logic of an adapter Apr 19 00:04:18 canvs2321: i have edited int thread, now is ok... http://paste.ubuntu.com/7279859/ Apr 19 00:05:42 the strings are'nt empty Apr 19 00:05:50 aren't* Apr 19 00:07:14 canvs2321: http://paste.ubuntu.com/7279888/ Apr 19 00:07:28 the strings are ok.. Apr 19 00:14:08 canvs2321: ? Apr 19 00:21:13 Hello Apr 19 00:21:27 So I've got a nested layout xml using Apr 19 00:21:39 and inside that nested layout file, I've got a button called "camera button" Apr 19 00:21:50 problem is - I've got two of them, how do I inflate both? Apr 19 00:24:58 How do I make it so that when I click on a button, a spinner/chooser pops up? Apr 19 00:35:42 Does android work with JDK 7 or 8? Apr 19 00:35:49 Or do I need JDK 6? Apr 19 00:36:03 Any jdk works Apr 19 00:36:46 alright Apr 19 00:41:39 If anyone has an idea of how to implement this, I'd love to hear it: Apr 19 00:42:25 I have an Add Student dialog. When adding a Student, I want to make the user pick a Teacher from a list of Teachers. Apr 19 00:42:58 I want to allow the user to either pick a Teacher from their existing Teachers (which I populate from a DB), or add a new Teacher Apr 19 00:43:04 does anyone have an idea of how to implement this? Apr 19 00:43:50 guys Apr 19 00:44:17 I was thinking maybe bring up a Dialog when the user clicks on Teacher, and in the Dialog have the fields to add a teacher w/ a button, AND a spinner with all the current teachers Apr 19 00:44:20 Reasonable? Apr 19 00:48:35 When using the NDK to compile C++ to an .apk, does it matter which architecture I use? I don't see, for instance, MyApp for ARM or MyApp for Intel x86 in the app store. Google Play must pull the architecture from the phone and send the correct .apk, right? Apr 19 00:50:04 i've never used the NDK. can it be used as a replacement to java? like can i build full gui apps with it? Apr 19 00:50:49 cinch, yes ... in theory (on my end) Apr 19 00:51:22 It's a beautiful concept, cinch. But boy am I having difficulty getting everything to jive. Apr 19 00:52:05 cinch, for one, it's building my app as a libMyApp.so ... not an apk. So, that's one hurdle. Apr 19 00:52:08 i'd prefer writing in C/C++, might try it out Apr 19 00:53:59 maybe you need some glue code to launch it? Apr 19 00:58:31 Must the AVD be in developer mode to run a program I'm developing on my box? Apr 19 01:16:45 i wonder if google's next big step in android is putting out something like enyo Apr 19 01:16:58 listening to duarte, thinking about what he said in that interview Apr 19 01:18:34 "CNN has updated its app with a Holo UI" hey! i'm that far behind then Apr 19 01:36:01 i think we're in that lull of boringness where nothing happens between now and i/o ;) Apr 19 01:41:25 litropy: what do you mean developer mode? Apr 19 01:41:58 bankai_au, sorry. I meant USB debugging Apr 19 01:42:10 it's an emulator, not necessary Apr 19 01:42:18 bankai_au, thought so. Apr 19 01:42:28 you having trouble pushing to it ? Apr 19 01:42:38 bankai_au, you wouldn't happen to have NDK experience, do ya? Apr 19 01:43:05 i've some jni in the past, but not much.. haven't had a need, unfortunately Apr 19 01:44:45 * litropy sighs Apr 19 01:44:53 what's the prob? Apr 19 01:45:37 bankai_au, I guess now is as good a time as any to learn Java. Especially since the NDK readme explicitly states it's not meant for the purpose of "I just prefer C++" Apr 19 01:45:51 bankai_au, my app won't deploy from Qt Creator. Apr 19 01:46:37 you can dev in qt, but i don't know the status of the qt framework these days. played with it a few years ago and it was a bit shit Apr 19 01:46:48 you really do have to dev in java for android Apr 19 01:47:02 litropy there was a benchmark last week i saw, i think native code from gcc is around 7x faster (in this case) than java; so it makes sense for stuff like filters, etc Apr 19 01:47:26 bankai_au, it builds via NDK, no errors, then it goes to install it to the AVD, and all I get is, "Error while building/deploying project MyApp (kit: Android for armeabi-v7a (GCC 4.8, Qt 5.2.1)-Qt 5.2.1 for Android armv7) When executing step 'Deploy to Android device'" Apr 19 01:48:15 g00s: on an android device? Apr 19 01:48:38 bankai_au did we see the same thing? i thought so :| Apr 19 01:48:48 they had to benchmark against dvm and art Apr 19 01:48:50 bankai_au, Qt is great for desktop anything. It might even be great for iOS, but I haven't gotten in front of a Mac. But you're right - It looks like I must learn Java. Which is fine. Is Eclipse the best to use? Apr 19 01:48:51 i know we share a lot, but i can't read your mind :P Apr 19 01:48:56 art was marginally better Apr 19 01:49:13 litropy: not a very helpful error :P Apr 19 01:49:16 neither really did good JIT though Apr 19 01:50:02 bankai_au, it really isn't. How do I logcat my avd started from ./android avd? Apr 19 01:50:16 adb logcat Apr 19 01:50:56 No emulators will open :( I just get "Panic: could not open ".."" Apr 19 01:50:57 http://i.imgur.com/Je2LOaJ.png Apr 19 01:51:47 Mmm ... tasty, tasty data. Apr 19 01:55:55 Does anyone know if Apache Ant has to be configured on the AVD end of things as well? Apr 19 01:56:44 e.g., my IDE is certainly pointing to ant. But is Android listening? Apr 19 02:00:43 huh Apr 19 02:02:19 Where can I find that png on spinners (triangle in bottom right corner)? So I can change the fecking colour of it and set it in a style? Apr 19 02:05:00 Anthaas, it's a 9patch Apr 19 02:05:31 Yeah, I was wondering if I could get the original png to edit it? Or at least the 9patch to edit? I want to change the colour. Apr 19 02:07:15 I need to get into a habit of tagging the people I am talking to more often, sorry pfn Apr 19 02:07:18 Anthaas its in your sdk dir :) Apr 19 02:07:23 Oh cool Apr 19 02:07:41 there are 2 of them one for normal, the other for the AB Apr 19 02:07:50 Where abouts? Apr 19 02:07:55 AB? Apr 19 02:08:03 search for pngs :) Apr 19 02:08:07 action bar Apr 19 02:08:36 Oh. Ant is a make tool. Apr 19 02:08:50 Oooh, I never knew I had all these images haha. Some odd ones in there... Apr 19 02:11:27 Hey, is it possible to change the default menu image (the 3 dots image)? Apr 19 02:11:33 Doesnt seen to be a 9patch Apr 19 02:11:41 seem* Apr 19 02:11:48 no patch lines Apr 19 02:11:59 seems about the same size in pixels as it would be on the screen too. Apr 19 02:12:02 19x19 Apr 19 02:20:30 ffs Apr 19 02:20:35 Why is Eclipse opening everything in Debug? Apr 19 02:27:06 Does anyone have any ideas why "Run" runs the program in Debug? Apr 19 02:27:14 In Eclipse* Apr 19 02:34:46 It does not do that by default in my experience Apr 19 02:35:01 there are a lot of obscure settings tho Apr 19 02:35:18 You should look at the run profiles Apr 19 02:35:50 Run->Run Configurations Apr 19 02:37:36 Cant see anything in there about running in debug when run is pressed Apr 19 02:38:10 Another open is to just delete the run config for your app, it will recreate it next time its run Apr 19 02:38:17 is it just the one app? Apr 19 02:38:45 I don't know if there is some kind of global setting for that or not Apr 19 02:39:28 it could be that dialog that asked you if you want to automatically switch to debug mode is getting "confused" Apr 19 02:39:43 if you told it to remember your choice Apr 19 02:41:09 Nah, I never do that. Apr 19 02:41:29 oh well, I am out of ideas :) Apr 19 02:43:54 Oh I think Ive found what it was Apr 19 02:44:03 For some reason my DDMS was debugging all processes... Apr 19 02:44:19 Cool because I didnt know this existed. Apr 19 02:44:46 ...how do I stop it? hahaha Apr 19 02:45:30 reset ddms to defaults Apr 19 02:45:39 nope Apr 19 02:47:04 ah thanks for sharing that, I did not know that could happen. Apr 19 02:47:29 Yeah, it attaches itself to the processes and can show memory usage/cpu usage/frame details. Apr 19 02:47:35 I just cant work out how to stop it. Apr 19 02:47:41 could it be on the device side? Apr 19 02:48:01 Im sure it is Eclipse side. Apr 19 02:48:03 for example if you have this app set as your debug app in the developer settings on the device itself Apr 19 02:48:43 No Debug application set. Apr 19 02:51:45 This is so annoying hahaa Apr 19 02:53:59 Heh, ya I understand :) Apr 19 02:59:47 Does anyone here have experience with the DDMS? **** ENDING LOGGING AT Sat Apr 19 02:59:58 2014