**** BEGIN LOGGING AT Fri Aug 29 02:59:58 2014 Aug 29 03:01:08 desmin88: the logcat? Aug 29 03:01:14 yes Aug 29 03:02:35 desmin88: here's the link http://pastebin.com/TR9K739a Aug 29 03:08:49 what is line 179 Aug 29 03:10:28 double longitude = myLocation.getLongitude(); Aug 29 03:17:42 hil__ do you know what a java.lang.NullPointerException is ? Aug 29 03:17:55 no Aug 29 03:18:02 then I suggest you do some google reading Aug 29 03:18:11 this sh*t is important :) Aug 29 03:18:35 like fundamentally important Aug 29 03:18:45 lol. ok sure. thanks Aug 29 03:19:09 then when you know what it is work out why (myLocation==null) is a true statement Aug 29 03:20:38 JesusFreke more crazy bike stuff http://www.gizmag.com/mc2-transforming-bike/33581/ Aug 29 03:32:40 "Fixed for next canary (0.8.10; won't cherrypick this into 0.8.9 high resistance branch)" ... anyone know what high resistance branch means ? Aug 29 03:38:12 Leeds did you give your presentation today on the future of mobile ? Aug 29 03:39:36 no, next week! Aug 29 03:39:53 I can do a whole section on round watches :) Aug 29 03:39:59 is there a mailing list to ask android developer questions? Aug 29 03:43:55 shingshang: https://groups.google.com/forum/#!forum/android-developers Aug 29 03:46:00 Leeds: thanks, is that official though - somehow https://source.android.com/source/community/index.html does not include that mailing list Aug 29 03:46:14 welp, third result on google, I'll just assume it is Aug 29 03:47:19 who cares if it's official Aug 29 03:47:28 no, but it's linked from https://developer.android.com/support.html which is redirected from https://developer.android.com/resources/community-groups.html which is linked from that page :) Aug 29 03:47:51 depends on whether you're asking about app development - which is the topic of this channel - or system development... Aug 29 03:47:54 well, my question seems rather specific, doubt I can get my answer anywhere else Aug 29 03:48:22 and if you're expecting a response from anyone *at Google*... you'll be lucky nowadays, I think Aug 29 03:48:30 I mean, only very few people ever make soft keyboards Aug 29 03:48:33 hmm Aug 29 03:48:39 the best way to get an answer is to read the source Aug 29 03:48:50 only few? Aug 29 03:48:57 I made a soft keyboard... Aug 29 03:49:05 not so hard Aug 29 03:49:29 both those pages, of course, still list this channel and #android as being official, but they've both been essentially abandoned by Googlers, so... TMMV Aug 29 03:49:29 and there are plenty of open source keyboards Aug 29 03:49:34 also, YMMV :) Aug 29 03:49:50 the stock keyboard being one canonical example Aug 29 03:49:55 yeah, it's simple if you just start from the base example Aug 29 03:50:03 but I'm porting an opengl based keyboard that worked on iOS to android Aug 29 03:50:28 ios doesn't have keyboards... Aug 29 03:50:33 I mean, it works, except that somehow GLSurfaceView doesn't like it when I move the thing on renderers Aug 29 03:50:36 pfn: well, jailbreak :D Aug 29 03:50:37 pfn: I'd guess an in-app one Aug 29 03:50:42 well I suppose 7 added something Aug 29 03:50:53 jailbreak doesn't count Aug 29 03:50:54 iOS 8 adds the API Aug 29 03:51:03 8 then, whatever Aug 29 03:51:30 but at any rate, my issue with it seems to be really specific to OpenGL and soft keyboards not interacting well Aug 29 03:51:34 8 hasn't actually shipped yet... Aug 29 03:51:51 not really, and their keyboard API is really primitive Aug 29 03:51:59 and IMO implemented in the worst way possible Aug 29 03:52:14 shingshang: anyway, ask there, and good luck, but don't expect an official response of any sort Aug 29 03:52:29 yeah thanks, will give it a shot at any rate Aug 29 03:53:51 * pfn shrugs Aug 29 03:54:05 * pfn does nothing with gl Aug 29 03:59:45 it's great that my code runs in linux, iOS, windows and android with GL Aug 29 03:59:50 but the headaches, oh man, the headaches Aug 29 04:04:17 hey there Aug 29 04:04:42 i have a question Aug 29 04:04:51 im trying to add tabs for my android app Aug 29 04:05:57 but as im new to the platform i find some thing weird, for example the use of the settablistener Aug 29 04:06:20 any help? Aug 29 04:06:28 if you ask a question Aug 29 04:06:32 maybe :) Aug 29 04:06:52 I think you just made a statement Aug 29 04:08:34 ok, well, im not sure what i need to add to the settablistener. ill just use 2 tabs Aug 29 04:09:48 setTabListener(new TabListener( this, "layoutfragmentid?", maintab?.class))); Aug 29 04:10:09 the ? is because im not sure what should go there Aug 29 04:10:21 so i should create a class for every tab? Aug 29 04:11:16 oh and nvm with the "layoutfragmentid?" i forgot thats the tab text Aug 29 04:12:01 do you know what the tablistener does and is for ? Aug 29 04:12:40 its supposed to start an action when the tab is pushed? or well to handle tab events Aug 29 04:13:23 so do you think you would want a new one for every tab ? Aug 29 04:13:50 or would they share the same interface as they get passed a "ActionBar.Tab" object Aug 29 04:14:08 nope, but in the example both tabs had a different class Aug 29 04:14:24 you mean a fragment Aug 29 04:15:27 Query: I have an application that pulls web pages from the internet, parses them to extract text (contents) and only text, and stores them in an SQL database. Users have a lot of saved web content this way to the point that the sqlite database has grown to nearly a gigabyte. Is it possible and/or feasible that I implement some form of text compression/decompression when inserting into the database and retrieving from it, so that the database does Aug 29 04:15:27 not grow to be that big, and hopefully to improve performance as well? Aug 29 04:15:58 http://developer.android.com/guide/topics/ui/actionbar.html#Tabs Aug 29 04:16:17 pls take a look, there is a ArtistFragment.class Aug 29 04:16:28 and a AlbumFragment.class Aug 29 04:16:48 i have to layouts and i want tot switch between those Aug 29 04:18:06 cliffreich do you know what a fragment is ? Aug 29 04:18:24 Sachiru: seems like there is gzip support in the java libraries Aug 29 04:19:17 its supposed to be a piece of the interface Aug 29 04:19:55 Hmm. A SELECT statement from an SQLITE database can be easily decompressed in RAM, right? I was wondering if something faster like LZMA or LZ4 is in the Java libraries or can be easily built. GZIP is too slow for my use case, since each entry in the 1GB sql database is only around 150KB or so. Aug 29 04:20:09 cliffreich cause you are not exactly asking question of what you dont understand, so hard to really help Aug 29 04:22:10 but im asking a question Aug 29 04:23:06 not ones that I can grasp, many statements though… could be me, maybe I need a coffee and is 5.22am here, but yeah, dont see any clear questions Aug 29 04:23:40 the docs explain setTabListener(new TabListener( this, "layoutfragmentid?", maintab?.class))); Aug 29 04:24:10 well let me explain maybe im just too noob Aug 29 04:26:49 Yep, just tested, GZIP is way too slow Aug 29 04:27:19 I don't need uber compression, a reduction from 1 GB to around 750 MB is more than fine for me, what I need is extremely fast compress/decompress times Aug 29 04:27:27 Sadly android does not have native lz4 Aug 29 04:37:37 oh ewll Aug 29 04:38:05 seems liek i actually need a class per each fragment Aug 29 04:45:26 waste of space or ill learn to use 1 xml for all tabs and 1 class Aug 29 04:45:29 someday **** BEGIN LOGGING AT Fri Aug 29 05:50:55 2014 Aug 29 06:23:06 cannot figured out why I am getting “This app won\'t run unless you update Google Play services.” error. Already tried google Aug 29 06:23:29 what is confusing about that sentence ? Aug 29 06:23:38 * capella wasn't even gonna Aug 29 06:23:45 :) Aug 29 06:24:20 StingRay_: what version of Google Play Service I need to change? Aug 29 06:24:52 the one you are using to build with Aug 29 06:25:05 or wait for google to update play services on the store Aug 29 06:26:25 StingRay_: on my device it is version 5.0.89. in the source code of quickblox google_play_services_version is 5208000 Aug 29 06:26:45 wow, looks like you have your answer Aug 29 06:27:14 5.0.80 < 5.2.08 Aug 29 06:27:23 StingRay_: :) how to update to 5.2.08? Aug 29 06:27:40 wait for google to push it Aug 29 06:27:51 on the play store…if thats the path you are choosing Aug 29 06:27:57 :) Aug 29 06:28:18 oh :( in play store it is the latest one for my device :( Aug 29 06:28:50 or maybe you should consider using a lower version in the build ? Aug 29 06:30:38 StingRay_: oh, that’s make sense, let me try Aug 29 06:31:01 do, or do not… (well in this case) Aug 29 06:31:53 StingRay_: right now it is in gradle as this compile "com.google.android.gms:play-services:${rootProject.googlePlayServicesVersion}" Aug 29 06:32:38 rootProject.googlePlayServicesVersion will depends on API version? Aug 29 06:33:01 not sure I get what you are asking there Aug 29 06:40:00 kamol "The Google Play services library includes utility methods that help you determine whether or not the Google Play services version on the device supports the version of the client library you are using. If the version on the device is too old, the system will take the user to Google Play Store in order to install the recent version of the Google Play services." Aug 29 06:40:24 so use the newest library, and follow the instructions ;) Aug 29 06:40:38 g00s except when the m2 is newer than any version on play for 0-4 days Aug 29 06:40:56 depending on device and region Aug 29 06:40:57 :) Aug 29 06:41:21 glad i don't use play services :) Aug 29 06:41:47 not too much bother to stay 1 version behind :) Aug 29 06:42:03 g00s: StingRay_ is right, it depends on device and region Aug 29 06:43:24 g00s: looks like in my case have to use Google play service for real time chatting Aug 29 06:51:04 hey gaas Aug 29 06:52:17 is there any way I can override any of the system's notifications? Aug 29 06:52:18 missed call notification for example, can I add a number to it? Aug 29 06:52:22 well there would have to be a layout permitting a new textview to be inside that notification Aug 29 06:52:22 how on earth Aug 29 06:54:46 i would like to plot data from a device on graph. i need a graph plotting library/(or use surfaceiview -- though i dont even have a slight idea how i will make it work). looking for others previous experience. Aug 29 06:54:46 AChartEngine Aug 29 06:55:47 *surfaceView Aug 29 06:55:56 Sicp, their are other libraries. anything special for AChartEngine? Aug 29 06:55:56 it's just the one I know and have used Aug 29 06:56:34 (note: data will be continuous) Aug 29 06:56:35 im sure it can handle that Aug 29 06:56:35 Sicp, well please share you experience (pros and cons) :) Aug 29 06:56:35 like 2.4994944 and not 3, 5, 8? Aug 29 06:58:55 well, there's a really nice zooming feature, and custom colors for every type of data you're plotting Aug 29 06:58:56 but lately when the graph grows, the connecting lines tend to disappear and come back Aug 29 06:59:00 oh Aug 29 07:08:55 Hi all. My app is totally in portrait mode but I have one Fragment which can be viewed in landscape too (support both landscape - portrait). Any suggestions how I can do this? Aug 29 07:15:49 don't do whatever you do to force it to portrait -.- Aug 29 07:16:56 forcing to portrait is so bad though, I hate apps like that Aug 29 07:21:04 Thank you Sicp for the valuable input. Aug 29 07:22:25 still open for more peoples input :) Aug 29 07:26:26 is it possible to recieved SMS from application? Aug 29 07:27:12 hi what's to possible causes why the locationRowId = db.insert(LocationEntry.TABLE_NAME, null, values); assertTrue( (locationRowId != -1) ); failes in testing? Aug 29 07:27:23 the possible* Aug 29 07:31:40 kamol what do you mean ? "recieved SMS from application" ? Aug 29 07:33:18 StingRay_: the app able to read SMS message. To verify user phone number, we can send SMS to the user device. And the app was able to read that SMS secret code and verify automatically for user. Aug 29 07:33:45 Zharf, it isn't my decision to do this but I hate it too Aug 29 07:34:12 kamol still no idea what you are meaning Aug 29 07:34:50 anyone ever work with dynamicgrid library? Aug 29 07:35:29 it basically mimics the behavior of Android home screen, dragging and dropping items, having them wiggle and everything Aug 29 07:35:34 does Context.unbindService() fire ServiceConnection.onServiceDisconnected? Aug 29 07:36:00 sarbs should do Aug 29 07:36:10 iirc Aug 29 07:36:54 StingRay_: it is about One Time Password which sends by SMS for user phone verification. I don’t want user to enter OTP manually. I want the app to read SMS and do verification for user. Aug 29 07:37:28 StingRay_: so, it is possible for the app to read SMS message? Aug 29 07:37:31 well on kitkat you would have to be the default sms app to read Aug 29 07:37:52 the user will be prompted for this Aug 29 07:38:39 StingRay_: only kitkat? Aug 29 07:38:44 correct Aug 29 07:38:56 but what is this sms for ? Aug 29 07:39:15 sms for One TIme Password Aug 29 07:39:40 so, we know the user’s phone number is correct to verify Aug 29 07:39:48 ask them to enter it Aug 29 07:40:30 StingRay_: yeah, that’s entering part I want to automate Aug 29 07:40:41 well no you cant lol Aug 29 07:41:29 you want to send an sms from their device to where? Aug 29 07:42:08 StingRay_ unbindService does not trigger onServiceDisconnected, for future knowledge Aug 29 07:42:30 sarbs triggers an on"event" Aug 29 07:42:41 oh, onUnbind Aug 29 07:42:46 sorry Aug 29 07:43:19 0_o? where is onUnbind Aug 29 07:43:37 oh in the service itself Aug 29 07:43:38 yeah, not worried about that Aug 29 07:45:30 StingRay_: I just want to recieved SMS by the app Aug 29 07:45:35 oh you send to the app ? Aug 29 07:46:10 from the number they enter ? Aug 29 07:46:11 sorry they enter a number, and you send an sms to that number? Aug 29 07:49:37 kamol, similar to what Whatsapp uses for authentication. Aug 29 07:50:24 whatsapp uses that for something different Aug 29 07:50:33 StingRay_: after user registration on the app, the backend will send sms to user phone Aug 29 07:50:43 unless you plan to be an sms app, there is little reason to ask for users telephone number Aug 29 07:51:54 the SMS will contain some secret code, which the app should read to verify user phone number. Aug 29 07:52:21 why do you need their phone number ? Aug 29 07:52:22 cause this will not work on kitkat Aug 29 07:52:28 or any future version of android Aug 29 07:52:46 unless you ask the user to make your app the default sms app Aug 29 07:53:00 StingRay_: it is business requirments to verify user phone number Aug 29 07:53:09 StingRay_: Ic Aug 29 07:53:41 StingRay_: yeah, that’s what I told to my PM, however, I just wanted to confirm with you Aug 29 07:53:48 StingRay_: thank you :) Aug 29 07:53:59 kuldeepdhaka: thank you for understanding me Aug 29 08:01:08 kamol, http://android-developers.blogspot.in/2013/10/getting-your-sms-apps-ready-for-kitkat.html (para4) Aug 29 08:04:56 kuldeepdhaka: “Other apps that only want to read new messages can instead receive the SMS_RECEIVED_ACTION broadcast intent when a new SMS arrives.” so it is possible from KitKat version? Aug 29 08:07:02 but then it's down to the default app to "release" the broadcast Aug 29 08:07:21 as in if something with a higher priority holds and ends the broadcast at it's level, then nothing below gets it Aug 29 08:07:43 this is the default behaviour for many sms apps you can install to stop things like double notifications Aug 29 08:11:43 StingRay_: Clear, Thank you! Aug 29 08:18:58 will someone help me this http://picpaste.com/debughelpplease-IuEAYaNu.png why my assert fails Aug 29 08:19:54 erm, cause the row is -1 ? Aug 29 08:21:00 im wondering why my insert returns -1? Aug 29 08:21:13 I have a ListView with static content. Now, I don't want to hardcode the content into listview's adapter's array, so can I somehow include resources from strings.xml? Aug 29 08:21:33 yes through an array file Aug 29 08:22:18 threenuc http://developer.android.com/guide/topics/resources/string-resource.html Aug 29 08:22:36 Aug 29 08:23:30 Krisg http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#insert(java.lang.String, java.lang.String, android.content.ContentValues) Aug 29 08:33:46 i still have no idea why it fails i copy pasted it from a examples Aug 29 08:35:23 Krisg do you understand what it does and is ? Aug 29 08:37:56 Yes i think, the assertEquals(true, db.isOpen()) is Test pass, but on when it goes to db.insert(LocationEntry.TABLE_NAME, null, values); it returns -1, i dont know why , how i can display why it dont insert a row? Aug 29 08:39:57 well what are values ? Aug 29 08:40:12 does the db exist ? Aug 29 08:40:17 does the table exist ? Aug 29 08:40:35 if values have no…values then it cant do anything Aug 29 08:40:47 sqlite doesn't support insert on blank rows Aug 29 08:40:57 on/of Aug 29 08:42:28 the db.isOpen() returns true, do i have to make a database like on mysql? Aug 29 08:46:23 this is the problem with copy paste, you should go though intro tutorials Aug 29 08:47:38 like the ones on d.android.com Aug 29 08:47:46 although what you have should be throwing exceptions Aug 29 08:48:08 If I use ActivityInfo.SCREEN_ORIENTATION_SENSOR as screen orientation, a previous Fragments (FragmentA) onCreate is called when changing orientation in FragmentB, how come? can I disable the re-calling onCreate of FragmentA ? Aug 29 08:48:15 hello Aug 29 08:49:04 I have to deallocate resources of a service, where I'm guaranteed it will be executed? Aug 29 08:49:39 Hi Aug 29 08:49:54 this is how my DBhelper looks http://picpaste.com/debughelpdb.png where db.getWritableDatabase() Aug 29 08:50:19 how do I get a list of all the contacts from the phone ? Aug 29 08:50:26 and show them in a list, separated by groups (A, B, C...) Aug 29 08:50:55 Thanks StringRay Aug 29 08:51:49 shmoon by a query to the cp ? Aug 29 08:52:14 so I'll show you some code that I figured to write, 1min Aug 29 08:52:22 the only problem is I get repeated contacts, but 1 sec Aug 29 08:52:36 shmoon didn't ask you to Aug 29 08:53:06 not looking at code..sorry Aug 29 08:53:07 ok I see Aug 29 08:54:05 but I will say there are many joined tables Aug 29 08:54:08 RAW contacts there will be 1 of them Aug 29 08:54:10 Phone contacts will have dups Aug 29 08:54:11 well, with different numbers Aug 29 08:54:19 I'm getting dups with same numbers Aug 29 08:54:55 well if they are in there twice you will get them :) Aug 29 08:59:08 using my android contacts app, I see them only once Aug 29 08:59:10 you are looking at the root Aug 29 08:59:10 RAW contacts iirc Aug 29 08:59:12 RAW contact "to many" contacts "to many" phone contacts Aug 29 08:59:14 MyWay, onDestroy() if the service is terminating normally, probably nowhere if the service is being killed externaly Aug 29 08:59:17 ravilov: if I remove the activity that did startService() from the recent list, why is the service killed, but no ondestroy called? Aug 29 08:59:17 In my WebView. I override shouldOverrideUrlLoading (webViewClient to capture a Click on a picture in the html. Then I open a new Fragment to show de image (zoom imageview) but when I push the back button, the image is loaded in html, what do I need to only show the new Fragment and not opening the url in the webview? Aug 29 08:59:19 shouldOverrideUrlLoading returns false if it's an image Aug 29 08:59:32 MyWay, no idea, according to docs it should be called: http://developer.android.com/reference/android/app/Service.html#onDestroy%28%29 Aug 29 09:00:01 MyWay, how exactly do you remove an activity from the recents list? Aug 29 09:00:03 oh wait, nevermind Aug 29 09:00:11 by swiping Aug 29 09:00:17 I'm not sure how that feature works, it might be a force-kill Aug 29 09:00:41 like, force remove the entire task stack Aug 29 09:00:55 I know it is often handy when an application is not responding Aug 29 09:01:55 FrancescoV, try something along the lines of if(url.endsWith(¨.jpeg¨){ do your thing to load it in your fragment and finish with return true; } Aug 29 09:03:17 VnM_: Thanks, I'll try it out Aug 29 09:14:19 Yeah ravilov MyWay swiping an app away out of your recents lists isn´t quite the same as closing an app with a backbutton Aug 29 09:15:08 I think swiping away will kill background processes but not services Aug 29 09:31:39 Any wat to know if SmsManager sent out message, that user didn't press cancel on that dialog? Aug 29 09:34:21 SmsManager.sendDataMessage (String destinationAddress, String scAddress, short destinationPort, byte[] data, PendingIntent sentIntent, PendingIntent deliveryIntent) Aug 29 09:34:29 sentIntent - if not NULL this PendingIntent is broadcast when the message is successfully sent, or failed. Aug 29 09:35:41 someone good at math around here? Aug 29 09:36:08 * capella haz 'puters for that Aug 29 09:36:26 another one who starts off by asking metaquestions? Aug 29 09:36:52 ravilov, thanks, didn't notice that at all Aug 29 09:38:09 * VnM steals capella´s ´puters Aug 29 09:39:04 That happened two times more yesterday than the day before ... which makes a total of ..... Doh! Aug 29 09:58:59 Hi all, I have a picture in my Internal Storage. Is there a max. image size for Loading a drawable for an ImageView? because I got an OOME Aug 29 09:59:54 help please im stuck :( will someone tell me why i have AssertionFailedError http://picpaste.com/debughelpplease-IuEAYaNu.png on my project http://krisg.net/java/Sunshine.rar Aug 29 10:04:09 Please help me... the string is running the last value in json... http://pastebin.com/64HAafwq Aug 29 10:04:26 FrancescoV: You get that every time you load the image? Aug 29 10:04:42 instead of returning all the String array passed from the object, it only return the last value Aug 29 10:04:46 danijoo: yes Aug 29 10:04:48 HELP.. http://pastebin.com/64HAafwq Aug 29 10:05:10 hi guys Aug 29 10:05:24 i need some advices on MediaCodec API Aug 29 10:05:29 getCourseYear() return the last value... please check for me Aug 29 10:05:53 whats arrSession Aug 29 10:06:25 currently I am decoding a desktop screen from a windows client. but there is a 1 sec delay. Aug 29 10:06:29 FrancescoV: max heap size for android depends on the phone but as far as I know you always have at least 16mb Aug 29 10:06:57 danijoo: is it possible to ask for more memory? Aug 29 10:06:58 does drawing on surfaceview is slow? Aug 29 10:07:17 FrancescoV: be aware that an image in memory is larger then image on disk Aug 29 10:07:26 FrancescoV: yes, but you cant be sure that you get it Aug 29 10:07:39 danijoo: ok tnx Aug 29 10:08:00 you can add android:largeHeap="true" to your manifest Aug 29 10:08:26 ok i'll try Aug 29 10:08:30 but as I said, you cant be sure to get more then that 16mb Aug 29 10:09:18 and you shouldnt need that large images.. scale them down to match the screen size so save heaop Aug 29 10:12:47 danijoo: another question about memory and cleaning up things. I have a DrawerLayout and when I which to another menu item (drawer contains listview like a "menu"). Is it better to delete all fragment with the fragmentManager and add the one I want to show? (instead of only adding the one I want) Aug 29 10:19:12 hi guys, is there a way to stream a video from a server when its content is a video/quicktime ? I can play video/mp4, but for some reason it doesn't work with quictime… Aug 29 10:25:31 FrancescoV: dont understand. You mean you want to delete the fragments from the backstack in order to save the memory? Aug 29 10:25:52 I see that some Fragments are never destroyed Aug 29 10:26:05 h3bus: quick time is no fileformat. Aug 29 10:26:24 yea mean .mov? Aug 29 10:26:44 FrancescoV: fragments and activities on the backstack are never destroyed. Aug 29 10:27:10 only if you leave the app Aug 29 10:27:10 hi is there any way to check if the dom is loaded in a webview? Something similar to $(document).ready() in jquery. onPageFinished only triggers when everything is loaded Aug 29 10:28:12 danijoo: so it's a bad idea to try to destroy them if you don't need them anymore? Aug 29 10:28:22 h3bus: http://developer.android.com/guide/appendix/media-formats.html for supported media formats in android Aug 29 10:29:13 FrancescoV: depends on your app workflow I guess. But usually yes, because it destroys the backstack of your app (if user presses back and you destroyed the previous fragment, theres nothing it can go back to) Aug 29 10:29:43 r3s, if you set WebSettings.setDomStorageEnabled(true) it should be loaded Aug 29 10:30:22 VnM, is there a method which is triggered when it's loaded? Aug 29 10:30:48 danijoo: I have a DrawerLayout with a ListView. When I click on a listview item, I want to destroy all Fragment in the FragmentManager to get a fresh start (older fragments aren't needed anymore) Aug 29 10:31:03 There might be r3s but not that I know of Aug 29 10:31:04 If you have fragment A -> B -> C and user choses A (which is your mainmenu) from your drawer, its ok to remove B and C from the backstack Aug 29 10:31:23 but you shouldnt remove A and B when user goes to C because then he cant go back to A/B by pressing back Aug 29 10:31:31 Thanks VnM , I actually want to detect when it is loaded Aug 29 10:31:56 danijoo: yes, .mov Aug 29 10:32:12 h3bus: mov is not supported. There are no codecs for it in andorid Aug 29 10:32:14 I Have A - B - C, if the user want to open menuItemX I show D (A- B - C must be destroyed because the user can't go back to C) Aug 29 10:32:53 FrancescoV: yeah then just clear the fragmentmanagers backstack Aug 29 10:33:16 ok. I have a server, on whih users from iphone or android upload video, how can I read the videos uploaded by iphone users ? Aug 29 10:33:32 danijoo: ok thanks! Aug 29 10:33:38 h3bus: convert them Aug 29 10:34:01 on the server ? I was afraid you were gonna say that Aug 29 10:34:52 r3s, just make sure you also use setDatabasePath() and setDatabasePathEnabled from the WebSettings along with setDomStorageEnabled() otherwise I dont think it will persist Aug 29 10:35:06 h3bus: I have no idea about iOS but cant you force iOS users to upload in a userfriendly format like mp4? Aug 29 10:36:01 Ah ok VnM . Thanks for that. I had the dom storage enabled to true but didn't have the other two. But still can't find any method to actually know when it's loaded Aug 29 10:36:42 danijoo: probably, i will ask my ios dev about that Aug 29 10:37:16 h3bus: seems like there are ways to convert those mov's on android though Aug 29 10:37:25 at least that sounds like it: http://stackoverflow.com/questions/13600229/how-to-support-movquick-time-in-android Aug 29 10:37:37 unfortunately i have no experience with that Aug 29 10:38:22 help please im stuck :( will someone tell me why i have AssertionFailedError http://picpaste.com/debughelpplease-IuEAYaNu.png on my project http://krisg.net/java/Sunshine.rar i'm using Android Studio Aug 29 10:43:20 hi there, does someone know if there is already a network and memory logging tool? because i wrote one which is logging into cvs files. and i will share it if someone is interested in the markete Aug 29 10:45:49 smart1: sounds interesting **** BEGIN LOGGING AT Fri Aug 29 11:05:06 2014 Aug 29 11:15:50 http://pastebin.com/64HAafwq please how can i load Items into alertdialog **** BEGIN LOGGING AT Fri Aug 29 11:19:08 2014 Aug 29 11:22:54 hi Aug 29 11:23:15 i have problem on calling activity inside library Aug 29 11:23:43 i use https://github.com/nostra13/Android-Universal-Image-Loader Aug 29 11:23:52 inside activity in library Aug 29 11:24:10 i setup it inside application class Aug 29 11:24:11 https://github.com/nostra13/Android-Universal-Image-Loader/blob/master/sample/src/com/nostra13/example/universalimageloader/UILApplication.java Aug 29 11:24:52 but when i want use it in acitivity that are inside library return this error Aug 29 11:25:41 "ImageLoader must be init with configuration before using is the error from Illegal State Exception Aug 29 11:27:15 can some one help me with this Aug 29 11:34:32 can some one help me with this Aug 29 11:34:33 http://stackoverflow.com/questions/25567445/using-android-universal-image-loader-in-acivity-inside-library-project Aug 29 11:36:04 molavy: RTFM is pretty aproppriate here. Aug 29 11:36:16 what? Aug 29 11:36:25 molavy: As the library you use seems to be unusually well documented. Aug 29 11:36:47 It took me two clicks from the first link you provided to the solution of your problem. Aug 29 11:36:53 flan3002: but that are one of must used one, Aug 29 11:37:12 * flan3002 can't parse that. Aug 29 11:37:47 flan3002: are appmain class (that extends Application) in main project accessible inside library project Aug 29 11:38:27 They shouldn't be. What hinders you from calling init inside your Application class? Aug 29 11:38:32 how can i let activity inside library use appmain class variables Aug 29 11:39:02 You shouldn't. Aug 29 11:39:05 wa Aug 29 11:39:06 wat Aug 29 11:39:25 The library should not know about the application it is used for. Aug 29 11:41:04 flan3002: ok , how can have class that like appmain called one when library used and that are accessible inside all activities inside libray Aug 29 11:42:02 I totally can't understand what you're trying to say. Sorry. Aug 29 11:43:01 molavy: what language are you? Aug 29 11:43:16 molavy: pastebin your code Aug 29 11:43:29 molavy: or repo link Aug 29 11:45:51 flan3002: Kevel: i have one answer here Aug 29 11:45:51 http://stackoverflow.com/questions/25567445/using-android-universal-image-loader-in-acivity-inside-library-project? Aug 29 11:46:16 but i don't know where should i use answer code,inside each activity? Aug 29 11:46:31 Inside what you call appmain. Aug 29 11:46:35 each activity in library oncreate method Aug 29 11:47:13 then library all acitivies inside library can use imageloader Aug 29 11:47:14 ? Aug 29 11:57:39 Where you need the imageloader? Aug 29 12:19:08 Quiet day Aug 29 12:19:16 I'm looking for a way to create something similar to facebooks chat heads. and I noticed that my phone has a widget calculator (com.android.calculator2) widget that acts pretty much identical. However I'm not sure where exactly that widget part comes from Aug 29 12:19:22 ok, i solved it on move initialler into prefs class Aug 29 12:19:23 https://android.googlesource.com/platform/packages/apps/Calculator/+/kitkat-release/src/com/android/calculator2 here's the code Aug 29 12:19:56 Somebody used PhotoView before? https://github.com/chrisbanes/PhotoView/issues Aug 29 12:21:39 I use this PhotoView to get a zoomable ImageView. The scale type must be Matrix (as far as I know by seeing the code). But my large image is shown like the image on this link http://etcodehome.blogspot.be/2011/05/android-imageview-scaletype-samples.html (matrix fill parent). How can I make it work with scale type matrix which would look like center inside in the second url? Or am I thinking wrong? Aug 29 12:21:58 I´m not familiar with facebook but if you´re looking to create your own widget there are plenty of tutorials out there Syzygy_ Aug 29 12:22:43 VnM I'm looking to create a specific widget though. Haven't seen tutorials/samples for that yet Aug 29 12:23:30 Basically, a widget that's always on top (even over other applications), can be dragged around the screen and can be clicked for additional functionality Aug 29 12:28:24 what is generally a best practice, create static methods when possible, or create a non-static object with non-static methods, when dealing with general utility things, like getting prefs/formatting strings/etc Aug 29 12:28:26 Syzygy_, look for floating widgets, think that is what you´re looking for Aug 29 12:30:20 thanks VnM, I'll look into it. firefox just got stuck while googling it though -.- Aug 29 12:36:43 Hi. I need to have my Unity 3D application run on a huge touch screen. I was thinking to use PC hardware + touch enabled display, but it turns out Unity 3D android builds only support ARM. What options do I have? Aug 29 12:37:06 Assault: It doesn't have to run Android, no? Aug 29 12:37:07 ..so I cannot use Android-x86 Aug 29 12:37:33 flan3002, well, I could build to Windows desktop from Unity, but there the problem is it doesnt support touch Aug 29 12:37:35 Assault: You could... just run Windows/Linux and display a game running on that. Aug 29 12:39:44 hi Aug 29 12:39:45 yeah, but the reason I would like to build for Android is the touch support, which does not exist on dekstop builds for Windows and Linux Aug 29 12:41:40 flan3002, so...is my only option to use ARM based hardware..are there powerful ones? I know Rasperry PI, but as it is so cheap I think its also not powerful enough to run games.. Aug 29 12:41:43 ...? Aug 29 12:41:51 you can create "touch support" on a desktop Aug 29 12:42:18 py0, yeah, thats another solution..but that would require me to re-implement all touch input in my app.. Aug 29 12:42:41 Why would it? Aug 29 12:42:43 Assault: I don't think so. Depends on your games though. I have an RPi, never played games on it. ^^ Aug 29 12:43:10 flan3002, it I send you my game apk, could you see if it runs on your RPi? Aug 29 12:43:17 No. :) Aug 29 12:43:21 =( Aug 29 12:43:36 so..is installing android on Rpi easy? Aug 29 12:43:51 You still wouldn't have touch support? Aug 29 12:44:10 Hi Aug 29 12:44:13 anybody knows if I can use a YouTubePlayerFragment that has been declared in the XML, or is it mandatory to instantiate if from the code? Aug 29 12:44:27 Estel, how so? with a touch sceen I would? Aug 29 12:44:43 Papipo: try both Aug 29 12:46:57 I know why it's not working Aug 29 12:47:05 I don't have the youtube app installed in the emulator Aug 29 12:47:17 do you use the genymotion emulator or the stock one? Aug 29 12:48:26 flan3002, what would you say about performance of Android on RPi? Can you for example display HD video on it? Aug 29 12:49:19 Haven't tried that on Android. Works on Gnu/Linux though. Aug 29 12:49:43 Assault: this seems a really complicated way to run a game on a large touch screen Aug 29 12:50:29 Estel, well, if there would be an Android device with large screen then it would not be complicated at all Aug 29 12:50:32 Papipo: GenyMotion is superior tto the official emulator Aug 29 12:50:35 Assault: how large? Aug 29 12:51:17 well the larger the better, but like 27 inch Aug 29 12:51:20 minimum Aug 29 12:51:52 ...but such devices probably do not exist as people probably dont want to carry devices like that around =) Aug 29 12:52:10 Nor would they want to sit so close to such a big screen Aug 29 12:52:20 It would seem way easier to do one of the kludges for multitouch in Windows builds? Aug 29 12:52:34 well, im sitting next to two 27 inch screens right now =) Aug 29 12:53:03 Estel, kludges? Aug 29 12:53:08 s/kludges/plugins Aug 29 12:54:23 i was just thinking maybe there are android devices with huge screens for purposes like an interactive map in a shopping mall etc.. Aug 29 12:56:06 Assault, https://www.youtube.com/watch?v=lWAfgsqRDUY but it´s not quite the same :D Aug 29 12:56:59 There are some on Ali baba Aug 29 12:58:21 Like http://uk.alibaba.com/product/1747209566-Popular-style-wall-mounted-Android-32.html Aug 29 12:58:50 Buy me this Estel Aug 29 12:59:22 You don't want it really :P Aug 29 13:00:14 Probably not kik Aug 29 13:00:17 lol* Aug 29 13:03:47 Maybe to build into the dinner table or a wall as ´modern´ media control system Aug 29 13:04:24 I guess I could try running android on virtualbox on powerful pc.. Aug 29 13:04:44 or run android emulator on pc.. Aug 29 13:05:00 well, I guess I just have to implement the touch controls for the windows ddesktop build Aug 29 13:11:31 hi i have android:name="com.google.android.gms.version" in my AndroidManifest, i have google_play_service in Android Library eclipse project. But when i try use import com.google.android.gms.analytics.GoogleAnalytics; is not imported. Can anybody help me? Aug 29 13:14:14 t0th_-: manifest does not import the library for you.. Aug 29 13:14:28 did you specify it in your gradle or setup the library project Aug 29 13:14:30 ? Aug 29 13:14:34 yes Aug 29 13:14:42 is t0th_- here again with more noobish easily googlable questions? :p Aug 29 13:14:46 i have google_play_services in a library project Aug 29 13:14:54 huiaheihaeiuehuie Aug 29 13:14:59 i am on google Aug 29 13:15:08 here to: https://developers.google.com/analytics/devguides/collection/android/v4/?hl=pt-BR#manifest Aug 29 13:15:30 t0th_-: thats irrelevant for imports. Aug 29 13:15:36 your library project is not setup correctly Aug 29 13:15:42 ok Aug 29 13:15:45 do you use gradle? Aug 29 13:15:47 no Aug 29 13:15:56 that makes it harder .. :/ Aug 29 13:16:10 your first fallacy - not reading the docs in original english Aug 29 13:16:20 wait Aug 29 13:16:30 why is there hl=pt-BR if it's still in english? Aug 29 13:16:43 anyway yeah, that page is about manifest and has nothing to do with libraries Aug 29 13:16:46 Because reasons Aug 29 13:16:52 ravilov: i think google automatically adjusts the language depending on your browser footprint Aug 29 13:17:03 eg what headers you send Aug 29 13:17:29 hm ok Aug 29 13:17:44 dont cry ravilov Aug 29 13:17:50 what? Aug 29 13:18:03 t0th_-: did you follow https://developer.android.com/google/play-services/setup.html?hl=pt-BR ? Aug 29 13:18:13 don't cry for me... Brazil? Aug 29 13:18:22 yes Aug 29 13:18:29 my maps works normally Aug 29 13:18:46 buaaa Aug 29 13:21:16 t0th_-: sorry im not familiar enough with non-gradle builds to help you. havent used that for too long Aug 29 13:21:19 and he's telling *me* not to cry Aug 29 13:21:27 buaaa ravilovvv Aug 29 13:21:33 danijoo: thanks, man Aug 29 13:21:37 don't be an asshole, t0th_- Aug 29 13:21:43 you are a asshole Aug 29 13:21:51 also your behaviour makes me to not look into it anymore. Aug 29 13:35:53 Estel, flan3002 and others: could it be a solution for my huge touch screen case to run my application on PC hardware with Android emulator? Aug 29 13:36:11 Assault: I don't know if the emulator accepts touch screen input Aug 29 13:36:28 Assault: An ARM emulator on x86? You need a really powerful pc for that. Aug 29 13:37:00 Assault: So, nothing consumer-grade will do that. Aug 29 13:37:33 ok...then what about running ARM version of Android on Virtual Box on x86 Aug 29 13:37:54 I don't know. Aug 29 13:38:00 no Aug 29 13:38:17 Have you considered streaming from e.g. a Nexus 5 to your screen? Aug 29 13:38:23 you cannot run arm in vbox Aug 29 13:40:22 Android q: NavUtils.navigateUpFromSameTask isn't opening my parent activity when I open the child activity directly, any idea why? Aug 29 13:40:53 pfn: are you sure? Aug 29 13:41:11 Have you considered streaming from e.g. a Nexus 5 to your screen? Aug 29 13:41:24 Hi all, for the people who has supported multiple languages before. Have you used some script / program to manage the Strings (even for iOs too?) and extract it in a xml? Aug 29 13:41:34 flan3002, then the touch input wouldnt be on the big screen Aug 29 13:41:37 hey, has anyone noticed in recent versions of Android Studio that the logcat window, if set to floating mode, disappears when you click on any other Android Studio window? Aug 29 13:41:42 or is this an option I've accidentally activated? Aug 29 13:41:47 Assault: Well, that could be done. :) Aug 29 13:41:55 ? Aug 29 13:42:07 how Aug 29 13:42:22 Hello there Aug 29 13:42:37 i need to do something new with my app and i need an advice.. Aug 29 13:42:51 Assault: FWIW, writing or adapting something that streams back the touch events to the Android device is easier than getting the ARM emulator to run well on x86. Aug 29 13:42:52 for better performance an implementation Aug 29 13:43:20 Assault: You can inject touch events, I think. And getting them shouldn't be much of a problem ether... Aug 29 13:43:21 *either Aug 29 13:43:32 I have a map (osm) and i track some buses on the map, they automatically refresh every 10 seconds... Aug 29 13:44:07 now i want to implement an Alarm, where the user select 1 bus and select a point in the map (with a raiuds of X meters) Aug 29 13:44:27 an then when the bus enters the zone of the point radius, an alarm sounds Aug 29 13:44:50 the problem is that i need that the service or the alarm keeps runing but not the entire app Aug 29 13:44:58 do i have to imeplent a service? a deamon? Aug 29 13:45:10 oh, found the problem - it's called "pinned mode" and it was disabled, whoops Aug 29 13:45:46 I have to make an http request every 10 seconds..... Aug 29 13:46:07 tksko: how do you track the buses. on a server? Aug 29 13:46:10 but i dont know if i can run a service outside the app or run a service when the app is "paused" or "closed" Aug 29 13:46:35 i take the info from a website and i refresh it every 10 seconds Aug 29 13:46:40 tksko: what you are trying to do will eat any devices battery in a few hours. Aug 29 13:46:44 Json format Aug 29 13:46:54 nobody ever had to make the list of string for language support? Aug 29 13:47:14 really? Aug 29 13:47:17 yes Aug 29 13:47:24 but the idea is to only made a request, and made some calcs Aug 29 13:47:31 and shoot an alarm if necessary Aug 29 13:47:41 its only for a few momoments Aug 29 13:47:50 yes. and a request every few seconds will eat your battery Aug 29 13:47:53 people is requesting me this feature because they track the bus they are going to take Aug 29 13:48:01 i assume they will use wisely Aug 29 13:48:06 perhaps 5 minutes Aug 29 13:48:09 or less Aug 29 13:48:19 10 minutes.. max 20 minutes Aug 29 13:48:46 A better idea would be to do that checks on a server of your own. let user register for a bus and alarm and them notify them over push Aug 29 13:48:48 120 request max.. i dont this will will consume much battery Aug 29 13:49:05 yes thats true Aug 29 13:49:15 i though on that too Aug 29 13:49:50 if you really want that on a phone you can use a service Aug 29 13:49:58 Estel, did you try fiddling with your activity´s launchmodes? Aug 29 13:50:04 see http://stackoverflow.com/questions/19617621/android-how-to-send-http-request-via-service-every-10-seconds Aug 29 13:51:38 FrancescoV: the strings are in an XML.... Aug 29 13:52:11 rgr: I know but what shitty work is it to manage/create it with 100+ translations Aug 29 13:52:17 and that is why they are in XML. Aug 29 13:52:37 you just give that file to a translator and they duplicate it with the strings translated. It couldnt be easier. Aug 29 13:52:54 FrancescoV: have a better idea to manage it? Aug 29 13:53:01 i think xml is a really good solution Aug 29 13:53:39 danijoo: I'm going to create a script (python I think) to read a csv file and create a xml instead for Android and maybe a txt for iOS Aug 29 13:54:15 that is insane. Aug 29 13:54:26 not sure why this should be better then xml but ok .. :| Aug 29 13:54:30 the strings ARE in an XML file. Aug 29 13:55:00 and I assure you thats a LOT cleaner than in a CSV! Aug 29 13:55:06 wouldnt it be much easier to make one file (for iOS OR android) and then write a script to convert it to the other one? ^^ Aug 29 13:55:13 the translater isn't making the valid xml and iOs text ("Key"="value"; in iOS) Aug 29 13:55:33 they dont have to because its ALREADY in an XML file in tha format..... Aug 29 13:55:36 rgr: csv: create google spreadsheet and export Aug 29 13:56:27 *all* they have to do is copy the file and translate the strings.... NO formatting or name or key tinkering required. Aug 29 13:57:28 rgr: theres still the problem with android language files |= iOS files. but thats easily done with a script. no need for a csv.. :/ Aug 29 13:58:27 also there is https://github.com/erickok/pastt/ , which is great Aug 29 13:58:54 how about your first language is it's for both Android and iOS? There isn't an xml which defines all string in the xml. shouldn't it be easier to generate the right files/formats for ios and android? Aug 29 14:00:18 not sure how much easier then replacing key=value with value or vice versa something can be Aug 29 14:00:21 you didnt mention iOS before. Aug 29 14:00:34 its 2 minutes to write a script to do that Aug 29 14:00:55 but thats another issue and easily converted after the translations are done in place in the XML. It really makes zero sense to create a CSV IMO. Aug 29 14:01:09 danijoo Aug 29 14:01:13 you can write a sed script or soemthing to port the android xml to whatever iOS requires. Aug 29 14:01:28 the problem if i want to imlement a service of my own and make people register on it and i push the result when necessary Aug 29 14:01:47 sed is too simple, won't necessarily work Aug 29 14:01:49 the problem is that people can select more than 11 buses Aug 29 14:02:06 so i need to track the 11 busses every 10 seconds on my own.. Aug 29 14:02:12 anything that supports expat or something will be ok Aug 29 14:02:52 tksko: but with this you dont ddos the website with tyour devices and tracking 11 buses (11 requests per 10secs) is like nothing on a server Aug 29 14:02:57 is anyone using ButterKnife with Android Studio? I think there's a problem with the annotations not being processed Aug 29 14:03:12 tksko, but there is an upper limit on the number of buses in operation Aug 29 14:03:17 finishingmove: works for me Aug 29 14:03:35 jaynewstrom Aug 29 14:03:39 once you track that limit, you can serve as many clients as you want Aug 29 14:03:40 are you using maven or gradle? Aug 29 14:03:45 gradle Aug 29 14:03:53 rgr: you're right. csv isn't needed but script to generate android xml (output) from ios txt (input) can be useful Aug 29 14:04:15 I just added the compile '...' line to my gradle build Aug 29 14:04:21 but it doesn't work just like that Aug 29 14:04:24 hey, some TV:s run android, right? Aug 29 14:04:31 but they dont have touch screens.. Aug 29 14:05:05 are you calling Butterknife.inject(this); where you need to? Aug 29 14:07:23 Hi, why I'm getting NullPointer from a Custom ListView, can anyone help me? Aug 29 14:07:24 yes thats true Aug 29 14:07:33 jaynewstrom, that was it, hehe... I just skimmed through the documentation and thought this step was only necessary in fragments Aug 29 14:07:42 if i can manage all the busses in my own, then i can serve all the people with the same info Aug 29 14:07:42 thanks Aug 29 14:07:50 the problem is that i am on a free hosting xD Aug 29 14:07:54 and i have some limitations lol Aug 29 14:08:07 i cant even use pthreads in php :( Aug 29 14:08:08 appengine Aug 29 14:08:15 is good Aug 29 14:08:22 free, and scales Aug 29 14:08:32 oh! google Aug 29 14:08:37 take my life lol Aug 29 14:09:01 well i will try and see Aug 29 14:09:13 then i have to see how can i push notifications to users Aug 29 14:09:22 i am new in Android Dev, only 1 year and i mad a few apps Aug 29 14:09:22 FrancescoV: http://pastebin.com/3HwQwF4c Aug 29 14:09:28 that's easy, too Aug 29 14:09:32 but every second i learn something new Aug 29 14:09:33 that should work (not tested anything on that) Aug 29 14:09:51 may have syntax errors and stuff ;) Aug 29 14:10:12 danijoo: thanks :) Aug 29 14:10:37 and its ruby Aug 29 14:10:53 I see Aug 29 14:10:54 and i forgot to add at beginning and end Aug 29 14:11:46 ruby, people still use that? Aug 29 14:11:57 tksko: how much of this app have you actually written? Aug 29 14:12:01 pfn: I really like it Aug 29 14:12:10 for stuff like that Aug 29 14:12:17 open classes ftl Aug 29 14:12:30 :) Aug 29 14:13:08 rgr, the app is up and runnning Aug 29 14:13:08 nothing better than core libraries being changed from under you when some random gem is installed Aug 29 14:13:16 its in spanish, but you can see it anyway Aug 29 14:13:53 pfn: only if you use that gem and the developer of it is a not-documenting dick Aug 29 14:14:18 danijoo, not me, but some app or library depends on it Aug 29 14:14:56 i never ran into a problem like that. but I only use it for very basic scripts Aug 29 14:15:05 like document parsing and stuff Aug 29 14:15:10 some cron jobs.. Aug 29 14:15:36 basically, if you use ruby, must use rvm religiously. mm Aug 29 14:16:16 im not a fan of rvm in production. it really likes to break my stuff :x Aug 29 14:16:21 if you want to use 3rd party code and libraries Aug 29 14:16:47 otherwise core libraries get polluted so badly Aug 29 14:17:06 for a while, I was investigating writing android apps in ruby Aug 29 14:17:20 (jruby/mirah) Aug 29 14:17:30 of course it proved unsuitable Aug 29 14:17:44 there's also RubyMotion if you want to write iOS apps in ruby Aug 29 14:17:47 havent' tried it though Aug 29 14:18:05 robovm looks much more promising Aug 29 14:18:12 yeah i think performance isnt that great for jruby on android, is it? Aug 29 14:18:22 if I ever do ios, it'll be with robovm Aug 29 14:18:25 I'm trying to start a service that displays an image on top of other stuff. I have a toast in the onCreate() of the service, but that never seems to get called. Aug 29 14:18:58 this iy my app: https://play.google.com/store/apps/details?id=com.tkskoapps.bahiaurbana Aug 29 14:19:02 I start the service via startService(new Intent(this, MyService.class)); Aug 29 14:19:04 a toast, in a service? Aug 29 14:19:11 danijoo, always depends, but for most things, it's ok Aug 29 14:19:20 toast in service works fine Aug 29 14:19:27 ok Aug 29 14:19:31 you can toast from anywhere with a context Aug 29 14:19:39 danijoo, can I not do that? I just want some simple debug output on the screen to show that everything should work now Aug 29 14:20:00 ok, so i can Aug 29 14:20:00 though you have to do in in uithread or sth like that. but i never worked much with services so no great experience Aug 29 14:20:48 service life cycle is on the UI thread Aug 29 14:21:43 and yeah, ruby rtl isn't suitable for android because it's all rb files that needn't be bundled with every app Aug 29 14:22:04 need to be Aug 29 14:25:38 pfn: you really like writing stuff in non-traditional ways, dont you? :p Aug 29 14:26:51 i love that, tradicional is sometimes boring Aug 29 14:28:13 http://pastebin.com/pwRtCfBL this is all I see from starting the service Aug 29 14:28:23 no Toast, no Log.d Aug 29 14:28:36 maybe you should post the code, too Aug 29 14:28:46 that might be a good idea Aug 29 14:28:58 http://www.piwai.info/chatheads-basics/ Aug 29 14:29:15 I use the exact same code except with added Toast and Log.d Aug 29 14:30:16 the ChatHeadService class Aug 29 14:32:38 If nothing is being logged, then either you suck at filtering logcat or that line of code is simply not reached. Aug 29 14:32:56 system.out.println all Aug 29 14:34:04 Ashiren: really? .. Aug 29 14:34:22 eeyup Aug 29 14:35:02 SimonVT, Toasts showing up on logcat would be news to me. Aug 29 14:35:26 so is toasts not showing up on screen though. Aug 29 14:36:11 Ashiren: better read http://source.android.com/source/code-style.html Aug 29 14:36:28 no! Aug 29 14:37:22 System.out just gets redirected to Log class (or even worse is dropped completly Aug 29 14:39:50 I'm trying to step through it via the debugger... any idea if it's buisness as usual to go through stopServiceCommon(Intent service, UserHandle user) when starting a service? Aug 29 14:41:01 apperently it is Aug 29 14:50:17 danijoo, sure, when java sucks Aug 29 14:51:16 dang Aug 29 14:51:24 I could go for a piece of toast right about now Syzygy_ Aug 29 14:51:52 so could I... haven't eaten since the morning :( Aug 29 14:52:51 pfn partially agree. would love to see scala being the default language :p Aug 29 14:54:27 I wouldn't really, people can barely grok java Aug 29 14:54:31 at least those that pass through here Aug 29 14:54:57 but that features :> Aug 29 14:55:50 have to leave now though. nice day guys. have to work on my ballmer peak :p Aug 29 14:56:25 hi guys, i am trying to do a Contextual Action Menu, but when i initialize it in the following way http://pastebin.com/f09Ek7Ri, i get a crash with the following log http://pastebin.com/18DrSURQ . Aug 29 14:56:58 can someone direct me in the proper path Aug 29 14:57:27 Ok CheesePizza , what's wrong with you?? Code AND the error?? This is not how this channel works. You have to be as vague as possible, with bad grammar. Please start over. Aug 29 14:57:44 Is that the whole stacktrace? Aug 29 14:57:49 MikeWallaceDev: lol Aug 29 14:57:52 Sorry.. :( Aug 29 14:57:57 hahaha :) Aug 29 14:58:04 yes that is all the red text in the log cat Aug 29 14:58:44 When my app opens up camera through an intent , eclipse shows that my app has disconnected and i cant debug any further ... any idea why this happens? Aug 29 14:59:00 so, the gradle 0.12.2 plugin is looking pretty stable, hmm Aug 29 14:59:05 MikeWallaceDev: to be fair i just posted the snips of code regarding the changes for Contextual Action Menu. Not the entire source Aug 29 14:59:11 MikeWallaceDev: I'd suggest migrating to Android Studio Aug 29 14:59:15 whoops Aug 29 14:59:16 wrong Aug 29 14:59:21 samsamsam: * Aug 29 14:59:41 hahaha, I've been on AS since I/O last year :) Aug 29 14:59:42 CheesePizza: in onCreateActionMode use mode.getMenuInflater() instead of getActivity(). Aug 29 14:59:48 IntelliJ before that :) Aug 29 15:00:34 I am a newbie and every tutorial out there uses eclipse so i started with that :) Aug 29 15:01:24 Estel: i made that change, but it isn't even getting to the OnCreateActionMode function, i put a breakpoint on it and it never broke in Aug 29 15:02:17 samsamsam: Ok! Aug 29 15:02:44 CheesePizza: is the crash when you start the application or enter CAB mode? Aug 29 15:02:57 when i longpress an item Aug 29 15:03:40 CheesePizza: did you declare a listener in your adapter? Aug 29 15:04:09 and dude, change your nick, you're making me hungry! Aug 29 15:04:22 MikeWallaceDev: do i need to even though i implemented the interface which inherits the callbackmethod? Aug 29 15:04:43 no, I just wanted to see if the bug was somewhere else... Aug 29 15:04:50 BASTARD!!! Aug 29 15:04:53 HAHAHA Aug 29 15:07:15 i have to go Aug 29 15:07:16 MikeWallaceDev: no i don't believe that's where the issue lies. I think i may be missing some initialization in my code, since it's a null pointer reference. Aug 29 15:07:18 thanks for all the data Aug 29 15:07:29 yep, that's what I think too Aug 29 15:07:39 I'm going to check PhoneWindow.java:2755 right now Aug 29 15:08:27 Yeah, it probably indicates that mWrapper is null Aug 29 15:09:24 does System.exit(0) end the entire app? Aug 29 15:09:36 MrMeTooo: don't do that never do that why would you do that :O Aug 29 15:10:10 I need to exit the entire app on back pressed Aug 29 15:10:52 MrMeTooo: finish() Aug 29 15:10:53 I mean it look likes it works but does it cause any issues? Aug 29 15:11:13 http://stackoverflow.com/questions/18292016 suggests that apps in the backstack don't go away Aug 29 15:11:26 finish() doesnt end the entire app just the current activity Aug 29 15:11:43 Your app shouldn't have an exit button Aug 29 15:12:22 so onSteroids , did you check mWrapper? Aug 29 15:12:59 MikeWallaceDev: i looked at the code here http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.0.3_r1/com/android/internal/policy/impl/PhoneWindow.java but theres nothing at line 2755..so im still trying to find something Aug 29 15:13:23 onSteroids: don't look in line 2755, look in the onCreateActionMode() method Aug 29 15:13:54 MrMeTooo: I would really stay away from exit. You might cause problems... What if your app is called by someone else? will you kill the other app? Aug 29 15:15:35 MikeWallaceDev no I have protected that but basically I want to save the game and exit when the back button is pressed Aug 29 15:16:06 that's just a normal flow MrMeTooo Aug 29 15:16:43 if you don't want to go to your initial activities then don't put them on the stack Aug 29 15:17:26 MikeWallaceDev: i find where it fails...but since mWrapped is null that means that ActionModeCallbackwrapper was never called Aug 29 15:22:20 onSteroids: not sure here... but maybe onPrepareActionMode(ActionMode mode, Menu menu) need to call its super? Aug 29 15:24:46 So how are you suppose end all activitys in an Android app with on single back press? Aug 29 15:24:58 finish() Aug 29 15:25:13 System.exit(0) Aug 29 15:25:16 ???? Aug 29 15:25:21 MrMeTooo: look into flags. i.e. FLAG_ACTIVITY_CLEAR_TASK Aug 29 15:26:04 MikeWallaceDev: i think it has something to do with this being a Fragment Aug 29 15:28:21 <_ynk> hi, can an app grab the location data even if it's not active? Aug 29 15:28:33 <_ynk> also can it grab location data even when gps is turned off? Aug 29 15:28:55 yes and yes Aug 29 15:29:16 <_ynk> i see. and what countermeasures can a user take to stop this from happening? Aug 29 15:29:40 not installing your app :D Aug 29 15:31:30 <_ynk> MikeWallaceDev: i'll tell you why i'm asking then. it's for a workplace's application that employees have to install. i'm investigating it and i've heard it tracks the employees. i want to help them defend their privacy Aug 29 15:31:37 <_ynk> also, if this isn't the right place let me know Aug 29 15:31:59 no no, right place Aug 29 15:32:07 <_ynk> MikeWallaceDev: great Aug 29 15:32:37 <_ynk> MikeWallaceDev: so first i wonder really, how can an app take your location if GPS is turned off? Aug 29 15:32:38 maybe some permission setter Aug 29 15:32:41 but that would require root Aug 29 15:32:44 first thought : there's nothing you can do Aug 29 15:32:44 _ynk: there is a privacy guard on CMOD Aug 29 15:32:56 <_ynk> MikeWallaceDev: I'm after that :) Aug 29 15:33:00 _ynk: wifi location Aug 29 15:33:04 _ynk: gsm Aug 29 15:33:08 <_ynk> Ashiren: wifi turned off. gsm on Aug 29 15:33:25 _ynk: Have you checked if the app asks for any location permissions? Aug 29 15:33:40 <_ynk> Mrdarknezz: how can I check what permissions it has? Aug 29 15:34:05 I use Android System Info Aug 29 15:34:16 _ynk: The system settings for the app Aug 29 15:34:27 <_ynk> ok one second, thx Aug 29 15:34:56 <_ynk> mm no location permissions Aug 29 15:35:01 <_ynk> but networking permission Aug 29 15:35:07 well geez, there you go Aug 29 15:35:10 <_ynk> (i hope i translated it right. it's not in english) Aug 29 15:35:17 <_ynk> MikeWallaceDev: mm? what does that mean Aug 29 15:35:38 you're trying to defend against something that isn't happening :D Aug 29 15:36:08 <_ynk> MikeWallaceDev: it is happening for sure. It could be somehow different than the app though. Aug 29 15:36:16 <_ynk> it's a phone owned by the company Aug 29 15:36:20 <_ynk> so it could be basicalyl anything Aug 29 15:36:22 <_ynk> basically* Aug 29 15:37:03 check other apps that they made. Unless the made their own OS it shouldn't be that hard to track down Aug 29 15:37:28 <_ynk> MikeWallaceDev: just this one installed. the rest is common android apps that i know Aug 29 15:37:38 <_ynk> MikeWallaceDev: samsung stuff Aug 29 15:39:11 _ynk: You could use a packetsniffer to see if it sends something suspicious Aug 29 15:39:21 I have to say mate... just sounds like paranoia to me :) Aug 29 15:40:24 <_ynk> MikeWallaceDev: not when the boss calls the employers to ask what they are doing at a off-work place :) Aug 29 15:41:07 :) Aug 29 15:41:16 <_ynk> Mrdarknezz: now way to know what's running in the back without packet sniffing? Aug 29 15:44:11 MikeWallaceDev: if i inflate a CAB menu, will it be on top of the current action bar menu, or do i have to deflate that Aug 29 15:45:07 I believe that it's on top. There is no deflation :) Aug 29 16:01:53 netwoodle appears to be having some trouble Aug 29 16:04:20 MikeWallaceDev: i think there is an issue with getListview() in FragmentList Aug 29 16:04:42 does your listview have the correct id in your layout? Aug 29 16:05:10 android:id="@android:id/list" Aug 29 16:08:13 what the nuts Aug 29 16:08:22 kroot, can you please make this stop Aug 29 16:08:57 this fuckin guy Aug 29 16:14:00 ?? What am I not seeing?? Aug 29 16:15:26 "netwoodle" has some sort of auto reconnect on Aug 29 16:17:51 gotcha desmin88 I muted connects... thanks Aug 29 16:19:58 MikeWallaceDev: how do you mute connections Aug 29 16:20:18 it's a setting in Quassel, depends on your client Aug 29 16:23:48 Hi i used to work with flex and air for android but i have a new project that might require a native app this time. I was wondering what are the good architecture framework used to provide help with dependency injection and maybe components frameworks Aug 29 16:24:12 I need to be able to pick up a USB cam plugged through OTG cable and i can only do this native as far as i know Aug 29 16:24:44 Unless maybe i figure out what the cam device name is and rename /dev/video0 to it :P but that's not exactly production setup Aug 29 16:25:10 Madwill: Dagger is a pretty good DI library. Aug 29 16:25:31 Thanks i saw it, will dig it Aug 29 16:36:06 Madwill: note that google is coming out with dagger2 soon Aug 29 16:36:14 but it shouldnt be difficult to migrate Aug 29 16:37:00 Yeah i'm just so set in theses "pattern" i can of like mv* and can't go back to static singletons managers Aug 29 16:37:12 what Aug 29 16:37:21 i kind of* (sorry not very english) Aug 29 16:38:06 hehe sorry le tme rephrase. I'm use to view and mediator with dependency injected value object representing the models Aug 29 16:38:42 I don't know the structure of default app in android Aug 29 16:54:22 I have fixed the crash i was having before. But now i am having troubles inflating the contextual menu. Is there anything wrong with my menu/inflation? http://pastebin.com/eEjhk8dK Aug 29 16:54:44 there are no errors, you just don't see the proper menu Aug 29 16:59:50 what's up people? Aug 29 16:59:55 Man this is some serious overdraw i have: http://i.imgur.com/xbdct40.jpg Aug 29 17:02:10 desmin88: that's a lot of bullets being pushed Aug 29 17:02:24 ? Aug 29 17:02:43 999+ notification Aug 29 17:02:57 isnt that the pushbullet app Aug 29 17:03:01 no Aug 29 17:03:19 that is Messaging being an ass and thinking all of my hangouts sms's are new messages Aug 29 17:03:54 is anyone available to help me with the issue posted above? Aug 29 17:05:18 this menu should appear any time a list item is clicked? Aug 29 17:05:47 the onCreateActionMode gets called every longitem click Aug 29 17:06:37 what functionality do you want Aug 29 17:07:17 for a contextual action bar to appear as described in this article http://www.technotalkative.com/contextual-action-bar-cab-android/ Aug 29 17:09:31 nothing appears to be wrong Aug 29 17:09:53 desmin88: nothing is being inflated Aug 29 17:10:08 yes it is Aug 29 17:10:32 your inflating a menu Aug 29 17:10:37 but do you ever display it Aug 29 17:11:14 shouldn't inflating it, display it? Aug 29 17:11:43 http://on.aol.com/video/downloaded---full-documentary-film-517844258 Aug 29 17:12:39 http://developer.android.com/reference/android/view/ActionMode.Callback.html#onCreateActionMode(android.view.ActionMode, android.view.Menu) Aug 29 17:12:49 Line 45 of your past Aug 29 17:12:52 paste* Aug 29 17:13:45 desmin88: mother... Aug 29 17:13:47 thanks Aug 29 17:14:06 np Aug 29 17:14:16 thanks a lot Aug 29 17:14:18 a lot Aug 29 17:20:44 Can someone help me try to figure out where this massive overdraw is coming from/fix it? http://i.imgur.com/xbdct40.jpg Aug 29 17:21:03 I have the list item layout here - http://pastie.org/9513399 - I think its coming from my card drawables Aug 29 17:25:42 desmin88, are you using a viewholder? That usually helps Aug 29 17:26:28 Yes, I'm doing that but this is more concerned with how im laying out my views Aug 29 17:27:27 I think its this thats killing me http://pastie.org/9513407 Aug 29 17:28:11 nvm Aug 29 17:30:40 I am having a problem with Android studio. I am developing on osX and emulating with Genymotion. The issue is that when I click 'Run', the most recent version of my app isn't being deployed to the emulator. Aug 29 17:31:05 I've cleaned, restarted Android Studio and the emulator. Aug 29 17:31:12 I've rebuilt the app as well. Aug 29 17:33:02 if 3rd-party unofficial software fails you, you should always retry with official Aug 29 17:33:57 or use a device Aug 29 17:34:12 The AVD emulator basically never starts... Aug 29 17:34:21 hello, anybody here know how to debug jni code? I tried to follow the instructions here: https://stackoverflow.com/questions/10534367/how-to-get-ndk-gdb-working-on-android I can't copy the gdb-server file to the device. I get permission denied. I'm trying to debug why my app crashes after returning from a method inside the native code. Adding debug statements show me it gets to the return statement and th Aug 29 17:34:21 en sigsegv error is thrown right after. (the return statement is return 0) Aug 29 17:34:54 is your device rooted? if not, forget about it Aug 29 17:35:17 Found debuggable flag: true Aug 29 17:35:17 ERROR: Could not extract package's data directory. Are you sure that Aug 29 17:35:17 your installed application is debuggable? Aug 29 17:35:19 “ Aug 29 17:35:26 I've also try just running ndk-gdb but with no success either. I get a " Aug 29 17:37:46 Android studio isn't deploying the latest version of my source to attached devices. Aug 29 17:38:03 An old package is being used, made evident by obvious changes missing from the app. Aug 29 17:38:04 ur doing it wrong Aug 29 17:38:08 How might this be happening? Aug 29 17:38:37 try incrementing the version code in your manifest Aug 29 17:39:18 ravilov: No effect. Aug 29 17:39:38 wipe the genymotion app data Aug 29 17:39:47 delete all build files and apk outputs Aug 29 17:39:48 This is a real devie now. Aug 29 17:39:51 device* Aug 29 17:39:55 then it literally will have to build a new apk Aug 29 17:39:57 I've stopped attempting with Genymotion. Aug 29 17:40:14 did you change the package name? Aug 29 17:40:14 god damnit, if I can't even find my app on searchman, how am I supposed to optimize the searchability :/ Aug 29 17:40:43 MikeWallaceDev: no. Aug 29 17:46:03 has anybody worked with the adb protocol? Aug 29 17:46:32 chuckr in what sense, like the actual protocol? Aug 29 17:46:57 yeah, at the tcp/ip packet level Aug 29 17:48:48 anybody here familiar with google protobuf? Aug 29 17:49:42 Android studio isn't deploying the latest version of my source to attached devices. Aug 29 17:49:48 How might that be happening? Aug 29 17:49:53 we know Aug 29 17:50:24 askhader: Close android studio. Find every build folder in your project directory and delete it. Then uninstall the app on your device Aug 29 17:50:46 you can also goto /user/.gradle/cache and delete that Aug 29 17:50:50 desmin88: Which folders are build folders? Aug 29 17:51:08 its named build Aug 29 17:51:10 lol Aug 29 17:51:25 Ah, so the build folder. Aug 29 17:51:30 uhh Aug 29 17:51:32 yes Aug 29 17:52:05 Sorry, I was confused by the wording, I thought there was more than one. Aug 29 17:52:09 there is Aug 29 17:52:23 If you have multiple modules there's multiple build folders Aug 29 17:52:32 gradlew clean achieves the same Aug 29 17:52:52 Anybody know if i can add a usb camera to android and register it so that its availlable through normal Camera API ? Aug 29 17:53:03 I can add a usb camera that is for sure Aug 29 17:53:38 Its shows up under /dev/video0 but only few apps can pick it up. I was wondering with rooting if i was able to fool android into adding the new found and working camera to its usable standard camera Aug 29 17:54:25 askhader: then after you delete the build folders, uninstall the app on your device and try to run it agin Aug 29 17:55:30 Lol, no dice. Aug 29 17:55:38 well then your code hasnt changed Aug 29 17:55:44 right... Aug 29 17:55:56 Where the hell would it be getting the old code from? Aug 29 17:56:11 You deleted every build folder (i hope) and uninstalled the app Aug 29 17:56:17 it has to make the new apk from the current source Aug 29 17:56:23 which means the current source hasnt changeds Aug 29 17:56:33 I'll try the "gradlew clean" command, maybe I missed a build folder. Aug 29 17:56:41 If I can figure out how to get it to work on osX, that is. Aug 29 17:56:59 this is a user error problem Aug 29 17:57:03 not an android studio problem Aug 29 17:57:13 :P Aug 29 17:58:05 how do i clearlogcat in Android Studio? Aug 29 17:58:14 click the trash bin icon Aug 29 17:58:16 i press clear or restart and it just demps everything already printed Aug 29 17:58:17 The fact that I missed a build folder? You're right, I'm not used to manipulating the filesystem that often with my eclipse dev enviroment. Aug 29 17:58:23 yeah thenit just dumps everything from before back into it Aug 29 18:03:48 that camera things is a dream right Aug 29 18:04:27 can i restart the device from adb? Aug 29 18:04:41 lasserix, adb reboot Aug 29 18:04:45 thanks Aug 29 18:04:59 there are many media camera things within /dev/ Aug 29 18:05:58 like nexus 7 has mi1040 and tegra_camera Aug 29 18:06:12 I bet tegra_camera is a screencasting/mirroring util Aug 29 18:06:25 and mi1040 is what i'm looking for Aug 29 18:15:09 Madwill: I would guess one is for the front camera, the other for the back camera Aug 29 18:15:55 Yep, in this case nexus 7 is an oldie front camera only Aug 29 18:16:22 Pretty sure tegra graphic chips allows for screen cloning through camera ish api Aug 29 18:16:59 i'm going to rename /dev/video0 to /dev/mi1040 and see if i can fool it Aug 29 18:19:31 well that is a total fail :P Aug 29 18:25:39 Hey everyone, I have a listview and I would like only the array of whatever is populated in the listview. How do I get it from the adapter? Aug 29 18:26:02 like original list has 10 elements, filtered it has 3, i want the filtered 3 element list that is displayed in the listview Aug 29 18:26:37 that's a nice username. Aug 29 18:27:10 Other then that don't you have an instance of the filtered array you'd be able to plug in the list view ? Aug 29 18:27:17 heh, thanks, i’ve has it for awhile… I think someone else thought so too because every tiem i try to get the uname for a new game it’s taken :( Aug 29 18:27:28 its tied up in spaghetti Aug 29 18:27:31 and im not sure i want that Aug 29 18:27:34 i guess i could Aug 29 18:28:01 but im thinking i might run into problems with a null list if its not filtered Aug 29 18:28:25 Well not filtered could also be a filter that filters nothing Aug 29 18:28:37 I’ll try and see. Aug 29 18:28:55 Does it work that way? filteredlist = clone(list)? Aug 29 18:31:28 sick it worked Aug 29 18:31:44 anybody online that can help with a random crash I am getting? Aug 29 18:31:56 in the ArrayAdapter constructor Aug 29 18:32:08 mItems = items.clone(); Aug 29 18:32:15 then mFiltered = items; Aug 29 18:32:24 thenjust need a getter for mFiltered Aug 29 18:32:37 ya i can try valder, what’s up? Aug 29 18:33:04 08-29 18:29:28.770: I/dalvikvm-heap(283): Grow heap (frag case) to 5.664MB for 1275660-byte allocation Aug 29 18:33:07 what? Aug 29 18:33:51 mymory management Aug 29 18:33:55 memory Aug 29 18:34:09 do you have some arraylist that is getting a lot of adds? Aug 29 18:34:16 or a map somewhere Aug 29 18:34:33 yes Aug 29 18:34:39 a byte array Aug 29 18:34:41 yeah check this out Aug 29 18:34:45 http://stackoverflow.com/questions/7247049/android-grow-heap-frag-case\ Aug 29 18:34:48 oops Aug 29 18:34:49 http://stackoverflow.com/questions/7247049/android-grow-heap-frag-case Aug 29 18:34:57 you should consider preallocating the size of the byte array Aug 29 18:35:05 tricknology: in my native code, I'm am using google protobuf to do some work. after the work is done my code seemingly gets to the return statement and then proceeds to seg fault. I have debug statements all throughout the code and everything seems fine except until I return from the function. Would you mind doing a quick code review on the function in question? Aug 29 18:35:13 a buffer maybe Aug 29 18:35:37 I've never done that, let me google it Aug 29 18:35:48 but just a side question, I have a heap size of 32 Aug 29 18:36:05 Runtime.getRuntime().maxMemory() will get your max heap size Aug 29 18:36:08 tricknology: here's the paste: http://pastebin.com/0VAa4M4x I read that it may be due to an allocation Aug 29 18:36:10 so that error means I don't have 5.664 MB of free stuff currently Aug 29 18:36:20 javnut: It's not an error, and it's not a crash Aug 29 18:36:25 ^^ Aug 29 18:36:44 well, it's a message which says it's going to try and free space up.. right? Aug 29 18:37:02 No, it's just growing the heap Aug 29 18:37:04 08-29 11:33:16.856: D/dalvikvm(11867): GC_FOR_ALLOC freed 1674K, 13% free 21956K/25196K, paused 22ms, total 22ms Aug 29 18:37:08 happens allll the time Aug 29 18:37:32 oh,so the heap doesn't start off at 32 MB Aug 29 18:37:37 It doesn't reserve a max heap sized heap for you when your app starts Aug 29 18:37:39 It grows as needed Aug 29 18:37:39 that's just the max size it can grow to Aug 29 18:37:44 thats the max space in your heap Aug 29 18:38:08 tricknology: this is on Android, btw. so you think it may be a heap issue? Aug 29 18:38:13 1275660-byte allocation is only 1.275 MB anyway Aug 29 18:38:30 32MB is 2.x sizes, newer devices have larger heaps Aug 29 18:38:36 I see, so what happens to my byte array since the heap isn't large enough? Aug 29 18:38:42 I wouldnt call it an issue Aug 29 18:38:46 it is large enough Aug 29 18:38:58 1.257/5.8 Aug 29 18:39:24 does it not get created or something? Aug 29 18:39:30 are you using byte[] or ArrayList? Aug 29 18:39:46 I think you’ll start having other problems before you get that far Aug 29 18:39:59 byte[] Aug 29 18:40:34 u using getBytes()? Aug 29 18:40:34 It's not an error.. Your byte array is allocated just fine Aug 29 18:40:44 ^^ Aug 29 18:40:57 SimonVT: well that's weird, because the code runs correctly the first time Aug 29 18:40:59 It's just logging to let you, as a developer, know what's happening Aug 29 18:41:04 and then seems to not work the next times Aug 29 18:41:25 is there any way to visually monitor allocations? Aug 29 18:41:25 or maybe it is doing what it's supposed to, I have to do some testing to figure it out Aug 29 18:41:30 are you reusing the byte arrays or creating new ones? Aug 29 18:41:50 creating new ones (but garbage collection should be taking care of the old ones) Aug 29 18:41:52 Either way, that line is not the issue Aug 29 18:41:59 so same variable? Aug 29 18:42:10 bytea_arr = new byte[size]? Aug 29 18:42:14 tracknology: ? Aug 29 18:42:14 yeah Aug 29 18:42:24 oi sry Aug 29 18:42:24 actually byte[] bytea_arr = new byte[size]; Aug 29 18:42:37 eeeeh Aug 29 18:42:41 do this Aug 29 18:42:47 well Aug 29 18:42:53 ya that should work i think Aug 29 18:43:12 yeah, the variable should be destroyed once the method is complete Aug 29 18:43:34 yeah.. but just in case Aug 29 18:43:36 I have to run the monitor to figure out what's going on Aug 29 18:44:13 javnut: "then it seems to not work the next times" - please elaborate Aug 29 18:44:30 JesusFreke: hold on, I might be jumping the gun Aug 29 18:44:31 byte[] byte_arr; …some code.. public void method(){ byte_arr = new byte[size]; ..more code}; Aug 29 18:44:49 put byte_arr outside of your code Aug 29 18:44:52 tricknology: so make it a global variable? Aug 29 18:44:52 err method Aug 29 18:45:04 essentially Aug 29 18:45:13 but that would mean it doesn't get destroyed Aug 29 18:45:15 should ensure that that one gets used every time. Aug 29 18:45:26 until the object is destroyed Aug 29 18:45:33 which it won't be if it's global Aug 29 18:46:11 once the object of which it is a member is destroyed Aug 29 18:46:12 if it's global, I'm going to have like 5 MB allocated the whole time the program is running, that's bad. Aug 29 18:46:19 lol, yeah nevermind that Aug 29 18:46:30 maybe you don’t have enough in your heap Aug 29 18:46:38 never encountered this before Aug 29 18:46:50 jug6ernaut: the monitor might show allocation Aug 29 18:46:59 as far as I can tell, he hasn't actually explained what the problem is Aug 29 18:47:06 javnut yeah I'm looking at that now :) Aug 29 18:47:23 Or shown his code.. Aug 29 18:47:25 other than giving a perfectly normal message about growing the heap Aug 29 18:47:26 JesusFreke: I might not have a problem yet Aug 29 18:47:40 try and see what this puts out before and after you allocate the byte array Aug 29 18:47:41 Runtime.getRuntime().totalMemory() Aug 29 18:48:41 is this C++? Aug 29 18:48:57 calder Aug 29 18:48:59 valcer Aug 29 18:49:01 aldfhsd;lf Aug 29 18:49:06 valder Aug 29 18:49:17 yes Aug 29 18:49:29 JNI code Aug 29 18:49:54 tricknolog: brb.. gotta pick up the kids.. but any ideas would be appreciated Aug 29 18:50:05 ##cplusplus Aug 29 18:50:21 hello Aug 29 18:50:41 I want to get coordinates from gps.. Aug 29 18:51:05 seg faults are where you write to a part of the memory that your program doesn’t own.. Aug 29 18:51:24 happens in arrays, of you go out of bounds Aug 29 18:51:27 if* Aug 29 18:51:31 valder Aug 29 18:51:47 hi guys. dumb question. do i really need to download the SDK's of Android versions 4.0 and up if i just want to build apps on my laptop ? Aug 29 18:52:14 well you just need one SDK api level basically (the newest probably is enough) Aug 29 18:52:28 I write mine in 2.2 Aug 29 18:52:35 and the rest are for testing apps ? Aug 29 18:52:42 sort of Aug 29 18:52:55 if that can help you Yuri_Harrison: http://pastebin.com/JWevFCNb Aug 29 18:53:32 I should switch to 2.3 though Aug 29 18:53:39 ( the Position class: http://pastebin.com/u6nWd3CF ) Aug 29 18:53:46 what are the preferrable sizes and paddings for ImageButton icons? Aug 29 18:53:57 but 10% of the market share is huge Aug 29 18:54:30 its because my SSD drive would have trouble containing all SDK's from 4.0 and up.. so i will just get 4.3 and up. Thanks Aug 29 18:54:54 uhlm: why would you need to download all of them :/ Aug 29 18:55:03 uhlm, you need only the target SDK Aug 29 18:55:07 yeah Aug 29 18:55:26 uhlm, that is target SDK specified in your project... just remember that if you have compilable dependencies (e.g. apklibs) you need their target SDKs as well Aug 29 18:56:03 to be honest i thought it was common practice to test apps out in the various SDK's Aug 29 18:57:12 it is uhlm, but the best test device is the real, but it's hard (mostly expansive) to have all versions :o Aug 29 18:57:27 uhlm, I think you're mixing up Android versions and target SDK Aug 29 18:57:34 the app is always linked against a single SDK version. Aug 29 18:57:37 Mavrik: i might be Aug 29 18:57:45 :) Aug 29 18:57:50 you CAN run it on several different Android versions and emulators tho Aug 29 18:58:01 uhlm, which you see as separate downloads in SDK Manager. Aug 29 18:59:08 that will save me some space then. thanks for the feedback. Aug 29 19:02:45 why does when deploying an app in debug mode to adevice cause oncreate->onstart->onresume->onpause->onresume to happen? Aug 29 19:02:47 wtf is this? Aug 29 19:03:22 debug dialog probably? Aug 29 19:03:28 what? Aug 29 19:03:34 no i am just wodnering why it goes through on pause Aug 29 19:03:43 it goes create start resume pause resume pause resume Aug 29 19:03:54 why the trailing pause resume pause resume? Aug 29 19:04:18 lasserix, again, the debug dialog that covers your app? Aug 29 19:04:33 what? Aug 29 19:04:36 no Aug 29 19:04:39 this has nothing to do with debug Aug 29 19:04:41 are you a moron? Aug 29 19:04:45 when you are deploying to a device Aug 29 19:04:49 there's a dialog on the device Aug 29 19:04:55 "Waiting for debugger to connect..." Aug 29 19:05:09 if a dialog (or anything else) covers your app it'll get onPause() Aug 29 19:05:43 hmm Aug 29 19:05:45 okay Aug 29 19:05:50 NOT in debug mode Aug 29 19:05:56 it still does this Aug 29 19:06:16 is there some intermediate screen when not in debug mode that is also showed but disappeared before being able to see? Aug 29 19:06:20 maybe it's the old version in the process of being terminated? Aug 29 19:06:24 no Aug 29 19:06:26 i cleared it Aug 29 19:06:50 lasserix: maybe take a look at adb logcat -b events Aug 29 19:07:12 hmm okay Aug 29 19:07:12 thanks Aug 29 19:17:17 i am doing a simple fade out animation on a listview item as shown here: http://pastebin.com/bqiz5BLa but instead of fading it , it just waits for the duration of the animation and then does the runnable. Aug 29 19:18:13 ignore that post^ Aug 29 19:18:25 what post? Aug 29 19:19:17 actually nevermind i am still having that issue Aug 29 19:19:33 JesusFreke: this one " i am doing a simple fade out animation on a listview item as shown here: http://pastebin.com/bqiz5BLa but instead of fading it , it just waits for the duration of the animation and then does the runnable." Aug 29 19:19:46 I don't know what post you're talking about Aug 29 19:20:13 Although, there's a strange blank place in my memory Aug 29 19:20:26 I think I hear some background noise Aug 29 19:20:30 I must be going crazy Aug 29 19:22:04 actually here use this pastebin, it has the whole function http://pastebin.com/FqwsBNSF Aug 29 19:23:14 yep still hearing it Aug 29 19:23:21 tricknology: hey.. I'm not sure how I'm writing anywhere on a return statement Aug 29 19:23:32 tricknology: but I'll check Aug 29 19:23:52 ravilov: JesusFreke i exist!!! Aug 29 19:24:39 tricknology: could it be part of the function cleanup that is doing this? What's strange is that the code runs ok on my iOS port. hmm. Aug 29 19:25:19 Is there a way to get the date formatter to lead years with 0's. So if something is year 1. It will display 0001? Aug 29 19:26:16 wouldn't YYYY do it? Aug 29 19:26:29 that's what i thought Aug 29 19:28:07 I didnt see it in the documentation. Am I looking in the wrong spot? Aug 29 19:28:08 http://developer.android.com/reference/java/text/SimpleDateFormat.html Aug 29 19:28:12 I am testing now Aug 29 19:30:51 Im looking at a decompiled APK because our community suspects some malicious code was embedded. Unfortunately I'm a web developer and not an Android dev. Can someone guide me in the direction of where to look to confirm if or if not there is anything there? Aug 29 19:32:45 you really have to be a developer (and a darn good one too) to be able to follow raw smali code Aug 29 19:33:10 Can anyone help me with this? i am doing a simple fade out animation on a listview item as shown here: http://pastebin.com/FqwsBNSF but instead of fading it , it just waits for the duration of the animation and then does the runnable. Aug 29 19:33:12 and by that I mean a low-level kind of developer Aug 29 19:33:39 That would figure. I haven't touched Assembly in 10+ years. Aug 29 19:33:55 ravilov, what if i have the APK from the Play Store. is there anyway to compare it to the APK i have and show me the differences? Aug 29 19:34:11 YYYY didnt work Aug 29 19:34:22 ins't an APK just compressed file like a JAR? Aug 29 19:34:36 rburgosnavas, it's a zip Aug 29 19:34:38 Just delete the apk you have and download it from play store Aug 29 19:34:40 rburgosnavas, what good does that do? Aug 29 19:34:41 could you decompress it and use a Java decompiler? Aug 29 19:34:52 no, rburgosnavas... Aug 29 19:34:52 Hey guys I am following a video tutorial and using gps and google maps. In the video he uses MapController, but when I type it in it doesn't give me the option "import com.xx.xxx" or anything like that, is mapcontroller deprecated? (I am using Android Studio as IDE) Aug 29 19:35:24 SimonVT, that's not the point. I have that version, I'm just looking to compare it to the versino someone is passing around our community to see if it's been altered to be malicious Aug 29 19:35:27 ravilov: why? Aug 29 19:35:59 rburgosnavas, in short, APK does not contain any java bytecode; for more details please use google Aug 29 19:36:27 oh right, my bad Aug 29 19:36:44 thanks for the google suggestion Aug 29 19:36:53 anybody here know how to get started on debugging my JNI code? I can't seem to connect with ndk-gdb. Here's the command I'm issuing: Aug 29 19:36:54 $ ndk-gdb --start --verbose --nowait -s 9c97eaad048fe569 Aug 29 19:36:59 ;) Aug 29 19:37:02 wdkevin, you can always decompile both and try running diff -ru on the smali directories Aug 29 19:37:25 the app is set to debuggable and I compiled with NDK_DEBUG=1 as well Aug 29 19:37:33 ravilov, excellent idea. thank you! Aug 29 19:39:44 wdkevin: Tell people in your community to pass around play store links instead of apk's Aug 29 19:39:46 Problem solved Aug 29 19:41:20 SimonVT, doesn't look like he's got control over what's going on, probably just trying to do damage control or something Aug 29 19:44:02 ARG! I'm stumped! I started a Notification in an AsyncTask, update it etc., do a final update when AsyncTask is done, but I can't close the Notification *manually* on the device, even after setting a final setOngoing(false) Aug 29 19:45:02 just remove it completely and add a fresh non-ongoing one Aug 29 19:47:04 I'll try that Aug 29 19:49:41 Hey guys Did mapcontroller get deprecated? I tried adding MapController but it cannot be resolved and I am not able to import it. Aug 29 19:50:26 wouldn't the API docs provide an answer to this question? Aug 29 19:50:44 yes Aug 29 19:50:48 but lets ask on irc Aug 29 19:51:11 wow we got some smartasses in here. No worries. Aug 29 19:51:54 honestly im not trying to be a dick Aug 29 19:52:08 but people ask questions on here that can be googled in 5 seconds and found using im feeling lucky Aug 29 19:53:14 is there a reason why list.getChildAt(positionOnScreen).animate().alpha(0); doesn't animate, but doing (View) list.getChildAt(positionOnScreen).getParent().animate().alpha(0); would properly animate the parent Aug 29 19:53:28 can one set an ImageView to parent width (ie match_parent) and have the height scale in direct proportion? Aug 29 19:53:37 rgr: Yes Aug 29 19:53:38 hold on Aug 29 19:53:58 @desmin - all that showed up was mapview even when I specified mapcontroller. Aug 29 19:54:03 in google Aug 29 19:54:06 onSteroids: a ListView by any chance? Aug 29 19:54:12 rgr: yes Aug 29 19:54:28 yeah. Dunno. I had funny problems with setting UI attributes on a ListFragment. Aug 29 19:54:28 rgr: http://pastie.org/9513635 this class is an extension of the imageview that maintains the aspect ratio (scale height) Aug 29 19:55:00 ignore the terrible variable names Aug 29 19:55:11 jd-gui did that and im too lazy Aug 29 19:55:22 thanks. I'll tkae a peek. Was hoping in XML. Also not possible in XML to set a width to a % of the parent it seems which seems an awful ommission : I tried weight with a width of 0dp and it doesnt appear. Aug 29 19:55:33 yeah you cant do that in xml Aug 29 19:57:16 but you should be able to the second parent Aug 29 19:57:25 linearlayouts weight works for height and width Aug 29 19:57:30 desmin88: Im not sure I understand the code. How do I size it in the code or XML? Im not familiar with paramAttrs if its done through that. Aug 29 19:57:50 add this class to your project Aug 29 19:57:57 instead of an imageview in your xml Aug 29 19:57:59 use this class Aug 29 19:58:25 sure. But how to size it? Set width to match_parent and height to waht? Aug 29 19:58:26 what Aug 29 19:59:06 wrap Aug 29 20:00:29 MikeWallaceDev: are you around? Aug 29 20:04:39 I have a weird problem. My app calls camera through intent. It works properly on my nexus 5 but crashes on Moto G Aug 29 20:05:05 neat Aug 29 20:05:26 (mental note : never ever try and develop anything that use the camera....) Aug 29 20:06:58 @rgr why so? Aug 29 20:07:13 its not fun Aug 29 20:07:55 you would have a better chance of getting something useful if you would give more details about your situation Aug 29 20:08:01 like how exactly are you forming the intent Aug 29 20:08:32 or maybe the stacktrace Aug 29 20:08:43 or maybe he just wanted to tell us his app was crashing Aug 29 20:08:59 @ravilov I am using the code given by this guy http://stackoverflow.com/a/12347567/1461078 Aug 29 20:09:02 because I read heaps of issues here daily with interfacing with the camera : generally of the form "it works on this device but not on my other one". Aug 29 20:10:18 Unfortunately I dont have access to moto G right now so i cant provide the stacktrace Aug 29 20:10:47 cant eally help Aug 29 20:10:53 But the error was java.lang.runtime exception unable to resume activity Aug 29 20:11:41 the weird thing is it runs properly on nexus 5 (api 19) micromax canvas (api 17) samsung s3 but not on moto g Aug 29 20:14:23 rgr: do you have exp in using Google Protobuf.. (sorry if I asked you this before.. I've resolved a lot of my issues over the last few weeks, I'm left with this one now) Aug 29 20:14:35 nope Aug 29 20:15:11 rgr: actually it's probalby not even related to protobuf, any idea why erturning from a function would cause a sigsegv error? Aug 29 20:15:21 I have a problem, surfaceCreate is not called whyn I resume my activity, why is that? Aug 29 20:16:29 hey Aug 29 20:16:46 rgr: do you know of any leads regarding listview items that are not animating Aug 29 20:17:12 animate the parent . try that. Aug 29 20:17:23 it stick it in a "holder". Aug 29 20:18:07 guys im wondering if its possible to get the names of the attributes of a class with a method inside a class... like getAttributesOfThisClass() and retriving an array with the names Aug 29 20:18:43 attributes meaning Aug 29 20:18:50 onSteroids: what up? Aug 29 20:18:53 mrpyo: you mean surfaceCreated? Aug 29 20:19:03 yes Aug 29 20:19:14 was surfaceDestroyed called? Aug 29 20:19:31 MikeWallaceDev: repeating it for you "is there a reason why list.getChildAt(positionOnScreen).animate().alpha(0); doesn't animate, but doing (View) list.getChildAt(positionOnScreen).getParent().animate().alpha(0); would properly animate the parent" Aug 29 20:19:47 surfaceDestroyed is called when I press home button, but when I resume surfaceCreated is not called Aug 29 20:19:54 and you sure that version of surfaceCreated is the correct assigned listener? Aug 29 20:20:02 code: http://pastebin.com/FqwsBNSF Aug 29 20:20:26 http://pastebin.com/peqSE0Ve Aug 29 20:21:18 attributes meaning private elements declared before... example: public class test{ private int hello; public void getMyAttributes(){ functionRetrieveHelloBecauseThatItsTheOnlyAttributeDeclared();} } Aug 29 20:21:32 yeah you need to use reflection Aug 29 20:22:04 onSteroids: don't know... that code doesn't match your question Aug 29 20:22:15 are you sure surfaceDestroyed isnt locking up on the join? I have similar code and dont bother with the join. Just set the "escape" variable in the render thread loop. Aug 29 20:22:16 and I don't know what kind of views your pointing at Aug 29 20:22:18 reflection? Aug 29 20:22:59 join only waits for it to complete. it doesnt kill it afaik. Could be wrong. Aug 29 20:23:03 cliffreich: ... its a part of java Aug 29 20:23:24 MikeWallaceDev: this is pretty much straight from the Devbyte on deleting listview items. but the animate().alpha(0) does not work. The listview item is not being faded out Aug 29 20:23:38 ok ill google it brb Aug 29 20:23:59 onSteroids: the listview is a special case I've been led to believe. Stick it in a holder and animate that. Aug 29 20:24:09 why does no one here know the actual language they use Aug 29 20:24:39 in fairness reflection is not something most people ever have to mess with. Aug 29 20:24:42 rgr: thanks, you are a lifesaver Aug 29 20:24:53 mrpyo: Oh good! I was right? :) Aug 29 20:24:57 onSteroids: Then maybe you should ask Chet :D Aug 29 20:25:03 Sorry mate, I don't know :) Aug 29 20:25:10 fair enough rgr but they should atleast know what it is Aug 29 20:25:28 MikeWallaceDev: hah, ok np Aug 29 20:26:00 Im not sure. not really. I'm fairly new to Java and have a modest knowledge but have only seen reflection mention in passing. It seems something used by people who need to confuse others :))) Aug 29 20:26:21 yeah, everythink locked at join, I forgot to setRunning(false) (so thread could actually finish) Aug 29 20:26:49 mrpyo: Im like a dog with a bone : use the debugger and step through. Every time.... :) Youd have found it in a jiffy. Aug 29 20:27:40 old mc-rgr has a dog and debugger was his name-o. D-E-B-U-G-G-E-R Aug 29 20:27:44 ok, that doesn't really work Aug 29 20:28:25 Anyone using Android Studio? How do I launch on the emulator and devices at the same time? Aug 29 20:28:58 well it asks me what device to run on every time Aug 29 20:29:01 afaik, you can't launch to multiple devices automatically Aug 29 20:29:37 oh you want to run at both devices at the same time? Aug 29 20:29:56 yeah you can. Aug 29 20:30:02 ctl.click the other one. Aug 29 20:31:25 works fine. well in intellj. I cant imagine it would any different in AS. Aug 29 20:31:41 smitzer, what makes you think you can do that? Aug 29 20:32:19 ravilov: not at the same time but so it launches first on one then the other, it was doable in eclipse Aug 29 20:32:41 well I guess I just learned something new about eclipse Aug 29 20:32:42 lets see if it works now, started on sim and yes on phone so works i could just mark both in the dialog Aug 29 20:32:46 not that I'm likely to ever need it Aug 29 20:33:50 now when I have this problem behind me, it's time to write the greatest android game ever, BUAHAHAHAHA Aug 29 20:34:06 Ok I read the docs like some users suggested, and got my gps app to work but when I use mMap.moveCamera it doesn't lock on my coordinates.. Aug 29 20:36:23 mrpyo: heh. Its a lot of work to beat even the junk that every person who has copied JetBoy churned out... ;) Aug 29 20:38:57 I have some simple idea that may catch on... Aug 29 20:39:08 but its so simple it may turn out ridiculous Aug 29 20:39:38 could it be more ridiculous than flappy bird? Aug 29 20:40:10 kinda :P Aug 29 20:43:53 hey guys, I was following a tutorial on making custom listviews which can be found at: http://developer.sonymobile.com/2010/05/20/android-tutorial-making-your-own-3d-list-part-1/ Aug 29 20:45:21 it works well, except when view recycling is introduced... Aug 29 20:45:35 show us your code Aug 29 20:46:08 one sec Aug 29 20:48:40 eh, I have so many ideas, so little will... Aug 29 20:50:17 https://gist.github.com/C2H6O/298687262b941b7cbfeb Aug 29 20:51:24 so when recycling is disabled, fast scrolling the list works well Aug 29 20:52:50 as soon as getCachedView() is introduced, fast scrolling the list introduces glitches, where the value of the recycled view shows up instead of the adapter supplied view Aug 29 20:54:05 so, can we discuss app monetization here? Aug 29 20:54:12 whats that ? Aug 29 20:55:56 smitzer, only if you pay us to do that Aug 29 20:57:33 this is very interesting https://github.com/bither/bither-android-lib/blob/master/REASON.md Aug 29 20:57:45 about image quality on android, libjpeg, skia Aug 29 21:04:14 g00s, that was a good read, very interesting indeed Aug 29 21:05:22 "Rovio, the Finnish gaming company behind the popular Angry Birds franchise, said on Friday that its chief executive, Mikael Hed, would step down at the end of the year." Aug 29 21:05:46 so Rovio is struggling ... Aug 29 21:06:01 they didn't figure out yet that mobile is just a lucky crapshoot ? Aug 29 21:06:21 any large company that is based around a single app is eventually gonna fail Aug 29 21:06:25 especially a game Aug 29 21:06:31 pretty much like becoming a music celebrity Aug 29 21:07:42 seems like they are struggling with freemium Aug 29 21:07:45 "But the freemium business model is now encountering its own struggles, as some gamers and regulators question whether companies are misleading customers by not adequately disclosing the cost of the extras. " Aug 29 21:07:49 eeee macarena Aug 29 21:08:02 they diversified into other stuff like movies Aug 29 21:08:14 nice image compression Aug 29 21:15:19 I have a question if someone is able to help me, I am trying to have my screen lock on my current lat/lng but it keeps locking on part of the map that is hour away from me, and zooms all the way in. Aug 29 21:23:39 Does anyone know of some good sliding panel libraries? I want to implement a slide up panel displaying comments on an article Aug 29 21:24:11 Hi guys! Is there a way to fetch calendar data directly from the google calendar app on your android device? I'm making a productivity app and I'd like to get the data straight from there, but Idk if that's possible and the google calendar API only communicates with the online calendar service Aug 29 21:26:01 I've tried https://github.com/umano/AndroidSlidingUpPanel but it is a little inflexible Aug 29 21:28:32 AK___: have you looked at the calendar provider? Aug 29 21:28:33 http://developer.android.com/guide/topics/providers/calendar-provider.html Aug 29 21:32:28 Is there is a "method" that applies .xml to widget like Button? Aug 29 21:33:58 grrr.... Error:(1, 0) Plugin with id 'com.android.application' not found. Aug 29 21:34:12 wth? this was working earlier Aug 29 21:39:54 JesusFreke thank for that. Checking it now. Aug 29 21:41:31 this isn't strictly android dev related, but if I use an apache licensed library, is it enough to include a link to the license? Aug 29 21:41:48 aka if i use this, do i just have to include this https://github.com/sromku/android-simple-facebook/blob/master/LICENSE in my about screen? Aug 29 21:41:56 or do i have to include the full license text Aug 29 21:46:57 anyone figure out how to add tabs to logcat? Aug 29 22:01:37 nvm, found it: buttonkek.setBackgroundResource(R.drawable.list_button); buttonkek is button variable and res/drawable/list_button.xml is xml containing style Aug 29 22:02:36 buttonkek Aug 29 22:02:38 lol Aug 29 22:04:31 has anyone ever used the SystemBarTint Aug 29 22:04:32 used to naming stuff potatoes and stuff; later had problems identifying what is what Aug 29 22:04:36 library Aug 29 22:38:39 About loaders, using a contentprovider to provide access to a database, and implementing a loader to access it, there is still some lag/stutter when opening a fragment with a list full of elements. My best guess is that once the loader returns a cursor, the sudden creation of a bunch of views causes some delay, since it happens on the UI thread. Is there some standard way of mitigating this?... Aug 29 22:38:41 ...Or will I need to roll some custom viewloader that creates views in the background? Or am I completely off the mark, and there is no way creating the views is an issue? Aug 29 22:39:38 can't find out how to set buttonkek (it is button variable) width/height to match_content or wrap_content Aug 29 22:39:45 *match_parent Aug 29 22:40:06 Thorbear: show some code Aug 29 22:40:08 like your adapter Aug 29 22:41:52 Thorbear: it shouldn't be creating that many views... not enough to lag the Activity... Aug 29 22:41:57 Hello is there a channel for xda? Aug 29 22:42:10 a dead one Aug 29 22:42:21 repost: ARG! I'm stumped! I started a Notification in an AsyncTask, update it etc., do a final update when AsyncTask is done, but I can't close the Notification *manually* on the device, even after setting a final setOngoing(false) Aug 29 22:42:52 I don't think I'm following the Notification's "life cycle" properly Aug 29 22:43:48 I've tried NotificationMamanger.cancelAll() before building a new final Notification, and nil Aug 29 22:44:01 desmin88: I was asking more in a general manner, but my usual approach is to implement a CursorAdapter which creates/inflates views in newView() and binds data to the view in bindView(). The adapter is instantiated with null as cursor and 0 as flags, set as adapter to the listview in onCreate(), and once the loader finishes I use changeCursor() to give the data to the adapter. Aug 29 22:44:07 Bitwise: #xda-rc Aug 29 22:44:30 desmin88: I can throw together an implementation with this problem if that'll make it easier to provide suggestions. Aug 29 22:44:53 thanks Topkek007 Aug 29 22:45:43 Thorbear: All I can think of is your queries are taking a long time or your view inflation is incorrect, doing too much in the adapter Aug 29 22:47:53 desmin88: If the query was taking a long time, shouldn't that just mean that it takes longer for the list elements to show up? In my case they appear to be ready halfway through the fragment-open-animation, which causes the unwated stutter in said animation. Aug 29 22:48:57 How would the inflation be incorrect? By not passing parent or something? I guess at this point I really need some code to show... Aug 29 22:49:15 yes just show code Aug 29 23:48:13 Apparently preparing the code took me so long that desmin88 left, but for anyone interested: http://pastebin.com/PfPVaxNy ref the question above regarding stutter/lag during fragment-open-animation. Assume the cursor returned by the loader has about 100 rows. Aug 29 23:58:17 I've been trying for several days to get an external Uri to launch from an ActionBar menu item with no success. I keep getting the error in the logs "W/ActivityManager(804): Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL". From what I've gathered, the problem is that the Intent used in startActivity needs a namespace other than the system bu Aug 29 23:58:18 t ActionBar items are fired in the system namespace. Does anyone know of any writeups on how to properly launch another app with a Uri (p2spro:// in this case) from the ActionBar? Aug 30 00:07:19 virgomoon: full stacktrace/error log? maybe some code too? Aug 30 00:07:44 (pastebin) Aug 30 00:09:16 I am a bit unsure if I should release my game as soon as the game itself is finished and then update with global highscores and some achievements scheme. or wait and release all at once Aug 30 00:09:48 the new app on google play is superimportant i guess since if you get on top then your app will be exposed and get out to the whole world. Aug 30 00:10:09 so wort waiting and make the game more interesting and then keep the users Aug 30 00:10:20 or finish release and do a lot of incremental releases? Aug 30 00:13:51 JesusFreke, http://pastebin.com/7QpMM3pH Aug 30 00:18:26 virgomoon: hmm. not seeing anything offhand. Is there any error message from your application specifically? Aug 30 00:19:01 no, the app itself doesn't crash or anything, it just does nothing .. the error noted was in LogCat in Eclipse Aug 30 00:19:19 In particular, it's an error related to settings.. and simply starting an intent should be touching settings Aug 30 00:20:11 do you see log entries indicating that the intent was delivered to the other application? Aug 30 00:21:19 no Aug 30 00:21:49 just "08-29 20:20:17.952: W/ActivityManager(804): Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL" same error for DatabaseManager, too Aug 30 00:23:33 I read (about 20 pages ago that I'm not seeing now) that ActionBar menu items operate as the system user so they can't directly create Intents as that's a system-level process Aug 30 00:23:51 my phrasing may be way off, but that's what I took from it Aug 30 00:25:41 virgomoon: yeah, I can't see what the problem is there. sorry :) Aug 30 00:25:55 thanks for looking Aug 30 00:38:18 Hey guys, I was curious can I change the gps blue dot to different color? Aug 30 00:50:23 hi folks Aug 30 00:51:32 desmin, do you know if the gps blue dot can be changed to another oclor Aug 30 00:51:38 ugh, i need some ideas Aug 30 00:51:53 wait, never mind Aug 30 00:52:02 just joining this channel helped xD Aug 30 00:52:19 jeez Demon_Jester atleast take me to dinner first Aug 30 00:52:25 LOL Aug 30 00:52:29 L0L Aug 30 00:52:47 what do you mean by gps blue dot Aug 30 00:53:30 well when i launch gps app it shows my current location with blue dot Aug 30 00:53:38 i meant arrow Aug 30 00:53:47 wat Aug 30 00:54:06 nevermind Aug 30 00:54:12 ive never seen that before Aug 30 00:54:18 is it part of your app or what Aug 30 00:55:01 thats default Aug 30 00:55:12 take a screenshot of your phone Aug 30 00:55:17 it was default I obviously didnt modify it, if I did I wouldnt have asked. Aug 30 01:00:57 @desmin88 http://imgur.com/a3lfJ7W Aug 30 01:01:08 oh Aug 30 01:02:44 ugh Aug 30 01:02:47 so Aug 30 01:02:56 my session management is heavily relient on an activity Aug 30 01:03:24 which i just realized fucks me over when it comes to notifications :P Aug 30 01:03:29 welcome to android Aug 30 01:03:39 ty Aug 30 01:04:04 i guess I'll write a second version of it...with regular callback objects instead of the whole activity result thing Aug 30 01:44:28 I have a question in regards to the WifiConfiguration Content provider ? how do i send configurations Via accessing the provider from another application. Say Creating an Ndefrecord that will beam the correct wifi configuration details Aug 30 01:57:59 netwoodle: hey Aug 30 02:05:22 I have a question in regards to the WifiConfiguration Content provider ? how do i send configurations Via accessing the provider from another application. Say Creating an Ndefrecord that will beam the correct wifi configuration details **** ENDING LOGGING AT Sat Aug 30 02:59:59 2014