**** BEGIN LOGGING AT Mon Nov 05 02:59:59 2012 Nov 05 03:00:26 pretty sure that's not standard Nov 05 03:00:42 regedit: hey, done anything with actual speech recognition yet? Nov 05 03:00:55 canadiancow: usps has been surviving without any government funding for years and is in danger of going bankrupted because legislators forced them to pay excess amounts of money into the civil service retirement fund. Your money is appreciated in helping my post office stay afloat so we don't have to pay an exorbitant fee to a private shipping company. Nov 05 03:00:56 http://developer.android.com/guide/topics/ui/notifiers/notifications.html#CustomNotification Nov 05 03:01:26 Leeds: will you leave an android noob alone to explore the glories of android ffs Nov 05 03:01:28 :P Nov 05 03:01:34 canadiancow: this might surprise you, that we are trying to bankrupt an imortant federal institution, since you're canadian Nov 05 03:01:54 im not sure Canada Post gets any federal funding either Nov 05 03:02:05 tdignan: bovines are not know for their deep understanding of federal budgeting politics either Nov 05 03:02:25 ive been here liek 45 days. give me some time to learn :P Nov 05 03:02:42 Leeds: also, no im not sharing with you how its done when its done, you can RTFM yourself how to do it muhuhuhahahahahohohoho Nov 05 03:02:49 Leeds: that's because most of them are fed corn and antibiotics instead of grass. Cows used to be smart, like dolphins. Then the illuminati mind poisoned them. Nov 05 03:02:52 regedit: I'm just worried that you're going to do all this stuff with services and notifications and whatnot, and then find you simply can't do the actual think you want to do Nov 05 03:02:58 tdignan: fnord Nov 05 03:03:04 :D Nov 05 03:03:34 Leeds: so what? i'll have acquired much android knowledge to go forth and make other interesting things Nov 05 03:04:04 regedit: I know I'd feel pretty frustrated if I thought I had this great idea, then it turned out the platform wouldn't let me do it Nov 05 03:04:09 perhaps cyananogen mods :D Nov 05 03:04:46 s/anan/an/ Nov 05 03:04:50 canadiancow: thanks man! i'll look into that Nov 05 03:04:58 oh, that too Nov 05 03:05:03 good god Nov 05 03:05:05 did you try googling like... "android custom notifications" Nov 05 03:05:09 ron_frown: yes? Nov 05 03:05:28 I love that 12 hours ago before I started working on my deck, regedit was in here asking how to do a custom notification Nov 05 03:05:35 and it still goes on Nov 05 03:05:35 canadiancow: nope. why would i think of the keyword custom Nov 05 03:05:48 canadiancow: you can use online stamp printing, not collect stamps Nov 05 03:05:52 ok well "android notifications" would probably take you to the same place Nov 05 03:06:03 SpeedEvil, i dont have anything to print it on Nov 05 03:06:08 some people have a life ron_frown Nov 05 03:06:30 canadiancow: nope, just the design/guide/reference pages Nov 05 03:06:38 about non-custom notifications Nov 05 03:07:35 canadiancow: are you telling me you know for a fact that in order to have stuff like the on/off switch in the notification drawer, you must use cusom notification apis? Nov 05 03:07:59 yes Nov 05 03:08:07 thank you kind sir Nov 05 03:08:14 non-custom notifications have an icon, some text, and a pending intent Nov 05 03:08:23 well they have a little more since JB Nov 05 03:08:27 and even HC Nov 05 03:08:35 ye Big View Nov 05 03:08:40 regedit I am confident if your google-fu was even remotely competent Nov 05 03:08:48 you could have found the answer in like 5 minutes Nov 05 03:08:55 s/5/1/ Nov 05 03:09:05 canadiancow: sure, if you want to cater to the 28% :) Nov 05 03:09:21 Leeds, the app i work on has minSdkVersion="14" :P Nov 05 03:09:43 canadiancow: elitist! Nov 05 03:09:57 again some of us have a life and aren't as google-fu as y'all. my apologies Nov 05 03:10:14 sick burn Nov 05 03:10:19 hey, I've got 2 phones and a tablet here, all API 16 :D Nov 05 03:11:06 doogan: just responding in kind here Nov 05 03:11:34 16? welcome to june :P Nov 05 03:11:36 at least JB is beating HC now... Nov 05 03:11:52 canadiancow: to be fair, 17 isn't actually *released* yet ;) Nov 05 03:12:10 but yea, i think everything i have that turns on, excluding my nexus one, is running 16+ Nov 05 03:12:24 and all of mine are stock Nov 05 03:12:51 nexus s, galaxy nexus, nexus 7? Nov 05 03:13:01 One X, gnex, N7 Nov 05 03:13:10 ah Nov 05 03:21:17 Hello, I am creating an application that uses the sharedpreferences for settings. Should I just save a variable of the SharedPreferences in the activity, or load each individual setting to a variable in the activity? Nov 05 03:22:36 AddisonE: depends how often you refer to them Nov 05 03:24:03 hi yall Nov 05 03:24:28 AddisonE: sharedprefs are xml, while I don't recall if it does any caching, it's still significantly more expensive to look them up than it is to use a local variable Nov 05 03:25:01 Wouldn't it end up being double the memory since it has the sharedpreferences and the local variables? Nov 05 03:26:08 arguably double the memory of... well... a boolean? Nov 05 03:26:24 Case of optimizing the wrong stuff. :P Nov 05 03:27:59 http://developer.android.com/reference/android/content/SharedPreferences.OnSharedPreferenceChangeListener.html Nov 05 03:28:12 if you have a lot of preferences and you're worried about keeping your copies updated Nov 05 03:29:38 i need to cut down the memory my app uses in MAT. how can i figure out which object exactly is being used for each piece of the memory pie chart? Nov 05 03:29:40 (how) can i start a service right after it's APK gets installed Nov 05 03:29:42 I don't have too many. It would be easier to have local copies of the variables, because when the settings preference is done, then I could check the old value to the new value and do the neccessary changes. Nov 05 03:31:26 If I didn't keep a copy of the shared preferences but I just uploaded to local variables, would the garbage collector free the sharedpreferences? Nov 05 03:32:02 no Nov 05 03:32:11 primitive types are copies Nov 05 03:32:31 String OTOH i'm not sure though. Nov 05 03:32:42 hmm im trying to get gps location but onLocationChanged is never called Nov 05 03:33:04 AddisonE: if you're using a primitive type, the word garbage collector shouldn't even enter your thought process. Nov 05 03:34:06 I am setting an OnclickListener on a View inside a ListView, and setting a tag to be retrieved in the OnItemClickListener, however, the onClickListener seems to consume the event, and the onItemClickListener for the listview never fires: http://pastebin.com/ZDGqJLv3 . How can I avoid this? Nov 05 03:34:40 If the primitive types are copies, then the actual data from the sharedpreferences would not be in use, correct? How come I shouldn't worry about the garbage collector? Nov 05 03:35:15 because you're not keeping a reference to anything Nov 05 03:35:23 the gc uses reference counting Nov 05 03:35:37 once there are no references left to an object, it can be gc'd Nov 05 03:35:48 Oh it does? I'm a C++ man myself so I did not know that :P Nov 05 03:35:50 unless you're using a weakref, in which case it can be gc'd even if there is a weak ref. Nov 05 03:36:07 so when you're using primitive types, you don't have a reference. Nov 05 03:36:14 ergo, no consideration. Nov 05 03:36:37 Strings are objects though, so you might consider this. Nov 05 03:36:39 Note: The OnClickListener on the View definitely gets triggered, the log fires away when I click on it. However the log entry on the ListView's onItemClickListener is silent and never happens. Nov 05 03:36:44 it is mildly incorrect to refer to the process as 'reference counting'. There are no use counts in most types of gc. Nov 05 03:37:03 alankila: how does it work then Nov 05 03:37:17 Looking at the source code I'm enlightened a bit. It would be a lot simpler to load the data to a local variable. Nov 05 03:37:18 my understanding was it kept track of how many references you had, and if you got rid of all of them, your object could be gc'd Nov 05 03:37:33 a simple implementation stops the executing virtual machine, then looks up every reachable object starting from local variables and known static globals Nov 05 03:37:46 Yeah, that sounds right. That is the concept of a shared_ptr in C++. Nov 05 03:38:05 alankila: how does dalvik implement gc, do you know? Nov 05 03:38:08 There is also a weak_ptr which is similar to the weakref you spoke of earlier. Nov 05 03:38:11 when the reachable objects have been determined, the non-reachable ones are freed. Nov 05 03:38:16 does it actually do that? because that sounds painfully slow Nov 05 03:38:28 tdignan: some variation of the above, but there's concurrency to the modern garbage collectors Nov 05 03:38:35 sonOfRa, I've noticed this as well, why do you need to use onListItemClick instead of the OnClickListener that is triggering? Nov 05 03:38:52 Because I have to do things with the Tag inside of the Activity. Nov 05 03:39:08 the stop-the-world phase is quite short, and there is another trick called generational GC that tries to focus garbage collection efforts to subheaps where new objects live, which have very high mortality Nov 05 03:39:09 So the Object on the Tag is needed inside the Activity where I am hosting the ListView Nov 05 03:39:54 alankila: oh I see.. "mark and sweep" Nov 05 03:40:09 sorry, I'm still missing something... I'm not see'ing the dilema (other than lack of elegance) Nov 05 03:40:09 http://davidehringer.com/software/android/The_Dalvik_Virtual_Machine.pdf Nov 05 03:40:19 http://stackoverflow.com/questions/4818869/technical-details-of-android-garbage-collector Nov 05 03:40:46 Also, onItemClick doesn't notice any clicks, even outside of that particular view Nov 05 03:41:26 sonOfRa, yeah, I've worked around this by not using onListItemClick (I would love to know how to retain it's function, but I've found my workarounds effective) Nov 05 03:43:23 MAT is telling me that i have two bitmap objects consuming a large amount of memory. how do i figure out which two bitmaps they are?? Nov 05 03:43:57 sonOfRa, in my case, I wanted more than 1 button per element... I wound up creating (implementing) OnClickListener and assigning it to multiple views in my item layout Nov 05 03:44:20 then comparing view.getId() to layout id's for conditional logic Nov 05 03:44:53 Did you manage to pass Tags on those Views over to the Activity the ListView is residing in? Nov 05 03:44:55 you can attach tags to any view, multiple if you are using id's as tags keys Nov 05 03:45:17 I think "pass" is the inverse wording of what I would chose Nov 05 03:45:28 but I was able to retrieve the tags from the listener Nov 05 03:46:13 (from the view, in the listener) Nov 05 03:46:17 but the listener is only inside the arrayAdapter of the ListView? I can't quite grasp how you managed to transfer them Nov 05 03:46:30 what type of adapter are you using? Nov 05 03:46:38 A custom ArrayAdapter Nov 05 03:46:49 if you use ResourceAdapter, you get your cursor and a view Nov 05 03:46:58 ResourceCursorAdapter Nov 05 03:47:06 public void bindView(View groupView, Context context, Cursor cursor) { Nov 05 03:47:41 has anyone even used MAT? it seems very difficult to figure out what in your code actually corresponds to the allocations it lists Nov 05 03:47:54 if this is an inner class, you can easily assign your activity (that implements OnClickListener) to indidvidual views Nov 05 03:52:22 sonOfRa, perhaps I'm not understanding your goals correctly... do you want click to differe depending on where in the list item you click (multiple buttons, views, etc?) Nov 05 03:53:42 It's basically a primitive Tree. There is a "+" for expanding on the left side, and information about a category on the right. Click on "+" expands the category. Hang on for 2 screenshots. Nov 05 03:54:35 https://www.dropbox.com/s/i8e2h7rdr53p1z1/2012-11-05%2001.37.28.png Top View, shows all the categories. Nov 05 03:54:57 https://www.dropbox.com/s/xfm5o8h5fymh24g/2012-11-05%2001.39.58.png Second view, which should reveal after a click on the plus next to "Literatur" Nov 05 03:55:14 The "Alle Kategorien" at the top in the second shot should be "Literatur" instead Nov 05 03:55:37 The category is a polyhierarchy Nov 05 03:55:58 Basically a tree, however with more than one root node, and a leaf can have more than one parent Nov 05 03:56:43 as you drill, are you adding multiple instances of your activity to the stack? or updating the activity to display different content? Nov 05 03:57:31 nm, shouldn't relevant to the Q... Nov 05 03:57:35 I'm updating the listview. I have a stack that contains a pair of Where the list contains subitems Nov 05 03:58:02 the onBackPressed can go back through the stack, and if it's a t the top, it goes back to tjhe previous activity Nov 05 03:58:22 if you want left/right to do different things, I have not discovered how to do this using onListItemClick Nov 05 03:58:52 I've had to bind different (or id conditional) listeners to the individual views that make up a each item Nov 05 03:59:55 I've done this via ResourceCursorAdapter, I'm sure there are a few other adapters that make this pattern possible Nov 05 03:59:57 It might be possible to do this with starting a new Activity each time I hit the +, but that would take a lot of time serializing everything before passing it, wouldn't it? Nov 05 04:00:28 sonOfRa, shouldn't be necessary, I don't think that aspect makes a difference... was a poor Q on my part Nov 05 04:00:51 I'm willing to go in all directions really... Nov 05 04:03:18 does your array data come from a cursor by chance? Nov 05 04:04:17 no, the array data is stored in the activity, and then passed to the constructor for the adapter Nov 05 04:04:25 and that adapter is used as an adapter for the listView Nov 05 04:05:39 * gutano is doing a little reading to see if his pattern is useful w/ArrayAdapter/Similar Nov 05 04:07:08 your implementing getView and setting OnClickListeners? Nov 05 04:08:20 s/implementing/overriding Nov 05 04:11:01 yes Nov 05 04:11:51 the whole adapter looks like this: http://pastebin.com/6hmc2cJs Nov 05 04:26:39 sonOfRa, this strikes me as backwards (but I don't like to think of my way as the only right way) Nov 05 04:27:04 sonOfRa, I would expect you to call extend.setTag in your getView... and v.getTag in your OnClickListener Nov 05 04:28:05 But how do I get that tag's content if I just v.getTag in the Listener? Nov 05 04:28:18 listener gives you the view Nov 05 04:28:27 v.getTag() Nov 05 04:28:44 maybe your Activity needs to implement your listener Nov 05 04:28:57 Yeah, but I neded the View in the activity, and I only have it inside of the Adapter, hm Nov 05 04:29:11 I'm going to try making the adapter a private class inside the activity Nov 05 04:29:13 wherever your lsitener is, you will have your view Nov 05 04:29:32 I'm not sure it's "necessary" but that's been my habbit Nov 05 04:38:26 but when i define the onclicklistener in my activity, i can only define it for the whole listview and not a single element inside that listview?! Nov 05 04:38:44 onitemclicklistener listens for row clicks Nov 05 04:39:28 *is not onclicklistener Nov 05 04:39:57 he wants 2 different click events per item Nov 05 04:40:40 try putting an on click listener in the onitemclicklistener where the click listener switches on the child views? Nov 05 04:41:16 lasserix, I don't think there is anything to key off of in onListItemClick Nov 05 04:41:36 you don't get coords, or sub-view details about click Nov 05 04:41:42 Is the View arg1 the child view I click on?! Nov 05 04:41:50 no Nov 05 04:42:14 it's the full item in onListItemClick Nov 05 04:42:53 yeah use the view passed to onitemclick and set up an anonymous clicklistener using the view as reference / crossed referenced to the id or pos? Nov 05 04:44:52 the id, the view and the pos don't tell you anything more than which list item you have Nov 05 04:45:14 right find the views you need via the view, pass them to a click listener Nov 05 04:46:02 How is that going to do anything? That still doesn't let me access the view, because the pos don't tell me which subview i actually clicked Nov 05 04:47:35 use id Nov 05 04:47:47 what id? that is not a subview id Nov 05 04:47:50 lasserix, I've been hoping the whole time I've been chatting w/sonOfRa that someone would show us a cleaner way ; ) Nov 05 04:48:16 which ID am i going to use? I mean, I can setup an onclicklistener on the extend-view Nov 05 04:48:17 but either I'm missing something... or this isn't it? Nov 05 04:48:19 sorry what was the original question? Nov 05 04:48:21 but it will not register Nov 05 04:48:26 hehe Nov 05 04:48:34 i was cooking ;? Nov 05 04:49:01 he wants to process clicks differently depending on where in the item a user clicks (which subview) Nov 05 04:49:25 "where" is like an image map in html or refers to child views of the row? Nov 05 04:49:46 child views of the row Nov 05 04:50:32 then use an itemclicklistener on the listview, in the onitemclick pass the view to a clicklistener which listens for the child views. use the id to map which child view is refering to what data ? Nov 05 04:50:54 Does the itemClickListener tell me which child view I clicked? Nov 05 04:51:03 that's what I've been trying to figure out the whole time Nov 05 04:51:06 no Nov 05 04:51:11 it only gives you the row Nov 05 04:51:17 but it gives you the view parent of the row Nov 05 04:51:22 which you can use findbyid on Nov 05 04:51:31 and then pass that childview you found to a click listener? Nov 05 04:51:44 I think your lost dude Nov 05 04:51:57 no i am not lost i just have not tried it Nov 05 04:52:19 I'm in the middle of assisting him, and I don't think you are helping the situation Nov 05 04:52:26 alright then give me a sec Nov 05 04:52:41 is this a cursor adapter or a base extended adatper? Nov 05 04:52:46 lasserix, I'm all ears for a better solution, I agree my approach is not ideal Nov 05 04:53:01 he's using an ArrayAdapter Nov 05 04:53:05 ok Nov 05 04:53:11 one sec let me see if i can get it to work Nov 05 04:54:40 sonOfRa, anway... you can either use 2 different OnClickListeners (inner classes), or you can assign both of your subviews the same OnClickListener and check the id's of the view passed Nov 05 04:55:21 since these are attached to your subviews, the view passed to onClick will be your subview Nov 05 04:55:45 alternately you could use anonymous implementations, but that seems distasteful as far as overhead *shrug* Nov 05 04:57:49 set your tags in getView (on the subViews), retrieve them in your OnClickListenr(s) Nov 05 04:58:41 I'll go ahead and try it, one moment Nov 05 05:02:50 Hmm anyone know what is M_PI? Nov 05 05:02:54 porting from ios Nov 05 05:04:24 3.14159... Nov 05 05:06:14 I'll have to try this after sleeping, it's fucking 6am already and i didn't even notice. Thanks for the help! Nov 05 05:06:29 g/l Nov 05 05:17:46 Hey guys, why does the emulator often end up unsuable when I start using memory, and switching out/back to (Home button) or destroying (Back button) my app Nov 05 05:18:02 If my app doesn't go all out on memory usage... there's no problem Nov 05 05:18:18 but when I start using memory, it seems as though it kept using more and more memory... Nov 05 05:18:30 But I've just run an in depth check for memory leaks and there are none Nov 05 05:23:48 yeh canadiancow, it was just pi cheers Nov 05 06:10:09 i set my layout height and text size in dp, however on one phone i can fit 7 lines of text into the layout, and on another i can only fit 4. what's the issue? Nov 05 06:24:55 know of any good tutorials about running things on other threads? Nov 05 06:25:13 my app is working right now, only because of a StrictMode hack Nov 05 06:25:30 I am unfortunately unfamiliar with threads Nov 05 06:25:37 new Thread(new Runnable() { public void run() { /* do your stuff here */ } }).start() Nov 05 06:27:09 so what the heck is going on there? are you creating a subclass of Runnable? Nov 05 06:27:25 no, an instance of Runnable Nov 05 06:27:43 and so why the brackets and the overridden method? Nov 05 06:28:40 ok Runnable is an interface Nov 05 06:28:58 can I do something like that with any interface? Nov 05 06:29:04 yes... Nov 05 06:30:28 that's called anonymous inner class Nov 05 06:30:50 http://stackoverflow.com/questions/355167/how-are-anonymous-inner-classes-used-in-java Nov 05 06:34:36 just like OnClickListeners! Nov 05 06:34:39 and such things Nov 05 06:51:31 <_yakubMobileDev> hello every one... Nov 05 06:52:10 <_yakubMobileDev> need help in binding the default music player of my sony ericsson phoen with my application Nov 05 06:52:43 <_yakubMobileDev> how to use aidl file in my app Nov 05 06:53:43 <_yakubMobileDev> the default MeidaPlaybackService is different from another android phones Nov 05 06:55:30 <_yakubMobileDev> any one there to help please... Nov 05 06:55:34 <_yakubMobileDev> i got stuck here Nov 05 07:08:55 Hey guys. Any quick way to get a 'relatively' unique identifier for each device? Meaning... if it comes down to it, I'd like to be able to forbid that device from using one of these forms on the app... Doesn't have to be perfect, but I'd rather not have user registrations on it. It'd be a waste. Nov 05 07:09:55 pierpark: have you read the android-developers blog post about identifying users? Nov 05 07:10:39 Leeds: hey again. been a minute :) I sure haven't. Do you have a link handy? Nov 05 07:11:40 I've seen a couple of things on the web about a week ago, but nobody seemed too confident. What I was gathering was that there was a .. way .. but that it might change, etc. Nov 05 07:14:18 http://android-developers.blogspot.hk/2011/03/identifying-app-installations.html Nov 05 07:15:51 Thanks I appreciate it! Nov 05 07:16:43 Isn't there a bot laying around here that serves up these URLs? I could always write one here in a few weeks since I have a server here that is underworked and lazy. Nov 05 07:17:30 so if I want to build a faux actionbar without using abs, I should probably just set the theme to NoActionBar and use an directive at the top of each of my layouts, you think? Nov 05 07:17:45 and just stick a button and an imageview in there... Nov 05 07:18:12 there are (officially) no bots here, and they're not particularly welcome - although you might have to ask someone else why Nov 05 07:19:51 I could see how they might get annoying real fast. Nov 05 07:28:44 Anyone know a good icon for catagory / subject? Nov 05 07:29:00 tdignan: yeah that's the way Nov 05 07:32:24 hi there! anyone has experience with SensorSimulatorSettings? Nov 05 07:44:46 tophyr: you there ? Nov 05 07:45:31 sure am Nov 05 07:46:02 tophyr: you race bikes, right? just want to make sure i got the right person :) Nov 05 07:46:14 haha, yup, that's me Nov 05 07:46:40 cool:) saw this , you might find it interesting http://www.gizmag.com/ant-west-motorcycle-app-story/24844/ Nov 05 07:47:46 hah, slick! Nov 05 07:47:54 west has always been a pretty smart kid Nov 05 07:48:14 :) Nov 05 07:49:30 interesting, he did ios, android, and wp Nov 05 07:49:37 were you the guy working on a similar race/track app? i remember meeting someone here who's doing that Nov 05 07:49:57 tophyr: no, i remember you had that discussion though :) thats why i remembered this story Nov 05 07:50:06 which i just saw today Nov 05 07:50:19 yeah, why not.. if you're gonna launch something like that, gotta go for all three Nov 05 07:50:31 racers are very brand-agnostic, going with whatever's the best available Nov 05 07:50:36 for their needs Nov 05 07:50:43 seems practical Nov 05 07:51:35 pretty cool :) can't wait to try it out Nov 05 07:52:08 there's already an established app out there that does this but its UI isn't the slickest.. and it doesn't have a GP rider associated with it, heh Nov 05 08:27:30 how can i invoke gallery app using command line using commandline "am" command Nov 05 08:45:00 rsv: are you looking to just start the Gallery app? or start it to view a specific image? Nov 05 08:45:15 tophyr: i want to play a video Nov 05 08:45:29 when i open the gallery app, i get a blank screen Nov 05 08:45:35 i get a View ALbums Nov 05 08:45:42 with any albums Nov 05 08:46:03 am start -i android.intent.action.VIEW -d Nov 05 08:46:38 your video uri will likely need to be a file:// or other local content uri... doubt it'll work with anything on the web Nov 05 08:52:05 Also I suspect galleries are manufacturer specific - I'm seeing com.htc.album when flipping through mine. Nov 05 08:52:12 That intent seems your best bet, yeah. You can also use "-t" param to hint a MIME type. Nov 05 08:52:48 only reason I say is, because it just tried to open a jpeg as a pdf on my device :/ Nov 05 08:59:19 <_yakubMobileDev> need help in binding the default music player of my sony ericsson phoen with my application Nov 05 09:00:00 <_yakubMobileDev> please let me know hot use aidl file in my app to access the music player in my app Nov 05 09:04:48 _yakubMobileDev: http://developer.android.com/guide/components/aidl.html Nov 05 09:07:13 <_yakubMobileDev> getting exception while running while installing app from eclipse Nov 05 09:07:14 <_yakubMobileDev> com.android.ddmlib.SyncException: Permission denied Nov 05 09:08:09 hey guys, I'm wondering how to make a search dialog on top of my UI without action bar (sdk reasons)... the only way I see so far is using onSearchRequested()... which isn't giving me the result I was thinknig about.. Nov 05 09:08:56 when you're searching, what are you doing.. filtering a listview? Nov 05 09:09:06 hello Nov 05 09:09:10 no. it's for a map view Nov 05 09:09:17 showing the location that was searched Nov 05 09:09:24 is there a gcc to compile .c file for android ?? Nov 05 09:09:36 sasson: what more do you need than an EditText? Nov 05 09:09:46 what about running .c file on android tablet? Nov 05 09:09:55 from the perspective of what the UI actually needs to do. Nov 05 09:10:24 toni_: looked at using the NDK? Nov 05 09:10:55 you've got to wonder about people who are programming in C but can't find the NDK docs Nov 05 09:11:16 i'd have to assume this isn't a programming question. more like "i found the file how do I run it" Nov 05 09:12:19 tdignan, I wanted the search dialog to be able to do a voice search Nov 05 09:13:07 I mean Nov 05 09:13:22 if I want to run in the terminal of a tablet Nov 05 09:13:31 a program that says: hello Nov 05 09:13:45 is there a compiler on the tablet? Nov 05 09:13:55 is it possibile to install directly on the tablet? Nov 05 09:14:09 toni_: not really Nov 05 09:14:17 or file file have to be compiled on the computer? Nov 05 09:15:53 toni_: why not write a proper android app instead? Nov 05 09:16:42 sasson: oh, I se Nov 05 09:17:06 sasson: well there's a searchview backport written by inazaruk for actionbar sherlock Nov 05 09:17:12 I think it might do audio but I don't recall Nov 05 09:17:20 I wanted to reuse my c code Nov 05 09:17:36 toni_: then use the NDK Nov 05 09:18:50 toni_: http://rwiki.sciviews.org/doku.php?id=getting-started:installation:android Nov 05 09:19:07 i googled 'cross compile gcc for android' Nov 05 09:19:13 he has made gcc binaries for android Nov 05 09:19:22 look closely at his tutorial for installing R and you will see them Nov 05 09:19:42 really, the binaries are for arm Nov 05 09:19:47 but I think you get the idea. Nov 05 09:35:45 If I include a database in an app, where should I place this file and is it then possible to just use PathToDatabase = "kamstrup.db3"; as the path? Nov 05 09:36:30 if its an sqlite database it automatically stores it in a default location for the app Nov 05 09:37:18 and where is that default location, I am using Mono for andorid so might be so default for me :/ Nov 05 09:37:25 and I created the databse myself Nov 05 09:37:38 i dont know about mono Nov 05 09:37:46 ahh you mean where to store it in your project files Nov 05 09:37:55 sorry dont know about that Nov 05 09:39:12 interesting that fragments that include onClick="..." attributes in their layout xml, expect that function to be declared in the owning activity Nov 05 09:39:22 t-rubble Nov 05 09:45:16 thats horrid Nov 05 09:46:00 onClick= is abhorrent Nov 05 09:49:31 "/data/data/YOUR_PACKAGE/databases/"; what would YOUR_PACKAGE be? is that the application name or? Nov 05 09:50:18 your namespace, com.whatever.whatever Nov 05 09:50:33 Mech0z: http://developer.android.com/guide/topics/manifest/manifest-element.html#package Nov 05 09:59:04 Hi Nov 05 10:00:20 I am creating a tab on an actionba. And I use setContentView to load a LayoutXML on it. But I would like to know to which class, the onClick defined on the XML are pointing ? Cause they don't point to the activity Nov 05 10:14:00 Heya folks - one quick question regarding the SQLiteQueryBuilder - I am building up a query via appendWhere, and it's fine, except there's an extra line added that shouldn't be there, and it causes an exception Nov 05 10:14:04 code: Nov 05 10:16:17 http://pastebin.com/6hFPG7fZ Nov 05 10:16:53 the last AND just pops up there without any reason whatsoever Nov 05 10:21:01 Tee_Pee: explained in the docs http://developer.android.com/reference/android/database/sqlite/SQLiteQueryBuilder.html#appendWhere(java.lang.CharSequence) Nov 05 10:21:23 Tee_Pee: the stuff after the last AND is the query selection parameter Nov 05 10:23:16 hmm, ViewPager does not like to be only part of a layout Nov 05 10:23:27 I see... so how do I prevent it from crashing at that point, if the selection parameter is an unescaped string? Nov 05 10:24:03 Do I need to root my device to make Android send the title of a song to my handsfree (device with a LCD screen, media buttons and volume control) LCD screen? I'm not sure why Android is capable to send the caller_id string but not the song title string. Nov 05 10:24:25 titi: they do point to the activity.. i actually just went through that. what are you seeing? Nov 05 10:24:54 Syaoran-kun: that has more to do with the music app you're using, than android Nov 05 10:25:09 android is perfectly capable of doing that on a non-root device.. just need an app that's capable Nov 05 10:25:25 I want to configure via the XML the onClick of the button contained on the layout Nov 05 10:25:40 but when I do it, I have a NoSuchMethodError Nov 05 10:26:15 public void onProfilAgendaClick(View v) Nov 05 10:26:30 the method must be public Nov 05 10:26:53 I put this method on my Activity, but when I load the layout of the tab with tab.setCustomView(id) Nov 05 10:26:54 Tee_Pee: escape the string Nov 05 10:27:03 He doesn't link to the activity Nov 05 10:27:25 and Tab is Nov 05 10:27:31 final ActionBar.Tab tab = getSupportActionBar().newTab(); Nov 05 10:27:49 should that be onProfileAgendaClick or onProfileAgendaClick? possibly misspelled the method name? Nov 05 10:28:05 crap, i misspelled the misspelling Nov 05 10:28:14 Profil in the one you pasted Nov 05 10:28:50 android:onClick="onProfilAgendaClick" Nov 05 10:29:25 no it look like the same :( Nov 05 10:30:02 the error it throws in logcat will tell you which class it's looking at for the method to be defined in Nov 05 10:30:32 appel1 - yeah, that seems like the obvious solution, but if the title is "My Title With Spaces" and it compares it against an escaped version of that title, it won't match, will it? Nov 05 10:30:58 11-05 01:44:58.302: E/AndroidRuntime(952): java.lang.IllegalStateException: Could not find a method hideKeyboard(View) in the activity class com.tophyr.LoginActivity for onClick handler on view class android.widget.LinearLayout Nov 05 10:31:00 etc Nov 05 10:31:13 titi - in the activity that inflates the layout, you got to have a PUBLIC method myMethod(View v). It has to take the view as the only parameter. Nov 05 10:31:32 Tee_Pee: it should. You could also look into using parameterized queries. Nov 05 10:34:05 java.lang.IllegalStateException: Could not find a method onProfilAgendaClick(View) in the activity class android.view.ContextThemeWrapper for onClick handler on view class android.widget.TextView with id 'pouet' Nov 05 10:34:40 ContextThemeWrapper, eh Nov 05 10:34:52 that's an interesting one Nov 05 10:35:25 betting that it's trying to look for the method on the tab object it's creating behind the scenes. do yourself a favor and just abandon the onClick="..." pattern instead Nov 05 10:35:29 set the onclick handlers via code Nov 05 10:35:48 yes, It was I am starting to do Nov 05 10:36:01 thank you for the time and the help Nov 05 10:37:27 appel1 - escaping string for SQL only involves escaping special characters, but my case doesn't have any of those... guess I'll have to look into an alternative way to do the query? Nov 05 10:38:11 Tee_Pee: so you have " characters in the title string? Nov 05 10:38:21 no Nov 05 10:38:30 the string is just a name with letters and spaces. Nov 05 10:38:55 SELECT _id, pycsell_id FROM albums_and_images WHERE (type=1 AND title=Pycsell Mobile Uploads) AND (Pycsell Mobile Uploads) <----That's my final SQL statement. Nov 05 10:39:07 and it says that there's an exception near "Mobile" Nov 05 10:39:39 Tee_Pee: that query makes no sense, you can't just have the text as selection Nov 05 10:39:54 tophyr: how can I do an app that only send a string to the handsfree? Nov 05 10:39:58 Tee_Pee: you need something like title='Pycsell Mobile Uploads' Nov 05 10:40:17 Syaoran-kun: http://d.android.com/ Nov 05 10:40:52 appel1 - I know it doesn't make sense, the last AND statement I never added myself. Nov 05 10:41:09 tophyr: something more specific? The class name, some sample code? Nov 05 10:41:14 Tee_Pee: you did, the selection parameter to the query method Nov 05 10:42:03 Syaoran-kun: that's up to you to write Nov 05 10:42:54 do it well, and you can probably sell it and make some money. if one person wants it, odds are somebody else does too Nov 05 10:43:24 Tee_Pee: what you want to do is have the selection be something like "title = ?" and then use selectionArgs to specify the selection arguments. in your case the "Pycsell Mobile Uploads" string Nov 05 10:43:30 Actually no one even know how Android do that. Nov 05 10:43:44 I did my reseach. Nov 05 10:44:42 Tee_Pee: that way any required escaping is handled for you Nov 05 10:45:39 Syaoran-kun: there's a very, very large difference between "no one 'knows how to do' that" and "no one 'has done' that". since no one has done it, opportunity is a-knocking at your door Nov 05 10:49:29 sigh. why is there no android.widget.Switch in the compat library? Nov 05 10:49:45 appel1 - yeah, I figured it out, thanks. Nov 05 10:50:28 Ge0rG: when i watched the io 2012 presentation on multiversion UIs; its seemed like you use one thing for early android and switches for later versions Nov 05 10:50:46 they seem like a ui fail anyhow Nov 05 10:51:32 g00s: but they are so iphoney! Nov 05 10:51:38 hi Nov 05 10:51:47 $app is full of ui fail anyway.... as the customer commanded Nov 05 10:52:11 i hate customers that think they know about ui design Nov 05 10:52:14 i am developing an app for tablet running 4.0.4 and i have two problems Nov 05 10:53:07 hmm, apparently doesn't pay attention to android:visibility="gone" Nov 05 10:53:16 is it possible to have the app completly fullscreen (no botton bar) and and do i enable (from the app or kernel var, or what ever) the soft keyboard even when a physical one is connected Nov 05 10:54:16 g00s: its not as bad as customers who think they can code better than you Nov 05 10:54:42 mndo: fullscreen is possible, but the bottom bar will be shown automatically as soon as the screen is touched.. the youtube app works like that for example Nov 05 10:54:48 Ge0rG: havan;t had any of those; but it seems like everyone is an expert on UIs Nov 05 10:54:48 "do it this [insanely stupid] way [involving copy&pasting 400 LoC four times] because I am the customer and I pay you" Nov 05 10:54:54 which still isn't as bad as customers who *can* code better than you ;) Nov 05 10:55:49 appel1, yes, i know that but recently i found a video app that uses all the screen, so there's should be a way to do it Nov 05 10:56:11 mndo: all the screen? Nov 05 10:56:12 Hello, I would like to have a plugin / addon system for my app. Is there any documentation on how to proceed? Nov 05 10:56:25 yes Nov 05 10:57:33 mndo: you mean it wont show the navigation controls even when the screen is touched? Nov 05 10:57:34 appel1, it's an app that came with one of our test tablets (bq edison) is just called video Nov 05 10:58:14 appel1, when i touch the screen the app shows the video controls over the buttonbar Nov 05 10:58:22 *botton bar Nov 05 10:58:38 mndo: so it's a system app, then I guess it can do anything it wants Nov 05 11:00:18 appel1, so if i install my app as a system app it should be possible to hide it? (i already have code to hide the controls on the botton bar) Nov 05 11:01:04 mndo: if you can change the system you can do anything you want, but that is afaik OT for this channel Nov 05 11:02:42 appel1, thank you very much.. Nov 05 11:03:11 appel1, and what about enabling the soft keyboard? do you have any idea how? Nov 05 11:06:44 mndo: don't know how to force it open, but the user can choose to turn the physical keyboard off if they want to Nov 05 11:12:50 mndo: you want to show the soft keyboard forcibly? Nov 05 11:13:23 In one of my apps, I do that with the technique described here http://stackoverflow.com/questions/5105354/how-to-show-soft-keyboard-when-edittext-is-focused Nov 05 11:13:31 you might say "that's the default" from looking at the link slug Nov 05 11:13:41 but this is an edge case, so before you balk at it please read the thread. Nov 05 11:14:22 the technique that I use is the one Mike Keskinov posted. Nov 05 11:19:29 tdignan, i want the soft keyboard to appear when it should (when a physical keyboard is inserted it's always hidden) Nov 05 11:20:20 pressing the keyboard button on the button and choosing disable physical keyboard it's not an option Nov 05 11:29:54 oh, I missed the part about the physical keyboard Nov 05 11:47:03 my connection dropped, where can i see the channel logs? Nov 05 12:02:06 mndo: all you missed was "tdignan: oh, I missed the part about the physical keyboard" Nov 05 12:03:05 DysonReturns, thank you :) Nov 05 12:14:52 does anybody know what is the "chart library" used in Analytics (Google Analytics) for Android, if at least a library is used? Nov 05 12:19:31 meh. making zxing scan in portrait mode is... tough Nov 05 12:20:12 I have done it :) Nov 05 12:23:01 Warting: but it sucks. Nov 05 12:23:45 indeed, i made it work in a fragment… Nov 05 12:24:01 was not easy Nov 05 12:24:50 somebody should fork zxing and provide a clone-able version of the thing :> Nov 05 12:25:35 yea, that would be a good idea :) Nov 05 12:25:59 so when either of you guys do, link me :P Nov 05 12:27:31 I just need to clone myself Nov 05 12:28:06 Warting.clone(); Nov 05 12:28:07 :D Nov 05 12:28:13 lol :) Nov 05 12:28:47 Hi pretty new to Android / Java is there something i need to think about when sending an variable to another class which is an AsyncTask ? Nov 05 12:28:58 meh :P Nov 05 12:33:26 fatpudding: consider using global variables in application context, storing in shared preferences or send variables with the intent Nov 05 12:34:12 it depends on what you want to do Nov 05 12:35:53 Sending an Location var, and in the Asynctask i want to extract the data loc.getAlltiude() ec. But it failes Nov 05 13:00:27 Is there a way to access the subViews inside the row of a ListView inside of the activity that the ListView is created in? Nov 05 13:03:37 sonOfRa, yes by iterating the views, but I don't know how exactly, isInstanceOf might be useful in this loop too Nov 05 13:03:37 then what is better, using XML or Json? ;) Nov 05 13:04:08 sonOfRa, but this is not efficient for sure Nov 05 13:04:49 The problem is that I have several clickable Items in the rows, and I need to access them in the activity, and would like to set the listeners there, instead of in the adapter. Nov 05 13:05:09 If I set the Listeners inside of the Adapter, I have no way of passing the Tags inside the views through to the activity Nov 05 13:05:59 I basically do a for loop over the adapters size and get th views in there? Nov 05 13:13:47 Shouldn't this supply me with the View that holds the 0th item in the ListView? RelativeLayout rowView = (RelativeLayout) listView.getChildAt(0); Nov 05 13:13:53 sonOfRa, maybe another way possible without iterating all the child views is to override getView of your (custom)adapter Nov 05 13:14:14 inside, you should have access to the views and be able to passing tags Nov 05 13:14:32 i have a custom adapter with a getView, however setting the OnClickListeners there gives me the problem of not being able to pass the tags to the activity holding the listview Nov 05 13:14:42 ah :/ Nov 05 13:14:46 That is why I want to access the views outside of the adapter Nov 05 13:15:06 let's wait other answer, my knowledge stopped here :) Nov 05 13:15:21 How would you iterate through the Views? Nov 05 13:15:27 that's what I don't quite get atm Nov 05 13:16:21 viewgroup.getChildAt + viewgroup.getChildCount() Nov 05 13:16:43 it should allow you to retrieve any view(group) inside a viewgroup Nov 05 13:17:42 but you do that on the listview itself (it's a viewgroup), not on the adapter i think Nov 05 13:17:58 problem is I don't know if it will give you only the visible child, or all the child Nov 05 13:18:08 s/child/childs/g Nov 05 13:20:56 Warting, maxlamer: http://op-co.de/tmp/0001-make-zxing-work-in-portrait.patch Nov 05 13:21:25 cool :) Nov 05 13:21:26 not quite perfect - the visible frame does not match :( Nov 05 13:21:38 if you can spot the offset.... Nov 05 13:22:44 doesn't seem to work. seems like I have to set the listeners inside of the adapter after all Nov 05 13:22:46 shit. Nov 05 13:38:42 Ge0rG thanks :) Nov 05 13:39:57 hi there! how can i integrate an action based on Google APIs 4.1 (maps) into an Android 4.1 application? I realize I can't have checked the two platofrm targets in the Eclipse project settings Nov 05 13:41:16 maxlamer: its broken in some aspects, though... I will make an update Nov 05 13:41:28 e.g. it is using the lowest camera resolution Nov 05 13:44:57 cant get gridlayout_v7 stuff to work in eclipse, its just spewing errors Nov 05 13:52:45 The norm for creating a settings menu is via a listview, correct? Nov 05 13:56:12 Tee_Pee is PreferenceActivity what your looking for ? Nov 05 13:56:49 that is definitely more appropriate Nov 05 13:56:50 thanks Nov 05 13:58:19 hi all Nov 05 13:58:47 I'm writing up a quick guide for how to set up a dev environment under the new Ubuntu release Nov 05 13:59:00 if anyone would be willing to review it for accuracy and clarity, let me know. Nov 05 14:00:32 lanken: there are differences? :S Nov 05 14:01:06 vydd: not really, it's just that the latest guides are nearly a year old Nov 05 14:03:04 oh. alright. Nov 05 14:03:59 Leeds: hai Nov 05 14:05:50 is it still possible to install a Sun Java6 JDK via "apt-get install sun-java6-jdk"? Nov 05 14:06:02 vydd: ^ I think this part may have changed. Nov 05 14:06:43 if it is, it will be an older version Nov 05 14:07:35 maybe. I ditched Ubuntu around a month ago because everything broke after an update...and I don't have the time to fix those things anymore Nov 05 14:09:17 lanken: I'm not sure if it was in the previous guide, but please include something like http://pastebin.com/BKh6A67K ... I remember googling for that when I was starting Nov 05 14:09:58 oh. and android.rules Nov 05 14:11:08 I'm implementing OAuth in the app I'm working on. If the user needs to registered, he will be sent an email to confirm his registration. When clicking the link in the email the app will be opened by catching by doing android:scheme filtering. The problem is: if I try to open the browser again, it will open the app, and not open a website. Is it possible to resolve this in any way? Nov 05 14:13:25 vydd: "android.rules"? Nov 05 14:14:39 lanken: I had to add udev rule in order to get my phone recognized Nov 05 14:14:48 [vydd@liquidsky ~]$ cat /etc/udev/rules.d/51-android.rules Nov 05 14:14:48 SUBSYSTEMS=="usb", SYSFS{idVendor}=="0bb4", MODE=="0666" Nov 05 14:15:04 vydd: aha. I haven't gotten to the point of linking my phone yet. Nov 05 14:15:52 I don't know if everyone had to do that, but it seems to be pretty common Nov 05 14:16:04 i didn't have to add those rules, but i have to run "adb start-server" as root or it wont connect to my tablet, but my phone works fine without it Nov 05 14:16:56 Hey in android, is it possible for me to make an XML file that's got data in it (let's just say a collection of map coordinates) that I can just say in my code "Hey, open this file, and just loop over the data" ? Nov 05 14:18:58 fakingfantastic: yes, put it in /assets Nov 05 14:22:12 you'll need to use your own XML Pull Parser Nov 05 14:22:58 ohai lov Nov 05 14:23:34 i got my continuous speech listener background service working - using nothing but android apis! Nov 05 14:23:43 yes, continuous Nov 05 14:23:50 congratulations, how's that working out Nov 05 14:23:57 loke: thanks man Nov 05 14:24:06 little by little coming along nicely Nov 05 14:24:50 fakingfantastic: for what? :-) Nov 05 14:24:50 Hey. I'm trying to convert my working Activity into Asyntask (Twitter OAuth) since it was using network on main thread. I'm not even sure I should be using Asynctask for this. I ran into trouble on line 37 while creating a WebView. http://pastebin.com/rBB4hNXS Nov 05 14:25:29 o_O Nov 05 14:25:35 what are you I don't even Nov 05 14:25:55 fakingfantastic: I think you intended to talk to lov Nov 05 14:26:12 loke: i did, sorry Nov 05 14:26:16 lov: thanks lol Nov 05 14:26:24 damn tab-complete Nov 05 14:26:31 freannrak: I think that you should put this back into your activity, and have an OAuth activity that just does OAuth for twitter Nov 05 14:26:59 You can have your asynctask handle your twitter factory part or whatever Nov 05 14:28:11 yeah, I'm going to try just that Nov 05 14:34:51 hiya all Nov 05 14:35:16 my sdk package wont work because the support library isnt woking, what to do? Nov 05 14:35:36 when i install an app that's nothing but a Service with RECEIVE_BOOT_COMPLETED to start it, will it begin running right after installation? or is reboot required Nov 05 14:36:39 regedit: reboot is required Nov 05 14:36:51 ok thanks Nov 05 14:37:17 regedit, Mavrik: what about the protections to do with an app being in the stopped state to begin with? Nov 05 14:37:33 i thought you had to manualy run an app once before those events worked? Nov 05 14:40:19 clever: I'm not sure what do you mean by protections Nov 05 14:40:50 * regedit leaves the mic for Mavrik Nov 05 14:41:05 Mavrik: i heard that if you do a force stop (or a fresh install), then the app is unable to recieve broadcasts Nov 05 14:41:17 and it only becomes 'unlocked' after you manualy run it Nov 05 14:41:34 clever: yeah, that's quite possible Nov 05 14:41:46 I can't confirm this on new androids though :) Nov 05 14:42:36 Mavrik: i think its working on my galaxy S3 Nov 05 14:42:47 i was testing a GCM app there, and then gave it back to dad, and it started to spam him :P Nov 05 14:42:53 he did force stop and stopped complaining Nov 05 14:43:15 clever: I believe that this is the case. An activity for the application needs to be launched before any services, receivers, etc can be used. Nov 05 14:43:36 lov: so regedit's idea of a app with only a service will? Nov 05 14:43:39 Additionally, when the user presses force stop in settings -> applications -> app, the app reenters this state and needs to have an activity started again Nov 05 14:43:42 yeah Nov 05 14:43:56 I'm not really sure if there's any allowance for apps w/o an activity but I would assume that they'd be problematic. Nov 05 14:44:01 lov: or if it's only a service being installed (triggered by boot completed), just a reboot is enough? Nov 05 14:44:20 orly Nov 05 14:44:25 hm Nov 05 14:44:27 again, I'm pretty sure you need to explicitly trigger an activity of some kind Nov 05 14:44:44 though your activity could be a dialog that says "Thanks for installing, you don't need to do anything else now!" Nov 05 14:44:56 lov: i guess that system apps are an exception? Nov 05 14:45:07 maxlamer, Warting: http://op-co.de/tmp/0001-Make-zxing-work-in-portrait-mode.patch (new version!) Nov 05 14:45:24 i feel bad for the launcher icon clogging up the user's device.. Nov 05 14:45:26 I would assume that they're not. Nov 05 14:45:34 stuff like system_service otoh obviously you can't kill Nov 05 14:46:05 lov: anything to do about the useless launcher icon? Nov 05 14:46:16 lov: was just thinking about things like google service framework and such, having to be put in /system/apps/ i think Nov 05 14:47:57 regedit: not unless you don't want the user to be able to easily launch the app. Nov 05 14:48:09 lov: what if it's a service that has some Settings to go with it, would that be enough of an Activity to drive the service? i.e. say a Settings entry that has a on/off switch which starts the service Nov 05 14:48:13 clever: I honestly do not know how this works for system services. Nov 05 14:48:14 lov: do you have any links with more info on that protection setup? Nov 05 14:49:28 clever: I don't, sorry. Nov 05 14:49:34 regedit: any activity. Nov 05 14:50:03 lov: so you're saying that a combination of Service + Settings is enough, not necessitating an actual launchable Activity? Nov 05 14:50:56 frankly i think a service with a settings entry to drive it makes a lot of sense. silly if this weren't allowed by the os Nov 05 14:51:12 Wait. What do you mean by "Settings entry". Nov 05 14:51:23 Do you mean something that appears in the Settings app? Nov 05 14:51:36 control panel thingy, preferences Nov 05 14:51:36 I'm assuming that if the settings app can point to an activity it's sufficient to call that activity Nov 05 14:51:39 look Nov 05 14:51:44 ok Nov 05 14:51:49 so you mean your own PreferencesActivity? Nov 05 14:51:54 because that's an Activity Nov 05 14:52:04 anyway this is all half-remembered stuff from when ICS came out Nov 05 14:52:17 is it necessarily a launchable activity with an icon clogging up the user's device? Nov 05 14:52:20 docs say it is extending Activity http://developer.android.com/reference/android/preference/PreferenceActivity.html Nov 05 14:52:40 09:49:40 < lov> regedit: any activity. Nov 05 14:53:03 right, so it's a "behind the scenes" activity Nov 05 14:53:28 doesn't have to be launched by user from app screen or wtvr Nov 05 14:53:39 right. Nov 05 14:53:45 but it does need to be launched. Nov 05 14:53:46 ok cool Nov 05 14:54:02 i.e. triggered from the preferenceactivity Nov 05 15:12:53 any difference between doing stuff 1) in a service's constructor, or 2) in a service's onCreate() ? Nov 05 15:15:02 regedit: Do it in the onCreate(). Constructor errors are more troublesome to debug because they trigger strangely. Nov 05 15:15:23 ok thanks Nov 05 15:17:23 regedit: ive also noticed that sometimes, the Context of the service is invalid in the constructor Nov 05 15:17:36 interesting Nov 05 15:17:37 the setup for that isnt finished until later Nov 05 15:17:52 i see Nov 05 15:17:55 Hello, I'm having trouble screen scraping my own app. I've got the basic screen scraping working, actually, but when the keyboard or dialog is shown, they are not being grabbed. Is there a solution to this? Nov 05 15:18:16 wraithguard01: Keyboard isn't part of your process. This is by design. Nov 05 15:18:33 Ok, so this is not possible then? Nov 05 15:18:51 wraithguard01: For keyboard? No. For dialog? Should be, depends on how you're doing it. Nov 05 15:19:05 the eclipse wizard for generating an Android Service makes a constructor. maybe it shouldn't Nov 05 15:19:37 Right now, I'm using activity.getWindow().getDecorView().findViewById(android.R.id.content) to get the root view, then getting the drawing cache. Nov 05 15:22:08 How does SharedPreferences handle mutli-threaded synchronization? Nov 05 15:22:17 How would I go about getting the dialog? Nov 05 15:22:39 wraithguard01: Okay. Dialogs share a different root context, so you'd request the id of the dialog. Dunno what that is off of the top of my head. Nov 05 15:32:35 hey is the xml editor buggy for everyone? Nov 05 15:32:56 profligacy: that's ... not a very helpful question Nov 05 15:33:08 what bugs are you seeing? Which XML editor? Nov 05 15:33:42 anroid xml text editor..as i edit text lines of code disappear and reappear, its really unusual Nov 05 15:34:13 sounds like eclipse is having trouble. Try restarting eclipse? Nov 05 15:34:36 it's been doing this for as long as i know Nov 05 15:34:45 i have indigo Nov 05 15:44:01 Hello. I have a view that calls a DialogFragment. How do I put a reference to that view into a Bundle that I can retrieve with GetArguments()? I need it so that I can make a callback with the dialogs results. Nov 05 15:54:13 hello all Nov 05 15:54:34 how to get GMT offset? Nov 05 15:58:04 bingels: I knew this but I forget :-) Let me see if I can find it again Nov 05 16:02:36 Is there anyone in here who knows about how to take off test mode in google Admob? I got things rendering perfectly on emulators, however as soon as I run into my phone it tells me to add it to the device testing list. I do just that and it keeps telling me to add it to the device testing list. At this point I just want to disable test mode. I have tried all the common methods IE: erasing all traces of "Test Code" and flipping the switch in the admob Nov 05 16:02:36 site. Nov 05 16:03:34 bingels: ok got it. java.util.timezone has an getOffset() method and you pass it the current time to get the current offset (which accounts for things like daylight savings time.) Nov 05 16:03:44 hi... I have a question about user votes @ Google Play. What's the model? Do they cast only one vote? Or one vote per version? Nov 05 16:08:37 user votes? Nov 05 16:09:45 jaldhar yes thanks i found this too Nov 05 16:11:48 muszek: one vote per device, pretty much. Nov 05 16:12:08 (though it is editable, if the user changes his mind, for instance because the app became better after an update) Nov 05 16:12:42 TheTrash: thank you Nov 05 16:22:03 One question, how to avoid INSTALL_FAILED_MEDIA_UNAVAILABLE? I have removed the application from the simulator but sometimes happened and i need to delete and create again the vm. Nov 05 16:22:21 It happens in Eclipse when i deploy again the app. Nov 05 16:22:54 asanchez: Looks like eclipse doesn't wait for the (un)install to complete before deleting the APK. Nov 05 16:23:14 I'd like to use ffmpeg in my project. There're so many tutorials online for different ndk&ffmpeg versions, that I'm afraid I'll choose an obsolete compilation method...so...where do I start? Nov 05 16:23:39 any hint what that means? Sending finished signal for input channel 'a08255c0 PopupWindow:a06fb308 (client)' since it is being unregistered while an input message is still in progress. Nov 05 16:23:54 i create a popup Nov 05 16:23:54 kamoricks, I remove the application in the simulator and try to deploy again in Eclipse, but i get the same message. Nov 05 16:24:38 asanchez: Still guessing the same thing. Nov 05 16:25:31 kamoricks, and any solution? ;-) Nov 05 16:26:21 asanchez: Does installing the app through ADB work? Nov 05 16:30:18 kamoricks, now it works with a project clean and deployed again. Very odd. Thanks. Nov 05 16:31:06 vydd: First issue: ffmpeg is a moving target. It doesn't always play nice with gcc, much less whatever compiler you're using. So if you find a combo that works, it'll probably do fine. NDK version should be the lastest, if ffmpeg compiles with it. Nov 05 16:32:22 I've made a little calculator tool. Which ad networks would you guys recommend for it? Nov 05 16:33:03 kamoricks: ok, thanks Nov 05 16:33:11 muszek, it depends what kind of network, but you can use admob. Nov 05 16:33:46 is it possible to emulate a SCO headset without rooting android? Nov 05 16:33:51 asanchez: I've heard admob doesn't pay particularly well Nov 05 16:34:17 asanchez: I want to stay on the unobtrusive side Nov 05 16:34:39 muszek, perhaps you can check adwhirl, it recommends from several networks (iirc) Nov 05 16:34:48 and it choices the best one Nov 05 16:35:11 other way you will need a premium ad network (but they pay worst ;-) Nov 05 16:38:32 asanchez: what does "premium" mean here? Nov 05 16:40:27 How to restrict a viewPager swipable to just one direction? Nov 05 16:43:15 * muszek is gone. thanks for your answers and have a nice day. Nov 05 16:49:49 Anyone know of a fix to the "cannot make static reference to the non-static..." error.... Trying to use this geocoder inside of a ... handler ... Geocoder geoCoder = new Geocoder(getApplicationContext(), Locale.getDefault()); Nov 05 16:50:08 and RadarActivity.this won't work.... neither will getBaseContext(), etc. Nov 05 16:50:27 pierpark: you need a Context parameter Nov 05 16:51:41 Does it go in here: private static Handler splashHandler = new Handler() {, or here: public void handleMessage(Message msg) { Nov 05 16:52:25 Ge0rG ^, sorry. I'm still asleep. Nov 05 16:53:38 Ge0rG: could I do something like "private static Context context;" at the top of the class, and then in OnCreate, say context = ... something; or is that the wrong approach? Nov 05 16:54:21 pierpark: wrong approach. you should not have a static handler at all Nov 05 16:54:29 pierpark: actually, you should not have static anything Nov 05 16:54:54 Ge0rG: really? hmm. I suck. Nov 05 16:55:45 Ge0rG: Maybe I should quit following the suggestion advice on eclipse. Nov 05 16:56:18 pierpark: yes. you should instead follow the advice on d.android.com Nov 05 16:57:01 Ge0rG: back to the drawing board. thanks. I ... will go read up again. I hate doing things the wrong way. Nov 05 16:57:15 pierpark: you've got the right attitude :) Nov 05 17:03:25 Ge0rG: Thanks. If you copy-paste your way through everything, you'll be doing it for life. I'd rather get good advice and learn the right way. Nov 05 17:03:27 Hi, I created a contentProvider, i want to wrap the provider with a helper class, which will contain a few simple methods such as CheckItemExists(String Item). My problem is getting the ContentProvider without using a context in the helper class. Nov 05 17:05:18 You can't Nov 05 17:05:49 SimonVT, Was it addressed to me? Nov 05 17:06:05 yes Nov 05 17:07:10 SimonVT, That means i need to use the ContentProvider Directly, how am I suppose to get the URI of my provider in the class requesting it? Nov 05 17:09:11 No, you need a context to use a contentprovider Nov 05 17:09:36 I can't pass a context using aidl, can I? Nov 05 17:12:02 I doubt it Nov 05 17:12:13 :\ Nov 05 17:13:18 Why can't you pass a context to your helper class? Nov 05 17:19:32 I can't using aidl, i guess context ins't parceble Nov 05 17:21:13 polomolo777: no, it is not Nov 05 17:29:46 Why does http://pastebin.com/tx1SGL41 not distribute the extra width amongst its components, like every single resource online says it will? Nov 05 17:30:10 It does, vertically Nov 05 17:31:00 Oh. Missed orientation="". Thanks. Nov 05 17:31:17 Question: How can I get my video recording Android app to have amazing FPS like the native camera app on Samsung Galaxy III. Even shooting at 640x480 doesn't get the FPS that their highest resolution does. How do I optimize my code to get amazing FPS? Nov 05 17:31:59 Spentak: afaik do it in C++ Nov 05 17:32:38 Spentak: you never know how how a specific vendor codes their apps - they can be highly nonstandard and optimized for a certain device Nov 05 17:32:58 On the native sIII camera at 1920x1080 I get 20+ FPS. On my app shooting at 640x480 I barely get 10 Nov 05 17:33:11 yeah copied that Nov 05 17:33:27 I am using FFMPEG Nov 05 17:38:39 I'm trying to download info from the network through a Handler, but it keeps me telling that the network operation is in the main thread Nov 05 17:38:48 may it be related to the HttpClient HttpGet classes? Nov 05 17:39:45 no Nov 05 17:39:53 Handler isn't a new thread Nov 05 17:40:32 wait, I may have not explained myself, I post a new thread object in the Handler through the post method Nov 05 17:40:43 should I create a new Thread object instead? Nov 05 17:41:27 Zuarko: please pastebin your code on pastebin.com Nov 05 17:41:36 (and send us the link) Nov 05 17:42:03 yes, it will be better, sorry :) I'm on it Nov 05 17:42:22 thanks! Nov 05 17:45:40 this is the function that throws the exception http://pastebin.com/mLC92Ngt Nov 05 17:47:22 http://pastebin.com/LgMQ00sr - i'm trying to turn the this code into an iterative variant. It's from a fling scrolling implementation, but changing it to while (...) post (new runnable(current code)) skips the intermediate moves, it only jumps to the end of the scroll after a while. Any ideas? Nov 05 17:48:04 i know it probably doesn't matter but it's been bothering me Nov 05 17:48:44 the network exception happens at the HttpResponse response = client.execute(httpGet); line Nov 05 17:51:38 Zuarko: correct, that's not how you do threading :) Nov 05 17:52:17 Zuarko: change mHandler.post(new Thread() { ... }); to new Thread() { ... }.start(); Nov 05 17:55:55 Hi, I'm having trouble with an TextEdit auto openning the KeyBoard when it's shown (it default state is hidden). This problem only occurs on Motorola Xoom. Anyone had this problem before? Nov 05 17:56:01 oh! ok! Thanks, now it throws the view changing exception bla bla, now I know what I'm doing :) Nov 05 18:01:46 Does MyAsyncTask.execute("foo").get() block? Nov 05 18:02:17 yes Nov 05 18:02:29 SimonVT: I thought so. :( Nov 05 18:02:32 SimonVT: Thanks. Nov 05 18:38:36 can Toasts only be made/shown in the originating app, or for example can a Service show a toast even if you're in some totally unrelated app? Nov 05 18:39:21 regedit: When a service is active, you are the currently running appliction on the main thread, and can show whatever. Nov 05 18:39:37 hm ok Nov 05 18:40:02 thanks Nov 05 18:41:32 Hi, newish to Android and trying to work with sqlite databases. Is it a good practice or a bad one to open and manipulate the same databse from different activities? Nov 05 18:42:24 I have a listing activity and a "add" activity, can I open the database and add my new record from my add activty? Nov 05 18:42:46 or should I be passing references to the database around? Nov 05 18:43:05 MarkG1234: You can only have one handle open to an sqlite database simultainously. It's not Parcelable, so you can't pass it around. You want to use an OpenHelper. Nov 05 18:50:01 I have one of those. should I be passing around a reference to that? Nov 05 18:52:01 MarkG1234: you can't safely "pass references" between activities Nov 05 18:54:34 MarkG1234: The magic behind an OpenHelper gives you one, and only one, valid connection. Create as many of your particular subclass of OpenHelper (with a given DB name), call .getReadableDatabase() a thousand times, it'll get the same handle. Nov 05 18:55:07 so it's like a singleton? Nov 05 18:55:52 sorry if some of my terminology is not "java-like", i'm not a java programmer :-) Nov 05 18:56:02 (as you may have guessed) Nov 05 18:57:00 MarkG1234: Well, vaguely. You can create multiple of them, they just all refer to the same database handle. Nov 05 18:57:28 It's not very java-like either, but it's a limitation of sqlite, so it had to be done. Nov 05 18:57:48 MarkG1234: see also http://howfuckedismydatabase.com/sqlite/ Nov 05 18:59:09 :-) Nov 05 19:00:08 hi lov! Nov 05 19:00:09 long time Nov 05 19:00:13 "Warning: sqlite_open(): unable to open database in /var/www/database/sqlite/common.php on line 10" Nov 05 19:00:14 lol Nov 05 19:03:11 If I implement an actionbar in my app and then the app leaves to the browser, can I carry that action bar along into the browswer Nov 05 19:03:39 docmur: No. You may want a WebView. Nov 05 19:14:17 I'll reask the question, so basically if you press the menu button in the brower you get a button, on a phone with no menu button you can't do that, so I had built an action bar with a menu button it, so I guess the better question is what is the menu button on a non menu button phone Nov 05 19:14:50 docmur: A software IME, similar to a soft keyboard. Nov 05 19:15:07 yes, so basically I need someway to show a show menu key Nov 05 19:15:21 docmur: the action bar will do that automatically Nov 05 19:15:38 It's their browser. If they use the menu bar in their browser, they already know how to get to it. Nov 05 19:40:09 is showing Toasts from lockscreen supported? Nov 05 19:40:40 when you think "I should show a toast" Nov 05 19:40:48 usually the answer is "no, I shouldn't actually show a toast, nevermind:" Nov 05 19:41:35 lov: may be true, but ATM toasting is my temporary logging view for my background service :D Nov 05 19:41:46 why not use, say, logcat, or notifications? Nov 05 19:42:12 that's a long story..... starting with USB parts being blocked at my workplace Nov 05 19:42:13 lov: lol Nov 05 19:42:18 *ports Nov 05 19:42:27 us-.... oh yeah. Nov 05 19:42:33 Aren't you the guy who was asking about forwarding ports over wifi? Nov 05 19:42:48 dude your workplace is fucked. You need a new job. Nov 05 19:42:55 .......nnno Nov 05 19:43:00 oh Nov 05 19:43:08 just the same, you really need USB access to do your shit. Nov 05 19:43:40 i did ask about sending email directly from device, which someone mentioned involved port 25 Nov 05 19:44:17 btw lov Sandy swept you away for a few days? Nov 05 19:44:56 also you're nick is highly awkward and causing all sorts of discomfort for us guys in here :P Nov 05 19:50:57 speak for yourself :P Nov 05 19:51:41 regedit: your discomfort about my nick isn't really my problem. Nov 05 19:52:29 lov? Nov 05 19:52:41 why is that a weird nick? Nov 05 19:52:49 I keep thinking of Oracle LOVS (list of values) Nov 05 19:53:13 "that's a good nick lov" Nov 05 19:53:38 reminds me of 1970s british movies Nov 05 19:55:17 regedit: your nick is highly awkward and causing all sorts of discomfort for us non-Windows users in here Nov 05 19:56:02 I agree. Nov 05 19:56:26 yeah, and that EdLin guy too Nov 05 20:09:33 how's that Nov 05 20:14:17 hello. can anyone tell me where i can get adb drivers for akai tablets ? Nov 05 20:22:39 probably google. Nov 05 20:23:11 I miss the days I had desire to code just not the support. Nov 05 20:26:03 RussellAlan: sounds like the basis for a good song. I miss the days … la la la Nov 05 20:26:31 :-) g00s Nov 05 20:27:44 Its a song I've been singing for so long. Nov 05 20:38:37 is there a preferred way adding shadows to an imageview? Nov 05 20:46:08 http://pastebin.com/LgMQ00sr - i'm trying to turn the this code into an iterative variant. It's from a fling scrolling implementation, but changing it to while (...) post (new runnable(current code)) skips the intermediate moves, it only jumps to the end of the scroll after a while. Any ideas? Nov 05 20:53:09 ivdorelian: could you use historical values maybe? Nov 05 20:54:03 where can I publish my application after google play Nov 05 20:54:23 onigunn: 9-patch set as the background Nov 05 20:55:05 vydd i never heard of that before, can you detail a bit please? Nov 05 20:55:23 JakeWharton: thanks, just wanted to be clear if there is no api method to do this Nov 05 20:57:46 What is called with you dismiss an option menu? Nov 05 20:57:50 ivdorelian: well, I haven't used fling, but I've used MotionEvents, and I can see that onFling uses too. Basically, android saves historical values to an array (or a list, whatever) which contains coordinates which didn't manage to get processed on time Nov 05 20:58:13 oh, i haven't tried that Nov 05 20:58:35 ivdorelian: http://developer.android.com/reference/android/view/MotionEvent.html#getHistoricalSize(int) Nov 05 20:59:12 raz86: Amazon? Nov 05 20:59:13 ivdorelian: it seems to me that if you put in a while loop around the flinger instance, the invalidate() will never actually have a chance to redraw the object (I assume the call is happening within the ui thread.) Nov 05 20:59:41 but i'm more curious about making that particular code iterative, not because it actually matters (recursive seems to work just fine, and it looks like tail recursion so it might get turned to iterative automatically at compile time anyway) but because it's been bothering me that i haven't been able to figure it out Nov 05 20:59:47 oh Nov 05 20:59:56 any way around that? Nov 05 21:00:10 Don't use a while Nov 05 21:00:34 what should i use then? while is generally used when going from recursive to iterative Nov 05 21:00:54 ivdorelian: so, you should be able to check if there are any historical values, and process those in a loop. again, this might not be the right answer, but you could spare a few minutes looking into that Nov 05 21:02:10 You want to use postDelayed and update every 16ms or so Nov 05 21:02:56 vydd trying right now Nov 05 21:03:22 SimonVT so there's no clean way? rather than mess with update intervals i'd rather keep the recursive approach Nov 05 21:03:44 You're blocking the ui thread by using a loop Nov 05 21:03:49 Don't block the ui thread Nov 05 21:03:59 I dont understand why there is not installation on my application Nov 05 21:04:09 If I use android:rotation="270" on a seekbar, will it still work correctly? Nov 05 21:04:14 ivdorelian: as an academic exercise, you may be able to enqueue postInvalidate() calls from a non-ui thread, and stick your while loop there. Unfortunately, there isn't telling when the ui thread will wake up; so it's usually simplest to push the next redraw() when the previous one completes. [Ideally, you also want to compute your time-delta inside the draw() code, so you draw the correct frame; rather than setting co-ordinates before Nov 05 21:04:15 enqueuing the draw request.] Nov 05 21:04:59 who would like to test my app (PM) ? Nov 05 21:04:59 raz86: because there are hundreds of thousands of other apps in Google Play? Because the publisher site's numbers don't update in real time? Because you're impatient? Any of those, and more. Nov 05 21:05:12 On Eclipse's graphical GUI editor, it shows up correctly but when I try moving it, it seems to show the old box like it might only be DRAWING it vertically but still tracking horizontally Nov 05 21:05:44 vydd: Log.e("asdf", motionEvent1.getHistorySize() + " -- " + motionEvent2.getHistorySize()); returns 0 -- 4 (max 4 for the second), i don't think that's enough to do much with Nov 05 21:05:57 20 download, 17 uninstall, does it normal? (for a game) Nov 05 21:06:37 kbs - ah, i see. Well, i guess that means i shouldn't really bother with it. There's no reason the recursive approach will cause any problems like a stackoverflow, right? Nov 05 21:06:55 ivdorelian: the code you have there looks fine to me Nov 05 21:07:06 it seems like there wont even be that many recursive calls and that the compiler might even optimize the tail recursion Nov 05 21:07:34 just thought there might be an easy iterative version. Thanks for your help. Nov 05 21:07:35 it's "recursive in time", rather than directly as a stack of calls, you you see what I mean Nov 05 21:07:51 yeah Nov 05 21:08:09 ie, if moveSurface() is called N times, it's not like it it's in a nested stack of N calls Nov 05 21:08:18 yep :-) Nov 05 21:11:32 ivdorelian: Why do you think there should be more? Can you compare it to recursive implementation? Nov 05 21:14:23 because 4 values wouldn't be enough to create a smooth scrolling animation, it scrolls more than one full screen Nov 05 21:24:55 ivdorelian: hm. so, recursive gives more values? good to know...but kinda strange, really :| Nov 05 21:27:59 yup Nov 05 21:28:32 that is the documented way to do it though, call Scroller.fling then do your scrolling while computeScrollOffset is true Nov 05 21:32:00 What method gets called when you dismiss an option menu? Nov 05 21:33:26 options menu? i wasnt aware anything was called Nov 05 21:34:38 well for instnance openOptionsMenu() will open it, onPrepareOptionMenu will prepare it but when it Dismisses something must get called Nov 05 21:37:58 ....interesting discovery of type inference in the java language Nov 05 21:39:10 enum Foo { FOO, BAR, BAZ }; enum Bar { FOO, BAR, BAZ }; Foo foo = FOO; switch (foo) { case FOO: func(FOO); ... } void func(Bar bar) { ... } Nov 05 21:39:46 err, syntax miss there. Nov 05 21:40:13 actually, let me pastebin it Nov 05 21:41:43 http://pastebin.com/dcyU9qSK Nov 05 21:41:57 FOO basically changes type by using two type inferences in the same scope Nov 05 21:42:00 cute :) Nov 05 21:42:16 case FOO: func2(FOO); -- the case is Foo.FOO, func2 is Bar.FOO Nov 05 21:42:24 very hard to spot, though :) Nov 05 21:42:41 oO Nov 05 21:42:44 huh Nov 05 21:44:08 romainguy: hi. what are the plans for renderscript? is it distancing itself from graphics and becoming oriented to computation only, or I'm misinterpreting changes in the api? Nov 05 21:44:47 " and Verizon has finally decided that maintaining its own alternative [app store] just isn't worth the trouble anymore. The carrier just announced a series of steps designed to shutter the service, " \o/ Nov 05 21:47:14 jasta: Well done. Now never do it again. Nov 05 21:47:45 jasta: what was the intent? were you trying to get visitor like behavior using enums ? Nov 05 21:48:06 i was actually just using the fairly common enum state machine trick in java Nov 05 21:48:11 java.lang.IllegalStateException: You can not set Dialog's OnCancelListener or OnDismissListener Nov 05 21:48:15 but where i was actually "translating" for another shittily designed state machine Nov 05 21:48:15 since when can you not set an ODL Nov 05 21:48:27 which defined this set of 4 states, but broadcasts state changes very chaotically Nov 05 21:48:37 so i wrapped it around a state machine that properly defines the state machine and its transitions to filter out bogus messages Nov 05 21:49:09 kludgey, i admit, but far more valuable for me now to ensure that the caller sees a clear picture of the states. Nov 05 21:49:11 oh yeah, thats a cool trick. i used it for a while but decided to use the android state machine stuff instead Nov 05 21:49:30 standard android state machine stuff is neat, but has heavy dependencies that i don't want to bring in for this Nov 05 21:49:53 it doesnt have any dependencies that i remember Nov 05 21:50:00 its one or 2 files Nov 05 21:50:02 it depends on Handler and running on a Looper thread Nov 05 21:50:05 ... Nov 05 21:50:07 that's a pretty heavy dep :) Nov 05 21:50:24 also because of that fundamentally requires Android Nov 05 21:50:29 ah, ok Nov 05 21:50:48 so you want platform independent code Nov 05 21:51:35 i used SMC to good effect if you dont mind DSL Nov 05 21:52:04 actually the enum trick works very well Nov 05 21:52:12 yeah Nov 05 21:52:15 its just that i noticed a very cute little type inference ambiguity in java by this particular one Nov 05 21:53:36 careful when state entry action transitions to another state :) Nov 05 21:53:58 g00s: yes, i know ;) Nov 05 21:54:34 i think that's android's state machine's best feature actually Nov 05 21:55:51 jasta: is your state machine hierarchical ? Nov 05 21:56:13 no, its very simple Nov 05 21:56:14 hi Nov 05 21:56:21 this ain't my first rodeo man :) Nov 05 21:57:11 i' uploading phonegap app. first two uploads were succesful, but now i'm getting 'Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE' Nov 05 21:57:51 any advices? Nov 05 21:58:27 pharell: seriously? Nov 05 21:58:40 have you tried looking for that error on google? Nov 05 21:59:01 nope. sorry then :P Nov 05 21:59:11 go ahead, we'll wait. Nov 05 22:00:06 :) Nov 05 22:00:20 Hey gang, I have a onTouch ScaleGesture setting a mScaleFactor and then I'm requestLayout()'ing to fire onMeasure. Now how about if i just want to make a button, that when you click it animate a scale from the current mScaleFactor to , let's says, 2x ? Nov 05 22:01:54 I'm not really scaling… my onMeasure calls _mLayout.layout(left, top, (left + mLayout.width() * mScaleFactor .... Nov 05 22:07:21 <_smiley> Hi everyone! I'm currently undertaking my dissertation. I've been looking into Wi-Fi Direct and its capabilities within Android. I've just discovered that Wi-Fi Direct requires a connection to be approved on the device being connected to. Does anyone know of a way to circumvent this? Possibly using permissions? Nov 05 22:08:24 You want to connect to a device, without that device allowing you to connect? or am I getting you wrong? Nov 05 22:09:06 <_smiley> II want to connect to a device, through my app, which is also using the same app Nov 05 22:09:37 <_smiley> Basically, I need my app to have permission to accept the Wi-Fi Direct request on behalf of the user Nov 05 22:10:08 Maybe sift through the logs and see exactly what happens, when the user is asked to give permission? Nov 05 22:10:23 And try to do that part automatically, instead of prompting the user? Nov 05 22:10:42 However, I think this might not be possible, as requiring user input on this seems like a security feature. Nov 05 22:11:11 <_smiley> I'm not prompting the user. When a device connects to another using Wi-Fi Direct, Android itself asks the user if it can be approved. Nov 05 22:12:21 Yeah, that's wha I was trying to say. Nov 05 22:13:43 [OT] is there an app to auto-sync camera pictures from android to a webdav/sftp server? Nov 05 22:14:23 when you call a return(); from onCreate, what executes next? Nov 05 22:15:25 onStart() should execute next Nov 05 22:15:32 http://developer.android.com/images/activity_lifecycle.png Nov 05 22:16:28 <_smiley> Ok, so do you know of a way that I could prevent Android from doing this? Nov 05 22:17:20 I'm reading the WiFi Direct documentation right now, haven't found anything yet though. Nov 05 22:19:39 _smiley, for now I would recommend starting up LogCat and watching what exactly happens on the client that you are connecting to. Maybe you can find something there that you could use Nov 05 22:21:20 Ge0rG: botsync Nov 05 22:23:38 SpeedEvil: wow, according to the screenshots, this app is soooo android 1.5 Nov 05 22:24:20 well, write a pretty one Nov 05 22:25:04 * Ge0rG has given up on solving all the problems he happen to have Nov 05 22:43:46 Using a SimpleCursorAdapter to handle listview clicks, and it works when my row has a single item in it. How can I work out which item was clicked on the row when there are multiple items? Been goolging for ages, but now knowing what to look for, it's hard... Nov 05 22:44:14 multiple items in one row in a listview? Nov 05 22:46:08 hey hey Nov 05 22:46:17 Is it true google is stopping its weather API? Nov 05 22:47:24 MarkG1234, I was dealing with almost the same problem yesterday, but with a ArrayAdapter. What are you planning to do on the click of the elements? Start new activities? Nov 05 22:52:08 fragments cannot be embedded within fragments Nov 05 22:52:10 Nov 05 22:52:49 I have a delete icon that I want to remove items from my database Nov 05 22:53:13 the rest of the row just shows the listitem name Nov 05 22:55:17 You should be able to override getView() in your Adapter Nov 05 22:55:40 and then set the view that contains the text and the button, as well as the button itself as clickable+focusable Nov 05 22:56:13 Then you can define onClickListeners for the Delete Button, and one for the layout, which will take the clicks that are not on the delete button Nov 05 22:56:36 The activity I am looking at doesn't have an onStart(), where does onCreate() go to when you call return(); in this situation? Nov 05 22:56:52 to super.onStart() Nov 05 22:57:21 all activity extend Activity, and Activity defines onStart() Nov 05 22:57:45 *acivites extend Activity Nov 05 22:58:18 hmm, how do i list the services registered to a particular package/apk Nov 05 22:58:25 dumpsys package i thought would do this, but apparently no Nov 05 22:58:40 cant you get that from packagemanager? Nov 05 22:59:19 ron_frown: that's what i'm trying to do but without deploying an app to do it Nov 05 22:59:38 any idea how can I draw a text diagonally using canvas ? Nov 05 22:59:50 canvas.rotate Nov 05 23:01:23 tophyr: Ok, but what is the equation that I will use to calculate the amount of rotation as I am drawing text on a pie Nov 05 23:02:51 not all pies have the text rotated Nov 05 23:03:30 but it would be the sum of previous angles + the bisector of current piece Nov 05 23:03:35 I forgot to say that a pie is divided into sections and I want to draw text on each section of the pie Nov 05 23:03:41 R4md4c: ... that's up to how you want to determine how to rotate it. canvas.rotate() shifts how the "draw" is interpreted Nov 05 23:03:55 beyond that, it's 10th grade math problem ;) Nov 05 23:04:28 and then you'll have to calculate the shift offset, and that'll be too font metrics dependant Nov 05 23:04:47 tophyr: I know but I forgot the rules of rotation and the sine and cosine of an angle etc.. :D Nov 05 23:05:16 * VinS cry Nov 05 23:05:20 for the rotation computation you don't have to use sine nor similar functions Nov 05 23:05:35 github proposed me to name my repo "YOLO dangerzone" Nov 05 23:05:39 :'( Nov 05 23:05:47 VinS: awesome Nov 05 23:06:02 R4md4c: you just set angles Nov 05 23:06:21 it's quite linear Nov 05 23:07:16 it'd be equivalent to drawing a fixed length bar chart Nov 05 23:14:08 ok does the canvas.rotate accumlate the value of the rotation with each call or I just set the angle of rotation ? Nov 05 23:20:50 R4md4c: it "accumulates" Nov 05 23:21:06 just like translate and scale Nov 05 23:33:09 phew. i thought i had a runaway thread but I had just left the emulator on Nov 05 23:35:08 hi all, how can I add a new view containg a layout over canvas? -not- draw to it, I can do it no pefectly using layout.draw(canvas), and contents is ok, addView(layout) or addView(listview) does not work, alwys get black screen, visibitliy is on Nov 05 23:36:28 hi all, how can I add a new view containg a layout over canvas? -not- draw to it, I can do it no pefectly using layout.draw(canvas), and contents is ok, addView(layout) or addView(listview) does not work, alwys get black screen, visibitliy is on Nov 05 23:37:45 canvas: you can't add views to a canvas, but you *can* add them to a ViewGroup. Nov 05 23:38:11 You can use a FrameLayout or a RelativeLayout to lay a view over another view. Nov 05 23:38:21 TDIGAN: and how to add this Viewgroup over canvas? I think I tried also inflater Nov 05 23:38:35 If you're using a surfaceview I don't know if you can do this at all. Nov 05 23:38:48 if you're using a regular view, based off FrameLayout or RelativeLayout, you can definitely do it. Nov 05 23:38:55 you use addView() or put it in XML. Nov 05 23:39:17 addview result is black Nov 05 23:39:21 stop trying to "add it to the canvas" think of the canvas as a low level hidden aspect of a view used for specialized drawing. Nov 05 23:39:27 are you using a SurfaceView? Nov 05 23:39:43 what class does your View subclass extend? Nov 05 23:39:54 yes, surfaceview, and I don't want to start another activity Nov 05 23:40:02 Yeah, I doubt it's going to work with a SurfaceView. Nov 05 23:40:07 extends LinearLayout Nov 05 23:40:11 Are you *sure* you need a SurfaceView? Nov 05 23:40:22 How are you working with a SurfaceView if your class extends LinearLayout? Nov 05 23:40:31 you must be misunderstanding. Nov 05 23:40:37 yes, there are important information to click and view in background Nov 05 23:40:39 What are you drawing on your surface view? Nov 05 23:40:46 tell me exactly what you're drawing Nov 05 23:41:07 I want to add my own class, extending linearlayout, over -existing- and drawing canvas Nov 05 23:41:31 I draw a full screen bitmap Nov 05 23:41:31 You will be able to do this if you extend a class that inherits from ViewGroup instead of SurfaceView Nov 05 23:41:42 is it high performance? Nov 05 23:41:50 because if it isn't, just do what I suggested Nov 05 23:41:51 no, reading, text, books Nov 05 23:42:23 ok cool, well: 1. get rid of your surface view. 2. Instead extend RelativeLayout 3. Override onDraw and draw in there. 4. Remeber to call invalidate to update the state. 5. Don't you dare use a thread. Nov 05 23:42:49 then you can just add stuff to the extended relativelayout, since it is a relativelayout it retains all those abilities Nov 05 23:43:09 but I'd recommend nesting it anyway, because it'd be nice to separate the overlays from your customview.. in which case just extend FrameLayout Nov 05 23:43:27 * vydd hoped he'd say that he is drawing something naughty Nov 05 23:43:29 the reason I say to extend a layout and now View or SurfaceView is because they all measure themselves for you. It makes the work easier. Nov 05 23:43:30 sound easy on chat, but I'm not sure how to do, I'm trying it for two days now Nov 05 23:43:39 is there some link, example, or tutorial Nov 05 23:43:39 canvas: read the custom views guide Nov 05 23:43:45 "custom components" on d.android.com Nov 05 23:44:13 are you sure you can't just use an ImageView inside RelativeLayout for drawing your bitmap? Maybe combine with an animation. Nov 05 23:44:56 "and not"* Nov 05 23:47:12 situation is: I have the canvas ready and lock, handler, black, empy, and also layout and a dynamic listview with adapter inside, working all, framelayout is let's say "lo", I can do perfectly lo.draw(canvas) in each loop, and all shows correctly, but instead draw, I need the listview to updat automatically without draw, that's because I want to put over the layout Nov 05 23:47:32 man I wish there was a Google Analytics guide for v2 so I didn't have to read v1 guide and then read the migration guide. Nov 05 23:48:39 canvas: If you're going to overlap another view over your custom view, step 1 is to rewrite it as a regular viewgroup and not a surfaceview Nov 05 23:48:55 so start by extending one of those classes I suggested then when you get there try your thing again Nov 05 23:49:03 and if you fail come back Nov 05 23:49:50 can't rewrite, because the program must run in another modes and ways, as is, using a settign, and I trying to do this using a different setting and value Nov 05 23:50:01 can't rewrite then you can't do it Nov 05 23:50:22 wow Nov 05 23:50:25 read up on surfaceview, it's a reserved region of the screen. it becomes a separate entity from the UI and is taken over by another graphics subsystem Nov 05 23:51:17 all you need to do to rewrite as a regular view is take the thread out, put your drawing in overridden onDraw, and remove the double buffering stuff Nov 05 23:52:17 if you want to put a view NEXT to the surfaceview you can Nov 05 23:52:20 but you can't put one over it. Nov 05 23:52:33 afaik* Nov 05 23:52:45 class I'm running on and putting code is "public class MyReader extends SurfaceView ....." Nov 05 23:53:10 yeah thats a problem. Nov 05 23:53:30 that's THE problem :) Nov 05 23:53:49 and adding another surface more over? Nov 05 23:54:37 nope Nov 05 23:54:47 you can have only 1 surface Nov 05 23:55:08 if you want to overlay on the surfaceview, you're going to have to write your own graphics drawing code inside it. Nov 05 23:55:11 with the canvas or GL Nov 05 23:56:32 wow, then only I can try exit the class totally, trying not to stop or enter on pause the activity, then start a new totally diferent and own class using my layouts and views, I'm right? :( Nov 05 23:57:02 unless you want to do something like: put them underneath the surface view Nov 05 23:57:10 but I've even had issues with that where I needed to use workarounds Nov 05 23:57:17 uh? underneath? Nov 05 23:58:41 (and I have to pass the full bitmap as parameter or extra, uhmmmm) Nov 05 23:58:54 i.e. you'd have to give the surfaceview 3/4 of the screen Nov 05 23:58:58 and your widgets 1/4 Nov 05 23:59:14 i'm going for a coffee run, good luck Nov 05 23:59:33 Well, many thanks for your help TDIGNAN! Nov 06 00:00:23 no, surcfaceview must be full screen, and bitmap are, too Nov 06 00:03:12 id try with an imageview, relativelayout, and some animations Nov 06 00:03:16 you might have enough if you dig Nov 06 00:03:18 bbl Nov 06 00:13:11 thinking of finally up'ing the targetSDK of my app from 7 to 16, any common pitfalls i should look out for? Nov 06 00:13:45 menu button will vanish Nov 06 00:14:00 ("button of shame" ;)) Nov 06 00:14:30 haha yes, I have ABS in my app, so I should be okay Nov 06 00:26:13 you don't actually need abs to be compatible without the menu button Nov 06 00:26:16 it's automatic Nov 06 00:29:54 i'm starting to think the back button might be a bad thing too. Unfortunately putting a back button in your app is still stupid. Nov 06 00:30:15 I guess the one plus is that you dont' have to trust people to implement back buttons. Nov 06 00:32:47 when implemented correctly, the back button is a glorious thing Nov 06 00:33:49 "implemented correctly" when anything is implemented correctly its usually a glorious thing ;) Nov 06 00:34:14 some are less glorious than others Nov 06 00:34:18 unless its somehting inherently not glorious lol Nov 06 00:34:22 I've implemented some pretty god damn stupid features Nov 06 00:34:30 lol Nov 06 00:34:37 sounds like every day at work for me :S Nov 06 00:36:11 tdignan: I use my tablet on Full Screen Mode a lot of time, so I don't get to see any bars (notification or back/home) Nov 06 00:36:24 have an app deal with that accordingly is awesome Nov 06 00:39:43 ello Nov 06 00:42:14 JakeWharton Nov 06 00:42:19 what Nov 06 00:42:22 evancharlton: like, an in-app back button? Nov 06 00:42:31 because I'm kind of curious about using one... Nov 06 00:42:38 i'm back button curious Nov 06 00:42:44 setSupportProgressBarIndeterminateVisibility(false); doesn't shut down the progress thing during tab switching Nov 06 00:42:46 in-app back/exit buttons considered harmful Nov 06 00:42:55 that's what I thought Nov 06 00:43:00 what do you mean "during tab switching"? Nov 06 00:43:01 is there anyway to get rid of ProgressBarIndeterminate? Nov 06 00:43:10 ctate: but let me suggest a new phrase Nov 06 00:43:18 I have ActionBar Tabs, while switching the Actionbar have ProgressBarIndeterminate there Nov 06 00:43:26 in-app back/exit buttons: just say no Nov 06 00:43:31 "considered harmful: considered harmful. short-circuits critical thinking in favor of hivemind" Nov 06 00:43:48 is there anyway to switch that to the tabs? or just get rid of it completely? Nov 06 00:43:50 what makes in-app back buttons not good? curious. Nov 06 00:44:01 theres a dedicated button for back already Nov 06 00:44:06 they're redundant with the OS dedicated back control Nov 06 00:44:09 obviously treeleaf Nov 06 00:44:17 i'm still not sure exactly what you are asking Nov 06 00:44:22 and a waste of pixels that you could ALMOST CERTAINLY better devote to, y'know content Nov 06 00:44:31 but the fact is that if putting a faux back button in your app pleases your users, it's the right thing to do. Nov 06 00:44:41 plus they reveal your app as being a K-L4ME port from some other platform Nov 06 00:44:42 the only way to make an informed decision is to get analytical data about user behavior. Nov 06 00:44:51 you know what I've realized Nov 06 00:44:55 if the users want it, thats fine Nov 06 00:45:01 id argue that most people do not want that Nov 06 00:45:06 is that conforming to android's guidelines is less important than pleasing your users Nov 06 00:45:08 but users dont' want it Nov 06 00:45:23 that is, people coming from WinCE or something might want it Nov 06 00:45:24 i dont want to have to context switch out of the android way of doing things that most apps conform to Nov 06 00:45:26 ctate, treeleaf: Where's your data to support that? Your main fallacy is assuming all users are the same. Nov 06 00:45:28 but at this point that's like six people Nov 06 00:45:34 My users might be different than your users. Nov 06 00:45:40 How can you make a blanket statement like thta Nov 06 00:45:43 at this point, *havign* it creates inconsistency across apps and teh rest of the platform Nov 06 00:45:45 im not saying that its defiitely the case man Nov 06 00:45:49 exactly Nov 06 00:45:53 and inconsistency is really quite bad for the overall device UX Nov 06 00:45:58 and I'm not going and putting back buttons in my app, either Nov 06 00:46:05 I'm just making a point Nov 06 00:46:06 lol ok no ones forcing you to Nov 06 00:46:15 remember that none of the many apps bundled with the system will have back buttons on screen Nov 06 00:46:22 that is, in-app back/exit buttons Nov 06 00:46:30 somehow, i've always vaguely associated the android back button with a browser's back button, and an in-app back button as pertaining to the navigation of the app itself. maybe it's just me being dumb :-) Nov 06 00:46:31 so you know a priori that your app is going to be the odd one out Nov 06 00:46:53 kbs: ahh, now we're getting into the difference between teh OS's back button and the in-app "up" control int he action bar Nov 06 00:46:55 kbs would the in app back button do something different than the android back button? Nov 06 00:47:01 which is explicitly about in-app state Nov 06 00:47:12 [and which is never supposed to be used to exit the app itself] Nov 06 00:47:27 yeah. I was thinknig primarily about in-app navigation, not exit Nov 06 00:47:36 I think the way ios apps have back buttons is nicer looking and simpler Nov 06 00:47:41 but I don't use ios Nov 06 00:47:46 iOS apps have back buttons because they don't have a choice Nov 06 00:48:01 the OS-provided control set is minimal; they have to do it all on-screen Nov 06 00:48:03 JakeWharton, http://dl.dropbox.com/u/11879094/progressbar.png Nov 06 00:48:04 ctate: allow me ot disagree. having in-app location management is a good thing Nov 06 00:48:05 that sums up ios, "dont have a choice" Nov 06 00:48:10 ctate: i know Nov 06 00:48:30 allow you to flow inside the app sub views is a great thing and can be accomplished with rich UI Nov 06 00:48:39 FernandoMiguel: i don't dispute that! note that i pointed out the action bar 'up' element that has been introduced post-3.0 Nov 06 00:48:43 for just such reasons Nov 06 00:49:03 only to be disambiguated over the past two years Nov 06 00:49:07 there are guidelines on this; please follow them :) Nov 06 00:49:21 ftw Nov 06 00:49:27 (see above re consistency of behaviors across aps) Nov 06 00:49:29 err Nov 06 00:49:41 users are more important than guidelines. find out what your users really want, use actual data. Nov 06 00:49:44 meetoman: and what's the problem you're trying to solve? Nov 06 00:49:55 I m trying to make that disable Nov 06 00:49:59 ctate: I can refer one very good example: ReaderHD Nov 06 00:50:22 as we drill down, the app still has a way to go back, drilling up Nov 06 00:50:33 it's fully integrated on the UI Nov 06 00:50:47 on the flow of panels. I really love how they did it Nov 06 00:50:52 trying a couple of things right now, hold on Nov 06 00:50:54 requestWindowFeature(Window.PROGRESS_INDETERMINATE_OFF); etc Nov 06 00:50:55 [interesting discussion and points all, thanks :-)] Nov 06 00:51:01 Like, I'd been telling my clients "Android has a back button" Nov 06 00:51:05 when they ask for one Nov 06 00:51:12 I think I might just give them one next time. Nov 06 00:51:16 maybe they were right. Nov 06 00:53:35 I think the lack of distinction between 'back' and 'up' navigation in iOS is one of its major UI weaknesses though Nov 06 00:53:55 tdignan: actually no, clients are quite likely to be wrong about this Nov 06 00:54:07 "oh the iOS app has a back button on screen so the android one has to have it too" Nov 06 00:54:14 that kind of thinking is depressingly common Nov 06 00:54:31 and it's nearly always an up button in iOS Nov 06 00:54:42 what you tell them is "okay, i put a back button in the recommended location along the bottom edge of the screen" :) Nov 06 00:55:21 one of the nicest things about android imo is that you can tap a link in the gmail app and it will open your browser Nov 06 00:55:42 when you press the back button you'll return to the mail message you were staring at Nov 06 00:56:01 ctate: could you please open up ReaderHD and tell me it's not well made? Nov 06 00:56:15 it's not a question of other OSs Nov 06 00:56:32 it's how the user actually works the screen Nov 06 00:56:49 i'm looking at ReaderHD's screenshots in the Play Store Nov 06 00:56:54 I'd start it, but it costs money Nov 06 00:56:55 and there's no back button on screen Nov 06 00:56:59 so uh. :) Nov 06 00:57:08 I really dislike how so many "options" are just thrown into the corner Nov 06 00:57:17 MDijkstra: there's a free version, I think Nov 06 00:57:39 ctate: :) see ? it's not the button, it's the functionality Nov 06 00:57:48 it's there, you just don't see it as a button Nov 06 00:57:55 FernandoMiguel: i'm not sure what you're trying to convince me of Nov 06 00:57:59 instead, there's overlay over the panels Nov 06 00:57:59 yeah, so many hieroglyphics in the action bar Nov 06 00:58:06 i've been saying that if you're putting a 'back' button on screen in your app, you're doing it wrong Nov 06 00:58:11 and i *think* you're agreeing with me :) Nov 06 00:58:12 afaics it just implements the action bar up button Nov 06 00:58:21 installing it on my phone now Nov 06 00:58:37 ctate: I'm trying to say, that OS buttons, capacitive or phisical, aren't always the best solutions Nov 06 00:58:49 and that it can be done much better in app Nov 06 00:59:01 but it doesn't require a dedicated button on the apps Nov 06 00:59:16 yes; good UX design wins :) Nov 06 00:59:22 +1 Nov 06 00:59:37 * adq needs buttons Nov 06 00:59:46 adq: no you don't Nov 06 00:59:57 the entire screen is an HUGE touching area Nov 06 01:00:01 you know what I need? Nov 06 01:00:04 I have a n00b question. Can I display dialogs if I don't have the option of inheriting from FragmentActivity (because I need to inherit from something else to support a third-party widget)? Nov 06 01:00:12 MDijkstra: thats something painfully broken in the ipod Nov 06 01:00:17 a capacitive screen on my moms ChromeBook series 3! Nov 06 01:00:22 MDijkstra: if i open a link in gmail, it opens with gmail's custom browser Nov 06 01:00:32 which doesnt have the same cookies, so i need to login again Nov 06 01:00:55 FernandoMiguel: what you're missing is the fact the back button, whether on-screen or physical, doesn't do the same thing as the back button in this case Nov 06 01:01:17 FernandoMiguel, i meant, don't make them disappear (from the screen too). I can understand for physical or capacitive ones, but don't remove them from the screen too :-) Nov 06 01:01:24 FernandoMiguel: ie, if you launch the app standalone they will be roughly equivalent in this case Nov 06 01:02:05 adq: as I stated earlier, I make use of CM feature to expand apps to fullscreen, so I don't see notification bar or home/back back Nov 06 01:02:10 FernandoMiguel: but that's not always the case, and ReaderHD is just implementing a standard UI pattern Nov 06 01:02:29 being able to navigate inside an app without using the on-screen buttons is awesome Nov 06 01:02:34 it's not something clever they've invented Nov 06 01:02:42 it's a standard part of the action bar Nov 06 01:02:44 FernandoMiguel, it's a bit too "immersive" for me :-) Nov 06 01:02:45 MDijkstra: I'm not saying they did Nov 06 01:03:10 Im just stating that a good UI/UX can still use back/up without forcing the user to tap on buttons Nov 06 01:03:25 adq: every bit counts Nov 06 01:03:27 :) Nov 06 01:03:33 at some point we need something to exit an app, or launch the launcher or whatever Nov 06 01:03:50 adq: long press power button and they are back Nov 06 01:04:21 it's one of those little features that CM adds that most ppl will not ever know about Nov 06 01:04:24 oO at this rate, we will have long click, click, double click on power button, triple click?? Nov 06 01:04:26 hello. Is html-canvas gpu accelerated on android? Nov 06 01:04:29 but once you use it, you fall in love Nov 06 01:04:42 CM is cyan mod? Nov 06 01:04:42 I hate when people overload the power button for non-power-related things Nov 06 01:04:46 adq: I'm not saying using it 100% of the time Nov 06 01:05:08 I'm saying for a very specific case, where I want to focus on a reading tas Nov 06 01:05:10 *task Nov 06 01:05:19 adq: correct, cyanogenmod Nov 06 01:05:28 (i use it on my phone) Nov 06 01:05:47 evancharlton: the thing has no more buttons :D :D Nov 06 01:06:08 anyway, if a phone or a tablet will be used like our computer, i need button(s) :p Nov 06 01:06:19 meh Nov 06 01:06:27 I wish PCs had *less* buttons Nov 06 01:06:33 that's why I love chromebook Nov 06 01:06:41 FernandoMiguel: unplug the keyboard Nov 06 01:06:42 it's dead simple, lot's of battery Nov 06 01:06:56 current PCs have way too much power Nov 06 01:06:59 and ppl don't use it Nov 06 01:07:05 yes, i tried it on my netbook, funny pseudo-os Nov 06 01:07:16 current desktop OSs are just too complicated and noisy. we need simpler things. Nov 06 01:07:21 but it was not mature (year(s) ago) Nov 06 01:07:33 pretty much what everyone does on a laptop is mail and facebook Nov 06 01:07:43 cf Chromebooks and Windows 8 Nov 06 01:07:45 Wow, I've been doing some dev on a stock HTC desire and I can't believe how slow it is :/ Nov 06 01:07:47 yeah, no :) Nov 06 01:07:52 I've been flashing chromiumOS on my laptops for long time Nov 06 01:07:54 Estel: ha ha, yeah Nov 06 01:07:58 Nexus One forevar! :) Nov 06 01:08:01 finaly brough one for mom Nov 06 01:08:04 FernandoMiguel: i write android apps on a laptop, and edit php/js/html monsters Nov 06 01:08:14 FernandoMiguel: i cant do that on a tablet, yet Nov 06 01:08:18 Estel, got an htc desire hd, specs a bit above htc desire. Still working well here :) Nov 06 01:08:25 i need to get my dad a tablet. He cannot handle a desktop Nov 06 01:08:27 Is html-canvas gpu accelerated on android? Nov 06 01:08:31 what these new tablet interfaces do well is take a subset of what people do and do it better than on a laptop Nov 06 01:08:41 Estel: wow a snapdragon, my phone still is Magic 32a Nov 06 01:08:54 3 and half yo running cm 6.x Nov 06 01:09:00 but they are rather bad at being better than a laptop at everything Nov 06 01:09:19 FernandoMiguel: you don't take offence that nobody cares if apps can run on that anymore, right? Nov 06 01:09:31 MDijkstra: only when we get touch screens on laptops Nov 06 01:09:39 darn it I miss that on chromebook Nov 06 01:09:43 and a backlit keyboard Nov 06 01:10:00 FernandoMiguel: nah, there are so many 'normal' tasks that touch screens are so bad at Nov 06 01:10:08 Estel: it makes calls when battery is above 50% ... enough for me Nov 06 01:10:29 I connect it to wifi from time to time to backup call records, sync contacts, and update market Nov 06 01:10:43 I'm the 13% of android 2.2 Nov 06 01:11:08 ctate: just got an email from a client who needs an ios port and in the email he was all asking about actionbars and stuff :D Nov 06 01:11:12 MDijkstra: tell that to my fingers everytime I try to click on webpages buttons Nov 06 01:11:17 "we're going to need the actionbar" Nov 06 01:11:22 man things are changing Nov 06 01:11:27 and the entire way tablet interfaces deemphasize file management also hurts their efficiency when the tasks become more complex than 'share a picture from this webpage on twitter' Nov 06 01:11:28 :D Nov 06 01:11:57 MDijkstra: Cloud dude. it's the cloud! Nov 06 01:12:09 I mean, it's great when you're browsing the web, which most people do 90% of the time Nov 06 01:12:18 I am ? Nov 06 01:12:22 I don't get those stats Nov 06 01:12:27 but they also have to do stuff that doesn't work well on a tablet Nov 06 01:12:29 I wonder if there are many ios apps out there where the devs have been forced to implement and actionbar to please a client. Nov 06 01:12:33 There has to be at least one. Nov 06 01:12:49 I laugh when polls say X users browsed Y site and 8x% is from W OS Nov 06 01:13:15 do ppl *REALLY* use browsers that much ? Nov 06 01:13:23 shouldn't they be using native apps instead? Nov 06 01:13:37 it's like, is there anyone using gmail web mobile on android ? Nov 06 01:13:53 Estel: well, the iOS navigationcontroller only supported one button on the right side before 5.0 Nov 06 01:14:12 Estel: I guess a lot of people had clients that wanted more buttons there Nov 06 01:14:16 FernandoMiguel: Probably not, but I doubt gmail is typical (useful for a friend to log into their account though) Nov 06 01:14:32 FernandoMiguel: i think every site should have a good mobile site, and all serious sites should have a native app... but NO site should redirect you to a page that says "Download our native app" -- that is abhorrent. Nov 06 01:15:01 with the obvious exception for apps that come preinstalled, like gmail. Nov 06 01:15:34 it' Nov 06 01:15:37 there's pretty much only one site I browse, and that's because their android app is really REALLY bad Nov 06 01:15:48 it's like saying "Hey, we'd like to have you as a user but only if you let us anal probe you first" Nov 06 01:15:56 so excuse me if I don't get how those stats show up Nov 06 01:16:35 it was just a figure of speech to make the argument that touch interfaces aren't magically better at everything Nov 06 01:16:54 I pretty much live in the browser when I'm on the desktop. Nov 06 01:17:04 they're better at a specific subset of things you use a computer for, of which browsing is a good example Nov 06 01:17:29 and the consumption of content in general Nov 06 01:17:38 I need to catch up on html5. Nov 06 01:18:04 i learned a tiny bit, but you can do some amazing stuff if you really put the time in to learn it all. Nov 06 01:18:20 tdignan: if someone would port Pidgin (or rather purplelib) to a webbrowser, I could live there... Nov 06 01:18:27 oh and chrome shell support of ssh keys :D Nov 06 01:18:48 it'd be easier to run libpurple on a vps :) Nov 06 01:18:53 make a web front-end Nov 06 01:18:57 that's a killer idea, actually Nov 06 01:19:06 pretty much the 5 things I use on laptops: browsers, pidgin, shell, file explorer, media player Nov 06 01:19:15 I'd do it but I don't really use pidgin, so I wouldn't be interested in writing the code. Nov 06 01:19:17 there are web based IM clients Nov 06 01:19:22 I like to eat my own dogfood. Nov 06 01:19:26 tdignan: you just got a beta tester and a paying client Nov 06 01:19:45 g00s: none goes as far as pidgin Nov 06 01:19:47 tempting Nov 06 01:20:02 with all the supported networks (IRC too) and especially the plugins Nov 06 01:20:15 I love how make pidgin work FOR ME Nov 06 01:20:42 g00s: but feel free to let me know of any worth it Nov 06 01:20:55 beebo and imo are the ones I know better Nov 06 01:21:37 and neither have great UIs for chat... which is awkward, considering they are IM based apps Nov 06 01:25:22 so freakin annoying that fragments can't contain fragments. Nov 06 01:25:35 so imo.im is a webbased multi-protocol chat client? Nov 06 01:25:43 tophyr: i know right Nov 06 01:26:03 I ran into that issue the other day when I got a weird exception. Then after much googling realized the err of my ways. Nov 06 01:26:12 yo dawg Nov 06 01:26:15 it would be nice if there was FragmentInAFragmentException Nov 06 01:26:22 "You dawg, you can't do this" Nov 06 01:26:43 be even nicer if they just designed the damn api to be recursive-capable Nov 06 01:27:02 tophyr: anyway what I ended up doing is taking the enclosing fragment out, and turning it into a headless fragment Nov 06 01:27:07 i.e. no ui Nov 06 01:27:14 then I persisted it with setRetainInstance(true) Nov 06 01:27:22 and used it to control the other fragment Nov 06 01:28:03 Fragments do make handling an orientation change a lot easier. But in the next version of this app the 'headless fragment' is going to be re-written as a service Nov 06 01:28:57 in my case i want to reuse a significant part (but not all) of my login activity, inside a dialog Nov 06 01:29:13 fragment inside dialogfragment...... NEWP Nov 06 01:29:18 you'll need to use composition Nov 06 01:29:30 pull out the reusable code parts and put them in a public final class with public static methods Nov 06 01:29:37 then write wrappers around them in each of the fragments Nov 06 01:30:00 it's really better than multiple inheritance hell :) Nov 06 01:30:02 thank you java. Nov 06 01:31:05 how can i show the soft keyboard? Nov 06 01:31:14 by focusing an edittext Nov 06 01:31:27 i tried that: editor.requestFocus() Nov 06 01:31:30 no dice Nov 06 01:32:17 whomp_: (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE).showSoftInput(...) Nov 06 01:50:44 nite everyone Nov 06 01:51:42 tophyr, it's not working for me for some reason Nov 06 02:08:40 Hi all Nov 06 02:08:59 How to restrict ViewPager swipe-able in one direction? Nov 06 02:09:20 does anyone know a URL where i can test my HttpGet? Nov 06 02:09:29 http://google.com Nov 06 02:10:05 cool Nov 06 02:10:14 does that return anything? Nov 06 02:11:28 It should, but what are you trying to achieve? Nov 06 02:13:53 maybe google is down Nov 06 02:16:17 how do i keep my UI code separate from background tasks? Nov 06 02:17:03 i am using an async task that is calling a method in my activity on postExecute but i need to separate this out some how Nov 06 02:18:16 What is the best way to have a collection of Services for an App? Nov 06 02:22:56 ohai Leeds Nov 06 02:23:09 it works muhuhuhuahahahahahah Nov 06 02:23:15 flawlessly Nov 06 02:23:17 and then some Nov 06 02:24:01 ok... for the love of god and all that is holy.... can we PLEASE put a ban on constantly asking the same question over and over and over Nov 06 02:25:01 i think someone's already asked that Nov 06 02:25:08 can we please have a ban on asking the same question over and over? Nov 06 02:25:47 Asked what? Nov 06 02:26:37 can we please have a ban on having a ban over and over? Nov 06 02:27:22 I'm not sure if I should be saving the ServiceInterface's the reference to the Service itself, or something else. Nov 06 02:31:08 sometimes i'm tempted to ban the whole channel Nov 06 02:31:16 \o/ Nov 06 02:31:27 ban ALL the things! Nov 06 02:31:45 sylon: did u get your answer? Nov 06 02:32:31 sylon you are aware its spelled cylon, correct? Nov 06 02:32:53 Belacan: no i didnt Nov 06 02:33:13 what was your question Nov 06 02:33:18 Belacan: http://stackoverflow.com/questions/5783982/android-async-task-which-activity-evoked-it the last answer with the interface is this the best way? Nov 06 02:33:28 i want to decouple my AsyncTask from the UI Nov 06 02:34:37 what do you mean Nov 06 02:35:01 AsyncTask execution *is* decoupled from the UI Nov 06 02:35:14 i don't mean execution Nov 06 02:35:16 i mean the code Nov 06 02:35:29 i dont want the AsyncTask to know about my activity and such Nov 06 02:35:42 can you give a specific example or some code? Nov 06 02:35:57 so just declare your AsyncTask subclass as a separate standalone class, not as an inner class of your Activity Nov 06 02:36:02 see the link i posted Nov 06 02:36:08 i mean, classes don't inherently know about each other in general Nov 06 02:36:09 you shouldnt keep secrets Nov 06 02:36:28 ctate: yea i understand that, this is what i am doing.. Nov 06 02:36:43 this stackoverflow question is about how to *couple* the AsyncTask to the activity Nov 06 02:36:55 i know Nov 06 02:37:01 but the last answer seems like the best practice Nov 06 02:37:04 what is it that the async task is doing currently that you dont want it to do? Nov 06 02:37:04 about how to decouple Nov 06 02:37:23 Belacan: ignore me, i am not asking about how to do something, i am asking about code structure Nov 06 02:37:34 ahhhhhh Nov 06 02:38:04 giving the AsyncTask an interface pointer, for an interface that your Activity implements, is sort of two layers Nov 06 02:38:05 yeah like ctate said im sure you can put it in another class so you may use it again and again Nov 06 02:38:07 ctate: is that the best way to go about it? Having an interface with the call back, that your activity implements and your AsynTask takes Nov 06 02:38:46 on one level, the AsyncTask doesn't "know" that it's an activity; it just knows about the interface being used to mediate how much information about the object is being exposed Nov 06 02:39:06 on another level, it still tightliy binds the AsyncTask to that specific Activity instance, because it's got an object pointer that happens to point to that Activity Nov 06 02:39:39 you need to be careful about AsyncTasks that you think need to refer to activities directly Nov 06 02:39:48 So, can anyone give me some guidance on what's the best way to manage references to an arbitrary amount of Services ? Nov 06 02:40:08 sylon: if you are going to use AsyncTask, use it like this http://stackoverflow.com/questions/3357477/is-asynctask-really-conceptually-flawed-or-am-i-just-missing-something/3359003#3359003 Nov 06 02:40:16 because the Activity object lifetime is not necessarily the same as (or more precisely, not necessarily as superset of) the AsyncTask lifetime Nov 06 02:40:54 definitely look at g00s's link and follow hackbod's advice there Nov 06 02:41:05 hint: she manages the Android framework team **** ENDING LOGGING AT Tue Nov 06 02:59:58 2012