**** BEGIN LOGGING AT Tue Jun 05 02:59:58 2012 Jun 05 03:12:18 I like eclipse Jun 05 03:12:27 but then again, I can figure out how to get abs to work in it. Jun 05 03:12:43 I used to like Eclipse too Jun 05 03:12:47 until I had my eyes opened :) Jun 05 03:13:07 I tried to switch to intellij and it doesn't work well enough on my stack here. Jun 05 03:13:12 I also didn't like it as much Jun 05 03:13:42 I don't think intellij is any better. It seems like a personal choice. Jun 05 03:14:08 i find it a lot more useful for Android development Jun 05 03:14:28 what particularly? Jun 05 03:14:53 clicking "go to definition" on any R constant will take you to the appropriate file in res/ rather than the constant in R.java Jun 05 03:15:15 How would I go about making a image "fill parents minus x amount of pixels" Jun 05 03:15:28 margin, custom view group, put something in those pixesl Jun 05 03:15:34 we covered this yesterday Jun 05 03:16:25 you can also just type @string/whatever in while making your layouts and it it'll prompt you to create the constants in the strings.xml file in the appropriate res/ folder Jun 05 03:16:49 when you refactor the filename of a resource it will automatically update any code that references it through the R constant Jun 05 03:17:59 it supports multiple devices plugged into ADB too. can't remember if eclipse every did that properly or not Jun 05 03:18:20 it's nice deploying to 6 devices and being able to switch between their log output Jun 05 03:18:27 there's a bunch more advantages, but i'm heading home Jun 05 03:19:06 eclipse has a quick fix for creating string resources on the fly like that now Jun 05 03:19:09 adt, that is Jun 05 03:19:48 doesn't refactor the filename, though. Jun 05 03:20:21 yeah hitting ctrl+B when going through layouts to strings and such is super useful Jun 05 03:20:26 another good one Jun 05 03:20:35 I wish it worked half decent on my machine. Jun 05 03:22:42 would anyone be willing to help answer some questions about Handler? I'm new and the reference isn't quite clear. Jun 05 03:22:56 Paulcasals: you'll have to ask before anyone can answer... Jun 05 03:23:14 ooh, new version of idea. Jun 05 03:23:19 maybe it works better. Jun 05 03:24:10 I'm trying to get something to run after twenty seconds. Would handler be an efficient way to deal with this? Jun 05 03:27:40 http://developer.android.com/reference/android/os/Handler.html#postDelayed(java.lang.Runnable, long) Jun 05 03:27:46 yes Jun 05 03:29:20 thank you Jun 05 03:57:13 :| the layout preview in idea makes the eclipse adt layout previewer look like a joke. Jun 05 03:58:12 never used it Jun 05 03:58:21 how do you show it? Jun 05 03:58:47 hm, I'm trying to figure out how I even did it Jun 05 03:58:53 there may be a tab on the right that says preview Jun 05 03:59:31 oh yeah Jun 05 03:59:32 cool Jun 05 03:59:45 when you switch devices and themes Jun 05 03:59:48 it actually works. Jun 05 03:59:59 and pretty fast, too Jun 05 04:00:14 we use a lot of custom widgets so they're just showing up as blocks Jun 05 04:01:29 I work on lots of small projects, so this is pretty valuable to me Jun 05 04:01:45 readme have you tried ADT 20? Jun 05 04:01:50 now to figure out the editor Jun 05 04:01:54 I think mine is still on 19 Jun 05 04:01:58 let me check. Jun 05 04:02:07 20 has added some really nice improvements Jun 05 04:02:22 anwyay, bed time! Jun 05 04:02:34 night Jun 05 04:03:11 hm, is adt 20 not in the update site yet? Jun 05 04:13:49 hi, can i grab a copy of the original source of this (http://developer.android.com/reference/android/os/CountDownTimer.html) to edit and use amy application? where do i get it from? Jun 05 04:15:52 <_jeremy_> I have two applications which use adb server to interface with my linux machine. The first is easytether, for tethering my mobile internet to computer. The second is IP webcam, where I use a script to stream a video feed from my android phone camera to the computer. I would like to run them both at the same time. Is this impossible? Jun 05 04:18:05 ok I don't think I'll be using eclipse again :) Jun 05 04:18:26 suddenly the bugs I was seeing are gone after the updates to my system and to idea. Jun 05 04:18:48 and it has GITHUB INTEGRATION out of the box. Jun 05 04:23:48 readme: IDEA right? I was considering switching to it. Do you know any noticeable difference between ultimate edition and community edition for Android development? Jun 05 04:24:00 i have a ListActivity with onListItemClick() event handler. it starts different Activities (which show graphs usin org.chartengine libraries). when i click some item multiple times in a row my program crashes with NullPointerException. Here's the stacktrace http://pastebin.com/qDR7F4Kn Jun 05 04:28:22 f2prateek: i don't have the cash to shell out on ultimate edition Jun 05 04:28:36 and I am not really fond of trials. Jun 05 04:28:41 community is working well, though. Jun 05 04:28:51 I'm able to pull projects in from github, it's pretty cool Jun 05 04:29:14 it lists the watched repositories from my account as well as my own and lets me clone them instantly Jun 05 04:29:21 lol i just realised the ultimate one isn't free! That was stupid of me to expect anything else. Jun 05 04:30:25 wow thats useful, i use egit on eclipse. It takes so much effort and doesnt seem to offer any bonus features Jun 05 04:30:42 I didn't like that Jun 05 04:30:50 I was just using eclipse on the command line Jun 05 04:30:52 I mean, git Jun 05 04:31:05 I don't know how good the actual git management is in this yet Jun 05 04:31:14 but being able to explore github is good Jun 05 04:33:05 sounds good, i'll try it out this week too Jun 05 04:36:38 the github app sounds interesting, I want to try it out Jun 05 04:46:42 Beginner Question: I have two pairs of java and xml files. I've seen people using intents to pass along from one xml to the other, but is there a way to open the second java file and xml file in tandem? Jun 05 04:48:49 just wondering why you would want to do that? Jun 05 04:49:03 user can interact with only at a time Jun 05 04:49:52 To switch screens. After a set amount of time I want it to switch to the second screen. Jun 05 04:50:26 just fire the intent after the set amount of time then right? Jun 05 04:51:08 Right, so I would send the intent for the second xml? Jun 05 04:51:28 yeah, for the second java file (which is an activity with the second xml) Jun 05 04:53:08 actually you could show both at the same time with fragments, define two fragments. hide one at start, and hide one after set amount of time and show the other. I've actually used that in my app. Jun 05 04:54:35 Huh. That second solution makes more sense. Right now I'm just fumbling by way through intents. Jun 05 04:59:07 Oh! Okay. I totally forgot about setContentView. That explains the whole xml/java relationship for me. Jun 05 04:59:34 yeah thats basically that it works :) Jun 05 04:59:51 heres my code for the fragment hiding and stuff if you need it http://pastebin.com/HgzJAe3n Jun 05 05:00:20 just use a relative layout in the main to hold both fragments to take up the screen Jun 05 05:00:38 thanks for your help Jun 05 05:02:11 no problem Jun 05 05:08:13 so if I'm using a CursorLoader, ContentProvider, Service etc, how should I propagate errors from teh service back to the UI? Jun 05 05:09:53 and if say, the contentprovider gives back a cursor with stale data and then decides to go off and start a service to fetch more up to date data, how best to feed that back to the UI? e.g. for a loading icon or some such Jun 05 07:11:03 Hello Jun 05 07:14:32 anybody there? Jun 05 07:16:54 yup Jun 05 07:20:53 vavirta:i have problem in samsung galaxy s2.i am using the sip application and in samsung galaxy the sip user will register cuccessfully but in samsung galaxy s2 user will not register and show like wrong password .. Jun 05 07:23:14 never heard of sip application, sorry :/ Jun 05 07:23:53 jagruti_: wrong channel, this is app dev Jun 05 07:23:55 that's a question for #android Jun 05 07:24:16 vavirta: ok thanks Jun 05 07:25:01 g00s: but the question is also related to android because the sip user is also register with android coding.. Jun 05 07:26:15 g00s: how can i check the server response is come or not?i have use the api Jun 05 07:26:43 jagruti_: i don't know :( Jun 05 07:28:42 jagruti_: print the response string to logcat? Jun 05 07:29:07 are you developing anything or...? Jun 05 07:31:24 attach a debugger Jun 05 07:31:26 step through Jun 05 07:35:11 vavirta: i have call the api and get the result from server and when the server not running at that time it will go in catch{} so i know that server not respond.but now i want to give some time ..if within that time server response not come then i can alert the message..so how can i give that time Jun 05 07:37:12 which httpclient are you using? Jun 05 07:37:52 will this help? http://stackoverflow.com/questions/693997/how-to-set-httpresponse-timeout-for-android-in-java Jun 05 07:41:18 wow, the asus transformer x86 uses an i3/i5/i7 - i thought it would be some atom thing Jun 05 07:46:51 JakeWharton: cool man ! http://www.theverge.com/2012/6/4/3064157/square-dongle-walgreens-staples-fedex Jun 05 07:47:49 yep, lots of stores now Jun 05 07:47:57 taking over :) Jun 05 07:48:28 i wish i was a fly on the wall , over hearing square's position on wp8 Jun 05 07:48:48 i think many devs are still taking wait-and-see approach Jun 05 07:51:21 you wouldn't hear anything Jun 05 07:51:59 :) Jun 05 07:53:23 i think a WP8 client is just about as likely as a Symbian client Jun 05 07:55:58 actually, Symbian is more likely Jun 05 07:56:03 they have a larger market share Jun 05 07:57:03 have you developed for Window Phone? Jun 05 07:57:06 it kind of sucks Jun 05 07:57:32 it would probably be half-decent if it had Android's Intent system Jun 05 07:57:37 JakeWharton: How do I run one of your samples? ( I belive it is the fragments example I would like to look into a bit more, need tabbed view in my own app) Jun 05 07:57:47 no, i haven't. i wanted to try some other platforms but - for some reason don't want to do ios again Jun 05 07:57:50 import them into your IDE of choice Jun 05 07:58:08 Windows Phone isn't bad, they need another year or two to figure crap out Jun 05 07:58:19 XAML is crap, much worse than Androids XML Jun 05 07:58:47 Well, it's fine for layouts. It's when you start putting in little bits of logic that it becomes crap quickly. Jun 05 07:59:24 wut ees theees http://jgilfelt.github.com/android-actionbarstylegenerator Jun 05 08:01:58 generates all the state-list drawables and 9-patches for theming the action bar Jun 05 08:02:27 but if you use abs, say light theme, do you need this ? Jun 05 08:02:31 or is it still useful ? Jun 05 08:03:05 JakeWharton: Hmm, do you have any example that got a menu/actionbar like this, http://developer.android.com/design/media/tabs_stacked.png Jun 05 08:04:01 I've never really considered doing this before, but will this do what I think it does? bool a = false; bool b = true; methodWithBoolArgument(a = b); Jun 05 08:04:13 g00s: I recommend that nobody use the default styles Jun 05 08:04:22 granden: yes, in the 'demos' sample Jun 05 08:05:12 granden: that's the default behavior Jun 05 08:05:18 just use tabs and they do that automatically Jun 05 08:05:23 what I want that to do is assign a to true, and then pass the value (true) of a to the method there Jun 05 08:05:49 when i call the api for getting the data from server in android 2.3 then it will give result very quikly but when i use the api in android 4.0 then it will take too much time..so whats the problem can anybody know? Jun 05 08:06:43 you are using multiple AsyncTasks Jun 05 08:06:52 and you are not aware of the change in default executors Jun 05 08:07:39 try a helper method like this one I wrote to ensure your AsyncTasks are always executed on a thread pool Jun 05 08:07:39 https://github.com/UweTrottmann/SeriesGuide/issues/103 Jun 05 08:08:05 but, of course, be wary of doing so as you can run into fun threading bugs! Jun 05 08:09:10 JakeWharton: Ah, ok Jun 05 08:09:49 not sure why I even check if you're using a version older than Donut. The class loader on 1.6 and earlier will evict that class right away due to the executeOnExecuter method being present Jun 05 08:09:59 anyone know? Or should I just do it the normal way and stop trying to find shortcuts Jun 05 08:10:44 JavaDog: a = b; method(a); Jun 05 08:10:59 don't write code that is hard to understand Jun 05 08:12:04 I'm just wondering if it achieves the same thing Jun 05 08:12:31 it does, with significantly greater ambiguity Jun 05 08:12:53 Hey guys Jun 05 08:13:08 neat! Jun 05 08:13:29 Surprisingly, that's my only question of the night. Jun 05 08:13:40 See you later, all! Jun 05 08:14:49 somebody made a ribbonMenu - whatever the fuck that is https://github.com/darvds/RibbonMenu#readme Jun 05 08:14:51 I'd like to draw an image over my litsviews's row view (that i inflate from an xml), where should i start? I've been reading on how to override a canvas' onDraw but i don't know how to appl it to a specific view Jun 05 08:15:25 from here : http://www.droidnova.com/playing-with-graphics-in-android-part-i,147.html Jun 05 08:15:36 ddreamer0: Why don't use use a FrameLayout as the root of your itemview layout ? Jun 05 08:16:45 g00s: You can also look at https://github.com/lexs/android-delicious Jun 05 08:16:49 yesterday I had my phone galaxy s2 officially upgraded to ICS, now the app I wrote crashes immidietly when I try to run it, giving me "android.os.NetworkOnMainThreadException".... is it something new from ICS? Jun 05 08:17:09 sasson: It's something from Honeycomb Jun 05 08:17:44 it prevents you from doing network operations on the UI/main Thread Jun 05 08:17:58 K Jun 05 08:18:11 sasson: thats a rookie mistake, you know - like chewbacca falling for the food and getting caught in the net Jun 05 08:18:24 sasson: Use an AsyncTask, another Thread or a IntentService to do your work ;) Jun 05 08:19:31 g00s: I also started to write some articles on my blog dealing with how to develop a great sliding menu but it's something different than the ribbon menu which is much simplier to my mind. Jun 05 08:19:58 cyrilmottier: ok, i never saw google+ so i didn't know what they meant Jun 05 08:20:13 i guess it was first seen there Jun 05 08:21:06 i've stopped using the Google+ app altogether Jun 05 08:21:07 g00s: Nope Glassboard has one before Google + Jun 05 08:21:08 cyrilmottier: my listview is withing a frame layout, is that what you mean? what i'd like to do is overlap an image on top of another ImageView Jun 05 08:21:44 they completed destroyed the "up" affordance and made it ambiguous depending on where you are within the app Jun 05 08:22:09 ddreamer0: FrameLayout stacks children View on top of each other. You can use it to overlaop an ImageView on top of another ImageView Jun 05 08:22:34 is there code to emulate a DESFire NFC tag on android? Jun 05 08:22:37 JakeWharton: totally agree with you :s Jun 05 08:23:58 JakeWharton: Oh damn thats a lot of examples and code. Harder then I thought it would be to break it. You dont have any standalone version of TabNavigation.java ? Jun 05 08:24:16 in stream, press "up", get side menu. click hangout, press "up", back at stream. go to photos, click "up", side menu. go to local, now you're in Maps, there is no "up" and pressing the action bar icon takes you to default Map view Jun 05 08:24:26 thanks Google Jun 05 08:24:55 simplification and disambiguation of the back button MY ASS Jun 05 08:25:11 haha, definitely true ^^ Jun 05 08:25:29 granden: ActionBarSherlock uses the exact same API as the built-in action bar. Any tutorials or examples you see for it will also apply to ABS Jun 05 08:25:36 Best option we have : stop using Google+ Jun 05 08:26:33 TabNavigation has like 10 lines in it! Jun 05 08:28:32 JakeWharton: Yes I noticed, so I did copy paste that code, to my project. But get some errors, quess it is my main.xml and manifest file. Jun 05 08:28:51 so its mostly those I would like to fix Jun 05 08:31:41 does anyone have knowledge on drag and drop in android? Jun 05 08:31:43 http://stackoverflow.com/questions/10878352/android-ontouchlistener-not-working-properly Jun 05 08:34:31 any thoughts? Jun 05 08:34:38 anyone? Jun 05 08:35:45 Guys, is there a way to know which paths are actually used by the MediaStore to search for Music? Jun 05 08:36:03 because my users want to have a Folder View for they music player Jun 05 08:39:28 JakeWharton: are you around? Jun 05 08:39:35 sort of Jun 05 08:39:36 working Jun 05 08:39:51 hmmm, do you have a sec to look at my non-working code? Jun 05 08:40:07 the SO post? Jun 05 08:40:09 i looked at it Jun 05 08:40:12 looked crazy :) Jun 05 08:40:28 what do you mean crazy? Jun 05 08:40:36 there are drag and drop APIs Jun 05 08:40:47 API 11 and beyond Jun 05 08:40:55 I'm working on API 7 Jun 05 08:41:22 that's when they were introduced into the SDK Jun 05 08:41:37 the music app has had drag and drop for a loooong time Jun 05 08:41:44 are you aware of a working API for this? Jun 05 08:41:53 also the homw screen Jun 05 08:41:57 *home Jun 05 08:42:03 JakeWharton, pretty shitty d&g for the music app Jun 05 08:42:16 I think that the music app has been developed by not well payed indians Jun 05 08:42:21 stermi: the home screen app has a very good one Jun 05 08:42:45 thepoosh, sorry? Jun 05 08:43:00 aaaaaaaah you mean d&g? Jun 05 08:43:15 *d&d Jun 05 08:43:18 d&d Jun 05 08:43:25 Well it's open sourced Jun 05 08:43:33 so you can take a look :) Jun 05 08:44:12 I found a working example but it wont work on my code for some reason Jun 05 08:44:32 I was complaining about music app because I can't believe that it's been developed by some Google eng Jun 05 08:45:24 there are a few native apps that work like shit Jun 05 08:46:47 stermi: any thoughts on why my code refuses to work? Jun 05 08:47:06 I'll ask to my coworker Jun 05 08:48:57 בם'-'םרלקר? Jun 05 08:49:01 cow-worker? Jun 05 08:49:05 :P Jun 05 08:50:52 thepoosh, I think that your card is taking the click event Jun 05 08:50:57 so d&d wont happen Jun 05 08:51:08 hmmm Jun 05 08:51:22 so should I return false if the card was not clicked? Jun 05 08:51:37 it doesn't flip over (as it should when clicked) Jun 05 08:51:49 can you please disable the onClick on the card internal layout? Jun 05 08:52:02 well one problem at time Jun 05 08:52:45 let me see if I can do this Jun 05 08:52:52 I'll try disabling the onClick Jun 05 08:53:03 well click != dd because click is down+up in the same position Jun 05 08:54:59 it didn't work anyway Jun 05 08:55:26 stermi: it crashed with this: http://pastie.org/private/yqm55mxwlfv8u9af3pgq Jun 05 09:00:27 stermi: you are correct, the onClick prevented the movement Jun 05 09:00:35 is there a way around it? Jun 05 09:01:24 well you can do 2 thing Jun 05 09:01:42 1) you have only 1 part of the card that allow the dd (as for the music player) Jun 05 09:02:21 maybe I'll try changing to double tap Jun 05 09:02:22 :S Jun 05 09:02:39 ANDROID Y U SO ANNOYING?!?!?! Jun 05 09:02:41 2) you can handle the 2 events in this way -> click == down+up in the same time (under 100ms) in the same x/y location, instead dd == down+up in different times ( > 50/100ms) Jun 05 09:03:59 stermi: option 2 looks good Jun 05 09:06:45 I have a question, I have a simple app that connectes to a server and do a job according to the answer from the server, I used to connect to the server in a synchornized way (calling the class from main UI and waiting for an answer). now I want to do this A-sync. what is the best way to wait for the answer? I want to change the tcp class to AsyncTask Jun 05 09:09:20 sasson: Is the app active during this "update" period? Jun 05 09:10:22 not really. but I'm not telling it to wait. so if the update is in the backround the main UI will keep on going without the updated info Jun 05 09:11:44 sasson: why not just create a thread, make the important socket stuff in your class mutually exclusive and use the class as usual? Jun 05 09:12:31 I'm not sure what mutually exclusive means Jun 05 09:13:02 sasson: http://en.wikipedia.org/wiki/Mutual_exclusion Jun 05 09:13:50 sasson: use locks and semaphores to ensure several threads can use your tcp class at the same time without interfering with each other Jun 05 09:14:11 I have only one tcp call at a time Jun 05 09:14:32 the thing is I need to wait for an answer from the tcp client to continu my run Jun 05 09:14:55 if I could do something like "wait for single object" in windows Jun 05 09:15:05 sasson: let's see if I got this right: Jun 05 09:15:53 user is in app , wants to update data, presses button, the app then tells the user it's updating in the background. when your tcp class finishes, the updated info is displayed. Jun 05 09:15:59 sasson: about right? Jun 05 09:16:10 yes Jun 05 09:16:54 sasson: good, you are going to need a separate Thread to do this, so the UI can work in parallel., Have you ever worked with Threads? Jun 05 09:17:09 yes Jun 05 09:17:25 but wouldn't AsyncTask be simpler? Jun 05 09:17:50 but I still don't know how to show "update in progress" until I get an answer from the thread Jun 05 09:18:37 sasson: yes, ok . gimme a second. Jun 05 09:18:59 k, thanks Jun 05 09:19:35 Got problem: http://stackoverflow.com/questions/10894576/android-mediastore-know-scanned-paths need help :) Jun 05 09:20:13 can I somehow have ndk-build output some of my .so files into a different directory? Jun 05 09:22:03 sasson: are you calling publishProgress(...) in your doInBackground()? Jun 05 09:23:07 no. I haven't started the switch from regular calss into AsyncTask Jun 05 09:23:14 stermi: can you post an answer on my question so I'll be able to accept? Jun 05 09:23:23 sure :) Jun 05 09:23:45 do you need a link? Jun 05 09:24:05 oh gosh my boss (not developer) said to me I cannot tweet my problem because other companies that devs other music player are spying me :/ Jun 05 09:24:07 sasson: you don't have to change your tcp class to asynctask Jun 05 09:24:21 stermi: LOL Jun 05 09:24:24 cyrilmottier i've been checking into the framelayout, must i embed both of my images in the framelayout xml, and then programatically overlap the second over the first one? Jun 05 09:24:29 what a douche (NSFW) Jun 05 09:24:42 sasson: you have to make an AsyncTask implementing your tcp class Jun 05 09:25:03 ddreamer0: The XML will be enough Jun 05 09:25:24 fmauro, extend it into AsyncTask Jun 05 09:25:46 cyrilmottier: ok but i want to have a fixed image, that will act as a background, and then paint new images over that one dinamically Jun 05 09:25:51 ddreamer0: makes image2 being drawn on top of image1 Jun 05 09:26:09 sasson: I wouldn't because if you were ever to update 2 things at the same time you could get race conditions on your socket descriptors. Jun 05 09:26:35 i havea a view = findViewById... and then i fill it with imgview.setImageResource(R.drawable....); Jun 05 09:26:47 ddreamer0: then use Jun 05 09:27:02 stermi: http://stackoverflow.com/questions/10878352/android-ontouchlistener-not-working-properly Jun 05 09:27:03 sasson: give me a sec and I'll whip you up a sample of how I would implement it. It'll take 2 or 3 minutes. Jun 05 09:27:30 what i'd like, is to do another .setImageResource over that same view that would overlap it (with a smaller image) Jun 05 09:27:35 fmauro, ok Jun 05 09:27:49 is this possible without creating a second view ? Jun 05 09:27:54 fmauro, there will never be 2 connections at the same time though Jun 05 09:28:09 fmauro, so I'm not worried about race conditions Jun 05 09:29:45 done Jun 05 09:30:12 accepted!!! Jun 05 09:34:35 ty :) Jun 05 09:36:21 cyrilmottier ok i got it working, now can i change the coordinates of that smaller image ? Jun 05 09:40:35 sasson: still on it, .. :) Jun 05 09:46:57 Is it possible to prevent the volume being changed? Jun 05 09:49:20 sasson: ok got it Jun 05 09:49:38 do you want the whole project? or just the Activity+TCPclass? Jun 05 09:50:58 sasson: I'll just leave the whole project here: https://dl.dropbox.com/u/1747513/AsyncTaskExample.zip Jun 05 09:51:50 fmauro, thanks I'll look at it. Jun 05 09:52:31 sasson: this example just downloads the same image all the time, but while it's downloading it changes the textview to "updating" and then back to "not updating" Jun 05 09:52:53 sasson: I hope this is enough to solve your problem Jun 05 09:56:25 I will let you know how it went Jun 05 09:59:39 I'm looking to prevent the media audio stream from being changed by the volume buttons. Jun 05 10:02:44 cyrilmottier ok i got it working, now can i change the coordinates of that smaller image ? Jun 05 10:06:18 fmauro, what is going in the main UI while the AsyncTask is running? Jun 05 10:06:36 in the main activity Jun 05 10:06:57 anyone have a good tutorial on how to use doubletap detection? Jun 05 10:12:51 no but it's really not that hard. simply make your desired class implement OnTouchListener, OnGestureListener, OnDoubleTapListener. Then create an instance of a GestureDetector , then in your onTouch() you first pass the event to your gestureDetector through myDetector.onTouchEvent(event) and see if ha handles it. if not, regular input. Jun 05 10:13:32 thepoosh: sry didn't hilight Jun 05 10:17:35 fmauro: thanks Jun 05 10:25:58 Got problem: http://stackoverflow.com/questions/10894576/android-mediastore-know-scanned-paths need help :) Someone know how to know which paths are used to scan music files? I need to make a Folder View for music player Jun 05 10:31:37 thepoosh: I've made a small example for you that implements it, do you want it? Jun 05 10:31:45 Hello all, is there a way to know if there was a onMove event? Jun 05 10:31:48 fmauro: sure Jun 05 10:32:25 thepoosh: https://dl.dropbox.com/u/1747513/DoubleTapExample.zip Jun 05 10:33:41 thepoosh: notice the return true; in the onDown(MotionEvent e) implementation. Jun 05 10:34:10 opening the file now Jun 05 10:35:28 sasson: hey, sry didn't see you there. Jun 05 10:36:30 sasson: the main UI can proceed as you wish as long as you implement a way of handling the change between "updating" and "not updating", I did this in the AsyncTask itself. but you could implement a Handler and call it from outside. Jun 05 10:36:59 sasson: or is it something else you want to know? Jun 05 10:48:23 fmauro: thanks for the code, it didn;t help that much Jun 05 10:48:26 :S Jun 05 10:48:48 I need to control drag and drop and onClick on the same View Jun 05 10:49:06 it didn't work for me Jun 05 10:49:08 :S Jun 05 10:50:02 thepoosh: ok, so if you are implementing drag and drop Jun 05 10:50:29 just a sec, I'll paste my code Jun 05 10:50:44 thepoosh: yes that would be good Jun 05 10:50:55 :D Jun 05 10:51:18 btw, is there a way to detect in the ACTION_UP if there was a ACTION_MOVE ? Jun 05 10:52:21 you would have to set a flag outside, I usually handle these things with a integer touchMode variable, and i set it to predefined states like TOUCH_MODE_DRAG TOUCH_MODE_NONE etc... Jun 05 10:52:59 then you can handle things accordingly in your ACTION_UP event. Jun 05 10:53:05 hmmmm Jun 05 10:53:08 sounds good Jun 05 10:55:34 thepoosh: no code afterall? Jun 05 10:55:47 uploading the project (18 MB) Jun 05 10:55:49 anyone use PuTTY? Jun 05 10:55:53 do you want just the code? Jun 05 10:56:31 thepoosh: if the listener is implemented separately from the Activity then the project yes, if it's in the same file the code will suffice. Jun 05 10:56:52 *than Jun 05 10:57:20 fmauro, thanks for the help Jun 05 10:57:32 sasson: np Jun 05 10:58:26 fmauro: http://pastie.org/private/dytz9muphnfzhn6x6savw Jun 05 11:00:44 fmauro: https://www.box.com/s/6dc188fbc2fd199102a6 Jun 05 11:00:57 thepoosh: well you didn't implement neither OnDoubleTapListener nor OnGestureListener. is the second link the project? Jun 05 11:01:07 yes Jun 05 11:02:37 also you are not telling the current layout that it should be used as OnTouchListener. take another look at my example. It implements the Activity AS the OnTouchListener, you however want to create a separate OnTouchListener, which is fine. But you have to set it as listener for the current layout. Jun 05 11:03:10 I'll take a peek into your project and see how it behaves. Jun 05 11:03:18 ok Jun 05 11:03:35 fmauro: I want to move different objects accross the screen Jun 05 11:07:48 thepoosh: I see, you implemented the DoubleTap classes in Card. this is not intended. You need the Layout, where your cards are, to handle your input actions. then you would go through your cards to see which one has been touched. Jun 05 11:08:23 but I want the card to rotate on doubletap and the view to drag and drop on else Jun 05 11:08:30 fmauro: ^ Jun 05 11:10:26 thepoosh: I know. But the Classes are not implemented that way. your Card class is not a view, it has 2 views, which I would also implement differently (namely through a canvas), but not the class itself. So Card does not know whether it's been doubleTapped or not. Jun 05 11:10:43 thepoosh: you will need to handle this differently. Jun 05 11:11:26 oh crap Jun 05 11:11:27 :S Jun 05 11:12:06 I can do this from the parent (mainActivity) but I need to know if there was a move action or not Jun 05 11:12:19 and you say I can detect this with another flag? Jun 05 11:12:21 fmauro: ^ Jun 05 11:14:30 first of all I would change the way you draw the cards. you are using ImageViews. This generates a huge amount of overhead which you can avoid when using Canvas and Bitmaps to draw your cards. Take a look at the LunarLander for example. ImageViews are not meant to be dragged around. but if you use a canvas and bitmaps this is very easily implemented. Jun 05 11:15:19 thepoosh: have a look at my code for a spider solitaire I did to see what I mean: https://gitorious.org/solspider/solspider/trees/master Jun 05 11:16:57 thepoosh: although there is no doubleTap listening here you can see how to draw cards effortlessly and without having to bother with views. Jun 05 11:17:28 thanks, I'm taking a loook now Jun 05 11:33:43 thepoosh: did you scan all these cards by hand? Jun 05 11:33:55 thepoosh: they look pretty nice. Jun 05 11:36:26 fmauro: not me, a co-worker made them in photoshop Jun 05 11:36:44 look for Card-Aura on the market Jun 05 11:36:50 just finished it last week Jun 05 11:38:46 They are made from the Bicycle Poker 808 set right?. See the CardBitmapFactory in the source , I've extended it as to be able to render similar cards (expect for J,Q,K ofc) to any size, see here: https://play.google.com/store/apps/details?id=com.admindojo.klondike Jun 05 11:39:57 nice Jun 05 11:40:52 thepoosh: I thought this would work better with tablets and bigger screens in general. Jun 05 11:41:10 the solitare? Jun 05 11:41:29 yes, with a dedicated card rendering to any size I mean. Jun 05 11:48:18 How do I build my eclipse project so I get an .apk file for my phone? Jun 05 11:48:24 dont want to run in the emulator Jun 05 11:49:01 you have one generated in your ./bin folder Jun 05 11:49:33 granden: but you can also plug in your phone and run it directly through adt. Jun 05 11:50:10 granden: you will need to enable unknown package sources on your phone and maybe (if you're on linux) add a udev rule to connect your phone Jun 05 11:51:12 fmauro: I'm fine just getting the .apk file. Putting it in an Dropbox folder so a few more users can test it. Jun 05 11:51:37 granden: yes, but remember to enable unknown sources or they won't be able to install it. Jun 05 12:11:20 good morning to all my little rays of programming sumshine Jun 05 12:14:24 sum(shine); Jun 05 12:14:39 ;) Jun 05 12:15:44 my irc client crashes when I run /list...could someone run it for me and send me the results Jun 05 12:16:28 uhm.. can't really copy/paste all that here, sorry Jun 05 12:16:43 well email it to me Jun 05 12:16:47 you want the /list of freenode? Jun 05 12:16:53 or let me see if I can open private window Jun 05 12:16:58 yes fmauro Jun 05 12:17:03 GeeksOnHugs: I run irssi in a ssh terminal.. I can't even mark it all Jun 05 12:17:21 kk no worries Zider ;) Jun 05 12:17:25 GeeksOnHugs: so am I. Irssi through screen. Jun 05 12:18:05 kk...I'm getting a new linux machine soon, I'll be getting a new irc client Jun 05 12:18:28 not sure yetwhich one, I have'nt used irc on linux Jun 05 12:18:56 GeeksOnHugs: GUI? xchat. Jun 05 12:19:04 GeeksOnHugs: text terminal? irssi. Jun 05 12:20:01 yah GUI prolly Jun 05 12:20:11 thanks Jun 05 12:20:22 GeeksOnHugs: having an always-on irssi on a separate server is wonderful. you can log in from anywhere and need not worry about connection. Jun 05 12:21:01 do you know which bit tiorrent client for windows? I have to download install DVD images for linux and the download is bit torretnt only...never used BT Jun 05 12:21:19 do you do your development from the command line? Jun 05 12:21:22 Irssi proxy ftw Jun 05 12:21:46 torrent - utorrent, irc - konversation Jun 05 12:22:00 if you do command line stuff, you should check out Terminal IDE in Google Play...iit's a command line shell...you can run on Android directly Jun 05 12:22:06 ty Jun 05 12:23:07 on average how long will 6-7 Gigabytes take on cable internet? Jun 05 12:23:24 do the math Jun 05 12:23:26 GeeksOnHugs: this is hardly on topic man :) Jun 05 12:23:32 I should have all my parts by tommorow or thursday at the latest, I hope I didn't wait too long to start downloading Jun 05 12:23:55 Im building a development machine :P but ok :) Jun 05 12:25:47 6-7GB on my home connection takes, oh, 4-5 minutes :D Jun 05 12:28:33 Leeds: wow, ~150 Mbit/s. Jun 05 12:29:14 gigabit, but of course nobody serves that fast Jun 05 12:30:04 Leeds: you have a gigabit WAN uplink? what are you on a backbone?. (sry super off-topic, I'll stop) Jun 05 12:30:17 gigabit fibre at home Jun 05 12:30:48 who the heck serves gigabit connections to consumer residences? Jun 05 12:31:07 my ISP does.. just not to my area :( Jun 05 12:31:20 never even heard of that Jun 05 12:31:27 neither have I Jun 05 12:31:47 couple of ISPs supply fibre to my building Jun 05 12:31:55 I'm a long way from the US, of course Jun 05 12:32:10 same here Jun 05 12:32:34 yes, but are you granted best-effort bandwidth of 1 Gbit? I don't think so. Jun 05 12:32:51 "best-effort"? Jun 05 12:33:07 testing to the local internet exchange tends to come around 750mbit down Jun 05 12:33:20 obviously from there it's up to whatever route Jun 05 12:34:03 I'm limited to 100/100 right now.. and not even ipv6.. :/ Jun 05 12:35:03 Zider: that sounds reasonable. and awesome symmetric 100. I'm running on 50/10. need , more, speed... Jun 05 12:36:16 just did a test - this is using the local government telecoms regulator's speed test - and got 782mbit down, 282mbit up, and 3ms ping Jun 05 12:37:00 Leeds: good on you mate. wow. Jun 05 12:37:20 oh... and it costs about US$30 per month... last word :) Jun 05 12:37:49 even cheaper than my line Jun 05 12:37:52 bastard ;) Jun 05 12:41:34 wow I'm getting 2 MB/s Jun 05 12:42:48 well yah, I prolly got 10 mbps download, but being served 2 mbsps I've never seen this fast before\ Jun 05 12:44:47 lol, it's cool how bit--torrent accelerates like a car Jun 05 12:47:14 uhm.. ok.. Jun 05 12:47:28 compared to servers that are fast from the start? :P Jun 05 12:47:43 yah Jun 05 12:47:50 lol...but still gets faster Jun 05 12:48:47 every second it's like when I start then: 50 kbsps, 150 kbps, 500 kbps, 850 Kbps, 1 gbps, 1.5 gbps, 2 gbps....I dunno, I found it cool heh Jun 05 12:49:27 Getting some error, about page having to be abstract class. Jun 05 12:49:32 but dont know why, http://pastebin.com/0uSePRep Jun 05 12:49:33 now it's uploading too, that means someone else is downloading the same file? or my machine is used for random data? Jun 05 12:49:48 same file, yes Jun 05 12:49:53 it says my woops wrong page Jun 05 12:50:31 Zider thanks :) Jun 05 12:50:32 http://pastebin.com/9cBpFYXY Jun 05 12:50:35 that is the correct one Jun 05 12:50:41 GeeksOnHugs: no problem Jun 05 12:50:46 I'm off from work now Jun 05 12:50:48 it says my public class EuropeanTrophyActivity has to be abstract Jun 05 12:50:49 cya! Jun 05 12:50:53 cya bro Jun 05 12:51:15 sorry granden, am too noob to help :( Jun 05 12:51:22 granden: what does it say specifically? Jun 05 12:51:28 paste the error too Jun 05 12:52:21 granden: you implement TabListener Jun 05 12:52:22 granden: i assume you have not implemented all abstract members from your base class/interface Jun 05 12:52:26 but don't implement its methods Jun 05 12:52:43 *you declare your class as implementing TabListener Jun 05 12:52:53 http://developer.android.com/reference/android/app/ActionBar.TabListener.html Jun 05 12:53:59 MDijkstra: Ah, trying to get that ABS thing in my abb, dont really know how to do it, thanks. Jun 05 12:54:42 if you're not using Tabs you won't need the 'implements ActionBar.TabListener' bit Jun 05 12:54:54 but you should read up on interfaces :) Jun 05 13:00:00 wtf all these canibals...watch out for zombies yall Jun 05 13:00:24 could you try to keep it at least a little bit on topic please? Jun 05 13:00:53 how would I write a zombie detector app, to protect from all these canibals? Jun 05 13:01:02 j/k :P, ok sory Jun 05 13:07:03 No arrays in sharedpreferences? Bad google :/ Jun 05 13:07:32 why Jun 05 13:07:49 yeah, its kind of a shortcoming Jun 05 13:08:26 I have a couple of these moments a day on Android. Very basic functionality that's simply missing. Jun 05 13:08:51 Hdroid: what kind of array do you want from sharedPrefs? Jun 05 13:09:01 fmauro: an array of settings :) Jun 05 13:09:10 In this case, the result of a multiselect dialog. Jun 05 13:09:44 Hdroid: sooo, multible values for one setting, or a setting, returning an array which you then in turn read from shared prefs Jun 05 13:10:03 The latter Jun 05 13:10:09 Well, write and later read, but yeah. Jun 05 13:10:14 I guess I'll serialize to json. Jun 05 13:10:25 I do that a lot. Jun 05 13:10:27 Hdroid: *nod* it's what I would do too. Jun 05 13:10:28 you can also just use some delimiter and split on that Jun 05 13:10:52 Yeah I know what I can do, just pissed that I have to do it :P Jun 05 13:11:42 maybe you should dump your stuff into sqlite anyway ;) Jun 05 13:11:53 Bah, sqlite is as ugly as it gets on android. Jun 05 13:11:58 Sooo much boiler plate. Jun 05 13:12:17 then he'd has to reimplement SharedPreferences Jun 05 13:12:20 Besides, it's not sql data. It's just a list. Jun 05 13:12:20 have Jun 05 13:12:25 Yes, that too. Jun 05 13:13:09 As well as manage cursors, schema updates, queries and types, gahh. Jun 05 13:14:23 Has anyone here ever outsourced Android work? Jun 05 13:14:27 Hey guys, I have a listview that gets the clicked item's children and stores it into a string arraylist. How do I go about displaying the children in a new listview? I can't create a new intent, can I? As I need to pass the information to the new activity Jun 05 13:14:35 anyone noticed how once in a while a webview just doesnt go to the site - is there any way to kickstart it? Jun 05 13:14:38 Hdroid sure Jun 05 13:14:46 gaz`: what are your experiences? Jun 05 13:14:57 not too bad Jun 05 13:15:06 ive outsrced all kinds of work Jun 05 13:15:10 i usually dothe android stuff myself now tho Jun 05 13:15:24 but yeh if u get a good duy it can work Jun 05 13:15:30 I have 3 remote workers right now. Jun 05 13:15:34 nice Jun 05 13:15:36 thats what i am Jun 05 13:15:42 The Android guy is a great worker, not a very good thinker :o Jun 05 13:15:54 haha Jun 05 13:16:44 i just outsrced some wp7 Jun 05 13:16:47 went reasonably well Jun 05 13:17:04 we someties outsource UI Jun 05 13:17:23 Timmaah1201: where do you get the data to display from? Jun 05 13:18:10 Hdroid heres my cv is u ever need more :) www.radiantsilverlabs.com/gaz Jun 05 13:18:18 Timmaah1201: why can't you create a new intent? :) it has stringarray Jun 05 13:18:25 i have 2 new awesome android apps that ive not adde dyet due to NDA :) Jun 05 13:18:39 gaz`: hm can you compete with Indian wages? :O Jun 05 13:18:41 initially, the xml is parsed and all relevant data stored in arraylist. When the user clicks on one of the items in the list, it parses the xml file to then see what those children are and returns them in an arraylist Jun 05 13:18:47 Hdroid definitely not :) Jun 05 13:18:57 ixc: how does that work out? Jun 05 13:19:25 Timmaah1201: it's generally not such a good idea to pass large data structures around as intent extras Jun 05 13:19:52 Hdroid: can indians compete with the software design quality expected from experienced (overpaid) developers? Jun 05 13:19:56 the arraylists themselves dont hold more than 20 items Jun 05 13:19:57 Timmaah1201: if you have a seperate model layer you can simply pass the item id to the new activity Jun 05 13:20:04 and let it independently query the data Jun 05 13:20:21 Hdroid: basicly we describe functions, inputs etc; and they make a ergonomic layout basic activity Jun 05 13:20:30 is it just Intent I = new Intent(oldClass.class, newClass.class, String tagName) ? Jun 05 13:20:38 what would be a good way for my app to determine if it is running on my own phone? I wish to show additional menu options for example Jun 05 13:20:46 Ge0rG: not by a long shot. But the pay is 1/4 so there is some margin :) Jun 05 13:20:53 its before we start work on project, some customization we do Jun 05 13:21:39 Hdroid: you know, with HR 1/4 + 1/4 + 1/4 + 1/4 is not always = 1... ;) Jun 05 13:21:45 Timmaah1201: an intent is just a request Jun 05 13:21:47 to android Jun 05 13:21:53 'start this activity' Jun 05 13:21:56 in your case Jun 05 13:22:24 right.. but would i not need to create the intent first and then do startActivity(intent) ? Jun 05 13:22:31 Ge0rG: true enough :) but even the bigshots aren't necessarily 1=1 :) Jun 05 13:22:34 damn they keep forgetting my soy sauce for the dumplings Jun 05 13:22:34 yes, you should Jun 05 13:23:01 Timmaah1201: you can pass parameters to the activity you start with i.putExtra() Jun 05 13:23:30 Timmaah1201: but it's generally a decent idea to keep activities semi-autonomous if you can Jun 05 13:23:43 ok, so better to pass a string rather than a string array Jun 05 13:23:57 Timmaah1201: ie, if you let activity A query the data for B and you then want an activity C to also start B Jun 05 13:24:09 If your array doesn't have hundreds of elements, I see no reason why you shouldn't just put it in the intent. Jun 05 13:24:13 I've done crazier things. Jun 05 13:24:16 then you have to duplicate everything you've done in A in C as well Jun 05 13:24:29 Hdroid: it depends on the circumstances, sure Jun 05 13:24:36 but it's easy to code yourself into a corner this way Jun 05 13:24:39 i find all these activities pretty long winded Jun 05 13:25:15 with so much duplicated code, guess i should make my own activity class and extend from it Jun 05 13:25:24 * Ge0rG used to attach a logcat dump to an email intent... with the effect that the whole intent magically disappeared on some phones Jun 05 13:25:31 http://ruleoftheinternet.com/ Jun 05 13:25:41 alright, thanks for the help guys Jun 05 13:25:45 lol mikedg Jun 05 13:25:46 Ge0rG: that's rather extreme, though :) Jun 05 13:26:06 Hdroid: extreme it was on the SGS2, with an average log file size of ~1MB Jun 05 13:26:11 hey guys, what do you think about appbrain, any good? Jun 05 13:26:49 Ge0rG: hah yeah, and crazy Samsung dumps so much stuff to logcat. Jun 05 13:29:19 no one? alright, I'll take a plunge then, see how it goes. Jun 05 13:29:44 fmauro: I have no experience with it Jun 05 13:29:51 Keep us posted :P Jun 05 13:30:24 will do, I thought I might try this as opposed to AdMobs accidental clicks. Jun 05 13:40:41 Is-it possible to have a three steps slidingdrawer? Jun 05 13:40:48 JakeWharton: ARe you there? Jun 05 14:23:20 lol -- sony now requires huge deposits for its developer loaner program due to "recent incidents of fraud" Jun 05 14:23:30 the deposit on the liveview is more than it costs to just buy one Jun 05 14:24:07 but they now have the smartwatch. 75 deposit. might as well just buy one Jun 05 14:24:40 both are lame Jun 05 14:25:42 "smart watches" will never go mainstream until there battery life is better Jun 05 14:25:45 I am using a request interceptor, to add a header in certain situations. However to make the header I need to retrieve the entity from the request. How can I get an entity from HttpRequest? Jun 05 14:25:52 JakeWharton: Your TabNavigation example, the tab-name gets printed in the context area. Jun 05 14:25:57 Could I remove that? Jun 05 14:26:16 Jug6ernaut: that's what they said about smartphones Jun 05 14:26:32 oGMo when? Jun 05 14:26:40 2001? Jun 05 14:26:47 if anything, smart watches won't "go mainstream" simply because phones are already replacing watches, and no one wants to bother Jun 05 14:26:51 oGMo: and, incidentally, the first 'modern smartphone' did everything to get decent battery life Jun 05 14:27:23 or I should say successful consumer smartphone Jun 05 14:27:32 phones are not replacing watches :\ Jun 05 14:27:35 MDijkstra: depends on what you count .. palm phones achieved decent-ish battery life by modern standards, but requiring charging so often was considered pretty iffy Jun 05 14:27:46 and they haven't gotten better Jun 05 14:27:57 early blackberries might have gotten really good life, dunno Jun 05 14:28:15 I'm talking about the iPhone of course, which is the first mainstream smartphone Jun 05 14:28:18 Jug6ernaut: phones replaced watches a long time ago Jun 05 14:28:27 ie, not targeted to a specific audience and widely successful Jun 05 14:28:29 the iphone required charging like every day :p Jun 05 14:28:34 I predict batteries will eventually be self-charging and use the motion of your gait to generate electricity. Jun 05 14:28:54 oGMo: the original iPhone wasn't too bad Jun 05 14:28:55 oGMo maybe for you, dont assume this is the same for everyone Jun 05 14:28:56 I want a smartwatch badly, I'm just a cheapskate. Jun 05 14:28:58 MDijkstra: yes, it was Jun 05 14:29:06 oGMo: not here Jun 05 14:29:06 we devs have to adopt them first Jun 05 14:29:11 before the public will really take them on seriously. Jun 05 14:29:15 we are the frontline here. Jun 05 14:29:19 readme: they're <$75 and you're not going to just get one? Jun 05 14:29:19 oGMo: it got worse with 3G and push notifications, but initially it was okay Jun 05 14:29:19 i have a metawatch, <3 but battery is epic bad :\ Jun 05 14:29:33 MDijkstra: that was _much_ later Jun 05 14:29:40 oGMo: yes, I know Jun 05 14:29:45 oGMo: well, there are few choices here. Jun 05 14:29:50 which I why I said it was okay initially Jun 05 14:29:56 i think many people forget the actual original "no sdk for this" iphone Jun 05 14:29:59 coupled with the fact that I just picked up significant work and won't have time to play with the smartwatch for a few months Jun 05 14:30:05 so I think I'm going to put it off a bit Jun 05 14:30:06 readme wait for the "pebble" looks to be good Jun 05 14:30:15 yes, I am very interested in the pebble Jun 05 14:30:33 readme: ah .. too bad .. not usre what you'd do with one, but if you can talk to it from android .. well, still dunno ;) Jun 05 14:30:47 yeah, you can. of course bluetooth is a pita to keep connected. Jun 05 14:30:56 bt4.0 + nfc Jun 05 14:31:01 should be awesome for that Jun 05 14:31:03 yeah it's not like you can leave your phone downstairs and still talk to it right? Jun 05 14:31:14 i would never do such a thing! Jun 05 14:31:17 personal area network Jun 05 14:31:35 I'll have an app that beeps if it is more than 5 feet away :) Jun 05 14:31:41 xD Jun 05 14:31:44 i'm not sure why you would bother when you could just look at your phone Jun 05 14:31:59 does it do positional stuff? have a camera? Jun 05 14:32:09 I'm not sure about this, but I think some of these have pulse oximiters built in Jun 05 14:32:10 might be ok for scanning barcodes heh Jun 05 14:32:16 yeah, barcode would be cool Jun 05 14:32:25 it should have a laser though, camera for barcode sucks Jun 05 14:32:39 a laser doesn't work for 2d barcodes :p Jun 05 14:32:45 I've used scanfobs made by serialio.. much better than camera and over bluetooth Jun 05 14:32:48 or, not like that Jun 05 14:32:55 well, maybe if we had two lasers. Jun 05 14:33:09 or a double-pass single laser Jun 05 14:33:29 at that point it gets more expensive Jun 05 14:34:10 it's going to be *every* watch is a smartwatch, soon Jun 05 14:34:17 lots of designer watches, like classy ones Jun 05 14:34:20 are getting bluetooth Jun 05 14:34:55 i'm still not sure why you'd bother Jun 05 14:35:13 though, a smartwatch + tablet would be something Jun 05 14:35:33 yeah, I agree, other than a notification light there isn't much of a point Jun 05 14:35:36 not always convenient to whip out a tablet Jun 05 14:36:02 when in doubt Jun 05 14:36:22 smart glasses, however, will be totally awesome Jun 05 14:36:28 lol Jun 05 14:36:28 oh hell yeah Jun 05 14:36:30 So can't wait for those. Jun 05 14:36:36 I've got a cool idea for a smartwatch app. top secret. Jun 05 14:36:37 * Jug6ernaut has dreamed of that since he watched dbz Jun 05 14:36:43 though the google stuff isn't actual AR is it? Jun 05 14:36:51 no not yet* Jun 05 14:36:54 which is .. limited, but a step in the right direction Jun 05 14:36:57 readme: Wrist-mounted laser cannon? Jun 05 14:37:08 i would still take an irc terminal in one corner of my vision ;) Jun 05 14:37:19 AR isn't strictly necessary Jun 05 14:37:27 lol Jun 05 14:37:35 * Jug6ernaut wants mind reading Jun 05 14:37:45 yeah, although it'll only increase the amount of time I'll spend connected to the internet haha Jun 05 14:38:02 for me that is already 100% of my time Jun 05 14:38:08 lol Jun 05 14:38:09 I do not disconnect. Jun 05 14:38:28 Jug6ernaut: well you can sortof emulate telepathy at a certain point when you have a HUD and subtle input (subvocals, or the equivalent for keyboard, etc) Jun 05 14:38:37 i will when I go to NH this summer, but that's a vacation Jun 05 14:38:46 and I'll only do so because there's bad reception. Jun 05 14:38:52 but the cool bit imo is that you can make images appear to be floating in mid-air Jun 05 14:39:01 yeah seriously, i am rarely away from network connectivity Jun 05 14:39:16 by sending different pictures to each eye Jun 05 14:39:28 oGMo hardly, full mental control will completly revolutionalize all computing Jun 05 14:39:29 can i assume the camera to save pics to .jpg? or maybe .png or how do i figure out what the format is? I need to tell the camera where to store a pic by passing it a filename in the intent Jun 05 14:39:31 well, true, but when my phone is in my pocket I don't see much of the stuff Jun 05 14:39:54 ie, I haven't set my phone to vibrate on every notification I get Jun 05 14:40:05 Jug6ernaut: doubtful. it'd be cool, but there's nothing really stopping you from having near-mental control now Jun 05 14:40:16 and if you had it today, how would it change things drastically? Jun 05 14:40:43 i'm not talking gibsonian implants here where you can stick a wikipedia cart in your brain and refer to it all Jun 05 14:40:54 lol Jun 05 14:40:57 just a mental input device for say, typing and clicking Jun 05 14:41:33 you are thinking way to small Jun 05 14:41:41 it'd totally make everyone a starcraft pro ;p Jun 05 14:41:52 Hello! o/ Jun 05 14:41:58 yeah i guess .. just look at how much i discounted motion controls revolutionizing gaming, and how every game now .. oh wait Jun 05 14:41:58 Ah, that worked :) Jun 05 14:42:08 What's the best way to send/receive packets to/from a website? Jun 05 14:42:10 there is already that Jun 05 14:42:12 with the emotiv epoc Jun 05 14:42:16 bci Jun 05 14:42:17 oGMo: to be honest, the tech isn't really there yet Jun 05 14:42:32 MDijkstra: for what? mental control or motion control? Jun 05 14:42:37 motion control Jun 05 14:42:40 um, the tech is there. they have technology for disabled people that allows them to think about a phoneme and then it appears on the screen Jun 05 14:42:42 it's sure as hell there for that Jun 05 14:43:02 darpa has a monkey that moves a robotic arm in another state when he moves his arm Jun 05 14:43:06 oGMo: it's been pretty successful on the wii Jun 05 14:43:11 Newb question: When I attempt to assign getString(R.string.quake_feed); to a valiable, and I have a string resouce named sucha s follows: http://earthquake.usgs.gov/eqcenter/catalogs/1day-M2.5.xml Jun 05 14:43:16 and even if it was _absolutely perfect_ there has yet to be a _single game_ that has been more than just-as-playable as conventional controls Jun 05 14:43:29 oGMo: kinect certainly requires an iteration before it'll work well Jun 05 14:43:39 MDijkstra: "pretty successful" in marketing terms is not "revolutionizing" Jun 05 14:43:39 It says that this cannot be resolved or is not a field Jun 05 14:44:09 anyhow people are asking actual android stuff so back to topic :p Jun 05 14:44:12 brb Jun 05 14:44:13 Any reason why it wouldn't find the string resource even though it's clearly defined? Jun 05 14:44:14 yeah p;p Jun 05 14:44:32 How can I send data to a website, and also receive data from a website? Jun 05 14:44:48 Not sending files, just packets Jun 05 14:44:54 surazal: try wrapping that url in Jun 05 14:45:25 not sure about what chars are legal or not Jun 05 14:45:56 are you getting an error in your strings.xml as well? Jun 05 14:46:15 readme: It didn't have any effect, and there are no errors within string.xml either Jun 05 14:46:24 bad R import Jun 05 14:46:28 check which R is imported Jun 05 14:46:29 I'm using Eclipse (with the Android-related plugins) as my IDE Jun 05 14:46:30 I bet it's android.R Jun 05 14:46:58 How to communicate with a website? Jun 05 14:47:11 Say I want to send "this string" to a website, how would I do that? Jun 05 14:47:14 http Jun 05 14:47:16 How do I determine which R is being imported? Jun 05 14:47:20 or https, if it's private! Jun 05 14:47:24 surazal: check the imports Jun 05 14:47:27 surazal, look at the impor tline Jun 05 14:47:41 canadiancow, can I do this without logging into the MySQL database? Jun 05 14:47:45 Is that in the manifest file? Jun 05 14:47:50 Jobo: wat Jun 05 14:47:54 surazal: no Jun 05 14:48:00 surazal: it's in the top of your java file... Jun 05 14:48:02 it's at the top ofyour java file Jun 05 14:48:15 Jobo: don't take this the wrong way, but you need to go to computer 101 Jun 05 14:48:23 http://i.imgur.com/cpTsb.jpg Jun 05 14:48:36 I want to send and receive packets to/from a website, without logging directly into the MySQL database? I'm not exactly smart when it comes to website design Jun 05 14:48:51 Jobo: the fact that you know what mysql is but not how http works terrifies me. Jun 05 14:48:56 Ah. How'd that guy get in there? Jun 05 14:49:06 I know how HTTP works. Not in Java, but in C# Jun 05 14:49:07 eclipse trying to be smart Jun 05 14:49:08 bad quick fix, surazal Jun 05 14:49:29 Jobo: protip: if you knew how it worked you wouldn't be asking us Jun 05 14:49:32 Jobo: here's a hint: it works the same way Jun 05 14:49:44 because it's not jHTTP or MSHTTP Jun 05 14:49:45 it's HTTP Jun 05 14:49:49 like...it doesnt change Jun 05 14:50:11 I only know about RETRIEVING data, not actually SENDING and RECEIVING it.. I mean, the only thing I've ever used it for, was to grab lyrics from websites Jun 05 14:50:17 readme: Ah, so I stumbled on the hidden dangers of quick fixes :D Jun 05 14:50:32 Jobo: http://google.com/?sentmydata Jun 05 14:50:36 Thank you! Jun 05 14:50:38 Jobo: HTTP PUT Jun 05 14:50:40 HTTP POST Jun 05 14:50:40 HTTP GET Jun 05 14:50:47 etc Jun 05 14:50:54 Jobo: http://en.wikipedia.org/wiki/POST_(HTTP) Jun 05 14:50:58 POST and GET are website input and URL dependant, no? Jun 05 14:51:06 O_o Jun 05 14:51:12 Or is that only in PHP? Jun 05 14:51:30 * MDijkstra moves away quietly Jun 05 14:51:31 post for html form input, get to grab a variable from url Jun 05 14:51:37 The touch hightlight in my listview broke. What could be the reason for this? Jun 05 14:51:47 "Name=Jonathan+Doe&Age=23&Formula=a+%2B+b+%3D%3D+13%25%21" Yep, just what I'm talking about Jun 05 14:51:56 The help was appreciated. I would have banged my head on that one for a while. Thanks! Jun 05 14:52:27 Jobo: just think HTTP--don't think PHP Jun 05 14:52:41 Jobo: try using netcat to get a webpage by entering the HTTP protocol manually Jun 05 14:52:49 why when i change the bg of an edittext does the linearlayout aboves bg also change? Jun 05 14:52:57 run fiddler and go to some pages with your browser Jun 05 14:53:03 google ReSTful api and read Jun 05 14:53:10 read rfc822 Jun 05 14:53:15 do some research Jun 05 14:53:23 HTTP is the keyword I needed, appreciate it. Bonus question: Any of you know how I can make a website catch any incoming packets? Jun 05 14:53:44 A simple keyword will do =) Jun 05 14:53:55 websites don't catch packets. a simple keyword would be "tcp/ip" Jun 05 14:54:05 so the jvm spec mentions that final (and therefore private) methods can more easily be inlined. any reason why this is different on the DVM? trying to convince other devs here to always use private when theres no reason not to... Jun 05 14:54:48 Yes, I connect to the website, but how can I tell the website that it is receiving something? Can't find anything on Google about this matter Jun 05 14:54:50 Got a bit of problem with my app, http://pastebin.com/TtSWmNb7 Jun 05 14:55:06 Jobo: What is the overall goal Jun 05 14:55:15 Jobo: this channel isn't intro to computer networks. please get a book and try #networking Jun 05 14:55:21 get this error when trying to launch this Jun 05 14:55:22 Sending strings to the website and receiving strings back, basically Jun 05 14:55:31 jrock20041^ Jun 05 14:55:37 i told you to google HTTP and restful api, jobo... Jun 05 14:55:54 http://google.com/search?q=send%20my%20string Jun 05 14:56:01 Jobo: HTTP POST data to send the strings, response from the server to get the results Jun 05 14:56:16 Jobo: that should be enough to get started Jun 05 14:56:40 Jobo: you can add parameters to the url like http://mysite.com?param1?param2 Your site will need to be developed to read them Jun 05 14:56:49 I'm reading on the RESTful now, readme. MDijkstra, yeah I'm good to go on the Java part, but not on the website part. How do I send from website to android? Jun 05 14:56:53 jrock20041: that's not a valid url Jun 05 14:56:56 Jobo: To receive strings you can do the same thing Jun 05 14:57:02 jrock20041 I know, I was hoping there was a better way really Jun 05 14:57:04 Jobo: requests are syncronous Jun 05 14:57:19 err, bidirectional Jun 05 14:57:23 Using this url, people can go into the website from their computer and send data manually, I don't want that Jun 05 14:57:28 bisexual? Jun 05 14:57:30 What is so hard with building parameters? Jun 05 14:57:33 Jobo: so after you send your data, the website has a chance to respond Jun 05 14:57:37 with its data Jun 05 14:57:45 jrock20041: your url is wrong. parameters after the first should have & not ? Jun 05 14:57:48 Jobo, android is a computer Jun 05 14:57:53 Nothing's hard, it's extremely easy. I was just hoping there was a better way than using a simple POST and $_GET Jun 05 14:57:53 and it has users Jun 05 14:58:00 if you want shit to work on phones, its going to work on computers too Jun 05 14:58:03 Yes, okay, BROWSER then :) Jun 05 14:58:06 readme: Depends the language. php supports ? Jun 05 14:58:22 jrock20041: your answer is wrong on so many levels I'm not even going to try to explain it to you. Jun 05 14:58:25 I only want this to be accessible through my app, not through the browser. Is that possible? Jun 05 14:58:31 read rfc822 Jun 05 14:58:44 rfc822.. Jun 05 14:59:05 oh, thats email Jun 05 14:59:06 my bad Jun 05 14:59:16 rfc2616 Jun 05 14:59:17 Jobo: no, though you can make it more difficult to be accessed through a browser Jun 05 14:59:17 It was looking a bit off.. Jun 05 14:59:45 Aha.. Jun 05 15:00:09 Okay, well this POST will have to do as a start then I guess. Jun 05 15:00:17 Makes the website end a lot easier to develop too Jun 05 15:00:54 * readme sighs Jun 05 15:01:07 readme: I am seeing that ? has changed. I will agree with you on this one Jun 05 15:01:37 jrock20041: don't need to agree with me. just agree with the factual technical standards that specify the http protocol. Jun 05 15:02:34 back in my day, we used to be familiar with the standards we were using! get off my lawn! ;) Jun 05 15:02:58 wongk: yeah my day... a couple days ago! Jun 05 15:03:07 readme: I think then someone needs to update this wiki page cause they are using that for data queries http://en.wikipedia.org/wiki/Query_string Jun 05 15:03:15 that person could be you. Jun 05 15:03:20 it's wikipedia! Jun 05 15:03:27 behold the power of wikis Jun 05 15:03:42 * jrock20041 grins at readme Jun 05 15:03:53 oh I know that, I never trust them Jun 05 15:04:25 i don't see the use of '?' as a separator for get variables Jun 05 15:05:45 Argh, OK another newb question. My resource is set to the string "http://earthquake.usgs.gov/earthquakes/catalogs/1day-M2.5.xml" and now Eclipse is reporting a "MalformedURLException" when I try to pass it to java.net.URL via "new URL(...)" Jun 05 15:05:47 http://php.net/manual/en/reserved.variables.get.php Jun 05 15:06:00 I did try the CDATA trick someone mentioned a few minutes ago Jun 05 15:06:11 Now I trust php.net and it appears they still recommend to use ? Jun 05 15:06:22 actually jrock20041 may be right Jun 05 15:06:27 but we should look at the URI/URL rfc Jun 05 15:06:28 not http Jun 05 15:06:52 surazal: did you validate the string being pass to URL in the debugger? Jun 05 15:06:59 GET uses ? to seperate variables, if that's what you're on about Jun 05 15:07:08 In the URL, not the HTTP commands Jun 05 15:07:28 wongk: Other than to copy/paste it into a web browser, I'm not sure how one goes about validating it Jun 05 15:07:31 it uses '&' Jun 05 15:07:41 Jobo: Yes, but that was a solution you could use to grab your data from the website that you were looking for Jun 05 15:07:42 surazal: look at it Jun 05 15:07:53 ...don't construct uris with GET parameters manually. chances are you will mess this up Jun 05 15:07:57 surazal: ensure it hasn't been transformed any way by the resource system Jun 05 15:07:59 Yeah jrock20041, that was what I would go with initially, unless you guys had a better idea Jun 05 15:08:26 wongk, after the page extension, you put a "?" to start the variable sequence, that's what I meant Jun 05 15:08:27 Jobo: Is this data coming from a database? Jun 05 15:08:38 jrock It's coming from an Android app Jun 05 15:08:45 Jobo: yes, that's not what we were referring to Jun 05 15:09:24 Jobo: you have me confused now Jun 05 15:09:33 wongk: I can't even run the debugger since the exception is preventing me from running the applicatino Jun 05 15:09:38 *application Jun 05 15:09:47 Are you trying to develop an android app that can pull data from a website? Jun 05 15:09:50 surazal: no, it's not Jun 05 15:09:54 No, not quite Jun 05 15:10:02 surazal: how do you think an exception is generated in the first place Jun 05 15:10:04 I'm sending data to a website, and also receiving data from it Jun 05 15:10:16 wongk: OK, I'm confused Jun 05 15:10:32 surazal: do oyu know how to use a debugger? Jun 05 15:10:42 How do I determine what the string being presented to URL(...) is? Jun 05 15:10:50 a dbugger Jun 05 15:11:01 Actually I think I've got it covered now, thanks Jun 05 15:11:47 wongk: That is what I am trying to run and it's telling me to fix the errors first Jun 05 15:12:07 then you have a compile error Jun 05 15:12:21 that is very different from a runtime error or exception Jun 05 15:12:32 wongk: And the error I am getting is "MalformedURLException" Jun 05 15:12:41 That's what it's telling me Jun 05 15:12:42 that doens't make any sense Jun 05 15:13:02 I know. That's why I am asking :P Jun 05 15:13:08 jrock20041: ok, I'll give you this: according to RFC3986, for URIs, the component is indicated by the first ? and end with # Jun 05 15:13:16 it MAY contain ? Jun 05 15:13:17 surazal: paste the line from your strings.xml Jun 05 15:13:22 either you can run your application or you can't, you can't get an exception if you cna't run your application Jun 05 15:13:27 readme: agreed Jun 05 15:13:42 http://earthquake.usgs.gov/earthquakes/catalogs/1day-M2.5.xml Jun 05 15:13:42 but that's not how most frameworks implement it. Jun 05 15:13:57 readme: I need to start moving to that standard Jun 05 15:14:38 surazal: How are you calling that resource in your code? Jun 05 15:15:11 URL url; String quakeFeed = getString(R.string.quake_feed); url = new URL(quakeFeed); Jun 05 15:15:29 the "url = new URL(...)" part is throwing the exception Jun 05 15:15:50 did you try printing it first? Jun 05 15:15:53 No other errors are present Jun 05 15:15:57 print the string Jun 05 15:15:59 test it for null Jun 05 15:16:37 you /can/ print the string, but you should really learn how to examine it in a debugger Jun 05 15:17:08 wongk: I give that a +1 Jun 05 15:17:35 I know how to use the debugger, and I still recommend just printing it. Jun 05 15:17:36 OK, here comes another newb question: What's the best way to "print" the string? Do I have to set up a layout for the string to be printed on within the application, or is there a logging facility I can use? Jun 05 15:17:47 surazal: learn to Log Jun 05 15:18:05 in fact, http://android.vmlinuz.org/bbp.html seems appropriate Jun 05 15:18:13 just understand the dangers of printing. Jun 05 15:18:19 surazal: just do a System.out.println(variable); Jun 05 15:18:49 jrock20041: don't think so Jun 05 15:19:12 jrock20041: don't do that Jun 05 15:19:18 Leeds: huh, why Jun 05 15:19:41 because using Log gives you things like log levels and tags, so you can filter Jun 05 15:19:51 "By default, the Android system sends stdout and stderr (System.out and System.err) output to /dev/null." Jun 05 15:19:51 and I'm sure evancharlton has a good reason as well :) Jun 05 15:20:12 you covered it, Leeds Jun 05 15:21:40 If you are checking something once and not worrying about checking once this is fixed, what I said is fine. If you want to constantly check that then I agree with you guys. But textbook is what Leeds has stated Jun 05 15:21:45 OK, logcat appears to be a command-line utility Jun 05 15:21:53 jrock20041: not according to wongk Jun 05 15:22:02 jrock20041: alternatively, you can get into good habits rather than bad ones Jun 05 15:22:08 I'm not sure where he quoted that from, though Jun 05 15:22:17 in any event i find it surprising Jun 05 15:22:25 are you demanding sauce?!!1 Jun 05 15:22:29 ah HA Jun 05 15:22:30 plox Jun 05 15:22:30 System.out writes to the log on all devices I ever tested Jun 05 15:22:31 surazal: it's part of adb, or ADT Jun 05 15:22:44 learn to use your terms Jun 05 15:22:48 tools :) Jun 05 15:22:58 PS http://developer.android.com/guide/developing/tools/adb.html Jun 05 15:23:01 Leeds: I found it. Unforunately, this guide I am using is not very helpful on the topic of logging Jun 05 15:23:17 surazal: cool, that tells you you need to find a better guide Jun 05 15:23:39 Leeds: Yeah, unfortunately this one had the highest rating on Amazon :P Jun 05 15:23:50 so I guess it's not guaranteed Jun 05 15:23:52 but an OPTION Jun 05 15:23:53 higher than the massive amount of info on d.android.com? Jun 05 15:23:54 That'll show me ;^) Jun 05 15:24:02 for System.out to write to the log as priority I Jun 05 15:24:12 interesting Jun 05 15:24:14 so says the literature Jun 05 15:24:19 Leeds: I did try d.android.com, but unfortunately that website is not well-structured Jun 05 15:24:28 lol Jun 05 15:24:49 Leeds: I got "lost in the weeds" with that resource almost right away, which is why I bought the book ;^) Jun 05 15:24:50 ah... you're right, better to use a random book which doesn't actually tell you what to do Jun 05 15:24:51 so i'm writing my own Preference class and i'm doing something wrong. when i try to call persistInt to save the preference data, i get an error: http://pastebin.com/5ZQrfdfa Jun 05 15:25:17 surazal: the info on d.android.com is better than any book. Jun 05 15:26:03 moonlightcheese: I just do that with SharedPreferences. Jun 05 15:26:12 you can open the default ones. Jun 05 15:27:07 moonlightcheese: That may be true, but it wasn't laid out in a way that made sense to me. Maybe that's my fault and not the website's, but I had to find something to move me forward, and d.android.com wasn't taking me there Jun 05 15:27:08 i guess i have to, i just figured this was the better way to do it. Jun 05 15:27:39 anyways, I'm going to study the logging bit further. If I have further questions, I'll be sure to come back ;^) Jun 05 15:28:26 moonlightcheese: PreferenceManager.getDefaultSharedPreferences(context) Jun 05 15:28:37 that will give you the ones your stock preference fragments are using Jun 05 15:28:46 yea that's the way i normally do things. Jun 05 15:29:16 weird that i can't call persist from an inner class though. Jun 05 15:29:25 moonlightcheese: try to do a clean build. it looks like your code is referencing a non-existent method (damaged apk?) Jun 05 15:30:54 cketti: i get the same error when i do a clean build. Jun 05 15:31:28 odd Jun 05 15:36:47 yea i was afraid of this. Jun 05 15:36:49 moonlightcheese: to me this looks like broken bytecode. the code tries to access a method with the signature: void persistInt(int, int, int, int) Jun 05 15:36:59 ActionBarSherlock Tabs Navigation example, anyone got that with 5 tabs and webviews in each tab, or is there any premade I could download and modify? Jun 05 15:37:12 if i use SharedPreferences, the onPreferenceChangedListener doesn't get triggered. Jun 05 15:37:40 this is retarded. Jun 05 15:38:54 check if "ColorSelectionPreference.this.persistInt(selectedColor);" gets compiled to something that works Jun 05 15:40:26 on a side note: using that code will cause the dialog to disappear when you rotate the screen Jun 05 15:41:16 any reason not to use fragments, if this is new code? Jun 05 15:41:19 nope, crashes. Jun 05 15:41:40 06-05 10:41:11.669: D/EARTHQUAKE(541): http://earthquake.usgs.gov/earthquakes/catalogs/1day-M2.5.xml Jun 05 15:41:54 i'm just lazy and not working with PreferenceFragment i guess. Jun 05 15:41:54 If I would like to hire a android-developer for a really simple project where should I turn then? As I can't use this channel is there any place else? Jun 05 15:42:10 So, the string that's the malformed URL is "http://earthquake.usgs.gov/earthquakes/catalogs/1day-M2.5.xml" Jun 05 15:42:16 granden: elance.com Jun 05 15:42:26 Ok, thanks Jun 05 15:42:42 Is there any reason why: this.getIntent().getStringExtra("value") would return null when I use inheritance, but work fine when I don't? Jun 05 15:42:43 that certainly does not appears to be malformed Jun 05 15:42:44 surazal thats cool Jun 05 15:42:53 granden i just sent u a pm Jun 05 15:43:06 surazal: is your code throwing the exception or is it only eclipse that is telling you that you need to catch the MalformedURLException? Jun 05 15:43:12 wongk: Right. Let me try something really quick Jun 05 15:43:27 felt a string earthquake last night in taiwan Jun 05 15:43:28 Eclipse is telling it to me, and it won't run the application unless I resolve the error forst Jun 05 15:43:40 *first Jun 05 15:43:41 *facepalm* Jun 05 15:43:45 I'd like to parse an URL in browser from my app, I see I can declase an intent-filter for android.intent.action.SEND and make the app show in "Share via" menu Jun 05 15:44:05 surazal: you might want to pick up a java book, too ;) Jun 05 15:44:18 is there a way to provide an entry for the popup menu that appears when I long press an URL' Jun 05 15:44:23 s/'/?/ Jun 05 15:44:24 cketti: i didn't even think to ask that :P Jun 05 15:45:10 Yeah, eclipse seems to think http://www.google.com/ is also a malformed URL Jun 05 15:45:20 no, it doesn't Jun 05 15:45:27 you're a malformed URL Jun 05 15:45:28 It sure does Jun 05 15:45:35 you just aren't correctly interpreting what it's telling you Jun 05 15:45:38 this would shorten from "long press -> share URL -> my app" too "long press -> my app", is this supported by Application API? Jun 05 15:45:42 Description Resource Path Location Type Jun 05 15:45:43 Unhandled exception type MalformedURLException EarthquakeListFragment.java /Earthquake/src/com/paad/earthquake line 41 Java Problem Jun 05 15:45:56 again, you just aren't correctly interpreting what it's telling you Jun 05 15:46:41 potential exceptions must be caught or marked as thrown in your method signature Jun 05 15:47:50 you're using somethign which indicates it may throw an exception. You must catch this possible exception for it to be valid. Jun 05 15:48:01 the URL constructor is marked as throwing MalformedURLException Jun 05 15:48:34 surazal: have you a) checked for null and b) logged your URL string yet? Jun 05 15:48:48 Leeds: Yes and yes Jun 05 15:48:59 so what is the line from your log with the URL? Jun 05 15:49:13 so the fact I have a try means I need to have a throw for every possible exception? Jun 05 15:49:28 Leeds: compile time, not run time, afaik. Jun 05 15:49:30 Leeds: It was http://earthquake.usgs.gov/earthquakes/catalogs/1day-M2.5.xml Jun 05 15:49:35 Leeds: he's just not doing a try/catch around it Jun 05 15:49:40 dragorn: what? Jun 05 15:49:41 you need a catch for MalformedURLException Jun 05 15:49:49 surazal: please paste the exact line from your log Jun 05 15:49:50 Leeds: this is a compiler error Jun 05 15:49:52 Leeds: his error. is compile time. he's just not doing a try/catch block. Jun 05 15:49:57 Leeds: not a runtime error Jun 05 15:50:04 oh, that... Jun 05 15:50:06 Leeds: there's nothing wrong with the url, just basic java Jun 05 15:50:11 nuts Jun 05 15:50:19 meh, this isn't the right place for people who don't know basic Java Jun 05 15:50:35 * wongk nods Jun 05 15:50:40 Hi :) Jun 05 15:51:01 surazal: it's basic java, google 'java exception handling' and i'm sure you'll find a bunch of tutorials. Yes, you need to catch each type of exception that can be thrown by somethign you're calling. Jun 05 15:51:20 or mark it as thrown Jun 05 15:51:27 surazal: on one hand it's a hassle, on the other hand it greatly improves your users experiences because if you do it right you're not just crashign out of the app blindly Jun 05 15:51:56 wongk: I'm trying not to confuse him further :P Jun 05 15:52:08 I noticed, while debubbing that some view instructions (like setConteView or Toast), are performed some instruction after.... why? Is there a fix for this? Jun 05 15:52:13 he should be familiar with both possibilities Jun 05 15:52:45 sometimes the best place to handle the exception is further up the call chain Jun 05 15:52:47 debubbing Jun 05 15:52:54 dragorn: OK, I did have some catch statements in there (and a finally, of course), but I missed the MalformedURLException bit Jun 05 15:53:01 i created a PopupMenu using the instructions here: http://developer.android.com/guide/topics/ui/menus.html#PopupMenu, but my popupmenu looks nothing like the one the in the screenshot :s Jun 05 15:53:06 under it is that way by design Jun 05 15:53:07 it's too big Jun 05 15:53:20 Anyone know why: this.getIntent().getStringExtra("value") would return null now that I'm using inheritance? Jun 05 15:53:25 * surazal smacks forehead Jun 05 15:53:26 your activity callbacks are on the same queue as your view operations Jun 05 15:53:52 there's no need to fix it. maybe to fix your understanding, though. Jun 05 15:54:15 Timmaah1201: your subclass overrides getIntent()? Jun 05 15:54:45 for example: try setContentView(...); Thread.speep(forever) and let me know if you ever see that view :) Jun 05 15:54:51 sleep* Jun 05 15:55:12 my subclass has a method to getIntent, which overrides the parents class method to get that intent Jun 05 15:55:51 well, then it's obviously buggy :) Jun 05 15:55:53 Timmaah1201: you are overriding getIntent? Jun 05 15:56:36 i've put it back to the parent class but it still returns as null :/ Jun 05 15:56:41 not anymore wongk Jun 05 15:56:57 paste the code to pastebin.com Jun 05 15:57:50 readme: yes you're right, it wont screen nothing haha :D Jun 05 15:58:16 under: you should learn about event loops Jun 05 15:59:14 cketti: http://pastebin.com/xDSKLGBe Jun 05 15:59:27 I have another activity, which doesn't use the getIntent() function and that works fine Jun 05 15:59:39 Timmaah1201: line 50 Jun 05 15:59:45 wongk: what you mean exactly? Jun 05 15:59:51 There, I fixed the catches. All is well again. Sorry for the newbie questions; I do appreciate the help. Jun 05 16:00:01 This is how my popupmenu is looking: http://localhostr.com/GSvgLNZAr8BP vs http://developer.android.com/images/ui/popupmenu.png Jun 05 16:00:04 under: i gave you some keywords, to the google Jun 05 16:00:35 wongk: but I'm overriding it.. so then we go back to the issue where I should have getIntent() in the child class no? Jun 05 16:00:45 Timmaah1201: why are you overriding getIntent, i think you want a different method that does a completely different thing Jun 05 16:01:13 ooooh I see what I've done.. I've given it an awful name Jun 05 16:01:16 getIntent is a method on the Activity class Jun 05 16:01:27 * Timmaah1201 smacks head Jun 05 16:01:39 wongk: event loops? Jun 05 16:01:47 under: yes Jun 05 16:02:11 ok thats fixed it, thank you! Jun 05 16:02:18 what a silly mistake Jun 05 16:03:28 Any ideas re my Popupmenu? Jun 05 16:03:30 * wongk lunch Jun 05 16:03:56 AlCapwn: are you using the holo theme? Jun 05 16:04:49 cketti: the activity theme is android:style/Theme.Dialog Jun 05 16:04:58 Is there a Holo specific one? Jun 05 16:05:32 Ok, just saw it, Theme.Holo.Dialog Jun 05 16:17:33 So if this channel is app dev, #android is platform, and #android-root is root.. what is the channel for general android discussion? Jun 05 16:18:24 #android-everythingelse Jun 05 16:18:38 disappointing sarcastic answer, I expected better Jun 05 16:18:59 :) Jun 05 16:19:09 * Jug6ernaut has no idea Jun 05 16:19:12 do you mean for example using asynctask? look at this http://ideone.com/qhu8T . the toast wont ever showed Jun 05 16:19:15 #android is user stuff Jun 05 16:19:17 genreal discussion Jun 05 16:19:23 there is no "platform" channel Jun 05 16:19:29 canadiancow|work: according to the /topic of #android Jun 05 16:19:31 it's a platform channel Jun 05 16:19:39 even has AOSP review stuff in topic Jun 05 16:19:39 ok like android as an OS Jun 05 16:19:45 under you have to call .show(); Jun 05 16:19:46 oh really Jun 05 16:19:47 hmm Jun 05 16:19:48 yep Jun 05 16:19:50 so anyway Jun 05 16:19:52 maybe im wrong! Jun 05 16:19:55 since we have established there's no better place Jun 05 16:19:57 users dont know how to use irc Jun 05 16:20:05 buying the samsung galaxy tab 10.1 Jun 05 16:20:07 good/bad idea Jun 05 16:20:18 Toast.makeToast(context,message,length).show(); Jun 05 16:20:24 readme bad Jun 05 16:20:25 +1 Jun 05 16:20:25 outdated Jun 05 16:20:26 Jug6ernaut: line 34 Jun 05 16:20:36 bad lol Jun 05 16:20:50 readme: #android should be platform and general discussion, there's -offtopic unofficla channel Jun 05 16:20:57 I need to develop a project that is meant to run on the samsung galaxy tab. Jun 05 16:21:16 Think I can get away with it, without buying one!? Jun 05 16:21:17 cf. http://source.android.com/community/index.html Jun 05 16:21:28 it's just database crud Jun 05 16:21:34 basically Jun 05 16:21:57 readme: http://developer.samsung.com/remoteTestLab.do Jun 05 16:22:21 cketti: perfect :) thanks. Jun 05 16:22:30 I wonder if it will be able to do something intense, like play a video. Jun 05 16:22:44 obviously it can, but the pipe back to me, might be slow Jun 05 16:23:14 under maybe your lenght? Jun 05 16:23:32 what? Jun 05 16:23:51 it has to be Toast.Lenght_Short or Toast.Lenght_Long Jun 05 16:23:52 not 2 Jun 05 16:24:14 Hi, my main.xml looks like https://gist.github.com/2876044 my strings.xml looks like https://gist.github.com/2876049 and my custom.xml under drawable folder looks like https://gist.github.com/2876047 but i cannot see text over the image that I am using as a button. Any idea ? Jun 05 16:27:02 Basically Text on a image is not getting displayed (wonder why) Jun 05 16:27:03 Jug6ernaut: ok, but it doesnt give a shit Jun 05 16:27:25 ? Jun 05 16:28:09 I mean, the toast, reading the code, should be viewed, but nothing appears Jun 05 16:28:21 ... Jun 05 16:28:23 http://developer.android.com/reference/android/widget/Toast.html#makeText(android.content.Context, int, int) Jun 05 16:28:35 your length is wrong Jun 05 16:28:54 Jug6ernaut: yes, I fixed it :D Jun 05 16:28:56 thats what she said Jun 05 16:29:01 t = Toast.makeText(this.getApplicationContext(), "Error during connection", Toast.LENGTH_LONG); Jun 05 16:29:09 gaz`: hahaah Jun 05 16:29:17 hehe Jun 05 16:29:24 sorry for you ! Jun 05 16:29:30 try just this Jun 05 16:30:08 Jug6ernaut: I think it's becouse the thread that starts bit after Jun 05 16:31:05 bsilwal, have you in your xml docs not more? Is this all xml code or have you copy the section you have think this is the prob? Jun 05 16:31:34 least produtive day ever, no point in me sitting hear pretending im working, off for a walk :) Jun 05 16:31:46 under maybe, also use a handler not RunOnUiThread, your already on the UIThread lol Jun 05 16:32:45 How does android apps handle icons for the app? Jun 05 16:32:55 which sizes, and any naming convention? Jun 05 16:33:15 no luck with samsung remote test lab so far :( Jun 05 16:33:18 http://developer.android.com/guide/practices/screens_support.html Jun 05 16:33:34 arg Jun 05 16:33:36 http://developer.android.com/guide/practices/ui_guidelines/icon_design.html Jun 05 16:33:37 maybe it's not really tested on linux. WORA is a dream. Jun 05 16:33:54 Jug6ernaut: can you please link me a guide, i'm bit confused on this topic :D Jun 05 16:34:15 Handler handler = new Handler(); handler.post(yourRunnable); Jun 05 16:35:22 also get rid of your Thread.Sleep(); Jun 05 16:35:53 :) Jun 05 16:36:04 instead do if(ic==null){handler.postDelayed(this,500);return;} Jun 05 16:36:05 is that so bad? :D Jun 05 16:36:16 oookay Jun 05 16:36:36 yea it is lol, probably why your toast isnt showing Jun 05 16:37:08 bc ur pausing the UI thread Jun 05 16:38:11 Jug6ernaut: Thanks a lot. Jun 05 16:38:18 np Jun 05 16:38:35 bsilwal, the tag have no a end Tag, that the first what I see. Jun 05 16:39:59 under also add some kind of retry/timeout system. dont want to have an infinit loop Jun 05 16:40:32 sure man thanks, you are very helpful Jun 05 16:40:43 np Jun 05 16:41:09 * Jug6ernaut goes to crapwork Jun 05 16:44:20 MarcAurelio: I do have the ending tag, its just not in the gist i've sent Jun 05 16:45:04 the application is working fine, but I am not able to see the text that I'd like to see Jun 05 16:45:08 for idea users: can I start com.android.browser/.BrowserActivity rather than an activity in my module? I'm trying to catch the 'share via' intent so starting the device browser from the IDE is more handy Jun 05 16:46:43 can you see the text in a text field? text it, bsilwal Jun 05 16:47:02 the color ist different to the background Image? Jun 05 16:47:40 initially both background color and text color were black Jun 05 16:47:54 but i changed text color to #FFFF00 Jun 05 16:48:04 but still i cant see the text. Jun 05 16:48:26 #FFFF00 is yellow btw Jun 05 16:48:38 i wonder if the background image is overlapping the text ? Jun 05 16:49:50 I think not. I have textet on a HelloFormStuff sample Jun 05 16:50:00 run it. Jun 05 16:52:09 MarcAurelio: in here http://developer.android.com/resources/tutorials/views/hello-formstuff.html you mean ? Jun 05 16:52:30 yes Jun 05 16:55:16 bsilwal, 0 < the color not in the string Tag set the color in the Button Tag. Jun 05 16:56:02 android:textColor="#ffff00" < this is the param Jun 05 16:56:31 and del the fontColor param in the string.xml file Jun 05 16:56:49 oh Jun 05 16:58:01 I hope that your help. Jun 05 16:58:11 -r Jun 05 16:58:52 MarcAurelio: You are genius :) Jun 05 16:59:04 hi everybody! Jun 05 16:59:54 I am currently writing an OpenGL application for Android but am a bit stuck on what would be the best way to implement a main loop for the game Jun 05 17:00:54 bsilwal, thanks. In a valiues file with strings and array string lists you can set the text primari not the color the color ist in a control element. Jun 05 17:01:23 got that. (y) Jun 05 17:05:54 what will speed up my build process? faster disk? cpu? Jun 05 17:06:03 i probably spend 20% of my day waiting for shit to build Jun 05 17:06:26 CPU, RAM Jun 05 17:06:40 unless you're swapping a lot, a faster disk won't matter as much Jun 05 17:06:44 disk i/o is the most significant vottleneck Jun 05 17:06:59 yeah I guess android does write a shitload of temp files Jun 05 17:07:02 at least it is with C++, i assume java is similar Jun 05 17:07:13 generation of .class files Jun 05 17:07:13 right now in each call of onDrawFrame(GL10 gl) I call my advanceWorld() function... there I have the System.nanoTime() of the last call stored and compare it with the current time... long dt = currentTime - lastTime; ... if(dt > min_timestep) { // do stuff } ... Is that actually a good way or is there a better way to do this? Jun 05 17:07:18 canadiancow|work: get a bunch of RAM, make a ramdisk, use that for compilation Jun 05 17:07:30 SSD would be fastest Jun 05 17:07:37 aapt is maxing out my cpu Jun 05 17:07:44 canadiancow|work: upgrade ALL the things! Jun 05 17:07:47 or rather, one hyperthreading slot of one core Jun 05 17:07:51 canadiancow|work: yes, aapt and dx are slow as shit Jun 05 17:08:00 i find SATA + ext4 to be bloody fast Jun 05 17:08:00 I have list with 50 medicaments, with information about effects and caves. In my app the user can click on a drug and become information about it. Should i save the information in a dtabase or in the app directly? Jun 05 17:08:12 wongk: try working on scramble with friends :P Jun 05 17:08:23 how many LOC? Jun 05 17:08:35 its not the LOC so much as the 9 lib projects Jun 05 17:08:39 and all the resources Jun 05 17:09:12 i'd be willing to bet it's nowhere near as large as our native client or server Jun 05 17:10:31 of course with make & g++ i run 10 parallel compilations Jun 05 17:10:45 so what does any of that have to do with my issue? Jun 05 17:10:48 release day! finally! :) Jun 05 17:10:59 does java parrallelize the compliation? Jun 05 17:11:03 well sorta, release to management, havent pushed them a new build in 4 months Jun 05 17:11:09 [13:08:35] its not the LOC so much as the 9 lib projects Jun 05 17:11:09 [13:08:38] and all the resources Jun 05 17:11:14 wongk: dx is single-threaded Jun 05 17:11:18 I have list with 50 medicaments, with information about effects and caves. In my app the user can click on a medicament and become information about it. Should i save the information in a dtabase or in the app directly? Jun 05 17:11:30 i'd assume so, just like linking Jun 05 17:11:32 wongk: well, there's some portion of it that's parallelized, but the bulk of it is single-threaded Jun 05 17:11:49 but the tools team has been working on this stuff right? Jun 05 17:11:50 sukramTM: it doesn't matter. Do it however you want. Jun 05 17:11:55 I keep getting an immediate force close when I try and use the count down timer. I get a fatal exception in the main and about a dozen other runtime errors. Jun 05 17:12:02 Paulcasals: logcat Jun 05 17:12:04 canadiancow|work: how long does the "link" step take Jun 05 17:12:15 dx + apk generation etc Jun 05 17:12:33 you want to know for a full build?.... one minute Jun 05 17:12:38 err i mean give me a minute Jun 05 17:12:43 the build takes much longer than a minute Jun 05 17:12:45 oh :P Jun 05 17:13:46 i assume the android tools don't perform those final steps incrementally? Jun 05 17:14:04 right Jun 05 17:14:05 recent versions have done a lot for incremental builds Jun 05 17:14:07 dx is not incremental Jun 05 17:14:17 but i just changed some padding in an xml file Jun 05 17:14:28 and im probably looking at a minute to get an apk Jun 05 17:14:54 the only thing that could make that faster is a faster clock time and *maybe* more ram Jun 05 17:15:07 but the right answer would be to improve the tool Jun 05 17:15:19 wongk: patches are very much welcome :) Jun 05 17:15:33 * wongk looks around Jun 05 17:15:41 i don't see any volunteers :P Jun 05 17:16:29 http://stackoverflow.com/questions/10900651/cannot-call-persistint-from-inner-class-within-preference-class Jun 05 17:18:47 OH GEE IF THAT DOESNT WORK LET'S JUST PREFIX IT WITH THE CLASS NAME Jun 05 17:18:55 what is a good price for a individual developer, to create an app that can record 5 seconds of voice, and then transform it using some effect? (helium etc) ? Jun 05 17:19:04 99c Jun 05 17:19:10 $0, because that shit already exists Jun 05 17:19:16 i know Jun 05 17:19:18 but i am just asking Jun 05 17:19:22 what's a decent price Jun 05 17:19:57 sunbeam: seven thousand dollars Jun 05 17:19:57 US Jun 05 17:20:09 no evancharlton Jun 05 17:20:11 it must be Jun 05 17:20:11 OVER Jun 05 17:20:11 NINE Jun 05 17:20:13 THOUOUSOUOUOUOUOUSSAAND Jun 05 17:20:30 evancharlton: ? Jun 05 17:20:36 there is a price associated with determinig a price Jun 05 17:20:41 +1 Jun 05 17:21:09 i'll write you an app that can record five (hard-coded) seconds of voice, and transform it with "some" effect Jun 05 17:21:12 but i get to choose the effect Jun 05 17:21:36 it's just oging to be 5 seconds of moo'ing :P Jun 05 17:21:47 public byte[] transform(byte[] input) { return input; } Jun 05 17:22:07 i was just going to toggle the lsb or something Jun 05 17:22:18 im not sure that counts as an "effect" evancharlton Jun 05 17:22:26 mine's the identity transform Jun 05 17:22:34 i suppose Jun 05 17:22:59 take 5 seconds of voice and make it into a fart, imo. Jun 05 17:23:09 Would make BILLIONS Jun 05 17:23:31 WDNAFA (We Don't Need Another Fart App) Jun 05 17:23:49 WDNAFA (We definitely need another fart app) Jun 05 17:23:58 oh, snap Jun 05 17:23:58 we need dozens more fart apps Jun 05 17:24:02 with holo themes Jun 05 17:24:04 and action bars Jun 05 17:24:18 and viewpager Jun 05 17:24:20 i can't wait to see what's in the overflow menu Jun 05 17:24:28 It'll be messy Jun 05 17:24:30 ... ew. Jun 05 17:25:24 sunbeam: as for a serious answer: what you asked was basically "how much should I pay for a piece of metal? It's a good size." Jun 05 17:25:59 evancharlton: is the specifications (code) so hard to understand for you? Jun 05 17:26:11 * jasta raises an eyebrow Jun 05 17:26:50 sunbeam: I didn't see any specs. I saw a vague product description. Jun 05 17:27:05 It's not a spec, but I guess they don't teach you to properly spec in mail order MBA's. Jun 05 17:27:20 So.. 10K and it will be reallygood! Jun 05 17:27:56 evancharlton: so what more do you want to know? Jun 05 17:28:17 sunbeam: nothing, because I really don't care. I don't know if you're trying to figure out what to bid, or what to pay. Jun 05 17:28:38 to pay Jun 05 17:28:39 you should charge whatever they can afford, or you should pay whatever you can afford Jun 05 17:28:54 thanks for the very helpfull answer nigga Jun 05 17:28:58 LOL Jun 05 17:29:01 Pretty much: "Pay what you're comfortable paying" Jun 05 17:29:06 hehe Jun 05 17:29:10 i was just about to wave goodbye to him Jun 05 17:29:13 :) Jun 05 17:29:19 let's go make a racial slur toward an op Jun 05 17:29:19 hi btw :) Jun 05 17:29:24 always works out well Jun 05 17:29:31 sup jasta Jun 05 17:29:40 canadiancow|work: to be fair, I lie in waiting Jun 05 17:30:18 to be fair, he's a dumbass Jun 05 17:30:19 canadiancow|work: some guy in here asked me to try it. Jun 05 17:30:27 moonlightcheese wat Jun 05 17:34:01 does anyone have any experience with spring for android? Jun 05 17:34:07 can i simply give name of the activity in the layout.xml ? for example android:onClick="SecondActivity" ? Jun 05 17:34:22 bsilwal: no Jun 05 17:34:28 I mean, you can Jun 05 17:34:30 but it won't work Jun 05 17:34:54 evancharlton: on a completely different note do you live in charlton ? Jun 05 17:34:59 no Jun 05 17:35:05 ok Jun 05 17:35:36 well i have a opening activity which basically shows logo. When user taps on it it should go to second activity ? Jun 05 17:35:44 do I have to use intent for that ? Jun 05 17:39:21 bsilwal: are you opposed to intents? :P Jun 05 17:39:22 What's the recommended pattern when working with SQLiteOpenHelper? Should I ask it a SQLiteDatabase (getReadableDatabase()/getWritableDatabase()) everytime I want to touch the database, and then imediately close it when I'm done. Or should I use a single SQLiteDatabase for the whole activity/app lifecycle? Jun 05 17:40:47 * tooguy makes the worst fist entrance into a room ever Jun 05 17:40:57 um Jun 05 17:41:00 BlackYue: just one Jun 05 17:41:16 hello android whyzards Jun 05 17:41:21 tooguy: if you're looking to make a fist entrance, I think you're lost. this isn't that kind of channel. Jun 05 17:41:23 wongk: its not like that I dont like it, but just wondering if there is any simpler way of achieving it Jun 05 17:41:40 tooguy: try dalnet for that Jun 05 17:41:49 bsilwal: that's only like 4 lines of code, are you sure you need to simplify? :P Jun 05 17:41:55 heh Jun 05 17:42:04 I'm actually looking for some dev help Jun 05 17:42:13 you're doing it wrong Jun 05 17:42:16 trying to root and make a rom for an older android device Jun 05 17:42:26 but it seems like no one ever bougt one Jun 05 17:42:27 tooguy: #android-root Jun 05 17:42:52 i feel like I'm being given te run aound Jun 05 17:42:59 because the first place told me to come here Jun 05 17:43:02 we don't deal in ROMS Jun 05 17:43:08 we deal in apps Jun 05 17:44:00 alright Jun 05 17:48:31 wongk: One for the whole app, or per activity? Jun 05 17:49:10 for the whole app, unless you have some unusual requirements Jun 05 17:52:14 no one is even in hat channel Jun 05 17:52:19 *that Jun 05 17:52:39 Have any of you ever used a Sharp IS01? Jun 05 17:53:13 it's so cool, but the lack of support makes me want to tear my brains out Jun 05 17:53:16 via my hair roots Jun 05 17:54:53 tooguy: my friend had it, wasnt any good as a phone Jun 05 17:55:16 yeah but as a full keyboard touchscreen computer it would excel Jun 05 17:55:26 If i cold only fix it Jun 05 17:55:46 i mean granted I do hate it Jun 05 17:55:51 but I don't want to Jun 05 17:56:09 its also a bit old as of now Jun 05 17:56:31 yeah so there should be no reason why it wouldn't e possible to change it to a differnt OS Jun 05 17:56:34 like if I wanted to put Jun 05 17:56:36 say Jun 05 17:56:39 ubuntu on it Jun 05 17:56:44 * tooguy hides in the corner Jun 05 17:56:57 because I do't know if that's possible Jun 05 17:57:10 to jus make it into a tiny netbook Jun 05 17:57:15 instead of an android phone Jun 05 17:57:23 that'd be cool i admit Jun 05 17:57:29 but impossible right? Jun 05 17:57:38 i bet Jun 05 17:57:46 does java in android have anything similar to an alert message? Jun 05 17:57:49 has anyone ever tried that? Jun 05 17:58:35 isnt it pretty hard to replace android with ubuntu in the first place Jun 05 17:58:38 for any device Jun 05 17:58:41 i dunno Jun 05 17:58:45 running ubuntu on top of android is pretty trivial Jun 05 17:58:50 i just know it's got a 1ghz processor Jun 05 17:59:00 i messed around with my samsung galaxy tab earlier Jun 05 17:59:01 and the phone is locked into 1.3 Jun 05 17:59:16 hi Jun 05 17:59:22 no way to get it to update Jun 05 17:59:27 ah i thought it was 1.6, 1.3 is even worse. no wonder my friend couldnt run any of the apps i created Jun 05 17:59:37 i'll check to make sure Jun 05 17:59:48 theres no 2.3 custom rom for it? Jun 05 18:00:01 nah Jun 05 18:00:09 not even root nstructions Jun 05 18:00:26 like i said I feel like the only owner of this phone Jun 05 18:00:35 there is a japanese guide Jun 05 18:00:44 but I couldn't make sense of it Jun 05 18:00:53 well actually its the first time i ever heard of anyone having it outside japan. i live in japan Jun 05 18:00:57 yeah it is 1.6 Jun 05 18:01:09 I just moved back from japan Jun 05 18:01:13 like last week Jun 05 18:01:21 i just moved back to japan....today Jun 05 18:01:27 lol Jun 05 18:01:35 sleepless in seattle Jun 05 18:01:53 I have an app that has a few activities. One activity launches another. In this second activity, if you pull out the physical keyboard, and then go back to the root activity, I am presented with a white screen. Close the keyboard and the activity appears. I am working with configChanges in the manifest, as well as trying to have a horizontal layout in my xml files too, but so far no luck… not sure exactly what the issue is Jun 05 18:02:09 starting work tomorrow, i havent touched any android programming since 2.1 Jun 05 18:02:11 need to catch up quick Jun 05 18:04:11 i'm reading many tutorials on making custom extended views, overriding ondraw and such. How can i use these custom views on an xml view i have? they always call setContentView(new Customview(this) ) but i would like to draw over an existing ImageView in my layout Jun 05 18:09:37 I can't even figure out how to reset the phone to factory settings Jun 05 18:09:48 This is pissing me off more than my Gtab Jun 05 18:10:16 Say I wanted to remote control an application through another phone (by opening a socket or whatever), how would I make sure that part of the application is always running? Jun 05 18:11:29 foreground service Jun 05 18:11:39 that'll give you an approximation of "always" Jun 05 18:13:21 Awesome. Jun 05 18:15:02 hey everyone Jun 05 18:17:55 back Jun 05 18:20:42 Do I have to make a new HttpClient every time I post data to a website, or can I re-use the same over and over again? Jun 05 18:21:02 I have to go Jun 05 18:21:13 but I hope I am able to get this phone to at least reset Jun 05 18:22:08 I'm having trouble with Eclipse and my first android app. I set up a TextView in res/layout for spitting out diagnostic info from Location Services. Then, in the .java file I create a private Textview variable called "output". AFter getting a Location Manager I try to go output.append(string here) and the app crashes. I'm trying to follow the book Hello, Android fi that matters Jun 05 18:23:36 Jobo: it can be reused. Jun 05 18:23:37 Jobo: reus eit Jun 05 18:24:06 it can even be reused concurrently, if done correctly Jun 05 18:25:11 shutin: and how did you initialize the member "output"? Jun 05 18:26:00 wongk: oh dangit! I just found what i think i forgot! Jun 05 18:26:05 output = (TextView) findViewById(R.id.output); Jun 05 18:26:47 details Jun 05 18:27:18 i wasnt tying the private member TextView output to the layout Jun 05 18:27:33 Thanks readme and wongk Jun 05 18:27:44 yeah thanks wongk Jun 05 18:28:00 how do you step over lines in Eclipse? Jun 05 18:28:10 F6 Jun 05 18:28:13 ctrl + f5 is step into Jun 05 18:28:18 ok great Jun 05 18:28:20 hmm would it be stupid to ask how to develop games for android here? :o Jun 05 18:28:23 F5 is step into Jun 05 18:28:44 guys, what do you people usually use to make games? I mean you use any "extension" like the andengine or something? Jun 05 18:28:50 NielsMkn: no, but it might be supid to ask if it is stupid to ask ;) Jun 05 18:30:54 so, no one is developing games around? xD Jun 05 18:31:07 oh well so I ended up becoming what I was hoping to avoid :P Jun 05 18:31:17 I wrote some interactive live wallpapers Jun 05 18:31:19 anyways so how do you do it then? :o Jun 05 18:31:25 protip, don't use canvas Jun 05 18:31:45 NielsMkn: your question indicates you've done no research on the topic Jun 05 18:31:48 then what? Jun 05 18:31:51 suck my dick PreferenceActivity Jun 05 18:32:19 not really Jun 05 18:32:23 unnecessary Jun 05 18:32:38 I did read that I had to know java and I had to do it via Eclipse IDE Jun 05 18:32:54 the former is true Jun 05 18:33:06 but I started learning java and I have been doing it for a week and I am bit bored so came here :P Jun 05 18:33:32 sounds like a good time to start learning androuid... with something simpler than a game Jun 05 18:33:52 agreed... Jun 05 18:34:07 androuid? Jun 05 18:34:07 d.android.com Jun 05 18:34:36 if you can't figure out that typo, you should probably not be developing Jun 05 18:34:47 xD Jun 05 18:35:01 hehe I did while I was typing that :P Jun 05 18:35:12 QA came over to me... "whats the id of this button?" so i showed him hierarchyviewer Jun 05 18:35:21 "OMG I NEEDED THAT TWO WEEKS AGO" Jun 05 18:36:21 why does QA need hv? Jun 05 18:36:39 he Android SDK provides the tools and APIs necessary to begin developing applications on the Android platform using the Java programming language. Jun 05 18:36:46 more like.. how does a QA person even know how to run eclipse! Jun 05 18:36:50 hire that person Jun 05 18:37:08 or are they running it from the cli, even better Jun 05 18:37:12 he's writing automated testing shit Jun 05 18:37:19 It seems I have to learn java :/ Jun 05 18:37:19 incredible! Jun 05 18:37:21 like "click button R.id.whatever" Jun 05 18:37:31 canadiancow|work: you mean like robotium? Jun 05 18:37:40 s/like// Jun 05 18:37:47 nice Jun 05 18:38:52 btw, any way of making the emulator faster? I know emulator it's by deffinition slow....but If I remeber corectly, I've read something about intel that made a faster one or something like that (if the mind doesn't trick me) Jun 05 18:39:00 hi, i am planning to write an app that reads values from the accelerometer and does something in case these values are too large. what kind of wakelock do you recommend? Jun 05 18:39:35 luci1093: they developed x86 images Jun 05 18:39:51 (or dont you recommend one at all) Jun 05 18:39:57 is it possible to play 2 videos simultaneously in an android app? Jun 05 18:40:20 wongk: and what that exactly?lol Jun 05 18:40:31 you know what x86 is? Jun 05 18:40:48 possible: maybe, worth trying? no. Jun 05 18:41:09 yes I know Jun 05 18:41:20 so emulator images are typically arm Jun 05 18:42:56 xorAxAx, depends what behaviour you want, do you want to stop it sleeping, or to wake up the device when you hit that theshold? Jun 05 18:43:05 PS i heard they released an x86 ICS image Jun 05 18:43:21 preds_: i want some kind of interrupt when its moved Jun 05 18:43:29 (it will be an anti-theft app :D) Jun 05 18:43:37 wongk: ok and how does that influence us? Jun 05 18:43:53 preds_: ... even when its locked Jun 05 18:43:55 luci1093: i was answering your question Jun 05 18:44:14 they're faster, hopefully for obvious reasons Jun 05 18:44:25 xorAxAx, sounds like you want PARTIAL_WAKE_LOCK Jun 05 18:44:43 1 sec , I'm changing PCs Jun 05 18:44:45 preds_: what happens when i lock a device and i have a sensor listener active? Jun 05 18:44:55 How come, that if I draw 5 images of the size 48px*48px, they fill the whole 320 pixels(width) of the screen Jun 05 18:45:24 in my experience the sensor listener will keep running Jun 05 18:45:47 without a wake lock Jun 05 18:46:14 but I didn't test that scenario very much, I actually turned the listener off when the screen went off to conserve power Jun 05 18:46:29 so why would i need a partial_wake_lock? Jun 05 18:46:43 just to be sure? Jun 05 18:47:02 I need to pay to be able to publish my apps? :/ Jun 05 18:47:16 NielsMkn: Yes Jun 05 18:47:23 ok back Jun 05 18:47:23 But only $25 Jun 05 18:47:24 xorAxAx, basically yeah. It'll tell the phone you don't want it suspending the cpu Jun 05 18:47:28 And only a onetime fee Jun 05 18:47:36 which obviously would kill your sensorlistener Jun 05 18:47:37 um, and how exactly do I use that "image" or whatever ? Jun 05 18:47:48 it's probably not required in all scenarios Jun 05 18:48:00 you create an AVD Jun 05 18:48:16 preds_: interrupts are not supported by the sensor stuff of android, right? Jun 05 18:48:21 i wonder how its solved by the sleep app Jun 05 18:48:41 (which rocks and which i bought :) Jun 05 18:48:56 but I don't have a credit card :S Jun 05 18:49:29 wasn't expecting ms to do this : http://techcrunch.com/2012/06/05/onx/ Jun 05 18:49:51 xorAxAx, not sure sorry.. all I know is generally speaking your sensors will keep running even when the screen is off Jun 05 18:50:21 so unless you hit some sort of cpu suspend it'll keep running.. and you can use the partial wake lock to prevent that Jun 05 18:50:37 but I have nfi in what scenario a cpu suspend happens Jun 05 18:50:41 ow god , I didn't see it until now Jun 05 18:51:36 ok Jun 05 18:52:01 g00s: interesting Jun 05 18:56:45 gtg later Jun 05 18:56:58 How come that Android automatticly resized all of my images to 43*43 when they're originally 32*32 ? Jun 05 18:57:45 How can I check the activity result code on a test based on ActivityInstrumentationTestCase2? Jun 05 18:58:17 mad1231999, because you put them in drawable-hdpi and you're running on xhdpi Jun 05 18:58:20 or something like that Jun 05 19:03:44 maybe a bit of a silly question, but do all Android devices come with YouTube pre-installed? Thinking api level 8+ Jun 05 19:04:22 not necessarily Jun 05 19:04:41 certainly not if the vendor doesn't bundle the Google app pack Jun 05 19:05:15 for example, the Kindle Fire. Jun 05 19:05:24 aah k, thank you very much Jun 05 19:05:25 i dont think you can call that an android device Jun 05 19:05:28 maybe an AOSP device Jun 05 19:05:35 not even that Jun 05 19:05:41 it is not formally Android compatible Jun 05 19:05:42 thankfully kindle fire sales have plummeted ;) Jun 05 19:05:42 AOSP-based device Jun 05 19:05:50 it just happens to have been based on Android code Jun 05 19:07:15 Timmaah1201: why do you ask? Jun 05 19:08:09 I was just wondering because I originally thought that to get a video to open in youtube I needed to know its intent or something.. but I've found out the Android is a lot smarter and will give the user the option if i start a new activity that parses a youtube uri Jun 05 19:08:17 yep Jun 05 19:08:40 don't worry about whether youtube is present; just use the standard VIEW intent and let the user get what they expect / have configured as default Jun 05 19:09:06 and catch ActivityNotFoundException ;) Jun 05 19:09:10 always Jun 05 19:10:19 don't catch ActivityNotFoundException :( Jun 05 19:10:25 PackageManager#resolveActivity Jun 05 19:10:49 how long should it take between publishing an app to the store and being able to access it via play.google.com/store/apps/details?id=my.domain.app link? Jun 05 19:11:01 no, you should always catch it. it's possible to get ActivityNotFound even when the resolver was involved. Jun 05 19:11:01 longer than you had patience to wait Jun 05 19:11:02 ironhalik: "soon" Jun 05 19:11:23 oh, k :> Jun 05 19:11:39 ctate: what? Intent intent = new Intent(..); if (pm.resolveActivity(intent, 0) == null) { intent.setPackage(null) } startActivity(intent); Jun 05 19:11:43 how can that explode? Jun 05 19:11:56 I mean, assuming your action is right and everything Jun 05 19:13:03 well, even if you do that, catching ActivityNotFound seems... easier? Jun 05 19:13:41 evancharlton: if, when the resolver UI is foreground, the user switches to settings and uninstalls one of the apps in the list, then switches back and picks that one Jun 05 19:14:01 the startActivity() will throw as you might think Jun 05 19:14:17 known issue through ICS. Jun 05 19:18:20 ctate needs to release ICS_MR2 to fix that Jun 05 19:18:39 or i guess thats not a public api change, so it owuldnt need to be MR2 Jun 05 19:18:42 just a 4.0.5 or something Jun 05 19:20:21 idea's plugin browser is sweet Jun 05 19:20:44 too bad to use idea, I have to occasionally do a resize-window dance in order to correct the behavior of the drop down menus Jun 05 19:20:54 how can I save static files like css/js at local and webview will be forced to get resources from local? Jun 05 19:21:04 assets dir, gimi Jun 05 19:21:12 file:///android_asset/foo.htm Jun 05 19:21:18 readme:more detail please Jun 05 19:21:41 ? Jun 05 19:21:44 is that enough detail? Jun 05 19:22:11 http://i.imgur.com/cpTsb.jpg Jun 05 19:23:12 http://stackoverflow.com/questions/3152422/webview-load-html-from-assets-directory Jun 05 19:25:48 readme:thanks, it may my problem is the same at setContentView(R.layout.webview); Jun 05 19:26:07 it should set content before load url Jun 05 19:27:00 gimi: dox Jun 05 19:30:45 Is there a way to know when the children of a listview have been drawn? Jun 05 19:33:15 when i turn the emulator to landscape it seems to take layout from layout-land folder but when I turn it back to portrait it stays the same. Any idea why ? Jun 05 19:33:30 snooplsm: why Jun 05 19:36:15 canadiancow|work: i'm writing synchronozied scroll and my sync isn't happening. Jun 05 19:36:23 the very first time Jun 05 19:36:52 just post a runnable Jun 05 19:36:58 after you set the adapter Jun 05 19:37:42 bsilwal, android emulator work very bad Jun 05 19:40:03 though so, ech0s7 it has layout problem with its native apps as well (puke) Jun 05 19:40:25 my old intern just asked me the difference between a "long long" and a "double" in obj-c :( Jun 05 19:40:32 new intern > old intern Jun 05 19:40:41 hey, i feel kind of braindead about this, but i have a textview and a button in a vertical linearlayout and i'd like to programmatically set the button's width (i.e. from java and not from a layout xml file) Jun 05 19:40:50 why Jun 05 19:41:04 bsilwal, it is, is full of bugs Jun 05 19:41:15 ...er, why do i want to set the button's width? right now it's consuming the entire horizontal space, which looks a little odd Jun 05 19:42:30 wrap it in a horinzontal layout and stick an empty View on one side of it and let it size itself Jun 05 19:42:53 that seems like a lot of views for something rather simple Jun 05 19:43:18 whould your alternative be to set a fixed size? Jun 05 19:43:24 Escherial: layout_width="wrap_content" Jun 05 19:44:00 ctate, can i come visit you on june 20/21/22 ? Jun 05 19:44:01 oh yes, wrap content, i must be smoking crack Jun 05 19:44:16 intermixing my layout systems Jun 05 19:47:28 canadiancow|work: .. Jun 05 19:47:37 how does someone like that get hired? Jun 05 19:47:39 wat Jun 05 19:47:53 so he's an intern Jun 05 19:48:00 he's actually really good Jun 05 19:48:07 he just doesnt have the theory Jun 05 19:48:12 whats the difference between a final String and an immutable String Jun 05 19:48:14 i dont get it Jun 05 19:48:25 lol Jun 05 19:48:46 all strings are immutable, a final string is an immutable REFERENCE to a string Jun 05 19:48:55 amirite? Jun 05 19:48:57 yes Jun 05 19:48:58 urrite Jun 05 19:49:16 huh Jun 05 19:49:40 if it's final you can't reassign mystring to another string later Jun 05 19:49:52 String x = "x"; x = "y"; // valid Jun 05 19:49:57 final String x = "x"; x = "y"; // invalid Jun 05 19:51:41 'final' is like const in C Jun 05 19:52:06 the compiler won't let you assign to it more than once [and the java compiler is smart enough to let you either assign during static init or in the class's ctor, but not both] Jun 05 19:52:25 im impressed actually Jun 05 19:52:27 "immutable" is just a term of art that describes the behavior of certain classes like String and the autobox types Jun 05 19:52:36 like: final int x; if (y) { x = 1; } else { x = 2; } Jun 05 19:52:38 it means that once constructed, the bits of the object may not be changed. Jun 05 19:52:38 thats valid Jun 05 19:53:17 canadiancow|work: right, becuase javac is smart enough to trace alternatives and prove that the final member var is assigned exactly once regardless, so it's kosher Jun 05 19:55:28 intellij's vim emulation plugin is pretty decent Jun 05 19:55:57 the one I tried in eclipse was buggy, and it wasn't even free. eclim was cool, but cut out too many eclipse features by replacing the editor. Jun 05 19:58:39 I just use vim itself. Jun 05 19:59:20 if I want to change text size how do I do it from the Activity.java ? Jun 05 19:59:30 es.setText("Break!"); I want to change the size of the Break Jun 05 19:59:37 bsilwal: call setTextSize() on the view? Jun 05 20:00:42 I want to associate one activity with a given file type, so I added this intent filter to my android-manifest http://pastebin.com/9WxVmaC7 It works when the file is downloaded from the browser or openned via the file browser app, but doesn't work when I open a file just received via bluetooth... What should I do for it to work? Jun 05 20:01:09 oh it was trivial thanks ctate Jun 05 20:03:50 pragma-: vim can't do this: http://i.imgur.com/EgoZE.png Jun 05 20:03:59 well, maybe with a plugin it can Jun 05 20:04:06 but this comes ootb with intellij Jun 05 20:04:16 preinstalled Jun 05 20:04:22 my repo should be higher up on that list Jun 05 20:04:41 change your name to apragma, then Jun 05 20:04:47 should be sorted by popularity! Jun 05 20:04:49 good god someone hit that product with an ugly stick Jun 05 20:05:14 yeah, the font is a bit crappy Jun 05 20:05:14 btw, I just use git itself. Jun 05 20:05:18 :D Jun 05 20:05:19 so do i Jun 05 20:05:38 but not having to open the browser to get at your watched repos is pretty slick. Jun 05 20:06:05 the font is crappy, the grey background on everything is crappy, the button look is crappy... Jun 05 20:06:13 the red text is crappy Jun 05 20:06:25 the lack of padding is crappy Jun 05 20:06:51 can i use these default values and get away for standard logo or image buttons ( I think it is more complex and depends on situation ) ? Jun 05 20:06:52 hdpi : 72 × 72 Jun 05 20:06:52 ldpi : 36 × 36 Jun 05 20:06:52 mdpi : 48 × 48 Jun 05 20:06:53 xhdpi: 96 × 96 Jun 05 20:06:54 sounds ctate approved! Jun 05 20:07:15 ... must be Xwin Jun 05 20:07:22 >:) Jun 05 20:07:45 bsilwal: what do you mean by "standard logo or image buttons"? Jun 05 20:08:46 ctate: when i create new android project, all the drawable folders has an android image with those sizes. I was actually referring to them for different screen size ratios. Jun 05 20:08:50 the grey background is a fact of my x11 window manager Jun 05 20:08:54 rather than intellij Jun 05 20:09:58 ctate: so if I keep ratios exactly to them, it should be fine ? I think ! Jun 05 20:11:17 those sound like the recommended sizes for home-app icons Jun 05 20:11:41 http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html Jun 05 20:11:54 ya but icon or button sizes differ from application to application, the different between them remain the same. I think Jun 05 20:12:08 use whatever you want for buttons and so on Jun 05 20:12:15 whatever fits your design & usability goals Jun 05 20:12:35 right Jun 05 20:13:05 http://24.media.tumblr.com/tumblr_ltr3gs708q1qiv9lwo1_1280.png Jun 05 20:13:39 is it bad form to put a SlidingDrawer in its own xml and just include it in another one? Jun 05 20:14:18 I have a is that ok to do if SlidingDrawer isn't a subclass of a Layout but rather a ViewGroup? Jun 05 20:15:08 I mean it seems to be working, I just don't know if it's right in terms of best practices and/or if there's a better way Jun 05 20:15:38 by using SlidingDrawer, you are outside of the best practices zone already Jun 05 20:15:49 heh, why? Jun 05 20:15:58 what should I be using in its place? Jun 05 20:16:03 afaik there is no replacement Jun 05 20:16:22 but that does not stop you from being outside of an idealistic boundary Jun 05 20:16:31 whose ideals? :) Jun 05 20:16:35 using sounds fine to me. Jun 05 20:16:45 cool thanks Jun 05 20:16:46 the ones I've heard professsed here by idling long days and nights Jun 05 20:16:51 hello all Jun 05 20:16:54 pretty much all the built-in layouts subclass ViewGroup, no? Jun 05 20:17:07 readme: interesting, ppl just don't like them eh? Jun 05 20:17:13 wait, whats the matter with slidingdrawer ? Jun 05 20:17:21 ctate: oh cool, I didn't know that, but it makes sense Jun 05 20:17:22 There is a reason, I just don't remember what it was Jun 05 20:17:25 * readme digs Jun 05 20:17:38 Layout is android.text.Layout, innit? used for laying out *text*, not what we think of as full UI layouts Jun 05 20:17:47 the implementation is half-assed Jun 05 20:18:14 yo dawg, i heard you like layouts Jun 05 20:18:29 you have to subclass it, so that when it expands it doesn't take up the whole parent viewgroup Jun 05 20:18:51 I'm trying to think up of a way of having users submit their own links.. So one idea was that when the user enters their link, it automatically sends a post request to a website which stores it in a database.. This shouldn't be too difficult.. Just wondering if there's a better way of going about it? Jun 05 20:18:57 g00s: ahh that was my next step exactly, because need to be able to get it to stop at a certain point Jun 05 20:19:25 tnzr: yeah, i think that code is on stack overflow Jun 05 20:19:52 howdy folks, I'm having a bit of trouble using SQLite. Specifically, I can't make changes to my database. Any thoughts? Jun 05 20:20:53 my thoughts are where is your code and stacktrace Jun 05 20:21:24 scone: or maybe you opened your db read only :P Jun 05 20:21:26 readme++ Jun 05 20:21:28 hehe Jun 05 20:21:29 * ctate points to the imgur link in the channel topic Jun 05 20:22:14 * canadiancow|work points to ctate Jun 05 20:22:26 g00s, well, I used SQLiteDatabase.OPEN_READWRITE, and getWritableDatabase(), is there anything else I need to do to make it writable? Jun 05 20:22:50 you'll have to post code i guess ;) Jun 05 20:22:57 I have never used that constant Jun 05 20:23:03 and I've written multiple apps with sqlite Jun 05 20:23:17 you guys have a preferred pastebin? Jun 05 20:23:51 http://pastebin.com/mCS17FnL Jun 05 20:23:56 that's my openHelper Jun 05 20:24:22 anything in the logs when it tries to do whatever's failing? Jun 05 20:24:24 scone: btw, our preferred pastein is anything that's not this channel :P Jun 05 20:24:40 i'm using a pre-existing database file, so that might be a curve ball Jun 05 20:25:03 oh Jun 05 20:25:04 ctate, no, no errors or anything. I write to the log to see if it's working, but that's it Jun 05 20:25:06 yeah you can't do that, scone Jun 05 20:25:09 also does sqlite complain when you open it? Jun 05 20:25:20 scone: is your database in assets/ or res/raw/ or something? Jun 05 20:25:22 also, how exactly are you opening it / where does it live when you are? Jun 05 20:25:30 evancharlton, i copy it to /data/data Jun 05 20:25:33 scone: ah Jun 05 20:25:47 Sooo.... in Android, is sending a android.os.Message kind of delayed? I get the messages after I restart the activity (or something to that effect). Jun 05 20:26:01 one possible response when sqlite thinks the db is corrupt is to force readonly mode when it's opened Jun 05 20:26:27 the db can be corrupt if its sqlite 2 and not sqlite 3 Jun 05 20:26:27 shoerain: how exactly are you posting the messages to be handled, and how are you ahdling them? Jun 05 20:26:31 but i'm not paying attention to this convo Jun 05 20:26:36 snooplsm: LIES Jun 05 20:26:37 ctate, I don't get any errors when I open the DB, but can you make sense of what's going on in the code I posted? Jun 05 20:26:46 ctate: just ran into problem the other day Jun 05 20:27:00 scone: i think you are under the mistaken misapprehension that i know either jack *or* squat about sql Jun 05 20:27:10 snooplsm, I use the same DB in the iOS version of the app, but it was created by Firefoox SQLite manager, both of which are sqlite 3 Jun 05 20:27:24 ("mistaken misapprehension"? siiiiiiiiiigh.) Jun 05 20:27:31 oh Jun 05 20:27:36 you need to add some stupid field Jun 05 20:27:42 ctate, well, I figured you might since you responded to me :P Jun 05 20:27:42 use the static method to open the database Jun 05 20:27:57 scone: about what's going on around the edges :) Jun 05 20:28:06 snooplsm, what static method? Jun 05 20:28:34 http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#openDatabase(java.lang.String, android.database.sqlite.SQLiteDatabase.CursorFactory, int) Jun 05 20:28:36 use readonly Jun 05 20:28:52 if you need to write to the db, you are going to have to add a table Jun 05 20:29:01 ctate, I'm calling a rawQuery on the db to update a row in one of the tables, and another query to check that it's made the change. I can read all the data I need Jun 05 20:29:04 hey all Jun 05 20:29:37 hmm Jun 05 20:29:42 snooplsm, well, the thing is that I need to write to pre-existing data. it must be possible... I do exactly that in the iOS app which uses sqlite3 Jun 05 20:29:42 you could also just generate a big batch of sql statements Jun 05 20:29:46 and recreate the whole database Jun 05 20:29:56 readme, yeah I figured that might have to happen Jun 05 20:30:03 I just tossed the SlidingDrawer into a LinearLayout that was some set number of dp and it seems to work fine Jun 05 20:30:03 is there really no other way? Jun 05 20:30:10 how can i get root acess in the android emulatior Jun 05 20:30:15 it's probably the simplest one, if there is another way. Jun 05 20:30:18 scone: add this table: CREATE TABLE android_metadata (locale TEXT); Jun 05 20:30:20 JakeWharton: CHange tab swipe ing from left to right and vice verse is no ABS code? Jun 05 20:30:30 what? Jun 05 20:30:31 scone: add this entry: en_US Jun 05 20:31:36 JakeWharton: Can you change tab by swipeing your finger from lright to left? in your tab navigation example anyway Jun 05 20:31:42 no Jun 05 20:31:46 that's a ViewPager Jun 05 20:31:53 and that is part of the content view, not the action bar Jun 05 20:32:37 JakeWharton: Hmm, is viewpager available in api 10? (Not ABS related I know) Jun 05 20:32:45 it's in the support library Jun 05 20:33:01 ok Jun 05 20:33:24 JakeWharton: I'm going to replace you with a bot Jun 05 20:33:39 it says "It's in the support library" 50% of the time Jun 05 20:33:50 and the other 50% says to file a bug on your github Jun 05 20:33:50 maybe a stupid question, but can you have a webview for each tab/view when using viewpager? Jun 05 20:34:06 evancharlton: either that or, "its an android bug/framework issue" Jun 05 20:34:48 yes Jun 05 20:34:56 a ViewPager can have any view Jun 05 20:35:08 you'll probably get fun scrolling bugs though since both allow horizontal scrolling Jun 05 20:36:17 ah, thats true Jun 05 20:36:17 listview in a listview? Jun 05 20:36:28 perhaps skipping the slide effect Jun 05 20:37:32 can i have a gridview of listviews? 4x4, and inside listview, I need cat picture Jun 05 20:37:34 hm, I've been wondering about that Jun 05 20:37:47 couldn't you stick it in ViewGroup container, override onInterceptTouchEvent Jun 05 20:38:05 and remove the horizontal touches? Jun 05 20:38:06 or wait Jun 05 20:38:09 that won't work Jun 05 20:40:06 you can put a listview in a listview :) ListView lv1 = (…) ListView lv2 = (…) lv1.setTag(lv1):D Jun 05 20:40:08 * g00s runs Jun 05 20:40:32 oops, lv1.setTag(lv2) Jun 05 20:41:29 g00s: don't make me ban you Jun 05 20:41:33 :) Jun 05 20:42:03 Guys, how to declare gravity attribute for my own custom ViewGroup? Jun 05 20:42:10 Protip for the whole audience: do not put scrolling things inside other scrolling things. Jun 05 20:42:15 No good will come of it. Jun 05 20:43:05 ctate: something along the lines of https://gist.github.com/2877718 Jun 05 20:43:25 ctate: sideways scrolling on top of horizontal scrolling! Jun 05 20:43:38 according to my boss, the dash is an alphanumeric character. Jun 05 20:43:39 ctate: ... sounds like someone was going for yo dawg Jun 05 20:43:51 so is a double-quote. Jun 05 20:44:07 p_l|backup: sure, but it never hurts to make sure that those not in on the joke do not get the wrong impression :) Jun 05 20:44:20 moonlightcheese: your boss is smoking something really crappy Jun 05 20:44:37 i wish he was... Jun 05 20:44:38 neither – nor " are ever considered "alphanumeric" by sane human beings Jun 05 20:44:48 * pragma- has a scrollable graph inside a viewpager and it works fine. Jun 05 20:45:01 oh wait, no I don't. Jun 05 20:45:05 * pragma- confused. Jun 05 20:45:05 #pedant also you probably mean hyphen (-) rather than dash (–) but whatevs :) Jun 05 20:45:19 - can indeed be a numeric character: -1 Jun 05 20:45:32 I've been wondering what would happen if I made the graph fragment a part of the viewpager hierarchy. Jun 05 20:46:07 I assume if you scroll in the graph view, the graph scrolls, and if oyu scroll outside it, the viewpager scrolls. Jun 05 20:49:56 anyone used the lib project manifest merging yet? Jun 05 20:51:50 i should be able to flag a whole book as defective on kindle Jun 05 20:52:16 how do I add an actionbar icon? Jun 05 20:52:22 canadiancow|work: how do you enable that? Jun 05 20:52:24 what should it be called/how to be set? Jun 05 20:52:48 granden: the same way one would create an old overflow menu icon Jun 05 20:53:09 dunno how you would that either Jun 05 20:53:10 just with android:showAsAction="ifRoom" (from memory) Jun 05 20:53:28 http://developer.android.com/guide/topics/ui/menus.html Jun 05 20:57:22 MDijkstra: Nice, thanks a lot. Jun 05 20:57:44 only one thing left to add in the app. Have a splash screen for it. Jun 05 21:01:05 every time you add a splash screen to an app a god kills a kitten Jun 05 21:01:08 and/or puppy Jun 05 21:01:37 or a chipmunk Jun 05 21:02:22 JakeWharton: Oh, so splash screens is a no no in the android world? Jun 05 21:02:36 Very popular in the ios world. Jun 05 21:02:38 I subscribe to the content-first notion Jun 05 21:02:55 as soon as the user enters the app they should immediately be presented with the most important content they would want to see Jun 05 21:03:10 as much as I loathe the new Google+ app, it does this vey well Jun 05 21:03:27 while you're loading a lot of stuff, i think a splash screen is ok, but if you can get the screen right away that's what i also prefer Jun 05 21:03:35 ok, great then I skip that and the app is ready. Jun 05 21:03:46 how do i tell it to use different xml files based on the phone's orientation ? Jun 05 21:04:00 granden: I'd say splash screen is a no no in the whole universe Jun 05 21:04:27 BlackYue: Yeah, but really popular in the ios world anyway Jun 05 21:04:39 I immediately show the default layout and then use a progress bar instead of a splash screen for long-loading apps Jun 05 21:05:07 but some apps have publishers, and publishes want publicity Jun 05 21:05:28 scone: that work? Jun 05 21:05:37 bsilwal: layout-land and layout-port. I haven't used it personally, though. Jun 05 21:05:52 er, res/layout-land/ and res/layout-port/, instead of res/layout/ Jun 05 21:06:02 snooplsm, no, not quite. Do I also need my id columns to be called _id? Jun 05 21:06:13 shoerain: yes i have these folders created using add android xml file widget. But doesnt seem to work Jun 05 21:06:27 do I have to mention something in the xml file itself ? Jun 05 21:06:29 or Jun 05 21:06:35 does it takes up the folder name ? Jun 05 21:06:48 bsilwal: use a resource qualifier Jun 05 21:07:11 Eg Res/layout-land Jun 05 21:07:51 AlCapwn: right, yes those direcotries are added when i create new layout files with existing names. Jun 05 21:08:15 but is android os smart enough to use those xml based on where they are located ? Jun 05 21:08:23 Yes Jun 05 21:08:26 like will it pick it up from the folder name ? Jun 05 21:08:44 so there is nothing additional that I have to do in the XML file itself ? Jun 05 21:08:55 Google for providing resources Android Jun 05 21:08:57 the XML file headers can remain the same for both ? Jun 05 21:09:03 Yes bsi Jun 05 21:09:07 bsilwal: Jun 05 21:09:14 coolio thanks AlCapwn Jun 05 21:09:31 :-) Jun 05 21:10:03 and thanks shoerain as well ;) Jun 05 21:10:24 So play movies thinks my stock Xoom is rooted, let's see if this film works Jun 05 21:11:08 :-( Jun 05 21:11:19 Didn't play *sniff* Jun 05 21:11:55 AlCapwn: seems like everyone knows each other from first three letters + TAB :D Jun 05 21:11:59 hey, can anyone link to somewhere showing the order of prescedence for values? something shat would show which is chosen when there is values-mdpi and values-land and the device is mdpi and in land mode Jun 05 21:12:37 http://pastebin.com/7T1MqiJ4 - Doing like that to have different urls loaded the sites gets reloaded if I jump to tab three, tab two and then tab three igen Jun 05 21:12:48 it has to reload tab three, could I do that in a smarter way? Jun 05 21:13:09 Oh that reminds me, next version of my app will upset users, tab nick complete is broken O:-) Jun 05 21:13:20 :-( Jun 05 21:17:08 I have 12 buttons on my app. In Portrait it works fine, but if I change it to Landscape I see only 9 and credits link is also gone. :/ how do I tackle it ? Do I have to change the entire layout.xml ? Jun 05 21:18:03 someone skipped chapter 2 on layouts and came straight to IRC... again Jun 05 21:18:26 pragma-: :D Jun 05 21:29:22 snooplsm, even after adding the metadata table and changing the id field to _id I can't seem to make changes... any ideas? Jun 05 21:31:19 Say I wanted an ASynctask to run again as soon as it was over. Would calling it again in onPostExecute be a bad idea? Jun 05 21:31:29 probably Jun 05 21:33:33 don't reuse AsyncTasks Jun 05 21:33:38 they're not really made for it Jun 05 21:34:09 when you want to do more sophisticated things, you probably want to move to more general tools like HandlerThread Jun 05 21:36:07 can you only implement one interface? Jun 05 21:36:16 nope Jun 05 21:36:19 as many as you want Jun 05 21:36:29 you can only extend one class though Jun 05 21:36:29 separate with commas? Jun 05 21:36:32 yep Jun 05 21:37:23 dang i should have just tried it. Eclipse is always scaring me with premature red underlines Jun 05 21:37:55 i woud have to take a look at your code Jun 05 21:37:56 I've just updated eclipse to indigo and installed EGit Jun 05 21:38:00 are you using transactions? Jun 05 21:38:03 eclipse is like the slowest moving project ever Jun 05 21:38:59 i'm trying to build a simple waypoint collector. i have mgr = (LocationManager) getSystemService(LOCATION_SERVICE); Jun 05 21:39:10 how can i get the current position on a button click? Jun 05 21:40:32 obviously, put it in the onClick, but can you get a Location object to extract the latitude and longitude from. thanks Jun 05 21:41:40 setuid Jun 05 21:42:54 shutin: it's not quite that easy Jun 05 21:43:39 what if i put a global lat and long variable in the class and changed them every time onLocationChanged(Location) is called Jun 05 21:44:07 shutin: or wait, it actually is Jun 05 21:44:13 mgr.getLastKnownLocation() Jun 05 21:44:21 didn't know that existed Jun 05 21:44:56 that will give stale data or may return null though Jun 05 21:45:00 i tended to ignore it because it could be stale but that's a great thing to start with, thanks! Jun 05 21:45:07 so you're better off just requesting updates Jun 05 21:46:43 something like mgr.requestSingleUpdate(mgr.getBestProvider(), new LocationListener() { ... callbacks here ... }, null); Jun 05 21:47:56 either that or make the class calling requestSingleUpdate implement LocationListener and pass this Jun 05 22:02:10 son of a bitch! I couldn't write to the DB because update queries don't work in the rawQuery function! I switched it to executeSQL and it works fine!! ARRRRGH! Jun 05 22:02:59 scone: rawQuery Jun 05 22:03:20 evancharlton, hm? Jun 05 22:04:36 scone: it's in the name :) Jun 05 22:04:45 it's rawQuery, not rawSQL Jun 05 22:04:48 :) Jun 05 22:04:49 but but but! Jun 05 22:05:03 yeah... well anyway thank god I got this sorted out... it was driving me mad Jun 05 22:10:19 Anyone have a clue why I'm not getting OnResume on a Kindle Fire? Jun 05 22:11:01 Every other device of the 6 devices I've tested gets it Jun 05 22:12:08 in what circumstances? Jun 05 22:12:18 note that the Kindle Fire is officially not an Android-compatible device Jun 05 22:12:25 when I go to the home screen and back Jun 05 22:12:34 I see Jun 05 22:13:00 wow. you don't get ANY lifecycle callbacks in that case? Jun 05 22:13:08 I get OnPause Jun 05 22:13:18 you get a pause but not a resume? wtf? Jun 05 22:13:33 that is pretty bad Jun 05 22:13:49 Yeah.. it's weird. I was just playing around with my app at first.. before I inspected it. It did resume properly twice. Jun 05 22:14:01 But I don't know how it worked those 2 times Jun 05 22:14:05 oh, it worked a few times and then quit working? Jun 05 22:14:10 yes Jun 05 22:14:10 wt double f Jun 05 22:14:29 take it up with Amazon; like i said, officially not a compatible Android device Jun 05 22:14:38 sure Jun 05 22:14:42 thanks Jun 05 22:14:46 but that just sounds like they have a bug Jun 05 22:20:27 I'm messing around with one of those chinese android TV boxes (running 2.3). Say I wanted an app that could be remote controlled through telnet. How would I go about opening the socket? Should it be a service? Jun 05 22:22:13 I was thinking of running an asynctask with a while(true) statement in there for the socketserver and having the connections feed the main app the commands through onprogressupdate. Jun 05 22:22:25 I've never done any real coding, sorry if this sounds real dumb. Jun 05 22:23:00 why would you use an asynctask? Jun 05 22:23:08 oh...i see Jun 05 22:23:25 Before you came in: JustSighDudes> I'm messing around with one of those chinese android TV boxes (running 2.3). Say I wanted an app that could be remote Jun 05 22:23:28 cant say ive ever really written a server on a phone Jun 05 22:23:30 controlled through telnet. How would I go about opening the socket? Should it be a service? Jun 05 22:23:40 ah Jun 05 22:23:52 not sure id use an asynctask Jun 05 22:23:59 probably just a thread Jun 05 22:24:08 unless theres some prebuilt thing to do exactly what you want Jun 05 22:24:10 Someone suggested HandlerThread but that looks way too complicated for me. Jun 05 22:24:11 hi, i have a simple search activity that gets the required keyword from EditText and displays the results in a new listview activity. I would like to have the search button and the results on the same view/screen. I suppose I have to use a FrameLayout, right? Jun 05 22:24:12 which there very well may be Jun 05 22:24:19 HandlerThread is not that complicated! Jun 05 22:24:21 so I'm trying to make a view basically fade into 50% opacity using an animation, but i'm not sure how to start it at full transparency and fade it up to 50% and back. My animation works if I start at some non-zero alpha, but if I have the bg set to #00000000, the alpha never changes Jun 05 22:24:22 (that was me btw :) ) Jun 05 22:24:24 any tips? Jun 05 22:25:09 but yeah, if you're doing (semi-)persistent network actions, you should really look at handling that through a Service rather than just AsyncTask etc Jun 05 22:25:44 So service > handlerthread > asynctask for this particular scenario? Jun 05 22:26:14 well, sort of Jun 05 22:26:15 well, no, the service will still need to launch a new thread Jun 05 22:26:29 they're all *different*, and best suited for different sorts of problems Jun 05 22:26:56 service = OS component Jun 05 22:27:01 You need one to stay alive Jun 05 22:27:04 listen to ctate Jun 05 22:27:05 he knows best Jun 05 22:27:26 'Service' is an Android OS entity that exists to provide a certain kind of lifecycle semantics Jun 05 22:27:38 notably, a formal lifecycle that is independent of Activity lifecycles Jun 05 22:28:06 Ah. So service would persist through different activities in a single app? Jun 05 22:28:10 HandlerThread is a one-stop shop for setting up a new thread of execution in your app that provides Looper/Handler semantics Jun 05 22:28:16 JustIntoMobile: correct Jun 05 22:28:48 Alright. Off to read about services. Jun 05 22:29:00 AsyncTask is a convenience class for a one-shot fire-and-forget thread of execution with a few useful callback interactions with the "main"/"ui" thread. Jun 05 22:30:07 note that i did *not* say that Service provided a new thread of execution [unlike the other two] -- MDijkstra is quite correct that you need to take steps yourself to achive that in conjunction with a Service. the Service concept is all about the lifecycle. Jun 05 22:31:52 either that or do some kind of select() loop, if that's even possible Jun 05 22:32:21 you'd still need to spin off your own thread for that :) Jun 05 22:32:46 and that's so very "roll your own multitasking infrastructure" hardcore that you should be ashamed :D Jun 05 22:32:51 the plot thickens. when I run it from "Apps" and not the home screen thing, it resumes correctly. Jun 05 22:33:10 ctate: yeah, I've never attempted it on Java Jun 05 22:33:19 I'm a C guy originally :p Jun 05 22:34:01 I hear java's nonblocking IO is increadibly broken anyway Jun 05 22:34:08 (maybe not nio, though) Jun 05 22:35:54 java doesn't really believe in I/O exactly Jun 05 22:35:54 a Jun 05 22:36:02 and it totally doesn't believe in file descriptors Jun 05 22:36:21 and yes, afaict you can't actually do nonblocking I/O properly in java Jun 05 22:36:52 i'm pretty happy with android's concurrency/threading toolkit, though Jun 05 22:36:59 Looper/Handler is just brilliant Jun 05 22:37:39 yeah, it's pretty nice Jun 05 22:37:43 I also like AsyncTask Jun 05 22:37:48 oh yeah Jun 05 22:38:08 Romain wrote that one to use in his own stuff Jun 05 22:38:22 then we just made it a first-class public API because hey, it's handy Jun 05 22:38:36 I like the android api's in general, a bit more pragmatic than the 'throw 2439823 exceptions for conditions which will never ever occur' Jun 05 22:39:19 non-blocking IO, who'd want to do that? Jun 05 22:39:30 ie, when connecting to a website you have to catch like 10 different exceptions Jun 05 22:43:04 hi, i have a simple search activity that gets the required keyword from EditText and displays the results in a new listview activity. I would like to have the search button and the results on the same view/screen. I suppose I have to use a FrameLayout, right? Jun 05 22:44:16 no, LinearLayout would do just fine Jun 05 22:44:37 can you delete or clear a property set with adb shell setprop? Jun 05 22:44:54 i dont see a delprop or something Jun 05 22:48:29 set it to "" maybe Jun 05 22:48:45 or maybe it's adb shell setprop key Jun 05 22:48:46 with no value Jun 05 22:49:18 [log.tag.SpringActivity]: [] Jun 05 22:49:34 usage: setprop Jun 05 22:49:47 serban: you almost never need to use FrameLayout Jun 05 22:49:59 what yo probably want is RelativeLayout and/or LinearLayout Jun 05 22:52:08 birbeck: bah, yes, it's possible but I forget how. resetprop or something? Jun 05 22:52:22 birbeck: but INFO is the default log.tag.* value Jun 05 22:52:59 birbeck: or you can just reboo Jun 05 22:53:01 reboot, too Jun 05 22:55:08 im testing slf4j for android, and the logger statements dont show up if i dont set a tag, but then it doesnt respect the log level when i do set the property Jun 05 22:55:48 gonna throw this out pretty soon i think, no sense in adding size to the apk with slf4j which just wraps the android logger Jun 05 22:58:39 good grief man Jun 05 22:58:50 that does indeed sound like a lose/lose sort of situation Jun 05 23:15:18 ctate: well i was hoping it could save some keystrokes with if isLoggable(...) Jun 05 23:15:56 simple to do with my own logging class however Jun 05 23:37:11 hello all Jun 05 23:59:34 ruh roh http://www.bgr.com/2012/06/04/android-sales-fall-in-u-s/ Jun 06 00:01:03 "Oh boy, Dan, you're going to get eaten alive with this post!" Jun 06 00:01:12 that will hurt Jun 06 00:01:25 it's unclear what they're actually measuring there Jun 06 00:01:43 ctate: probably "new purchases": Jun 06 00:02:47 yeah, i think it is the rate of growth Jun 06 00:02:52 but growing market share? Jun 06 00:03:07 they cite android having a +2.2% share in those four months Jun 06 00:03:16 which does not square with declining sales Jun 06 00:03:44 hmmm Jun 06 00:03:46 "not growing as fast" is nto the same as claiming "android sales fall" Jun 06 00:04:14 ctate: they are calculating second derivation of sales ;) Jun 06 00:04:22 well, first at least :) Jun 06 00:04:32 depends how we define sales Jun 06 00:04:53 they aren't talking about sales, they're talking about ownership Jun 06 00:04:56 * ctate | More than 107 million people in the U.S. owned smartphones during the three months ending in April, up 6 percent versus January. Google Android ranked as the top smartphone platform with 50.8 percent market share (up 2.2 percentage points). Apple’s share of the smartphone market increased 1.9 percentage points to 31.4 percent. Jun 06 00:05:21 that's from the comscore report that the article was supposedly based on Jun 06 00:06:14 the comments at BGR are pretty savage Jun 06 00:06:21 [about the quality of the reporting] Jun 06 00:07:24 the asymco graphs made more sense to me Jun 06 00:08:54 Alright so I have this class, http://pastebin.com/U0DMnRj8 and then I have this to call somethings from that class, http://pastebin.com/7CTWxSNz What am I doing wrong for the view to not update correctly? Jun 06 00:12:39 are DB instances global? meaning, if I open a handle to my DB and close it in another activity... the DB is closed right? Jun 06 00:12:49 im guessing thats how it works (for sanity) Jun 06 00:14:23 under normal circumstances yes, because the activities will all be running in the same process and therefore share things like open files Jun 06 00:14:44 ok thanks Jun 06 00:14:52 it is possible to specify that a given activity should run in a different process, but that is almost never appropriate Jun 06 00:15:04 *nod* makes sense Jun 06 00:15:11 and if you do not have a *compelling* reason to do it, and understand clearly why, then you should not. Jun 06 00:15:46 im at this android user's group right now and a guy asked me that question -- i told him what you just said but wanted to make sure I was right so I double checked Jun 06 00:16:07 he is opening DB then opening again in some async task then closing it in the async task and wondering why he's getting exceptions when he's tryign to still write to the DB Jun 06 00:16:27 he thought that each time you do blahDB = myDBHelper(this); // opens a new instance -- i told him this is not the case Jun 06 00:16:29 an activity is not much more than "a window full of UI, with a formal lifecycle" Jun 06 00:17:05 yeah it's just like opening any other file in any other OS; the obvious applies. Jun 06 00:17:15 got it... thanks dude Jun 06 00:18:35 [everything in a given .apk file runs in the same process by default] Jun 06 00:37:21 "Enable with the manifestmerger.enabled property" Jun 06 00:37:30 where is that property :( Jun 06 00:38:14 does it just go in project.properties as manifestmerge.enabled=true ? Jun 06 00:41:13 ah Jun 06 00:45:44 but that's for ant...where's adt... Jun 06 00:46:21 ctate you there? Jun 06 00:52:37 oh maybe it just ... works Jun 06 00:52:37 :) Jun 06 00:57:06 or not :\ Jun 06 01:00:01 samsung joins linux foundation as a platinum member http://www.businessinsider.com/samsung-linux-foundation-apple-2012-6 Jun 06 01:05:15 hi, im looking for a sample app that does nothing more than display a picture and closes when you press the back button. does anybody know of something like that in the samples from the sdk? Jun 06 01:06:53 giantpune that simple , try in android developers , here : http://developer.android.com/training/camera/photobasics.html Jun 06 01:10:22 thanks fBirD. Jun 06 01:11:17 ;) Jun 06 01:12:12 what would keep the youtube app from showing up in google play store? I have the same ro.build.fingerprint as stock. Jun 06 01:15:56 Using Eclipse+ADT for the first time. I'm having a lot of trouble connecting to a physical device. My device appears many times in the device chooser, but all instances say "offline." Occasionally, if I restart adb, the device will appear just once and will say "online," but if I try to connect to it the output says it went offline. Jun 06 01:16:29 i havent had that problem in over a year :S Jun 06 01:16:36 you on the latest eclipse/tools/adt? Jun 06 01:16:53 I think so, but let me check Jun 06 01:17:02 it sounds like a lousy usb port/cable, tbh Jun 06 01:19:16 many many phones are *extremely* sensitive to cable quality Jun 06 01:19:29 the cable is brand new, and I tried it with someone else's and it gave the same result Jun 06 01:19:43 try a different port. try not using a hub, if you are. Jun 06 01:19:48 try a different cable. Jun 06 01:20:02 seriously; we have to be pretty fussy about what cables we get here in the office Jun 06 01:20:15 the ones we stock now are heavily shielded Jun 06 01:20:51 TheMusicGuy its normal, just disconnect and reconnect the cabel and should work Jun 06 01:20:59 and yes, try replugging Jun 06 01:21:10 I tried the other port (there are only two) and it seems to be working at the moment Jun 06 01:21:11 sometimes the usb stack on the device (or on the host) gets confused Jun 06 01:21:16 [mergemanifest] Merging AndroidManifest files into one. Jun 06 01:21:17 [mergemanifest] Manifest merger disabled. Using project manifest only. Jun 06 01:21:18 ARGH Jun 06 01:21:26 but the other port was morhing just fine until today Jun 06 01:21:31 *working Jun 06 01:21:57 so maybe the port is slightly dirty Jun 06 01:22:13 like i said, these phones are *extremely sensitive*. twitchy, you might say. Jun 06 01:23:13 That's...weird Jun 06 01:23:46 Is there some kind of utility I can use to test my USB ports Jun 06 01:23:56 i had a whole bunch of problems with my usb port after i zapped one (static electricity) Jun 06 01:23:57 or some kind of "testing dongle" Jun 06 01:23:58 i dunno; maybe the parts the phones use are kind of sketchy Jun 06 01:24:13 oh and yeah i've had desktop usb ports go bad Jun 06 01:24:22 like, stop working for data entirely Jun 06 01:24:34 and become dedicated charging outlets :( Jun 06 01:25:05 One of my desktop ports is notably loose and won't work for my portable HDD. curiously, though, it works just fine for android Jun 06 01:25:57 * g00s pictures googlers with ferrite cores around their usb cables Jun 06 01:25:59 right now I'm using a brand new laptop Jun 06 01:28:44 yo Jun 06 01:29:27 thanks for your help, I probably wouldn't have guessed it was the physical connection that was at fault Jun 06 01:30:58 trust me, i speak from my own and my orkers' hard-won experience here :) Jun 06 01:31:17 I'm also having a problem with the emulator. If I try to enable GPU hardware accelleration, the emulator screen stays black and never even shows the android logo Jun 06 01:31:35 sounds like it doesn't [yet] support your particular desktop GPU Jun 06 01:31:36 the odd thing is, it worked fine yesterday, but not today. Jun 06 01:31:43 ha ha ha Jun 06 01:31:46 reboot? Jun 06 01:31:54 tried that Jun 06 01:31:57 does anybody know about these phones with the fake internal sd card? im trying to farmilliarize myself with the directory structure of this phone, but "Environment.DIRECTORY_PICTURES" is giving me a path in /mnt/sdcard. i dont have an sd card inserted, and when i connect the phone to my pc, i dont see the mnt or sd card folders anywhere Jun 06 01:31:59 wack Jun 06 01:32:16 giantpune: like which? Jun 06 01:32:23 TheMusicGuy: maybe recreate the avd Jun 06 01:32:38 also the console keeps saying that it's waiting for HOME to start...don't happen if I disable GPU acceleration Jun 06 01:32:44 I tried that too Jun 06 01:32:49 giantpune: the Google-produced devices like that -- the Xoom, the Galaxy Nexus -- do not publish as a USB Mass Storage device at all Jun 06 01:32:52 this is a lg optimus elite. i read that it has 2 different internal storage and 1 of them gets mounted on mnt-sdcard Jun 06 01:32:58 you access shared storage via MTP Jun 06 01:33:13 oh pfff, no clue. maybe you just can't get at the other stuff; ask LG. Jun 06 01:33:28 also note that there is zero guarantee of what the mount points are called Jun 06 01:33:45 there are APIs on-device for asking where the shared storage lives Jun 06 01:33:55 and that's all that your code can rely on Jun 06 01:34:44 im trying to understand this internal storage they got. but it seems really odd that you cant access it from your pc Jun 06 01:34:47 (what OS rev does that thing run, anyway?) Jun 06 01:34:58 2.3.7 i think Jun 06 01:35:07 gingerbread Jun 06 01:35:25 so yeah, wacky. is there nothing in Settings that lets you ummount & publish as usb mass storage? Jun 06 01:36:21 i get the option to mount the phone in my computer as mass storage. but i have no idea which folders are mounted as what. Jun 06 01:37:10 for example, there is a /mnt/sdcard/pictures as seen by apps running on my phone. but from my computer, i dont see any folders named pictures at all Jun 06 01:37:36 that might be a different volume then Jun 06 01:37:38 crazy Jun 06 01:40:55 giantpune On my box, a lenovo ideapad a1, there is /mnt/sdcard and /mnt/sdcard/external. When I USB-connect it to my computer it mounts each of those separately. Jun 06 01:41:44 And the 'external' one corresponds to my sd-micro card Jun 06 01:43:21 any idea then how everything maps out once it is mounted then? Jun 06 01:44:20 Environment.getExternalStoragePublicDirectory( Environment.DIRECTORY_PICTURES ).getAbsolutePath(); is giving me the /mnt/sdcard, which is not really external at all. and i still have no idea where that folder really is Jun 06 01:47:57 I think there's 2 sdcards. The built in and the optional Jun 06 01:48:05 at least that's how it is in mine Jun 06 01:48:40 use that shell thing that comes with the emulator Jun 06 01:51:57 giantpune your /mnt/sdcard directory should have a bunch of files and a bunch of directories. Is one of those directories named 'external' ? Jun 06 01:52:17 no. but i dont have a micro sd card, yet Jun 06 01:52:27 oh ok Jun 06 01:52:57 im really just trying to figure out where i can put files using my computer and be able to access them from an app i create Jun 06 01:53:12 Oh, I got the name wrong, it's /mnt/sdcard/removable_sdcard Jun 06 01:53:19 have you poked around with adb shell? Jun 06 01:53:26 I mean, I made some sense Jun 06 01:53:40 nope. whats that? Jun 06 01:55:39 it's a shell for the android device. Plug in yr device into your dev machine with a usb. Go to the terminal. Go to the android-sdk/platform-tools directory. enter ./adb shell Jun 06 01:56:00 heh. i got a txt file saying adb_has_moved Jun 06 01:56:10 lemme track that booger down Jun 06 01:57:14 u can nav around and do some file stuff with it. pull and push files from/to dev machine. handy Jun 06 01:58:19 deer god. the txt file says to install "Android SDK Platform-tools". but the install thingymabob says its already installed and wont let me re-install it Jun 06 01:59:24 Can anyone tell me why adb devices lists my phone as ??????? No permissions all of a sudden? Jun 06 01:59:49 anybody have any idea about this? the adb package is failing to install. http://pastie.org/private/cf8bmm6uaxcg0nyc7ezq Jun 06 01:59:53 I have not modified my udev rule Jun 06 02:00:16 i have a textbox with the following code inside an activity in a tabwidget: http://pastebin.com/Aiip7tyQ The thing is, everytime i click on the textbox to enter the keyword the tabs move above the soft keyboard. I would like the softkeyboard to be over eveything Jun 06 02:00:34 is it possible ? Jun 06 02:00:47 lines 116 and 117 say it fails to get what it needs, but doesnt really say why Jun 06 02:01:37 I cant adb pull my sources off my phone. No permissions. Worked fine last night Jun 06 02:03:28 would adb stopserve startserver help? Jun 06 02:05:28 ok, i cussed at it a couple times and got adb to show up here Jun 06 02:05:53 No that did not help Jun 06 02:07:04 HelloComputer15, I need an "@" symbol in an attribute for an element in XML layout, can I escape it such that it isn't trying to refer an ID? Jun 06 02:45:35 to get the bearing between two locations do they both have to have the bearing parameter set?? **** ENDING LOGGING AT Wed Jun 06 02:59:58 2012