**** BEGIN LOGGING AT Mon Jul 02 02:59:58 2012 Jul 02 03:20:16 why is the java XML parser so bloody retarded and why hasn't someone written a better one Jul 02 03:21:05 the world has moved on to better formats Jul 02 03:21:26 also, why can't you be "someone" Jul 02 03:21:48 sadly the world of RSS hasnt Jul 02 03:21:58 and I'm considering to be *someone* if this thing doesn't start working soon Jul 02 03:23:54 I thought the android.sax stuff wasn't terrible to work with Jul 02 03:25:03 hits very tedious to navigate deep hierarchies with Jul 02 03:26:58 sax parsing is generally going to be like that I guess Jul 02 03:27:23 but it's definitely better than other traditional sax parsers where you have to much more to maintain state Jul 02 03:30:23 Im there where i want to introduce a JSON based format for news&podcasts etc to replace Retard-SS Jul 02 03:38:08 Lexi: which API do you use to parse XML? Jul 02 03:38:43 you don't have to use SAX Jul 02 03:38:49 you can use the pull API or the DOM API Jul 02 03:42:19 meh :/ too late, I'm almost done.. but thanks for the tip Jul 02 03:42:26 might just rewrite this thing tomorrow Jul 02 03:45:05 what's up with the internalSet* methods on Notification.Style? Jul 02 03:45:06 http://developer.android.com/reference/android/app/Notification.Style.html Jul 02 03:45:16 missing a @hide Jul 02 03:45:17 ? Jul 02 03:46:09 or if I create a custom style am I supposed to call those for overriding their respective values? Jul 02 03:47:26 hmm, i'm thinking they're there to allow for the builder pattern on the actual style classes which probably just call up to these methods Jul 02 03:58:34 hmm.. adding a google account requires that google account to have a gmail.com address now?!? Jul 02 03:59:54 every google account has a gmail doesn't it? Jul 02 03:59:58 nope Jul 02 04:00:02 youraccountname@gmail.com ? Jul 02 04:00:12 I've always used foo@mydomain.com Jul 02 04:00:15 odd Jul 02 04:00:19 for g+, drive, everything Jul 02 04:00:26 brb Jul 02 04:00:47 Google Apps? Jul 02 04:05:18 isn't drive google apps? yeah for that Jul 02 04:05:40 but yesterday I tried adding the account on another device and it said it wanted to create a gmail address for me Jul 02 04:05:44 which I didn't want to do at all Jul 02 04:05:55 never had to do that on previous android devices Jul 02 04:14:04 SimpleDateFormat doesn't seem to date a defined date format, how do I define this Jul 02 04:14:08 for parsing a string Jul 02 04:18:09 super.onCreate(savedInstanceState); Jul 02 04:18:11 What does that actually do? Jul 02 04:19:18 allows the activity to set itself up Jul 02 04:20:05 https://github.com/android/platform_frameworks_base/blob/master/core/java/android/app/Activity.java#L855-867 Jul 02 04:20:13 there's what it does as of Android 4.0.4 Jul 02 04:22:29 If I use intent to change to an activity, how can I ensure that instance of the activity will be new? How can I destroy instances of activities? Jul 02 04:22:34 so, signing up for a google checkout account to publish apps, it wants a business name, and url. but I am not a business Jul 02 04:22:43 what should I give them? Jul 02 04:22:52 Your name? lol Jul 02 04:22:58 that works. Jul 02 04:30:57 :| My application keeps bugging up because of saved instances - how can I destroy them? Jul 02 04:31:12 clear top intent flag Jul 02 04:31:46 What? o.o Jul 02 04:32:25 Intent.FLAG_ACTIVITY_CLEAR_TOP ? Jul 02 04:48:41 Guys, so I edited the source of my eclipse project, saved it, exited it....only to realize that the program doesn't work and I need to undo everything. Jul 02 04:48:53 Is there anyway to undo changes AFTER exiting and reopening eclipse? Jul 02 04:50:19 Right click on your file and goto history (I think) Jul 02 04:50:23 You should have a local history Jul 02 04:51:40 jessicajames: yes, version control :) Jul 02 04:56:30 looking into it right now... Jul 02 04:56:33 hope it will work :( Jul 02 04:59:55 what is the best way to retrieve a database (or the information in it) from the user's phone for my application? should i convert it to text first? Jul 02 05:01:37 of course Jul 02 05:01:47 but I'd be careful abotu what I tried to grab Jul 02 05:01:54 quick route to get your app some bad publicity Jul 02 05:04:15 yay Jul 02 05:04:16 it worked Jul 02 05:04:18 thank you guys so much Jul 02 05:04:41 No problem Jul 02 05:10:26 jessicajames local history is nice, but you should really be looking into a proper version control tool Jul 02 05:13:53 Activity Main -> Activity Game -> Certain conditions met (winning! yay) -> Activity Win, forwards me to a different case of Activity Game (intent.putExtra...) -> Activity Game (b) -> here's where my problem lies; it just kinda keeps 'reloading' and I have no idea why :/ can anyone shed light on this or tell me what I can try to solve it? Jul 02 05:29:14 more info: http://stackoverflow.com/questions/11288163/why-is-intent-opening-as-old-activities-instead-of-new-activities Jul 02 05:36:08 Hello I'm trying to draw an image and then scale the image and redraw it. I am not using a surfaceview(which I probaly should be) but a surface class thrown onto a layout. now when I use invalidate() to redraw the view I get a static non-static error. So i've removed all the static modifiers, no go. When i call the scale function which is in the view class it wants to make a static reference. Jul 02 05:41:21 romainguy: i'm trying to watch a video on custom layouts from devoxx 2010, but parleys.com is in GB and I'm always having problems streaming - do these videos exist anywhere else ? Jul 02 05:41:38 its a video you did with chet Jul 02 05:42:29 they don't want to buffer up either; if i press pause it doesn't seem to keep buffering Jul 02 05:45:36 I have an odd question: Jul 02 05:45:48 When you guys develop, presumably using Eclipse, which perspective do you use? Jul 02 05:45:56 java :) Jul 02 05:46:03 I'm kinda surprised there isn't an android perspective (or is there, and I'm doing something wrong?) Jul 02 05:46:11 ddms i think it is called Jul 02 05:49:35 at this point i'm willing to pay $$$ for good tutorials on custom layouts Jul 02 05:49:52 g00s: it was you that said you worked with the RIT mirrors? Jul 02 05:50:18 agargiulo: i was a lab tech back in 1995 when those were set up :) Jul 02 05:50:29 makes me feel really young... Jul 02 05:50:38 a loooooong time ago. i'm sure its a different setup now ;) Jul 02 05:51:15 all I know is that the have 10Gbps links Jul 02 05:51:23 the fastest mirror for me on the west coast is OSUOSL mirror Jul 02 05:51:38 "** We are now on a faster box with more disk and 10GbE. **" Jul 02 05:51:51 from the mirrors.rit.edu site Jul 02 05:52:40 so, setting up a UI for the first time. I have three buttons in a vertical layout, how do I add space between them? Jul 02 05:52:55 right now it's just three times Jul 02 05:52:58 android:layout_margin Jul 02 05:53:03 margins, padding ... Jul 02 05:53:23 thanks Jul 02 05:53:24 maybe even spacer views if certain proportions need to be met Jul 02 05:53:37 agargiulo: if you are using eclipse and the visual builder, try the properties view. there you see all the options. Jul 02 05:53:38 nothing too advanced Jul 02 05:53:45 pboos: thanks Jul 02 05:54:13 holy options batman Jul 02 05:54:28 agargiulo: or if you prefer xml like i do, than hit the autocomplete, to see possible options Jul 02 05:55:07 yeah, I'll probably write it with just the xml, but the visual page is nice for ideas and stupidity checking Jul 02 06:02:19 Hello I'm trying to draw an image and then scale the image and redraw it. I am not using a surfaceview(which I probaly should be) but a surface class thrown onto a layout. now when I use invalidate() to redraw the view I get a static non-static error. So i've removed all the static modifiers, no go. When i call the scale function which is in the view class it wants to make a static reference. Jul 02 06:03:24 should i just use a surfaceview. are they easier to update Jul 02 06:05:23 can i impliment a surface view in xml as i can the view Jul 02 06:05:49 maybe i'm just tired... Jul 02 06:06:49 now, if I want three buttons, evenly spaced virtically on the screen, is LinearLayout the right layout? Jul 02 06:08:33 agargiulo, I've read some where that you should use a table layout, with three columns Jul 02 06:08:37 agargiulo: Relative Jul 02 06:08:54 DashCC: thanks Jul 02 06:09:27 jeffjs: I'll look Jul 02 06:09:33 look into that* Jul 02 06:10:45 u was having the same problem earlier and was playing with the weight Jul 02 06:12:19 although i did just apply a relative layout and it worked. thank you Dashcc Jul 02 06:14:19 jeffjs: I guess there are different ways you can archieve that :-) Jul 02 06:17:05 DashCC: relative layouts = awesome thanks again Jul 02 06:26:49 is there an sdk official way to have an activity populate a listview for suggested search, then use a edittext box to filter results, or perform new searches? Jul 02 06:28:15 so, buttons have `android:onClick=""` but how does it handle long clicks? `android:onLongClick=""`? Jul 02 06:28:53 i guess im basically trying to implement the search widget/dialog into an activity Jul 02 06:31:08 agargiulo: you can set those in code, setOnLongClickListener(...) Jul 02 06:31:19 you can do that for the regular click listener too Jul 02 06:31:43 the XML attribute is just for convenience and you have to be extra careful since it's not compile-time safe Jul 02 06:32:27 Yeah, I've seen that already. Jul 02 06:32:42 so I shouldn't use the onClick thing? or use it but be careful? Jul 02 06:34:09 I use the xml attribute because it reduces code clutter, but use judgement Jul 02 06:34:55 there's no onLongClick Jul 02 06:35:01 xml attribute Jul 02 06:35:20 (if I had both, I'd probably do them both in the one spot) Jul 02 06:38:28 so, then I would have something along the lines of: Jul 02 06:38:39 android:onClick="someMethod" Jul 02 06:38:50 and in someMethod, have the code to handle either click? Jul 02 06:39:44 no, just do them both in code Jul 02 06:40:03 I don't think a long click will call onClick Jul 02 06:41:24 okay, thanks Jul 02 06:43:21 now to learn how to do that... Jul 02 06:43:33 * agargiulo is very green with android dev Jul 02 06:44:21 So, I need to dynamically add controls to an Activity. I know how to do this...however, I don't know how I would keep track of the new controls. For example, if I added two new TextViews, how would I know which TextView I needed to change the text of on a button click? Jul 02 06:46:05 I hope that made sense... Jul 02 06:46:19 it made sense to me. Jul 02 06:51:28 hi. this link is about the java code for the camera. http://developer.android.com/guide/topics/media/camera.html . but please look for in the link " fileUri = getOutputMediaFileUri(MEDIA_TYPE_IMAGE);" . now the problem is that eclipse underlines "MEDIA_TYPE_IMAGE" as error and not being defined. how can I make it defined? Jul 02 06:54:28 Also, you guys know the hard menu button on most android devices? What do i need to search online to learn how to code for it? Jul 02 06:55:01 superlinux-hp: public static final int MEDIA_TYPE_IMAGE = 1; Jul 02 06:55:10 something like that Jul 02 06:58:05 agargiulo, I mean shouldn't that be defined in the android framework? Jul 02 06:58:08 jessicajames Do you mean the options button on the phone? Jul 02 06:58:32 Onions, is that what it's called? Jul 02 06:58:39 jessicajames google onOptionsItemSelected Jul 02 06:59:00 and onCreateOptionsMenu Jul 02 06:59:02 superlinux-hp: based on how they have it displayed, I don't think so Jul 02 06:59:08 see: http://www.droidnova.com/how-to-create-an-option-menu,427.html Jul 02 06:59:09 ah ok Jul 02 06:59:10 it's just a constant Jul 02 06:59:17 ok Jul 02 07:02:16 Onions, but I want the traditional (horizontal style) menu Jul 02 07:02:26 that one seems to be verticle and with pictures Jul 02 07:03:25 http://developer.android.com/guide/topics/ui/menus.html Jul 02 07:04:12 thank you Jul 02 07:10:21 what is Android Lint? Jul 02 07:11:22 inspection tool Jul 02 07:11:47 oh okay Jul 02 07:14:07 where would I put the `Button button_name = ...` code? Jul 02 07:15:17 inside onCreate() make sense? Jul 02 07:15:54 agargiulo, if you mean findViewById stuff, then usually yeah Jul 02 07:16:31 okay cool. Jul 02 07:16:40 ugh, Lint is yelling at me, and I have no idea why... Jul 02 07:16:59 it's saying that my last line, which only has a } on it, is missing a ; Jul 02 07:24:08 I just donno what happened! the camera on the emulator just ran once on the same code i have!! I am on linux debian. what should I do to make it run again? Jul 02 07:24:47 Why do some apps, when you install them, create a launcher icon? Jul 02 07:24:49 some don't. Jul 02 07:24:55 spobat: intents Jul 02 07:25:11 http://developer.android.com/guide/components/intents-filters.html Jul 02 07:25:26 well, I'm off to bed. night #android-dev and thanks for all the help Jul 02 07:25:28 It's not exactly what I mean. Jul 02 07:25:34 oh? Jul 02 07:25:44 sorry. Jul 02 07:25:46 (almost) each app creates a launcher icon in the "all apps" view. Jul 02 07:26:07 but SOME are ADDITONALLY creating one on my home screen, where only my explicitly selected apps appear by default Jul 02 07:26:26 oh okay. that I don't know Jul 02 07:26:38 sorry, I misunderstood your question Jul 02 07:26:57 but anyway, I'm exhausted and have work in 9 hours so off to bed for me Jul 02 07:26:58 not your fault :). Good night! Jul 02 07:27:04 best of luck spobat Jul 02 07:27:09 thanks :) Jul 02 07:35:42 hi Jul 02 07:36:10 anyone here know what kernel version will be the official android 5 (Jelly Bean) release? Jul 02 07:37:23 Its 4.1 jelly bean Jul 02 07:38:42 okay precicely what happens when home button is pressed? Does variables lose their contents? Running Runnable is reset? Something else? Trying to figure out why program seems to behave errationally sometimes and I think it's happening when I don't have the main screen open anymore. I have the onSaveInstance from which I load stuff on onCreate and wakelock requested(yes I know it drains Jul 02 07:38:42 power but that's for user to decide does he want programs features. Would be meaningless program if it's not running all the time after activating it) Jul 02 07:42:32 tneva82_: if your activity is not in the foreground, it can be destroyed by the OS Jul 02 07:42:49 hmmm Jul 02 07:43:31 this could be trouble. The damn thing is supposed to be up all the time. If it can't be solved then the project needs to be dumbed :( Jul 02 07:43:40 Pity. Boss was really excited about the idea Jul 02 07:43:55 tneva82_: you can create a foreground service, it can be kept running almost always Jul 02 07:44:05 tneva82_: and creates a notification like the music player Jul 02 07:44:17 tneva82_: you must be really new to android ;) Jul 02 07:45:45 Im using in app billing, so I have: Jul 02 07:45:54 but how can I specify that it is not required Jul 02 07:45:58 it is an optional feature. Jul 02 07:47:09 Ge0rG yes. I only started programming like month ago Jul 02 07:47:31 thanks for the tip :) Looking at it Jul 02 07:49:52 How can I have a opaque canvas? Jul 02 07:54:17 hmm. documents for that sure are hard to find. Okay so found the function and there's basic example code but no real explanation what the code does. Jul 02 08:01:04 Is it possible to add multiple clickable items to the listview headerview ? Jul 02 08:04:39 Hi, anybody got in touch with Pierre Cardin F117 device? I'm trying to get ADB to work, but the internal settings pane has this setting disabled Jul 02 08:07:05 oh man, my moto droid-1 was mentioned as one of the worst tech devices EVAR Jul 02 08:07:08 http://developer.android.com/guide/components/services.html#Foreground <- does not work :( claims the startForeground function is undefined. Bloody hell. Jul 02 08:08:22 wut? Service.startForeground() works fine Jul 02 08:11:10 well example had no Service. part. Now it's complaining about cannot make static reference...yadda yadda yadda. Nice to have example piece of code that doesn't work without any indication as to what ELSE you have to do to your code to get example working. Jul 02 08:29:11 Hi. I am getting when i run the camera code: java.lang.RuntimeException: Unexpected Jpeg encoding quality levels 0. I am using Image mode. I am not using video mode. so how can I set it? Jul 02 08:29:20 or fix that? Jul 02 08:29:44 it ran once with me Jul 02 08:30:02 it ran once with me and never again Jul 02 08:31:46 ah got to to love when manual is more or less just example code without much of explanation. Copy&pasting it just results in crash. Jul 02 08:35:47 Hi! I interesting in Home Screen shortcuts. Some apps, istalled from GooglePlay, create Home Screen shortcuts automatically. I can create shortcut programmatically with intent, but only on app's first run. How to do it just after install? Jul 02 08:37:27 I've also noticed "Auto-add shortcuts" option into GooglePlay settings, but I can't find any developer docs about it... Jul 02 08:42:59 final fantasy III has so far easily the best controlling method ive seen on smartphones Jul 02 08:43:02 for games Jul 02 08:43:21 need to copy that if im gonna start working on a game later this year Jul 02 08:43:31 wonder if theres any other games out atm that use the same Jul 02 08:45:03 Hi. I am getting when i run the camera code: java.lang.RuntimeException: Unexpected Jpeg encoding quality levels 0. I am using Image mode. I am not using video mode. so how can I fix it? Jul 02 08:45:26 i am using the same code in the guide. Jul 02 08:57:22 how can i make a pointed button? Jul 02 08:57:31 https://dl.dropbox.com/u/6559846/Capture.PNG Jul 02 09:01:36 ugh, parleys.com ucking sucks Jul 02 09:05:25 anyone know of *any* tutorial on creating a custom Layout? i went through every android book I have and the topic is conspicuously missing from all of them Jul 02 09:06:46 spobat: you mean the arrow background? Jul 02 09:07:19 solved :) Jul 02 09:07:21 Hi everybody, Jul 02 09:07:55 g00s: surely the samples has something you can reference... Jul 02 09:08:03 g00s: no clue, but you could go and see how framelayout works Jul 02 09:08:19 g00s: not really something you'd put in an android developer book Jul 02 09:08:21 I'm connecting to my android a device that connected throw USB host. If I send to the device a msg (from my android) Im expecting replay using onDataReceived. I've done it all using a class and it seems that after the function in the class that need to send the msg is over the connection is closed and I'm not getting anything in onDataReceived as I've had expected. anyone knows why it Jul 02 09:08:21 should happen? Jul 02 09:08:23 maybe an android internals book Jul 02 09:09:08 oh wait, i think iosched 2011 had a custom layout for its dashboard Jul 02 09:09:28 O_o Jul 02 09:09:52 linear and frame layout code is hard to follow. absolute layout is too basic Jul 02 09:10:01 s/frame/relative Jul 02 09:10:04 which is why we have gridlayout Jul 02 09:11:19 also in the support lib Jul 02 09:12:44 also: http://android-developers.blogspot.nl/2011/11/new-layout-widgets-space-and-gridlayout.html Jul 02 09:13:39 MDijkstra: sure; i'm aware of gridlayout. thanks Jul 02 09:14:02 g00s: if you have concrete questions about creating custom layouts, please ask.. Jul 02 09:14:33 tapas: well, creating a custom view is pretty easy. its covered in apidemos as well as every book i have Jul 02 09:14:46 yeah, a layout is a viewgroup.. Jul 02 09:15:17 i'm looking to create a grid of draggable squares not unlike the wp7 start screen. Jul 02 09:15:34 squares should be able to resize and be dragged around Jul 02 09:15:50 ah i remember the question from before the weekend i think.. Jul 02 09:15:59 :) Jul 02 09:16:31 that's an interesting problem. you not only want to create a static layout, which isn't too hard in itself.. Jul 02 09:17:02 but rather you want to at the same time minimize a stress function where one of the squares is hard constrained by its position Jul 02 09:17:09 while the others are to float around it, correct? Jul 02 09:17:15 exactly Jul 02 09:17:50 i don't think we can go through this at this time, since i'm at work right now.. would you be willing to pay for such a component? ;D Jul 02 09:18:18 hmm Jul 02 09:18:53 i feel like i'm taking the easy way out not learning how to do it myself Jul 02 09:18:57 if not, i might aid you in hacking it up in my spare time later this evening. but then we have to open source it :D Jul 02 09:19:01 what's the best way to remove an item from a gridview without knowing the item id, but only a text contained in a custom view? Jul 02 09:19:22 I've initialized the adapter as a SimpleAdapter Jul 02 09:20:11 elegos: if you can be sure that the child is visible when you want to remove it, you can iterate over the gridview's children and traverse the layout hierarchies of each child Jul 02 09:20:12 tapas: since there is a scarcity of info on the topic; maybe a blog entry is in order Jul 02 09:20:36 trying to cast every view you find to a textview and then searching through its text.. Jul 02 09:20:44 g00s: i guess so.. Jul 02 09:20:58 g00s: i planned on writing a blog post about my rather simple custom layout for a while.. Jul 02 09:21:06 tapas: problem is that the view is composed by a linear layout which has inside other objects Jul 02 09:21:14 tapas: should I cast it as linear layout? Jul 02 09:21:34 elegos: are all the views in the gridview having the same layout? Jul 02 09:21:45 yes tapas Jul 02 09:21:54 elegos: if so you can make assumptions about what kind of view you have and just cast it to LinearLayout Jul 02 09:22:01 then get its children, etc.... Jul 02 09:22:06 tapas: thanks :) Jul 02 09:22:40 elegos: you might consider pondering the design of your app though if you have to go that route Jul 02 09:23:05 it is possible, but it's no fun and WILL lead to bugs if you ever plan on changing the view layouts, et .. Jul 02 09:23:21 not a very future proof way of going about things. Jul 02 09:24:13 tapas: I have to delete an item loaded after a loader has finished in a grid layout, and it has its own XML layout. How would you rather suggest me to implement it? Jul 02 09:24:57 elegos: reload the grid Jul 02 09:25:01 tapas: found this, seems ore digestable than LL/RL/GL http://code.google.com/p/iosched/source/browse/android/src/com/google/android/apps/iosched/ui/widget/DashboardLayout.java Jul 02 09:25:54 MDijkstra: I've tried it using getLoaderManager.restartLoader, but it doesn't seem to update the view Jul 02 09:27:57 elegos: call invalidate() on it Jul 02 09:28:03 that will cause it be redrawn.. Jul 02 09:28:13 invalidate on the grid? Jul 02 09:32:11 sometimes i need to call forceLoad() Jul 02 09:34:05 I'm having a bit of an issue implementing a robust floating header listView. I need to make a listview that has a floating header, like the alphabet dividers in the contacts app. I think they call it "pinned Header". My pinned header needs to support buttons/checkboxes. The technique I have found to implement a pinned header, is however one that uses two views. Anyone know of good patterns to replicate the state between these two views? Jul 02 09:34:06 Currently, I'm writing a callback to set up the views, which the listView will call with both the static header and the floating header upon init. Jul 02 09:34:56 g00s: the loader loads the files in a directory into the grid. I've double-checked and the file got deleted before the loader finishes Jul 02 09:35:17 g00s: where should I forceLoad()? onStartLoader? Jul 02 09:35:29 hmm, implementing one's own ImageView has interesting problems when keeping the aspect ratio :D Jul 02 09:36:30 elegos: no, when you want the loader to update its contents based on something that changed which it is not listening to Jul 02 09:36:50 http://pastebin.com/SBg19PxK here's a paste. I guess, even though I feel it's a bit dirty, it seems to work. Jul 02 09:37:00 g00s: doesn't seem to be a public method... or I must have missed it Jul 02 09:37:14 elegos: its public Jul 02 09:37:32 (Loader base class) Jul 02 09:37:45 ah ok, found it Jul 02 09:40:05 informit is having an ebook sale; 1 30% off or 2 50% off if anyone cares. they have some mobile stuff Jul 02 09:41:29 Hello all Jul 02 09:43:23 i have a question i have created a custom expandeable list with a group.xml and child.xml and load data before the loading list but when i schroll the data will be downloaded agian how can i stop that Jul 02 09:48:06 g00s: http://pastebin.com/KtALg0qS ... the loader is always 0 (only one loader), the wait dialog comes up, so it's not null... though I still can't correctly update the grid Jul 02 09:51:41 elegos: what kind of Loader is it ? Jul 02 09:52:03 g00s: it's an AsyncTaskLoader Jul 02 09:52:34 elegos: first off: "intent.getAction() == BROADCAST_DOWNLOAD_CANCELLED" ----> fail Jul 02 09:52:44 use .equals() Jul 02 09:52:50 you're right Jul 02 09:53:16 next in this case, maybe forceLoad is not right, maybe you should restart the loader Jul 02 09:54:20 g00s: could I simply set an incremented loader id and start a new one? Jul 02 09:54:32 from a memory point of view Jul 02 09:55:54 Because i have a intent with a listarray in it with a custum object and send to that screen so it dont know the url where to download it how is it the possible Jul 02 10:02:07 wow nice numbers Jul 02 10:02:18 * hackkitten waves at g00s o/ Jul 02 10:02:26 psm theres 3... Jul 02 10:02:38 hi hackkitten Jul 02 10:02:52 hi there :D Jul 02 10:02:53 hello hackkitten Jul 02 10:02:59 hey all Jul 02 10:02:59 hi Snuffel :) Jul 02 10:03:05 hi everyone and everything o/ Jul 02 10:03:14 trying to understand this code https://github.com/android/platform_packages_apps_music/blob/master/src/com/android/music/TouchInterceptor.java Jul 02 10:03:36 euhm what program are you programming in? Jul 02 10:03:42 hey guys Jul 02 10:03:49 i mean whats the best programming tool Jul 02 10:03:58 i use eclipse Jul 02 10:03:59 i rate that as 'F' according to http://www.makinggoodsoftware.com/2009/06/30/types-of-code-how-to-rate-your-code-from-a-to-f/ Jul 02 10:04:05 * hackkitten intercepts g00s's touches~ Jul 02 10:04:11 :O Jul 02 10:04:14 :D Jul 02 10:04:49 g00s > what's that code supposed to do? Jul 02 10:05:00 draggable listview items Jul 02 10:05:06 ah Jul 02 10:05:32 after playing around with wp7 phone my neighbor has, i'm very impressed with its richness and interactivity Jul 02 10:05:38 * hackkitten nods Jul 02 10:05:41 WP7 FTW Jul 02 10:05:43 :> Jul 02 10:05:43 lots of interesting idoims Jul 02 10:05:55 the easy sharing of data between apps is <3 Jul 02 10:05:55 all android apps look like big listviews to me now Jul 02 10:05:58 waiting for wp8 ;D Jul 02 10:06:00 :D Jul 02 10:06:10 most android apps _are_ listviews :P Jul 02 10:06:22 indeed Jul 02 10:06:22 can sombody help me with a code? Jul 02 10:06:43 GKeizer: yes. 0xFF 0x25 Jul 02 10:06:45 * hackkitten hands g00s more listadapters~ Jul 02 10:06:56 * hackkitten hands funktronic a cookie~ Jul 02 10:07:07 GKeizer: if you'd like a near jmp though it's 0xFF 0x15 Jul 02 10:07:22 so what do you not understand about that code, g00s? :D Jul 02 10:07:45 trying to figure out how they are redrawing the dragged view Jul 02 10:07:53 ah Jul 02 10:08:04 euhm i have a intent with a arraylist with ojects in it i send it to a new screen and load a custom expandable list and thats gooing great but when i scroll it redownload the data how is that possible Jul 02 10:08:08 GKeizer: pastebin it Jul 02 10:08:09 which kinda floats above the listview and other items Jul 02 10:08:25 GKeizer: don't redownload the data every time Jul 02 10:08:33 since i have froyo :) …. i played with it, but its pretty hoakey Jul 02 10:08:55 but its on a next screen so it dont know the url from the last Jul 02 10:08:56 hoakey? :) Jul 02 10:09:19 g00s: they're all hoakey Jul 02 10:09:26 as far as I know, nothing is disrupting it from entering the thread Jul 02 10:09:34 GKeizer: do you want to redownload the data, like in twitters pull to refresh ? Jul 02 10:10:19 GKeizer: look up Activity.getIntent() and then Intent.getStringExtra() Jul 02 10:10:24 euhm i download the data in a screen with a JSON when i call the method and put it in a arraylist and after that i dont call the method no more Jul 02 10:11:11 g00s > it seems to be drawing the bitmap copy of the item being dragged Jul 02 10:12:31 fuck starting to hate android phone's. Now I can't sync with google drive without manually shuttig down the drive. Very unstable things these android's :( Jul 02 10:13:45 g00s > it simply changes the position of the imageview with the item's bitmap... that's then all redrawn using the standard listview draw(), I am guessing Jul 02 10:13:53 hackkitten: i don't think i understand a single line of this code Jul 02 10:13:59 it's quite clear to me Jul 02 10:14:03 wow ! Jul 02 10:14:06 but I have seen atrocious code lately Jul 02 10:14:09 so I'm... used to it Jul 02 10:14:11 ;_; Jul 02 10:14:12 sad to say Jul 02 10:14:32 also, working on AndEngine projects without a single shred of documentation :D Jul 02 10:14:36 hackkitten: ok, i'm going to head to bed soon, i may have to ask you about it some more later :) Jul 02 10:14:42 alright, sleep well g00s :D Jul 02 10:14:49 thanks :) Jul 02 10:15:10 http://pastebin.com/BspuRT6k Jul 02 10:17:30 GKeizer: what's your getView? Jul 02 10:18:32 do you mean this ? IllustrisActivity.this.startActivity(myIntent); Jul 02 10:19:02 that snippet isn't sufficient Jul 02 10:19:15 need the who code? Jul 02 10:19:34 whole* Jul 02 10:20:04 cut it down to the relevant items Jul 02 10:24:16 I create newIntent and call startActivity. New intent's onCreate function just calls super's oncreate and loads already working content. I have added to android manifest yet it crashesh when I try to open new intent. What might be issue? Jul 02 10:24:18 I've got this problem: "Caused by: java.lang.IllegalStateException: Fragment com.example.work.Fragments.Blank did not create a view." even if this is the Blank class: http://pastebin.com/ALQbXzGT Jul 02 10:24:23 how can I debug this error? Jul 02 10:24:35 1. Do root apps need permissions for actions that normally need permissions when using the normal API? 2. As the answer is probably yes (how should the system know if it's a root app if it hasn't a su shell), can you circumvent that without using the shell command alternatives? Jul 02 10:25:03 1. yes 2. no Jul 02 10:25:13 okay, thanks Jul 02 10:25:30 APKs work in a sandbox with optional links to the "outside world" (the permissions) Jul 02 10:25:39 so you need root access to do things via TTY Jul 02 10:40:12 I've got this problem: "Caused by: java.lang.IllegalStateException: Fragment com.example.work.Fragments.Blank did not create a view." even if this is the Blank class: http://pastebin.com/ALQbXzGT Jul 02 10:42:14 Any one familiar with the x10 mini pro here ? Jul 02 10:44:58 Hi everyone Jul 02 10:45:10 I'm using Android 4.0.4 Jul 02 10:45:33 does anybody know who is in charge to launch the systemUI process? Jul 02 10:45:42 #android-root Jul 02 10:45:53 ok tnx Jul 02 10:46:47 Got a question Jul 02 10:47:20 If i dont have dedicated boot partition where does my kernel live? Jul 02 10:47:52 'in the cloud' Jul 02 10:48:25 Recovery lives in chargmon as theres not a dedidcated recovery partition either Jul 02 10:48:35 see /topic Jul 02 10:48:49 Sm0k3x: app development here... "where does kernal live?" elsewhere Jul 02 10:52:37 well that could be related to development.. :) Jul 02 10:53:35 funktronic: not app development Jul 02 10:54:00 ROM development is the new mirc scripting. Jul 02 10:54:51 I agree Jul 02 11:03:07 hi. Jul 02 11:03:16 I've got a layout which has a fragment in it. I was forced to create a "placeholder" class, as I have to specify android:name. This leads me to unhandled errors (i.e. sometimes the step blank fragment -> replaced by another class and blank class unable to inflate the layout). Is there any way to let the placeholder class do nothing? Jul 02 11:03:27 my camera in the emulator is not working. i am on linux. Jul 02 11:03:30 or... avoid the placeholder Jul 02 11:04:27 i tried running the application named camera that comes with the emulator. it crashes. i thought it's my problem Jul 02 11:04:59 i tried running the application named camera that comes with the emulator. it crashes. i thought it was my mistake i mean Jul 02 11:05:10 I just hate this. nothing seems to work. can't get program to stay active, can't get cookies to work, can't get anything to work Jul 02 11:05:24 so what do you suggest i should do? Jul 02 11:05:51 Hi guys, I'm currently automatically popping the keyboard up, and hiding some layout buttons when a user presses a search icon in the action bar. My question is.. how do I go about reshowing the buttons when the user removes focus from the keyboard Jul 02 11:10:19 Noen norske/svenske utviklere som er interessert i å høre om en app-ide jeg har? det gjelder en metode som er ny for å scrolle på sider/bilder. krever at du har kunnskap om å lese data fra kameraet på mobilen Jul 02 11:12:19 clutch_: I don't speak norwegian or swedish, but it seems like you're advertising a job Jul 02 11:12:31 see /topic: "Please don't advertise websites, jobs, or contracts" Jul 02 11:14:40 oh sorry. Jul 02 11:22:34 for sale: sexy waitress Jul 02 11:22:36 she brings you beer Jul 02 11:22:40 and makes android programs for you Jul 02 11:22:52 $1900 a day Jul 02 11:23:07 wouldn't that just be renting? Jul 02 11:23:07 *instabuy* Jul 02 11:23:16 nuh Jul 02 11:23:17 once you buy her Jul 02 11:23:25 for one day -you'll never want to let her go Jul 02 11:23:25 ;D Jul 02 11:24:06 anyone here done an internet recovery install of OS X Lion? Jul 02 11:24:18 * Bugz000 runs from the lion Jul 02 11:24:20 AAAAAAAa Jul 02 11:24:40 Afzal: er... welcome to #android-dev Jul 02 11:25:08 Leeds, just asking, no one on #MacOSX is replying atm Jul 02 11:25:37 cool, does that mean I should go into an Apple store and ask for help with repairing my car if the garage is closed? Jul 02 11:25:39 and I dunno what got into me when I started playing with the EFI partition :/ Jul 02 11:25:57 except #MacOSX is not an apple store Jul 02 11:26:03 and this is not a garage, per se Jul 02 11:26:13 Afzal: man you're lost Jul 02 11:26:14 analogies are hard Jul 02 11:26:14 let's make it clearer - offtopic, enough Jul 02 11:26:31 *sigh* fine Jul 02 11:26:44 Afzal: ask in #finance Jul 02 11:26:49 or better yet, ##c++ Jul 02 11:26:56 #0 Jul 02 11:27:01 I thought we discussed enough offtopic stuff here already Jul 02 11:27:39 there's offtopic chat, and there's specifically asking an offtopic question which you know is in the wrong place Jul 02 11:27:43 is having a conversation about a conversation that was offtopic - offtopic? Jul 02 11:27:48 please Jul 02 11:28:49 this new lint stuff, keeps messing up my compiles. I can't understand what it's complaining about even. Jul 02 11:29:02 how can I capture intents that are dispatched to my activity, i.e. after nfcAdapter.enableForegroundDispatch()? Jul 02 11:30:35 ah, onNewIntent() Jul 02 11:37:27 fff Jul 02 11:37:42 havchr: turn off lint then Jul 02 11:37:45 it's somewhere Jul 02 11:38:20 mikedg: yeah, of course it's a solution. I was just bitchin' a bit about it not working ;) Jul 02 11:40:36 it works fine, stop breaking shit Jul 02 11:46:28 the errornous error went away after a rebiuld, _now_ it works fine :) Jul 02 11:51:08 what is the best place to register a listener? if i want to register a location listener. then where should i do that? since this registration should happen only ONCE Jul 02 11:52:45 onresume Jul 02 11:52:56 it kinds depends on what your app does Jul 02 11:53:23 consider a simple app, that receives user location updates, and shows soem messages Jul 02 11:54:06 if i do that onresume, then when the activity is resumed more then once, then the listener will be registered more then once as well, right? Jul 02 11:54:28 no in onpause you remove it Jul 02 11:54:33 jahid: is it so hard to keep track of whether you've registered or not Jul 02 11:55:01 osxorgate, i do not want to remove it, i want it to be receiving location updates even if user is not on app, or left the app. like a service Jul 02 11:55:12 Leeds, ^^ Jul 02 11:55:29 then wouldn't you be doing it in a service? Jul 02 11:55:33 what if the user never returns to your app? Jul 02 11:55:59 osxorgate, still it should receive location updates Jul 02 11:56:14 sort of like, i register a location, and i want to get reminder when i get into the proximity Jul 02 11:56:41 now it might happen that user might not going back to my app for months, but still when user enters into proximity he should be notified. Jul 02 11:57:11 so the app should keep receiving location update, even if user is not using app Jul 02 11:58:04 why o why it must be so hard to keep the program stay UP rather than randomly be killed off Jul 02 11:59:39 tneva82_: make it a service! Jul 02 11:59:48 tneva82_: activities are not meant to stay up behind your back Jul 02 11:59:54 HOW!?! Jul 02 12:00:05 how to write a service? Jul 02 12:00:07 I have been looking for easy to understand tutorial for 6 hours now with no luck Jul 02 12:00:14 read the fucking documentation? Jul 02 12:00:18 lol Jul 02 12:00:28 http://developer.android.com/training/index.html Jul 02 12:00:30 tneva82_: make it a service, and also listen on OnBoot broadcast-event to start the service when the phone is rebooted etc Jul 02 12:00:36 tneva82_, http://developer.android.com/guide/components/services.html Jul 02 12:00:51 there are 240 millions google hits for how to write a service on android!? Jul 02 12:01:02 :D Jul 02 12:01:14 Ge0rG: but none of them will make you an expert in 6 hours from nothing, so they're no good Jul 02 12:01:20 Leeds: damn. Jul 02 12:01:28 and does not provide a user interface <- not good. Jul 02 12:01:33 * Ge0rG is still attempting rocket surgery. Jul 02 12:01:37 leeds your trolling ain't funny Jul 02 12:01:37 trolling is a coping mechanism used by self hating chatters to attempt to cause as much external misery as they feel inside Jul 02 12:02:35 tneva82_: that's sarcasm, not trolling Jul 02 12:03:00 tneva82_, you have to read more about activities and services before you code. then you will realize that UI and services has their own purpose. and then you will stop looking for UI on services. Jul 02 12:16:15 how to change (options?!) menu background/text color? http://stackoverflow.com/questions/2944244/change-the-background-color-of-the-options-menu seems to work on 2.x but not on 4.x ? Jul 02 12:22:02 would anyone know why my applications /data/data/com.blah/database folder doesn't exist? Jul 02 12:22:15 I'm trying to copy a database but i keeps failing because the folder doesn't exist Jul 02 12:24:06 CallumTaylor: that should be plural Jul 02 12:24:16 yeah tried that Jul 02 12:24:17 still didn't work Jul 02 12:24:35 its annoying because it works find on another app and I can't figure out why the folder isn't being created Jul 02 12:24:41 are you sure /data/data is correct for your device? Jul 02 12:25:03 yes Jul 02 12:26:33 CallumTaylor: what user are you trying to do this copy as? Jul 02 12:26:54 hello Jul 02 12:27:05 If there are no databases to begin with, I don't see why the folder should exist ;d Jul 02 12:27:15 no Jul 02 12:27:23 I'm trying to copy a database from assets to the /data/data/databases folder Jul 02 12:27:31 but its failing because the databases folder doesn't exist Jul 02 12:28:02 oh Jul 02 12:28:08 duh Jul 02 12:28:12 why would it exist Jul 02 12:28:34 well the FileOutputStream should create it when I try to open the path Jul 02 12:28:35 but its not Jul 02 12:28:45 no, it shouldn't Jul 02 12:28:59 "Constructs a new FileOutputStream that writes to path. The file will be truncated if it exists, and created if it doesn't exist." Jul 02 12:29:09 "the file" Jul 02 12:29:14 not "the file path" Jul 02 12:29:31 so why does the file path not exist Jul 02 12:29:39 why would it Jul 02 12:29:45 why wouldn't it Jul 02 12:30:02 Cus you have no databases Jul 02 12:30:04 does your FS mytically populate itself with all possibley needed folders Jul 02 12:30:28 I have more of an android phones hardware questions, do you know what is the bluetooth class (1/2/3) in most of the phones? samsung? Jul 02 12:30:32 well I'm trying to copy a database over Jul 02 12:30:38 i don't understand why it works for my other app Jul 02 12:30:44 if the folder 'shouldn't exist' already Jul 02 12:30:45 when you boot your phone android creates all directories that will ever be needed on the device? Jul 02 12:37:44 how to change attribute...like http://developer.android.com/reference/android/R.attr.html#panelColorBackground ? Jul 02 12:37:50 * miha noob :( Jul 02 12:50:20 So I have this asynctask task that needs to run when a certain file type is opened outside of the app. What determines whether I should use an activity or service? Jul 02 12:51:42 demico: i'm not sure either are appropriate... will this be a long running task? Jul 02 12:52:30 Less than 5 seconds. It's basically extracting the file and adding to an Sqlite database Jul 02 12:53:18 i don't see any reason for either an activity or a service then Jul 02 12:53:51 Right now I gave it its own activity, which accepts the .zip as an intent extra. After it completes I have it launching another activity and finishing itself Jul 02 12:54:15 an activity implies a UI, why are you using that? Jul 02 12:54:57 Initially was going to show a progress bar, but it finishes so quickly Jul 02 12:55:17 What else could I do Jul 02 12:55:38 does the user even care that this is happening? why do they want to see a progress bar? Jul 02 12:56:38 Well it would be nice if I could just show a progress in the notification bar Jul 02 12:56:45 hello ...i have got a strange problem, i save files to the pads internal sd card, no error while create and if i check for this file like file.exists = ..its says the file it there but i can't see it with the windows exploerer in the usb view..does anyone got the same shit? Jul 02 12:57:02 Just in case it does take a while to extract for some reason Jul 02 12:57:34 who cares if it takes a while to extract? Jul 02 12:58:17 You can put a progress bar in a notification if you want Jul 02 12:58:30 But make sure it actually makes sense Jul 02 12:58:55 If it's something automatically happening in the background, you probably shouldn't do that Jul 02 12:58:57 well the user is expecting to "install" the .zip Jul 02 12:59:16 Does anybody know how to layouts with swdp are handled < 3.1 ? If I target 4.0, but still work on 2.x, should I include both layout-xlarge (for example) as well as layout-sw600dp (to fix 7" tablets), or... ? Jul 02 12:59:30 And will be expecting to "use" it when it finishes installing Jul 02 12:59:52 Chainfire: swdp are not handled at all <3.2 Jul 02 13:00:00 You'll need to use large, xlarge, etc Jul 02 13:00:18 SimonVT> but what happens >= 3.2 if I include both layout-xlarge and layout-swdp ? Jul 02 13:00:29 Chainfire: swdp is used Jul 02 13:00:30 2 seconds Jul 02 13:00:53 http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources Jul 02 13:00:58 There's this list of qualifiers Jul 02 13:01:04 it matches in the same order as the list Jul 02 13:01:12 Well I have to use either an activity or service, right? Jul 02 13:01:20 swdp comes before xlarge, so swdp is used Jul 02 13:02:52 SimonVT> Thanks! Jul 02 13:06:30 simonvt gets a gold star Jul 02 13:16:11 how do I get the actuall string stored in R.id.some_id ? Jul 02 13:16:18 all I am getting is an int Jul 02 13:16:24 there's no string Jul 02 13:16:33 in the case of R.id Jul 02 13:17:24 oh, I meant R.string.some_string Jul 02 13:17:33 sorry, was remembering my code wrong Jul 02 13:19:53 iirc something like Jul 02 13:20:16 String derp=getResources().getString(R.string.some_string); Jul 02 13:20:43 oh okay, thanks Jul 02 13:21:12 you need a Context to do this, though Jul 02 13:21:36 I have a context already, making a Toast Jul 02 13:23:51 does su accept "-c some_shell_command" just as sh does? I want to do something like String[] cmd = { "su", "-c", "echo '' > /sys/somefile\n" }; and execute that Jul 02 13:24:02 Kopfgeldjaeger: yes Jul 02 13:24:08 thx Jul 02 13:27:26 for the play store, what's the best way to generate the screen shots? Jul 02 13:28:37 If i directly .exec() commands and use no DataOutputStream, do I have to do something similar to .close() or .flush? I guess not? Jul 02 13:29:12 agargiulo: ddms? Jul 02 13:29:27 ddms? Jul 02 13:29:45 oh okay thanks Jul 02 13:29:51 Is there a way to automatically create user accounts? Jul 02 13:30:04 Guys how can I compile a package in the source tree applying an existing overlay ? Jul 02 13:42:51 hi i have problems with refreshing dirs, my android pad is connected to my windows machine via usb, if i now create some files with my app the explorer shows that first after i reboot the pad? any ideas? Jul 02 13:43:03 so, my epic problem! http://pastebin.com/UFmJ42fB Jul 02 13:43:09 never reaches the Thread Jul 02 13:43:15 the Log.d never shows Jul 02 13:43:24 lol, I somehow crashed the ddms Jul 02 13:46:19 http://bpaste.net/show/QPmYUXpQaBNBk2plaMmp/ Jul 02 13:48:35 Peter_Porka: spider pig spider pig? Jul 02 13:49:04 mikedg: lol homer j is that u? Jul 02 13:50:00 sorry...back Jul 02 13:50:07 mikedg: any ideas? Jul 02 13:50:08 Sicp: looks like your long running connection stuff isn't actually in the thread. Jul 02 13:50:39 it isn't, but why would that stop the execution from going into the thread and printing the log? Jul 02 13:51:17 Sicp: 1) because your connection code is blocking everything that comes after it and 2) because your app will probably get killed before it can finish Jul 02 13:51:29 I use this to write to a system file, but it just does not seem to work. SU toast shows only parts of the code (no > e.g.), and it does not lead to the expected result. If I execute it manually in a su shell, it works; http://pastebin.com/ZESuZKD7 Jul 02 13:51:58 Sicp: although the stuff in the thread will run in a separate thread, the startup code actually runs on the main thread, so if you block that, it won't reach the start(). Jul 02 13:52:29 I'm going to move that code (session.connect(), opening channel and connect + initializing `in` and `out`) to inside the run() method Jul 02 13:52:43 Yes that should help. Jul 02 13:58:33 is there an intent which can be started to check whether updates for the device's android install are available Jul 02 13:58:50 for some devices the phone information screen has a button to check for updates, but not for all of them.. Jul 02 14:00:24 is there a place in eclipse to reset things like "click this to not be alerted again" kind of thing? Jul 02 14:01:01 is eclipse not the most complex application software ever BTW? Jul 02 14:01:19 GeeksOnHugs: it really is Jul 02 14:01:29 complex, but really effing useful Jul 02 14:01:37 http://developer.android.com/reference/android/content/res/TypedArray.html#getFraction(int, int, int, float) Jul 02 14:01:48 can someone explain what base and pbase are? Jul 02 14:01:50 agargiulo yah, for sure...it's impressive how solid it is with all that complexity Jul 02 14:01:53 hmmm, now I get nullpointer for line 84... Jul 02 14:02:10 how is that possible, the EditText is there and there's a command in there by the time I press Send Jul 02 14:02:50 when I'm debuggiung, it launches the included debug perspective, but I have my own debug perspective, I want it to use my debug perspective? Jul 02 14:03:02 http://dl.dropbox.com/u/19390574/log.txt Jul 02 14:05:32 GeeksOnHugs: not too sure, sorry Jul 02 14:05:39 What are the reasons for Environment.getExternalStorageState() to return mounted, and yet on a subsequent write error out on "resources is read only"? Jul 02 14:05:51 Shouldn't it return MOUNTED_READ_ONLY if that's the case? Jul 02 14:06:05 no worries, ill figure it out someday :-) more of an anoyance really :P Jul 02 14:06:08 hi. when i take a picture and press the tick mark my application crashes. this is what i get: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=100, result=-1, data=null} to activity {www.superlinux/www.superlinux.June27Activity}: java.lang.NullPointerException Jul 02 14:06:33 superlinux-hp: testing on a samsung device Jul 02 14:06:34 ? Jul 02 14:06:35 atrus6: because you don't have WRITE_EXTERNAL_STORAGE permission? Jul 02 14:06:51 anyone? Jul 02 14:06:56 siyb, on the emulator level 16 Jul 02 14:07:04 siyb, on the emulator API level 16 Jul 02 14:07:06 joel135: I was looking at it, but it makes no sense to me as well Jul 02 14:07:33 Leeds: I have it in my library manifest, and in my applications manifest Jul 02 14:07:49 siyb, i am using the same code of the guide. but i know how to paste it correctly. Jul 02 14:08:05 i must later upload the picture to a PHP server Jul 02 14:08:14 PHP server? Jul 02 14:08:26 superlinux-hp: can you please paste some code and the stacktrace Jul 02 14:08:27 ? Jul 02 14:09:05 siyb, i'll paste the class and the trace Jul 02 14:09:06 siyb: you sound like the guy from the commic in the topic =] Jul 02 14:09:37 if i use the devices gmail account to create an account for my own back-end services Jul 02 14:09:45 would i still use oAuth to authenticate the user? Jul 02 14:09:59 how can I make touch event only in one selected view ? Jul 02 14:10:08 agargiulo: can't access imguir.com/jacoj (if that's the comic) ;) Jul 02 14:10:18 siyb: yeah =[ Jul 02 14:11:25 agargiulo: hehe i know that one ;) Jul 02 14:11:43 thank you google for caching the interwebs! Jul 02 14:12:54 siyb: why could you not get to it? and yeah, google is really nice for that Jul 02 14:13:19 siyb, agargiulo http://pastebin.com/btczk5Q3 Jul 02 14:14:20 here is the whole activity with the trace Jul 02 14:14:21 agargiulo: probably company fw Jul 02 14:15:08 siyb: =[ Jul 02 14:15:22 superlinux-hp: data is null Jul 02 14:15:30 which data? Jul 02 14:15:37 Toast.makeText(this, "Image saved to:\n" + data.getData(), Toast.LENGTH_LONG).show(); Jul 02 14:16:06 i know you're talking about the parameter "data" but which is null? Jul 02 14:16:25 data.getData() <- "data" Jul 02 14:17:10 could you do me a favour and run the code on a real phone (preferably not samsung) and test it that way? Jul 02 14:17:22 if the error persists, i will look over the rest of your code Jul 02 14:17:23 do you really need a permission to be able to make the phone vibrate? Jul 02 14:17:29 siyb i don't have any Jul 02 14:17:59 agargiulo: yes, you really do Jul 02 14:18:12 superlinux-hp: hmm that sucks Jul 02 14:18:13 Oo Jul 02 14:18:30 Leeds: what about using haptic feedback? same thing? Jul 02 14:18:32 i have a google TV at home. is that ok? Jul 02 14:18:42 yes, haptic feedback is vibration Jul 02 14:18:49 okay thanks Jul 02 14:18:50 and i have a camera Jul 02 14:19:26 I really don't get why people think they should be able to write for a software platform without having any access to hardware running that platform Jul 02 14:19:56 I don't think that Jul 02 14:20:16 siyb: Why preferably not Samsung? Jul 02 14:23:05 I love the description for View.performHapticFeedback(int) "BZZZTT!!1!" Jul 02 14:23:59 If I use .writeBytes("echo /dev/block/vold/179:17 > /sys/devices/platform/s3c-usbgadget/gadget/lun0/file\n"), it does work. If I use .writeBytes("echo " + dev + " > ........\n") it does not. wtf? Jul 02 14:25:13 Kopfgeldjaeger: I'm a total Java non-knower, but I think a literal "asdf" is a char[] deal that doesn't have a + operation. Jul 02 14:26:01 rking: well, usually concatenating like that works fine for my strings. String str = "a" + "b" + "c"; is no problem Jul 02 14:26:52 rking: http://stackoverflow.com/questions/4989010/android-samsung-camera-app-wont-return-intent-getdata Jul 02 14:26:57 Kopfgeldjaeger: Can you log the string out and see what's getting generated? (BTW, when you say, "it doesn not work", it's unclear) Jul 02 14:26:59 one of the issues we have encountered Jul 02 14:27:28 siyb: Oh, hrm. What phone would you recommend, btw? Jul 02 14:28:59 rking: don't know. another issue we had with samsung phones was that getExternalStorageDirectory() returned the wrong path ... Jul 02 14:29:07 siyb the camera preview works on my emulator Jul 02 14:29:19 rking: the dev part is already logged, I'll try to log the whole string. By not working I mean it looks like it's just not written to the file (writing it triggers a mounting action) Jul 02 14:29:21 oh damn it, HapticFeedbackConstants.KEYBOARD_TAP is new as of API Level 8, and I am writing for Level 7 =[ Jul 02 14:29:28 shouldn't I be able to save a picture? Jul 02 14:30:03 ah, I see the problem. There seems to be an unwanted newline after dev that did not show when only logging the variable... Jul 02 14:30:07 Kopfgeldjaeger: Yeah, let me know what printing the whole string does. Jul 02 14:30:12 Ahh Jul 02 14:31:02 there is also another question. how can i map my PC keyboard to the emulator? I want to type directly. Jul 02 14:36:02 superlinux-hp: It should be doing that already. Jul 02 14:36:18 superlinux-hp: Plus it has some intelligent keybindings, e.g. Esc == Back. Jul 02 14:36:56 rking, not my laptop Jul 02 14:36:56 Esc works Jul 02 14:37:06 but usual typing no Jul 02 14:37:55 superlinux-hp: I'm not sure how to debug that. Maybe you can run the emulator with some verbosity flag and find a complaint or something, but it definitely "should" be working. Jul 02 14:38:13 ok Jul 02 14:38:18 agargiulo i like it too :) Jul 02 14:40:27 TheTrash, now I'm getting this error http://dl.dropbox.com/u/19390574/log.txt when pressing Send Jul 02 14:40:38 while the EditText does have characters inside when I press Send Jul 02 14:41:46 aha, it IS entering the thread now Jul 02 14:41:55 what's on line 117? Jul 02 14:44:02 there is no line 117 Jul 02 14:44:25 07-02 17:02:49.351: E/AndroidRuntime(10060): at com.android.terminal.AndroidTerminalActivity$2.onClick(AndroidTerminalActivity.java:117) Jul 02 14:44:28 that's your NPE Jul 02 14:44:30 yes, before, sorry Jul 02 14:44:34 AndroidTerminalActivity.java, line 117 Jul 02 14:44:36 It goes from 116 to 118! Jul 02 14:44:37 now it has "os.writeBytes(input.getText().toString());" Jul 02 14:44:51 com.android.terminal.AndroidTerminalActivity$2.onClick(AndroidTerminalActivity.java:117) Jul 02 14:44:56 that's yours right? Jul 02 14:45:07 this takes back the output of the command I send through the "input" EditText and returns it to the "output" EditText Jul 02 14:46:21 all you need is lov lov lov Jul 02 14:46:24 lov is all you need Jul 02 14:46:28 this is the code nowhttp://pastebin.com/kS8Lv2hL Jul 02 14:46:40 and this is the error when I press Send, http://dl.dropbox.com/u/19390574/log.txt Jul 02 14:46:55 07-02 17:46:25.281: E/AndroidRuntime(11045): at com.android.terminal.AndroidTerminalActivity$2.onClick(AndroidTerminalActivity.java:100) Jul 02 14:47:09 line 100 is os.writeBytes(input.getText().toString()); Jul 02 14:47:12 yes Jul 02 14:47:17 os is null, or input is null, or input.getText() returns null Jul 02 14:47:25 why don't you attach the debugger like a big boy and figure this out? Jul 02 14:47:27 I don't get why that comes up empty..there is text in the edittext when Send is pressed Jul 02 14:47:49 yea sorry, I was doing that before but it was to find out about that thread.. Jul 02 14:47:52 (I'm gambling on os being null) Jul 02 14:48:01 it is, of course Jul 02 14:48:30 then perhaps you should check whether your activity is properly set up??? Jul 02 14:48:39 don't just assume everything is initialized, especially when multithreading Jul 02 14:48:43 you need to put in guards and checks Jul 02 14:49:47 do you need correct permissions if you run the app from Eclipse? Jul 02 14:49:55 agargiulo: uh, probably? Jul 02 14:50:00 okay Jul 02 14:50:01 thanks Jul 02 14:50:30 I...don't know where to look! Jul 02 14:50:32 lol Jul 02 14:50:42 maybe you should consider another career :( Jul 02 14:52:49 hmm, it seems one cannot externalize all strings in a project anymore.. Jul 02 14:53:15 one does not simple externalize all project strings... Jul 02 14:53:18 simply Jul 02 14:53:27 joke. ruined. Jul 02 14:53:37 JakeWharton: well, i'll write a damn shell script to do it then :D Jul 02 14:54:10 which will show me the occurence and ask for yes/nn :D Jul 02 14:54:24 hey guys Jul 02 14:54:36 yea so os is definitely null Jul 02 14:54:38 anyone else has many strange bugs with the new ADT? Jul 02 14:54:46 or am i just too blind to see my own error :O Jul 02 14:54:49 JakeWharton: eclipse's ADT did offer it at some point. and i used it in a branch.. development has diverged so much though that i'll have to do it over.. Jul 02 14:54:58 done: http://i.qkme.me/3pxwqk.jpg Jul 02 14:55:00 the code is not reaching the try so it can go inside and initialize os and in and etc.. Jul 02 14:55:00 Aeefire: yeah.. it has some regressions.. Jul 02 14:55:09 look at this Jul 02 14:55:10 http://i.imgur.com/G58SW.png Jul 02 14:55:18 says "Couldn't resolve resource @id/btn_location Jul 02 14:55:36 switching between GUI xml editor and sourcecode is also totally screwed many times.. Jul 02 14:55:37 grr Jul 02 14:55:38 :/ Jul 02 14:56:12 Aeefire: i never use the GUI editor.. Jul 02 14:56:35 anyways.. i found one just has to clean the project and oftentime lint is happy afterwards Jul 02 14:56:36 me too (usually) but i wanted to try it with the new ADT version Jul 02 14:56:46 and its actually cool... but yeah. Jul 02 14:56:53 lol i have done it a hundred times i guess now <.< Jul 02 14:56:58 changed the ids etc. Jul 02 14:57:21 Aeefire: you care to show us the xml? Jul 02 14:57:32 i can.. second Jul 02 14:57:32 your screenshot shows a element with the id entr_location Jul 02 14:57:35 not btn_location Jul 02 14:57:52 mom have to restart eclipse.. you know.. switching doesnt work most of the time (lol) Jul 02 14:57:53 oh, i see it in the tree now :d Jul 02 14:59:42 tapas : http://pastebin.com/mAm4ZQC7 Jul 02 14:59:45 its nothing fancy lol Jul 02 15:00:41 lol Jul 02 15:00:49 i just made the work around Jul 02 15:00:49 rofl Jul 02 15:00:50 Aeefire: yeah, I noticed that going from GUI to XML can make the XML derp hardcore Jul 02 15:01:19 i just set the xmldefinition of the "no-id"button before the edittext Jul 02 15:01:23 wonder wonder, works now Jul 02 15:02:02 Aeefire: the order is important Jul 02 15:02:13 the id btn_location has to be defined before it's used.. Jul 02 15:02:42 ya.. i know that now... never noticed it though.. probably because i did this "naturally" when coding in XML (w/o using the GUI editor) Jul 02 15:03:05 thanks still :P Jul 02 15:03:30 am i calculating aspect ratio correctly? the droid pro, for instance, is 320 X 480 so the aspect ratio is 2:3? Jul 02 15:03:44 how my teachers used to say... "exercising it on the blackboard heals all wounds" :P Jul 02 15:03:55 luxurymode: depends on which way you hold the device ;D Jul 02 15:04:07 normally it's width:hight Jul 02 15:04:14 hehe good point, i mean in portrait Jul 02 15:04:23 it's all convention anyways.. Jul 02 15:04:29 right Jul 02 15:05:38 Aeefire: I like to ask someone else for their opinion when I'm dealing with a problem that I seem to have a mental block on. Usually, just phrasing the problem tells me where I went wrong and I can go away without even finishing asking :) Jul 02 15:06:34 lov ye.. hehe, i guess that's why working in teams also has its reason ;) Jul 02 15:07:12 Morning everyone! I have a quick question that I asked last night, but no one was able to answer: Basically, I need to add multiple controls to my Activity, dynamically (based on values from a database). This isn't a problem. However, my problem is, how do I know which control is which when I need to edit a property of one? For example, if I have two TextViews and want to change the text of one of them, how can I choose the correct Jul 02 15:07:12 TextView? Jul 02 15:07:38 is something fishy going on if adb pull is working at 40kbyte/s? Jul 02 15:07:39 are you a porn*? Jul 02 15:07:40 jessicajames: you give them an ID when you create them Jul 02 15:07:59 jessicajames: or a tag.. if you use the ids for something else already.. Jul 02 15:08:11 and then search for the view having the tag.. Jul 02 15:08:11 jessicajames: if you are creating them from code, just keep a reference in the activity Jul 02 15:08:22 or you remember the position of the column.. Jul 02 15:08:30 one million possibilities to solve this :D Jul 02 15:08:34 I think something just like.. TextView tv = (TextView) findViewById(R.id.textviewId); tv.setText("Set the text here"); Jul 02 15:08:37 so i if i want an emulator to mimick the droid pro, which is 320 X 480, how can i figure out what the abstracted lcd density ought to be? Jul 02 15:08:50 Hmm, do you guys know of any example code I can look at that could help? Jul 02 15:10:43 jessicajames, code i wrote above should do what you asked Jul 02 15:11:33 Timmaah1201, when I create them dynamically, I won't know that the variable assigned is going to be "tv", for example... It's all dependent on the database values Jul 02 15:11:39 So I don't think that would work Jul 02 15:11:51 Correct me if I'm wrong though (I'm quite new to android dev) Jul 02 15:12:11 When you create the textviews dynamically, or assign their values dynamically? Jul 02 15:12:11 jessicajames: presumably when you create them, you have some idea why? Jul 02 15:12:46 vtrsyr Jul 02 15:12:49 create* Jul 02 15:14:22 how many textviews are you creating? And why are you creating them dynamically? Might be a better way to do what youre trying.. Jul 02 15:14:27 gawd... how i hate doing GUIs in android >.< Jul 02 15:14:49 jessicajames, heres a terrible example i just wrote for you: https://gist.github.com/3033716 Jul 02 15:16:44 luxurymode, this makes sense. however, if the database not only contained foo and bar, but also "apples" (or something unpredictable), then we're in bad shape, right? Jul 02 15:17:50 no, just add that Jul 02 15:18:12 ppl anyone tried to develop some games to android using starling engine? does it runs smoothly? Jul 02 15:18:12 join #bash Jul 02 15:18:13 oops Jul 02 15:18:56 oh, jessicajames, you mean that you dont even know ahead of time what views could possibly be created so you cant just hardcode all the possible ids? Jul 02 15:19:09 luxurymode, exactly Jul 02 15:19:14 sorry for not being clear Jul 02 15:19:32 as Leeds mentioned, presumably you know why you're creating them unless you're saying that you're going to create the view based on the db and then also set the text to it from the db Jul 02 15:19:43 if this is the case, then you dont need any ids and you dont have to know anything Jul 02 15:19:46 and even then, use a db ID or something Jul 02 15:19:58 simply grab your db values, create a view for each one and set the text to value from the db Jul 02 15:20:31 Okay, but how do you set the id of the control you're adding based on the db value? Jul 02 15:20:35 (dumb question?...sorry) Jul 02 15:21:56 jessicajames, i honestly dont see how the db id will help you unless theres a small number of things from the db and you can reason beforehand about them so you'll know at compiletime what to set based on the id Jul 02 15:22:59 lalala i am getting crazy.. why don't you work damn scrollbars >.< Jul 02 15:23:04 luxurymode, ahh okay, I think I'll have to rethink my approach then. I'm basically trying to do as little hardcoding as possible to make my application universal for others to use based solely on the db they want to use with the app Jul 02 15:30:58 jessicajames so the issue is that you need to have some sort of widget (like a button) that later maps to the correct textview? Jul 02 15:33:07 luxurymode, no. The first activity that shows up on my application is one with solely Buttons on it (these buttons act as a menu where the user can choose which "subject" to enter into). I want these buttons to be created dynamically from a database. Jul 02 15:33:09 So, Jul 02 15:33:29 based on the database, there could be 2 buttons, there could be 5 buttons, and the texts of all the buttons will be different Jul 02 15:33:34 This is a simple example.. Jul 02 15:33:53 Further in my application, I have ProgressBars and TextViews that need to follow the same behavior as well Jul 02 15:34:01 But Buttons is a good place to start, I think :) Jul 02 15:34:06 Does that make sense? Jul 02 15:34:09 get the number of items, and use a for loop to create the buttons? Jul 02 15:34:23 have the id of the buttons to be name + counter Jul 02 15:34:41 if you want the id Jul 02 15:34:41 Timmaah1201, sure, but once I create the first button, how do I distinguish between that and btnApple, for example? Jul 02 15:34:50 ohh Jul 02 15:34:55 hmm Jul 02 15:35:00 so you can have btn0, btn1, btn2 etc. Jul 02 15:35:00 btn.setID( ? Jul 02 15:35:50 jessicajames: just a second. Jul 02 15:35:59 Why are you using a database for your layout structure, anyway? Jul 02 15:36:06 is there a reason that it needs to be a database? Jul 02 15:36:23 what problem are you trying to solve? Jul 02 15:36:39 I understand that you want to make arbitrary layouts, but why databases? Jul 02 15:36:47 jessicajames, yes.. but i think you should use a customised listview personally Jul 02 15:37:03 It's currently hardcoded, but I want the application to be used by others with different data, so I dont' want it hardcoded Jul 02 15:37:13 right, but why databases? Jul 02 15:37:16 Timmaah1201, I could use a customized listview and still dynamically add buttons, right? Jul 02 15:37:37 I'd recommend thinking about what Timmaah1201 is suggesting; use your own customized list adapter, and just have a listview Jul 02 15:37:38 lov, why not? It seems to be the easiest option considering all my other data is in the database as well Jul 02 15:37:59 jessicajames: probably because now you have to normalize everything. Databases are meant for relational data, not flat format layouts. Jul 02 15:38:21 tdwtf.com is litered with articles about developers who thought "hey, lets throw the layout in the database, sounds great!" Jul 02 15:38:30 this leads to horrific maintainance problems Jul 02 15:38:34 jessicajames, you can read stuff dynamically into a listview, yes Jul 02 15:39:03 Yes, definitely guys, I'd be using a listview Jul 02 15:39:07 im doing something bit similar but via an xml file Jul 02 15:39:15 I just need to dynamically add buttons to the listview and keep track of all the buttons Jul 02 15:39:24 which i guess I can do with btn.setID, right? Jul 02 15:39:38 jessicajames: why do you need to keep track? Jul 02 15:39:38 * jessicajames thinks this is making more sense now.. Jul 02 15:39:44 jessicajames: why don't you give those buttons their own listeners? Jul 02 15:40:05 the button itself can keep track of what kind of actions to take by having their own customized listener Jul 02 15:40:25 lov, I don't really need to keep track of the buttons. But, say, later on in my application, I'm dealing with the same thing - except progressbars now. Then, I would need to keep track of them so I can edit their values Jul 02 15:40:41 :/ Jul 02 15:41:02 jessicajames: I'd recommend keeping track of the row if this is going to be in a listview, personally Jul 02 15:41:08 not the individual items Jul 02 15:41:28 which is usually referred to as position in examples Jul 02 15:41:54 Okay, this makes more sense. I'll try that Jul 02 15:42:04 thank you guys so much for pointing me in the right direction! :) Jul 02 15:43:27 jessicajames: I don't want to disuade you, but this is the kind of thing that's very hard to get right and very easy to get almost right Jul 02 15:43:43 except that almost right turns into a nightmare for maintainability and extensibility Jul 02 15:44:17 if there are any senior developers or architects, I'd recommend getting 15 minutes of their time and asking their suggestions/opinions on architecture Jul 02 15:44:53 you'll save way more time starting with a clear goal and direction, because mistakes will be somewhat expensive Jul 02 15:44:55 yay my first freelance android app is live Jul 02 15:45:07 osxorgate: oh? congrats Jul 02 15:45:13 linky? Jul 02 15:45:22 https://play.google.com/store/apps/details?id=nl.webiq.wadwaaier Jul 02 15:45:31 in dutch :) Jul 02 15:45:41 lov, I appreciate the insight. I'll back everything up before proceeding. I tend to learn from making mistakes (which is...the hard way, sometimes), so hopefully it won't be too bad along the way Jul 02 15:45:45 yeah, I was about to say :) Jul 02 15:45:55 jessicajames: is this a serious project, or a learning experience? Jul 02 15:46:08 Leeds, well... Jul 02 15:46:11 how do you apply for an app to get featured? Jul 02 15:46:18 CallumTaylor: you don't Jul 02 15:46:18 with iPhone you can fill out a form Jul 02 15:46:22 that sucks Jul 02 15:46:23 it happens if you get noticed Jul 02 15:46:39 It's my first project BUT the reason I'm making it is for serious reasons and I think it'll be helpful its users Jul 02 15:46:48 hopefully it'll get noticed sooner or later Jul 02 15:46:50 So, it's definitely a learning experience as well Jul 02 15:47:02 osxorgate: what is that icon? it looks like a reverse goatse Jul 02 15:47:29 looks like a seal with a crab riding on his back Jul 02 15:47:33 jessicajames: it'll be a learning experience but it'll be a harsh one, and I'm concerned you might learn some bad behaviors Jul 02 15:48:05 lov heh.. it's supposed to be a crab i think and a seal Jul 02 15:48:35 I see a crab and a seal Jul 02 15:48:38 ill install and 5 star Jul 02 15:49:10 osxorgate: well, the screenshots look nice. Jul 02 15:49:13 the app is the digital version of http://www.waddenvereniging.nl/winkel/artikel.php?id=64 Jul 02 15:49:20 dammit.. externalizing strings is now a complete clusterfuck :D Jul 02 15:49:25 thanks for the kind words guys :) hope it doesnt crash on your phones Jul 02 15:49:29 ah! Jul 02 15:49:30 Sorry to interrupt but has anyone here compiled Ne10 in eclipse? Jul 02 15:49:40 lov, i have a habit of coding with bad behaviors lol....BUT, I'm fully aware of it and trying hard to make my coding efficient and done the right way for this project Jul 02 15:49:52 usig the find dialog with ".*?" regular expression (at least it knows the non-greedy modifier" Jul 02 15:50:10 then switching focus and ten clicks later one has externalized a single string yay Jul 02 15:51:53 Or perhaps worked with Ne10? Jul 02 15:53:22 hi :) Jul 02 15:54:47 i have a message like this: W/PackageManager( 192): Not granting permission android.permission.BIND_VPN_SERVICE to package com.test1.test2 (protectionLevel=2 flags=0x8446) BUT i put a on my AndroidManifest.xml do you have any ideas where i can come from ? Jul 02 15:55:15 anyone else had an issue with samsung 4.0 where when you override the touch event on a scroll view, and return true, it keeps the over scroll fade? Jul 02 15:55:17 osxorgate, an english update will be nice! ;) what's the app main goal? Jul 02 15:55:27 Clouclou: the device may choose not to grant permissions to certain apps. Jul 02 15:55:33 protectionLevel=2 is, iirc, systemOrSigned Jul 02 15:55:35 i can't seem to figure out how to make it resume the original touch event Jul 02 15:55:45 which means, basically, that you need to be preloaded Jul 02 15:56:00 lov mmm ok do you know where i can fix this ? Jul 02 15:56:13 Clouclou: http://developer.android.com/guide/topics/manifest/permission-element.html#plevel Jul 02 15:56:21 Thresh0ld: the goal is to have a digital version of the thing i linked, to be able to walk around on 'the wad' (the land between islands that you can walk on, when the tide is low) and identify animals and take pics and share etc Jul 02 15:56:21 Clouclou: are you a manufacturer? Yes/No Jul 02 15:56:36 if yes, preload the app. If no, you cannot "fix" this Jul 02 15:56:39 since nothing is broken Jul 02 15:56:50 the permission is intentionally being withheld from you because it is potentially dangerous Jul 02 15:56:56 Thresh0ld: as you see, lots of molusks and crabs and such Jul 02 15:57:21 osxorgate: you need to have the images fit the screen Jul 02 15:57:26 i can't zoom out on large images Jul 02 15:57:45 CallumTaylor: oh? no pinch or magnifying glass? Jul 02 15:57:52 lov, non i'm not :( Jul 02 15:57:55 got them, but i can't zoom out a large image Jul 02 15:57:57 only zoom ij Jul 02 15:57:57 in Jul 02 15:58:01 odd Jul 02 15:58:05 but nicely designed app anywya Jul 02 15:58:20 it's just a webview Jul 02 15:58:21 i like the colour schemes Jul 02 15:58:37 nice osxorgate ;) at first time i was thinking in "this grabs some places where i can eat some nice molusks" lolol somekind of restaurants list lol Jul 02 15:58:39 hmm Jul 02 15:58:40 Clouclou: http://developer.android.com/reference/android/R.attr.html Jul 02 15:58:52 A permission that the system is to grant only if the requesting application is signed with the same certificate as the application that declared the permission. If the certificates match, the system automatically grants the permission without notifying the user or asking for the user's explicit approval. Jul 02 15:59:13 CallumTaylor: what device do you have? Jul 02 15:59:15 Clouclou: you need to do something like adb shell dumpsys package to determine who declares that permission, and then must be signed the same. Jul 02 15:59:16 lov but i tried a ToyVpn from the same code dans i was working Jul 02 15:59:19 galaxy s2 Jul 02 15:59:23 check Jul 02 15:59:38 Clouclou: it's probably a signing issue, there's not much more I can tell you. Jul 02 16:00:00 the webview is a bit odd.. it tells me i can tap twice to zoom.. doesnt work Jul 02 16:00:47 lov, thanks i'll check on that Jul 02 16:00:51 i actually have two games in play store https://play.google.com/store/apps/developer?id=MPP+Productions if someone could give some feedback, i'll appreciate Jul 02 16:02:36 osxorgate: what CallumTaylor said. I was going to make the same point. You should implement pinch to zoom as well, if possible. Jul 02 16:02:58 lov odd.. it works on my phone Jul 02 16:03:10 only shit thing about android dev Jul 02 16:03:18 i have 5 devices at work to test on Jul 02 16:03:20 still not enough Jul 02 16:03:46 but really any 'view picture with zoom options' would suffice Jul 02 16:04:00 repro steps: click wadwaaier, click schelpdieren, click afgeknotte gaper, click the magnifying glass. Jul 02 16:04:04 Oh huh you do have pinch to zoom Jul 02 16:04:07 it's just way too big :P Jul 02 16:04:12 but yeah Jul 02 16:04:17 yeah the images don't fit to screen by default Jul 02 16:04:30 Your actionbar is also pretty non-standard. Jul 02 16:04:37 You've got home at the top, but then you've got share, etc at the bottom Jul 02 16:04:48 I'd recommend just using an actual actionbar, unless they really need this design Jul 02 16:04:51 (and/or you don't care) Jul 02 16:05:09 the trash can is not an appropriate "remove from favorites" icon >:( Jul 02 16:05:11 I'm using actionbarsherlock in the new red cross apps I'm working on, quite like it Jul 02 16:08:18 lov they don't care and tbh neither do i Jul 02 16:08:41 well, i dont agree with 'all apps should have actionbar because they can' Jul 02 16:08:41 Do i have to do anything special if I'm trying to get a location from an app in debug mode? Or should it do it fine if my code is working? Jul 02 16:09:31 Hi I am trying to develop android in windows (i know … dont mention it) and every time I pipe logcat into a file it stops after a few seconds, any ideas? Jul 02 16:10:58 totic just use the logcat window that your dev-env supplies? Jul 02 16:11:18 hi guys, i'd like some help with ksoap2, is there anyone avaiable? Jul 02 16:12:07 osxorgate: its not for me, but a person who is helping me develop the app so they can send me the logs Jul 02 16:12:41 totic: there's also logcollector in the market but i'm not thrilled about the results Jul 02 16:13:35 osxorgate: yeah thats why I want to just use the barebones solution Jul 02 16:24:10 I'm trying to receive JSON data and parse it. I have a book that tells me how to do it, but my issue is how to cleanly get the data back to my application. I created a service, and then am trying to broadcast the received data over to a broadcastreceiver. I was planning to then create an intent for the activity I wanted and pass the data in it. I know I'm doing this wrong. I've been working on this for a long time. How Jul 02 16:24:10 am I supposed to do it? Jul 02 16:25:10 i'd avoid broadcast and use a message handler Jul 02 16:25:31 ok. ill have to look that up. gimme a sed Jul 02 16:25:32 sec* Jul 02 16:25:56 I believe the example service on the google android dev docs site uses them Jul 02 16:25:59 if you want a quick reference Jul 02 16:26:32 im using the book "pro android 3" which has a nice reference for almost everything, but thank you, i'll check that if i'm confused Jul 02 16:29:08 dragorn, it looks like if i use a handler, i'm still out of scope of the activity that needs the data right? Jul 02 16:30:41 twoshot_: I'd assume your activity would start/bind a service to handle the json updates Jul 02 16:30:54 twoshot_: in which case you can pass the message over the client connection to the service jsut fine Jul 02 16:31:35 I stayed away from binding because I was under the impression that bindable services were global to all apps so I avoided them Jul 02 16:31:50 my bad on the repetitive sentence Jul 02 16:32:29 but hm, ok, i'll take a look at that. it'll be a bit before i get somewhere on it though. gotta go run an errand. thanks dragorn Jul 02 16:35:10 I'm having troubles using ksoap2, error happens when calling HttpTransportSE.Call() Jul 02 16:35:25 got empty exception. Jul 02 16:35:54 adias, add the internet permission? Jul 02 16:36:04 did yes Jul 02 16:36:13 k, idk then :D. sorry Jul 02 16:37:07 maybe you could have a look? Jul 02 16:38:11 http://pastebin.com/5xQHLdGs Jul 02 16:38:30 woohoo, admob payment coming! Jul 02 16:39:31 xml: http://pastebin.com/8eEtg5iE Jul 02 16:50:07 If I use compatibility libs for view pager functionality, should I split up the code and use actionbar tabs for post honeycomb and compatibility for pre honeycomb? Jul 02 16:50:58 alternativily use compatibility libs for the functionality in post honeycomb to Jul 02 16:51:48 Deifyed: abs.io Jul 02 16:52:21 Question, What is the best way to get an app to run on a button press? What button would you use? And what is the best way to go about getting the actions to run. Jul 02 16:55:16 wongk: interesting - thanks. Jul 02 16:56:43 Just trying to understand this system- is the android home screen basically an app, just a launcher that runs at the same level of any other downloadable app (in a virtual machine)? Jul 02 16:57:00 BlehTM: yes Jul 02 16:57:07 BlehTM yes... a system app Jul 02 16:57:09 You can make/install your own home screens Jul 02 16:57:18 then the rest of what you see is SystemUI Jul 02 16:57:19 it typically runs as the system, but it doesn't have to. Jul 02 16:57:39 well the stocker does Jul 02 16:57:58 ok Jul 02 16:57:59 the downloadables just handle the Launcher intent and the appmanager sets defaults Jul 02 17:02:11 how can i add an imageview to only specific items in my listactivity Jul 02 17:02:47 i.e. is there a function i can override when a row is updated in my list, so i can therefore add a view Jul 02 17:03:05 you need a custom adapter Jul 02 17:09:50 demico: you will need a custom adapter. It is possible to have a custom adapter that uses mutliple layouts too. Jul 02 17:10:45 it's a bit trickier. Let me dig out some code for it. It uses the ViewHolder pattern. Jul 02 17:19:15 first, in your adapter, create some int constants, for instance REGULAR_ITEM and SPECIAL_ITEM .. then you need to override getItemViewType(int position) , and in your getView , call getItemViewType to figure out which layout to inflate and use, and which viewHolder to use.  Jul 02 17:31:49 demico: are you here? Anyhow, I updated my answer on this question now ; http://stackoverflow.com/questions/6145236/listview-with-two-different-layouts/7566360#7566360 Jul 02 17:32:48 demico: but you can also probably just have your image in the listView-item layout and hide it or show based on if it should be visible or not for that cell Jul 02 17:41:33 Hi, I'm doing a path with onTouch but for some reason I get the y cooreinate with a constant deviation, anyone knows why it could happen? Jul 02 17:44:10 if I do locationManager.requestSingleUpdate() I get a callback on a location very quickly (within a minute). However, if I do locationManager.requestLocationUpdates() and set a timer of 1 minute, it only comes maybe once every 5-7 minutes. I'm not sure it's working, maybe the location is coming triggered from another application. Jul 02 17:44:18 after you request a single update, do you have to re-register the updates? Jul 02 17:45:20 sasson: it's possible that you're not actually touching where you think you are. Jul 02 17:45:37 sasson: go to settings -> applications -> developer settings, and tick the checkbox to show your touch location Jul 02 17:56:56 lov, I've tried this and now I can see the deviation from were I'm pressing to where it is painting.. Jul 02 17:58:53 sorry lov I got disconnected Jul 02 17:59:05 alright. So, you're right, you are painting in the wrong place Jul 02 17:59:09 how are you actually doing your drawing? Jul 02 17:59:24 you're probably trying to do something tricky to get an offset (and you're wrong) Jul 02 17:59:38 alternately, you're trying to use "world" coordinates when you should be using local coordinates Jul 02 18:03:40 I also think the same about getting "world" coordinates... I'm getting the coordinates on the main activity and adding it all to a path, then I paint it from another class which has all the drawings in it. Jul 02 18:03:44 hello Jul 02 18:04:41 I'm getting the following error in eclipse when I try to view my layout: This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT plug-in Jul 02 18:04:57 I've had to downgrade to R18 recently because the new release has problems Jul 02 18:05:41 and I have no idea what the graphical layout is referring to by the rendering library..:( Jul 02 18:06:58 sasson: I think I know what's happening. You're registering for touch events in the activity, but you're drawing on a view, which is not laid out at the very top of the screen. Jul 02 18:07:08 the solution is to register for touch events on the view :> Jul 02 18:07:20 (alternately, have the view traverse its parents and determine offsets to figure out how far it is down the screen_) Jul 02 18:08:12 Thanks lov, I'll try this and will let you know Jul 02 18:08:20 you're the best ! Jul 02 18:09:17 <3 Jul 02 18:14:32 someone with idea why program compiled for arm don`t run on the android device. I tested with hell world c and it worked but when tried to compile something bigger like dropbear or /openssh it doest not start and says that this fail is not there but the file is there Jul 02 18:14:44 I have an issue where when I change the phones orientation, the activity loses focus of dialog boxes, filter texts, spinners.. anything really.. Is there a way to keep focus when the user changes orientation? Jul 02 18:15:07 why you wanna do that? Jul 02 18:15:59 is that not how it works on other programs? I just assumed it was a bug on my app Jul 02 18:16:03 *applications Jul 02 18:20:21 oh i guess that is how it works on some views Jul 02 18:20:24 didnt realise it Jul 02 18:20:26 Timmaah1201: your activity gets recreated when the orientation changes. It is possible to change this behaviour. Should be somewhere in the docs. Think you then would have something like OnOrientationChanged Jul 02 18:21:17 F1rstAid: your description is barely coherent. "It doesn't work" isn't a great bug report. Jul 02 18:21:21 Have you tried running strace? Jul 02 18:21:38 did you actually use the arm cross-compiler tools? Jul 02 18:21:45 (preferably ones from the Android NDK) Jul 02 18:21:58 aight, thanks havchr Jul 02 18:23:04 F1rstAid: it's not as easy as you think Jul 02 18:23:34 you might hve, mot importantly, linked them dynamically against wrong lib Jul 02 18:24:03 though or things like dropbear etc. that aren't upposed to be linked to android apps, I'd build them against uClibc or something... Jul 02 18:25:36 then you get the niceties of hardfp/emulated/softfp-calling-convention-but-vfp-used Jul 02 18:28:54 cool, seems like i/o sessions are already being put online Jul 02 18:31:47 do landscape layouts go in res/layout-land/ ? Jul 02 18:31:54 yeah Jul 02 18:31:58 alright sweet Jul 02 18:32:00 cheers Jul 02 18:32:42 g00s: the butter one is what I've been watching since yesterday Jul 02 18:35:21 p_l|backup: honestly, i didn't understand that one Jul 02 18:35:50 maybe i have to watch it a few more times Jul 02 18:35:55 it was quite straightforward Jul 02 18:36:40 * g00s is not that bright Jul 02 18:39:30 it's not that complex, though. I do get lost in the maths involved in graphics, actully Jul 02 18:39:34 *actually Jul 02 18:43:22 * hackkitten turns g00s's light back on~ Jul 02 18:43:28 hi p_l|backup o/ Jul 02 18:44:14 hackkitten: yay! Jul 02 18:44:21 * p_l|backup pets hackkitten Jul 02 18:44:30 * hackkitten purr :3 Jul 02 18:45:06 this is a family friendly chatroom! Jul 02 18:45:42 yup :D Jul 02 18:46:10 good morning hackkitten Jul 02 18:46:26 mewning, g00s o/ Jul 02 18:47:43 yes nothing brings the family closer together than talking about android programming Jul 02 18:47:59 indeed :) Jul 02 18:48:02 the family that plays together, stays together ^_- Jul 02 18:48:09 * p_l|backup couldn't help the pun Jul 02 18:48:29 haha Jul 02 18:48:41 p_l|backup: so the gamily that doesn Jul 02 18:48:49 t't play together fragments :P Jul 02 18:48:56 uh, *family Jul 02 18:49:08 isn't it obvious? :P Jul 02 18:49:51 speaking about fragmentation, the android fireside chat is a great place to see burke really say he doesn't care much about it; at least his body language says that Jul 02 18:51:34 any easy way to change just the title color of an alert dialog? or do i have to set a whole custom theme to do so? Jul 02 18:53:18 amazon gets 3d mapping company - what the hell is going on ! Jul 02 18:53:44 g00s: the only real fragmentation that bothers me is that we have 4.1 and I barely got to 2.3.7 recently (and it's half-done - missing most of GLES, camera, compass, etc.) Jul 02 18:55:10 p_l|backup: yeah, i think version frag is the main issue. http://www.theverge.com/2012/7/2/3126604/android-jelly-bean-updates-htc-samsung-google-pdk Jul 02 18:56:21 i only have to conclude at this point, that it is not important to google Jul 02 18:57:06 hey, I've got the SDK manager installed on windows (obviously) -- I installed some honeycomb and ICS AVDs last time. I fired it up today and like half the stuff is missing. I tried reinstalling it but no luck. Can't even install a Gingerbread AVD Jul 02 18:57:12 any ideas on this guys Jul 02 18:57:54 what exactly is the new app encryption on JellyBean? Is this encrypted delivery of the apk between Play <-> Device, or encrypted /data/data/apkdir area for each apk? Jul 02 18:58:01 g00s: it's not so much that google doesn't care about it Jul 02 18:58:05 it's that there's not a lot they can do. Jul 02 18:58:25 g00s: the "18 month" thing is bullshit, after all Jul 02 18:58:41 doldrim: think Steam encryption Jul 02 18:58:44 g00s: what's this about amazon getting a 3d mapping company? Jul 02 18:59:13 lov: http://www.theverge.com/2012/7/2/3132349/amazon-acquiring-3d-mapping-company-upnext Jul 02 18:59:23 oh neat Jul 02 18:59:28 that sounds like a good move for amazon Jul 02 18:59:32 p_1|backup: i dont know about steam encryption.. are we talking DRM type encryption measures? Jul 02 18:59:37 now we can experience outages in our 3d maps Jul 02 18:59:44 p_l|backup: it was one of those questions asked to applause at the fireside chat; dave burke basically just blew it off Jul 02 19:00:10 "we're only 12 months into the 18 month period" Jul 02 19:00:12 :) Jul 02 19:00:18 g00s: google cant dictate what vendors will do, they have their own development schedules Jul 02 19:00:21 doldrim: each encrypted APK will be encrypted with key specific to the device it was downloaded Jul 02 19:00:29 hi, i have what is probably a simple question, i just built the tuna kernel from source, and would like to flash it to a maguro galaxy nexus, how can i do this Jul 02 19:00:44 sob. I think I killed a brand new battery by letting it drain. Jul 02 19:00:54 readme: charge it asap Jul 02 19:01:00 question: Networking on Main Thread show exception error. Enabling Strict Mode bypass' this error and works.. why would strict mode allow this? Jul 02 19:01:02 doldrim: because they left updates completely as single image for vendors to do Jul 02 19:01:08 of course. it's plugged in now Jul 02 19:01:10 the longer a li-ion battery remains completely discharged, the more fooked it gets Jul 02 19:01:16 basically I can't do any work right now Jul 02 19:01:31 the phone should reboot at about 20% charge capacity Jul 02 19:01:32 and I drained my battery Jul 02 19:01:33 :) Jul 02 19:01:35 because the freaking SDK manager can't find any avds Jul 02 19:01:36 doldrim: and unless we are talking about a brand new device released just before an OS update, they *don't* want to update Jul 02 19:01:44 nor do most "big" networks Jul 02 19:01:53 dotpyfe: it's probably simple, and this is probably the wrong place to get help, unfortunately Jul 02 19:01:57 g00s: i literally bought this battery last week because I broke my old one this way :| Jul 02 19:02:00 of course not, planned obsolesence :) Jul 02 19:02:00 dotpyfe: well, it's the right place, but you won't get many responses Jul 02 19:02:09 doldrim: it's not planned obsolesence Jul 02 19:02:18 lov: for vendors it is Jul 02 19:02:19 it's that the OEMs all deeply "tweak" the firmwares Jul 02 19:02:32 to the point that it's a huge, huge amount of work to put a new frameworks on Jul 02 19:02:36 lov: any suggestions for where to look? source.android.com has great instructions for building, but not loading Jul 02 19:02:47 lov: well, then google should be more stringent with CTS compliance Jul 02 19:02:49 dotpyfe: not offhand, sorry. You could always try asking in #android-root Jul 02 19:02:53 lov: and my google-fu is failing me Jul 02 19:02:56 lov: ok thanks Jul 02 19:03:11 p_1|backup: back to encryption, so basically DRM, i belive youre saying Jul 02 19:03:22 there is no encrypted APK /data/ area Jul 02 19:03:23 doldrim: they're pretty strict as it is; the important part of CTS is that while the manufacturers can screw up the general theming, none of the apps will behave inconsistently Jul 02 19:04:33 hey, anyone know how to bundle a sparseBooleanArray? Jul 02 19:04:45 lov: cts is pretty weak. sure you can't change what the bluetooth service does, but you could roll an x86 build and half the apps on Play wont load because of JNI issues... but that's digressing :) Jul 02 19:05:04 doldrim: that's not really in scope. Jul 02 19:05:18 lov: as someone involved (a bit) in porting a phone first to 2.2 then to 2.3, it's more that a) Android device interfaces (camera, sensors, etc) are unstable, so drivers from one version don't work in next b) vendors don't make money on general updates for OS unless paid for by networks Jul 02 19:05:29 sure, most of the apps won't work with MIPS, but what the heck is your plan for that one? Forbid MIPS? Jul 02 19:05:41 doldrim: well, any app that breaks on x86 shouldn't list it as working on in their APP_ABI Jul 02 19:05:43 p_l|backup: as someone who worked for Samsung on phone firmware, it's not just that. Jul 02 19:06:13 lov: I believe you. However, it happens that with a) we are still cleaning up after samsung Jul 02 19:06:42 because they can make a wonderful SoC, and then write drivers that make your eyes bleed Jul 02 19:06:56 I believe that. Jul 02 19:07:03 I helped on one of those drivers. Jul 02 19:07:14 usually, the cause for that is A) external pressures B) time constraints C) shitty devs Jul 02 19:07:35 Carrier XYZ demands that feature PQ only work for their Super Special Apps Jul 02 19:07:49 gotta enable encryption between the android layer and bluetooth so no nefarious hackers can figure it out! Jul 02 19:07:58 we in Lebanon just had an internet blackout Jul 02 19:08:05 it was disconnected all over the country Jul 02 19:08:15 surprise; the driver is goddamned horrific, but the carrier is pleased. Jul 02 19:08:20 "pleased" Jul 02 19:09:11 What would be nice is if Android "unbundled" some of the stuff a bit, so for example you have a "stable" HAL (where you can plug-in your private interfaces too), general framework updates et al, and have a way to just put those modifications into separate JAR Jul 02 19:09:19 jayd16: you probably have to extract all the content from the array and push it as a pair of arrays Jul 02 19:09:30 then have on update part of it coming from Google, part of it coming from vendor Jul 02 19:09:36 p_l|backup: oh ho! Jul 02 19:09:41 * p_l|backup would have loved DVM updates, or example Jul 02 19:09:44 but then the oems would MODIFY BOTH Jul 02 19:10:06 lov: put in CTS that android framework has to be signed :> Jul 02 19:10:22 that I'd like, but the OEMs would revolt. Jul 02 19:10:40 how can i import a jar file like httpclient to my eclipse android project in away it gets installed in the emulator Jul 02 19:10:58 My biggest hope is that once Google owns Moto Mobility, they'll be able to enforce some decent standards. Jul 02 19:11:22 personally I suspect networks (especially certain... "privileged" ones coughUScoughJapancough) are bigger issue Jul 02 19:11:37 oh, definitely. see above. Jul 02 19:11:50 ? Jul 02 19:11:50 Moto is probably goign to get spun out Jul 02 19:11:53 superlinux-hp: that class is a part of android Jul 02 19:12:01 they are going to strip the patents and drop them Jul 02 19:12:12 In Poland, for example, networks don't do more than basic branding and maybe preload some apps Jul 02 19:12:25 p_l|backup: i thought this was pretty interesting, although i'm not sure how often it happens (probably not often? http://www.theverge.com/2012/6/30/3128350/fragmentation-a-case-study Jul 02 19:12:29 there's not enough time to bullshit with other stuff Jul 02 19:12:32 superlinux-hp: 1) you shouldn't need to import that jar, it's built in. 2) are you on ADT20? 3) is it in the libs/ folder Jul 02 19:12:46 lov: at least samsung is pretty nice to modders Jul 02 19:13:20 the httpmimes does not exist Jul 02 19:13:33 i need to upload a file Jul 02 19:15:49 superlinux-hp: personally i'd just create a MultipartEntity class, it's probably less than 50 loc... but you can drop a .jar into the "libs" folder Jul 02 19:16:06 خن Jul 02 19:16:07 ok Jul 02 19:16:26 what permissions does 4g need for internet ? i have an app that works on an emulator and 3 phones the 4th is the same as a tested phone but the difference is that on the 4g it doesnt load the website Jul 02 19:21:42 Hi, can anyone recommend a tutorial for http connections? I've read to use HttpURLConnection, but then any tutorial uses BufferedReader.. i'm very confused Jul 02 19:21:43 droidbuster: huh? Jul 02 19:21:55 droidbuster: as long as you have the INTERNET permission, you're fine. Jul 02 19:23:45 lov both of the phones i have are samsung stratusphere one is connected wifi the other is connected 4g and the wifi version works but the 4g does not same app Jul 02 19:24:29 is there an easy way to replace the android.jar used in an ant-based app build? Jul 02 19:24:40 droidbuster: have you confirmed that the phone can load a webpage in the browser Jul 02 19:24:54 will try in a second Jul 02 19:24:55 droidbuster: is the phone that's not working on its 4G connection able to load the network in other apps? Jul 02 19:25:03 if you can read from WiFi, you're set. Jul 02 19:25:35 one of the phones i cracked the screen the other is the replacement so one only operates on wifi trying now Jul 02 19:26:54 the phone with 4g is getting wifi network access to the app Jul 02 19:27:38 irrelevant Jul 02 19:28:07 hey guys whats the best way to texture multiple objects constantly without destroying the gpu? Jul 02 19:29:04 huh, so Chrome for iOS is just a UIWebView ? Jul 02 19:29:26 well, not just. i wonder if it would ever have NaCL Jul 02 19:29:48 why isn't adb server automatically started when I start eclipse? Jul 02 19:30:02 luyang: it should be when you first launch your app Jul 02 19:30:23 g00s: it launches the emulator but I have to start it from command line Jul 02 19:30:27 g00s: I seem to recall that there were things in ToS that prevented releasing another browser on iOS Jul 02 19:32:36 i wonder if this applies for Android also http://www.fiercedeveloper.com/story/study-brazil-mexico-russia-and-turkey-are-hot-markets-iphone-apps/2012-06-28 Jul 02 19:33:07 "App Store for leading international markets and found that those four countries are increasing their revenues from app sales faster than most other countries, including the United States." Jul 02 19:33:38 i think in one of the i/o sessions, they mentioned sales for apps were increasing rapidly in South Korea and Japan Jul 02 19:33:44 Where can I find other developers to team up with to write new interesting apps? Jul 02 19:34:06 luyang: maybe your city has a gtug Jul 02 19:34:30 g00s: yes in fact you're right https://sites.google.com/site/stockholmgtug/ Jul 02 19:34:35 g00s: how I wish that the selling of paid apps wasn't borked in mrket for so long Jul 02 19:34:44 g00s: say I don't wanna meet them in person, but just code with them. :) Jul 02 19:35:21 luyang: github? Jul 02 19:35:33 It would be awesome if there was a comprehensive list of all the open source android projects out htere Jul 02 19:35:42 p_l|backup: sure but github is flooded with javascript projects Jul 02 19:35:49 doesn't ohloh have something like that Jul 02 19:36:10 p_l|backup: not easy to find good android ones… I know c-geo and already follow that and android-bankdroid is pretty neat Jul 02 19:36:22 ohloh? googling Jul 02 19:36:44 looks interesting! Jul 02 19:37:16 because if I search for android open source I get info about the android project and not other smaller app projects Jul 02 19:37:33 but this seems better ohloh ftw Jul 02 19:40:58 Is there an easy way to create a frontend for a website and database you do not have access to? Jul 02 19:41:23 Lord_Zero: encapsulate it in WebView? ;P Jul 02 19:41:50 Or scrape information after retrieving it. Jul 02 19:41:58 p_l|backup: but then you couldnt use your own text boxes and buttons right? Jul 02 19:42:02 You should probably check whether that is acceptable for them though Jul 02 19:42:20 I want the user to login through my ap. However they are actually logging into a seperate website Jul 02 19:42:35 That is certainly possible Jul 02 19:42:36 sounds shady Jul 02 19:42:49 True. Passing a users login data from my app to a website could have some security issus Jul 02 19:42:51 issues* Jul 02 19:42:54 no api? Jul 02 19:43:10 No i want to make an app for my university. Students can login check class data and whatnot Jul 02 19:43:26 I highly doubt they have a public API Jul 02 19:43:45 Well depending on the complexity of their system, I'd say that would be quite simple Jul 02 19:43:57 what you're going to have, in the best case scenario, is an app that gets broken every time they make a change Jul 02 19:44:56 And knowing universities, you can never be certain things will remain in the same format :D Jul 02 19:45:08 i think the topic of android-dev said at one time "please, no more pretty viewers" Jul 02 19:45:13 :) Jul 02 19:45:23 or something along those lines ... Jul 02 19:46:25 hmm Jul 02 19:46:35 True. Ill just abandon the idea for now Jul 02 19:46:53 I work for the uni but I still doubt they would give me database access for an actual app. Even read only Jul 02 19:47:37 Could always ask Jul 02 19:47:53 Depending on the type of data, they may encourage it Jul 02 19:47:56 Lord_Zero: database access isn't the issue. Jul 02 19:48:04 Lord_Zero: the issue is the frontend, and how you'd interact with the database. Jul 02 19:48:26 typically through a web service Jul 02 19:48:28 If your alma mater is anything like mine, there's actually a negative chance you'll get permission to do this. Jul 02 19:48:28 you'd probably have to set up a web service Jul 02 19:50:14 lov: you are correct. I didnt realise how much access id need until now. Or how much work/updates the app would need if it was a "pretty viewers" that simply passed data around Jul 02 19:51:59 is there an official way to get the cpu architecture you're running under? I'm not seeing it in the docs Jul 02 19:52:18 I would think so, hmm. Jul 02 19:52:58 Lord_Zero: you can do a lot of freaky stuff in WebView Jul 02 19:53:29 dragorn: hmm! If it exists, I'd expect it to be under android.os Jul 02 19:53:43 hopefully something better than /proc/cpuinfo Jul 02 19:53:46 lov: Build, CPU_ABI i think will get me what I want Jul 02 19:53:50 i just remembered build Jul 02 19:55:20 dragorn: Ah, there you go Jul 02 19:56:13 looks like it's armeabi-v7 and similar formats, which makes it easy for me Jul 02 19:56:40 * p_l|backup puts in "all" Jul 02 19:57:13 when building, that is :) Jul 02 20:00:09 p_l|backup: for abi? Jul 02 20:00:31 p_l|backup: sure... my problem is I need to do a standalone binary, so I need to know what platform I'm under at runtime Jul 02 20:00:38 p_l|backup: ill go look into it now Jul 02 20:05:47 does android support the complete ASCII set of characters as far as display on devices is concerned and for SMS? Jul 02 20:08:24 X-suriV: look up Droid Sans Jul 02 20:08:27 or whatever the font is now Jul 02 20:09:06 also http://www.ascenderfonts.com/font/handset-condensed-family.aspx Jul 02 20:10:00 hmm in your URL looking at unicode ranges I dont see any mention of Asian language sets Jul 02 20:10:06 like Korean or Japanese Jul 02 20:12:58 i'm always interested in how mobile can help people protest, fight oppression and government intrusion; i wonder if there is an app idea in this http://www.forbes.com/sites/andygreenberg/2010/08/24/full-body-scan-technology-deployed-in-street-roving-vans/ Jul 02 20:13:13 Hi, i keep getting error: The method doInBackground(String...) of type MainActivity.DownloadWebpageText must override a superclass method. 1 qiuick fix available: Remove @Override annotation Jul 02 20:13:49 jrockr: Is this from a inner class extending ASyncTask? Jul 02 20:13:49 oh java. why is it so cumbersome to convert a byte[] into a hex string? Jul 02 20:13:57 X-suriV: yes Jul 02 20:15:04 dragorn: standalone binary? you can use a shell script which checks for /proc/cpuinfo data Jul 02 20:15:15 hi does anyone know if droidDraw is now obsolete or is it still useful? the layout turns out completel differently on my phoen regardless of the root layout type..im on a galaxy S2 Jul 02 20:15:24 p_l|backup: I could, but being able to copy the right version of the binary out of assets is nicer Jul 02 20:15:26 Jrockjiggz: Jrockz: can you paste the code of it somewhre? Jul 02 20:15:30 sure Jul 02 20:15:56 hamo__: umm, don't use droiddraw Jul 02 20:16:01 p_l|backup: also I'm not positive I trust every cpu to identify itself consistently. It may be that they do, but I'd trust the build props abi more Jul 02 20:16:50 dragorn: /proc/cpuinfo comes from kernel, so it has to be correct for the platform or the kernel will probably not boot Jul 02 20:17:29 g00s: do you know of any alternatives Jul 02 20:17:41 g00s: or should i just crunch and do it by hand via the xml editor.. Jul 02 20:17:44 DVM has several variants much more detailed than the armv5te and arm7-a that NDK exports Jul 02 20:18:22 I have registered to listen for changes in the accelerometer. Is there any way to register if the change exceeds a delta, rather than getting all updates? Jul 02 20:18:32 hamo__: do it by hand, or use the adt ? Jul 02 20:18:40 X-suriV: http://pastebin.com/dV5vHf6m (line:67) Jul 02 20:18:56 p_l|backup: yes, but i could try to parse the CPU name and features, or I could just look at the ABI field. When you start throwing in shitty weird chips like allwinner etc, parsing the name string, not my favorite plan Jul 02 20:20:25 jrockjiggz: AsyncTask is a generic type Jul 02 20:20:31 jrock: Try declaring the parameters to AsyncTask ie: AsyncTask type of thing Jul 02 20:20:32 yay! nfc tag emulation is possible after all! just not for the masses :( Jul 02 20:20:53 heh. allwinner afaik isn't so shitty - it's just Cortex-A9 put together with Mali-400 and some other AHB components Jul 02 20:21:05 p_l|backup: yeah I suppose but you get what I mean :) Jul 02 20:21:14 p_l|backup: I'm actually pretty impressed with the little allwinner thing I picked up Jul 02 20:21:25 tho it runs ubuntu for shit. I suppose that's not surprising. Jul 02 20:21:44 and try overriding onProgressUpdate Jul 02 20:22:05 X-suriV: grr. yes this fixed it. I'm following the official android dev tutorial.. what would I do without your help :( thanks Jul 02 20:22:30 Ge0rG: http://titanmkd.blogspot.com/ Jul 02 20:22:42 Ge0rG: if you really hated yourself you could wire that and bridge it into the emulator ;P Jul 02 20:24:07 Guys I haveHTC Desire Z and for some reason time to time like maybe 2 -3 times a day my mobile start to play one short song(bells sound) which I never heard, and there is NO notification, so I have no idea how to turn it off or where does it come from Jul 02 20:24:21 I know I am prob on wrong chat but nobody is answering at #android Jul 02 20:24:37 eh... this is not support channel. Check whatever the f*ck you have running on your phone? ;P Jul 02 20:24:48 dragorn: haha, thanks :P Jul 02 20:25:25 dragorn: what I'd actually need is a ber-tlv lib for java, or maybe even some creditcard emulation code ;*) Jul 02 20:25:36 jrock: np :) Jul 02 20:25:40 ... BER? that's ASN.1 Jul 02 20:30:29 I have a database on my user's phones with about 3000 entries each, and each entry containing a date and a couple primitives (e.g., ints, floats). What's the best way to get that data from their phone to me? I've been doing basic stuff with HTTP and PHP so far. I'm not sure that's the most efficient to pull 3000 entries? Jul 02 20:31:26 p_l|backup: yeah, it is. but I don't want or need a full-fledged asn.1 lib Jul 02 20:31:39 p_l|backup: but hwo I can quickly find out which app is playing the sound? Jul 02 20:31:47 have them send you their phone through snail mail Jul 02 20:32:04 Trudko: ... sorry. I'm too tired to hold "Debugging 101" Jul 02 20:32:28 wongk: good thinking Jul 02 20:32:37 p_l|backup: what you mean? is there better way hwo to find which app is that except turn off each app and wait? Jul 02 20:32:38 \o/ Jul 02 20:43:24 gnychis: call them on the phone, ask them to read the entries one by one. Jul 02 20:43:43 gnychis: (yes, send it to a webservice. You can use PHP for that webservice if you really need to, but PHP is a horrible language) Jul 02 20:45:07 lov: O RLY? a web service? you don't say? Jul 02 20:45:27 you're right. Stick with calling them up and having them speak them to you. Jul 02 21:01:27 lov, u still here? Jul 02 21:01:40 I'm having a hard time registering touch event to specific view... Jul 02 21:05:52 sasson: give the view itself an onTouch listener. Jul 02 21:06:59 is there a difference between touchevent and touch lisitner? Jul 02 21:07:19 no Jul 02 21:07:33 going home, ta Jul 02 21:07:52 should I do it from the main activity or view class? Jul 02 21:08:02 thanks for all the help lov ! Jul 02 21:12:47 well I'm not buying a single samsung product ever again Jul 02 21:13:37 what do the coloured dots in Hierarchy Viewer mean? example: https://www.dropbox.com/s/4xwx8tilto84bxg/hierarchyviewer.png Jul 02 21:15:55 joel135: http://developer.android.com/images/developing/hv_treeview_screenshot.png Jul 02 21:16:59 JakeWharton: thanks Jul 02 21:22:13 is there a way on Eclipse to autocomplete override methods? I mean, If I want to override "onCreate" I want it to create a stub with the parameters. Im new and I have a hard time remembering the methods parameters Jul 02 21:24:41 eclipse is giving error setContentView(R.layout.activity_main); //cannot resolve or not a field Jul 02 21:24:57 Foxandxss: sure there is: press Ctrl+Space, type method name, press Enter Jul 02 21:24:58 i have activity_main.xml in my res/layout/ folder Jul 02 21:25:25 xml file: http://pastebin.com/6a869GgR Jul 02 21:25:58 Foxandxss: while typing where you'd normally put the method, that is Jul 02 21:26:29 ohh. it wasn't working because I had: import android.R; Jul 02 21:26:31 joel135: gotcha, I always put the public before and with that there is no autocomplete, thanks. Jul 02 21:34:05 You've got to love the total inconsistency of the Gallery app for ACTION_SEND and ACTION_SEND_MULTIPLE between different versions of Android and if the images are from teh SD card or Picasa... Jul 02 21:38:13 hmm Jul 02 21:38:51 bubbleguuum: I haven't had any experience with it myself, but to me it shows how rapidly Android is being developed Jul 02 21:40:25 Picasa images are sent as content:// URI on HC+ and as http:// below Jul 02 21:40:28 bubbleguuum: and in my opinion, if a change should be made, make it as soon as possible, before we have some more users running our unwanted code Jul 02 21:40:33 FRAGMENTATION Jul 02 21:42:21 also WTF the Gallery app, on Gingerbread and below, for picasa images (but not local images) instead of using ACTION_SEND_MULTIPLE, uses ACTION_SEND with EXTRA_TEXT containing all the URI separated by "\n". WTF Jul 02 21:44:08 and I'm not even speaking of this genius issue: http://code.google.com/p/android/issues/detail?id=21234 Jul 02 21:47:27 Guys, I'm having problems having text wordwrap in a TextView. I think my settings are okay, but when I set the TextView's text (setText()), all the words dont' wrap. Weirrdly, the problem is solved when I change the orientation of my phone to landscape, and continue sto stay wrapped when I bring my phone back into portrait. Here's the related XML: https://gist.github.com/3035904 Jul 02 21:47:30 Any ideas? Jul 02 21:49:21 jessicajames: you have set your height to be fixed. Is the problem that the text is cut off in the height ? Jul 02 21:49:52 and what happens if you use wrap_content or increase the height of the textView? Jul 02 21:50:07 i'll try that Jul 02 21:50:15 the height seems fine (at least i thoguht) Jul 02 21:50:18 but i'll try it Jul 02 21:50:20 one sec Jul 02 21:50:40 hello Jul 02 21:51:21 it might seem like you'll have room for one more line of text, but don't be fooled. Fonts usually take up more vertical space on a line than what you'd think Jul 02 21:52:09 i have problem with the installation of ADT plugin on both eclipse 4.2 and 3.7, 64bit, on JDK6 Jul 02 21:53:11 it appears to work now, havchr . thank you (: Jul 02 21:53:12 it says that cannot find all the required files Jul 02 21:53:29 jessicajames: cool, :) Jul 02 21:55:20 is there any way to install ADT plugin on eclipse manually ? Jul 02 21:57:24 hi, I'm having problems building my project with ant Jul 02 21:57:55 the project builds successfully, but if I change something in the code (.java) and run the ant command again, the changes are not visible in the .apk Jul 02 21:58:14 as if the ant didn't recognize the changed .java files - any ideas what might be the cause of that? Jul 02 21:58:32 I'm using the following command: ant -Dadb.device.arg='-s localhost:5555' -buildfile build.xml debug install Jul 02 21:58:51 and I don't want to do apk clean every time, since it's too time consuming Jul 02 22:05:47 Hey guys - can anybody help me with this question : http://stackoverflow.com/questions/11297734/why-when-i-call-an-asynctask-from-the-activity-onresume-do-i-not-get-to-see-the Jul 02 22:06:02 currently i call my asyntask - the progress bar shows up, but the publishProgress calls dont seem to do anything Jul 02 22:07:48 can anybody help please Jul 02 22:24:47 In my main View class, I have a draw(Canvas, Object) function. I need to call this function from an onTouchEvent(MotionEvent event) function. Because my draw function requires me to send the Canvas, and the onTouchEvent function doesn't have that as a parameter, I have created a private static Canvas variable (within the view) titled myCanvas. I attempt to call draw(myCanvas, src), but it doesn't work. No errors, just doesn't do what it Jul 02 22:25:26 Oh. And in the onDraw(Canvas canvas) function I have "myCanvas = canvas" Jul 02 22:25:53 to sort of globalize the canvas Jul 02 22:25:57 within the view class Jul 02 22:27:33 And the problem isn't in the draw function because it works successfully when I call it from within onDraw using the canvas parameter. ie. draw(canvas, whatever); Jul 02 22:27:51 but draw(myCanvas, whatever); doesn't Jul 02 22:31:18 If you need the view to redraw, call invalidate() Jul 02 22:31:31 Don't go manually calling those methods Jul 02 22:32:02 i'm using a Intent intent = new Intent(this, SomeClass.class); intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(intent); when a user presses the up button in the ation bar, any idea why my "someClass" gets destroyed? onDestroy called Jul 02 22:32:35 SimonVT, i don't need the view to redraw. I need to draw something new on it Jul 02 22:32:48 and what gets drawn (and where) depends on the touch event Jul 02 22:36:05 Well, that's how it's done Jul 02 22:36:22 you save some state the view bases its drawing on Jul 02 22:36:25 Then you invalidate it Jul 02 22:51:42 Hello. What does the new NDK eclipse plugin do? I installed it and... it does nothing, apparently. Jul 02 22:55:13 hstefan: docs are still coming, see this post for a bit more info: https://groups.google.com/d/msg/adt-dev/41DL3UXz9H4/3Wa-jCO0HE8J Jul 02 23:00:01 SimonVT, I'm really not sure what you mean Jul 02 23:01:01 the docs say invalidate() will call onDraw, which I don't need to happen Jul 02 23:01:17 should i call invalid(Rect) at the appropriate region? Jul 02 23:18:52 Why I get in line 119 Log.d("Debug:","test"); the Error: Syntax error on token(s), misplaced Jul 02 23:18:52 construct(s) --> http://pastebin.com/ugiTearU Jul 02 23:19:21 hi guys - can anybody help me out with this problem : http://stackoverflow.com/questions/11297734/why-when-i-call-an-asynctask-from-the-activity-onresume-do-i-not-get-to-see-the Jul 02 23:22:44 anybody Jul 02 23:23:01 sukramTM: duh, you're calling a method straight from the class body. Jul 02 23:23:33 TheTrash - can you help me! Wish my problem was so easy! Jul 02 23:23:51 I'm reading it Jul 02 23:25:43 sukramTM: Project -> Clean Jul 02 23:26:25 Ah, ==TheTrash. Next time I'll actually read the past e:) Jul 02 23:27:09 renegadeandy: hm no idea, sorry... I've never used tabs. Jul 02 23:29:25 rengadeandy, TabHost.OnTabChangeListener might be useful here Jul 02 23:30:21 doogan what is your suggestion! Jul 02 23:30:24 and like the answerer said on SO, i would show the ProgressDialog from your UI thread, than in onPostExecute() you can do ahead and .dimiss() Jul 02 23:30:36 yeah i did that now Jul 02 23:30:42 but the problem still exists Jul 02 23:30:47 i now see the progress dialog Jul 02 23:30:53 but when i do publishProgres(2) etc Jul 02 23:30:56 it doesnt call into my callback Jul 02 23:34:36 hi all Jul 02 23:34:45 apparently, onRetainNonConfigurationInstance and getLastNonConfigurationInstance are marked as deprecated Jul 02 23:34:51 ole Jul 02 23:34:52 has anyone already replaced these 2 calls with supported functions in ics? Jul 02 23:34:52 thank god :) Jul 02 23:35:01 lou__: just use fragments Jul 02 23:35:21 they solved the problem by design with fragments Jul 02 23:35:28 the very problem requiring you to use this crud Jul 02 23:35:39 You know, I wouldn't mind; but, does anyone here have sample code with use of fragments? Jul 02 23:35:47 fyi though Jul 02 23:36:03 I just need to save a class array Jul 02 23:36:03 the SDK does. Jul 02 23:36:14 (has code that uses fragments, lots of it inf act) Jul 02 23:36:44 jasta can you help with my problem on SO http://stackoverflow.com/questions/11297734/why-when-i-call-an-asynctask-from-the-activity-onresume-do-i-not-get-to-see-the Jul 02 23:36:49 you have always been very helpful Jul 02 23:37:10 i understand; but, i rather get a sample code from someone in the chatroom that is available if i had any questions Jul 02 23:38:11 renegadeandy: sorry, no time to look Jul 02 23:38:31 ok, thanks Jul 02 23:38:42 doogan did you have any other ideas Jul 02 23:41:03 jasta will you look when you get 5 min? Jul 02 23:41:09 and perhaps post? Jul 02 23:53:00 I have a process that access the Gallery app ContentProvider and sometimes make it crash. When the Gallery app crashes, it crashes my own process without any stack trace of my own process with message: 07-03 01:36:17.257: I/ActivityManager(168): Kill (pid 21386): provider com.android.gallery3d.provider.GalleryProvider in dying process com.android.gallery3d. Why is that so Jul 02 23:53:00 and can it be workarounded ? Jul 02 23:57:09 I guess, I can use a Loader to retain my object array. Any input? Jul 03 00:06:17 I am trying to use a set of numbers for my NumberPicker that consist of (-50 -> 50), I am populating from an int array, the MinValue / MaxValue of the NumberPicker are set to 0/100 and then setValue as 50 for the default starting point (0), any idea why it displays the numbers properly except for -1 through -5... when not selected they display fine... when selected they display as -19, -29, -39, -49, -50. Jul 03 00:09:58 Anyone surveyed methods of getting orientation in Android? Rotation Vector vs feeding inputs to getOrientation, etc.? Jul 03 00:13:38 hey guys i just have a slgith issue, im trying to run the demokit exmaple for the adk but when i do i get an error and it doesn't say waht Jul 03 00:14:18 adk? Jul 03 00:14:30 aah, accessories Jul 03 00:15:47 how do you fix the issue whe it gives you an error for R.layout.main ? Jul 03 00:15:58 sanelss: ADK or ADK2? Jul 03 00:16:00 it's complaigning about the R, had it before, cleaning didn't fix it Jul 03 00:16:03 adk not adk2 Jul 03 00:16:37 saneless: do you have the correct sdk version installed and all? Jul 03 00:16:44 yu[ Jul 03 00:16:51 correct adk and target selected Jul 03 00:16:55 sdk* Jul 03 00:17:04 http://developer.android.com/tools/adk/adk.html per those instructions Jul 03 00:17:28 Click Finish. Jul 03 00:17:28 Install the application to your device. Jul 03 00:17:38 step 7 is what im stuck on Jul 03 00:33:52 pboos: you around ? Jul 03 00:33:57 yes i am Jul 03 00:34:02 can i pm ya ? Jul 03 00:34:10 bankai_: ok Jul 03 00:35:40 good afternoon Jul 03 00:36:11 quick verification: BitmapFactory.decodeByteArray() makes a copy of the data, correct? Jul 03 00:36:24 the code appears as though it does Jul 03 00:36:33 Hey guys, I had a quick question about PNG optimization in the AOSP build environment. From what I can tell, Ken Silverman's awesome PNGOUT tool is currently being used to compress APK image resources. I do some PNG optimization for Wikipedia Commons, and one of the tools I've always used alongside PNGOUT is a little utility called DeflOpt. This almost always shaves a few hundred bytes/kilobytes off of each PNGOUT-opti Jul 03 00:36:33 mized image. I'm just wondering if there's any way this might be incorporated into Android's PNG optimization routine - the program is GPLv3 after all. Jul 03 00:37:41 I was going to test it myself, but I'm not sure where in the framework the PNG optimization is actually performed. Someone told me it's part of AAPT? Jul 03 00:37:54 stiltzkin: the tools source code is open source so you can modify Jul 03 00:37:54 Hi, i'm trying to debug a simple app, and when I set into the code, it will open a file (ClassLoader.class) saying Source not Found (...\android-15\android.jar has no source attachment) get no errors in LogCat or Console.. i'm not sure how to debug.. Jul 03 00:38:01 stiltzkin: yes Jul 03 00:38:12 *step into code at breakpoint Jul 03 00:38:52 Guys, I'm having trouble adding buttons dynamically. I have a simple example I'm working on. Can someone please take a look and give me some insight? XML: https://gist.github.com/3036482 Java: https://gist.github.com/3036477 Jul 03 00:39:09 So this would essentially be a script I could modify to call the binary after PNGOUT? Jul 03 00:39:45 jessicajames: use Adapters with ListViews Jul 03 00:39:58 do not call ListView.addView directly Jul 03 00:40:13 herriojr, that's the error I'm getting in the console, but I'm not sure how to exactly do that :/ Jul 03 00:40:15 stiltzkin: it's c++ code Jul 03 00:40:31 jessicajames: where is your data coming from? Jul 03 00:40:40 jessicajames: maybe use ArrayAdapter? Jul 03 00:41:46 herriojr, my data? Jul 03 00:42:02 It's not coming from anywhere else Jul 03 00:43:20 jessicajames: use an ArrayAdapter Jul 03 00:43:25 herriojr, gotcha. I just need to find where the compression code actually is...I don't really know the ins and outs of AOSP, just want to test this out Jul 03 00:43:46 I do have a repository of CM9 source synced, that's what I'm playing with right now Jul 03 00:43:47 stiltzkin: well, the apk is technically a zip file Jul 03 00:44:12 Does the left/right sliding view used in the play store have a name? Jul 03 00:44:16 stiltzkin: if the images aren't all batched up into a single file, you could possibly manually do it Jul 03 00:44:23 I can't remember if they are or not Jul 03 00:44:35 then zip back up and sign it Jul 03 00:44:42 just make sure you export an unsigned version Jul 03 00:45:08 Well as I'm watching it build I can see it's automatically compressing all of the PNGs in each APK - all I want to do is run an additional step after each compression to save more space Jul 03 00:46:47 So really my only question is where in the source PNGOUT actually gets executed, that's all. Sorry for being a noob about this. And it's not a critical issue or anything, just curious how it works. Jul 03 00:47:14 * jessicajames is still searching for ArrayAdapter tutorials!! (: Jul 03 00:47:45 Is there a way to use the same type of spinner that Android uses for dates? The ones you can flick through? Jul 03 00:49:18 jayd16, NumberPicker and it is API11+ Jul 03 00:49:39 kyau: awesome, thanks Jul 03 00:49:54 jayd16, the original date ones can be used way further back though, but custom ones are API11+ Jul 03 00:50:29 jayd16, I believe the date/time ones are DatePicker / TimePicker Jul 03 00:50:52 kyau: yeah, too bad I'm not doing dates. Jul 03 00:58:08 jayd16, yea I just did something similar and used a Spinner on API<11 and a NumberPicker on API>=11 Jul 03 00:59:55 yeah thats probably what I'll end up with Jul 03 01:03:56 anyone knows why it still shows the expand icon in the row on ExpandableList if the group has not a child? what can cause it? here is my code http://paste.ubuntu.com/1072298 Jul 03 01:06:01 hey Jul 03 01:07:05 Hey my code is failing at: URL url = new URL(myurl); and i have no idea why.. if I set a breakpoint i get 'Attached Source not found".... Jul 03 01:07:28 is it possible to get fluctuating time results (e.g. lower number after a higher number) from System.currentTimeMillis() when the date/time setting is set for automatic on the phone? Jul 03 01:08:26 man Jul 03 01:08:34 i have really grown to hate the Android SQLite stuff Jul 03 01:09:50 any idea with my ExpandableListView issue? Jul 03 01:10:10 hello room. Jul 03 01:10:21 BTW I'm using CursorTreeAdapter Jul 03 01:12:31 cursortreeadapter? Jul 03 01:12:33 sounds interesting Jul 03 01:14:58 Tagami u have any experience with it? Jul 03 01:18:19 does anyone know why the adk example won't run? Jul 03 01:18:28 eclipse give me an error on R.layouts.main Jul 03 01:18:32 doesnt know what R is Jul 03 01:19:19 sanelss: do you have errors elsewhere in your project? Jul 03 01:19:42 don't think so. i mean its a google premade exmaple Jul 03 01:19:47 i shouldn't have to do anything with it Jul 03 01:20:14 you would think :) Jul 03 01:20:23 check your imports to make sure you don't have android.R imported Jul 03 01:21:24 i don't Jul 03 01:21:48 also, make sure there are no errors if any of your other files (XML specifically) Jul 03 01:22:27 doesn't look like it Jul 03 01:26:12 sanelss the R.java file is the file which holds the references for all your elements on ur application. Make sure you are importing the correct R.java file. In your import section, what is being imported? Jul 03 01:26:23 Please help me with this question. http://stackoverflow.com/questions/11303314/expandablelistview-shows-expand-icon-for-groups-with-no-child Jul 03 01:28:02 I'm aware of that, and it is indeed being generated when i clean the project Jul 03 01:28:07 eclipse still complaigns though Jul 03 01:28:13 and im not importing anything for it Jul 03 01:28:46 erww ait i just checked egain Jul 03 01:28:48 it wasn't generated Jul 03 01:29:07 ah now it gives me error in xml file Jul 03 01:29:17 Theme.holo apparently is invalid Jul 03 01:30:01 remove it. if there is any error in ur project it wont be generated Jul 03 01:30:23 ye i did, it complied and is running Jul 03 01:30:38 the whole issue i had was that i couldn't get the mega adk to work in the arduino ide, well the usb hsot anyway Jul 03 01:30:42 anybody experience "NoSuchMethodException" with signpost jar? Jul 03 01:30:44 so wanted to try official google steps Jul 03 01:30:50 however it seems this board is bad 2 Jul 03 01:30:58 thats 3 boards in a row that are bad, thougb they are the same lot number Jul 03 01:31:18 somehow in code everything is there. even if i dex2jar the apk, i see the method in the inheritance, but the app crashes.. Jul 03 01:31:25 I always do via Google documentation Jul 03 01:31:27 and it works Jul 03 01:32:16 that's why i tried Jul 03 01:32:18 and doenst work Jul 03 01:33:19 hi there, how to get a resources object from a file uri? Jul 03 01:33:47 I have a large bitmap stored locally and I want to decode it to smaller size and show it on screen Jul 03 01:36:55 anybody here? Jul 03 01:36:55 hi Jul 03 01:37:31 how do I set the GroupIndicator for a specific row programatically? Jul 03 01:41:14 JakeWharton, saw otto. looks great. you (and square) always do solid work. so im wondering - and asking this out of ignorance - what are the advantages of this above sending broadcasts and that type of thing. is that after it returns you're guaranteed that everyones been notified? i also know dianne hackborn went on a tirade about people using broadcasts in place of callbacks. Jul 03 01:42:18 See: https://plus.google.com/107049228697365395345/posts/6j4ANWngCUY Jul 03 01:44:23 luxurymode: do you have a link to that dianne hackborn article you mention? Jul 03 01:44:24 basically, the extremely simple nature of the API makes it much more favorable Jul 03 01:45:29 jayd16, not an article, from google group: https://groups.google.com/forum/?fromgroups#!topic/android-developers/8341SaXhvmY Jul 03 01:45:46 jayd16, i think her issue was more abou sendStickyBroadcast, but she mentioned sendBroadcast also Jul 03 01:45:51 thanks JakeWharton Jul 03 01:47:32 Anyone knows how do I hide the groupIndicator for a sepecific row? Jul 03 01:47:55 JakeWharton: Otto :3 Jul 03 01:49:10 luxurymode: ah yeah, looks like its mostly problems with stickiness and security of broadcasts. Thanks for the link Jul 03 01:49:56 so btw…does anyone know if there is SDK support for the Nexus Q or if Q development even goes in this channel? Jul 03 01:51:20 the use of annotations to subscribe to what you're interested in is definitely awesome. and yes, JakeWharton, much nicer than registerReceiver and writing a BroadcastReceiver. Jul 03 01:54:55 JakeWharton, so the @Subscribe annotation will cause that method to get called if the event is of the type of the param? Jul 03 01:55:05 correct Jul 03 01:55:34 sweet deal. also can i use this an android lib project? Jul 03 01:55:56 if you shuffle the directories I guess Jul 03 01:56:00 you don't want to use it as a .jar? Jul 03 01:56:06 oh yeah i guess jar is nice Jul 03 01:56:08 sweetness Jul 03 01:56:15 gonna give it a shot right now Jul 03 01:56:33 there's a somewhat contrived sample app which shows two fragments and an activity talking Jul 03 01:56:47 thanks for all your work with everything. hard to imagine where android development would be without the sweet libs from JakeWharton :) Jul 03 01:56:58 (no, i'm not asking you out) lol Jul 03 01:57:07 JakeWharton, yeah just saw it Jul 03 01:57:16 like you said, its so small and concise Jul 03 02:02:08 hm can someone help me with swiping using viewpager along with tabs Jul 03 02:02:30 http://thepseudocoder.wordpress.com/2011/10/05/android-page-swiping-using-viewpager/ i implemented this but the first fragment stays on all the time Jul 03 02:02:42 what is the property in the progressbar to set progress color Jul 03 02:02:48 also the selected tab isnt switching Jul 03 02:03:11 should i add in some code to ontabunselected? Jul 03 02:09:45 * g00s still needs to put his eventbus on github or something Jul 03 02:10:10 dominicdinada: there isn't one, it uses drawables Jul 03 02:10:32 JakeWharton: ok thanks Jul 03 02:14:30 * Jug6ernaut looks into otto Jul 03 02:15:59 http://pastebin.com/yFMA0eVk Im probably doing this pretty wrong but can someone guide me a little. Im trying to implement 5 tabs, abcde each showing their respective fragment fragmentA to fragmentE, and being able to switch between the tabs using horizontal swipes Jul 03 02:16:42 at the moment the textview in fragmentA persists, it doesnt go anywhere when I swipe Jul 03 02:16:54 the others work fine Jul 03 02:17:03 Anyone knows what the heck I can't add a context menu to the default @android:id/list ListView? I've literally wasted 4 hours with this shit and the menu doesn't appear. I've searched dozen results on Google, StackOverflow, Books, all fail... the code that SHOULD WORK http://pastebin.com/CEPCxK7Z Jul 03 02:17:07 also need to add code to switch the selected tab when i switch the fragment by swiping Jul 03 02:17:07 *why Jul 03 02:19:34 There is no context menu on ListView's for Android 4 or WTF? Jul 03 02:20:31 lame question, but where should i put all my 200 pdfs on my android tablet? Jul 03 02:20:50 BadDesign: I think you're supposed to use an actionMode Jul 03 02:21:32 jerry_l: File extStore = Environment.getExternalStorageDirectory(); Jul 03 02:22:09 thanks BAD. :) Jul 03 02:23:36 if you use openFileOutput("BLAH", Context.MODE_APPEND) is the file also private to the application? or do I need to do: Context.MODE_APPEND | Context.MODE_PRIVATE Jul 03 02:23:46 <_ohm> How long does it take after registering an md5 for a gmaps api key to go into effect? they key used is not a debug key Jul 03 02:30:16 can you programmatically create launcher folders and populate them with launcher shortcuts? Jul 03 02:30:31 i'm sure you could with root Jul 03 02:30:40 but you probably can't directly modify the launcher's data otherwise Jul 03 02:30:58 I dont think there is any api for it.. MIGHT be able to inspect launcher for intents it responds to Jul 03 02:31:21 we're already creating shortcuts, but it'd be cool if we could allow the user to create a folder of all their favorite merchants with one click Jul 03 02:31:40 there is no such thing, afaik - lack of APIs and differences between launchers Jul 03 02:33:54 maybe go harass Nova or Apex until they add an API :) Jul 03 02:36:37 the play store by default automatically adds icons to every launcher when you install an app (although it fails half the time) Jul 03 02:37:18 until you do the sane thing and disable that Jul 03 02:38:08 i always forget to, and then when the minute of toasts is done I just tell myself I'll do it later Jul 03 02:38:18 Yes, there's an API for that which any app can use. I was interested in folders though. Jul 03 02:40:33 goddamn commonsware Jul 03 02:40:55 guy seems like he wants to prevent anyone from trying to do anything remotely outside the realm of normal Jul 03 02:46:14 haha what'd he do? Jul 03 02:48:49 oh you search for how to do x, and you find him responding to posts on stack overflow with the usual rsponse Jul 03 02:49:01 NO you CANT do that, and you shouldnt do that blah blah blah Jul 03 02:49:09 its like Dianne Jul 03 02:49:13 she IS helpful Jul 03 02:49:28 I value her input, but it always seems like you are getting chewed out when she gives it to you Jul 03 02:49:29 haha Jul 03 02:49:44 Anyone knows why the context menu DOESN'T APPEAR when I long click an item in the listview? http://pastebin.com/wckRRr8d Jul 03 02:50:26 I've replaced the code with an actionmode but I have the same problem... Jul 03 02:50:38 this is annyoing beyond limits Jul 03 02:52:02 My AndroidManifest file has but why the heck I don't see a context menu when I long press an item in the list Jul 03 02:52:17 BadDesign: just do a registerForContextMenu(mListView); in your onCreate() Jul 03 02:52:32 pboos: I have that Jul 03 02:52:42 BadDesign: sorry, just saw your code now.. yes you do.. hmm Jul 03 02:53:12 BadDesign: actually. you register for context menu, but you do not do the context menu.. Jul 03 02:53:35 BadDesign: you need to override: onCreateContextMenu Jul 03 02:53:54 BadDesign: you don't do onItemLongClick Jul 03 02:54:21 pboos: sure, I had that on the previous code but I'm coding for Android 4 and the recommended way is to use ActionMode, the previous code was http://pastebin.com/CEPCxK7Z Jul 03 02:54:42 BadDesign: True, ActionMode might be better :) sorry, but i have to go for lunch. Jul 03 02:55:24 the code doesn't work either way Jul 03 02:55:53 BadDesign:you did the OnCreateContextMenuListener in the list view.. try it in the activity Jul 03 02:56:16 BadDesign: but well, have to go.. good luck Jul 03 02:56:26 pboos: tried that, doesn't work **** ENDING LOGGING AT Tue Jul 03 02:59:57 2012