**** BEGIN LOGGING AT Sat Sep 22 02:59:59 2012 Sep 22 04:16:14 got my custom simplecursoradapter working. It really did turn out to be the case sensitivity. Otherwise it would have worked first try. :) Sep 22 04:32:11 hello all Sep 22 04:44:11 im building a contact manager for android, each contact has a reziable list of "contact items" such as address of a phonenumber..... what is the best way to store this data so it will be fast to access and view contact data... sql database? or maybe store and read in xml files? Sep 22 04:48:07 tech1_: i'm assuming that they way the contacts app does it already would be the best way Sep 22 04:48:46 how does it do it? Sep 22 04:49:16 no idea. its open source, you can look at it Sep 22 04:49:19 sqlite i believe Sep 22 04:49:28 cool ill look thanks Sep 22 04:50:04 tech1_: https://github.com/android/platform_packages_apps_contactspage Sep 22 04:50:09 *https://github.com/android/platform_packages_apps_contacts Sep 22 04:50:49 thanks Sep 22 05:06:31 Hi! Sep 22 05:06:51 this swipe example is screwed up -- http://developer.android.com/training/implementing-navigation/lateral.html#horizontal-paging -- it just FAILS Sep 22 05:07:46 do they bother to check examples ? Sep 22 05:08:51 how does it just FAIL? Sep 22 05:12:12 does';t set content view, and doesn't call super.onCreate Sep 22 05:58:31 Evening Sep 22 06:13:17 hi Sep 22 06:14:08 just started trying to do some android dev, but having some troubles with notifications. I'm sending one with the same code that I'm seeing in the dev guide, but the notification isn't appearing in the status bar on the virtual device Sep 22 06:15:46 anyone still awake? Sep 22 06:15:48 I have a button set up to call a sendNotification(View view) method, Sep 22 06:15:55 but it's not working Sep 22 06:17:11 i'm trying to change a textview from a remoteview, http://pastebin.com/ktu0RVTr Sep 22 06:17:18 anyone able to see what i'm doing wrong? Sep 22 06:22:18 http://pastebin.com/AVw4NYPX this is my sendNotification method Sep 22 06:22:32 and i have a button in the app calling it with onClick Sep 22 06:22:51 I see the "About to send notification" in the log, but the notification never appears in the AVD Sep 22 06:22:56 I have no idea why. Sep 22 06:25:15 any thoughts would be helpful Sep 22 06:27:27 pole`: you're not setting an icon Sep 22 06:27:35 you have to set an icon for notificationmanager to show it Sep 22 06:27:52 aha Sep 22 06:27:56 ok Sep 22 06:28:22 i dont think the docs say that, and i dont see any logs about it :/ Sep 22 06:28:23 I wish NotificationBuilder{,Compat} would throw an IllegalStateException if you tried that Sep 22 06:28:30 instead of an easy-to-miss log message Sep 22 06:29:05 whats the message?? Sep 22 06:29:18 i dont see anything in logcat about it Sep 22 06:29:28 something about icon==0 Sep 22 06:29:51 ok ill look thanks Sep 22 07:52:05 finally released my first app: https://play.google.com/store/apps/details?id=com.cygery.lichtwecker Sep 22 07:52:45 all feedback is appreciated :) Sep 22 08:00:31 hey guys. Does anyone know if there is a channel for google checkout problems? Sep 22 08:00:48 i can't create a freakin' checkout account, and i'm getting frustrated Sep 22 08:01:02 and google groups are lame. No one helps you over there ... Sep 22 08:49:03 Is there any sensible way to have a separate cookiehandler per HttpURLConnection? Sep 22 08:49:27 what? Sep 22 08:49:42 n/m.. not sure what a cookiehandler is Sep 22 08:49:51 http://developer.android.com/reference/java/net/HttpURLConnection.html Sep 22 08:51:20 Hey guys, I have been looking over on downsampling bitmaps in Android. I have came across Bitmap.createScaledBitmap() to many complex algorithms along the search in SOF and many blogs. But I still wonder, which method is the best/optimal and just works fine without any issues. Can someone give me some suggestions on this? Thanks in Advance Sep 22 09:11:10 hi! anybody there? Sep 22 09:11:18 Tobias, why do you want a separate handler? Sep 22 09:11:20 Tobias| Sep 22 09:12:17 anyone can recommend a link on how to download a binary file in android? the code(s) I'm using are corrupting the file Sep 22 09:12:34 s/android/java/ Sep 22 09:12:36 and gogle Sep 22 09:12:37 +o Sep 22 09:13:15 Snuffel: well, well Sep 22 09:13:35 I wonder if anyone knows such code by heart Sep 22 09:13:39 everyone googles Sep 22 09:13:44 so good luck Sep 22 09:14:00 Snuffel: if you re-read my question I didn't ask for that Sep 22 09:14:23 napster: i recommend you look into some general pages on it.. Sep 22 09:16:23 hi, i send data to server but I do not want to lock User Experience with Dialog but I want the 'user can change screen. How do I notify you that the server has received? Not Notification but in a new Activity Sep 22 09:19:11 jaggz: I want to scrape data from multiple accounts on a site routinely Sep 22 09:20:42 you want to separate them for... security? Sep 22 09:22:41 I don't have a full picture of the problem (and am new to android)... when the server sends the cookie it sends it along with the webpage.. does android separate that into different handlers so the http request data comes in one handler, and the cookie in another? Sep 22 09:23:22 normally a server sends out Cookie: cookie data here ... Other HTTP headers... \n\n webpage/data Sep 22 09:23:54 then the client, which received that, only sends back cookies relevant to a visited URL/URI Sep 22 09:24:29 is this all off-target and useless? :) Sep 22 09:26:07 Hey guys, I'm working on a new app that will include both a server and p2p, the server will be in charge of keeping a job list and handle p2p connections (will tell a certain user that there is some1 who wants to connect to him and inform him to set up the connection) - in order to do so I will need to keep a list of all the phones that have my application installed, I'm wondering what is Sep 22 09:26:07 the best way to make and keep such list... Sep 22 09:26:24 hello!, i am growing crazy with justified textview with html support xD Sep 22 09:26:42 can anyone point me somewhere? Sep 22 09:26:43 -_- Sep 22 09:28:34 jaggz: I don't want each account to have to sign in every connection Sep 22 09:28:46 I'd rather sign in with one account, scrape, switch cookie jar, sign in with another account, scrape, switch cookie jar, etc. Sep 22 09:29:08 Then in later repetitions I wouldn't need to sign in Sep 22 09:30:38 I think I have a bit better picture of the conflict Sep 22 09:35:31 I don't understand.. can't you just put() the ones you want in for your particular request? Sep 22 09:35:47 where's the conflict? Sep 22 09:37:39 You can, for every request :( Sep 22 09:37:51 Though that's less convenient than each client having its own cookie jar Sep 22 09:39:49 jaggz: General pages means? I have atleast 5 solutions to do bitmap scaling at the moment. Some uses Matrixes, some use bitmap options, some uses methods from Bitmap classes, and some operates on Inputstreams, some preserve aspect ratio, some does not. :) Sep 22 09:40:27 I wonder which is the optimal way to do a scale bitmap operation. Sep 22 09:42:38 napster: what's wrong with createScaledBitmap? Sep 22 09:43:08 sampullman: 1. It does operate on an existing Bitmap, 2. It does not preserve aspect ratio Sep 22 09:43:10 well, you usually don't want each URL/URI to have its own cookie jar -- usually you want the client's cookie management handle that. You'd have to switch these "cookie jars" .. so that would be the equivalent of setting the cookies.. you might want to ask a bit more or research more, but otherwise perhaps you basically have to implement your own "cookie jar" and set it for each account's URI calls.. remember this is largely c Sep 22 09:43:11 oming from my inexperience in android coding :) Sep 22 09:44:31 napster: matrix transformations then Sep 22 09:45:05 setScaleType/setImageMatrix for ImageViews Sep 22 09:45:27 hello Sep 22 09:45:33 got a small android deving problem: Sep 22 09:45:38 i created a second activity, which i can successfully switch to Sep 22 09:45:50 but for some reason an icon with the activity's name shows up in the main menu Sep 22 09:46:00 and i can launch it directly from there :/ Sep 22 09:46:03 am i doing something wrong? Sep 22 09:46:50 ZNickq: do you have..two icons that show up in the main menu? Sep 22 09:46:58 yes Sep 22 09:47:11 never happened before >.> Sep 22 09:47:32 i got MainMenu, which opens the main menu, and for some reason ViewList, the second activity Sep 22 09:47:57 sampullman: So you suggest matrix based scaling over the other options? Sep 22 09:48:05 i'm using a jelly bean avd btw Sep 22 09:48:46 ZNickq: must be an emulator bug, or you made another app or something Sep 22 09:48:54 uninstall then reinstall Sep 22 09:49:04 mmmk Sep 22 09:49:08 i'll just ignore it for now Sep 22 09:49:15 will see if it happens when i put it on my s2 Sep 22 09:49:17 napster: as opposed to what? doing it manually? Sep 22 09:49:41 matrix operations work fine for me Sep 22 09:49:47 thanks for the help :D Sep 22 09:50:01 sampullman: no other option I see is this : https://gist.github.com/3765701 Sep 22 09:50:05 ok Sep 22 09:51:10 napster: i see, so it's just a one time thing? Sep 22 09:51:36 I see a few alternatives as well, my scenario is that I have an InputStream and I need to preserve the aspect ratio while doing a memory optimized bitmap scaling. Sep 22 09:51:43 sampullman: ^^ Sep 22 09:51:53 gotcha Sep 22 09:52:03 so you don't want to load the whole bitmap into memory Sep 22 09:52:38 no I dont' want to load it unscaled into memory, (I think, why should I? ;)) Sep 22 09:52:57 well, if it's not a risk of causing an oom error, who cares? Sep 22 09:52:57 that is one problem with createScaledBitmap Sep 22 09:53:12 hmm, pretty fine Sep 22 09:53:57 but, still as I say, I was wondering which is the best considering all the factors in my use case. Sep 22 09:54:07 s/say/said Sep 22 09:54:28 well, could you possibly use too much memory? Sep 22 09:54:53 sampullman: possibly, if the image picked by the user is too huge Sep 22 09:57:18 if it's really that worrisome, something similar to the decodeFile method you linked too would be good Sep 22 09:57:36 hmm, ok Sep 22 09:58:12 you might have to modify it Sep 22 09:58:16 check this out http://stackoverflow.com/questions/2641726/decoding-bitmaps-in-android-with-the-right-size Sep 22 09:59:34 ok sampullman Thanks :) Sep 22 10:00:24 no problem, im actually working on some similar stuff Sep 22 10:01:29 nice Sep 22 10:09:35 ok, i give up, anyone know why this would throw a NPE: http://hastebin.com/bokulisume.avrasm Sep 22 10:10:11 at android.widget.ArrayAdapter.createViewFromResource Sep 22 10:10:32 the internet tells me that R.id.srlist is wrong, but i use it a few lines above and it works, so i don't see how that's possible -.- Sep 22 10:10:38 what line of your code Sep 22 10:10:41 breaks it Sep 22 10:15:57 none sampullman Sep 22 10:16:03 the stack trace doesn't contain my code Sep 22 10:16:18 http://hastebin.com/jifitumide.avrasm Sep 22 10:16:59 xml is wrong, then Sep 22 10:17:44 there was an issue inflating a list item Sep 22 10:18:15 try subbing the ones google provides, to see if it works Sep 22 10:18:35 ArrayAdapter(this, android.R.layout.simple_list_item_1, Sep 22 10:18:35 android.R.id.text1); Sep 22 10:19:09 if that works, you know where your issue is Sep 22 10:22:22 hi folks Sep 22 10:23:33 having trouble where I have some TEXTVIEW's which wont display the correct data... cant find out why but its like it doesnt recognise the R.id..... Sep 22 10:23:58 any issue with eclipse on this? Sep 22 10:24:58 log.d shows the correct info... but the textviews show different data Sep 22 10:25:38 and the textviews are assigned the correct R.id Sep 22 10:30:56 That seems to be it sampullman Sep 22 10:31:01 removing the vaulues fixes it :/ Sep 22 10:42:42 anyone can help with my issue? Sep 22 10:43:30 madmcphil: show code! Sep 22 10:43:45 http://pastebin.com/gxPW2vGB Sep 22 10:45:08 its like the R.id's arnt matching... the data is correct in the log.d but the results shown on screen are incorrect Sep 22 10:45:20 very wierd Sep 22 10:48:22 madmcphil: don't you want R.string for a TextView? Sep 22 10:49:34 sorry Sep 22 10:50:13 I am using r.id. then I have all my stings in the strings.xml which I update programatically when required Sep 22 10:50:20 how to get url from HttpResponse or how to disable following redirects? Sep 22 10:50:36 madmcphil: update strings ? Sep 22 10:50:44 you mean you change them to different ones ? Sep 22 10:50:50 yep Sep 22 10:50:54 ok Sep 22 10:51:36 so why are you changing text in code Sep 22 10:51:42 by setText Sep 22 10:51:46 the StartedResult doesnt even show..it just shows what in strings.xml. and the others show incorrect data Sep 22 10:51:50 while you want to have text from R file Sep 22 10:51:52 yeah setText Sep 22 10:52:04 but the log.d shows correct info Sep 22 10:53:22 I'm confused now Sep 22 10:53:30 yeah me too Sep 22 10:53:32 lol Sep 22 10:53:42 you want to have textview with string from your string.xml file Sep 22 10:53:51 which is updated Sep 22 10:53:56 to a new value Sep 22 10:54:00 but in code you're finding controls and change the string to new value Sep 22 10:54:11 yep Sep 22 10:54:23 so in the end which value do you have ? on screen Sep 22 10:54:32 the one from xml or the one from code Sep 22 10:55:16 right....startedResult doesnt even show... currentResult is correct and targetResult is showing a different number altogether Sep 22 10:55:22 its very odd Sep 22 10:57:21 you think its possible the R.id's have all gone a bit wrong Sep 22 10:57:40 I dont think so Sep 22 10:57:49 try to clean and build project once again Sep 22 10:57:54 but I dont think thats the case Sep 22 10:58:06 done that a couple of times with exact same results... Sep 22 10:58:18 madmcphil: sorry I hadn't noticed your pastebin, what type is startWeight/targetWeight - I presume an int? Sep 22 10:58:27 String Sep 22 10:58:48 they were an int... but I have Integer.parsed them Sep 22 10:58:59 in the method Sep 22 10:59:37 and the method is returning the correct results shown in log.d Sep 22 11:00:08 just when I put the String value to my R.id.... weird results are coming up Sep 22 11:00:39 never happened like this before Sep 22 11:00:39 so what gets shown in the TextView when you're calling setText? Sep 22 11:01:29 soo Sep 22 11:01:57 my app crashes when i try to set a listview's contents Sep 22 11:02:00 for startingResult I get what in my strings..so it doesnt even asign then new value...for targetResult I get the startResult and for the startResult I get the currentResult Sep 22 11:02:16 http://hastebin.com/fosihopaco.avrasm Sep 22 11:02:23 can anyone see anything wrong? :P Sep 22 11:02:37 if i remove the "str" in the ArrayAdapter constructor it works Sep 22 11:03:46 thats why I think soemthing has gone wrong with R.id assigning inthe R file Sep 22 11:04:12 I doubt android.R.layout.simple_list_item_1 contains a textview with the id R.id.srlist Sep 22 11:05:07 o.O SimonVT Sep 22 11:05:16 i'm new at android :P Sep 22 11:05:29 from what i got, simple_list_item_1 is what the item will look like Sep 22 11:05:37 and i'm using a default android one Sep 22 11:05:59 That's the layout resource used for each row Sep 22 11:06:07 The 3rd parameter is textViewResourceId The id of the TextView within the layout resource to be populated Sep 22 11:06:16 aaah Sep 22 11:06:17 madmcphil: well line 26 of your paste is setting the wrong TextView/value: txtTargetWeight.setText(startWeight); Sep 22 11:06:21 ZNickq: he's talking wit different person Sep 22 11:06:43 gorudonu: is he? o.O i don't think so Sep 22 11:06:48 I'm not ;O Sep 22 11:06:57 is there a way, how to disable following redirect using httpclient / httpresponse ? Sep 22 11:07:01 okay, that makes sense Sep 22 11:07:08 that's probably a general java question DarkKnightCZ Sep 22 11:07:17 googling should solve mose of those Sep 22 11:07:24 madmcphil: that would explain why the start value remains as is in your strings and why the target is wrong, but not why the current weight is wrong Sep 22 11:07:37 HttpParams params = client.getParams(); HttpClientParams.setRedirecting(params, false); Sep 22 11:07:42 hahaaa holy crap...I spent too long looking at th same code....nice catch on me being a dumbass Sep 22 11:07:48 ZNickq: You can remove the 3rd parameter when using that layout Sep 22 11:07:58 mmmk Sep 22 11:08:06 doesn't error Sep 22 11:08:07 still not sure why the other isnt displaying at all though Sep 22 11:08:08 I got this parameter Sep 22 11:08:14 but list is an field Sep 22 11:08:17 not local parameter Sep 22 11:08:21 DarkKnightCZ: did you see my code? Sep 22 11:08:26 HttpParams params = client.getParams(); HttpClientParams.setRedirecting(params, false); Sep 22 11:08:28 ZNickq: thanks, i used google and there were actually some answers, but it didnt work :) Sep 22 11:08:31 yeah, i did Sep 22 11:08:31 that should disable them Sep 22 11:08:52 wooo SimonVT it works Sep 22 11:08:55 ZNickq: is your list a field of class or local variable ? Sep 22 11:08:55 shows up in a wierd place Sep 22 11:09:04 local Sep 22 11:09:23 try move it to class field Sep 22 11:09:27 I'm curious Sep 22 11:09:35 ok doc_savage ......all works now.... Sep 22 11:09:54 thanks so much...and cant believe I havnt spotted that obvious error in hours Sep 22 11:10:14 madmcphil: cool and np :) we've all been there Sep 22 11:10:29 obviously assing targetResult twice melted down the other result Sep 22 11:10:37 it all works now... Sep 22 11:10:41 thank you Sep 22 11:11:18 ZNickq: it works, thanks... by the way, is it safe to use http connects directly in activity Sep 22 11:11:43 i don't think you can do networking on the main thread DarkKnightCZ Sep 22 11:12:11 you shouldn't :P Sep 22 11:12:12 or was that ios... Sep 22 11:12:20 one of them crashes anyway, lol Sep 22 11:12:55 well, it works even when it is in the main thread, but i just ask :) Sep 22 11:16:37 it's not about working DarkKnightCZ Sep 22 11:16:43 if the connection lags for example Sep 22 11:16:43 DarkKnightCZ: if you use the UI thread and the connection takes more than 5 seconds, your app will throw an ANR at the user, you should at least use a separate thread, a service may be better as it protects your from the activity lifecycle Sep 22 11:16:47 the main thread will hang Sep 22 11:17:10 yeah, doc_savage explained it better :P: Sep 22 11:17:16 doc_savage, ZNickq: yeeah, i thought it will be something like this :) Sep 22 11:17:37 hmm doc_savage i usually use just a different thread Sep 22 11:17:43 i'll look into the services Sep 22 11:19:53 ZNickq: i tend to follow the design of: service downloads to local and notifies activity (via binding) when content is available for HTTP stuff - that way download can continue in the background if the user presses home and the service prevents duplicate requests if the activity is restarted Sep 22 11:20:15 mhmm Sep 22 11:20:31 i might not need that, since the downloaded data is minimal, mostly text Sep 22 11:20:43 but an AsyncTask is perfectly fine too if you're just pulling data :) Sep 22 11:20:47 and only happens when the user clicks "cache" or something Sep 22 11:20:57 okay Sep 22 11:22:23 just keep in mind the situation where: activity starts download, user presses home, user starts activity - you could end up with 2 AsyncTasks doing the same thing Sep 22 11:32:30 doc_savage: its just login - get cookies from server, so not download Sep 22 11:35:24 DarkKnightCZ: you'd still at least want to do it in a separate thread Sep 22 11:40:51 SimonVT: i got a question Sep 22 11:41:11 from what i see i'm supposed to make a custom layout for each section of the ListView Sep 22 11:41:29 well, the same custom layout, but custom anyway Sep 22 11:41:40 in order to add a smaller text to each list section Sep 22 11:42:40 aahh, i can use simple_list_item_2 Sep 22 11:42:41 i think i got it Sep 22 11:42:47 Glad I could help Sep 22 11:49:41 woo, works Sep 22 11:49:48 awesome Sep 22 11:52:50 How do you do pixel*pixel scrolling on a tiled map drawn to a canvas? Sep 22 11:54:07 how do i update a clock live? Sep 22 12:13:00 When starting the CTS tests on my Android installation, I get an error message INSTALL_FAILED_DEXOPT_FAILED. After restarting the test suite, I get the error message INSTALL_FAILED_UID_CHANGED. Does anyone know what might go wrong? Sep 22 12:18:09 I have a ListFragment shown in a two-pane view that I want to style a bit. Can anybody tell me how I can have the selected list item highlighted in some way? Sep 22 12:20:41 I got a problem when using CheckBox, once I set android:button attribute, the background set by android:background disappears Sep 22 12:21:13 I mean I could do some workaround with setting the backgroundColor of the selected View element (and resetting the background of existing highlighted object), but this only changes the background of the part behind the text... Sep 22 12:21:18 How can I use both android:button and android:background on CheckBox ? Sep 22 12:36:38 I finally came up with this for the bitmap problem : https://gist.github.com/3765701 Any suggestions? :) Sep 22 12:47:17 experienced programmer, new to android development: is it possible for an app running in the background to know what the current URL in an open browser is? Sep 22 12:48:59 schtinky: there is no official, and no easy way to do that Sep 22 12:49:34 schtinky: you might be able to sniff the web page opening Intent from android's logcat buffer, but this only works up to 4.0 Sep 22 12:53:22 why would you do that Sep 22 12:53:30 seems like a breach of privacy Sep 22 12:53:46 everybody needs a rootkit, now and then Sep 22 12:54:12 but with synced history via google Sep 22 12:54:16 who needs rootkits Sep 22 12:54:17 :P Sep 22 12:54:20 sony. Sep 22 12:54:27 shh. Sep 22 12:56:19 I wonder if synced history has been compromised before Sep 22 13:09:32 good morning. do you know maybe a VoIP app for android with encryption? (point to point) Sep 22 13:09:45 thank you in advance for any hints and recommendations :) Sep 22 13:11:08 ironm: have a look at http://code.google.com/p/csipsimple/ Sep 22 13:11:27 thank you very much Ge0rG Sep 22 13:12:03 so did anyone already try out my app (https://play.google.com/store/apps/details?id=com.cygery.lichtwecker)? Sep 22 13:14:48 hm, has that app been pulled? url doesnt work. Sep 22 13:15:20 is this the best channel for newbie android dev questions? Sep 22 13:15:35 url works fine here Sep 22 13:15:56 benhelps, i guess so Sep 22 13:16:08 except meta questions Sep 22 13:16:21 heh nag8g8n Sep 22 13:16:31 agh stupid tablet Sep 22 13:17:27 nah simple code question. doing first app, on aide. gettig unknown method startActivity. guessig need to inc right package Sep 22 13:17:57 You need to know java/oop Sep 22 13:18:02 oh and that url for me gave a play store page that said " We're sorry, the requested URL was not found on this server." Sep 22 13:19:05 is it difficult to install your app? ... I could test it on Note N7000 8Samsung / android 2.x) ... so did anyone already try out my app (https://play.google.com/store/apps/details?id=com.cygery.lichtwecker)? Sep 22 13:19:32 ironm, there should be no problem Sep 22 13:19:34 SimonVT: used to write java a bit, but not for mobile Sep 22 13:19:51 only permission is receive_boot_completed Sep 22 13:20:32 Then you know that you have to call it either in a class that exposes that method or on an instance of a class that exposes that method Sep 22 13:21:24 so assuming startActivity isnt found cos missing import, what package does it live in. ah, tryig copy/pasted example code Sep 22 13:21:47 No, you're not calling startActivity on an instance of a class that exposes that method Sep 22 13:22:05 startActivity is a method of Context Sep 22 13:22:24 benhelps, https://developer.android.com/reference/android/app/Activity.html#StartingActivities Sep 22 13:23:36 http://docs.oracle.com/javase/tutorial/ Sep 22 13:25:00 gah slow tab still waiting for that page to load, tho url looks familiar Sep 22 13:25:05 Ge0rG, have you tested this app yourself? ... http://code.google.com/p/csipsimple/ Sep 22 13:26:03 EPG, I will give you feedback after testing of your app Sep 22 13:27:04 ironm: nope Sep 22 13:27:20 Does anyone know how to use the wimm sdks? Sep 22 13:29:37 I very often get a message in LogCat: Resources - Converting to string: TypedValue(t=0x12/d=0x0, a=2 r=0x7f09000b) ... but I have no idea where it comes from. Does anybody have an idea? Sep 22 13:30:59 ironm, thanks a lot :) Sep 22 13:31:47 EPG, I just try to download it Sep 22 13:33:45 EPG, bad new .. I should login to install this app. And I don't have (and neiver want) to register on google :( Sep 22 13:33:47 how can I develop an Android app along with a partner on two separate machines? Sep 22 13:33:49 news Sep 22 13:34:08 meaning I'm at my machine and they're at their machine, we want to develop 1 application using Eclipse Sep 22 13:34:09 Sicp, using git Sep 22 13:35:40 EPG, is there another possibility to download your app? Sep 22 13:35:46 no problem, maybe i can upload it later on my webspace (dont have access to the apk now) Sep 22 13:35:55 ok Sep 22 13:36:17 Sicp: you should use some kind of version control like mercurial or git... you can then each push your changes to a central repository and synchronize your code... if course you might need to do some manual merging and it only works well if the App is large enough (two people working on the same class would be *ouch*) ;) Sep 22 13:36:46 lol @ the imgur Sep 22 13:40:28 evident: you are accessing a resource using the wrong getter function, i.e. it is stored as an int but you try to get the string Sep 22 13:43:31 Anyone know of a text editor with free dropbox support? Sep 22 13:45:44 ...what's the difference between Eclipse and the Eclipse SDK? Sep 22 13:45:58 I mean one is 3.7.2 and the other is 4.1.0..both named Juno, I don't get it Sep 22 13:52:57 Sicp, there is another IRC channel for eclipse ... (better to ask there) ... /join #eclipse Sep 22 13:54:56 is one can give me a link to download some wifi apps on my pc and put it on my tablet ? Sep 22 13:55:32 sentence sense make not has Sep 22 13:55:34 say what? Sep 22 13:55:45 be. Sep 22 13:56:15 the play store is the place for apps and games Sep 22 13:56:15 ?!? Sep 22 13:56:44 wifi mumbo jumbo - you can host a virtual wifi if you have windows 7/8 and a wifi card Sep 22 13:56:49 no network on the tablet Sep 22 13:57:00 no wifi or Sep 22 13:57:06 Namidairo: yours sentence more suppositorily?! Sep 22 13:57:20 if you don't have a wifi router you can as i said host a virtual wifi network with your laptop Sep 22 13:57:30 lmao Sep 22 13:57:47 so no wifi router in this day and age Sep 22 13:57:48 i see. Sep 22 13:58:10 App/device support goes in #android Sep 22 13:58:54 wifi chipset but the apps do nothing; ok SimonVT Sep 22 14:02:48 SimonVT what distro is good to dev android apps ? Sep 22 14:03:15 The one where you can install intellij Sep 22 14:04:23 what is your distro SimonVT ? Sep 22 14:04:31 Windows 7 Sep 22 14:04:44 erk Sep 22 14:07:27 is the emulator faster on arm then before ? Sep 22 14:07:41 I used one like year ago.. Sep 22 14:08:25 apparently the x86 atom image is fastest Sep 22 14:09:30 does the networking works under atom ? Sep 22 14:09:41 last time I checked it was kinda beta state Sep 22 14:10:20 it works yeah Sep 22 14:10:36 HOW does one pronounce JNI? JEANIE? Sep 22 14:10:38 i've used a bunch of services with it Sep 22 14:10:48 jjjjjj-niiiiiii Sep 22 14:10:55 is what i say :) Sep 22 14:12:10 k Sep 22 14:17:23 Hello! Sep 22 14:17:37 Haro Sep 22 14:17:58 Can andybody help me? Sep 22 14:18:08 just tell your problem Sep 22 14:19:02 I have to overload the ImageButton class, in this class, even I write just the contructors, I've got Fatal Exception in DDMS Sep 22 14:19:58 what you changed in the constructor? and what the exception it rises? Sep 22 14:20:40 I don't change anything in contructors, I overload that class because I need two more methods Sep 22 14:21:18 so, overload the class without changing anything and sees if it will rise the exception Sep 22 14:23:31 what apis should I install in the sdk manager ? Sep 22 14:23:46 all of them or just like down to 2.3.3 Sep 22 14:24:06 why not write extension methods if its just 2 methods you need Sep 22 14:24:13 wait nvm Sep 22 14:24:16 It's a must to overload the contructors. I have just constructors overload in the new class and I stil have the errors Sep 22 14:24:16 wrong channel Sep 22 14:24:47 azm, now API 10 it most used Sep 22 14:25:04 and what exception it is rasing? Sep 22 14:25:04 i put mine down to 8 Sep 22 14:25:14 guys, how can I set a TextView to the max value an int gets ? (I need the max value of X,Y,Z axis when using the accelerometer and making a movement of the phone), I've set some TextViews to show me the values LIVE, but I need to see the max value those axis get when for example I shake the phone Sep 22 14:25:17 but i have target to like... 16? Sep 22 14:25:36 Can I put here links with a screen shot? Sep 22 14:27:46 AndyM_, I think you can Sep 22 14:28:16 check this out: http://vdtruck.net/store/the_errors.png Sep 22 14:28:33 and this is the code http://vdtruck.net/store/the_code.png Sep 22 14:29:25 meh my phone running 2.2.. Sep 22 14:29:43 I've got the crash when the phone meet imgView = (ImageButtonOverloaded) findViewById(R.id.imageButton1); Sep 22 14:30:37 azm, If you want develop for 2.2, you have need API Level 8 Sep 22 14:31:22 is it even possible to make good on-date apps without physical phone with same version of android ? Sep 22 14:31:57 yep, I will code for my current phone I guess Sep 22 14:32:02 I think not. The emulator is very slowly. Sep 22 14:32:10 or upgrade.. Sep 22 14:32:30 still slow ? Sep 22 14:33:33 heard that the arm based emulator should be faster Sep 22 14:33:56 azm, nitpick, that's not "overloading" that's extending, or subclassing Sep 22 14:34:34 no, x86 is def faster Sep 22 14:34:52 Yes mrenouf, sorry, I need to extend that class because I need some new methods Sep 22 14:35:15 quick question, how can I display the max value of a float ? Sep 22 14:35:18 user android-16 emulator, and set the resolution to half of normal (360x640) Sep 22 14:36:06 AndyM_, in the xml did you specify your class name, instead of 'ImageButton' ? Sep 22 14:37:14 you need to actually write: in the layout Sep 22 14:37:15 I use still ImageButton in XML Sep 22 14:37:21 so the correct class get's created for you Sep 22 14:37:29 that's what a ClassCastException means. Sep 22 14:37:35 Oh thanks very much Sep 22 14:37:38 np Sep 22 14:38:17 I'm beginner in Android Development. That my first indepentent Application Sep 22 14:38:18 :) Sep 22 14:39:16 yeah it's running. Sep 22 14:39:21 Thank you very much! Sep 22 14:48:02 I don't understand lines 4 and 6.. http://pastebin.com/BxmPWdwt Sep 22 14:48:11 what's the uploadpath Sep 22 14:51:35 Maybe you should ask whoever wrote it Sep 22 14:51:49 can anyone help me regarding the Accelerometer? I need just a bit of help. Sep 22 14:55:14 http://pastesite.com/44185 this is my code. What I'm trying to do is get the max values of X, Y and Z axis of the accelerometer when I'm making a certain movement of the phone. But since the X,Y,Z are floats they change whenever one of them is used. Like for example if I shake the phone and then just put it on the table, I have the "last" X and Y values and the Z one is just showing live since the phone is sensing the Z axis Sep 22 14:56:08 I need somehow to make those Textviews display the max value of the axis when I shake the phone , but just the max value... Sep 22 14:56:25 can anyone help me ? any ideea how I could do it? Sep 22 14:57:28 luci1093: max value reached or max value possible? Sep 22 14:57:48 if it's just max value reached, set up an if statement to not change the values unless the value is larger than the previous Sep 22 14:57:56 not sure about the other case =/ Sep 22 14:58:18 HacDan: max valume reached when I move the phone Sep 22 14:58:44 like for example I jump with the phone in my hand and I want to know the max values all the 3 axis get from that jump Sep 22 15:00:06 a simple if check of the current value and the previous value should work just fine then Sep 22 15:03:19 Can anyone tell ne how to set my droid to not power down every 5 mins (can't ask on android, cannot register myself properly or something) Sep 22 15:03:57 AndySezHi: this isn't really a help section for android problems. But what model phone is it? also is it exactly every 5 minutes? Sep 22 15:03:58 Nvm works asking on android Sep 22 15:04:17 Droid pro, I think its timeout Sep 22 15:05:10 not sure what timeout is, sorry =/ I assume it's an app? Sep 22 15:05:59 Nope, probably a setting it, screen goes black and I have to press powr to turn on Sep 22 15:06:16 ... Sep 22 15:06:37 when you press the power button does it come back on instantly? Sep 22 15:08:27 Yup, found something about display, hope that's it, set to 10 minutes Sep 22 15:08:44 That's normal behavior… that's to save battery. Sep 22 15:08:54 It's not shutting down, it's turning the screen off. Sep 22 15:09:58 It needs a 5 minutes setting... 1 2 10 brilliant!!! Sep 22 15:10:49 Thanks. :) now if only the keyboard backlight didn't have seizures (known unfixable issue) Sep 22 15:11:17 ya, that I know about Sep 22 15:11:31 Mine's set to 30 seconds if that helps at all. Sep 22 15:11:31 hi Sep 22 15:12:03 hi pole` Sep 22 15:12:08 how goes Sep 22 15:12:48 things are going, that's for sure; how are you? Sep 22 15:12:59 nb, just getting into android dev as of yesterday Sep 22 15:13:07 Do you IRC chat on your phone Sep 22 15:13:11 i have an idea for a project to start with, but im not sure if it's even possible. Sep 22 15:13:20 after reading through the references, im not sure it is Sep 22 15:13:20 fun! Sep 22 15:13:56 pole`: I would imagine it is possible. It just depends how far your knowledge will carry you. Sep 22 15:14:03 I have an image in res/drawable and I want to use that image to feed it to an uploader that uploads to imgur Sep 22 15:14:23 how do I get that image in a form accepted by Bitmap bitmap = myBitMapHere Sep 22 15:14:24 filestream Sep 22 15:14:31 ^ Sep 22 15:14:43 BitmapFactory.decodeResource Sep 22 15:14:57 hm Sep 22 15:16:37 I need to feed it a resource in the first argument, and R.drawable.myimage is not a resource Sep 22 15:16:44 I need to create a resource from that path, wait Sep 22 15:17:24 it takes a resource id somewhere Sep 22 15:18:50 BitmapFactory.decodeResource(res, R.id.imagetoupload); Sep 22 15:18:55 Resources res = getResources(); Sep 22 15:19:00 1 before the other, sorry Sep 22 15:19:29 actually you missed your text editor by one window =) Sep 22 15:19:50 lol, no I was pasting what worked Sep 22 15:19:57 for future generations, for future generations... Sep 22 15:19:59 What do you guys recommend, Maven or Ant? Sep 22 15:20:25 s/future generations/blog/ Sep 22 15:21:30 If an application loses focus, ie a user presses back, do pending messages get removed, or are they still returned? Sep 22 15:23:31 I did settings activity: http://paste.org.ru/?pr3fv1 I works. How do I store user's choise to SharedSettings after choise? Sep 22 15:31:05 I get this exception https://dl.dropbox.com/u/19390574/log.txt whenever I try to run this code, http://pastebin.com/Zn53L2Ey Sep 22 15:31:33 the very first line in the exception highlights line 39 in the code Sep 22 15:33:09 Sicp: you closed the .encode too early by the looks of things at a glance Sep 22 15:33:25 too early for what, Dan? Sep 22 15:33:42 you mean the lining up of the parens?... Sep 22 15:34:12 Name isnt' dan for the reference, but you have data = URLEncoder.encode("image", "UTF-8") "=" URLEncoder.encode(etc Sep 22 15:34:24 yea I'm looking at that specifically Sep 22 15:34:34 it's this damn Ctrl + Shift + T Sep 22 15:34:34 wait Sep 22 15:36:26 I fixed that, I still get the same error for the same line Sep 22 15:38:17 I did if (baos.size() != 0) { do that line that is throwing the exception; it didn't do it Sep 22 15:38:23 baos is turning up with nothing Sep 22 15:39:34 there we go, now I kept the line you mentioned as it was and also avoided the exception line, I now get NetworkOnMainThread Sep 22 15:39:38 I need to do asynctask? Sep 22 15:40:12 AsyncTask will allow you to do cool stuff Sep 22 15:40:26 cool Sep 22 15:41:24 alright, to the bat mobile! Sep 22 15:41:25 onPreExec, onPostExec, doInBackground, etc.. Sep 22 15:41:36 onCancel Sep 22 15:41:45 yea I've worked with it before Sep 22 16:07:53 alright, this is how my class has become now with the AsyncTask Sep 22 16:07:54 http://pastebin.com/1gxDABHf Sep 22 16:11:34 Good morning all Sep 22 16:11:41 I have a question that might seem noob, but I just install resbenjelly on my Nexus S 4G crespo4g and the only thing that does not work is GPS. I am looking to install the updated driver and found one @ https://developers.google.com/android/nexus/drivers#crespo4g but I am unsure how to install it. I am rooted w/ twrp so I am a little familiar with hacking around but this is unlike any... Sep 22 16:11:41 good morning noobster Sep 22 16:11:43 ...driver/kext I have ever worked with. Can someone point me in the right direction? Kthanx Sep 22 16:12:26 I hope I am in the right place :) Sep 22 16:17:58 I dont have to build a custom ROM to install do I? Sep 22 16:18:23 I wish I could install from a .zip through twrp like other apps Sep 22 16:18:58 Try #android-root Sep 22 16:19:26 ok thanks!! Sep 22 16:22:09 If I want ti download an image from a server, the server should send the image in a byte array[] in Base 64? Sep 22 16:22:15 to * Sep 22 16:22:19 alright, this is how my class has become now with the AsyncTask Sep 22 16:22:20 http://pastebin.com/1gxDABHf Sep 22 16:22:22 but I still get an exception on line 49 because of baos coming up empty; I have added INTERNET permission Sep 22 16:28:04 If I want to download an image from a server, the server should send the image in a byte array[] in Base 64? Sep 22 16:31:24 kulas, no need for base64 Sep 22 16:32:05 assuming you're talking about an HTTP server? Sep 22 16:33:01 Sicp, classes always start with upper-case Sep 22 16:33:35 mrenouf: yes, so I can just send it like a byte array[]? But I can send the image with coap-json? Sep 22 16:33:51 what's coap? Sep 22 16:34:23 if it's part of a json response, then no. Base64 would be required. Sep 22 16:37:12 How to add a wallpaper in Launcher2.apk using smali? Sep 22 16:37:15 mrenouf: sorry, soap-json. Hmm ok, if I send it in http I can send it like a byte array[] but if I use json I will need Base64 ? Sep 22 16:37:22 it says I need to declare it in public.xml when I try to recompile :S Sep 22 16:37:42 But yeah declaration looks like this : and how could I find a valid id Sep 22 16:55:32 And this is a channel for app development, not random apk decompiling Sep 22 16:56:23 Wrong. Sep 22 16:58:47 Heh. Sep 22 17:05:06 how does one configure the run button in eclipse to run an app through an AVD? Sep 22 17:17:46 Where can I find the Launcher2.apk missing import? Sep 22 17:17:53 ¸From source code project Sep 22 17:23:40 orientation landscape/portrait is available as default in 4 and above? Sep 22 17:23:54 it just flips by default, didn't add code Sep 22 17:27:05 afaik it always flips, but uses the same layout Sep 22 17:27:14 unless you specifically tell it to not flip Sep 22 17:39:59 anyone get adb working with alcatel one touch? i have all settings set for dev but no dice... Sep 22 18:01:16 I'am using a class CollectionPagerAdapter who extending FragmentStatePagerAdapter, I need to get each page title from an sql table. For that I must use an asyncTask class to get the name of the page. How to set the getPageTitle method with a name got in background ? oO Sep 22 18:25:14 Adding to my mapview overlay is overwriting last draw Sep 22 18:25:32 i even iterate(0, object) iterate(1, object) Sep 22 18:26:08 How can I draw on my overlay with more control of the objects? Sep 22 18:27:13 can I check if an AsyncTask was SUCCESSFUL? Sep 22 18:27:30 or is it just checking if it was finished? Sep 22 18:41:03 wow, Mozilla OS guys have evaluation hardware now, not just flashing onto an android phone. zte devices expect early next year. will be pretty interesting Sep 22 18:43:14 showDialog and dismissDialog are deprecated? Sep 22 18:44:02 Anyone know about JetPlayer? Would it be possible to use it to play completely procedurally generated MIDI (or JET segments), without ever using a .jet file? Sep 22 18:47:10 Sicp: DialogFragment is the future Sep 22 18:57:53 evancharlton: are you aware of any differences in behavior between 4.1.1 and prior versions wrt content providers and uri permissions ? Sep 22 18:58:58 my app, and a few others i found on the interwebs (through bug reports) are crashing on 4.1.1 from a thrown SecurityException, this never happened before, trying to figure out what the difference is Sep 22 18:59:22 4.1 notes don't say anything changed Sep 22 19:04:11 hi Sep 22 19:04:31 is it possible to remove activity name from actionbar Sep 22 19:04:32 g00s: only permission change I know of is reading/writing to the sd card. And that's just a deprecated thing. Where the old permission will eventually not work. Sep 22 19:04:58 HacDan: yeah, i did see that in a blog of commonsware … thx Sep 22 19:05:19 ya I know, not much help =/ Sep 22 19:05:20 There was always a write permission Sep 22 19:06:14 my issue, I can't get this to return a string: views.setTextViewText(R.id.uptime, getUptime()); Sep 22 19:06:29 getUptime is a string class that returns a string Sep 22 19:06:44 department of redundancy department, etc. Sep 22 19:06:51 any ideas? Sep 22 19:07:09 Surely getUptime is a method and not a class Sep 22 19:07:17 er yeah a method sorry Sep 22 19:07:21 the5thpixel: i like your nick Sep 22 19:07:31 thx Sep 22 19:07:47 What doesn't return a string Sep 22 19:08:24 well, i have a text view i'm trying to change the value of, obviously. and i've tested that line, if I replace getUptime() with "TEST" it works Sep 22 19:08:43 So your getUptime method is broken Sep 22 19:08:44 guessing this is a notification or widget? Sep 22 19:08:50 possibly Sep 22 19:08:52 widget Sep 22 19:08:59 pass just "this is a test" Sep 22 19:09:10 if it works then SimonVT is right Sep 22 19:09:15 just a sec Sep 22 19:09:52 * Jug6ernaut waits multiple seconds Sep 22 19:10:09 if I remove everything in my method, and just define the string as "TEST" it works Sep 22 19:10:17 let me get my code in a pastebin. Sep 22 19:11:10 http://pastebin.com/Ew7VTrj2 Sep 22 19:11:22 String.valueOf(SystemClock.upTimeMillis()); Sep 22 19:11:24 this is something new for me, so dont laugh too hard Sep 22 19:11:49 haha Sep 22 19:11:54 Well, you're ignoring two exceptions Sep 22 19:11:58 None of those are being thrown? Sep 22 19:12:09 pastebin never loads for me :S Sep 22 19:12:14 That'd be the first thing to check Sep 22 19:12:36 ignore the fact that i'm redefining my string at the end? but what do you mean ignoring exceptions? Sep 22 19:12:42 what am I doing wrong? Sep 22 19:13:05 MalformedURLException and IOException.. You're not doing anything Sep 22 19:13:11 Not even printing the stacktrace Sep 22 19:13:19 woopsie Sep 22 19:14:08 i dont know what that means. you're talking to someone who has been a web dev up until now. Sep 22 19:14:58 let me back up Sep 22 19:15:15 i'm trying to read a remote web page's output Sep 22 19:15:28 and feed that output to my textview Sep 22 19:15:44 am i even on the right track with my code? Sep 22 19:17:01 check your logcat for the exception when you run the code Sep 22 19:17:31 no exceptions Sep 22 19:18:09 also change (URISyntaxException e) { e.printStackTrace(); } to Sep 22 19:19:19 (URISyntaxException e) { return "Error getting Uptime." } Sep 22 19:19:58 do the same for your other catch blocks accordingly Sep 22 19:20:20 but not "get uptime" make it so u can know which one is dying Sep 22 19:21:13 Hi all Sep 22 19:21:13 Print the stack trace so you know why as well ;O At least when debugging Sep 22 19:21:33 xD Sep 22 19:21:38 I have this code which already has an image, all it does is upload it to Imgur and that's working fine and at line 41 the progress Dialog is running, but it won't go away Sep 22 19:21:52 I have a question guys, Im updating the background color of a view in a list view, but it change some others listview background colors, anyone know what that happens? Sep 22 19:21:54 it reads the AsyncTask status of Running but doesn't do anything in the Finished Status Sep 22 19:21:55 definitly print stacktraces xD Sep 22 19:23:06 Omarpr: ListView reuses views Sep 22 19:23:10 this is gibberish to me Sep 22 19:23:14 I know, How I can avoid that? Sep 22 19:23:24 you don't want to avoid that Sep 22 19:23:33 I know but let me explain. Sep 22 19:23:53 Im doing a list view with questions, the background color turns green if the question was answered correctly and red if not. Sep 22 19:24:22 If I set the background for the question 1 to red, it will also change the baackground for the question 9 Sep 22 19:24:25 So for every question that's answered correct, set it to green. If not, set it to whatever your default color is Sep 22 19:25:11 ok, I will try that, thanks. Sep 22 19:29:49 postExecute and preExecute are fucking indispensable, seriously Sep 22 19:29:54 there is no going around that shit Sep 22 19:31:00 sweet mother of breakthroughs Sep 22 19:31:28 ^^ Sep 22 19:31:53 whats up with the
 tags around my concent...
