**** BEGIN LOGGING AT Fri Jan 31 02:59:58 2014 Jan 31 03:18:29 Hey all.. I have a question on widgets and using RemoteViews.. Specifically, I want to update a widget with a bitmap.. but in order to correctly render the bitmap, I need the dimensions of the widget. What is the correct way to get the display dimensions of the widget? Jan 31 03:18:58 I'm inexperienced so if I'm asking the wrong question, please let me know. Jan 31 03:20:57 i think the view class has some methods relevant to you Jan 31 03:21:29 also there are limits to what you can do with remoteviews Jan 31 03:22:12 oh, is there really a way to get the exact dimensions of widgets at runtime? been looking for that trick for a while Jan 31 03:22:46 I don't see anything in View that's width related with @RemotableViewMethod Jan 31 03:25:22 in sql, how do I properly escape a LIKE query so that symbols like % are not considered part of the sql? Jan 31 03:26:20 I believe sqlite3 uses %% Jan 31 03:27:06 oh, actually - hm. *does quick check* Jan 31 03:34:09 my mistake. Looks like it uses an escape clause - didn't know that. ... like "abc~%" escape '~'; Jan 31 03:35:32 ah well - should hide my tail behind my legs and call it a day :-) Jan 31 03:39:50 performing events on keystrokes as a user types - it's clunky because my events a little slow, but I can't use AsyncTask because that would make a new thread so I won't be "allowed" to "touch" another thread's views Jan 31 03:39:51 what to do? Jan 31 03:44:06 hephaestus_rg kbs: Hmm.. Is there maybe a way to reference the view via the ID? Like build a view from 'R.id.imageView1' ? Jan 31 03:45:44 AzuleZ: i don't remember the precise limitations of remote views, sorry Jan 31 03:46:44 runOnUIThread could be the answer!!! Jan 31 03:46:49 Nod.. No worries; I'm trying to see if there's a way to reference the view directly, bypassing remote views entirely. Jan 31 03:47:09 So like, if I can build something from the widget's layoutid, or the imageView's ID, essentially. Jan 31 03:47:17 The problem is I don't yet understand what those really mean. Jan 31 03:52:33 findViewByID exists on an Activity, it looks like, but not on an AppWidgetProvider Jan 31 03:57:25 http://stackoverflow.com/questions/7393586/calling-findviewbyid-from-outside-an-activity Jan 31 03:57:41 you cannot bypass remote views for widgets Jan 31 03:57:50 unless you're the widget host Jan 31 03:59:36 pfn: Even for read-only operations? Jan 31 03:59:58 Do you know how to get the pixel height/width of an image view via remoteviews? Jan 31 04:00:15 why would you Jan 31 04:00:39 I'm feeding it a bitmap which I'm trying to render at native res Jan 31 04:02:28 you should know the height already, based on your layout Jan 31 04:02:39 And configuration update info Jan 31 04:03:56 Is there a way to access that information from within the widget provider? I was trying to figure out a way to get the layout from the R.layout.myLayout ID, or R.id.myView Jan 31 04:04:28 I'm pretty new at this. :E So apologies in advance. Jan 31 04:04:39 It would be nice if Android had an option to actually move a View instead of the fakery it uses with TranslateAnimation. Causes glitches when repositioning after an animation Jan 31 04:12:07 Has anyone here by chance been successful using Mockito within a one-module Android project? Jan 31 04:17:01 pfn: This is in the context of trying to work with a widget, so unfortunately I don't have access to the Configuration or the layout directly as you'd have in an activity. Thanks for the thoughts, though! Jan 31 04:18:14 int maxage = -9; Calendar cl = Calendar.getInstance(); cl.roll(Calendar.MONTH, maxage) Jan 31 04:18:49 if i do cl.getTimeInMillis it doesn't seem to represent the time 9 months ago Jan 31 04:20:37 oh instead of .roll i need to add a negative number Jan 31 05:02:49 Hello Jan 31 05:04:38 AzuleZ, widgets have configuration... Jan 31 05:07:46 Is there a way to clear the x,y properties an ObjectAnimator applies to a View, after the animation has finished? I'm setting position using margins, and after the ObjectAnimator has finished, I can no longer move the View Jan 31 05:19:27 does anyone know how to sanitize user input to sql when using ActiveAndroid Jan 31 05:29:02 Hi, if i want to save an image that is viewable in the gallery where must I create the file? ie. does it have to be new File(android.os.Environment.getExternalStorageDirectory(), "images/MYFOLDER" ... ? Jan 31 05:32:37 uh, don't you have to use http://developer.android.com/reference/android/os/Environment.html#DIRECTORY_PICTURES Jan 31 05:33:10 with public static File getExternalStoragePublicDirectory (String type) Jan 31 05:33:14 well i've just done it the way above, and I see a directory called MYFOLDER in the gallery Jan 31 05:33:39 I was just curious if I can make subdirectories Jan 31 05:33:54 like MYFOLDER/January MYFOLDER/February etc Jan 31 05:36:20 sorry - to be clear, these are photos taken from the camera app, within the app i'm making Jan 31 05:36:28 not just random images Jan 31 05:38:19 The downloads app: WHen I choose an item and hit 'delete' to clear it from the list, it also deletes that item from disk. How can I achieve the first, without the second? I use DownloadManager to get a file, and I want users to be able to remove it from their list (or never show it in there at all) without deleting the file. Jan 31 05:39:44 i never used the downloads app before; or downloadmanager… yesterday i wanted to find out more about it, but my google fu sucked google;"android download app" heh Jan 31 05:41:53 all i got were irrelevant results. Jan 31 05:48:08 say you had..... x = new File(android.os.Environment.getExternalStorageDirectory(), "images/mydir/subdir/photo.png") Jan 31 05:48:30 if you run x.getParentFile().mkdirs() will that create mydir and subdir? Jan 31 05:48:37 or does it just create the parent, subdir? Jan 31 05:51:43 g00s: actually i just figured out my own question Jan 31 05:51:54 g00s: http://sandersdenardi.com/using-the-android-downloadmanager/ Jan 31 05:52:12 hello! Jan 31 05:53:02 damccull yeah; i wanted to know what to do with 'Downloads' app in my launcher :) Jan 31 05:53:18 since it was empty and i couldn't figure out wtf to do with it Jan 31 05:53:31 seems like a UI flaw (why is this here, and why should i care) Jan 31 05:53:44 g00s: chrome and other apps use it as their download manager Jan 31 05:53:55 g00s: or if not chrome, the AOSP browser Jan 31 05:54:01 imagine you had a folder on your desktop called 'Magic Bucket' and stuff just showed up there Jan 31 05:54:10 yeah, i wasn't aware of it Jan 31 05:54:24 it's not very noticeable Jan 31 05:55:14 i thought Play Books would let me directly import a book; without going to the cloud. so i thought if it was in Downloads, and i Clicked on the pdf, it would be owned by Play Books Jan 31 05:55:29 so i was trying to figure out how to get my pdf in Downloads :| Jan 31 05:55:35 yeah, i'm dumb Jan 31 05:55:53 you could also click on the file attachment in gmail, etc Jan 31 05:55:58 or use another file manager Jan 31 06:06:41 lol Jan 31 06:07:42 Ok so I want to display a modal dialog on my activity (that has fragments for its ui) that can't be dismissed until an operation is complete. How? Jan 31 06:08:25 AlertDialog? Jan 31 06:08:55 Perhaps. Alternatively, I'd like to show alternative layout in my fragment until an operation is complete. Is that possibly? Jan 31 06:09:17 i think you can change the layout :) Jan 31 06:09:47 oh, wait. until your app finishes something Jan 31 06:10:07 ok, well i would just show a spinner in your existing UI, no need to pop up a dialog Jan 31 06:10:17 dialogs are like ghettos Jan 31 06:11:24 i don't see this that often http://www.techrepublic.com/blog/software-engineer/androids-indeterminate-progressdialog-tutorial/#. Jan 31 06:11:25 any more Jan 31 06:13:05 learning how to do those things properly was one of my first challenges :) Jan 31 06:13:10 hmm. Jan 31 06:13:39 Well I need to disable functionality until a file is downloaded...cause otherwise it isn't there to query. Jan 31 06:13:54 and not crashing on configChange Jan 31 06:14:52 capella if i had to i'd probably still screw that up :) Jan 31 06:15:00 i just avoid dialogs as much as i can Jan 31 06:15:53 :p I needed a throbber / beachball while my app scanned /data/data for file size info .... took 6-7 secs Jan 31 06:15:56 so using tab bar with fragments, the second time I visit the fragments its blank. I have this in getItem case 0: return new Home().newInstance(); .... but still blank Jan 31 06:15:57 ideas? Jan 31 06:16:18 Hmm. Perhaps I'll just make a new fragment and not allow the user to see any other stuff until the download is done, then display progress on that fragment Jan 31 06:17:08 this is my main activity https://gist.github.com/akatreyt/8727399 Jan 31 06:18:45 thoughts? Its driving me effin insane Jan 31 06:31:00 is "images" a system folder in Android on the external storage directory? Jan 31 06:31:47 I am trying to remove a view from its parent, when I create the view dynamically, I call setId and give it a unique int, then later I call findViewById on the parent passing it that id, then call parent.removeView but the view doesn't remove Jan 31 06:42:20 made a dialogfragment. Want to lock it so user can't dismiss it. Ideas? Jan 31 06:46:52 woot. Jan 31 06:46:57 setCancelable(false) Jan 31 06:56:11 does that mean no dismiss using outside tap nor back button? Jan 31 06:56:16 damccull: ^ Jan 31 06:56:56 capella http://imgur.com/gallery/3jxqrKP XD Jan 31 06:58:00 hyderagood: yes Jan 31 06:58:06 What was that Kat Williams comedy line ... "Am I a tiger? I don't feel like a tiger" Jan 31 06:58:15 though i've now dumped this in favor of a prettier fragment Jan 31 06:59:17 i like the bird there, maybe pondering the same thing 'am bird.." Jan 31 06:59:31 Comment down a bit "No bear. Only zuul." Jan 31 06:59:43 I think he meant XUL :D Jan 31 06:59:48 heh Jan 31 07:01:14 hey i hve everythin but im missin somethin to do the bsic action bars tutorials because the action bar isnt showing pu though Jan 31 07:01:16 any suggestions Jan 31 07:01:32 Bird thinking "Am bird .. haz got wingz" Jan 31 07:05:10 if i have an imageview Jan 31 07:05:14 and a bitmap Jan 31 07:05:40 and i want to set the bitmap to the imageview AND set the same bitmap to the actionbar Jan 31 07:06:00 how do i do the actionbar part? it seems like i might need a drawable Jan 31 07:06:16 if i have a drawable, how can i set it to the imageview as well? Jan 31 07:16:08 hephaestus_rg: you probably want a BitmapDrawable Jan 31 07:16:19 yeah sorry i figured it ou Jan 31 07:16:41 http://stackoverflow.com/questions/8642823/using-setimagedrawable-dynamically-to-set-image-in-an-imageview and http://stackoverflow.com/questions/2415619/how-to-convert-a-bitmap-to-drawable-in-android Jan 31 07:27:39 pfn: Do you know how to get from here -> http://developer.android.com/reference/android/appwidget/AppWidgetProvider.html To a Configuration object? Jan 31 07:28:39 I was sort of hunting around in AppWidgetManager/AppWidgetProverInfo, and I still wasn't able to find a good place to grab the pixel dimensions of the widget into which I want to stuff a bitmap. Jan 31 07:42:16 Where the heck is adb -r documented? Jan 31 07:42:24 when I run adb help its not there] Jan 31 07:42:59 ah its only to adb install -r Jan 31 07:45:41 aloah Jan 31 07:46:23 * jaDule just wants to thank all the helpful people around here - <3 Jan 31 07:46:30 Enjoy your day Jan 31 07:52:25 IS eclipse the most recoommended for developing android apps Jan 31 07:55:36 depends who's recommending Jan 31 07:57:27 * capella recommends intelliJ like many others ... or "AS Studio" Jan 31 07:58:48 Hi guys, can someone odvise me ? I'm sending photos from android to local server over FTP. and the upload speed is approx. 15kbps ... where can be problem ? iam using mixed b/g/n mode in router, and my phone has wireless N . Iam sending them through Apache commons library , iam using passive mode, and storing files in bufferedinputstream . Please could someone really give me adviise how to... Jan 31 07:58:50 ...run it at least at 100 kbps ? basically i am finnishing project for one little company, but this basically will be useless when its uploading 1 image / 3 minutes . Thank you very much guys Jan 31 08:02:59 http://developer.android.com/reference/android/app/DownloadManager.html#remove(long...) Jan 31 08:03:08 WHY would they automatically remove completed files? Jan 31 08:03:10 that's stupid. Jan 31 08:04:00 because you asked them too by calling remove Jan 31 08:13:26 it seems like when i set the actionbar icon via a bitmap Jan 31 08:13:47 it scales it correctly. but this is a problem since some of my images are favicons Jan 31 08:13:56 which look super tiny in the actionbar Jan 31 08:14:22 is there some way to scale the actionbar icon to always be a specific size on screen Jan 31 08:22:18 scale them yourself to 32dp*32dp Jan 31 08:22:28 or 40dp*40dp, actually Jan 31 08:29:43 ANyone know of a library to handle downloads? Built in DownloadManager blows. Jan 31 08:30:50 handle how? Jan 31 08:31:20 like automatic resuming or retries. aware of netwrok connection type, things like that. Jan 31 08:31:29 volley? Jan 31 08:31:40 i want to give it a url and a save location and then watch the magic Jan 31 08:31:47 volley buffers to a byte[] Jan 31 08:31:55 do NOT use it for file downloads Jan 31 08:32:05 it's for APIs and small images Jan 31 08:32:59 nod Jan 31 08:34:49 JakeWharton: you don't have some crazy library hidden in plain sight on one of your sites that does this? ;) Jan 31 08:34:56 nope Jan 31 08:35:12 what you want is a lot of work to implement Jan 31 08:36:03 damccull i thought downloadManager did what you want :| Jan 31 08:36:16 Please can someone advise me why uploading from android to local server is slow ? 15kbps ? its over fpt Jan 31 08:36:18 ftp Jan 31 08:36:22 i was kidding JakeWharton :) Jan 31 08:36:28 I know. So much work. Jan 31 08:37:38 g00s: it mostly does, but it's got this annoying behavior where once it's downloaded the file, if I delete it without using the downloadmanager, the downloadmanager then doesn't know it was deleted, and will report that the file still exists when you query it's destination path stored in the downloadmanager Jan 31 08:39:03 uh, why aren't you using DownloadManager.remove () Jan 31 08:41:38 maybe i missed something :) Jan 31 08:42:27 Please, do you know if the Andorid camera capture size ratio is always 4/3 ? Jan 31 08:43:28 Ange_blond: no Jan 31 08:43:39 it could be anything, theoretically Jan 31 08:44:30 g00s: that method will also delete the file. I don't want it to delete. I DO want to redownload it if it doesn't exist in the path. Jan 31 08:45:44 I do not want to download it twice simultaneously if the user starts the app, closes it, restarts it. If I .remove() it, file is deleted. If I don't, and the file gets deleted another way, then the download manager thinks it still exists so app won't redownload it. Jan 31 08:45:52 exists == in progress Jan 31 08:46:53 JakeWharton> ok thanks Jan 31 08:47:05 anyhow, i'm now enitrley too delirious to continue without crazy shit in my code. Jan 31 08:47:16 i will start again later this weekend. thanks for your help guys Jan 31 08:48:02 heh, i know how you feel. i'm working on a custom Preference; and just about every example in the aosp code does it differently. its going to make me mad too :) Jan 31 08:48:25 and that should be easy; been around since Api 1 Jan 31 08:49:18 some prefs actually override onSaveInstanceState / onRestoreInstanceState, some don't. some call notifyChange() others don't Jan 31 08:50:12 and for some reason, onSetInitialValue i called twice with DialogPreference :| Jan 31 08:52:52 i like a challenge, but don't like fighting bad docs and stupid shit - thats when i think i should shift gears and do Burro Racing Jan 31 09:22:27 hi all Jan 31 09:25:09 Hi, how can i create a listview with multiple columns and fill it in xamarin? Jan 31 09:28:51 what happens with a cookie, in the default http stuff, if the Set-Cookie has a date set in the past? will it be thrown away (more or less a reset) or will it still exist available for the requests? Jan 31 09:38:20 g00s: xamarin ---^ :) Jan 31 09:40:33 Never heard of it. Jan 31 09:49:06 actually the cookie with a date past is expired, see the doc .http://developer.android.com/reference/org/apache/http/cookie/Cookie.html#isExpired(java.util.Date) Jan 31 09:49:25 and doesn't take in consideration Jan 31 09:54:52 so it will remove it from the jar? Jan 31 09:57:39 Please can someone advise me why uploading from android to local server is slow ? 15kbps ? its over ftp Jan 31 09:58:23 which jar ? Jan 31 09:59:09 cookie jar Jan 31 09:59:21 cookies ? Jan 31 10:00:19 DOSP it can be any number of many reasons, performance problems can be tricky. Jan 31 10:00:45 no it's always present but expired just this Jan 31 10:00:56 so it will be useless Jan 31 10:01:25 DOSP protip: performance attributes are part of the /architecture/ of a system; the architecture should be validated in prototypes to make sure everything is sound Jan 31 10:01:49 saying 'well its functionally complete' but doesn't perform well means, basically, the architecture is bust Jan 31 10:02:11 of course, maybe its just a bad setting, your wifi stuff, network configuration Jan 31 10:02:38 well i dont know where is the problem, I'm sending photos from android to local server over FTP. and the upload speed is approx. 15kbps ... where can be problem ? iam using mixed b/g/n mode in router, and my phone has wireless N . Iam sending them through Apache commons library , iam using passive mode, and storing files in bufferedinputstream . Please could someone really give me adviise... Jan 31 10:02:39 ...how to run it at least at 100 kbps ? basically i am finnishing project for one little company, but this basically will be useless when its uploading 1 image / 3 minutes Jan 31 10:02:39 oh, and FTP sucks :) Jan 31 10:03:28 thats my previous message, and i used the FTP Commons library tutorial o send files Jan 31 10:04:05 feanorin: alright, thanks Jan 31 10:04:22 DOSP you can try something like this http://www.fcc.gov/blog/new-fcc-speed-test-app-how-does-your-mobile-broadband-network-measure Jan 31 10:04:31 see what is 'expected' for your device Jan 31 10:05:00 government website dont do it Jan 31 10:05:09 FCC has an android app Jan 31 10:05:54 https://play.google.com/store/apps/details?id=com.samknows.fcc Jan 31 10:05:56 hm, im gonna check it out, however really on local wifi with local computer runing local server i really dont see 13kbps to be fast Jan 31 10:06:02 or use something else, whatever Jan 31 10:06:08 yea iam gonnna check Jan 31 10:06:22 g00s and what should i use if not ftp ? which protocol ? Jan 31 10:06:30 i guess http Jan 31 10:06:39 hm Jan 31 10:06:47 http*s* if anyone gives a crap :) Jan 31 10:08:17 :D hm is tht government app just like a speed measure ap ? Jan 31 10:08:22 or the device speed Jan 31 10:08:46 could someone please just give me a quick tip/hand, on http://developer.android.com/guide/topics/media/camera.html#custom-camera if you go to "Detecting Camera Hardware" , there is the code to detect camera hardware, i put this in my main method but it isnt called or anything, how would anyone suggest to actually use this code?I'm lost Jan 31 10:12:30 you mean calling context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA) ? Jan 31 10:16:48 hi all im from Germany i got a gif animation of my TO Build App http://foengarage.de/em.gif WHAT is that layout caled to search for a example to work with Jan 31 10:18:06 im a NOOB to this but do alot non OOP programming so the Class structure is for me the biggest hint Jan 31 10:18:36 eclipse layout first works perfect but i coudt not display the different xml in the tabs Jan 31 10:19:08 so someone shoudt give me a hint to an example in that layout format Jan 31 10:19:11 Thanks Jan 31 10:19:35 asfdd how do i call that? Jan 31 10:33:57 eclipse suck Jan 31 10:35:13 you said it Jan 31 10:36:39 Hey Jan 31 10:36:44 can I ask for some help ? Jan 31 10:40:34 just do it Jan 31 10:42:35 Well, is there any way to put icon in menu item which has attribute showAsAction="never" Jan 31 10:42:36 ? Jan 31 10:42:52 I want to have actionbar with 2-3 options, and i have icons there Jan 31 10:42:57 but when i tap "menu button" Jan 31 10:43:14 i want to have a "menu dialog" which opens at the bottom of scrren Jan 31 10:43:18 and has icons + text Jan 31 10:43:44 which looks exactly as : http://developer.android.com/images/options_menu.png Jan 31 10:44:11 and i want to achieve this on > 3.0 api Jan 31 10:51:51 what have you tried so far? Jan 31 10:52:04 isn't it just another view positioned to the bottom? Jan 31 11:45:41 I have a ViewFlipper with multiple ListViews inside. When I scroll through one ListView, BaseAdapter.getView is called multiple times on all the ListViews. The ListViews visibility is GONE. I also tried setting setEnabled(false) and setClickable(false) on the hidden ListViews, yet BaseAdapter.getView is still getting called. This slows down my app. Why is this happening? How can I prevent the ListView from refreshing it's views? Jan 31 12:07:19 DOSP: still having ur issue? Jan 31 12:11:15 i dont think its the buffer / router / passive mode.. first try to upload something to a FTP in your local network via wireless.. if speed is OK there it is either that you tried uploading via cellular connection or the server has a speed limit Jan 31 12:29:29 k Jan 31 12:30:36 jaDule well i am sharing through my notebook files in my pc, so i download something and through network i pass it to other device, and it is quite what it should be , i mean whole movie is done in few minutes, so i think issue is on android side, but where Jan 31 12:31:46 That is not really clear what you wrote there Jan 31 12:31:58 are you using the same method / protocol as in your app Jan 31 12:32:26 if not.. it would be similar saying (if i plug in the USB cable its also very fast..) Jan 31 12:35:59 i right i get it, well i need to test it home, iam in work now, so i try to send something from desktop client to my server and see the speed.. Jan 31 12:36:19 or any other webserver online Jan 31 12:36:39 http://www.ftp-sites.org/ Jan 31 12:37:52 hi, anyone knows how i can convert a json object into a hashmap? Jan 31 12:38:47 jaDule i also havee thought about compriming with zip those files, so you have just one file to send over network, i dont know, what to optimize Jan 31 12:39:11 HashMap result = Jan 31 12:39:11 new ObjectMapper().readValue(JSON_SOURCE, HashMap.class); Jan 31 12:39:53 DOSP: one file multiple files doesnt really matter.. what could have effect (if serverside has thread limit) that you upload concurrently Jan 31 12:41:02 hmm, right. i must test all those things, but i see ftp to be sometimes really fast, why my upload speed is 13kbps approx. that's really bad. Jan 31 12:42:07 i somewhere (past tense of) read that the Apache commons library is by default slow. Might that be the factor ? i used some other library , jFtp or what , but it was similarly slow Jan 31 12:42:14 the FTP is as fast as resources allocated with upper limit of its internet bandwidth Jan 31 12:42:45 apache common is not slow by default.. Jan 31 12:42:52 just as i thought Jan 31 12:43:16 and when you are talking about transmission speed using some TCP protocol Jan 31 12:43:30 nothing is fast as what your system is used to (file io) Jan 31 12:44:18 ... remember that TCP on mobile network sucks by default, and Wifi sucks with increased number of wifi users on the channel? ;) Jan 31 12:44:26 hey there anyone has any idea in how to keep an app running in the backround and not reseting? (like a connection to a certain server) Jan 31 12:44:26 okay i believe its not by server , its all local , i have filezilla server started and I am uploading to it. Jan 31 12:44:42 daimvn use service Jan 31 12:44:50 and speed? Jan 31 12:44:59 or maybe AsyncTask , depends what will you run Jan 31 12:45:44 jaDule speed of uploading is 13kbps on android , i didnt tried it on desktop with this one, but i remember previously running fiilezilla server and uploading to it with 1mbps speeds Jan 31 12:45:59 on desktop <- Jan 31 12:45:59 what do you mean? Jan 31 12:46:09 you are talking with some unkown cypher Jan 31 12:46:50 1mb/s? thats 10mbit Jan 31 12:46:54 jaDule : ObjectMapper cannot be resolved.. Jan 31 12:46:58 (which is fast) Jan 31 12:47:36 jaDule i know, crappy thinkpads keyboard , dont worry about the speed on desktop in was much much above what it is on android, just take it as that okay? i wish i could ge t 100kbps on android .. Jan 31 12:47:38 http://jackson.codehaus.org/1.7.3/javadoc/org/codehaus/jackson/map/ObjectMapper.html Jan 31 12:47:46 my mistake didnt ask properly i already got an app that keep disconnecting after some time idle or if i do other things and this app is in background . can i keep this app staying connected somehow? Jan 31 12:47:57 its going like 13kbps , 3kbps , 699bps ..its totally slow Jan 31 12:48:47 DOSP: you are not clear enough about your problem.. try disabling cellular and see whether speed improves Jan 31 12:49:04 then also try to upload from your local pc, maybe your internetline is slow Jan 31 12:49:22 this problem is easy to be narrowed down.. so do according steps everything else doesnt make sence Jan 31 12:49:48 Okay i do it when i get home, however my internetline is not slow Jan 31 12:50:02 i can guarantee that .. it must se smoething else Jan 31 12:50:31 maybe port problems, or some services are bottlenecking it Jan 31 12:50:49 as you said, i get home and test, but iam really sure that it isnt internet Jan 31 12:50:53 daimwn: as dosp suggested you need to keep your app alive or reconnect on resume, so a service might be a solution Jan 31 12:52:31 you mean me making or using a service but i dont have any control to this app its just an app i use to connect to some work things so how can i use a service in an app not mine? Jan 31 12:53:15 oh :) Jan 31 12:53:15 if i understand it correctly, its above my knowledge :D but i would like to hear reply on your question as i am also interested Jan 31 12:53:19 thats a problem Jan 31 12:55:01 ok maybe some other way then is there anyway to keep ALL apps from closing in the background lets say for when i work and then change it back to normal ? Jan 31 12:55:18 no Jan 31 12:55:34 thats needs to be implemented in the programme Jan 31 12:55:35 i like straight forward answers but not tihs time :P Jan 31 12:55:49 what the app does Jan 31 12:55:57 ok so no way to keep connected to this server with this app i need to relogin every 10-15 min Jan 31 12:56:10 i am just logged in in a server and do some work Jan 31 12:56:31 if i go browsing or whatever after 5-10-15 min depends i get disconnected Jan 31 12:56:48 so the app is establishing vpn? Jan 31 12:57:04 probably yes Jan 31 12:57:04 ah never mind Jan 31 12:57:13 ok Jan 31 12:57:54 thnx anyway Jan 31 12:58:47 sure Jan 31 13:07:59 jaDule : what parameter should i use for readValue, i have a json string basical Jan 31 13:13:49 what's the best way to refresh a fragment Jan 31 13:14:35 Hello guys. How long does it take for Alpha/Beta version to be available on playstore ? Jan 31 13:14:43 Is it the same as production ? Jan 31 13:15:55 yes vegetablesalad19 Jan 31 13:16:24 and if you have access control on them you cant search for it Jan 31 13:17:19 lemonxah: sorry I dont follow. Jan 31 13:17:23 search for what ? Jan 31 13:17:39 will it show as different app in playstore ? Jan 31 13:18:14 same playstore Jan 31 13:18:30 if you have setup your beta/alpha to only be available for specific people Jan 31 13:18:34 then only those will see it on the play store Jan 31 13:18:36 yes Jan 31 13:18:41 but only via direct link Jan 31 13:18:44 no searching Jan 31 13:18:54 oh ok, got it Jan 31 13:19:01 no worries Jan 31 13:19:31 I'm a bit disapointed about this. I can understand the loong time it takes to publish release, but why for Alpha ? Jan 31 13:19:59 Sometimes I need to put out 10 different alpha versions per day Jan 31 13:20:41 I used to hold them on my server, hoped I could have the same workflow with google Alpha/Beta options. guess not Jan 31 13:21:41 Anyway thanks for prompt reply lemonxah Jan 31 13:22:06 no worries Jan 31 13:22:21 vegetablesalad19, its the same process for alpha or beta or live Jan 31 13:22:30 its easier to process batches Jan 31 13:22:51 so depends on when the batches run the time varies Jan 31 13:23:12 Yes, I just was thinking of using it as current dev version holder. So in-house testers could have fast access to nevest version Jan 31 13:23:24 we do a new alpha release once a week and a new beta once every 2 weeks Jan 31 13:23:44 you could just give them access to CI Jan 31 13:23:54 and they get the latest apk if they need it Jan 31 13:24:02 CI ? Jan 31 13:24:24 continues integration ie .. TeamCity, Jenkins Jan 31 13:25:15 oh, first time I hear of this. Will have to check it out Jan 31 13:25:20 really Jan 31 13:25:21 hmmm Jan 31 13:25:41 and it's a JetBrains product, I like them Jan 31 13:25:44 basically its a server you setup that catches changes in your source repo like github or svn server and then rebuilds your app Jan 31 13:26:17 so if you check in your code to your source repo it triggers a build on this server Jan 31 13:26:24 so the latest version of the apk is always available Jan 31 13:27:42 It's hosted on "my server" and app gets built on server ? Jan 31 13:28:36 quit cool if I can say so Jan 31 13:34:13 vegetablesalad19: you ever do QA testing on software? Jan 31 13:34:17 This is more-or-less like this Jan 31 13:44:28 why doesn't Android Studio just show me the release notes *within* itself Jan 31 13:44:39 I don't want you switching my blasted desktops Jan 31 13:53:27 It's hosted on "my server" and app gets built on server ? yes Jan 31 14:04:19 anyone know of a way to stop the kindles doing that weird overscroll bounce back thing Jan 31 14:07:06 place it in the bin Jan 31 14:07:18 my first thought too Jan 31 14:08:38 this is my favourite thing about the kindle https://code.google.com/p/android/issues/attachmentText?id=10197&aid=101970012000&name=VideoView.java&token=mPSHYJ-05nmoozoI0StFx_zKoII%3A1367069364201#478 Jan 31 14:09:23 overall it's not TOO horrible Jan 31 14:09:29 i think i just have to disable overscroll maybe Jan 31 14:12:19 morning Jan 31 14:15:40 Mornin'! Jan 31 14:15:48 evening Jan 31 14:16:00 afternon Jan 31 14:16:29 tally ho Jan 31 14:20:28 with asynctask, how is it possible to call a method inside doinbackground. and inside that method call publishProgress. ? is it possible or can publishProgress only ever be used Directly inside doinbackground Jan 31 14:21:41 this should work Zylinx Jan 31 14:21:52 as long as the method does not affect any views Jan 31 14:22:46 how? Jan 31 14:22:55 just call it Jan 31 14:23:02 like a java method. Jan 31 14:23:27 doInBackground(...){ mMethod() } Jan 31 14:23:31 hey guys, how do I replace an EditText view witha another EditText view in the exact same spot? Jan 31 14:23:41 void mMethod() { publishProgress(...) } Jan 31 14:24:04 CocoStorm why not alter the Text of the textview? Jan 31 14:24:18 danijoo, because it's an edittext view? Jan 31 14:24:33 lol danijoo thanks i have no idea why i thaught it wasnt working Jan 31 14:24:39 so what? mEditText.setText("bla") Jan 31 14:25:32 danijoo, I see, because it needs to be a different size and I need to grab the values of the EditText views to do different things Jan 31 14:25:51 but I guess I can do that as well right Jan 31 14:26:21 would still be easier to just steht all the stuff. but if u want to replace it the easiert way might be to define 2 EditTexts in your XML Jan 31 14:26:47 ant then call setVisibility(View.GONE) on the first one, and setVisibility(View.VISIBLE) on the second Jan 31 14:27:21 reusing the old one is better style, though Jan 31 14:27:31 danijoo, I was thinking about doing it that way, but is it possible to make them appear in the same place? Jan 31 14:27:43 or do I need to reuse the old one to do that Jan 31 14:28:11 CocoStorm: yes if u use RelativeLayout and place one above the other Jan 31 14:28:33 or with linear layout just below the other. If u hide the first one, the second one will move up Jan 31 14:28:51 danijoo, oh really? interesting, thanks! Jan 31 14:29:34 yeah just be sure to use View.GONE and not View.INVISIBLE Jan 31 14:30:01 because GONE makes it acually disappear (no space needed) while INVISIBLE makes it still use the same space Jan 31 14:30:24 Oh I see, yeah that's exactly what I need Jan 31 14:30:27 thanks :) Jan 31 14:31:16 you're welcome Jan 31 14:31:29 Such a productive and polite IRC channel. What's not to like? Jan 31 14:33:17 heh Jan 31 14:42:52 Hi. I would like to create an app that would get the contents of a div of a website. Is it difficult? Jan 31 14:43:32 And what's more important, is it possible? Jan 31 14:45:50 AzuleZ, the configuration occurs as part of the provider update Jan 31 14:46:46 communis-cookie its not hard at all Jan 31 14:47:26 communist-cookie, really easy Jan 31 14:47:36 DOSP: any advise what should i google or any tutorials? Jan 31 14:47:44 HTMLCleaner is a fairly good library for java Jan 31 14:48:08 http://www.programmingmobile.com/2012/01/tutorial-scraping-html-with-htmlcleaner.html Jan 31 14:48:46 communist-cookie as jonc-1 said Jan 31 14:48:53 uhm Jan 31 14:48:56 http://www.programmingmobile.com/2012/01/tutorial-scraping-html-with-htmlcleaner.html in case you missed it Jan 31 14:48:59 could you repeat? Jan 31 14:49:06 thanks :) Jan 31 14:49:17 I've used it for quite a few web scraping tasks Jan 31 14:49:56 Getting a list of all amazon prime instant videos with information from the page of each video, gathering public facebook data, scraping event websites Jan 31 14:50:57 even used it to inject css and move elements around to show a modified description webpage in a webview for one of our apps Jan 31 14:51:24 we had permission (paid for the service), we just didn't get the full set of data that they provided so had a webview show up Jan 31 15:00:58 I have a fragment with a button that opens a list view activity. the button should display what is currently selected in the list view, what would be the best way to implement this? Jan 31 15:05:01 have some sort of callback for when an item is selected in the listview activity notify your fragment that it should change the button text Jan 31 15:06:02 or just have a global that gets set :P (not the cleanest, but the easiest) Jan 31 15:07:56 yeah I want to avoid the global thing. I'm not sure how to access the fragment though Jan 31 15:08:23 I believe you can save a fragment into a bundle Jan 31 15:08:35 I think fragmentmanager has a function for it Jan 31 15:12:46 I think I can just do fragmentmanager.getFragmentByTag() Jan 31 15:15:00 different activities may have different fragment managers (not positive) Jan 31 15:16:27 anyone know how to get Gradle to install on all connected devices? Jan 31 15:16:46 use startActivityForResult to start the listActivity --> set the selected list item as an extra on the return intent. --> in OnActivityResult() of the fragment u can then get the selected item from the intent and set it to the button of the fragment Jan 31 15:16:58 alexfu: just some ugly bash parsing Jan 31 15:17:05 alexfu: you using linux? Jan 31 15:17:45 yes Jan 31 15:17:52 that sounds like that's how it's supposed to be done xor42 thanks. thanks to you too jonc-1 Jan 31 15:18:56 Hi folks ! Jan 31 15:19:15 No problem, and that is something I did not know could be done, thanks for the knowledge xor42 Jan 31 15:22:27 I'm encountering issue with a DatePicker with Holo theme. The picker is too large and thus is cut on the right. Jan 31 15:22:49 Get some screens here : http://imgur.com/a/80otf/ Jan 31 15:23:15 I just want a DatePicker with Holo theme. No special theme with default layout. Jan 31 15:23:44 Guys , do you have any "tutorial" "guide" or some magic with design ? because when i create an android app, it is funnctional, and i use some custom look on buttons, but it doesnt just seem nice, or is it just me ? what would ou improve ? here is screenshot -> http://imgur.com/tfoi2nw Jan 31 15:24:36 Design is hard, like a fleeting eagle in the afternoon sunrise Jan 31 15:26:07 DOSP, a lot of designers I know say plagiarize Jan 31 15:26:21 find a few designs you like and try to transform them into the context of your app Jan 31 15:26:23 so like copy the design of other app Jan 31 15:26:28 hm Jan 31 15:26:44 maybe change up the color scheme some but there are some pretty nice tools for picking color schemes Jan 31 15:26:48 not bad idea, i really dont care about design, but its what get you sold when presenting your apps . Jan 31 15:27:03 jonc-l like whhich one ? Jan 31 15:27:05 http://colorschemedesigner.com/ Jan 31 15:27:38 Just copy Timely Jan 31 15:27:44 Everyone gushes over Timely's UI Jan 31 15:27:54 pick triad or tetrad and you can move around the colors and it will position everything to look nicely together (there is a science as to why colors look good together) Jan 31 15:28:51 look at the "light page example" (bottom right corner after selecting colors) and it gives you a test of how something could look Jan 31 15:29:11 Heya peeps Jan 31 15:29:59 mikedg: Timely are on the bleeding edge of bleeding edges Jan 31 15:30:19 you can even save the selected scheme as a photoshop color palette Jan 31 15:32:46 hell I need to make a tool that will read the exported xml and turn it into a color file for android Jan 31 15:33:39 timely as in timely.is? Jan 31 15:33:55 or timelyapp.com? Jan 31 15:35:12 I'm loosing my mind with this DatePicker, anyone interessed with this challenge ? Jan 31 15:36:02 I also opened a question on stackoverflow for details ( in case : http://stackoverflow.com/questions/21442722/android-datepicker-with-holo ) Jan 31 15:37:59 I try to understand the default theme use in a default DatePicker Jan 31 15:38:21 but nothing tells me it's a problem of style. Jan 31 15:38:43 Guys, could anyone give me a TOTAL BEGINNER guide? Jan 31 15:38:45 As the calendar app, which doesn't use particular styles, appears perfectly on the same phone Jan 31 15:39:14 DOSP: with the Timely gradient: http://imgur.com/mI79L7l Jan 31 15:39:26 There was a good one, by Android devs or something Jan 31 15:52:35 No one here developed an app with Holo theme ?! Jan 31 15:53:32 whats Holo Jan 31 15:55:31 I create my own theme Jan 31 15:56:18 it uses Holo as a parent, but I've overrode the style of edittext, textview, dropdownlist, spinner, and button Jan 31 15:58:44 Holo is de fault theme since Honeycomb, isn't it ? Jan 31 15:59:11 Has anyone been able to get the screen to brighten when an Activity is opened in a GDK immersion application? Jan 31 16:01:00 The DatePicke appears well when I set android:theme to Theme or Theme.Light Jan 31 16:01:32 When I set Theme.Holo or Theme.Holo.Light, the DatePicker is cut at the right edge of the screen. Jan 31 16:03:19 Any idea ? Jan 31 16:03:27 Is someone encounter a such problem too ? Jan 31 16:06:13 nihcam, take a screenshot Jan 31 16:07:12 screens here : http://imgur.com/a/80otf/ Jan 31 16:09:10 are you setting the width or left margin / padding etc at all? Jan 31 16:09:19 no styles at all Jan 31 16:09:19 and is this on a device or in the simulator Jan 31 16:09:28 only android:theme into AndroidManifest Jan 31 16:09:47 this is on a device (Motorola XT910) Jan 31 16:12:04 jonc-1, what do you think ? anything to start from ? Jan 31 16:12:19 it seems like the margin for the actual date picker is massive Jan 31 16:13:03 ok Jan 31 16:13:38 It's like the dialog is opened into a larger window Jan 31 16:13:51 what api level are you targeting? Jan 31 16:14:38 14 Jan 31 16:15:00 http://stackoverflow.com/questions/19133046/how-to-reduce-the-padding-margins-of-the-holo-datepicker-timepicker so holo really is made for 1 screensize it seems Jan 31 16:15:22 BUT you can take the layout, and taking the layout and customizing it Jan 31 16:16:01 I answered to this post yesterday :-) Jan 31 16:16:18 I whated into Android Calendar app source to find how it's working. Jan 31 16:17:01 No specific styles are used in Calendar app. It is all default values provided by Android framework. Jan 31 16:17:13 how can I access the native heap through the NDK ? .. any examples? Jan 31 16:17:27 Except the calendar app shows a well DatePicker Jan 31 16:26:00 Here is the layout used by Holo theme : https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/res/res/layout/date_picker_holo.xml Jan 31 16:26:44 the calendarview seems to be the problem Jan 31 16:27:17 I hide it : dpd.getDatePicker().setCalendarViewShown(false); Jan 31 16:27:41 See my post http://stackoverflow.com/questions/21442722/android-datepicker-with-holo for details Jan 31 16:28:23 it is massive and it seems to make the rest of it large Jan 31 16:28:30 since it is wrapcontent Jan 31 16:28:43 yes, it does ! Jan 31 16:29:21 The method setCalendarViewShown(false); set its visibility to gone. Jan 31 16:29:32 hiding it may not change the layout though Jan 31 16:29:55 Call setVisibility(View.GONE) on your View. When visibility is set to VISIBLE it is drawn, when set to INVISIBLE it is not drawn but still measured takes up space on the screen. When it is set to GONE it is not drawn and not measured. Jan 31 16:29:59 why when analyzing my apk it seems is asking FACTORY_TEST permission, and i'm not declaring neither using anywhere? Thanks Jan 31 16:30:23 surely it depends on when I display it. So hide calendar does not make the layout to be redrawn. Jan 31 16:30:45 The framework will show the calendarview for you when appropriate Jan 31 16:30:57 nihcam, with your DatePickerFragment, try: Jan 31 16:31:06 DatePickerDialog* Jan 31 16:31:18 jonc-1, setCalendarViewShown(false); set its visibility to GONE (see it in Android source) Jan 31 16:31:58 dpd.getDatePicker.getCalendarView.setVisibility(View.GONE) Jan 31 16:32:19 It tried to display directly the dialog box (has shown in the stackoverflow question) and also to create a DialogFragment as shown in Android guide. Jan 31 16:32:34 jonc-1, good idea, I try it now. Jan 31 16:33:00 dpd.getDatePicker().getCalendarView().setVisibility(View.GONE)* Jan 31 16:33:09 and try this before you show the dialog Jan 31 16:33:58 jonc-1, as I expected, it doesn't work either Jan 31 16:34:19 then that's all I got, the rest of the margins aren't that big Jan 31 16:35:03 Unfortunalty, I'm not at work so finding Android source is harder now but may the layout is inflated before the setVisibility to GONE. Jan 31 16:36:00 nihcam Jan 31 16:36:21 after setting the dpd.getDatePicker().setCalendarViewShown(false); Jan 31 16:36:40 try calling, dpd.getDatePicker().invalidate(); Jan 31 16:37:21 it may do it internally already (would hope it does) Jan 31 16:37:45 jonc, I'm trying Jan 31 16:38:58 jonc-1, doesn't work... Jan 31 16:39:08 that's all I got Jan 31 16:39:19 jonc-1, thanks :-) Jan 31 16:39:33 no problem, sorry I couldn't be more help Jan 31 16:40:02 It's more than I got for now Jan 31 16:41:56 If I want to dev, do I need to install JSD or JRE or both? Jan 31 16:42:15 JDK Jan 31 16:42:23 yeah Jan 31 16:42:25 misspelled Jan 31 16:42:31 sorry and thanks razor- Jan 31 16:42:41 WHOA are you by any chance razor1911? Jan 31 16:42:53 No Jan 31 16:43:05 pity :( Jan 31 16:43:19 razor- its ok to admit Jan 31 16:43:22 We are not FBI Jan 31 16:43:36 Does it matter? Jan 31 16:44:03 I just wanted to thank him and tell him I love his work. Jan 31 16:44:20 razor-yes Jan 31 16:44:46 Razor1911 is one of the best guys on the Internet ever. Jan 31 16:45:00 He's cooler than razor Ramon Jan 31 16:45:17 Yes, he's cooler than me Jan 31 16:45:40 Me buyz stuff. Me no warez Jan 31 16:45:46 u kidding Jan 31 16:46:05 I know two people who buy stuff in my country. Jan 31 16:46:18 Those are my little sister 12yo friends. Jan 31 16:46:52 Duh, why would people buy stuff when your government makes sure that everyone has all the stuff they need Jan 31 16:47:16 I don;t understand this buying thing. Jan 31 16:47:52 I just introduced my pop to TPB :) Jan 31 16:48:01 mikedg: what are 'wares'? Jan 31 16:48:26 mikedg: do i need netbeans to code for Android? Jan 31 16:48:32 I introduce too much stuff to tpb Jan 31 16:53:53 there is never too much on tpb Jan 31 17:05:34 Hi! why when analyzing my apk it seems is asking FACTORY_TEST permission, and i'm not declaring neither using anywhere? Thanks Jan 31 17:07:42 so im trying to deselect a CheckBox in onCheckedChanged, but the call to setChecked just straight up doesn't work. In debugging, after the setChecked(false) line runs, the particular EditText's inner mChecked value is still true Jan 31 17:21:04 http://stackoverflow.com/questions/21466834/custom-relativelayout-issue Jan 31 17:29:42 Uhm.. width = width + w; ? Jan 31 17:30:38 Surely the width is just w, and not all previous widths added together Jan 31 17:32:07 Also, you have getWidth Jan 31 17:32:11 No need to keep your own variable Jan 31 17:32:12 hello, I have an editText, with an Onclicklistenner that open an alertdialog Jan 31 17:32:27 but problem, on first clikc it open the keybord Jan 31 17:32:37 only on 2nd click it laucn the alert dialog Jan 31 17:32:45 launch* Jan 31 17:33:36 any idea of why would it wait 2nd click to execute onClick code ? Jan 31 17:34:09 first click gives it focus macTAR Jan 31 17:35:27 OK but there is not onFocus callbacks Jan 31 17:35:52 http://developer.android.com/reference/android/view/View.OnFocusChangeListener.html Jan 31 17:36:11 lovely Jan 31 17:37:29 there is also setOnTouchListener Jan 31 17:37:32 that could work maybe Jan 31 17:37:44 yup Jan 31 17:41:32 I have a CheckedTextView that's getting unchecked everytime I scroll down the ExpandableListView (when it gets offscreen), how can I stop that from happening? Jan 31 17:42:51 Syzygy_, the way android handles listviews is that it will reuse views Jan 31 17:43:39 you need to store whether or not that item was checked and when you create the view in the Adapter, set checked based on whether that object was "checked" previously Jan 31 17:44:02 but i'm not even getting rid of the list Jan 31 17:44:16 It reuses the view as soon as it goes offscreen Jan 31 17:44:26 so a 1000 item list, only actually uses like 5 views Jan 31 17:44:38 hmm... Jan 31 17:45:47 and it just reuses them Jan 31 17:46:02 I'm not even sure what to google for now actually... Jan 31 17:46:18 did you create your own adapter for it? Jan 31 17:46:23 yes Jan 31 17:46:38 and you pass it a list / array of objects to display when created? Jan 31 17:47:21 HashMap> which then get's converted into a HashMap> .... Jan 31 17:47:40 so the data internally is HashMap> Jan 31 17:48:06 you will need to change it into something that stores more info (the displayed string along with whether it was checked) Jan 31 17:48:30 and then in getView() you would set the checkbox to be checked if it should be Jan 31 17:49:03 the checkedtextview* Jan 31 17:49:08 well, i guess the last string array will be have 3 instead of 2 entries Jan 31 17:52:52 Greetings, folks! Couldn't anyone tell me how to fix it? I'm clipping bottom corners to be rounded and making border by real shape, but ListView rows have their own background, so those backgrounds overlap this rounded border, but I would like them to be cut the same Jan 31 17:53:20 this is getting worse and worse D: Jan 31 17:54:39 Syzygy_, why the hashmap being sent to your adapter? Jan 31 17:54:59 Hashmap is not guaranteed order, therefore probably bad for insertion and removal of items while the list is still being shown Jan 31 17:55:06 it's a ExpandableListView, not just a ListView Jan 31 17:55:22 and? still don't see why a hashmap Jan 31 17:55:58 honestly... tutorial I had used a hashmap, I should probably switch Jan 31 17:56:16 if possible I'd just make it a List Jan 31 17:57:05 is it so you can send back a specific string?, you display one string, get the checked ones and then get the other using the hashmap? Jan 31 17:57:09 What is the easiest way to place an image to a button? Jan 31 17:57:16 in a button* Jan 31 17:57:17 ImageButton Jan 31 17:57:29 But I want both image and text Jan 31 17:57:32 well, it would need to be a List Jan 31 17:57:36 Question, at this point in time is it theoretically possible to trick the android OS into changing outgoing audio channels in the middle of a call? Jan 31 17:57:43 Syzygy_, why so? Jan 31 17:58:06 communist-cookie, you can set an image to be the left side etc, but I've found it doesn't work Jan 31 17:58:14 because I have 3 levels of data in a structure that's made for two, thank god i only need to display those two Jan 31 17:58:43 Could you wrap it in an object instead of 2d string array? Jan 31 17:58:53 I could use a hashmap. Jan 31 17:59:06 Syzygy_: what if you made an object and it held the String values. Then you could use a List filled with that object Jan 31 17:59:12 List where MyObject is {public String string1, public String string2}? Jan 31 17:59:32 Uhm. Jan 31 17:59:36 it's not much of a difference. Jan 31 17:59:40 It is like my frist day programming. Jan 31 17:59:50 it's a huge difference, makes code much more readable Jan 31 18:00:09 makes it a lot clearer when you go back later Jan 31 18:00:13 but it also adds unnecessary complexity. I'll look into it though Jan 31 18:00:32 not really, as long as the number of strings you need to store isn't variable, it adds almost no complexity Jan 31 18:00:49 and then you can have "boolean isChecked" inside of myObject Jan 31 18:00:59 Uhm guys. I will tell you a concept and you will name it, ok? Jan 31 18:01:16 and in the Adapter's createView you set the CheckedTextView based on that Jan 31 18:01:19 certainly beats the if(entry[2] != null) i have right now Jan 31 18:01:46 So, I want to have something like a calendar. I want a view showing Monday, but when you move your finger right to left it shows Tuesday. Jan 31 18:01:58 Do I need to create a separate view for each day? Jan 31 18:02:18 communist-cookie, ViewPager Jan 31 18:02:33 OK :) Jan 31 18:02:50 and you only really need 1 view, and your PagerAdapter can tell it what day etc it is Jan 31 18:03:07 and sets the appropriate UI elements to show the correct data Jan 31 18:04:05 It is ging to be a school schedule. So I need it to read what class is the user in and then display their schedule for the suitable day. Jan 31 18:04:22 Damn What I want to do is o easy and I cannot accomplish it cause I suck. Jan 31 18:05:33 jonc: http://imgur.com/FzpLMrc What can I do to prevent my ImageView from being so high? Jan 31 18:05:48 communist-cookie: Button b = new Button(); b.text="blarg"; b.setBackgroundDrawable = R.drawable.picture; Jan 31 18:06:32 communist-cookie: if you're using xml layouts, you can add layout-height="wrap_content" on that imageview Jan 31 18:07:10 jonc, I'll take a break and think of a nice way to handle my adapter Jan 31 18:07:59 might just write the ordering into a List Jan 31 18:08:54 damccull: I know, and I did. Jan 31 18:08:54 and use an object instead of the String[] ... does java have structs? Jan 31 18:09:05 damccull: The thing is, it is still like that :) Jan 31 18:09:18 communist-cookie: pastebin the layout file Jan 31 18:09:41 damccull: PMing would be fine? Jan 31 18:09:52 Just the ImageView code? Jan 31 18:10:31 communist-cookie: pastebin.com, you can set it private, then sure, pm me the link. Do the whole layout file. It's probably a problem with another element Jan 31 18:10:52 http://pastebin.com/AqKkNcam Jan 31 18:19:46 is it somehow possible to get keyboard's height? Jan 31 18:20:06 posplaw, there are hacks to figure it out, but no there is no official way Jan 31 18:21:23 what then should I do? in iOS version there are few dropdowns at the screen, so those which doesn't fit the screen with opened keyboard are cut to maximum possible height. Is there any solution to be much more native for Android? Jan 31 18:23:59 can I at least get root view visible rectangle? Jan 31 18:25:58 I believe so Jan 31 18:28:01 i wonder if hierarchyviewer shows the keyboard layout Jan 31 18:35:54 rdbt_ it's in the screengrab but doesn't seem to be in the hierarchy Jan 31 18:36:07 oops rdnt_ ^^ Jan 31 18:37:05 pfn: AppWidgetProvider::onUpdate gets passed a Context, an AppWidgetManager, and a set of IDs.. The only thing I could find from the AppWidgetManager that looked useful was AppWidgetProviderInfo.. Off of that there's a configure function which could maybe launch an activity.. which could -then- provide access to some other stuff.. but I'm not sure that's what you're saying. Is that what you're saying when you say 'the ... Jan 31 18:37:12 ... configuration occurs as part of the provider update' ? Jan 31 18:37:46 And for anyone else, I'm trying to get the pixel height/width of a widget's imageview so I can natively render a bitmap and feed it via remoteimageviews Jan 31 18:37:57 Suggestions and best practices welcome. :E Jan 31 18:51:25 What kind of alertdialog should I use if I want to show some gui elements on it, like a text field and buttons and such? Jan 31 18:56:10 AzuleZ, you suck at reading docs, there's more than just onUpdate Jan 31 18:56:50 eghdk: dialogfragment Jan 31 18:57:56 Thanks alexfu Jan 31 18:58:21 pfn: Oh yeah, totally.. You mean on AppWidgetProvider, I assume? Just since you're not being very specific.. I see everythign listed here, http://developer.android.com/reference/android/appwidget/AppWidgetProvider.html Jan 31 19:01:32 Unless you're referring to the max/bin widths/heights Jan 31 19:02:31 *max/min, rather.. but those sound like bounds rather than the exact dimensions which I'd need - unless you're implying that's not the case? Jan 31 19:05:13 AzuleZ, why don't you actually read Jan 31 19:05:31 Oh, I am. :] ex: A bundle extra that contains the upper bound on the current width, in dips, of a widget instance. Jan 31 19:05:50 those are all you get Jan 31 19:05:58 the bounds are the dimensions of your view Jan 31 19:06:28 Ah cool, so it's like the sides of a Rectangle Jan 31 19:06:46 ty for the help; I'll check that out. Jan 31 19:29:33 hello. Jan 31 19:30:07 rdnt_: even if you can get the keyboard height from the hierarchyviewer, that's only good for one keyboard (and possibly one device). Different keyboards have different heights. Unless you can do it in code all the time, you're gonna have compatibility problems. Jan 31 19:30:08 Button b = new Button(); b.setBackgroundDrawable = R.drawable.picture; how is it used? I mean, how do I choose the image. picture doesn't sound like a path. Jan 31 19:30:26 communist-cookie: put a picture in res/drawable Jan 31 19:30:44 then R.drawable. will reference the picture Jan 31 19:31:23 ok :) Jan 31 19:31:37 communist-cookie: i recommend you go through this: http://developer.android.com/training/index.html Jan 31 19:31:43 What was the key combination to import all the packages I need? Jan 31 19:31:49 communist-cookie: do all of it because it teaches all this stuff you're asking Jan 31 19:32:00 damccull: Thanks, as i said, it is my frist day :) Jan 31 19:32:01 depends on the IDE you're using Jan 31 19:33:19 damccull: Just one last before I will see the tutorial. Though the Button package is impoted, 'Button b = new Button(); b.text="blarg"; b.setBackgroundDrawable = R.drawable.picture;' still is marked as a problem Jan 31 19:33:32 And I mean, May I put them in onCreate? Jan 31 19:34:43 communist-cookie: for one thing, Button doesn't have a 0-argument constructor Jan 31 19:35:13 second, setBackgroundDrawable is a method, not a field Jan 31 19:35:58 third, even when using setBackgroundDrawable as a method, it expects a Drawable, not a resource id. However, there's the alternate setBackgroundResource which accepts a resource id Jan 31 19:36:10 HEH sorry I screwed that up. Jan 31 19:36:28 I forgot you have to get the drawable from the resource and pass THAT into the method Jan 31 19:36:46 hey, quick layout question - whats the best way to achieve sometihng like this: http://imgur.com/wptoFCr Jan 31 19:36:49 with the right aligned dealie Jan 31 19:38:00 communist-cookie: so using JesusFreke's info: Button b = (Button) findViewById(R.id.button_id_from_xml_layout); b.setBackgroundResource(R.drawable.some_picture); Jan 31 19:38:22 AphelionZ: relativelayout Jan 31 19:38:58 damccull: Thanks, what is nested within what and what attributes do i have to set?? Jan 31 19:39:54 communist-cookie: or you could do it easier and set the image in your xml layout. Add this as an attribute to the button element in question: android:background="@drawable/ic_launcher" Jan 31 19:41:03 AphelionZ: For that simple layout, a single RelativeLayout surrounding the whole thing, and then you use attributes on the child elements to lay them out where you want them: http://developer.android.com/reference/android/widget/RelativeLayout.html Jan 31 19:41:15 Each element is a direct child of RelativeLayout Jan 31 19:41:29 thanks Jan 31 19:42:18 ID is unique per a view or entire project? Jan 31 19:42:47 communist-cookie: entire project Jan 31 19:43:21 communist-cookie: this stuff is covered in that tutorial I gave you. I don't mind helping, but you should go through it to understand the basics of how andriod works. Jan 31 19:44:00 hey anyone understand this error Jan 31 19:44:00 http://pastebin.com/QEUiZQMz Jan 31 19:44:14 I kow it is from my db but I dont understand what is wrong with it Jan 31 19:44:19 know Jan 31 19:44:52 damccull: I am damn sure I will have troubles with Fragments. Jan 31 19:45:27 LoneSoldier728: "order" is an sql reserver word. You are trying to use it as a column name. It's trying to do an ORDER BY operation so it crashing Jan 31 19:45:46 LoneSoldier728: your using the ORDER keyword incorrectly in your SQL Jan 31 19:46:26 ah Jan 31 19:46:31 thanks guys Jan 31 19:46:32 LoneSoldier728: change the name of that column. Like "orderId" or "orderName" or somethign Jan 31 19:46:35 ya Jan 31 19:48:43 damccull: ok, I will do it tomorrow, cause I am going to sleep soon. Jan 31 19:50:06 damccull: I now know that background drawable is not what I am searching for. Jan 31 19:50:45 damccull: I need a buttn to llok like an ordinary button and contain an image and a text. in html :) Jan 31 19:57:03 do i have to add db files into manifest? Jan 31 19:57:17 if so what does it fall under Jan 31 19:57:23 no Jan 31 19:57:34 you just need to write them to the proper place Jan 31 19:57:45 (i.e., the directory returned by the API) Jan 31 19:58:34 hm, like the class has to be in a different directory? Jan 31 19:58:44 class? o_O Jan 31 19:58:52 I wrot the db.java files Jan 31 19:58:58 sorry, thought you meant the actual database file Jan 31 19:58:59 it is in the same spot as my class Jan 31 19:59:23 all the java files get compiled in to your app Jan 31 19:59:44 you just use them as with any normal java app, unless they include activities/services Jan 31 19:59:56 any activities/services, you'll need to put in the manifest Jan 31 20:00:03 plain classes, though, no need Jan 31 20:00:53 hm ok, so it might be a diff issue im dealing with back to the console Jan 31 20:02:57 make sure it's in the same package, or that you otherwise refer to the proper package for it Jan 31 20:13:21 I'm running into a strange problem. I'm trying to use a ViewPager + ActionBar tabs to navigate between some fragments. The first time I load the root fragment, the one that is incharge of populating the ViewPager and setting up the FragmentPageAdapter, it works fine Jan 31 20:14:04 but say I press the back button to go to the previous fragment and then go back to the "details" fragment with the ViewPager, the ViewPager doesn't layout the fragment Jan 31 20:14:22 I debugged it and the adapter isn't called Jan 31 20:15:24 Here is the fragment code http://pastebin.com/xbSvHLZW Jan 31 20:33:09 is there a way to see the whole sqlite db Jan 31 20:33:13 on my phone? Jan 31 20:35:50 LoneSoldier728 if your phone isn't rooted then check out http://stackoverflow.com/a/14686392/1747491 Jan 31 20:36:26 Oooh, neat! Jan 31 20:36:46 I was going to say what to do if you were rooted, but I think you just superseded me. Jan 31 20:37:22 LoneSoldier728 I had to do this awhile back. I am hazy, but I remember I followed that answer, and I know I used android-backup-extractor and sqlitebrowser, both sourceforge projects Jan 31 20:38:19 xalbo yeah, at first I thought I wouldn't be able to without root. then I think that answer helped me Jan 31 20:38:39 my phone i think is rooted? Jan 31 20:38:46 is rooted the same as unlocked? Jan 31 20:39:04 I have dev options up (nexus %) Jan 31 20:39:05 5 Jan 31 20:39:07 LoneSoldier728 to unlock it you would have to root it I think, right? Jan 31 20:39:24 Yeah, so it is unlocked... so is it diff steps? Jan 31 20:39:39 unlocked I think it is pretty simple, just pull it off with adb\ Jan 31 20:39:54 Unlocking the bootloader is necessary but not sufficient for rooting (on a Nexus phone, at least) Jan 31 20:40:41 not sufficient? Jan 31 20:40:50 unlocking the bootloader is sufficient Jan 31 20:41:06 but how does it work exactly adb what about is, open it up in command prompt and do what? Jan 31 20:41:09 if you have selinux/setuid mount issues, that's a different story Jan 31 20:41:25 You also need to actually root it. Install a custom recovery, install an update.zip, etc. Jan 31 20:41:37 don't need to install a custom recovery Jan 31 20:41:50 LoneSoldier728 if you run adb in command prompt you should get a shell to run commands on your phone. you can use that shell to copy from your phone to your computer Jan 31 20:41:56 just fastboot any recovery image that lets you adb shell Jan 31 20:41:57 LoneSoldier728 using unix commands Jan 31 20:42:02 and drop su into /system/xbin Jan 31 20:42:07 done Jan 31 20:43:55 pfn: That would work too. I'm saying that an unlocked bootloader isn't the same as rooting the phone. You're saying that with an unlocked bootloader, it's *easy* to root. That's different from already done. Jan 31 20:44:06 ok Jan 31 20:45:26 Hmm, ok I have a parent view that has an object that has a sub view. When the parent view is drawn, it draws the object, which draws the sub view (don't ask :P) When the sub-view's alpha is set to something other than 1, say, 0.5, it still draws (via subView.draw(canvas)) at 100% alpha… Is there something special I can do to force the subView's alpha (less hacky the better, but it really doesnt matter) Jan 31 20:46:17 I have confirmed that subView.setAlpha(.5 has been called) Jan 31 20:47:30 :U Jan 31 20:48:19 i was really hoping that subView.draw(canvas) sets up *something* so that actually draws to canvas are automatically alpha-scaled Jan 31 20:49:55 can I access the sqlite db from eclipse file explorer if so I think I am looking at my device but dont know where it would be Jan 31 20:50:36 LoneSoldier728 yeah, you are correct. you can get to it through Eclipse. http://stackoverflow.com/a/4452661/1747491 Jan 31 20:52:15 The responses to that say that that doesn't work on a real device (without root) Jan 31 20:53:28 xalbo yeah, he said he thinks he has root Jan 31 20:53:44 xalbo, LoneSoldier if not, you gotta do it through adb and the method I first linked Jan 31 20:55:35 Hmm, I thought I remembered being able to use "run-as" on an unrooted device, but now I can't get it to work. But yes, that first technique should work regardless. Jan 31 21:03:24 To whom it may concern: canvas.saveLayerAlpha(0, 0, canvas.getWidth(), canvas.getHeight(), this.alpha255, Canvas.HAS_ALPHA_LAYER_SAVE_FLAG); this.drawStuff(canvas); canvas.restore(); sets a total alpha draw mask Jan 31 21:03:31 at the cost of additional offscreen drawing Jan 31 21:03:34 but it works ;D Jan 31 21:33:14 I'm trying to set up a service that will look for and record any system calls made, any idea on How to do this? Jan 31 21:46:21 klaw, what do you mean by "system calls" ? Jan 31 21:50:57 nihcam: is there a way i can track things like when an app is opened, closed, etc. ? Jan 31 21:54:20 klaw: you can use adb if you want to record things remotely... on the device, they don't want you to mess with other people's apps unless it's rooted Jan 31 21:56:02 i'm assuming it's rooted Jan 31 21:57:29 klaw, Why do you want a such thing ? Speaking about an app is opening and closing is probably wrong an Android as only Android decide about closing an app. Jan 31 21:59:32 klaw: what exactly are you aiming to do with the information... it still sounds like adb is the right answer Jan 31 22:00:55 I'm in the very early stages of making an app that tries to streamline what Google Analytics allows deleveopers to do. At this point I'm just trying to access some of the information, such as when a button is clicked in an app, etc. Jan 31 22:01:23 I'm assuming this type of information is recorded internally on android Jan 31 22:02:28 I have a list activty, but I also want to show a dialogFragment. I can't extend both ListActivity and FragmentActivity. what should I do? Jan 31 22:03:37 yes, since Jelly Bean it's no longer offered to developers because of malware... read this thread for info: https://groups.google.com/forum/?fromgroups#!topic/android-developers/6U4A5irWang Jan 31 22:07:45 ColinTheShots: so you're saying it can't be done? Jan 31 22:08:58 klaw, rough method but on rooted device you still can run logcat command with Runtime class Jan 31 22:09:20 If the device is rooted, you can probably access the log directly as a file. I wouldn't know where in that case because I don't write software specific to rooted devices. If you really want to offer analytics, you should have developers instrument their apps to send messages to your app. Jan 31 22:10:40 Not every button is treated as a button on Android, for example. The developer would need to tell you what to watch. Jan 31 22:13:11 klaw, I agree with ColinTheShots. The best way to analyse an application is to use a library to notify about each action. Jan 31 22:13:31 It's a cleaner solution than parse logcat output. Jan 31 22:15:18 I have a list activty, but I also want to show a dialogFragment. I can't extend both ListActivity and FragmentActivity. what should I do? Jan 31 22:15:39 I have a list activty, but I also want to show a dialogFragment. I can't extend both ListActivity and FragmentActivity. what should I do? Jan 31 22:16:04 eghdk just extend FragmentActivity and inflate / configure the ListView yourself Jan 31 22:16:06 eghdk, Use an inner class Jan 31 22:17:21 nihcam: ? Sorry, not sure what that is. point me in the right direction? Jan 31 22:17:54 theblang: Configure the listView myself? Jan 31 22:18:49 <|0xD34D|> why not make use of a ListFragment since you are using a FragmentActivity? Jan 31 22:19:21 eghdk, give me more details, do you want a listview in a dialog box or do you want to declare a listactivity and a dialogfragment in the same class ? Jan 31 22:19:27 Well I need to show a fragmentdialog Jan 31 22:21:52 I have a listView, but now when I click something in the listview I want to show a dialogFragment Jan 31 22:21:59 nihcam Jan 31 22:22:50 ok, so just implement your DialogFragment IN the ListActivity Jan 31 22:23:23 like DialogFragment myDialog = new DialogFragment() { // overrides here }; Jan 31 22:23:24 I'm trying but this line ` FragmentManager fm = getSupportFragmentManager();` says undefined in eclipse Jan 31 22:23:50 which platform are you targeting for ? Jan 31 22:24:47 api level 8 and higher Jan 31 22:24:55 erm… 10 sorry Jan 31 22:25:28 ok, so Support library is needed for fragment. Jan 31 22:25:46 eghdk ahh yeah, you need the support library, targeting 10 myself Jan 31 22:25:55 <|0xD34D|> and FragmentActivity is needed to use getSupportFragmentManager Jan 31 22:26:07 I have the support library, and I imported import android.support.v4.app.FragmentManager; Jan 31 22:26:18 hey ivali Jan 31 22:26:22 eghdk, do you import support library correctly in Eclipse ? Jan 31 22:26:24 are you romanian? Jan 31 22:27:02 nihcam I would think he did if it is letting him import android.support.v4.... right? Jan 31 22:27:32 <|0xD34D|> right but he is using a ListActivity which doesn't have getSupportFragmentManager ;) Jan 31 22:27:33 nihcam: yes, it is correct. I'm using it in other parts of the app. Jan 31 22:28:19 Whats the best solution? Not only in this situation, but in future applications. If I need to extend "two" activities. Jan 31 22:28:24 eghdk yeah, which goes back to what I said, just use FragmentActivity and implement the ListView yourself Jan 31 22:28:36 |0xD34D| I meant Jan 31 22:28:44 <|0xD34D|> eghdk: if you are not using fragments why not use a basic Dialog instead of a DialogFragment Jan 31 22:29:38 Because I'm using a dialog that has button and a text field and such. Jan 31 22:29:41 eghdk, from OOP, you never need to extends to class. It is a misconception. Jan 31 22:30:02 <|0xD34D|> eghdk: you can inflate a dialog with different layouts Jan 31 22:30:10 <|0xD34D|> you could also use an AlertDialog Jan 31 22:30:45 I asked on here before "whats the best kind of dialog to use if I want button and edit text in one" and I got the response of dialogFragments. Jan 31 22:31:13 eghdk ehh, that is only if you are already using fragments. if you aren't using fragments for your core application I would just stay away Jan 31 22:31:22 <|0xD34D|> if you are already using fragments and have an activity that supports fragments then yeah use DialogFragment Jan 31 22:32:29 i have an ssl certificate that fails to validate on android 2.3.x, but works fine on 4.x (also works fine in the 2.3.x browser), can someone point me in the right direction to figure out wtf is going on? Jan 31 22:32:30 eghdk we actually released the first couple versions of our app with no fragments. of course now we are working on a refactor, since fragments are really needed for tablet optimization, and have a lot of benefits. but IMO, they are quite tricky too Jan 31 22:33:47 |0xD34D|: so how would I go about displaying a list in a FragmentActivity Jan 31 22:33:54 theblang: they're not REALLY bad once you get used to thenm Jan 31 22:34:04 eghdk: use a listfragment :D Jan 31 22:34:04 <|0xD34D|> eghdk: make use of ListFragment Jan 31 22:34:08 damccull yeah I know, once you get used to them Jan 31 22:34:17 damccull the get used to them part is tricky at first Jan 31 22:34:18 <|0xD34D|> there is a ListFragment in the support lib Jan 31 22:34:27 theblang: yeah it's like wrapping your head around android for the first time. except again. Jan 31 22:34:34 damccull very well said Jan 31 22:34:46 damccull: But I don't want to use a listFragment? Jan 31 22:35:01 eghdk: why not? you wanted a list in a fragment Jan 31 22:35:16 No I don't. Sorry for the mis interpretation. Jan 31 22:35:16 listfragment does it. that's its whole entire job Jan 31 22:35:19 <|0xD34D|> think of a ListFragment as the analog to a ListActivity when using fragments Jan 31 22:35:27 eghdk yeah, what they said Jan 31 22:35:35 I have a listActivity, when you click a list item a dialogFragment shows. Jan 31 22:35:42 oh Jan 31 22:35:46 eghdk but again, if you aren't using fragments, why are you so stuck on a dialogFragment? Jan 31 22:35:59 <|0xD34D|> dejavu Jan 31 22:36:00 ok, so what do you want to do then? Jan 31 22:36:50 I have a listActivity that shows a listView. onItemClick I want to show a dialogFragment. I can't use dialogFragment because I'm extending listActivity Jan 31 22:37:01 <|0xD34D|> so don't use DialogFragment Jan 31 22:37:07 lol. Jan 31 22:37:15 <|0xD34D|> use a damn Dialog or build one using an AlertDialog.Builder Jan 31 22:37:15 you should be able to use dialogfragment Jan 31 22:37:25 But it handles everything I need, as well as another portion of my app uses the dialog fragment. Jan 31 22:37:35 seems silly to do something different and duplicate my code Jan 31 22:37:45 <|0xD34D|> then use an activity that supports fragments so you can use it Jan 31 22:37:50 eghdk then change your ListActivity to a ListFragment like damccull and |0xD34D| mentioned earlier Jan 31 22:37:59 eghdk: am I understanding from backscroll that your listactivity doesn't have access to FragmentManager? Jan 31 22:38:10 <|0xD34D|> ding ding ding Jan 31 22:38:12 FragmentManager fm = getSupportFragmentManager(); Jan 31 22:38:12 gives me error in listActivity Jan 31 22:38:16 ok so do this: Jan 31 22:38:31 1) Change listactivity to FragmentActivity Jan 31 22:38:35 Yep. Jan 31 22:38:36 2) Implement the list as a layout Jan 31 22:38:41 3) use dialogfragment Jan 31 22:39:03 I'm not sure how to do number 2. Jan 31 22:39:13 literally the only difference between Activity and ListActivity is that the latter has a list in it for you Jan 31 22:39:23 You just create a layout xml file that includes a list Jan 31 22:39:27 ListView Jan 31 22:39:33 Oh… I was doing that anyway. Jan 31 22:39:37 hook that listview to your adapter instead of the listactivity listview Jan 31 22:39:56 getListView() is giving me an error. Jan 31 22:40:06 fragmentactivity and activity don't have getListView Jan 31 22:40:11 you'll have to implement that yourself Jan 31 22:40:16 what would I use? Jan 31 22:40:17 all it does is return mListView; Jan 31 22:40:32 make the same method on your FragmentActivity Jan 31 22:40:35 why do you think you can't use dialogfragment in a listactivity? Jan 31 22:40:51 public ListView getListView() { return mListView; } Jan 31 22:41:11 Zharf: prior to 3.0 listactivity doesn't support fragments Jan 31 22:42:04 damccull: Cool. I didn't know that's all getListView did… but now mListView is giving me an error. Jan 31 22:42:09 eghdk: then in your constructor, mListView = this.findViewById(R.id.listviewId) Jan 31 22:42:12 well no one said (recently) anything about targeting useless versions Jan 31 22:42:24 eghdk: constructor == onCreate(), sorry Jan 31 22:42:29 and please please please for the love of everything stop prefixing things with 'm' -.- Jan 31 22:42:32 it's horrible Jan 31 22:42:34 :p Jan 31 22:42:38 Zharf: _listView ? ;) Jan 31 22:42:38 Zharf THANK YOU Jan 31 22:42:54 damccull, well, stop prefixing things with random characters, it's useless Jan 31 22:42:56 :) Jan 31 22:43:09 Zharf: Why? I thought that meant member variable if you prefix with an m Jan 31 22:43:09 I just use something like that to internally mark private members. For my convenience Jan 31 22:43:10 Zharf, damccull what about _mListView, muhahaha Jan 31 22:43:16 theblang: lol Jan 31 22:43:18 <|0xD34D|> mYeah mWhat mHe mSaid Jan 31 22:43:33 eghdk yeah, it is a standard to do that in Android, but noone realy follows it Jan 31 22:43:34 eghdk, it's member variable even without the m, so what purpose does the m serve? Jan 31 22:44:08 Zharf: it's just a contextual marker for coders. To help YOU and your fellow coders easily identify what it is without having to look for its definition. Jan 31 22:44:20 damccull, use an IDE that doesn't suck Jan 31 22:44:22 there Jan 31 22:44:23 eghdk I shouldn't say noone. all of the Android and Google code you fine will prefix member variables with m, but I hate it, and have found a lot of other people who feel the same Jan 31 22:44:30 When working with unfamiliar projects or lots of variables it can get confusing ;) Jan 31 22:44:48 there's this thing called syntax highlighting with colours Jan 31 22:45:14 any proper IDE will give different colours to member variables and local variables Jan 31 22:45:24 or vim Jan 31 22:45:30 Zharf: glad you feel that way. I like it. Jan 31 22:46:28 mCrap mJust mMakes mEverything mHard mTo mRead mAnd mEverything mUnder mThe mSame mLetter mWhen mTrying mTo mSort mThem Jan 31 22:46:45 it's almost as bad as hungarian notation Jan 31 22:46:49 <|0xD34D|> read that sentence just fine Jan 31 22:47:07 Zharf: why not both? Jan 31 22:47:12 kevlarman, -.- Jan 31 22:47:13 * kevlarman ducks Jan 31 22:47:17 you're evil Jan 31 22:47:28 Zharf: my brother used to actually do that Jan 31 22:47:38 and systems hungarian at that Jan 31 22:47:46 apps hungarian was sensible ;P Jan 31 22:47:50 Zharf: my ide lets me type letters in a row that are noncontiguous in the variable names, and yet still recognizes them. Why do I care if they start with the same letter? Jan 31 22:47:53 it took multiple lisp courses at berkeley to undo the brain damage caused by visual basic Jan 31 22:48:14 I'm back! More problems. setListAdapter() and onListItemClick have errors. Jan 31 22:48:25 damccull, because it's pointless, it provides absolutely no value Jan 31 22:48:37 Zharf: to you. For me, I find much value in it ;D Jan 31 22:48:46 well you're a horrible person then Jan 31 22:48:56 orly? Jan 31 22:49:12 eghdk: that's nice. What are they? :) Jan 31 22:49:17 hey ivali Jan 31 22:49:40 setListAdapter is undefined Jan 31 22:51:10 <|0xD34D|> listView.setAdapter(adapter); Jan 31 22:53:55 Ah. Yes. Jan 31 22:54:00 eghdk: you're trying to use convenience methods that listactivity has built in. You need to either write them yourself, or just use the listview directly. The convenience methods just wrap the listview methods anyways, so might as wellu se it directly. Jan 31 22:54:33 Got it. Jan 31 22:54:57 So my last error are on ListItemClick The method onListItemClick(ListView, View, int, long) of type ConvoDetailActivity must override or implement a supertype method Jan 31 22:55:46 there's also listfragment, if you really want to use the "convenience" methods Jan 31 22:55:49 :) Jan 31 22:56:01 <|0xD34D|> we've been over that ;) Jan 31 22:56:04 <|0xD34D|> unfortunately Jan 31 22:56:34 why don't people actually learn java before trying to do something on android... Jan 31 22:56:42 <|0xD34D|> that's no fun Jan 31 22:57:17 it's no fun trying to kickstart people into android dev either if they don't have any idea about development in general :) Jan 31 22:57:40 <|0xD34D|> tell them to use PhoneGap and go their IRC channel Jan 31 22:57:53 eghdk: now that you're using FragmentActivity with a list anyways, why not a listfragment? Jan 31 22:57:59 I would never be that cruel to anyone! Jan 31 22:58:03 <|0xD34D|> I would Jan 31 22:58:10 <|0xD34D|> if it saves my sanity Jan 31 22:58:15 :) Jan 31 22:58:17 <|0xD34D|> what little I have left Jan 31 22:59:21 eghdk: your onlistitemclick probably has the wrong signature now that you're using a different setup. Copy the code from it, delete it, and let your IDE regenerate that override for you, the paste code back in Jan 31 22:59:29 or manually fix the signature to match Jan 31 23:01:55 hi, i have this code (manifest+java class): https://gist.github.com/ThiefMaster/37fc53a3e568c8f4d134 - after installing that app i tried accessing foo://bar (via chrome), but nothing happens. shouldn't android show me the "open this using app x/y/z" dialog or, since nothing else handles that url, run my app's code directly? Jan 31 23:01:55 |0xD34D| lol Jan 31 23:03:34 damccull: I tried but that I start typing onLi and nothing comes up like it usually does Jan 31 23:03:55 listview.setOnListItemClick Jan 31 23:04:12 once again, convenience stuff Jan 31 23:06:48 I was doing this… @Override Jan 31 23:06:48 public void onListItemClick(ListView l, View v, int position, long id) { Jan 31 23:06:48 super.onListItemClick(l, v, position, id); Jan 31 23:06:51 ThiefMaster, I don't think that would be sent as a broadcast.. Jan 31 23:07:04 So now, I should move my onListItemClick code into onCreate method? Jan 31 23:07:21 Zharf: hmm, how else would i do it? (i'm not very familiar with android development) Jan 31 23:08:56 ThiefMaster, you can start an activity... Jan 31 23:10:00 damccull: mListVIew.setOnListItemClick is invalid. Jan 31 23:10:56 eghdk, do you know anything about java at all? Jan 31 23:11:41 I try. Jan 31 23:11:44 That is all Jan 31 23:12:42 eghdk: make a new anonymous class inside the method with your code Jan 31 23:12:52 Okay,found a different method. setOnItemClick Jan 31 23:12:57 Think that should work? Jan 31 23:13:00 I thin kyou should try to take it slower and understand smaller chunks at a time... these problems you're having should be even easier than trivial to figure out :) Jan 31 23:13:12 something like: listView.setOnListItemClick(new OnListItemClickListener() { //code }); Jan 31 23:14:21 eghdk: having not look at the documentation for ListView in a long time (and not doing it now), I have no idea what the actual names of the methods are. Your IDE should fill you in, and your brain should make an educated guess. Or you could read d.android.com Jan 31 23:18:38 Yep thanks. I will read the documentation tomorrow. Jan 31 23:18:56 thanks damccull! Jan 31 23:20:05 np Jan 31 23:20:36 eghdk: d.android.com should always be your first stop. Following that, google tutorials. Following that, ask irc ;) Jan 31 23:20:50 I'm assuming you guys have seen this? https://android.googlesource.com/platform/build/+/08d410f53249c18d752f56a881ed2335403080d4%5E!/ Jan 31 23:21:05 eghdk: this is the friendliest irc community I've ever seen, and they help out a lot of people a lot of times. BUt it's polite to use all your resources before asking someone to solve your issue :) Jan 31 23:22:15 OmegaVesko: art becoming default so soon? Jan 31 23:22:19 Zharf: ok, gave it a try with an activity (https://gist.github.com/ThiefMaster/37fc53a3e568c8f4d134) - still doesn't work :/ Jan 31 23:22:27 damccull: Yeah, apparently Jan 31 23:23:09 how long does it take to build AOSP -kitkat? thanks friendly people Jan 31 23:23:49 nick9998, hours Jan 31 23:24:40 <|0xD34D|> nick9998: it varies Jan 31 23:24:51 nick9998: It varies depending on your setup, but it does take quite a while (hours) Jan 31 23:24:57 can i build a sub-component only, in my case, AudioFlinger Jan 31 23:25:00 ? Jan 31 23:25:04 <|0xD34D|> yes Jan 31 23:25:25 sweet, do i use ndk-build or make, or something else, from that subfolder? Jan 31 23:26:55 <|0xD34D|> cd into the directory and run mm Jan 31 23:27:01 nick9998: usually takes me about 6 hours Jan 31 23:27:07 <|0xD34D|> "mm: Builds all of the modules in the current directory." Jan 31 23:27:34 cool, thanks i will give a try! Jan 31 23:27:36 <|0xD34D|> so to build AudioFlinger cd into frameworks/av/services/audioflinger and type mm Jan 31 23:27:46 <|0xD34D|> make sure you ran '. build/envsetup.sh' first Jan 31 23:28:16 right Jan 31 23:28:36 <|0xD34D|> I build single modules all the time when I just want to test a change in that module Jan 31 23:28:43 Okay, so having a tough time debugging a "could not find a method" error. I have a view in my layout with onClick="doThis" and I definitely have a method doThis(View view) in my activity. Jan 31 23:28:54 <|0xD34D|> nick9998: you may need to run mma instead of mm so it builds dependencies Jan 31 23:29:14 <|0xD34D|> assuming you have not built the entire system Jan 31 23:29:27 OmegaVesko: what are you compiling on? your phone? Jan 31 23:29:34 hours seems way too long Jan 31 23:29:55 <|0xD34D|> dual core 2GB RAM ;P Jan 31 23:30:07 evanc: To be fair, it's been.. well over a year since I've tried to compile AOSP entirely Jan 31 23:30:13 It definitely took ages though Jan 31 23:30:16 haha okay Jan 31 23:30:37 yeah over a year for me as well, but it did take a few hours on an i7 Jan 31 23:32:03 it still takes hours. Jan 31 23:32:30 not surprised Jan 31 23:34:46 mm, never knew Jan 31 23:34:52 I always make local_module_name Jan 31 23:35:38 ThiefMaster, yeah I'm not sure if chrome gives foo:// out to other apps, it seems to just do a google search :) Jan 31 23:36:19 Zharf: i tried it with , too Jan 31 23:39:54 has anyone had any luck with code coverage Jan 31 23:40:05 ThiefMaster, my device logs say nothing about chrome throwing out any kind of intents Jan 31 23:40:10 it seems to keep them local Jan 31 23:40:31 hm but why does it open e.g. the wikipedia app when i open a wikipedia url? that surely must be done using intents, too? Jan 31 23:41:52 hate dev some times.. all of a suddent my listView doesn't want to display Jan 31 23:42:12 revert back to an ealier commit were it was working and it still doesn't work Jan 31 23:42:17 ThiefMaster, https://developers.google.com/chrome/mobile/docs/intents Jan 31 23:44:07 why would I get this error when ID is the primary key? Failure 19 (PRIMARY KEY must be unique) on 0x20bf00 when executing 'update Tender set synced=1 where ID in (2,3) and location = '28';' Jan 31 23:44:10 hm ok, apparently there's a difference between typing an url and clicking a link, even if both "contain" the same url :x Jan 31 23:46:41 holy crap that chrome takes way too much space Jan 31 23:46:47 75MB... -.- Jan 31 23:46:58 uninstall.... Jan 31 23:47:48 Zharf: might i recommend galeon Jan 31 23:47:56 probably not ;) Jan 31 23:48:05 lol Jan 31 23:48:06 I don't really browse the internet on my droid at all Jan 31 23:48:24 I just installed chrome to test ThiefMaster's scenario Jan 31 23:50:13 ah ok Jan 31 23:50:55 but I'm generally picky about applications taking too much space Jan 31 23:51:05 that's why I installed a dummy gms Jan 31 23:51:12 is there a reason that HttpURLConnection would always return -1 from URLConnection.getContentLength() aside from the content-length header not being sent from the server? Jan 31 23:53:08 I've got a rails server that returns that header when I try to use CURL to make the requests I make in my app Jan 31 23:53:24 but every time I actually call URLConnection.getContentLength(), it fails Jan 31 23:57:34 by "fails", I mean that it returns -1 Jan 31 23:58:34 Zharf you can only install dummy gms if you have root, right ? Jan 31 23:58:58 g00s, no clue, but I do have root, yes Feb 01 00:04:36 http://www.androidpolice.com/2014/01/31/bug-watch-several-nexus-devices-have-trouble-connecting-to-5-ghz-wi-fi-access-points/ Feb 01 00:04:42 yeah, no effing shit Feb 01 00:05:19 my 2013 N7 has -20db sensitivity in the 5G band over 2.4 Feb 01 00:05:20 hey so the file explorer went missing how do i find it again for my device Feb 01 00:05:23 So I have a ScrollView > Linear Layout > EditText Feb 01 00:05:44 if the EditText has a popup error box, the scrolling is very erratic when you try to scroll past it Feb 01 00:07:22 yay, everything now works like it should :) Feb 01 00:08:18 (the point of my app is to intercept those retarded l.php dereferer links the facebook app uses although they make zero sense.. i was always annoyed by them opening a browser just to end up in another app a moment later after the redirect) Feb 01 00:08:41 i lost the file explorer tab (closed it) how do i find it again Feb 01 00:09:01 nvm found it Feb 01 00:09:15 ThiefMaster, better solution is to drop fecesbook completely ;) Feb 01 00:11:02 ThiefMaster, so they can track what intents you use?:P Feb 01 00:12:00 why the hell cant i call log in a oncreate or onclick class? Feb 01 00:12:06 or method i should say Feb 01 00:12:39 define: can't call log Feb 01 00:12:59 g00s, I've been connecting to 5ghz on my nexus 7 since I got int in july, works fine Feb 01 00:13:04 I am trying to call Log.e('error', 'it is error-ing here'); Feb 01 00:13:19 to see if a specific spot is being hit Feb 01 00:13:27 but it keeps telling me invalid constant Feb 01 00:13:51 invalid character constant Feb 01 00:14:50 ah ok in onclick it works nevermind but in on create is there a reason? Feb 01 00:14:53 " not ' ? Feb 01 00:15:01 i dunno :p Feb 01 00:15:27 erm, not C Feb 01 00:16:04 pfn i haven't Feb 01 00:16:10 LoneSoldier728: single quotes are for chars only Feb 01 00:16:19 well, i connect, but the connection drops Feb 01 00:16:19 you need to put your log strings inside double quotes Feb 01 00:16:45 pfn leeds and i have the same problem too, as well as the folks in the article Feb 01 00:17:01 ah, i was right :D Feb 01 00:17:32 dunno, looks fine for me Feb 01 00:17:38 oh really? Feb 01 00:17:46 my other devices on 5G are fine Feb 01 00:18:12 thank you never knew that Feb 01 00:19:28 5g exists only at one place Feb 01 00:20:09 in my mind Feb 01 00:20:38 nah one country is researching it Feb 01 00:20:45 its hella faster than 4g. Feb 01 00:23:46 can i set an onclicklistener on a textview Feb 01 00:23:58 I am assuming yes Feb 01 00:24:00 what countery is that Feb 01 00:26:39 I have a for loop that logs each result, but when I include TextView x = new TextView(); Feb 01 00:26:56 it does not create the textviews am I suppose to call something else too? Feb 01 00:45:54 XXCoder1: Japan, no? Feb 01 00:46:23 don't think so a sec Feb 01 00:46:24 is there a way to make a header or something like for example if they click on this text it takes them to a page with the id of the text so the info can be pulled up/queried Feb 01 00:46:46 word/ij43kjs3 Feb 01 00:47:00 jackyalcine: http://www.cellular-news.com/story/64048.php Feb 01 00:47:03 but I only have a word activity screen but it is like word/:id Feb 01 00:47:19 * jackyalcine opens the black hole Feb 01 00:47:34 AHH Feb 01 00:47:36 close enough Feb 01 00:47:37 lol Feb 01 00:57:59 lol Feb 01 01:39:09 anyone have experience with IAP while in alpha/beta testing? Feb 01 01:39:13 my IAP was prepended with Test: Feb 01 01:39:27 trying to make sure this is because its in alpha/beta testing and that i didn't screw something up lol Feb 01 01:57:00 so anyone know how to work with object id Feb 01 01:57:01 s **** ENDING LOGGING AT Sat Feb 01 02:59:58 2014