**** BEGIN LOGGING AT Tue Apr 29 02:59:58 2014 Apr 29 03:18:35 Hello, I am trying to use AsyncTask Apr 29 03:19:03 so basically the class looks like this: Apr 29 03:19:03 public class URIBuilder extends AsyncTask Apr 29 03:19:20 and this is how the doInBackground looks like Apr 29 03:19:21 public class URIBuilder extends AsyncTask Apr 29 03:19:30 protected String doInBackground( String... params) { Apr 29 03:19:30 try { Apr 29 03:19:30 return getURL(); Apr 29 03:19:30 } catch ( IOException e) { Apr 29 03:19:30 // TODO Auto-generated catch block Apr 29 03:19:32 e.printStackTrace(); Apr 29 03:19:34 } Apr 29 03:19:36 return null; Apr 29 03:19:38 } Apr 29 03:19:54 Ram_: you should use pastebin Apr 29 03:20:01 instead of pasting in channel Apr 29 03:20:06 u r right. Apr 29 03:20:20 i generally do that, but i guess i needed a quick response. Apr 29 03:20:25 I l post it there and post the link ÑP Apr 29 03:20:26 :P Apr 29 03:21:03 whethere you get a quick response doesn't depend on pasting code Apr 29 03:21:06 in chat Apr 29 03:21:38 what's the problem with the code? Apr 29 03:24:31 http://pastebin.com/jf16zrNK Apr 29 03:24:38 Jonno_FTW: Here is teh link Apr 29 03:24:41 the question is Apr 29 03:24:59 I call the AsyncThread execute using Apr 29 03:25:00 String htmlcontent = mUriBuilder.execute(""); Apr 29 03:25:23 I know this is not right, so the question is if I need to get a return value from doInBackground(..), how will I get it ? Apr 29 03:26:00 the return value type is specified in the generic bit Apr 29 03:26:14 it's returned by doInbackground Apr 29 03:26:49 youi are returning null Apr 29 03:27:59 Ram_: got it? Apr 29 03:28:20 generic bit _ Apr 29 03:28:22 ? Apr 29 03:28:28 I didnt get that Apr 29 03:28:45 AsyncTask , means you give a string to doinbackground Apr 29 03:28:51 and returns a string Apr 29 03:29:03 right , and the return value that i have is return getURL(); Apr 29 03:29:09 which is a function that returns string Apr 29 03:29:22 then what's the problem? Apr 29 03:29:32 if you want that returned value, you do .execute() Apr 29 03:29:51 Well, eclipse points out saying this: Type mismatch: cannot convert from AsyncTask to String Apr 29 03:30:19 It wants me to declare htmlContent as AsyncTask htmlcontent Apr 29 03:30:42 idk Apr 29 03:30:46 read the example in the docs Apr 29 03:31:09 should I call somethnig like this instead: Apr 29 03:31:09 mUriBuilder.execute(htmlcontent) ? Apr 29 03:31:31 well, I looked at everything, unfortunately, none of th examples I find, show about return values Apr 29 03:31:42 including the one from android developer Apr 29 03:34:21 yes Apr 29 03:34:23 thats how it is Apr 29 03:34:35 I just ran with mUriBuilder.execute(htmlcontent) Apr 29 03:34:40 and it works as I expect. Apr 29 03:34:51 Thnaks for the help anyways Jonno_FTW Apr 29 03:35:09 I want to play video, that's contained in a directory, in a loop, on start up, anyone suggest the best approach? Apr 29 03:37:49 Ram_: when using AsyncTask don't you do all your returned data assigning for UI in onPostExecute? Apr 29 03:38:16 I Could Apr 29 03:38:19 and thats the right way to do Apr 29 03:38:21 actually Apr 29 03:38:24 no i'm saying isn't that where you do it Apr 29 03:39:02 but I dont know if there is a reason why i cannot do it from doInBackground call Apr 29 03:39:12 cant touch ui elements in doInBackground without executing a runnable on ui Apr 29 03:39:54 GenRipper: use VideoView, as long as it supports your format Apr 29 03:39:57 is it possible to have a drawer come up from the bottom of the view window using the current api? I can only see references to left and right drawers Apr 29 03:40:01 because the function that i call getURL(), basically opens a httpclient, sends a rquest and gets a response, then i convert that httpresponse toa string, which i return back from teh function Apr 29 03:40:23 I think I am fine, as long as i do not inflate the value returned in the main activity / fragment Apr 29 03:40:26 and you return that string to your onPostExecute Apr 29 03:41:01 GenRipper: and then you can start() the video again in VideoView.setOnCompletionListener(... Apr 29 03:41:14 the corret way would to to have a void getURL() , and have a function String getResult() which returns the value that i m currently returning from getURL Apr 29 03:42:05 Ram_: i'm saying your are doing return getUrl() in your doInBackground, you handle that return in onPostExecute? Apr 29 03:42:41 I dont handle the results at all Apr 29 03:42:59 teasp00n: I think google had reserved the bottom for their google now on stock androids Apr 29 03:43:03 i don't get what you are trying to accomplish then Apr 29 03:43:56 shmooz: cheers, sounds like i might have to get hacky :p Apr 29 03:44:48 well, am trying to get a html source page to figure out a couple o fthings in my mainthread Apr 29 03:44:51 thats the objetive Apr 29 03:45:01 Ram_: what i'm getting as is doing return getUrl() in doInBackground you'd get your return of getUrl in onPostExecute(String yourReturn){doWhatYouWantWithTheString = yourReturn;} Apr 29 03:45:07 teasp00n: you should make an app that simply overrides and disables it and does nothing else ;) Apr 29 03:45:09 getting at* Apr 29 03:45:36 I'd but that Apr 29 03:45:41 buy Apr 29 03:46:09 aah . I see, so r saying that the return value getURL(), is NOT returned by doInBackground, BUT onPostExecute ?? Apr 29 03:46:46 i'm saying onPostExecute get your results, and post to whatever UI Thread object you want Apr 29 03:47:17 I have a ListView in a fragment in a ViewPager in MainActivity, how do I access the ListView from MainActivity? Apr 29 03:48:17 hold on I am still not clear, let me do something on the pastebin,and then i shall ask if that is what you meant. Apr 29 03:48:58 Jonno_:why the listview Jonno_FTW? Can always get a reference of currently loaded fragment, check it for an instance of your FragmentClass and if correct, access public methods/variables Apr 29 03:49:40 Ram_: once you have the html string from getUrl, what are you intentions, to parse it, or search it, or just display raw text? Apr 29 03:52:05 canvs2321 : Did you mean soemthing like this Apr 29 03:52:06 http://pastebin.com/fdtJk6mR Apr 29 03:52:54 canvs2321: http://pastebin.com/4chhdnFB what do I change in here? Apr 29 03:54:00 Ram_: getResult() is mWebPage set in getUrl? What I'm saying is what are you doing with the text once you have it? displaying it, or parsing it? Apr 29 03:55:20 Jonno_FTW: Where in that code do you need to access your listView from MainActivity? what are you doing with the listview? or are you wanting the adapter, or what are you trying to accomplish Apr 29 03:55:29 canvas2321, write now I am jus passing it as a string to see if it works (this is my first time with httprequest and asynctask). My real objective is to find a particular text from this source which has a bunch of parameters taht I need for my "real" logic Apr 29 03:56:10 canvs2321: I want to call setAdapter on the ListView Apr 29 03:56:54 shmooz: yeah make users install this shady as service to run the app lol Apr 29 03:57:07 well to see if it works, in onPostExecute do a toast with the results, then once you see that it works, in the doInBackground, getUrl() to a String, do you checking/searching code of string, then return whatever results you want, then in onPostExecute display to whatever view(s) what you have found Apr 29 03:57:27 Jonno_FTW: Why are you calling that from your main activity? Apr 29 03:58:09 Jonno_FTW: where is your declaration for mAdapter ? Apr 29 03:58:17 oh ok I see it now Apr 29 03:58:36 FragmentPagerAdapter, yuck Apr 29 03:59:39 Jonno_FTW: You need to describe what each fragment in the pager is for. Why would you set the adapter for a listview in a fragment from mainactivity? Apr 29 04:00:57 canvs2321: because each tab is basically the same fragment, the contents are just sorted differently Apr 29 04:01:43 well, when you load the current viewable page, do your work there Apr 29 04:02:49 canvs2321: I moved the setAdapter call to getItem in FragmentPagerAdapter Apr 29 04:08:30 Jonno_FTW: You are probably better off, loading your fragment, then getting data from the mainActivity, to load once everything has been initialized in your fragment Apr 29 04:11:47 capella tomorrow ff29 ? Apr 29 04:12:10 Yep - here it comes Apr 29 04:12:27 oh man, should be great http://www.donotlick.com/firefox-and-flux-a-new-beautiful-browser-is-coming/ Apr 29 04:13:03 "Tomorrow’s launch day will, perhaps, be our biggest yet" :O Apr 29 04:13:53 heh - I forget the public hasn't seen stuff I;ve been running for months Apr 29 04:14:18 canvs2321: how do i get data from mainactivity from in the fragment? Apr 29 04:14:51 or do I pass in a reference to MainActivity? Apr 29 04:16:46 one thing they changed in firefox drove me up the wall Apr 29 04:17:00 the refresh buttin in the urlbar? Apr 29 04:17:04 *button Apr 29 04:17:06 Jonno_FTW: I think the standard thing to do is to have the activity implement an interface, and then cast the activity in the fragment's onAttachedToActivity fragment and store it as a reference Apr 29 04:17:17 it's on the android website somewhere, lemme try and find it Apr 29 04:17:20 when you are downloading something big and it looses connection firefox now deletes the half downloaded file , just fucking great! Apr 29 04:18:05 mmm ... hadn;t noticed that! but I have a good connection, so maybe Apr 29 04:18:19 before I could resume the file with wget or FDM Apr 29 04:18:36 now I make sure I don't use ff to do any downloading Apr 29 04:18:59 Jonno_FTW: http://developer.android.com/guide/components/fragments.html#CommunicatingWithActivity Apr 29 04:19:21 i don't think i've had a resumed download work ever in my life Apr 29 04:19:21 shmooz: that really sucks! Is there an alternative download manager plugin or something you could use for FF? Apr 29 04:19:24 thanks Apr 29 04:19:51 barbs: there are plugins but I just use wget or Free Download Manager separately Apr 29 04:20:05 I tried the plugins but they weren't working for me Apr 29 04:20:24 to resume downloads ... Apr 29 04:20:32 Jonno_FTW: you can use getActivity() to reference your mainActivity Apr 29 04:20:57 sweet Apr 29 04:21:00 not sure how useful these hacks are irl https://support.mozilla.org/en-US/questions/761494 Apr 29 04:22:14 I even tried retrieving the half downloaded file from the cache , but couldn't find it Apr 29 04:39:33 capella: in the last few versions they changed it so even those hacks don't work Apr 29 04:42:32 ah, sorry to hear that :( I know our download manager is going through some revisions currently Apr 29 04:42:40 * capella looks through bugzilla Apr 29 04:43:01 oh, you are working with them ? cool Apr 29 04:43:35 yeah it deletes the .part file once it has come to a full stop from not having a connection, so there's no file to copy or resume Apr 29 04:45:01 yah ... i contribute to Fennec ... FF for Android Apr 29 04:45:10 (And the odd desktop bug) Apr 29 04:45:26 they shouldn't delete but rather add resume support built in by default Apr 29 04:49:59 capella does your ff29 beta still have tab group support ? Apr 29 04:50:43 might be https://bugzilla.mozilla.org/show_bug.cgi?id=961414 Apr 29 04:51:04 g00s: mmm? Apr 29 04:52:00 Is that a FF thing or an addon? I'm not familiar with that Apr 29 04:52:34 its a FF built in thing Apr 29 04:52:37 tab groups Apr 29 04:52:46 they said they were going to remove it eventually Apr 29 04:54:08 ah, g00s- https://bugzilla.mozilla.org/show_bug.cgi?id=961414 Apr 29 04:54:09 I'm on Nightly ff31 and it's still there Apr 29 04:54:31 er: https://support.mozilla.org/en-US/kb/tab-groups-organize-tabs Apr 29 04:55:18 TIL !!! :D Apr 29 04:55:45 capella: it's not the exact same problem as what I stated but it's probably related Apr 29 04:56:38 shmooz: Heh - 227 to chose from :-D Apr 29 04:56:39 https://bugzilla.mozilla.org/buglist.cgi?list_id=9992401&classification=Client%20Software&query_format=advanced&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&component=Download%20%26%20File%20Handling&component=Downloading&component=Downloads&component=Downloads%20Panel Apr 29 04:58:44 * capella doesn;t know the devs in that area Apr 29 04:58:51 its more important that they don't delete the half file then fix resume, I was already used to resume never working Apr 29 04:59:37 s/then/than Apr 29 05:03:24 or move deleting the file to when they close firefox, instead of when the download comes to a stop, so the user has time to copy or resume the half file if they are advanced enough to do that Apr 29 05:17:32 Hi! Apr 29 05:18:04 How to check previously set alarm (with alarm manager) ??? Apr 29 05:18:34 I try something like this Apr 29 05:18:35 alarmUp = (PendingIntent.getBroadcast(context, 1, intent, PendingIntent.FLAG_NO_CREATE) != null); Apr 29 05:19:22 But alarmUp is always true. Even when alarm not set! Apr 29 05:51:13 hi guys Apr 29 05:51:18 need help please Apr 29 05:51:42 i try to deploy an android app, it says launch successfully, but i cant seem to run app on the phone Apr 29 05:52:01 read the logs Apr 29 05:52:35 i cant even find the app to launch it Apr 29 05:53:06 when i go to app manager, i find the app, but the open option is disabled. Also, when i dump app on sdk and install, it doesnt still enable open option Apr 29 05:53:54 when i use this theme android:theme="@android:style/Theme.Dialog" my output is like this: http://axgig.com/images/56971304141556954746.jpg i extend that theme and change font color http://codepad.org/x5eCQG7g and use it android:theme="@style/myTheme" but my theme doesn't transparent it looks like this http://axgig.com/images/58677337797552384660.jpg why? Apr 29 05:59:40 no idea? Apr 29 06:23:38 do we have to create our own FIFO Queue's using the Queue interface? I can't seem to figure out how all all the implementations work, or which one is just a "normal Queue" Apr 29 06:31:05 topriddy: did you enable 'Unknown Sources' in your Settings->Security ? Apr 29 06:38:39 anyone used AlarmManager before? Apr 29 06:38:51 when i use this theme android:theme="@android:style/Theme.Dialog" my output is like this: http://axgig.com/images/56971304141556954746.jpg i extend that theme and change font color http://codepad.org/x5eCQG7g and use it android:theme="@style/myTheme" but my theme doesn't transparent it looks like this http://axgig.com/images/58677337797552384660.jpg why? Apr 29 06:38:56 got problem with it - cannot launch my service Apr 29 06:40:16 hello Apr 29 06:40:55 gordon_: when you try, does your device turn into a magic puppy and fly to the moon? Apr 29 06:46:17 yes Apr 29 06:46:36 with rainbows Apr 29 06:46:43 cool! Apr 29 06:47:11 to be honest it's not nyan-cat it's my phone Apr 29 06:47:24 or to put it a slightly less sarcastic way... how does it fail? Apr 29 06:48:00 can somebody help me to solve my problem? Apr 29 06:48:37 BoyGR: yes, you need to turn it 12 degrees to the right and push real hard Apr 29 06:48:38 Leeds: http://pastebin.com/HSq4d4un Apr 29 06:48:44 I made something like this Apr 29 06:49:22 ReminderService is my service which got onCreate onBind and onStartCommand overriten Apr 29 06:49:33 it only logs into logcat Apr 29 06:49:40 but nothing is showing up in console Apr 29 06:50:35 I want to write simple reminder, so even if I will close my app reminder will pop-up Apr 29 06:51:45 hi peeps Apr 29 06:51:57 i am new on android dev, do you know how to insert html code onto eclipse Apr 29 06:51:59 ? Apr 29 06:52:16 anyone here knows about references on how to make kitkat the fastest possible on a samsung wave 2 phone ? Apr 29 06:52:32 my connection discontented anybody answer me? i asked: when i use this theme android:theme="@android:style/Theme.Dialog" my output is like this: http://axgig.com/images/56971304141556954746.jpg i extend that theme and change font color http://codepad.org/x5eCQG7g and use it android:theme="@style/myTheme" but my theme doesn't transparent it looks like this http://axgig.com/images/58677337797552384660.jpg why? Apr 29 06:52:35 agumonkey: wrong channel Apr 29 06:52:45 gordon_: I'm open for chan suggestions too Apr 29 06:52:55 android-root / android Apr 29 06:53:12 gordon_: many thanks Apr 29 06:54:10 i am new on android dev, do you know how to insert html code onto eclipse? Apr 29 06:59:48 i have a string, and it's got a bunch of 0's, as in 0x00, not "0" at the end of it (transferred from bluetooth). how do i only keep whatever portion of the string prior to the 1st 0x00? Apr 29 07:00:07 Anyone have any experience with DataWedge? I'm struggling to find any decent information, specifically I'm wondering if there is some way to create a data wedge profile programatically? Apr 29 07:00:41 it appears there may be some garbage left in between the 0x00's, but whatever is before the 1st one is good data. Apr 29 07:01:15 Hi guys. I've just restarded Android Studio and the latter now highlights all 'id' statement in green. I don't know why he is doing that. I restarded the soft again, and got the same problem. Apr 29 07:01:17 i'm doing BluetoothGattCharacteristic.getStringValue(0); 0 being the offset Apr 29 07:04:01 hi. Im wondering how mx video player do to hide software buttons while in immersive mode as you can see here : http://m.imgur.com/9bWf0zV Apr 29 07:07:10 By using immersive mode https://developer.android.com/training/system-ui/immersive.html Apr 29 07:07:49 jnewt: you'd do something like int end = str.indexOf("0x00"); to get the end position and then do resultStr = str.substring(0,end); Apr 29 07:08:10 but I thought that while in immersive mode, if user swipe on status bar then navigation bar is showed Apr 29 07:08:39 shmooz, hey, that should work. thanks! Apr 29 07:08:48 on the screenshot, I swiped and status bar showep up but nav bar disapeared immediatly Apr 29 07:11:49 Ah, dunno Apr 29 07:12:00 How does it show the navigation bar? Apr 29 07:12:28 i need to give immersive mode a try again. i had a problem when i rotated the phone, it was like the screen dimensions changed and there was a large space / gap Apr 29 07:12:39 typical android shit Apr 29 07:13:13 when I swipe on status bar, status bar appears and sticks and nav bar appears for like 2 seconds and then, disapear but let it's room empty (see svreenshot) Apr 29 07:13:52 has anyone used the DroidNetworking library before? just looking for a good network-layer-abstraction library, and it seems promising: https://github.com/sogeti/DroidNetworking Apr 29 07:14:39 barbs i think for http, okhttp Apr 29 07:14:55 koush has some neat stuff Apr 29 07:15:31 You'll probably have to play around with the flags to see if you can get the navigation bar to hide without hiding the status bar Apr 29 07:15:35 cool, I'll take a look...any thoughts on Volley? Apr 29 07:16:01 no, have't used it. i guess picasso is in that space Apr 29 07:16:05 no Apr 29 07:16:18 or volley was more general Apr 29 07:16:23 yes Apr 29 07:16:25 picasso handles caching and displaying images Apr 29 07:16:38 a great library, but not what I'm after Apr 29 07:16:48 thanks for the suggestions all the same Apr 29 07:16:51 barbs: describe what you are trying to achieve Apr 29 07:16:55 not what you think you want Apr 29 07:17:40 that is, "I need a cup of sugar" and "I need to bake a cake" are two very different things. the latter helps us help you better Apr 29 07:19:39 hmmm..I guess it's nothing too specific, unfortunately. I was just exploring libraries that handle asynchronous network requests, rather than having to deal with HTTPUrlConnection classes manually, just seeing what's out there Apr 29 07:20:33 I don't *need* anything really, I could just implement it manually, like I've done in the past, I just wanted to see what was already out there Apr 29 07:21:24 I see. Volley is very nice for the mechanism you describe. It leaves some things in your hands. I prefer Retrofit (http://square.github.io/retrofit) myself. It depends on how much you want the library to do for you. Apr 29 07:21:27 hi Apr 29 07:21:36 can someone help me , Apr 29 07:21:36 http://stackoverflow.com/questions/23358096/alwaysnever-killed-visible-icon-over-screen-in-android Apr 29 07:22:12 there is must be a way to implement above request , but there is no guide anywhere Apr 29 07:24:59 JakeWharton: RetroFit does look interesting, though as you suggest, it might be doing too much for me. It looks like it'd be best-suited for REST-APIs that are returning serialized objects Apr 29 07:25:08 correct Apr 29 07:25:10 thanks a lot though Apr 29 07:25:23 barbs someone mentioned this the other day https://github.com/koush/AndroidAsync Apr 29 07:26:00 wow, looks like there's a lot out there Apr 29 07:26:38 i'm more interested in its nio implementation, but haven't played with it yet. if you use it i'd like to hear what you think Apr 29 07:27:15 nio's overhead is likely a waste on Android unless you are doing hundreds or thousands of things Apr 29 07:28:09 i found no one except Smart taskbar developers don't know how to implement what i want, i ask it on above link , ask it here in two days ago with no success Apr 29 07:28:27 like calculating bitcoins ? :D Apr 29 07:29:33 the GC will destroy you if you use nio to interact with something doing bitcoin mining Apr 29 07:29:34 this is strange Apr 29 07:29:52 AlarmManager's set method is working fine Apr 29 07:29:58 but setRepeating is not Apr 29 07:35:53 any idea? Apr 29 07:36:43 i want implement this: http://stackoverflow.com/questions/23358096/alwaysnever-killed-visible-icon-over-screen-in-android Apr 29 07:37:42 it was on xda on the other day Apr 29 07:37:56 http://www.xda-developers.com/android/floating-mail-displays-your-email-atop-any-application/ Apr 29 07:38:30 http://www.xda-developers.com/android/create-your-own-floating-apps-with-the-tooleap-sdk/ Apr 29 07:38:33 or this ? Apr 29 07:38:56 annoying as hell but ok Apr 29 07:49:21 gordon_: they need on notification bar or their service go to background and stop sometime Apr 29 07:49:48 notification bar ? Apr 29 07:49:58 you mean foregroundService ? Apr 29 07:50:13 like music app or something? Apr 29 07:50:43 yes, a notification on notification bar , i don't need useless notification Apr 29 07:50:59 foregroundService Apr 29 07:50:59 Smart Taskbar has a foreground notification tho Apr 29 07:51:02 AFAIK Apr 29 07:51:20 Unless you disable that in settings, but then it's easily killed by swiping it away form the task switcher Apr 29 07:51:50 what , there is no notification in my phone from smart taskbar Apr 29 07:53:07 Well, it does have one Apr 29 07:53:20 Maybe your phone is old and they're abusing the bug where you could have invisible foreground notifications Apr 29 07:55:08 lol Apr 29 07:55:37 So basically they're doing what you've been told for two days that they're doing Apr 29 07:57:58 i've got one fragment that i can't seem to load anymore. i get the error: Unhandled exception in callback Apr 29 07:57:58 java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() Apr 29 07:58:31 i'm using a fragment transaction to replace fragments from myActivity in the same container. Apr 29 07:59:01 SimonVT: no , it test it in 5 phone just know , said to my friends and check my 3 phone from android 2.3 to 4.2.2 Apr 29 07:59:19 test it on 5 phone just now... Apr 29 07:59:31 there is no notification icon there Apr 29 08:00:09 Googling shows that it was fixed in 4.3 Apr 29 08:00:31 there's lots of google results for that error, but i don't have the brainpower to understand them. Apr 29 08:00:35 http://stackoverflow.com/questions/9632804/foreground-notification-in-android-starts-new-activity-via-pendingintent-inste Apr 29 08:03:11 do i need to do fragment transactions via runOnUiThread? Apr 29 08:05:20 molavy, here you go, this is what it looks like on a new device where they can't abuse bugs to hide foreground notifications: https://dl.dropboxusercontent.com/u/100261/2014-04-29%2008.00.56.png Apr 29 08:13:12 Anyone here who is familiar with Freescales Sabre-boards? Apr 29 08:14:03 Or can advice me why a kernel driver fails to generate a .o.cmd-file when building (thus not building that driver at all) Apr 29 08:15:26 Hi, since #AndEngine is dead maybe someone here can help me Apr 29 08:16:17 oh Apr 29 08:16:24 good I didnt started learning it :D Apr 29 08:16:43 In andengine is some method which will tell me if setting scene by engine is done or scene is viewed now Apr 29 08:17:04 gordon_ first and last project in andengine :) Apr 29 08:20:24 Dudi: what's the next big thing ? Apr 29 08:21:08 anyone got some source how to do 'globabl dialog' ? Apr 29 08:21:12 *globabl Apr 29 08:21:14 *global Apr 29 08:21:32 even if I'm in different app I want it to pop up Apr 29 08:35:11 can someone help me figure out why my gridView and adapter aren't working. http://pastebin.com/kzVtYYj8 Line 45 throws a Null Pointer exception but I don't know why. I use the same line in a listAdapter, but maybe something needs changing? Apr 29 08:36:33 jnewt jesus, that code is shit Apr 29 08:37:22 i definitely don't know what i'm doing, i'll admit it. just trying to read and hack my way to a prototype Apr 29 08:37:35 and why, would you create the views and adapters in onResume ? Apr 29 08:39:06 no good reason. where should that stuff go? Apr 29 08:39:53 using latest android studio on opensuse linux. Why the emulator is so slow? I have nvidia graphics card with nouveau module Apr 29 08:39:54 setAdapter in onViewCreated Apr 29 08:44:44 g00s: is that related to my issue, or just a general practice? Apr 29 08:45:06 i couldn't make out the code, it was too hacky Apr 29 08:45:16 too many things could go wrong there Apr 29 08:46:23 does everything normally go in onCreateView and onViewCreated? Apr 29 08:49:02 it seems that getActivity() = null Apr 29 08:50:08 so i'm thinking i need to make the call to getIO(); in onAttach so that activity isn't null? Apr 29 08:55:19 Hi everybody Apr 29 08:55:47 I'm trying to get a callback on the Vsync in native code Apr 29 08:56:05 can someone give me hint / documentation on how to do this? Apr 29 09:06:30 i have 2 activities that both use the same drawable, i set a colorfilter in activity B, and notice that it also applies in activity A. How can i avoid this? Apr 29 09:07:04 SimonVT: ok,great thanks , how can i hide foreground notification on android before 4.3 Apr 29 09:09:22 SimonVT: another things i found is that you can't even kill smart taskbar process with regular task killer, like Android Task Manager) , there is just one way to kill this icon , go to settings> apps> select smart taskbar >Force stop. Apr 29 09:19:54 how to change pageIcon in android.support.v4.app.FragmentPagerAdapter ? Apr 29 09:28:08 I'm calling view.loadUrl(url); return true; from within shouldOverrideUrlLoading and my app isn't crashing. My minimum SDK version is 8. Shouldn't it crash ? Apr 29 09:34:55 JeroenDL, why should it crash? Apr 29 09:35:30 I've read on a few sites that loadUrl calls shouldOverrideUrl, which calls loadUrl, which calls ... Apr 29 09:35:46 So that would be an infinite loop Apr 29 09:35:56 But maybe it was only valid for a specific api level ? Apr 29 09:36:37 Is a free app with ads considered commercial? Apr 29 09:36:59 yes. Apr 29 09:37:24 Now I think about it, I also read that people were complaining that shouldOverrideUrl wasn't working and the answer was "refreshes don't trigger shouldOverrideUrl". So maybe that's the reason why an infinite loop isn't created ? Apr 29 09:45:24 JeroenDL, I think that if you're loading the same url shouldOverrideUrl won't be called Apr 29 09:45:59 not sure about it.. Apr 29 09:47:14 it also sounds right if the refresh complaint is true Apr 29 09:58:57 how do i make a gridview and contents stretch to fill the screen (problem is vertically. i have the gridView set to match parent, but the buttons that go in the grid just get packed up toward the top. Apr 29 10:00:19 i tried to get the grid height with getHeight() and set the minHeight of the cell contents, but getHeight() returns 0. Apr 29 10:48:55 i need to pick out a verizon phone.. and suggestions? I'll be comming from a nexus 5 and i'm looking for something i can root easily so i can keep the stock feel Apr 29 10:50:04 dazoe please read topic, thanks Apr 29 10:50:16 dont stay at verizon. easy. keep n5 Apr 29 10:52:00 g00s: and the topic has what to do with what i asked? Apr 29 10:52:21 ding ding!! Apr 29 10:52:22 dazoe absolutely nothing, thats why its /off topic Apr 29 10:52:24 WINNAR Apr 29 10:52:37 ktwo: i have to get a vz phone for a company phone. Apr 29 10:52:59 g00s: i'm asking in here because i'm looking for a dev friendly vz phone Apr 29 10:53:14 well, that would be nexus, until they stop making those Apr 29 10:53:19 or play edition Apr 29 10:53:53 nexus is cannot be used on vz Apr 29 10:55:22 I need a service that can retrieve data, send data and check for new data every 15min (for example): should I create 3 distinct services or somewhat use action through intents? Apr 29 10:56:04 sounds like a sync service Apr 29 10:56:13 probably just one :) Apr 29 10:58:42 g00s: ok, so a subclass of Service; I don't think i need a bind service Apr 29 11:00:08 Bouska you may want to see http://developer.android.com/training/sync-adapters/creating-sync-adapter.html Apr 29 11:01:47 g00s: i've just seen that, thx (GIMF :D) Apr 29 11:02:03 ;) Apr 29 11:08:06 g00s: Combining SyncService and KSOAP2 seems to be tricky, so much fun ahead \o/ Apr 29 11:08:19 well 90% of that fun is from ksoap Apr 29 11:08:22 :D Apr 29 11:10:26 g00s: i'm going to demand a RESTful API :p Apr 29 11:10:41 there you go ;) Apr 29 11:10:49 then you can use retrofit Apr 29 11:18:01 if you can demand restful .. :( Apr 29 11:21:15 frojnd: well, I can't ; but I can develop it and ask it to be integrated Apr 29 11:22:10 Does the getTag() method always gives one tag back? If you set more then one tag, what tag is received when using getTag()? Apr 29 11:22:33 SOAP is only as annoying as the person who designed the service on the other side ;) Apr 29 11:23:16 Click66 you could use public Object getTag (int key) Apr 29 11:23:27 Bouska: I don't work for a company that is providing service nor is open to share their user database for me to implement rest for them :\ Apr 29 11:23:35 Click66 and public void setTag (int key, Object tag) Apr 29 11:23:36 g00s: yeah I know, but if you don't do that? What object do you get as first? Apr 29 11:23:53 then it only hold one thing Apr 29 11:23:55 Bouska: I krippeled thorugh try and error to make ksoap work Apr 29 11:24:03 The first one probably? Apr 29 11:24:17 p_l: well, he is a WP programmer and he has done some voodoo with WCF Apr 29 11:25:17 * p_l feels someone somewhere generated the service from .NET code through automated generation Apr 29 11:25:40 auto wsdl all the things ! Apr 29 11:25:57 p_l: even if he did, the person who created wsdl says it's working for him :D Apr 29 11:26:15 frojnd: I already have an app with ksoap working, so putting it in a SyncAdapter should be that hard Apr 29 11:26:27 i can't tell you how many times i've heard 'but this wsdl works for me' Apr 29 11:26:54 then you go use it somewhere else like axis, all shit breaks loose Apr 29 11:27:00 frojnd: tends to be like that. Then you have to do workarounds to deal with bad design :P Apr 29 11:27:54 p_l: something like that yeah :) the hard part is actually digging through the net and literally doing try and error Apr 29 11:28:00 I never manage to make that wsdl to work ; but whatever, do all the things manually \o/ Apr 29 11:28:07 Click66: Protip, read sources: https://github.com/android/platform_frameworks_base/blob/master/core/java/android/view/View.java#L16193 Apr 29 11:28:31 SimonVT thats a beginner tip Apr 29 11:28:45 you can't get to PRO without reading the sources ;) Apr 29 11:28:53 frojnd: I once by chance read a big, thick book on WebServices with SOAP... since then, the idea of "first write the service design by hand, then write the Schemas, then consider the code" was ingrained in me ;) Apr 29 11:30:21 which is why i'm not a pro, ha! Apr 29 11:30:57 I'm setting up ubuntu to work with AOSP for platform dev. have that working, and emulator. if i want to use eclipse, am i duplicating efforts in getting eclipse bundle with ADT? is it possible to use same emulator from AOSP setup? Apr 29 11:31:24 g00s: ... Apr 29 11:31:35 It's a tip for beginners, given by a professional Apr 29 11:31:42 ok Apr 29 11:32:00 p_l: never designed a web service before but if the .net is the only thing I'd doing (hypotetically speaking) I'd read a book or two on soap services. I only red about rest and I fell in love with it even more when implementing client side soap for android. Apr 29 11:32:10 SimonVT: good tip Apr 29 11:32:21 i advanced a lot after starting to read source Apr 29 11:32:37 frojnd: SOAP is a powerful tool that is prone to misuse, and often total overkill Apr 29 11:32:38 yeah but its a gamble, like stepping on a land mine Apr 29 11:32:43 :D Apr 29 11:32:54 you could read some decent code, or get goatse'd Apr 29 11:32:57 wirth it Apr 29 11:33:07 worth Apr 29 11:33:26 yeah i keep it here to ack through Apr 29 11:33:44 ack? Apr 29 11:33:49 "ugh, the docs for this method suck … who else uses this … " Apr 29 11:33:49 SYN/ACK Apr 29 11:34:04 http://beyondgrep.com/ Apr 29 11:34:08 grepcode is awesome Apr 29 11:34:28 google code seemed to pick up much more for some reason Apr 29 11:34:33 *code search Apr 29 11:34:45 have you used grepcode? Apr 29 11:34:51 yeah Apr 29 11:35:06 you can see derived types Apr 29 11:35:08 and usages Apr 29 11:35:13 AOSP can be hard to follow, but at the very least you get a sense of the concept so you can ask better questions Apr 29 11:38:32 For the initial retrieval of data which I need to be (almost) real-time, should I create an independant IntentService or use a Sync on demand? Apr 29 11:39:43 SimonVT: do you know of a good source for setting up AOSP and dev environsent on ubuntu? I'm not sure if i can do certain things like develop on my host and then somehow build on my virtual machine. Apr 29 11:39:51 daaamn. the google power8 server boars make me drool Apr 29 11:39:59 things are so slow trying to figure out how to make faster Apr 29 11:54:31 Not at all.. I'd imagine there's something on s.android.com .. Otherwise there are various communities for discussing building aosp on that page.. This channel is pretty much exclusively for app dev Apr 29 11:56:29 thanks SimonVT - i did jut find something on source.android. thanks. Apr 29 12:08:54 unfortunately outside of maybe modding channels, there's no "platform" channel Apr 29 12:09:00 at least a live one Apr 29 12:09:44 p_l wasn't it #android ? Apr 29 12:10:01 somehow i thought that it mostly went to some google group, not irc Apr 29 12:10:07 g00s: supposedly :P Apr 29 12:10:27 and afaik there's mailing list that vendors tend to sit in Apr 29 12:12:12 the problem is too many askers, too few answers - with time and inclination to hang around IRC answering questions Apr 29 12:12:27 There was an attempt at an android-platform channel once.. Didn't really catch on Apr 29 12:14:18 too many of the same newbie questions to answer them 1,000,000 times Apr 29 12:14:35 right Apr 29 12:14:51 why google/read/hack code when I can just ask on irc? Apr 29 12:15:16 a wiki would probably be a better idea :) Apr 29 12:16:01 g00s: have had a quick play with robo, it seems quite interesting, but makes massive bins. They don't grow exponentially, but could prove to be problematic. GSON works fine, so i'm stoked at that alone lol Apr 29 12:16:22 g00s: can use gradle or maven, which is also very nice ;) Apr 29 12:16:25 bankai_au bins? Apr 29 12:16:42 binaries, come on... you should know that :P Apr 29 12:16:57 by 'huge' i mean HelloWorld is 11-14mb Apr 29 12:17:13 UI stuff brings it up to 20 odd Apr 29 12:17:14 pfft Apr 29 12:17:23 huge hello world is >40 MBs ;P Apr 29 12:17:26 yeah, i don't really believe in many of those cross platform things Apr 29 12:17:38 enough trouble getting my android app working on android Apr 29 12:17:40 nm ios ;) Apr 29 12:18:15 Robo? Apr 29 12:18:21 there was also something bjork used Apr 29 12:18:26 i mean, her dev team Apr 29 12:18:34 the thing that's attractive for me is i have a lot of backend java code that i'm serializing with GSON, then trying to unfold that on iOS is a bitch. this way i can serialize and deserialize with GSON with predictable results Apr 29 12:19:03 apportable Apr 29 12:19:40 bankai_au you need WSDLs ! Apr 29 12:19:51 * g00s just joking Apr 29 12:20:04 I hear QT is going loose nowadays Apr 29 12:20:05 g00s: well-done WSDL would work quite well, actually Apr 29 12:20:09 i wanna see if i can get RX in there some how, but i don't know how it's going to play with schedulers Apr 29 12:20:18 g00s: but one first needs to drop RPC mode :> Apr 29 12:20:51 *shudders at Qt* Apr 29 12:25:03 hmm... Rust can be used with NDK Apr 29 12:25:07 colour me interested Apr 29 12:25:20 pointless. Apr 29 12:25:48 Mavrik: depends what you're doing Apr 29 12:26:14 mozilla has Servo built on Rust, and an Android prototype Apr 29 12:26:36 my last serious "app-side" work on android was quickly moving towards "single native code library controlled by Java GUI" Apr 29 12:26:46 p_l, yeah, that makes sense Apr 29 12:27:02 p_l, but the painful part of Android isn't in C/C++ but in the Java framework Apr 29 12:27:05 which made the core of the app portable between... Android, Win32, Linux, OSX, iOS, and WebOS Apr 29 12:27:11 and other languages don't really solve that Apr 29 12:27:14 oh, and WP Apr 29 12:27:24 Mavrik i agree Apr 29 12:27:27 (which nicely covered the platforms we wanted to support) Apr 29 12:31:05 Mavrik: well, admittedly, we had semi-custom crypto, so NDK quickly ended up as a must (because implementing some of the functions we had in Java meant that we would have to lower security parameters to keep reasonable performance...) Apr 29 12:31:32 yeah I know Apr 29 12:31:44 had to use OpenSSL (*shudder*) as well to implement reasonably fast crypto Apr 29 12:32:43 we had to use OpenSSL as dependency of libcurl Apr 29 12:33:51 the rest was planned as composed out of rather standard crypto primitives, there mostly to obfuscate the data long enough for automatic scrub on our servers to remove it Apr 29 12:38:52 hi Apr 29 12:39:10 where i can make ads to my app in play store? Apr 29 12:39:15 ads payed Apr 29 12:41:40 i wonder if libressl would work on android Apr 29 12:44:37 p_l FF29 today :D Apr 29 12:45:24 g00s: yeah, heard of it already on #selenium Apr 29 12:46:17 p_l this is interesting http://lwn.net/Articles/596080/ Apr 29 12:47:01 "Android 4.1.2 introduced that ability (and requirement) for Android devices to properly flag when data is for tethering purposes" Apr 29 12:47:56 g00s: tl;dr people butthurt over Android following the spec Apr 29 12:48:16 * p_l read the thread on bugtracker few days ago Apr 29 12:49:04 what spec? Apr 29 12:49:23 the spec that the carrier is the customer, and you are the product Apr 29 12:49:29 I thought it used a vendor DHCP option to mark the connection as tethered Apr 29 12:49:29 that spec :) Apr 29 12:50:15 hmm, no seriously, Apr 29 12:50:28 what spec do they use to signal phone to use another subnet for tether? any links? Apr 29 12:52:30 Mavrik: there's 3GPP spec involving tethering, where the upstream provides you with information on whether tethering is permitted, iirc Apr 29 12:52:37 Mavrik maybe the original link had more what you were looking for http://danielpocock.com/android-betrays-tethering-data Apr 29 12:53:03 and I think there's also a way to inform from terminal whether you're tethering or not Apr 29 12:53:07 g00s, I've seen that link and it shows that Android has two routes it got from carrier Apr 29 12:53:18 https://code.google.com/p/android/issues/detail?id=38563#c105 Apr 29 12:53:20 I havent heard for DHCP to be able to do that that's why I'm asking :) Apr 29 12:53:35 p_l, that's just some random carrier bullshit :) Apr 29 12:53:51 that guy doesn't even know how they differentiate the traffic on the APN side Apr 29 12:53:53 but essentially - you should read the contracts you sign, not be butthurt when someone breaks your way of breaking it Apr 29 12:54:13 all the rest is just technicalityu Apr 29 12:54:15 *technicality Apr 29 12:54:40 hmm O.o Apr 29 12:54:41 AFAIK my carrier doesn't care what I do with the data capacity I pay for Apr 29 12:54:53 thats enlightened Apr 29 12:54:57 as it happens, NA carriers have history of being dicks to customers (though Three UK probably counts among supreme dicks) Apr 29 12:55:10 g00s: that's common in many european countries, afaik Apr 29 12:55:22 p_l, hmm, what you said probably won't hold in alot of EU countries, but OK Apr 29 12:55:29 i'm more interested in the technical aspect :) Apr 29 12:55:38 Mavrik: EU has rules on what kind of stuff you can put in a contract Apr 29 12:55:59 you can put anything Apr 29 12:56:07 you just cannot override a standing low ;) Apr 29 12:56:07 it was a bit of a shock for many when a new provider in Poland that constantly touted its "cheap" rates implemented their internet service with fees when you go over Apr 29 12:56:37 Mavrik: no, at least in Poland, illegal clauses are automatically irrelevant even if you signed them, and you can end up in court for having them in contract Apr 29 12:56:39 also there is a rather strong precedent where misleading people signing a contract can quickly make it unenforcable Apr 29 12:57:02 Mavrik: afaik, the way it works in Poland is in line with EU framework on it Apr 29 12:57:23 I've got an unlimited Sprint data plan, but when I tried to tether to my laptop, their software blocked me Apr 29 12:57:25 I need to talk to them about that Apr 29 12:58:03 p_l, yeah, pretty much that Apr 29 12:58:12 anyway, the "older" providers in Poland (T-Mobile, Orange, Plus) all had "standard" model of "fast internet till you reach your quota, then best-effort capped to 48kbps" Apr 29 12:58:23 mhm Apr 29 12:58:35 if you tether, you simply exhaust your quota faster Apr 29 12:58:44 (usually :P) Apr 29 12:58:51 annoying thing with this tethering bullshit is that manufacturers tend to "forget" blockage in Apr 29 12:59:05 for example I had to keep battling with my iPhone (as long as I owned it) to reenable tethering Apr 29 12:59:21 because Apple does in on Whitelist basis and they decided they don't care for my carrier to provied an IPCC file Apr 29 12:59:41 Mavrik: carrier can override such things through iTunes Apr 29 13:00:05 Ah, I went through that with my ISP when I had them stop forwarding DNS lookup fails to their advertisers Apr 29 13:00:13 I recall that from when T-Mobile decided to disable sim-locking network wide Apr 29 13:00:15 for the first year my provider never capped and then they brought in the cap at 6 GB Apr 29 13:00:20 every 6 months the thing came back on Apr 29 13:00:39 p_l, yeah, but said carrier didn't have any contact with Apple which caused me tons of grief Apr 29 13:00:51 p_l, it's the largest carrier in the country and people still can't use LTE on that network :) Apr 29 13:01:01 because Apple for some retarded reason wihtelists LTE capable carriers :D Apr 29 13:01:03 Mavrik: you don't know the bullshit that Apple used to pull on carriers back in 2008 Apr 29 13:01:06 ohshit my ff updated :P Apr 29 13:01:18 hmmm Apr 29 13:01:20 omi! Apr 29 13:01:23 at least when I deal with Google bullshit it's mostly not malicious Apr 29 13:01:26 Mavrik: they probably have sped too fast with getting LTE out Apr 29 13:01:36 p_l, nope Apr 29 13:01:46 p_l, they just didn't sell iPhones Apr 29 13:01:49 until january Apr 29 13:01:54 and Apple still hasn't pushed IPCC update Apr 29 13:02:02 Mavrik: I mean that it's possible they are doing that to avoid revealing... issues like "which iPhone works where" ;) Apr 29 13:02:05 act Apr 29 13:02:28 still nothing beats the old "special iPhone contracts" Apr 29 13:02:34 right :) Apr 29 13:02:50 I worked at T-Mobile Poland right when they introduced iPhone 3G Apr 29 13:02:58 why are app widgets so buggy <_< "The onUpdate() method will not be called when the App Widget is created (the system will not send the ACTION_APPWIDGET_UPDATE broadcast when a configuration Activity is launched). ", as soon as i let the widget go on my home screen the config activity launches AND the update is called Apr 29 13:03:39 Mavrik: consider that to sell iPhones, they had to: a) be on special tariff b) because x% of every call fee etc. went to Apple Apr 29 13:04:35 and that doesn't even start on iOS having back then incomplete GSM/UMTS stack that didn't cooperate with normal voicemail, making it a doubly precious snowflake ;) Apr 29 13:04:40 p_l, yeah, I've worked for telco as well and that bullshit is staggering Apr 29 13:04:52 as I said, they just provided iPhones to our biggest carrier in january Apr 29 13:05:04 and they sent only 15% of promised devices Apr 29 13:05:14 and they STILL haven't whitelisted them as LTE :D Apr 29 13:05:38 needless to say the huge advertising campaign for LTE / iPhone launch was a total flop :D Apr 29 13:06:21 Mavrik: I'm staying off LTE till we get it actually deployed in LTE-A variant, instead of "first past the goalpost" way Apr 29 13:06:38 meh, I'm using LTE on that telco for more than a half year Apr 29 13:06:42 and the performance is really good Apr 29 13:06:48 funny thing is they throttle the download to around 40k/s but I can also download UDP packets at 40k/s simultaneously Apr 29 13:06:56 noticably better than HSDPA+ and the 800MHz band isn't even deployed yet Apr 29 13:07:08 so I can milk them at 80k/sec still ;) Apr 29 13:07:11 for some reason all Androids work perfectly fine ;) Apr 29 13:07:40 Mavrik: because the only failure mode I have found so far is fixed by manually entering the APN :P Apr 29 13:07:48 probably the cause is the fact that most LTE base stations are practically empty here in the capital where HSDPA stations are filled to capacity :D Apr 29 13:08:09 Mavrik: that's the main source of speed right now. Apr 29 13:08:10 the licensing costs for HSxPA are huge Apr 29 13:08:36 the telco people explain that LTE capacity is about 30% the HSxPA cost for each person on the base station Apr 29 13:08:42 for licenses and hardware Apr 29 13:09:01 iirc the licensing costs are what pushed mobile v6, because due to some weird stuff tunneling v4 in v6 ended up cheaper in licenses Apr 29 13:09:15 anyway, I'll have to ping some people at teclo to ask them if they did latency tests on LTE Apr 29 13:10:02 (yes, "teclo" - they make a funny appliance that massages TCP to work more smoothly with mobile networks) Apr 29 13:10:34 :) Apr 29 13:10:49 subjectively it seems that LTE has less session setup latency, which is noticable when using the phone on the go Apr 29 13:10:54 but I haven't had a chance to test that Apr 29 13:11:46 Mavrik: the question is how well it deals with the inevitable packet drops Apr 29 13:11:52 mhm Apr 29 13:12:11 drop two ACKs and your TCP flow goes into snail mode Apr 29 13:13:23 reminds me to investigate QUIC protocol Apr 29 13:18:37 anyone have experience with Jython within Android? Apr 29 13:20:00 Anyone know how I can disable the annoying App suggestions that come up when you start typing in a SearchView? I’ve tried setting a OnQueryTextListener and returning true for onQueryTextChange with no luck Apr 29 13:21:18 Morning Chainfire Apr 29 13:23:12 morning Apr 29 13:27:18 can I somehow do stuff after fragmenttransaction animations are done? Apr 29 13:29:30 Hi, anyone does anyone know an ORM that works well with Android? Apr 29 13:32:43 I have a very bizarre bug. I have a widget and depending on the package name I define the update function of the provider never gets called Apr 29 13:35:28 LaSombra: try OrmLite or GreenDAO Apr 29 13:35:40 thepoosh: Thanks Apr 29 13:35:46 no provs Apr 29 13:35:49 *probs Apr 29 13:37:10 for example if my package defined my my manifes is com.obihann.swearclock and my classes are all in com.obihann.swear everything works Apr 29 13:37:45 but if I try to define the packe in my manifest to com.obihann.swear to match my classes the view loads but the provider never seems toget called Apr 29 13:41:44 I thought it could be that the previous widget wasn't uninstalled, and the similar package names was causing trouble but after unisntalling both then buidling and installing its still the same issue Apr 29 13:43:11 other than the manifst and the class imports is there another place I should be updating the package? Apr 29 13:48:02 Would there be any adverse effects of extending Activity and implementing GLSurfaceView.Renderer. Then setting the renderer to "this"? So far it all seems good but many seem to make the renderer a class of its own. Apr 29 13:51:17 ok it seems thte this only happens when the manifst package is the same as the package of hte source Apr 29 13:52:23 As long as it doesn't live longer than the activity there's no issue Apr 29 13:55:31 I am working in a class to fetch user location using the LocationManager, how can I get the callback when the GPS is disabled/enabled when using Intent or the Notification Area? Apr 29 13:56:06 where does android store the device bootloader (the thing which communicates with fastboot)? i have a partition /dev/block/platform/omap/omap_hsmmc.0/by-name/boot but isn't that for the "boot.img" of the OS which contains the kernel? Apr 29 13:56:27 FYI my device is a maguro (galaxy nexus) Apr 29 14:00:00 p0s: I think you're probably in the wrong channel Apr 29 14:00:26 p0s, #android-root Apr 29 14:01:22 pfn: thx for leading me into git. i think i love it, you may stop crying ;) Apr 29 14:01:23 but not its not the boot.img thats a helper Apr 29 14:01:37 thanks Apr 29 14:01:55 no actually i don't want to root my device. i just want to understand how it works Apr 29 14:01:58 Hi, for those who are using android-studio, whats the best thing about it, thinking of shifting from eclipse Apr 29 14:02:14 #android-dev for plugins and code #android-root for roms and tweaking things Apr 29 14:02:18 ok now I changed the packages to what used to work, made a few changes, built again, and the provider again doesn't get called Apr 29 14:02:34 well ok i will try asking #android-root anyway Apr 29 14:02:46 boot would be /mmcp0 something Apr 29 14:02:55 Thanks :) Apr 29 14:07:41 I am creating a dialogFragment when clicking a button. When clicking the back button or any area outside the dialogFragment it closes and the warning "attempted to finish an input event but the input event receiver has already been disposed" is in logcat. The problem is the button doesn't work after that. Apr 29 14:09:15 FYI those are all partitions on the device: http://pastebin.com/jvQJfNxt Apr 29 14:10:08 Hi Apr 29 14:10:21 adkins, yes, it's good Apr 29 14:11:12 No software developer should ever be without version control Apr 29 14:11:40 I need your help, I am trying to change de SupportActionBar Title programmatically, but remains the "label" defined in manifest Apr 29 14:12:39 How can I do this ? Apr 29 14:12:45 I am using these code: Apr 29 14:12:50 pfn: i guess so. it worked for a long time, but remembering some chaotic times ;) Apr 29 14:13:15 getActivity().setTitle("About"); Apr 29 14:13:16 ((ActionBarActivity)getActivity()).getSupportActionBar().setTitle("About"); Apr 29 14:13:52 pfn: have you used git on windows yet? i use windows at work unfortunately, so wondering how it will work... Apr 29 14:14:02 use http://codepad.org/ or some other code paste site. IRC sucks at formatting code Apr 29 14:14:12 adkins, works fine Apr 29 14:14:21 pfn: ok, thx Apr 29 14:16:52 I am trying to change de SupportActionBar Title programmatically, but remains the "label" defined in manifest, can someone help me ? Apr 29 14:18:35 ironrock: are you running that before or after setContentView? Apr 29 14:20:04 Hello. I'm trying to get the height and width of a web view inside a fragment, but I;m always getting 0 for both. I've already tried to pick with getMeasuredWidth and getMeasuredHeight inside onCreateView and onViewCreated. Anyone knows how to get this info? I'm trying to get these to set the size of a google chart to fit this web view without scroll. Apr 29 14:20:07 I am running that after setContentView, inside a fragment Apr 29 14:20:51 ah, dunno about fragments Apr 29 14:22:28 Birk: call measure() before getMeasuredHeight/Width Apr 29 14:23:16 Birk: views have a height/width of 0 until they are told to measure themselves. Apr 29 14:24:27 frankdoyle: and what should I pass to measure()? ---> webView.measure(widthMeasureSpec, heightMeasureSpec); Apr 29 14:24:46 Birk: Don't call measure(), use an OnLayoutChangeListener or OnPreDrawListener, depending on your API level, to get notified when the view has been measured and layouted (i.e. when it has a size) Apr 29 14:25:55 ironrock: similar issue? http://stackoverflow.com/questions/15560904/setting-custom-actionbar-title-from-fragment Apr 29 14:27:13 Though... you are doing it right Apr 29 14:27:20 SimonVT: Thanks! will try that. Apr 29 14:27:35 frankdoyle:thanks for your time! Apr 29 14:32:29 oh wow, maggie from xageek just emailed me and thinks we should all support each other by reviewing other's apps with 5 stars Apr 29 14:32:36 haha, dumbass Apr 29 14:33:27 SimonVT: It worked! But know I have another problem. The chart that google chart api is sending to me with these measures is huge lol. I'll take a better look. Thanks again. Apr 29 14:38:37 aleios: Nothing seems work :( Apr 29 14:41:43 hello , i want to scroll a big a large image in a small container, how can i do that? i have tried a lot of things but so far not been able to achieve . this is what i have so far http://chat.developpez.com/upload/535fb9c28d752/screenshot-from-2014-04-29-163714.png Apr 29 14:42:41 is it just me, or does sqlite3 fail really hard when it tries to process something that takes a long time Apr 29 14:42:53 I can't execute certain statements on a big database without it crashing everything Apr 29 14:44:46 benzap see anything in logcat resembing 'can't grow window, already at 1mb' ? Apr 29 14:45:08 how can i scroll inside the container? Apr 29 14:45:12 unfortunately I can't logcat the device with the huge database Apr 29 14:45:37 maybe its not sqlite, but android bindings Apr 29 14:45:44 or maybe its neither :P Apr 29 14:46:10 g00s: well, the binding is a long the lines of _database.delete(sqliteHelper.getLogTableString(), "dateCreated <= ?", new String[] {Long.toString(previousEpoch)}); Apr 29 14:46:38 this particular device has been running for several weeks Apr 29 14:46:57 previousEpoch = currentEpoch - 7 days Apr 29 14:47:45 well, take the db and run that squery through the sqlite3 tool for query analysis Apr 29 14:47:48 do some 1 have any idea? Apr 29 14:47:59 g00s: oh? where is this tool? Apr 29 14:48:21 you can just run it on your dektop Apr 29 14:48:40 compiles easily, you can probably find a binary Apr 29 14:49:03 oh cool Apr 29 14:49:05 i'll check it out Apr 29 14:49:19 or if you want to make sure you're using the exact one on android, i suppose you could just pull the db onto an emulator and run the sqlite3 tool from the emu Apr 29 14:49:47 by now there are quite a few different versions of sqlite used across all androids Apr 29 14:49:55 and oems sometimes tweak also Apr 29 14:50:23 see http://stackoverflow.com/questions/2421189/version-of-sqlite-used-in-android Apr 29 14:51:06 so if you notice the problem on ICS try sqlite 3.7.4 Apr 29 14:51:40 that might explain the strange behaviour, it's hard to say Apr 29 14:51:57 I haven't been able to test the query on an empty device, but i've had similar problems with other commands Apr 29 14:56:13 hello , i want to scroll a big a large image in a small container, how can i do that? i have tried a lot of things but so far not been able to achieve . this is what i have so far http://chat.developpez.com/upload/535fb9c28d752/screenshot-from-2014-04-29-163714.png , this is the code http://pastebin.com/GMBZ9Rze Apr 29 14:56:17 benzap also, try #sqlite Apr 29 14:56:52 john67: I thought we already solved that Apr 29 14:57:19 Napalm: i didnt get how u solve it Apr 29 14:57:35 i just put the imageview in a scrollview Apr 29 14:57:37 lol Apr 29 14:58:11 Napalm: i did that but it changes nothing, Apr 29 14:58:31 then you have something else wrong Apr 29 14:59:08 Hi all, I created a lib which contains a NavigationFragment. My question now: how should I use this NavigationFragment inside my app project? create a MyAppNavigationFragment which contains the fragment in xml? or adding it to a FrameLayout which is child of my_app_nav_fragment.xml ? Apr 29 15:07:11 Just to have a quick idea: which ORM do you use in your app? Apr 29 15:08:09 What happens if I put a large image inside drawable-mdpi when it is used on a xhdpi device? Will android scale it up or figure out it's already big? Apr 29 15:08:10 I used GreenDao because its fast and doesn't mess up proguard Apr 29 15:08:19 but it's rather inflexible when you change structure later Apr 29 15:08:22 OrmLite is also popular Apr 29 15:08:32 compac, it'll scale it up Apr 29 15:08:43 compac, there's a -nodpi folder for things that shouldn't. Apr 29 15:09:00 Mavrik, Ah I see, thanks. Yeah I know although I was curious about that case Apr 29 15:10:33 I'm looking for a easy-to-use, lightweight, flexible orm, I don't really care about the performance. Are there other potential choices other than OrmLite, GreenDOA or ActiveAndroid? Apr 29 15:27:12 has anyone been able to get systrace to work on 4.4? Apr 29 15:29:22 capella i hate ff29 already. the fonts look like shit, thats an automatic F Apr 29 15:29:38 I'm so close to ditching ff... Apr 29 15:29:49 only reason I use it is for pentadactyl Apr 29 15:29:56 and I'm using it less and less Apr 29 15:30:32 g00s: noted :( Apr 29 15:30:54 capella something weird going on here, looks like greyscale AA not subpixel Apr 29 15:32:54 when i hover over a tab, there should be an 'x'; i should always be able to close a tab without activating it Apr 29 15:33:03 chrome got this right Apr 29 15:33:44 always find it amusing when design teams describe their lamenting of curve radius, and all that effort … and then mess up these little things Apr 29 15:33:47 Bouska im using OrmLite Apr 29 15:34:33 FrancescoV I declare it in xml, using a drawerlayout Apr 29 15:34:45 g00s: file bugs? Apr 29 15:34:55 i can, yeah Apr 29 15:35:24 Thanks :) Apr 29 15:35:59 mattblang: ok, thanks; go to 'ormlite tutorial' now it is Apr 29 15:36:10 The tab 'X's are avaialable on my version but I'm on Nightly Apr 29 15:36:17 Bouska say again? Apr 29 15:36:32 capella for a foreground tab its there, do you see them for background tabs ? Apr 29 15:36:40 yeah Apr 29 15:36:43 hm Apr 29 15:36:48 what happens with the back stack if you are in landscape, navigate to a new activity, change back to portrait, then hit back Apr 29 15:36:51 mattblang: i'm just going to read some ormlite tutorials :) Apr 29 15:37:11 Bouska cool. it was pretty easy to get going based on their Android samples. I've been really happy with it. Apr 29 15:37:33 mattblang thats an interesting corner case Apr 29 15:37:57 depending on how you did your fragments, you may find that a 'detail' (since landscape) fragment is there, but not visisble :) Apr 29 15:38:23 thats the stuff i hate about fragments, all these weird scenarios Apr 29 15:38:28 g00s man seriously Apr 29 15:38:48 g00s im trying to do master / detail pattern in preparation for tablet optimization. it is quite frustrating sometimes Apr 29 15:39:01 g00s: https://www.dropbox.com/s/y4fq7bigchys1eb/Screenshot%20from%202014-04-29%2011%3A37%3A38.png Apr 29 15:39:29 capella hm, but you are using ff 38 or something right ? Apr 29 15:39:41 yeah, i don't see that Apr 29 15:39:48 heh - 31.01a Apr 29 15:40:08 Get nightly - live on the edge :D Apr 29 15:40:21 seems like stable is edge enough for me ;) Apr 29 15:40:51 Yah, I love it when my builds fail and I have to track down regression authors Apr 29 15:41:23 i also wished i had did some comparative benchmarking of memory, this one is taking up quite a bit more Apr 29 15:41:38 Hey, I know this should not be done on the client, but... Does anyone know the best algorithm for basically applying 250 different regular expressions to 330-500 strings, only 1 regular expression should match each string, and then the string should be replaced with a new string with some original data saved through the regexp group? Apr 29 15:41:43 i should be around 500mb, its sitting at 900 Apr 29 15:42:58 Charl1e hm, i dont totally understand, but you can use ragel for a very fast matcher Apr 29 15:43:20 the harmony regex sucks ass Apr 29 15:43:49 anyone know what this error is about when trying to use systrace? error opening /sys/kernel/debug/tracing/options/print-tgid permission denied Apr 29 15:44:00 besides the obvious Apr 29 15:47:35 g00s: basically i have a crap load of bank transaction references with different formats, im required to translate those into different formats depending on the current format Apr 29 15:47:50 g00s: about 200 or so rules on how to convert them :P Apr 29 15:47:57 *facepalm* this should be done server side Apr 29 15:47:59 yeah, ragel can work for that Apr 29 15:48:08 yeah, server would be better Apr 29 15:48:17 you can migrate the ragel code to server later Apr 29 15:48:26 never used it, got a website? Apr 29 15:48:30 just tried goggling it Apr 29 15:48:32 googling* Apr 29 15:48:44 http://www.complang.org/ragel/ Apr 29 15:49:03 thanks Apr 29 15:49:10 you can use it as fsm or scanner Apr 29 15:49:27 scanner being longest match, but even in fsm mode you can do kleene star Apr 29 15:49:53 these are new terms for me ;) Apr 29 15:49:53 so you may try doing a scanner first; each => rule being one of the 200 rules you mentioned Apr 29 15:50:11 well, read the pdf doc. reads like a PhD dissertation but its fascinating Apr 29 15:50:23 only 70 pages ;) Apr 29 15:50:38 haha okay, well, could be helpful, need to find a proper solution to this... Apr 29 15:50:49 "promised to the client" as usual ;) Apr 29 15:50:53 read section 6.3 Apr 29 15:51:07 this is the proper solution, you can use this even on the server Apr 29 15:51:28 you won't write anything faster by hand Apr 29 15:51:41 I can only run this on android device Apr 29 15:51:57 due to client taking +1.5 years to build their own solution Apr 29 15:51:59 (big bank Apr 29 15:52:00 ) Apr 29 15:52:38 I'm switching to the android studio. Is there a way to run the standard routine of generating manifests and adding support libs (as if I starting a new project), but in already existing empty project, that already tracked in CVS? Apr 29 15:53:33 where does the result of using Trace go to? does it write to a file? how do I view the report? Apr 29 15:54:08 Charl1e if you decide to use it, i'll give you the snippet to hook the code gen into the gradle lifecycle, if you are using gradle Apr 29 15:54:57 g00s: yep, using gradle :) cheers, gonna look into it Apr 29 16:03:35 anybody have any success with systrace? Apr 29 16:03:51 can someone tell me if on an Android device running KitKat and having an external removable sd card, the second file returned by Context.getExternalFilesDirs(null) corresponding to the external sd card, looks like /path/to/sdcardmount/Android/data/some.package.name/files Apr 29 16:03:51 ? Apr 29 16:03:53 Hey dudes, I have an app published and installed on a few dozen phones, but one person told me it kept crashing on their phone after the game over screen? Why would an app not work on some people's phones, but work on others? Apr 29 16:08:27 RetroDude: you should have a crash log on your Play Store developer dashboard thing? Apr 29 16:09:26 Charl1e btw, if you an also tell ragel to gen C code, and then get to it from JNI. that may offer the best performance, use goto-driven machine (not table driven) Apr 29 16:10:01 g00s SOB... "Note: You cannot inflate a layout into a fragment when that layout includes a . Nested fragments are only supported when added to a fragment dynamically." Apr 29 16:10:34 i haven't used nested yet. the regular one confound me enough as is Apr 29 16:11:06 g00s it is because im using a Google Map. So I'm not REALLY nesting them myself, but since Google Map moved to fragments I have a nested fragment with the map Apr 29 16:12:13 g00s im starting to wonder if I shouldn't just dynamically create all my fragments, and just manage them with one activity Apr 29 16:14:14 Estel, the crash log shows zero crashes, although on the "All Applications" it shows 1, but once you drill down into that app, it shows zero. Apr 29 16:14:40 The phone that reported the crash is an LG Optimus L9II Apr 29 16:15:11 Anyone else have that phone with Android 2.2 or above? :) Apr 29 16:32:19 Hello, I developed a game for android with my friend. Kindly play it and provide any feedback and/or suggestions. Thank you. Apr 29 16:32:23 https://play.google.com/store/apps/details?id=com.appicot.magicbox Apr 29 16:32:33 will do uchihaitachi :) Apr 29 16:32:48 quick question for you guys: does anyone know how to make an SQLite update query match multiple columns? Apr 29 16:33:06 ie if NAME = food.getName() && COLOR = food.getColor() Apr 29 16:33:08 or something like that? Apr 29 16:33:15 hello all, i am new to development.. is there an option to see any app listed in playstore which version of android os the app is compatible ? Apr 29 16:33:36 i just tried to install an app and it said your os does not support this app or something Apr 29 16:33:43 so guessing its a version mismatch Apr 29 16:33:58 but how to get to know which version will support ? Apr 29 16:34:24 actually not sure at all solofight sorry :/ Apr 29 16:34:33 i think it should be right there on the app details Apr 29 16:34:35 forgive me if this question is too noobish Apr 29 16:34:48 no not given Apr 29 16:34:49 https://play.google.com/store/apps/details?id=in.redbus.android Apr 29 16:34:52 RedDunce: ^ Apr 29 16:35:02 solofight, the Additional Information section mentions it. Apr 29 16:35:15 Requires Android Apr 29 16:35:16 2.2 and up Apr 29 16:35:19 https://www.irccloud.com/pastebin/HgkCq0Hb Apr 29 16:35:29 ahh Apr 29 16:35:34 RetroDude: beat me to it :P Apr 29 16:35:36 RedDunce, UPDATE WHERE NAME = name AND COLOR = COLOR Apr 29 16:35:39 thank you RedDunce - thank you very much.,,,, Apr 29 16:35:46 RetroDude: thank yoyu Apr 29 16:35:58 but i have android 4+ any reason it wont run ? Apr 29 16:36:18 Mavrik: is there a way to use the db.update for that? Apr 29 16:36:24 (i've heard it's better practice than raw query) Apr 29 16:36:56 RedDunce, em, you have the where clause parameter Apr 29 16:37:27 .update(table, values, "NAME = ? AND COLOR = ?", new String[] { food.getName(), food.getColor() } ) Apr 29 16:37:34 <3 Apr 29 16:37:36 Thank you brother Apr 29 16:37:52 maybe quotes are required, been awhile since I wrote any SQL Apr 29 16:42:25 i'll give it a whirl and letcha know Apr 29 16:44:58 this was the money query: return db.update(F_TABLE, cvalues, F_COLOR + " = ?" + " AND " + F_NAME + " = ?", new String[] {String.valueOf(f.getColor()),f.getName()}) > 0; Apr 29 16:44:58 Apr 29 16:45:05 aka exactly what you said to do lol Apr 29 16:45:26 My color selector is supposed to show a different color when an item is pressed or selected, but every item is always android:state_activated="false". Does anyone know why that would be? http://pastebin.com/PSeT9ZSM Apr 29 16:46:06 If the state always overrides the pressed events, should I use it at all? Apr 29 16:46:33 When selecting drawable it starts at the top until it finds a match Apr 29 16:47:08 Ah. Apr 29 16:47:22 did uchi really hop in, ask us to play with this game, and then leave before anyone could give feedback? O_o Apr 29 16:47:24 So I'll remove that color entirely as see how that goes. Apr 29 16:48:17 SimonVT: Well, headshot. Apr 29 17:00:51 how can i scale-down icon size for alert dialog? Apr 29 17:01:50 Hmm, had two sleeps and 48 hours to think about and fix a problem. Should probably try to be more efficient than that D: Apr 29 17:05:15 Is there any prebuilt package which contains the android sdk, ant and other tools for windows so I can deploy a development enviroment fast? Apr 29 17:05:51 I have a Fragment with a ListView and use a custom Adapter for each row. If I use something like that -> View rowView = inflater.inflate(R.layout.fragment_help_row, parent, false); rowView.setOnClickListener(...etc... in ongetView() it only applies for the last row only... Apr 29 17:06:13 pthreat, something like http://developer.android.com/sdk/index.html?hl=sk ? Apr 29 17:06:52 teo123: yeah, thanks! I hate eclipse though Apr 29 17:07:30 pthreat, check Android studio then http://developer.android.com/sdk/installing/studio.html Apr 29 17:08:00 I wanted to compile by hand and develop in whatever I want Apr 29 17:08:06 :P Apr 29 17:08:39 teo: i'm not sure i quite understand Apr 29 17:09:09 you're saying that your onClickListener doesn't get set for anything but the last item in your listview? Apr 29 17:09:35 yes Apr 29 17:09:50 you might have better luck setting the listener in your wrapper Apr 29 17:10:04 custom adapter, sorry Apr 29 17:10:40 or you could use listview's, onItemClick listener Apr 29 17:10:52 here is my code for the adapter http://pastebin.com/kPn7W8R3 Apr 29 17:10:53 **onListItemClick I think is the right class Apr 29 17:11:51 tried with onListItemClick but id didn't work out thats why I'm trying now with setting the listener to each row... Apr 29 17:11:56 hmmmm Apr 29 17:13:38 this is how i set up my food fragment: Apr 29 17:13:41 https://www.irccloud.com/pastebin/vJf07Gd7 Apr 29 17:14:26 and then to get the specific food item: Apr 29 17:14:29 You made your views member variables... Don't do that Apr 29 17:14:30 final Food pat = (Food) parent.getItemAtPosition(position); Apr 29 17:15:03 answerView gets set every time getView is called.. Apr 29 17:15:33 i'm pretty new to android (2 months exp. max) so im sorry if im not being so helpful; I'll let SimonVT take over :P Apr 29 17:16:53 RedDunce, thnx for your help! SimonVT you are right but mine parent.getItemAtPosition(position); didn't work so I was trying like that Apr 29 17:17:51 what do you mean by 'didn't work' if you don't mind me asking? Apr 29 17:17:52 And yeah, you're setting your own click listener on all rows when you should just be using onItemClick Apr 29 17:18:18 did ya run it with the debugger and see what position's returning? Apr 29 17:18:58 inside onItemClick I was using child1 = getView().findViewById(R.id.help_answer); and that was giving always the same child Apr 29 17:19:13 But the row view is passed to the click listener Apr 29 17:19:15 the position was always correct 0,1,2 Apr 29 17:19:33 "view The view within the AdapterView that was clicked (this will be a view provided by the adapter)" Apr 29 17:20:26 http://pastebin.com/C9AF1CCq Apr 29 17:20:52 Call findViewById on the row, not the entire fragment view Apr 29 17:21:16 findViewById just iterates through the view hierarchy and returns the first view with that id Apr 29 17:21:39 yeap. view attr is the answer :) Apr 29 17:21:42 In an adapter backed view, that will always be the first row Apr 29 17:21:53 works now. Thank you both. Apr 29 17:22:26 thanks for the correct definition for findViewById also :) Apr 29 17:22:50 ooh i didn't know that, good stuff SimonVT! i feel like i learn more here trying to help people than trying to find solutions to my own problems :P and i'm glad you got it working teo :) Apr 29 17:22:51 Can any help, I am getting 'execution failed with exit code 139' Apr 29 17:22:59 Grilka|2: umm Apr 29 17:23:05 gonna need a little bit more than that to work with lol Apr 29 17:23:08 parent The AdapterView where the click happened -- however I cant see where this is useful Apr 29 17:23:51 RedDunce was that me you were addressing there :-) Apr 29 17:24:14 yeah, what were you trying to do, what ide, etc. etc. Apr 29 17:24:21 on its own an exit code isn't all that helpful :P Apr 29 17:24:42 SimonVT, one more . I was using parent.getChildAt(2) Apr 29 17:25:10 since answerView is always position 2 on my row view. But always having it returning the same view to me Apr 29 17:25:25 teo123: maybe you want to change how the listview as a whole looks if certain code is executed? that's the only guess i have. and also knowing hte parent is very useful for finding stuff inside of it Apr 29 17:25:36 Oh ok, I'm trying to compile an app I've just developed on IntelliJ, however I'm getting the error code 139 which I think is to do with the android sdk which is installed. Apr 29 17:26:19 i've never used intellij unfortunately, but take a look at http://stackoverflow.com/questions/13865748/android-eclipse-error-executing-aapt-return-code-139 it seems to have some successful answers Apr 29 17:26:27 if youve already tried everything there then im sorry, im useless :( Apr 29 17:26:28 hmmm RedDunce you are right - didn't understand what exactly is the parent ... Apr 29 17:28:02 I don't think it's an intellij issue, but I strongly suspect the compiler, I will look at the link though, thanks. Apr 29 17:28:36 gotta run to class guys, best of luck everyone! Apr 29 17:29:41 Hmm, has anyone encounted a but with the New -> Fragment (Blank) template in Android studio? It's only creating the xml for me Apr 29 17:37:14 I am looking for a service where I can upload an image from the Cam, get a link back as a return, so a web site can display the image... does anyone have a good source for an Image Hosting service? or perhaps I should roll my own, with some kind of library? Apr 29 17:39:22 please all of you run `android sdk` . there is an update on the tools. Apr 29 17:41:14 * Estel drops everything for 22.6.*3* Apr 29 17:54:27 I am trying to make an appengine connected android project but get: Could not find the main class: com.google.appengine.tools.enhancer.Enhance when I create one. Apr 29 18:00:35 Hi, is "Universal Image Loader" the best library for async image loading? Apr 29 18:03:54 WantToCode, I like it Apr 29 18:04:50 the second one I found out is Koush's UrlImageViewHelper https://github.com/koush/UrlImageViewHelper Apr 29 18:07:01 UIL is better. You can load images to an ImageView, you can load them to a Bitmap - it has more options Apr 29 18:07:33 Ologn: A question please "Cache in Memory" means caching to RAM or caching in internal memory? Apr 29 18:08:58 A memory cache would be in ram Apr 29 18:09:27 what version of jre and jdk should i have to make a google apengine connected android program? Apr 29 18:09:28 A disk cache could be on the internal storage Apr 29 18:10:41 Ok, so inclduing "WRITE_EXTERNAL_STORAGE" would let me write on SDCard, if I dont add this permission would the caching would be done? If yes, where? Apr 29 18:11:30 WantToCode, with UIL if you choose to cache in memory, I believe you don't need to use that permission Apr 29 18:11:45 WantToCode, but if you decide to cache to disk you do need it Apr 29 18:12:11 WantToCode, it depends how much you want to cache - if you want to cache a lot eventually you'll need to use storage Apr 29 18:12:55 what about internal storage? I am thinking about devices which dont have sd card, like Nexus etc. Do they cache in memory? Apr 29 18:13:47 WantToCode, there is memory (RAM) and storage (internal disk or external SD card) Apr 29 18:14:25 External storage doesn't mean it's an sd card Apr 29 18:14:27 WantToCode: devices without an SD card still have external storage. Apr 29 18:15:43 A Nexus has an option of caching in memory or caching in storage Apr 29 18:16:00 Hi, is there any API to clear data of application (by package name) programmaticaly, same way as Settings app does it? My app is running under system user. Apr 29 18:16:03 So using "WRITE_EXTERNAL_STORAGE" permission, it would first try to cache in SDCard, if there is no sdcard it would go into internal disk as a fallback. This permission gives right to write on both the type of storages. Correct? Apr 29 18:17:19 Android is blind to whether something actually is an SD card. Most devices will have storage that's designated as "external" and it may or may not be an SD card. Apr 29 18:18:19 ok, I think I got it. Apr 29 18:18:23 Thanks Apr 29 18:23:19 what version of jre and jdk should i have to make a google apengine connected android program? Apr 29 18:30:55 can i add a margin to a dialog title icon, using the builder? Apr 29 18:30:57 how? Apr 29 18:35:25 wether there is a sdcard or not, I think you can always find a /mnt/sdcard on most devices Apr 29 18:37:15 hi Apr 29 18:37:42 Still no further :-) I'm trying to compile an app I've just developed on IntelliJ, however I'm getting the error code 139 which I think is to do with the android sdk which is installed. Thanks in advance Apr 29 18:38:00 am trying to record audio, from this link http://developer.android.com/guide/topics/media/audio-capture.html, but if i record more then 29 sec my app crashes Apr 29 18:38:31 I think the error code is specific to Android sdk. Apr 29 18:41:51 Hello guys! I have a question about gralloc, can someone please help me on that ? Apr 29 18:42:54 bluOxigen: maybe you are running out of storage space ? Apr 29 18:48:32 anyone ? :P Apr 29 18:53:41 Hey, just making this camera app atm, and when it takes a photo, it takes the same image as the one before. Anyone got a solution please? :) Apr 29 18:54:00 Mork calling Orson come in Orson, nanoo nanoo. Apr 29 18:56:30 Meow Apr 29 18:59:58 Hey, just making this camera app atm, and when it takes a photo, it takes the same image as the one before. Anyone got a solution please? :) Apr 29 19:00:01 http://stackoverflow.com/questions/23373092/android-camera-app-photo-duplicates-images Apr 29 19:01:51 fix it... Apr 29 19:01:54 that's the solution Apr 29 19:03:16 pfn, i was asking as i have been trying for hours, that is not useful information as i would have tried that, im getting there tho, but tips do help Apr 29 19:04:04 Is there any reason it wouldn't be safe to delete old gradle versions? Apr 29 19:04:34 well, if you stored all your documents in the gradle directory, you may not want to. Apr 29 19:04:46 I'm sure I could think of other reasons Apr 29 19:05:06 Now you mention it, I did map /var to there Apr 29 19:05:23 for example, it's not recommended if you have a trigger set up to destroy your harddrive if that directory is deleted Apr 29 19:06:27 amazwon: is it designed so you can only take 1 picture a second.. because thats what you get with those filenames Apr 29 19:08:07 Napalm: I'm kinda a noob, but i have done it so it takes an image every time ACTION SCREEN ON comes on Apr 29 19:08:21 yea i can tell Apr 29 19:08:31 sorry, fit out of order of me there Apr 29 19:08:45 open the camera in your receiver and relaease it Apr 29 19:08:50 in your onReceive Apr 29 19:08:54 thats your problem Apr 29 19:08:59 you release the camera Apr 29 19:09:05 after the first photo is taken Apr 29 19:09:13 stop opening the camera in the onStartCommand Apr 29 19:09:19 thats just really b=ad Apr 29 19:09:20 bad Apr 29 19:12:58 Napalm: my reciever is in my onStartCommand, so you suggest moving the whole thing? Apr 29 19:30:28 amazwon: posted you an answer Apr 29 19:32:07 Does anyone know if it would be possible to have an Android WebView application that is also *served* off the device, so that other users on the same LAN can interact with it via a web browser? Apr 29 19:33:23 zoidfarb: of course.. run a web server Apr 29 19:33:26 How can I load image with Universal Image Loader in doinBackground of AsyncTask? Apr 29 19:33:42 I get an error saying Apr 29 19:34:08 must be invoked from the main thread or Looper thread Apr 29 19:34:22 hello, can i use android:inputType="textCapSentences" in an xml file, i'm learning soft keyboard Apr 29 19:37:01 Napalm: thanks, im taking a look :) Apr 29 19:39:47 Napalm: And I could share resources with the webview app? Apr 29 19:40:00 s/resources/assets Apr 29 19:40:13 of course Apr 29 19:41:27 cool Apr 29 19:41:30 thank oyu Apr 29 19:44:41 WantToCode: you can't interact with views from a background thread, android won't let you. do view stuff in onpostexecute Apr 29 19:45:48 frankdoyle: ok, let me try. I'll report Apr 29 19:49:30 frankdoyle: Thanks. Dumb me. :) Apr 29 19:49:58 no worries, threading can be weird on android Apr 29 19:50:10 it's jjnye! woo Apr 29 19:50:30 frankdoyle: dude i'm always here Apr 29 19:50:51 except for the 15 minutes where you werent Apr 29 19:51:07 i was getting lunch o_o; Apr 29 19:51:22 at 4 in the afternoon? that's not lunch time Apr 29 19:56:06 is it possible to draw inside of a margined area ? Apr 29 20:02:29 alexfu: how do you mean? the view that "owns" the margin won't be able to, since that's how margin works. nothing's stopping anything else though Apr 29 20:07:55 frankdoyle: my goal is to draw text on top of an EditText (like a label). I'm avoiding using a TextView + EditText wrapped around a LinearLayout to keep the heirarchy as flat as possible. Apr 29 20:09:09 I tried modifying the bounds of the EditText background so it appears to have top margin, however, the text that lives inside needs to be updated and I cant figure out how to move it without modifying the bounds of the whole view. Apr 29 20:10:33 alexfu: on top of as in above, or in the same position? Apr 29 20:10:46 frankdoyle: above Apr 29 20:11:11 alexfu: what's your current parent container? Apr 29 20:11:51 It's a LinearLayout Apr 29 20:12:22 Failed to create the java virtual machine! Apr 29 20:12:38 I thouught I was just going to download the ADT bundle and start coding right away Apr 29 20:12:42 My life is a lie Apr 29 20:12:49 Fucking eclipse Apr 29 20:13:19 alexfu: Why not just extend EditText and make it have a top padding and then draw text to the canvas in the top padding area? Apr 29 20:13:22 or left Apr 29 20:13:55 -Dosgi.requiredJavaVersion=1.7 -vm C:\Program Files\Java\jre7\bin\javaw OH WOW THIS WORKED Apr 29 20:14:10 It really sounds like you're fighting the layout system for an optimization you probably don't need Apr 29 20:15:54 Napalm: because padding happens inside of the background image Apr 29 20:16:07 alexfu: so what? Apr 29 20:16:15 oh Apr 29 20:16:30 Napalm: the above text is not supposed to appear inside of the edittext box Apr 29 20:16:47 it wouldnt Apr 29 20:16:51 if done right Apr 29 20:17:14 "done right" would be using two separate views. Apr 29 20:17:14 how can I detect when the user left the application (e.g, using menu button)? Apr 29 20:18:46 Napalm: I dont think adding padding doesn't solve my issue Apr 29 20:19:20 alexfu: the other one is to create a composite view Apr 29 20:19:34 Napalm: compound drawable? Apr 29 20:20:01 you could use a compound drawable set to the top that draws the text Apr 29 20:20:20 Napalm: tried that already. CompoundDrawables are drawn in padded space. same problem as adding padding Apr 29 20:20:21 but your EditText can easily do that directly Apr 29 20:23:05 re Apr 29 20:25:03 Napalm: im back, i have tried what, i have rewrite the code but no nothing change, the same results, Apr 29 20:25:19 so you have problems elsewhere Apr 29 20:26:55 Napalm: how can i figure that, out? i have tested my code in a different project to test but it changes nothing, i think some thing has to be done in order to do that Apr 29 20:50:43 strings.xml? wow this is too muc Apr 29 20:50:44 much Apr 29 20:50:46 really? Apr 29 20:50:57 REALLY? Apr 29 20:51:27 pthreat: why, what? Apr 29 20:52:16 is that level of normalization REALLY required ? Apr 29 20:52:54 Well, it's definitely possible to hardcode all your strings instead. Apr 29 20:53:09 well this is google, what can you expect of people who add to google plus VI keys as a totally cool feature Apr 29 20:53:23 right, relax pthreat Apr 29 20:53:44 you know which kind of people you were dealing before you even started so chill Apr 29 20:53:47 there there Apr 29 20:54:53 It's an approach that has a few benefits! :) Apr 29 20:56:07 Cock suckers This is who I feel Estel, I'm angry Apr 29 20:56:43 Calm your anger, you must. For anger leads to hate... Apr 29 20:57:01 you're right Apr 29 20:57:37 I'm having trouble with a custom ListView showing the currently selected item. The list_selector apparently never gets the state_selected message. Is there some sort of override I should implement to catch the listview select command? Apr 29 20:57:56 I use mDrawerList.setItemChecked(0, true); Apr 29 21:30:39 ping Apr 29 21:31:08 does anyone have experience with audio ui styling? Apr 29 21:32:05 similar to something like https://play.google.com/store/apps/details?id=com.doodleapp.ringtonebox Apr 29 21:36:06 storing json in internal storage is way more productive than going through a contentresolver-contentprovider-sqliteopenhelper dance Apr 29 21:36:44 uh. Apr 29 21:37:06 why not store it as an SQL table? Apr 29 21:37:15 so you can actually query data? Apr 29 21:37:28 Mavrik: for data that you don't need to query, at least Apr 29 21:37:36 mhm Apr 29 21:56:15 :(( my codebase is becoming a big ball of mud Apr 29 21:56:40 set it out in the sun Apr 29 21:57:05 but then it'll become a big ball of dry, crackly mush Apr 29 21:57:46 a big ball of dry, crackly mush, which is no longer a big ball of mud. Apr 29 21:58:10 true Apr 29 22:19:14 Hello Apr 29 22:19:27 I'd appreciate some help, please Apr 29 22:19:45 Actually I am web-developer and programmer, but I've never delevoped an APP before. Apr 29 22:20:08 Richard82: just post your question and if people know the answer they'll respond Apr 29 22:20:08 Since a webdesign client needed an APP which basically does nothing than showing a website, I agreed working on the job. Apr 29 22:20:20 ok Mango_Man, that's what I am doing ^^ Apr 29 22:20:25 :) Apr 29 22:20:46 so again: I am not an APP developer, but I am a web developer (PHP, Perl, MySQL, Jquery, etc...) Apr 29 22:20:50 so, what happened: Apr 29 22:21:08 I ordered an APP which does nothing but showing a website from a company in ... "overseas" Apr 29 22:21:11 ooook, it's india Apr 29 22:22:06 Hey, I'm using android studio, just trying to get my app to launch after not touching it for awhile: Apr 29 22:22:07 Error:android-apt-compiler: [UrlImageViewHelper] No Build Tools in the Android SDK. Apr 29 22:22:13 any clue what that could be? Apr 29 22:22:38 well now, they came up with an APP which requires the right to do "calls" and to delete my storage.,... android warns me: Apr 29 22:22:39 *) directly call phone numbers (This may result in additional charges) Apr 29 22:22:39 *) modify or delete the contents of your USB storage Apr 29 22:22:54 the developer said, this would be normal for every APP which accesses the internet Apr 29 22:23:13 anyway, I did not want to hand out anything to a client which is not really tested and save Apr 29 22:23:18 so I wanted to look at the source Apr 29 22:23:22 and now the problem comes Apr 29 22:23:36 Korvin: you're probably missing the build tools, open up android sdk manager and install them Apr 29 22:23:40 the source seems to be a directory with subdirectories and many files in it Apr 29 22:23:44 ah yeah you're right Apr 29 22:23:45 thanks Apr 29 22:23:47 and I have no clue where to start Apr 29 22:24:05 I now hope, that there is someone in the channel, who can clearify that Apr 29 22:24:13 does android have something like cocoapods? Apr 29 22:24:19 who can maybe say: "all files are standard, only file XY is handcoded" Apr 29 22:24:34 because I assume, that a webbrowser APP only showing 1 site cannot have much source code Apr 29 22:24:41 what the heck is cocoapods Apr 29 22:24:44 I assume this is something so simple like an