**** BEGIN LOGGING AT Sat May 11 02:59:58 2013 May 11 03:46:05 Hi, I have multiple fragments within an activity and then all need to pull data from the service. Keeping in mind that I want to ensure state is maintained over rotation, etc, does it more sense to share a ServiceConnection or create independent service connections? May 11 03:54:29 tuche May 11 03:54:38 touche* May 11 04:02:35 hi guys. I need to implement some sort of image gallery in this app I am working on. I have never worked with images much more than simply loading up a couple..I found a tutorial that walks you through it (link: ) but android's Gallery is deprecated...I need it to show the image and at the bottom show thumbnails of previous, current and post images; like the one in the tutorial. Can anyone May 11 04:02:35 point me in the right direction? I could just code it myself but I refuse to believe someone has put together a nice gallery tutorial that i could use... I targeting SDK 17/Android 4.2.2 - any help is much appreciated May 11 04:02:50 this is the link ---> http://mobisoftinfotech.com/android-gallery-widget-example-and-tutorial/ May 11 04:36:22 when i remove an item from a hashmap, how can i let a list know that this happened? May 11 04:37:21 remove returns something May 11 04:37:25 check that May 11 04:38:15 map.remove() returns an int (i think) May 11 04:40:56 i call notifydatasetchanged after map.remove() but i only see a change when navigate away from my current tab and come back May 11 04:41:06 why dont i see the change immediately? May 11 04:41:44 can you share your adapter? May 11 04:44:34 basilisk: http://pastebin.com/ZY9LFSry May 11 04:45:25 when you remove the item from the hash map, do you also remove it from the adapter? May 11 04:45:42 basilisk: no May 11 04:46:18 you need to remove the item from the adapter rather then the hash map May 11 04:46:42 you see the changes after navigating back because the adapter is recreated May 11 04:46:59 its a custom baseadapter. it does not have a remove function May 11 04:47:13 you can always write one May 11 04:50:19 ok. i also tried to remove from the list instead. the item got removed immediately but everytime i returned to the current tab, the item would duplicate May 11 04:50:30 ill see what i can source up on the net May 11 04:51:21 be sure to remove the item from both the hash map and your adapter May 11 04:56:26 oh android, i love you May 11 04:56:34 *robot friend* May 11 05:08:56 anyone know if it's possible to install and run a native (non-Java) binary without root? I need a location on the device where I can chmod the binary to 777. May 11 05:09:36 nvm, got an answer in #android :) May 11 05:13:43 sharvil: out of curiosity, what was it? May 11 05:14:06 it was /data/local/tmp May 11 05:14:09 hey guys May 11 05:14:51 sharvil: interesting May 11 05:26:26 Greetings May 11 05:26:29 does somebody know how to "via adb" enable speakerphone, afte making 'service call phone 2 s16 "+123123123"' ? And than how to push tone number to session? May 11 05:26:32 i'm here now http://davanum.wordpress.com/2007/12/12/android-calldial-from-the-adb-shell-command-line/, but there is nothing to forward to my task May 11 05:35:17 hi May 11 05:38:22 I am beginner in android and i need help. I am sending every 3 seconds gps location to server. I am testing this application, for example, I manually switch off the Internet. Then the application does not connect again (I think it is blocked by the write function). My guess is that the problem lies in the fact that the disconnection occurs after the if statement. How to solve this problem? Here is code: http://pastebin.com/ek7he May 11 05:42:07 you should log the locaiton locally, and send it in batches much less often May 11 05:44:35 basilisk: it worked. didnt think it would be that easy May 11 05:51:00 mm. i'm warming up to this EmptyService trick to guard work that needs to be completed outside of a service. i used to think this was such a hack … maybe i just became more pragmatic :/ May 11 05:52:58 sorry for the off-topic msg, but is there an irc channel dedicated to network security? someone is hitting our server and i have to switch from doing android development over to doing some security for a bit. thanks May 11 06:23:47 "AT&T announced that it was dropping the price of the HTC First smartphone, which comes with Facebook Home built in, from $99 to 99 cents." .. that didn't take long May 11 06:25:53 yeah, i wonder if it wasn't selling as well as they hoped, or if they were planning this all along as a tax on the early adopters May 11 06:26:58 is anyone familiar with the NDK? I'm following the tutorial and cant seem to get the hello world to work. I searched on stackoverflow a bit, but none of the current posts seem to address the issue. May 11 06:27:33 holy cow, this is the first android tablet that has my interest. e-ink 4.1 tablet for survival use http://www.gizmag.com/earl-tablet-backcountry-survival/27446/ May 11 06:27:54 GPS/GLONASS/WAAS, solar recharging May 11 06:28:14 FRS/GPRS/MUR two-way radio May 11 06:28:23 fuck yeah May 11 07:11:18 is it true that it is impossible to use the JsonParser in pre-honeycomb? May 11 07:13:28 O.o May 11 07:19:49 man May 11 07:19:59 this has been bugging me all day and I can't seem to find anything when I google May 11 07:20:52 1.) Is there a way to use an Intent to make an https request (not just http) May 11 07:21:04 O.o May 11 07:21:08 and 2.) How can I better error handle the results? May 11 07:21:13 that's a… wierd question? May 11 07:21:33 it probably is, yeah. Sorry if I am understanding poorly. I'm new to this May 11 07:21:34 if you want to do ACTION_VIEW for https url, just specify it as such May 11 07:21:51 and there's nothing much you can to to error check it May 11 07:22:01 it is doing an ACTION_GET, and I am specifying .putExtra( "host", "https://blah" ); May 11 07:22:03 but I think you're trying to use a wrong tool for a wrong job ;) May 11 07:22:09 but my logcat says "http request" or whatever May 11 07:22:18 I might be, yeah May 11 07:22:27 I'll explain a bit May 11 07:22:37 I inherited this code and am essentially learning Android dev through it May 11 07:22:48 there was an API class that basically makes requests to our server May 11 07:23:01 so for example, getting the top 10 games May 11 07:23:12 is a function call into that API class May 11 07:23:35 the function basically creates an Intent with ACTION_GET, .putExtra( "host", "http://ourserver.com/someapi" ); May 11 07:23:44 a separate receiver class parses the json result May 11 07:23:57 that looks like a very terrible way to do it May 11 07:24:00 and then someone a fragment gets selected from that and becomes visible May 11 07:24:04 showing the list of games May 11 07:24:10 what would be the better way? May 11 07:24:48 (I'm so glad to hear this isn't the only way...I feel like this method ties UI and behavior together too strongly...and also is kind of a pain to debug / navigate) May 11 07:24:52 calling your API using HTTP methods in an asynctask May 11 07:25:15 so this for talking to HTTP servers: http://developer.android.com/reference/java/net/HttpURLConnection.html May 11 07:26:11 so like maybe the UI should transition to the new view, perhaps show a spinner, and then trigger an AsyncTask May 11 07:26:19 I mean, there IS a nice article on Android dev page right for that: http://developer.android.com/training/basics/network-ops/connecting.html May 11 07:26:30 is AsyncTask supported on older versions of Android? May 11 07:26:40 (opening these pages...will read after conversation) May 11 07:26:45 ProgramMax, usually I trigger spinners etc. in "onPreExecute" and hide them in "onPostExecute" May 11 07:26:49 in asynctask itself May 11 07:27:03 hrmmm k May 11 07:27:03 and yes, asynctask is supported since API 3 May 11 07:27:46 hrmm k May 11 07:27:53 I will google for some example async task stuff May 11 07:28:01 and see if I can migrate the app's existing behavior May 11 07:28:17 until I do, though, is there a quick-and-easy-but-crappy way to do this via Intents? May 11 07:28:19 ProgramMax, the last article I linked you has a step-by-step guide May 11 07:28:24 oh nice May 11 07:28:26 thank you May 11 07:28:26 just read the darn docs c'mon :P May 11 07:28:30 I will May 11 07:28:42 ProgramMax, Intents aren't really made for your usecase May 11 07:28:51 but there is a lot of the existing code I'll have to migrate May 11 07:29:10 from what I gathered, intents are more for launching the app that is supposed to handle that particular intent? May 11 07:29:10 wasting time for a zombie solution that will not work is not a good idea ;) May 11 07:29:12 well. May 11 07:29:19 sooner you start reading docs ;) May 11 07:29:43 ProgramMax, intent aren't really meant for use cases when you expect a result May 11 07:30:06 especially when you need control on execution of an operation May 11 07:30:21 they're just a way to invoke other components in OS May 11 07:30:36 k May 11 07:30:37 yeah May 11 07:30:42 using them to download a file when you have a perfectly fine HTTP API is crazy really :) May 11 07:30:48 I agree May 11 07:30:51 (I didn't write this) May 11 07:31:39 okay, will read those two pages now May 11 07:32:18 I appreciate the help, Mavrik :) May 11 07:50:22 does somebody know how to "via adb" enable speakerphone, afte making 'service call phone 2 s16 "+123123123"' ? And than how to push tone number to session? May 11 08:39:07 hi, I want to start some code when a fragment is made visible for the first time in a pager, what's the callback? onStart() doesn't do it May 11 08:48:29 Hello! Where I can find sample using actionbarsherlock + viewpagerindicator + tab listview? May 11 08:48:48 I found just with text strings May 11 08:49:00 but I can't rewrite them to ListView tabs :( May 11 09:01:24 found my bugs May 11 09:01:32 moving forward May 11 09:06:17 what if your bugs found you, and you're really moving backwards ? May 11 09:09:28 Hello. Could someone help me with the following issue? I modified qwerty.kl to recognize scancodes from my bluetooth keybord, I want to have scancode 127 invoke the same as a hard press on the menu key. I added this line "key 127 menu" but for some reason it's trying to activate the search key. May 11 09:12:29 g00s: i do not live in soviet russia May 11 09:12:52 :) May 11 09:12:57 so May 11 09:13:13 how do i rotate the android emu screen? May 11 09:13:39 http://pastebin.com/q7N97B8h is causing an exception saying "CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views." I understand the problem but I dont know how to fix it as it seems that the generation of the TeeChart that needs to be in its own task. May 11 09:14:13 So if im not allowed to initialize the chart from another thread and doing it in the UI thread causes lag - What do I do ? May 11 09:16:18 yay it's werking May 11 09:20:46 lite_ i believe you can use runOnUiThread May 11 09:24:06 what will happen if i do not have onPause and onStop implemented in my app when the screen rotates? May 11 09:24:19 i mean when the device orientation changes May 11 09:24:28 i use SSHDroid and found myself in ~/data/berserker.android.apps.sshdroid/home where are my files? May 11 09:24:30 (samsnung galaxy 3, not rooted) May 11 09:24:43 what files May 11 09:24:49 my sdcard May 11 09:25:03 run mount May 11 09:25:15 wsky: can i do that without being root? May 11 09:25:30 rather yes May 11 09:25:57 wsky: got it. root without any argument, correct? May 11 09:26:01 yes May 11 09:26:03 sorry i meant mount May 11 09:26:24 it'll show you mountpointas of your filesystems May 11 09:26:30 mountpoints* May 11 09:28:36 wsky: yeah. i see a few of them May 11 09:28:46 one of them is your sd card May 11 09:29:18 you can just browse the systems if you're uncertain May 11 09:29:22 yeah! /mnt/sdcard/ May 11 09:29:25 thanks a lot May 11 09:29:41 i've saved the day May 11 09:29:47 (: yup May 11 09:30:17 otherwise you would ask your incomplete question on this channel all day long again May 11 09:30:25 ahahah May 11 09:30:48 i was pissed with google drive. May 11 09:31:01 hey guys, GCM how long is a regId from messaging service is valid? May 11 09:31:12 when u mark a file to be stored offline it keeps it in a stupid location May 11 09:31:32 so i decided to ssh and move some files by hand May 11 09:31:52 from that stupid location to a place i put my files in. May 11 09:36:17 is there a good way to have a non-ui thread callback from an asynctask on finish? May 11 09:39:55 I am beginner in android and i need help. I am sending every 3 seconds gps location to server. I am testing this application, for example, I manually switch off the Internet. Then the application does not connect again (I think it is blocked by the write function). My guess is that the problem lies in the fact that the disconnection occurs after the if statement. How to solve this problem? Here is code: http://pastebin.com/ek7h May 11 09:40:31 When I'm doing step by step debugging and disable internet before if, everything is ok, but if I disable it after if, for example in second if, I get this issue. May 11 09:50:00 when i go to create a new project in eclipse, it asks me if id like to use a master/flow detail layout. i've never used one. is there a good example in the api demos? May 11 09:58:05 so frustrated with android right now May 11 09:58:38 such a pita to decouple asynchronous tasks with ui components May 11 09:58:52 s/with/from/ May 11 10:05:40 hello May 11 10:05:50 storkme: AsyncTask is what you need May 11 10:07:51 no, AsyncTask is shit May 11 10:07:59 it is most certainly not what I need May 11 10:08:34 what would be perfect for you? May 11 10:09:11 decoupling long running task from UI => use a Service May 11 10:09:47 doesn't even have to be a long running task May 11 10:09:52 storkme, meh, you're just ranting ;) May 11 10:10:01 Zharf: ;) May 11 10:10:11 true enough May 11 10:10:14 organize your code ;) May 11 10:10:42 I'm frustrated at flaws in the android sdk, and rightly so. May 11 10:10:58 well get WinRT or iOS May 11 10:10:58 someday I wish someone would explain the flaws to me :( May 11 10:11:05 DEAL WITH IT May 11 10:11:11 and get frustration in different areas ;) May 11 10:11:27 the flaws in asynctasks are well documented May 11 10:11:30 or try planting trees May 11 10:11:38 what flaws ? May 11 10:11:45 yeah - what flaws? May 11 10:11:59 I never used asynctasks really, I do my own threading May 11 10:12:02 http://stackoverflow.com/questions/3357477/is-asynctask-really-conceptually-flawed-or-am-i-just-missing-something May 11 10:12:26 whithout reading that link, I'd say "just missing sth" May 11 10:13:24 i see no flaws in thet SO article May 11 10:13:29 just a flaw in the coder May 11 10:13:41 dunning kruger May 11 10:13:54 "AsyncTask must never hold a strong reference to a context object." <- that depends on the problem May 11 10:14:09 I wonder if I could use an asynctask to post results to static members in the result object... May 11 10:14:28 uhh, I mean a thread, not an AsyncTask May 11 10:14:52 you can use a thread, put some try/catch code inside, add a RunOnUI May 11 10:15:05 and then you have that what is asynctask is doing ;) May 11 10:15:18 you May 11 10:16:09 my plan is to decouple the asynchronous task from the ui component - so if the user rotates the screen, the fetched result isn't lost. May 11 10:16:44 well to handle rotation in android there are 3-4 ways May 11 10:16:50 all my async stuff is in a service on my xmmsclient.. May 11 10:16:52 decide what you want May 11 10:18:57 storkme, https://github.com/kaeppler/ignition/blob/master/ignition-core/ignition-core-lib/src/com/github/ignition/core/tasks/IgnitedAsyncTask.java also looks promising May 11 10:22:22 I've heard good things about robospice, too. May 11 10:24:44 storkme, just use a non-ui fragment May 11 10:24:54 dump your data into it May 11 10:25:03 can't remember if you have to turn retain on May 11 10:25:14 but then just send the info back May 11 10:26:05 lasserix, I would like to see some examples on that, where to store that fragment etc? May 11 10:26:26 I'm not really up to speed with all fragment-fu May 11 10:26:57 scroll down to "a fragment without a ui" http://developer.android.com/guide/components/fragments.html May 11 10:27:35 in oncreate setRetainInstance(true) May 11 10:28:11 its just one way to do it May 11 10:28:23 you have to get a reference to it in your activity May 11 10:28:56 then rerefrence it by the fragmentmanager using the tag you added it to the activity May 11 10:29:05 if its null, get a new instance (ie run the first time) May 11 10:29:13 then you can have it do async task work May 11 10:29:27 and just return whatever data via some method May 11 10:29:40 I absolutely hate how I can't browse the stupid examples on d.android.com online May 11 10:29:46 hehe May 11 10:29:47 me too May 11 10:35:01 zharf what data are you holding? May 11 10:35:49 err i dont know who was originally asking ;p May 11 10:36:07 storkme May 11 10:36:19 I don't see a usecase for this in my app currently May 11 10:36:40 what do you get from using a fragment that you wouldn't get from using a singleton? May 11 10:36:51 all actual processing that my application "seems" to do is actually done by another application entirely :p May 11 10:37:49 storkme: idk but i believe fragments are often set up as singletons May 11 10:39:08 hey everyone, i have a question. every time i get my bearing (azimuth) from the orientation sensor, it's off by about 20 degrees. I've lined my device up with walls, buildings, streets, sidewalks.. all the same 20 degrees. is this an error specific to my device or could it have to do with my position on earth? May 11 10:39:26 my position relating to magnetic north vs true north May 11 10:40:08 either is possible May 11 10:40:42 how wide an area have you vheckeds? May 11 10:40:44 checked May 11 10:41:18 just my block really, it's to 4am and i don't have a car May 11 10:41:39 more likely to be the device then May 11 10:41:46 and walking around with a cell phone at 4 am would get it stolen and me beaten up. lol. May 11 10:41:50 do you have a magnetic case? May 11 10:41:56 or any case! May 11 10:41:58 ? May 11 10:42:03 i don't think so. it's an s3 with the flip case provided by samsung May 11 10:42:37 try pulling off the case, see if it,s perhaps got a tiny magnet in, which is distorting things May 11 10:43:07 float orientation[] = new float[3]; SensorManager.getOrientation(R, orientation); float azimuth = orientation[0] May 11 10:43:39 that value azimuth, is that degrees from true or magnetic north? May 11 10:43:56 because my magnetic declination is +14 to +16 or so May 11 10:44:46 I'm using it to rotate the google map, so.. i guess the question is what bearing is that azimuth returning, and what does google expect May 11 10:45:06 unsure alas. May 11 10:45:26 ha, i think it might be the case, brb May 11 10:45:31 I know how the hardware works, but I've no clue how it gets to software May 11 11:10:31 yay, no more silly android IM apps for me \o/ May 11 11:10:36 irssinotifier + bitlbee love May 11 11:14:00 hi May 11 11:14:39 Can someone help me with the installation process of the eclipse ADT May 11 11:14:50 I'm following hte tutorial but I get errors all the time May 11 11:18:12 why does the "View" in "implements View.OnClickListener" have to be used. Can't the View be imported? May 11 11:31:07 In eclipse whats the difference between library and source? May 11 11:43:03 Solupus -> a library doesn't have to include the source May 11 11:43:43 Solupus -> i imagine the source is for stepping through source code in the debugger though ive not yet used eclipse's debugger May 11 11:46:25 Solupus -> there's an #eclipse as well just so you know May 11 11:47:54 How do I change the activity at the end of an ASyncTask May 11 11:53:08 anybody May 11 11:53:28 how can i set visual touches from build.prop file? without opening the developer options? May 11 11:54:54 Does nobody know how to open an activity at the end of an Async? May 11 11:55:50 with new intent... how you regulary open activities.. May 11 11:56:04 you can't use the this May 11 11:56:14 new Intent(this, About.class) May 11 11:56:21 you can't use this outside of the Activity May 11 11:56:38 because of the handler this? May 11 11:57:05 pass the application context and use it! May 11 11:57:42 I'm currently using this May 11 11:57:43 params[0].startActivity(new Intent(LoadingMods.instance, ModList.class)); May 11 11:57:48 but it's a null pointer May 11 11:58:14 http://pastie.org/7830577 potential solution to my asychronous woes - have a SomeShittyIdea as a static member in my object, attach after setting up my view, if it isn't started then call 'start()', then detatch when I destroy my view. Look sensible enough? May 11 11:58:16 how would I create a proper instance of an Activity? May 11 11:59:16 what is params[0]? May 11 11:59:20 Context May 11 11:59:26 that one isn't the problem May 11 11:59:33 okay.. have you tried: May 11 11:59:58 params[0].startActivity(new Intent(params[0], ModList.class)); May 11 12:01:04 is there anything obvious I've overlooked? May 11 12:01:14 Wuppy21_: i m sure there is a way.. i may have done this, but i dont completely remember right now May 11 12:06:23 thanks Pasq I had to change the code just a little bit (add FLAG_ACTIVITY_NEW_TASK) and it worked :D May 11 12:22:56 if I have 2 seperate xml files.. and both of the have a button with identical id @+id/1234 , and both of them have an onClick method. is it possible in the view passed to the onClick method to differ between the two? May 11 12:27:33 why you want the same id in first place? May 11 12:28:09 guys anyone knows how to set the visual touches option in build.prop file? May 11 12:29:31 I have a landscapeVersion.xml and a portraitVersion.xml of something.. and it has several varieties.. but they also have 3 buttons each 6 in all May 11 12:29:43 and those buttons are suppose to do the same thing no matter landscape or portrait May 11 12:29:52 so I made.. one onClick method.. with a switch and 3 possible outcomes May 11 12:30:01 but 2 buttons for 1 outcome.. so actually 6 outcomes May 11 12:30:03 and seems to work fine May 11 12:35:02 why does the "View" in "implements View.OnClickListener" have to be used. Can't the View be imported? May 11 12:48:09 Hi, do most devices have like a "shock" detector ? You know for knowing when the phone was tapped ? Do most android devices the phones, have that ? May 11 12:48:13 new ones ? May 11 12:48:59 google android sensors May 11 12:49:20 thanks May 11 12:50:54 i think an accelerometer is what you want May 11 12:52:43 cooool ! May 11 13:03:16 screen -d May 11 13:03:31 monsti -> wrong window May 11 13:03:34 lol May 11 13:03:40 yeah ;) May 11 13:03:44 lag May 11 13:03:46 ;) May 11 13:47:41 can i debug an app over the wireless network instead of by cable? my cable is broke =/ May 11 13:48:22 also would be nice when the device needs charging because usb is slow to charge May 11 13:51:06 yes http://stackoverflow.com/questions/2604727/how-can-i-connect-to-android-with-adb-over-tcp May 11 13:51:31 either run some commands manually, or use a specific app May 11 13:55:12 <[deXter]> You'd also have to use something to keep your phone awake though, otherwise the performance over WiFi will go down a lot when the phone goes to sleep. May 11 13:55:41 <[deXter]> I use an app called "Blank Screen" which is just a blank screen, but keeps the phone awake, so adb works at full speed. :) May 11 13:55:44 <[deXter]> @ BullShark ^ May 11 13:56:00 [deXter] -> by awake/asleep, you mean the screen turning off? May 11 13:56:17 <[deXter]> BullShark, yeah, when the screen goes of the phone is in sleep mode May 11 13:56:38 <[deXter]> *off May 11 13:57:23 thanks for the info. ill be trying this. May 11 13:57:46 or go to wifi settings -> advanced and tell it not to sleep wifi May 11 14:00:36 <[deXter]> SuD, that doesn't always work May 11 14:08:44 does this integrate with eclipse? May 11 14:08:51 after doing the commands May 11 14:27:10 I'm using gmaps api v2 in an app: i know it has a gplay services dependency. running in andro-vm with gapps/etc installed is fine. however running it on a vanilla samsung s2 crasches. i did GooglePlayServicesUtil.isGooglePlayServicesAvailable(); and it returned "SUCCESS" - even though im not sure g-services is installed on it. May 11 14:27:29 never owned a physical android.. just lend it from a friend and reset the s2 May 11 14:28:12 anyone doing android dev with kotlin? May 11 14:28:33 bottom line: I need to ensure that all dependencies are available for running gmaps api v2 May 11 14:41:19 what am I suppose to call the different string files for country codes ? May 11 14:41:32 anyone know how to exclude libraries projects from intelij's code lint runs? May 11 14:41:34 just like strings.us ? May 11 14:52:28 <[deXter]> pfn! May 11 14:53:52 hi May 11 14:55:08 I have edittext in popup menu but long tap on text in edittext is not triggerin android's copy paste bar May 11 14:55:36 normally edittext's long tapping operation is triggering copy paste bar May 11 14:58:41 How can I provide text copy/paste operation for edittext in popup menu? May 11 14:59:02 sorry How can I provide text copy/paste operation for edittext in popup window? May 11 15:25:02 guys i need an idea for a new app May 11 15:25:13 something that doesn't require the internet.. May 11 15:28:23 no singleplayer games require the internet DarkSlayer May 11 15:28:33 like angrybirds .. plants vs zombies etc. May 11 15:29:21 Yeah but i'm looking for something new... May 11 15:29:48 There are already lots of anybirds clones May 11 15:29:56 then make an original game May 11 15:30:10 an rpg maybe May 11 15:30:16 Yeah but i'm not really an idea guy May 11 15:30:37 Any idea for something like a utility or tool? May 11 15:30:45 Something useful... May 11 15:30:45 then partner with a designer May 11 15:30:54 think about what would be useful to you May 11 15:31:23 write down ideas, and gradually narrow down concepts until you have something May 11 15:31:51 That's interesting. I never thought about doing that May 11 15:31:56 what would be useful to you thecodeischaos? May 11 15:32:15 Like have you come up with any ideas this way? May 11 15:33:54 thats generally how concept creation works. ideas need to be picked out and refined May 11 15:34:02 darkSlayer.. asking for genuily original ideas for apps.. is a bit silly in itself you must see that May 11 15:34:18 people tend to wanna keep those ideas for themselves May 11 15:34:59 Ah well it doesn't hurt to ask May 11 15:35:07 [deXter] , SuD, i tried the suggestion for tcp (instead of usb) debugging. it says the device is offline. normally, i would have a pop up asking me to allow usb debugging from a particular device, but I did not get that. May 11 15:38:36 i cannot launch an app on it due to adb devices -l showing it as offline May 11 15:38:59 not sure what that means since the adb connect 192.168.0.253:5555 command was successful May 11 15:40:27 Come on guys... Share May 11 15:40:44 you don't have enough time to writeup everything May 11 15:40:56 Let the little guy in on some action May 11 15:43:32 [deXter] -> does adb need to be ran as root on the pc (i'm using linux to develop) May 11 15:43:57 i'm guessing yes because windows needs "run as admin" May 11 15:45:06 nope =/ still says device offline May 11 15:45:53 darkSlayer instead of asking for peoples ideas go get some yourself.. its really not that hard.. one of the best ways to get an idea for something May 11 15:45:58 is to look for demand.. and start by yourself May 11 15:46:24 e.g. the guy who made justEat.. probably by now europes biggest 'order online and get delivered' site.. of food May 11 15:46:48 He was in norway.. wanting to buy food.. and couldn't find anywhere open and he thought 'there should be a website for this.. that lets me see where the places are' May 11 15:46:51 http://pastebin.com/56cyJMyQ May 11 15:47:13 so do the same.. when you use an android phone.. or tablet.. was bothering you thats missing.. May 11 15:48:30 lite you just set the same variable and overwrite it everytime May 11 15:49:12 whats the problem lite_ ? May 11 15:52:50 i solved it. May 11 15:53:14 i just needed to set the minValue initially to whatever was in obj May 11 15:53:49 Anyways. If I have a RatingBar that maxes at 5 stars. How do I programatically set the amount of stars with a .5 stepsize? May 11 15:55:26 (i.e I have 'int rating(0-10)' and want to set the RatingBar accordingly with 0 being 0 stars, 5 being 2.5 and 10 being 5.) May 11 15:57:40 never used a RaginBar.. but what I usually do is just browse through all the attached xml functions for it a Rating bar you say ? May 11 15:59:00 try android:progress android:stepSize .. android:numStars May 11 15:59:04 some of the first ones I saw May 11 16:15:10 Hey guys, got a question: I am constructing a table grid with different sized objects one can move displayed by different background colors in those cells. It also has a scroll and pinch-to-zoom function. Right now, using a ScaleDetector I get the new scale and then resize every single cell's size. This ain't a problem on a 20x20 grid, but e.g. on a 40x40 grid its way too laggy. I can't use the SetScale functions as that screws May 11 16:15:38 Do you have any suggestions how to move on? Should I "draw" the tablegrid somehow instead of using android's tablegrid? May 11 16:18:22 Guys, is the Accelorometer sensitive enough to determine with it if a tap occured on the phone or a sequence of taps. May 11 16:18:32 <---- oldnoob May 11 16:18:43 no wait. May 11 16:18:46 ? May 11 16:19:09 Opium May 11 16:19:14 hi May 11 16:19:15 Are you on something ? May 11 16:19:17 no May 11 16:19:18 LOOL May 11 16:19:18 hi May 11 16:19:25 hehe May 11 16:19:33 i dont do drugs May 11 16:19:38 i just like how opium sounds May 11 16:19:48 anyway ummmm, the question. May 11 16:20:26 it's the drug of channel operators May 11 16:24:20 Hey guys, got a question: I am constructing a table grid with different sized objects one can move displayed by different background colors in those cells. It also has a scroll and pinch-to-zoom function. Right now, using a ScaleDetector I get the new scale and then resize every single cell's size. This ain't a problem on a 20x20 grid, but e.g. on a 40x40 grid its way too laggy. I can't use the SetScale functions as that screws May 11 16:24:22 Do you have any suggestions how to move on? Should I "draw" the tablegrid somehow instead of using android's tablegrid? May 11 16:27:54 how might I create a reusable, consistent layout for our entire application? by layout, I mean a custom header, footer, and other UI elements. and tags allow you to nest siblings and children, but what about the other direction? May 11 16:28:28 I could programmatically create the layout, perhaps, but that would be tedious May 11 16:29:02 erisco_, use fragments myb May 11 16:42:49 Should if(obj.DateTime.isAfter(DateTime.now().minusDays(DAYS_MEASURED))) List.add(obj); not add all objects that are DAYS_MEASURED or newer? May 11 16:43:02 (jodatime.DateTime that is) May 11 16:46:36 brx_, I have to support API level 10 May 11 16:46:50 ugh, my sensor listener won't stop onpause() or when back button is pressed :( :( :( May 11 16:47:50 tried manager.unregisterSensorListener(mSensorListener) but no use May 11 16:47:56 thread is stopped as well May 11 16:49:04 Is the Accelorometer useful for detecting taps on the phone ? May 11 16:50:36 erikj, you can use the support library May 11 16:51:02 Tricknology_ -> do you mean touch or phone movement? May 11 16:51:43 Hey guys, got a question: I am constructing a table grid with different sized objects one can move displayed by different background colors in those cells. It also has a scroll and pinch-to-zoom function. Right now, using a ScaleDetector I get the new scale and then resize every single cell's size. This ain't a problem on a 20x20 grid, but e.g. on a 40x40 grid its way too laggy. I can't use the SetScale functions as that screws May 11 16:51:45 Do you have any suggestions how to move on? Should I "draw" the tablegrid somehow instead of using android's tablegrid? May 11 16:51:54 Tricknology_ -> there is two apps, one called SleepTime that is free. It measures your movement during sleep to determine how deep your sleep is. May 11 16:52:05 Tricknology_ -> i imagine it is doing the same thing that you want May 11 16:52:38 Tricknology_ -> just look at it's manifest maybe for some hints and there's a dex2jar on google code and a jd-gui (also free) that you can decompile java bytecode May 11 17:20:59 can anyone point me in the right direction, I want to create something like this http://imgur.com/zegmp2X,fimDcVy May 11 17:24:52 brx_ that a fancy progress bar or is it also interactive? May 11 17:26:42 lasserix, basically as you move finger horizontally (not neccesarrily along the line of the arc) the thumb moves May 11 17:27:00 color fills as you scroll like in a seekbar May 11 17:27:14 ahh May 11 17:27:18 so that's a custom view May 11 17:27:41 ye May 11 17:27:44 basically you'll have to use a canvas and draw the bg arc, then draw the arc on top with the circle handle May 11 17:27:55 as a function of finger position May 11 17:28:50 brx: http://www.androidenea.com/2011/10/creating-custom-view-part-1-graphics.html May 11 17:28:58 this will get you started, but you'll have to adapt the graphics May 11 17:29:09 i haven't done too much with canvas to draw arcs, but i know it can be done May 11 17:29:26 lasserix, ahh ok, so simply modifying the drawables for a seekbar will work here May 11 17:29:37 will not* May 11 17:29:45 it could? May 11 17:30:10 you could probably do that if you dont care where the finger is as long as it is sliding horizontally May 11 17:30:11 i think if it was straight instea dof arc it could be echeived that way (drawables) May 11 17:30:18 ahh i see May 11 17:30:37 here's one for customizing seek bar http://www.mokasocial.com/2011/02/create-a-custom-styled-ui-slider-seekbar-in-android/ May 11 17:30:59 out of curiosity, is there a way to move the seek bug on a seekbar slower the farther away the finger is? (Ie, like the volume/seek control on the volume control in iOS?) May 11 17:31:02 i think it'll work you just need to make your gfx May 11 17:31:12 lasserix, cheers dude May 11 17:31:27 yeah you just subclass the seekbar, and handle the touch events May 11 17:31:44 ie, apply some scaling factor depending on the distance of the event from the position of the cursor of the bar May 11 17:31:56 there might be some methods but i dunno May 11 17:32:02 *some api methods May 11 17:32:21 right -- should have said, besides actually doing all the work needed :-) May 11 17:32:52 brx_ tbh I think a custom view might be easier in the long run, if it takes a little work in the beginning May 11 17:33:52 kbs: shouldn't be too hard ;p May 11 17:33:59 ok lasserix looking into it now May 11 17:42:53 hi May 11 17:43:24 copy/paste operation is not triggering for Edittext in popup window May 11 17:44:03 adb you truly are a whore May 11 18:42:01 where did we all go right now? May 11 18:44:05 anyone here? **** BEGIN LOGGING AT Sat May 11 22:32:26 2013 May 11 22:34:05 if anyone has done glsl work here, where do you recomend storing the shaders? as texts in assests or java strings? May 11 22:35:36 hi **** BEGIN LOGGING AT Sat May 11 22:39:18 2013 May 11 22:41:06 <|0xD34D|> lasserix: I've stored them as assets and then had a class that would load a given shader from an asset May 11 22:46:50 HEy May 11 22:47:13 I have this problem. Look here.. May 11 22:47:14 http://stackoverflow.com/questions/16501791/imagebutton-dialog-issue May 11 22:54:10 How do I go about finding and installing a USB driver that will work on my old G1 and my new HTC amaze 4g? May 11 22:57:51 everbody is asleep May 11 22:58:20 4pm pacific time.. it's nearly morning for coders :) May 11 22:58:40 I wanted to say "nerds" but some people still don't consider that a compliment May 11 22:58:43 fortunately some are sleepwalkers May 11 22:58:49 lol May 11 22:59:19 Someone can look at my issue May 11 22:59:34 I don't understand why a search for "htc usb driver" doesn't just take me to a page on htc's site.. May 11 22:59:53 let me find one for you May 11 22:59:54 and I don't recall different drivers being needed for different phones :/ May 11 23:00:43 I want to unlock my old G1 (rooted) to give it to a friend who's on another carrier May 11 23:01:05 and my new computer isn't setup to do android dev either.. :/ May 11 23:01:32 llhami: maybe this one? http://www.teamandroid.com/download-android-usb-drivers/ May 11 23:03:16 I wonder if it'll still work if I test it by installing it in a sandbox (I like keeping my system clean.. unless I know i want some software permanently I sandbox it) May 11 23:03:24 I know a forum May 11 23:03:26 (see the software "sandboxie") May 11 23:04:55 http://www.xda-developers.com/ try here May 11 23:05:00 they have a forum May 11 23:20:46 hi all! how do i use the google accounts api for user management in my app? May 11 23:26:09 damn irc is dead May 11 23:26:11 on the weekends May 11 23:26:41 well do you have something to ask? :) May 11 23:27:09 anybody ever use jfeinstein10's SlidingMenu library May 11 23:27:11 ? May 11 23:27:22 TinkerTailorHC: yes May 11 23:45:03 nobody here? May 11 23:47:50 Everybody is asleep? May 11 23:55:06 ...HALLO May 11 23:56:43 hallo May 11 23:57:22 you there? :D May 11 23:58:27 http://pastebin.com/HM0KPHcb I have this error log May 12 00:00:46 Ilhami: sorry but i started with android i few days ago... i think i can't help... May 12 00:00:59 nobody else here? May 12 00:02:51 what happens when it cuts off the end of the log with "11 more"? May 12 00:04:12 Caused by: java.lang.NullPointerException May 12 00:04:12 at dk.droidrun.droidrunapp.SaveRouteActivity.onCreate(SaveRouteActivity.java:125) May 12 00:07:00 Thanks. Didnt see that :D May 12 00:07:46 When I comment out that line the next line gives error May 12 00:55:20 anybody here??? May 12 01:00:28 hello May 12 01:04:45 lasserix May 12 01:43:50 what am I doing wrong if I'm getting the message "the import com.me.MyProject.R cannot be resolved" May 12 02:03:30 nevermind May 12 02:15:57 anybody here? May 12 02:19:16 TIL i can't tell the difference between I and l on my font Ilhami :) May 12 02:19:33 :D May 12 02:19:37 http://pastebin.com/rkgUimP3 May 12 02:19:39 everybody is en route to I/o :) May 12 02:19:47 I get a nullpointer May 12 02:19:53 hmm May 12 02:20:02 indeed you do May 12 02:20:07 but why? May 12 02:20:08 g00s: heh. I read that as a certain moon May 12 02:20:09 don't do that :) May 12 02:20:18 I will show you my code May 12 02:20:19 LOL May 12 02:20:42 p_l|omoikane: do they have any i/o extended out where you are ? May 12 02:20:58 g00s: they do May 12 02:21:05 going? May 12 02:21:09 plannin on going, yes May 12 02:21:17 http://pastebin.com/mn0aha5D Look here May 12 02:21:21 BLE : what do you think ? May 12 02:21:26 There is certainly something wrong May 12 02:22:01 I need to sleep very soon.. its 4.30 am... May 12 02:23:31 I am calling this dialog from another activity May 12 02:24:18 i haven't touched dialogs in a long time May 12 02:25:44 :D I thought you were a code shark May 12 02:25:44 :D May 12 02:26:33 should I ask stackoverflow again ? May 12 02:27:32 dialogs are like ghettos May 12 02:27:49 ?? May 12 02:27:51 i think my last app had one; i try not to use them May 12 02:28:38 you cant solve my problem? I will fix it tomorrow then. May 12 02:31:03 i can solve your problem! dont use the dialog :D May 12 02:31:10 hhh May 12 02:33:26 I will ask here tomorrow May 12 02:33:27 good night May 12 02:47:36 Grrrrrrr May 12 02:47:46 robospring why you no like android annotations May 12 02:48:12 trying to save writing boilerplate has wasted me more time than writing boilerplate !!!!!!!!!!!! May 12 02:49:27 TinkerTailorHC: thats very common; look at Spring ! May 12 02:50:03 :) May 12 02:51:12 i meant Spring as an example of something to Simplify, but it became the Behemoth May 12 02:51:52 ahhh lol :D May 12 02:52:58 whoo, figured out how to render video on opengl texture May 12 02:53:08 Google really needs to document that more -_- May 12 02:53:16 Nice May 12 02:53:20 what did you do? May 12 02:57:24 initialize opengl context on a TextureView, create a texture there, pass that texture to MediaPlayer May 12 02:59:07 ahh so its in java May 12 02:59:14 yeah :) May 12 02:59:35 I remember asking you if it was ndk or java but i think i disconnected a short while after by accident **** ENDING LOGGING AT Sun May 12 02:59:59 2013