Sep 22 19:31:55  content*
Sep 22 19:32:24  I have another question.
Sep 22 19:32:26  ah nevermind.
Sep 22 19:32:32  How I can get the view of an element of a ListView.
Sep 22 19:32:33  Directly.
Sep 22 19:32:50  omarpr: use the getView of ur adapter to figure location of data
Sep 22 19:33:00  Ok canvs2321 thanks.
Sep 22 19:33:07  Eh, no
Sep 22 19:33:08  and n that method decide how to display the view
Sep 22 19:33:12  You don't want that
Sep 22 19:33:17  it gives u position
Sep 22 19:33:25  Why do you need the view?
Sep 22 19:33:43  i mean based on position change the view
Sep 22 19:33:55  Do not call getView manually
Sep 22 19:34:03  SimonVT: because
Sep 22 19:34:07  I want toi change
Sep 22 19:34:08  Ok
Sep 22 19:34:09  no, in the adapter code, do the view changes
Sep 22 19:34:19  I havee a custom list view, I want to get an element to change the image
Sep 22 19:34:20  oh
Sep 22 19:34:32  each element has a text and image.
Sep 22 19:34:41  Well, change the data backing the adapter.. Call notifyDataSetChanged
Sep 22 19:34:42  I want to get the imageView to change it, of the X element.
Sep 22 19:34:44  getView + position + ur data array make ur changes
Sep 22 19:35:21  getView have 3 parameters
Sep 22 19:36:14  im saying, n ur getView method of ur adapter do ur loading of the view,either cached or new,check ur position,if position X needs green set that background green
Sep 22 19:36:52  oka
Sep 22 19:36:56  but getView has 3 parameters
Sep 22 19:37:03  and I only know what to put on the first, the position.
Sep 22 19:37:20  public View getView (int position, View convertView, ViewGroup parent)
Sep 22 19:37:23  Do not call getView manually
Sep 22 19:37:32  Well, change the data backing the adapter.. Call notifyDataSetChanged
Sep 22 19:37:41  but the adapter is linked to ur data,+ u should keep maybe a boolean array of green or not green, u check position w ur boolean and set?
Sep 22 19:38:11  is he dynamically changing the data w the adapter, or loading data & wanting to show view based on data?
Sep 22 19:38:30  SimonVT: I never change the data.
Sep 22 19:38:36  I need to change the image
Sep 22 19:38:45  The image is part of your data
Sep 22 19:38:54  so,set ur data w ur adapter,and then in the getView based on data set ur colors
Sep 22 19:39:30  the image is based off data, not part of it
Sep 22 19:39:44  Then make it part of it
Sep 22 19:39:47  And change your data
Sep 22 19:40:02  And notify the adapter
Sep 22 19:40:55  but aren't u really notifying adapter, when setting the image in the getView?
Sep 22 19:42:04  No, getView is called after you notify it
Sep 22 19:42:33  but it is getting notified when he sets the adapter with the static data, so he'd just set the images in the getView
Sep 22 19:43:21  I don't understand what you're saying
Sep 22 19:44:25  i have a array(a,b,c,d),i link my adapter to the array using .setAdapter(...,myArray); myArray never changes, so in my getView of my adapter i set images based upon a,b,c,d in my array?
Sep 22 19:44:51  yes
Sep 22 19:45:03  i thought that was what he was trying 2do :/
Sep 22 19:45:08  Then you change c to e and call Adapter.notifyDataSetChanged
Sep 22 19:45:24  yeah if i change myArray i'd notify
Sep 22 19:45:33  i thought he was staying pretty static
Sep 22 19:46:30  hellp
Sep 22 19:46:38  try #hellp?
Sep 22 19:46:46  Q: Is it possible to install apk from URL without downloading the file. The posts on stackoverflow doesnt seem to work as the intent opens the browser and download the apk. Anyone please?
Sep 22 19:47:19  khurasan:ud have2download data of sometype to install?
Sep 22 19:48:06  apple sure made a fool of themselves
Sep 22 19:48:08  really? so you cannot directly install from server
Sep 22 19:48:15  ;)
Sep 22 19:48:36  khurasan:what im saying is bytes would have2b transferred2install
Sep 22 19:49:25  canvs2321: yeah but does the physical apk needs to be on the device
Sep 22 19:52:43  what is the pattern for a blank, no-space?
Sep 22 19:53:59  nvm
Sep 22 20:00:33  canvs2321: is that it?
Sep 22 20:00:43  I'm having a lot of problem with the CustomArrayAdapter for a custom list item
Sep 22 20:00:49  that have a text and a imageView
Sep 22 20:01:02  Omarpr: and
Sep 22 20:01:22  any of you know a guide that show an example of an custom array adapter with IMAGE and TEXT?
Sep 22 20:05:25  Omarpr: http://www.ezzylearning.com/tutorial.aspx?tid=1763429
Sep 22 20:05:52  khurasan: thanks
Sep 22 20:06:12  Hey guys, I have this TabHost with some tabs in it...
Sep 22 20:06:27  that's awesome RazielZ!
Sep 22 20:06:39  How would I make an onTouch event for the tabs?
Sep 22 20:06:49  Like, when I press one of the tabs, something happens beside the tab switching.
Sep 22 20:07:01  They're in one activity
Sep 22 20:08:08  Q: So there is no way i can install APK from URL without download file?
Sep 22 20:08:31  I don't understand
Sep 22 20:08:36  How to use getView
Sep 22 20:08:45  I want to get the view of an item to make changes.
Sep 22 20:08:45  khurasan, not that I know of, probably not at all
Sep 22 20:09:09  But i dont know what to put in the other two paraments
Sep 22 20:09:12  parameters*
Sep 22 20:09:18  getView(pos, ??, ??)
Sep 22 20:09:24  Why not use getViewById?
Sep 22 20:09:34  Well, it depends on what you're doing, I guess
Sep 22 20:10:22  I have a listview
Sep 22 20:10:35  and I want to get the view of an specific member
Sep 22 20:10:37  RazielZ: ok so i download the apk instead on to external storage... how do i then protect that from vampires
Sep 22 20:10:40  to change the iimageView inside it.
Sep 22 20:10:51  khurasan, make a garlic file next to it?
Sep 22 20:10:59  ^
Sep 22 20:11:11  RazielZ: how does that work
Sep 22 20:11:16  No idea.
Sep 22 20:12:34  khurasan, pic related? http://i2.kym-cdn.com/photos/images/newsfeed/000/234/137/5c4.jpg
Sep 22 20:13:04  khurasan, it's probably because of how garlic acts as an antibiotic and vampires are undead
Sep 22 20:13:09  If I have a listview in a View variable.
Sep 22 20:13:12  But that's pretty general.
Sep 22 20:13:23  There is a way that I can get the listview element at pos X?
Sep 22 20:13:38  You have a list view in a view?
Sep 22 20:13:43  I'm pretty sure you just have a listView
Sep 22 20:13:49  sonOfRa: how about when you dissolve like salt in water
Sep 22 20:14:01  RazielZ: why you being a douchbag
Sep 22 20:14:13  What'd I do? D:
Sep 22 20:14:50  RazielZ: vampires as in hackers code decompilers
Sep 22 20:15:00  Wut.
Sep 22 20:15:12  Who came up with that?
Sep 22 20:15:18  never heard that before..
Sep 22 20:15:32  RazielZ: YOU MUST BE 10 years old
Sep 22 20:15:41  No, I am 12 and what is this
Sep 22 20:15:59  as i said above: pic related: http://i2.kym-cdn.com/photos/images/newsfeed/000/234/137/5c4.jpg
Sep 22 20:16:33  Hmmm
Sep 22 20:16:34  With Gson I can deserialize an object in Json without knowing the atributes of that object ?
Sep 22 20:16:52  Hi Everyone, Hey, i have a question, please, is it possible to use classes for work with database like MySQLiteOpenHelper in older versions of android ?
Sep 22 20:17:12  ORM you mean/
Sep 22 20:17:19  does anyone know what drive formats Android can read (fat32, NTFS, ext4, etc).  I can say it did fat32, but not sure of what others
Sep 22 20:17:46  Omarpr, try getChildAt(pos)
Sep 22 20:18:18  ok
Sep 22 20:18:30  please, is it possible to use classes for work with database like MySQLiteOpenHelper in older versions of android ?
Sep 22 20:18:56  WallnPall, I assume so?
Sep 22 20:18:57  WallnPall: what is exactly you want to achieve
Sep 22 20:22:10  Well that sucks. I managed to add the listener to the right tab but apparently it overwrote the default one and now the tab doesn't switch.
Sep 22 20:22:12  Derp.
Sep 22 20:22:32  Oh.
Sep 22 20:22:39  anyone know usb formats that android can handle?
Sep 22 20:22:40  The default one is just setCurrentTab
Sep 22 20:22:41 * RazielZ adds that
Sep 22 20:23:24  Huge success.
Sep 22 20:24:06  epsilonorion, NTFS/FAT/EXT2/EXT3/EXT4
Sep 22 20:24:22  It might not be by default tho, so you might need an app for it
Sep 22 20:25:03  Im doing this RazielZ
Sep 22 20:25:04  ListView t = (ListView)findViewById(R.id.listview);
Sep 22 20:25:06  RazielZ: crap.  FAT worked with no problem, however EXT4 and NTFS did not.  I did not try EXT3 or 2.  Problem is I can't use FAT32 because it works so slow
Sep 22 20:25:14  then
Sep 22 20:25:15  View t2 = t.getChildAt(position)
Sep 22 20:25:20  with ; at end...
Sep 22 20:25:26  And then it throw null pointer exception
Sep 22 20:25:43  https://play.google.com/store/apps/details?id=com.kwull.ntfsmounter&hl=en
Sep 22 20:25:44  Try that
Sep 22 20:25:54  For epsilonorion
Sep 22 20:26:10  Omarpr, do it after the list has stuff in it
Sep 22 20:26:18  Or check beforehand
Sep 22 20:26:27  RazielZ: Thanks, but can't.  Making an app that can't require any other apps or root
Sep 22 20:26:28  the list have  things in it
Sep 22 20:26:43  just it return null
Sep 22 20:26:51  findViewById(R.id.listview)
Sep 22 20:26:52  epsilonorion, read up on http://www.xda-developers.com/android/full-ntfs-readwrite-support-for-android/ then
Sep 22 20:26:55  that is returning null
Sep 22 20:26:55  Not sure if possible tho
Sep 22 20:26:58  getChildAt is a ViewGroup method that returns the child at the index passed. So if the ListView is currently displaying 4 items, index can be 0 to 3
Sep 22 20:27:17  Omarpr, so findViewById won't work with the list?
Sep 22 20:27:47  yeah...
Sep 22 20:27:48  Well if it leaves the view var empty then ofcourse it throws null pointer >.>
Sep 22 20:27:52  Check the ID again?
Sep 22 20:28:13  Since that should work.
Sep 22 20:29:00  You can also try to change its ID to something custom and then use that, although it should work anyway
Sep 22 20:30:30  RazielZ: Thank you very much.  I will keep that in mind.  Only issue for current tablet is that it would require a change to the tablet that I am not allowed to do
Sep 22 20:30:46  Ah, that's not good.
Sep 22 20:31:26  It probably only supports FAT by default.
Sep 22 20:31:43  http://stackoverflow.com/questions/2421826/whats-android-file-system
Sep 22 20:31:47  And those.
Sep 22 20:31:58  But you probably don't wanna use those if you want something like NTFS
Sep 22 20:33:20  I dont really need NTFS, just something fast and FAT32 is not it
Sep 22 20:33:21  if I create my project for lower android version is it necessary to use different classes for database connection in comparison if I do the project for android 4 ?
Sep 22 20:33:29  NTFS on the computer I am using was at least 2.5 MB/s
Sep 22 20:33:37  FAT32 is 481kB/s
Sep 22 20:33:54  Some people say it supports ext3/4
Sep 22 20:33:59  And 2.
Sep 22 20:34:22  WallnPall, are you using classes from the android api for database connection?
Sep 22 20:35:54  I will try 2 and 3
Sep 22 20:37:36  RazielZ iam using SQLiteDatabase, SQLiteOpenHelper
Sep 22 20:38:08  Since: API Level 1
Sep 22 20:38:12  They'll work on any version
Sep 22 20:38:37  Eclipse tells you if some function you're trying to use isn't in your targetVer range anyway
Sep 22 20:45:20  on line 141: http://pastebin.com/wsGh31uk
Sep 22 20:45:28  says appWidgetUpdate is undefined
Sep 22 20:46:21  should that be changed to onUpdate?
Sep 22 20:56:39  hey guys
Sep 22 20:57:21  I'm new to Android Development, do you think this is a good place to start getting help on simpler aspects of Android development?
Sep 22 20:58:29  panegyric: developer.android.com is a way better place.
Sep 22 20:58:52  thanks
Sep 22 20:58:55  no irc channels though?
Sep 22 20:59:22  this IRC channel is ok
Sep 22 20:59:30  I wanted to develop and app that does some basic communication to a back-end
Sep 22 20:59:35  just don't expect much success with questions covered in basic tutorial ;)
Sep 22 20:59:52  oh ok, thanks
Sep 22 21:00:06  although i'm not exactly sure what would be considered basic
Sep 22 21:00:49  i dont know the 101's of how to have my app communicate to a back-end sql database...would this be considered basic, or do you think someone would be able to help me out?
Sep 22 21:01:47  http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html
Sep 22 21:03:06  hmm this might me advanced for me
Sep 22 21:03:11  as i know almost nothing about
Sep 22 21:03:24  how to make it communicate to a back-end sql database
Sep 22 21:03:40  will i need to use php?
Sep 22 21:03:46  god, no
Sep 22 21:03:48  do you know java
Sep 22 21:03:50  http://www.vogella.com/articles/AndroidSQLite/article.html
Sep 22 21:03:53  a little bit angelos
Sep 22 21:03:57  still a student
Sep 22 21:04:00  or any other language?
Sep 22 21:04:07  java
Sep 22 21:04:09  c++
Sep 22 21:04:20  but dont i need php to have my app communicate with the server?
Sep 22 21:04:20  panegyric: back end, like … off the phone ?
Sep 22 21:04:21  I skipped first year of uni because I knew everything already :[
Sep 22 21:04:29  g00s yes
Sep 22 21:04:35  panegyric, no?
Sep 22 21:04:36  i want to buy a webserver
Sep 22 21:04:41  you want to make it complete forms?
Sep 22 21:04:56  panegyric: ok, watch this . http://www.youtube.com/watch?v=xHXn3Kg2IQE
Sep 22 21:05:00  Just use that class to directly connect to the database
Sep 22 21:05:02  RazielZ isnt sql lite the inherent db
Sep 22 21:05:10  panegyric: not really, you can create webserver in java/c++/php/python... almost every language can do that
Sep 22 21:05:17  ofc php is the "simpliest"
Sep 22 21:05:20  Inherent to what?
Sep 22 21:05:37  i mean android comes with sql lite db
Sep 22 21:05:40  right?
Sep 22 21:05:44  Well, yeah
Sep 22 21:05:56  but
Sep 22 21:05:59  i need my app
Sep 22 21:06:06  to communicate to a db on a webserver
Sep 22 21:06:35  panegyric: great, watch the video.
Sep 22 21:07:17  you guys are awesome
Sep 22 21:07:18  thanks
Sep 22 21:07:24  Ah, yeah, you can't do that with that class.
Sep 22 21:07:45  hello
Sep 22 21:07:46  oh ok got you
Sep 22 21:07:48  thought so
Sep 22 21:07:59  g00s what is a REST client exactly?
Sep 22 21:08:11  panegyric: your app :)
Sep 22 21:08:36  the service will be on your server, connected to the backend db
Sep 22 21:08:50  got you!
Sep 22 21:08:54  I am having trouble filtering contacts when using contentresolver and only seelectingcontacts that have email addresses
Sep 22 21:09:02  Hello people. I am trying to put together my first android application, but every time I add this little piece of code the app forces close: https://gist.github.com/5764bc20ae69b13105d6
Sep 22 21:09:13  Am I missing some basic stuff here? I am testing on a HTC Desire.
Sep 22 21:09:35  dddbmt,  change mpButton
Sep 22 21:09:39  the name is wrong
Sep 22 21:10:05  just comment out the mpButton
Sep 22 21:10:08  line
Sep 22 21:10:13  hkhalid, I have this in my onCreate : mpButton = MediaPlayer.create(this, R.raw.space);
Sep 22 21:10:59  dddbmt, what does logcat say
Sep 22 21:12:32  hkhalid, https://gist.github.com/a905371b3df98073ea8e
Sep 22 21:12:54  panegyric: if you also have to design the rest service, a great book is 'rest in practice' if you have the time
Sep 22 21:13:09  dddbmt, your mediaplayer seemed funked if I had to guess
Sep 22 21:13:16  bu that logcat message doesnt help
Sep 22 21:13:37  panegyric: http://www.amazon.com/REST-Practice-Hypermedia-Systems-Architecture/dp/0596805829
Sep 22 21:14:06  hkhalid, what about this? https://gist.github.com/43faa1bd6bc035e50ac2
Sep 22 21:14:26  dddbmt, why are you naming it a button, did you typecast it as a button
Sep 22 21:14:32  typecast it as a mediaplayer
Sep 22 21:15:09  MediaPlayer mp = MediaPlayer.create(this, streamUri);
Sep 22 21:15:27  hkhalid, this is my entire code: https://gist.github.com/6555636fc270c5137bae
Sep 22 21:15:43  Enabling line 20 and comment out the click listener and the sound plays correctly.
Sep 22 21:17:37  hkhalid, I named it a button because it's going to play on a button click... bad naming i guess.
Sep 22 21:18:06  no thats fine
Sep 22 21:51:35  lov, can you help me out?
Sep 22 21:55:33  in MapView, what specifically triggers overlay1 to redraw when overlay2 is modified
Sep 22 21:57:05  hey fellas.
Sep 22 21:58:10  So I put some html in a textview with a link like this:  i'd guess there's an onClick or sth
Sep 22 22:00:46  On click is only for the whole text.
Sep 22 22:01:25  Guess I'll have to read more about intent receivers then...
Sep 22 22:02:20  hey g00s you there by any chance?
Sep 22 22:03:14  panegyric: for a little
Sep 22 22:04:20  hi, is it worth time to learn action bar mechanics?
Sep 22 22:04:35  its a must
Sep 22 22:05:11  If you want your apps to be any good
Sep 22 22:05:13  including styling of it
Sep 22 22:05:35  oh ok, then read I shall
Sep 22 22:10:40  my app can't be good without an actionbar? :(
Sep 22 22:12:29  It can.. But if it just looks like a  its a pre-hc world !
Sep 22 22:46:24  g00s: I think SimonVT meant something like this: http://www.mathbox.net/CodeCtrl/Article/80/Image/39/DroidEmailDelete.jpg
Sep 22 22:55:13  HacDan: heh, thats what my app looks like :)
Sep 22 22:56:30  g00s: I sure hope not! =P
Sep 22 22:56:47  i'm serious :)
Sep 22 22:58:10  is it finished?
Sep 22 22:58:42  it was in Feb
Sep 22 23:21:55  im a really novice developer, can anybody give me some insight into how i can start having my app communicate with a back-end sql database (on a web server)...it's safe to say i know little to nothing
Sep 22 23:22:21  you have a webpage that uses the sql
Sep 22 23:22:27  say php or python
Sep 22 23:22:35  then use http to connect
Sep 22 23:23:11  … profit !
Sep 22 23:23:52  thats a good overview
Sep 22 23:24:06  any idea if i can find some resources online to learn the specifics
Sep 22 23:24:07  that's profit alright
Sep 22 23:24:20  start by Googling
Sep 22 23:24:33  NAO.
Sep 22 23:24:36  i did, but i cant seem to get anywhere
Sep 22 23:24:41  lies
Sep 22 23:24:44  impossiburrr
Sep 22 23:24:49  actually no
Sep 22 23:24:54  what are you looking for, let's see
Sep 22 23:24:58  g00s put me on to REST videos
Sep 22 23:24:59  another nice option is App Engine
Sep 22 23:25:02  and ive been looking at them
Sep 22 23:25:03  write a sentence
Sep 22 23:25:11  App engine?
Sep 22 23:25:12  just 1 sentence that explains what you're looking for
Sep 22 23:26:04  a simple implementation of an android REST client app communicating with a back-end server
Sep 22 23:26:44  http://stackoverflow.com/questions/6513011/android-application-that-gets-data-from-a-remote-database
Sep 22 23:28:38  this helps Sicp thanks
Sep 22 23:29:06  I typed "android REST app communicating with backend SQL server"
Sep 22 23:29:14  your sentence exactly
Sep 22 23:30:01  hope your google prowess doesn't militate against my credability
Sep 22 23:30:21  i'm just saying that you should do the same
Sep 22 23:30:21  i really did try googling for a while but found scattered answers
Sep 22 23:30:24  prowess he says..
Sep 22 23:30:33  just be verbose, enough with keywords
Sep 22 23:30:58  especially in code,  sometimes I look up the line I am having trouble with
Sep 22 23:31:03  the ..exact line; and it works
Sep 22 23:32:27  maybe Sicp and panegyric are in different filter bubbles !
Sep 22 23:33:32  maybe I am on the OTHER internet *nudge nudge*!
Sep 22 23:33:41  the one with all the good results
Sep 22 23:34:19  but this is debauchery panegyric, you say you are a novice programmer yet I myself have never tried RESTful things
Sep 22 23:34:22  when i search "android" i get porn
Sep 22 23:34:25  damn filter bubbles
Sep 22 23:34:28  and so I have no idea what you're looking for perse
Sep 22 23:44:47  hola
Sep 22 23:44:51  oops
Sep 22 23:44:57  hello :D
Sep 22 23:45:12  anyone know about a tutorial on paypal payment api in androdi?
Sep 22 23:45:18  please
Sep 22 23:47:32  Maybe paypal does
Sep 22 23:50:48  that's the action bar I'm looking for, the one I avoided a couple of months back
Sep 22 23:50:59  so there's no Tabular Layout
Sep 22 23:51:04  yea
Sep 22 23:51:39  im trying to find it
Sep 22 23:51:43  but no luck so far :)
Sep 23 00:01:48  Remember you're probably not allowed to distribute your app through play store if you use paypal for purchases
Sep 23 00:02:34  :O
Sep 23 00:02:36  really??
Sep 23 00:02:50  i would like to use google inapp billing
Sep 23 00:03:05  but they take 30% of the amount...
Sep 23 00:03:14  Yes, really
Sep 23 00:03:16  yeah but they are clear
Sep 23 00:03:26  they don't take it, it's for bank transactions ;(
Sep 23 00:03:33  wow
Sep 23 00:03:35  amazong
Sep 23 00:03:37  amazing*
Sep 23 00:04:01  that's not cool, because they've got too high deal with banks around the world lol
Sep 23 00:04:05  so if I want to make a purchase inside my app
Sep 23 00:04:06  ending to 30%
Sep 23 00:04:16  cash shop is different KBZoiD
Sep 23 00:04:16  i need to choose google wallet
Sep 23 00:04:28  sorry i should have precise, for buying legit app on google play
Sep 23 00:04:46  KBZoiD, be careful of companies like LODSYS
Sep 23 00:05:10  they tend to scare ppl with premium models or cashshop or whatever. good night.
Sep 23 00:05:15  well what i want to make is an online shop
Sep 23 00:05:22  ad2: There's no way the entire 30% goes to merchant fees.
Sep 23 00:05:26  and take payments inside my app
Sep 23 00:05:34  jfpoole, i really must go, but i officially read that in the past
Sep 23 00:05:37  it might have change.
Sep 23 00:05:41  but i cannot afford a 30% tax
Sep 23 00:05:46  :S
Sep 23 00:05:50  it's not "tax" technically
Sep 23 00:06:04  it's loss for you for sure
Sep 23 00:06:18  yeah..
Sep 23 00:06:48  so its inviable to make products available for shopping inside my app
Sep 23 00:07:05  for me and anyone else i suppose
Sep 23 00:07:34  I'm not sure what the policy is when it's not for purchasing stuff for the app
Sep 23 00:07:39  KBZoiD: I'd go through the Google Play contract with a lawyer to figure it out.
Sep 23 00:07:42  Consult your lawyer
Sep 23 00:08:28  i will
Sep 23 00:09:07  and if its impossible i will drop android and start developing for iOS
Sep 23 00:09:09  LOL
Sep 23 00:09:25  Heh, most likely same restrictions
Sep 23 00:09:35  then a webapp
Sep 23 00:09:37  haha
Sep 23 00:09:51  really, im quite impressed
Sep 23 00:09:55  didnt expect this
Sep 23 00:10:15  damn it
Sep 23 00:11:23  hey anyone here i need some help
Sep 23 00:25:42  sent a message to android developers on google plus asking for a solution on online payment method other than google's
Sep 23 00:25:45  crossing fingers
Sep 23 00:25:48  :D
Sep 23 00:37:49  I have removed keyboard focus on view startup from a normal view, but how can I do this for a dialogfragment
Sep 23 00:44:01  does the sgs3 dev edition just have an unlocked bootloader ?
Sep 23 00:45:05  anyone, trying to find out how to hide the soft keyboard for a dialogfragment.  (i.e. method within AndroidManifest does not work)
Sep 23 00:56:14  anyone have an idea on how to hide the soft keyboard for dialogfragment.  I have tried multiple things with no luck
Sep 23 01:50:35  does anyone know how to achieve a layout similar to this? http://bit.ly/PVfNcb   For each individual tweet, I was thinking about using a relativelayout and putting an imageButton with some textviews next to it. Is there a better way?
Sep 23 01:50:59  i am only talking about the tweets, not the tabs and stuff
Sep 23 01:51:10  andy23: yeah, thats fine
Sep 23 01:51:32  ImageView
Sep 23 01:52:08  g00s: o every time a new tweet is added, I would be adding another relativelayout. Is that okay?
Sep 23 01:52:38  andy23: you would be using a ListView to show your special rows
Sep 23 01:53:28  but would each row be contained inside a relativelayout?
Sep 23 01:53:38  yes
Sep 23 01:53:45  ok cool
Sep 23 01:54:55  also, should all the tweets(listview) be contained inside of a framelayout? I am going to put another section of content above the "tweets"
Sep 23 01:55:35  linearlayout, whatever
Sep 23 01:56:00  k thanks
Sep 23 01:57:08  yay jellybean finally showed up on my nexus
Sep 23 01:58:00  i started having a bunch of errors in my dev console now that more jellybean users are using it. but seems 4.1.1 not 4.1
Sep 23 02:09:37  hey my phone is stuck on the splash screen
Sep 23 02:09:51  but i am able to get to fastboot and the bootloader so how can i save my phone?
Sep 23 02:10:48  Imad: this is not a phone tech support channel
Sep 23 02:10:49  Imad: wrong channel, try #android-root
Sep 23 02:11:12  #android-root
Sep 23 02:42:31  anyone here running eclipse 3.8?
Sep 23 02:42:54  i'm trying to get the Run menu setup to run an app either in an AVD or on a device?
Sep 23 02:45:11  also, i'm just trying to run the basic "MY First App" and for some reason there doesn't seem to be a build.xml file so I can't run ant debug
**** ENDING LOGGING AT Sun Sep 23 02:59:58 2012