**** BEGIN LOGGING AT Sun Jan 13 02:59:59 2013 Jan 13 03:00:20 if you dont get a response, try google groups Jan 13 03:00:42 honestly, i dont see many renderscript questions in this channel. i wonder how often it is used Jan 13 03:05:03 I just hope it's worth it's weight. I need a significant peformance increase. Jan 13 03:09:34 time for a prototype :) Jan 13 03:09:45 "tracer bullet" Jan 13 03:12:09 nice article on handling empty space http://tympanus.net/codrops/2013/01/09/designing-for-the-empty-states/ Jan 13 03:21:09 anyone know the efficiency/speed difference between a Hashtable and some if-statements? Jan 13 03:27:26 :| Jan 13 03:28:29 anyone available to assist with a webview issue I have, I have permissions set to internet and attempt to load the URL, the webview never actually does anything. Jan 13 03:31:16 hashtable is O(1), if-statement switching is average-case(n/2) if your probability is normally distributed Jan 13 03:35:22 http://pastebin.com/6BRRCW0u Jan 13 03:35:27 if anyone wishes to assist me please Jan 13 03:36:58 http://www.mkyong.com/android/android-webview-example/ Jan 13 03:38:28 capella, if you had looked at my code the only thing I am not doing is starting a new activity that is the webview. I am wanting an embedded webview within the app "frame" i have existing Jan 13 03:44:12 MercuryTW: thanks Jan 13 04:26:33 Is guy who knows Renderscript in here? I'd like to check my understanding of how it works Jan 13 08:33:53 i'm soo tired of bugreports from pissed off custom rom users not understanding that the errors are in their nightly builds, not my app. Jan 13 08:33:59 :P Jan 13 08:34:29 it would be awesome if you could disable the ability of those people to review / report comments :D Jan 13 08:34:51 doesn't sound very google-y Jan 13 08:35:30 technically, if you have a custom rom; are you allowed /legally/ to have the play store installed ? Jan 13 08:35:42 sure, or at least the rom showing in the post as with the phone model Jan 13 08:36:03 CM guys could not bundle Play/Market/Google apps because of copyright, right ? Jan 13 08:36:25 no i think its some separate thing you need to install Jan 13 08:36:45 i'm totally ignorant here - does google sanction that? Jan 13 08:36:56 correct, CM and other popular roms don't bundle the google apps. instead users download a separate gapps packages (which is technically piracy) and flash that after the rom Jan 13 08:37:16 I think Google's original statement to CM was saying that users could pull the google apps off their phone before flashing the custom rom, and maybe early CM builds had a script to do it Jan 13 08:37:47 but it didn't work in practice because people will load CM ICS on a Gingerbread phone and the original google apps won't work on the new system version Jan 13 08:38:04 ah Jan 13 08:43:32 the main issues, for my apps, i see from custom roms is lack or improper hardware acceleration. usually i just tell these people that my apps require proper hardware acceleration and they should try a stable rom. sometimes they come back acting like i'm an idiot and that it's just an incompatibility with Android 4.2 or something and i tell them i've tested on every official 4.2 device without issue and they more or less back off (or i Jan 13 08:43:32 their emails). Jan 13 08:43:47 so every time i start a fresh session of eclipse and press the Run button it tells me "no compatible targets were found. do you wish to add a new AVD?" Jan 13 08:44:07 how do i add an AVD permanently? Jan 13 08:44:49 or should i first go into AVD Manager and start up my device? Jan 13 08:45:00 AVDs will persist, just adding one at that time should work. Is that not what you're seeing? Jan 13 08:45:14 kevinb: yeah, likewise my app deals heavily with Bluetooth and thats a clusterfuck on a good day; if they want to buy the app and assume the risk if it doesn't work then its ok by me - but i dont want a bad review if i say official roms only Jan 13 08:45:20 well, i do have two devices in my AVD Manager now Jan 13 08:45:47 and they both have a green V Jan 13 08:46:53 g00s: ah yeah i imagine bluetooth would be a pain even on just official roms Jan 13 08:47:45 how do you rotate the android emulator? Jan 13 08:47:53 notgoingtosayhow Jan 13 08:47:55 ive set up heaps of avd's Jan 13 08:48:00 and they wont fix Jan 13 08:49:06 i think it's like f11 or control-f11 or something. i might be making that up though. there's a page on the developer.android.com site that has keyboard shortcuts for the emulator Jan 13 08:49:42 ahh fixed Jan 13 08:49:51 i had to just change the resolution Jan 13 08:50:36 that is ofc a way of doing it, but there should be an option of tilting the screen virtually, right? Jan 13 08:51:04 its easy,if your eusing a laptop Jan 13 08:51:11 lol k0nichiwa Jan 13 08:54:38 seriously.. after taking ages to load my virtual device it's now "upgrading" what kind of trolling is this? Jan 13 08:57:12 i should be using an 8 to 16 core machien, think how much faster this ndk stuff would compile Jan 13 08:57:45 altho i dont know if its set up to do parallel compiles out of the box Jan 13 09:01:02 kevinb, are u taling about cyanogenmod ? Jan 13 09:01:29 yes Jan 13 09:02:25 http://pastebin.com/6BRRCW0u if anyone wishes to please assist me. I cannot seem to get WebView to do jack anything, no errors, no nothing .. stares at me blankly, ive tried loadData, loadUrl and loadDataWithBaseURL Jan 13 09:02:57 thats wut im runnin Jan 13 09:03:41 are any cyanogenmod's "stable rom" ? Jan 13 09:04:22 phreakshow, just a guess did you add internet permission to manifest Jan 13 09:04:45 yes Jan 13 09:05:03 my program uses ajax calls behind the scenes to even get this far (load/retrieve data from remote server) Jan 13 09:05:04 CMusers tend to use the latest nightly Jan 13 09:05:22 this is with emulator and android 2.3.3 though (unfortunately i have to back support..) Jan 13 09:05:25 any reason why using a date or time picker in a dialogueFragment calls on*Set twice when completing ? Jan 13 09:07:07 StingRay_: is it called when the control is created, then again when the value is actually changed? Jan 13 09:08:19 brx, any ideas? Jan 13 09:08:34 im at a standstill on this and i have to figure it out .. been at it for a while now Jan 13 09:09:09 phreakshow, im afraid not, can you get anything loaded in the webview at all under any conditions? Jan 13 09:09:17 Leeds oh cheers, that makes .... well...hmmm.... Jan 13 09:09:33 nos ir Jan 13 09:09:34 no sir* Jan 13 09:09:42 StingRay_: or the other way to see it - it's called every time the value is set - including when the *initial* value is set Jan 13 09:09:46 /maam .. whichever applies Jan 13 09:09:47 :) Jan 13 09:10:14 not sure then matey, I would start a new project and get some sample code for the webview Jan 13 09:10:26 Leeds so what is called when the user confirms the values on the dialogue ? Jan 13 09:10:53 as in any single event ? Jan 13 09:11:06 StingRay_: presumably you've got a confirmation button in the dialog? Jan 13 09:11:23 indeed, tis just the standard timepicker Jan 13 09:11:54 so the event you're actually looking for is the button being pressed, surely... Jan 13 09:12:09 or the dialog being closed... Jan 13 09:12:26 wb brx Jan 13 09:12:28 try starting from scratch phreakshow with a really simple webview class, to ensure there are no confounding effects from the rest of your program Jan 13 09:12:36 well depends across versions, I see 3 < and 3> are different Jan 13 09:12:42 k Jan 13 09:12:52 that and that the emulator functions as is intended Jan 13 09:12:53 3 > ok and cancel Jan 13 09:12:55 err expected Jan 13 09:13:09 3 < single confirm button Jan 13 09:13:16 ye :< Jan 13 09:13:38 get a device if you want to dev android imo phreakshow :p Jan 13 09:14:08 my gf had one.. broke the damn screen.. was going to get it fixed.. then she dropped it in the toilet :( Jan 13 09:14:09 i have an old htc and a new tablet, that way i can account for most things (i hope) Jan 13 09:14:10 lol Jan 13 09:14:17 dont ask me how .. i have a tab Jan 13 09:14:18 dum her, deffo Jan 13 09:14:20 dump* Jan 13 09:14:24 lol Jan 13 09:14:50 but need to find samsung cable first.. u know how that is.. it has to be "official" for computer to do anything with it :( Jan 13 09:14:57 phreakshow: is there some part of that story you aren't telling us :D Jan 13 09:15:08 seems like a pretty upset gf Jan 13 09:15:15 her getting drunk and setting her phone on her leg? Jan 13 09:15:16 lol Jan 13 09:15:38 i'd be livid, i'd literally have a baby Jan 13 09:15:52 my sister has dropped quite a few phones in the toilet Jan 13 09:15:57 women just got talent like that Jan 13 09:16:27 it was a free phone, irrespective i have to get her a new smartphone.. cant complain entirely too much Jan 13 09:17:11 wow, only 414 members. Jan 13 09:17:35 i remember when it was almost 700 Jan 13 09:18:04 g00s, its a sunday too, most just aint hardcore enough Jan 13 09:19:11 aren't most of america sleeping right now? Jan 13 09:19:33 it was always constant in the 600s for … years Jan 13 09:19:38 g00s: how many in #windowsphone-dev? :) Jan 13 09:19:41 ah ok Jan 13 09:19:53 is there a windows phone dev channel :P Jan 13 09:20:00 doubt it Jan 13 09:20:19 theres an #iphonedev...my gawd theres some tards on that channel Jan 13 09:20:30 what do you program windows phone in ? NET ? silverlight ? Jan 13 09:20:42 frontpage Jan 13 09:20:47 c#, c++, js, caml Jan 13 09:20:51 *xaml Jan 13 09:21:11 not sure if you can use f# or not Jan 13 09:21:15 can you use native code from c# ? Jan 13 09:21:23 or just managed code Jan 13 09:21:31 hmm Jan 13 09:21:36 ron frown would know Jan 13 09:21:55 c# can call into c++, and c++ is a first class citizen Jan 13 09:21:59 dunno any more Jan 13 09:23:01 does the google marketplace have a way of selcting form a set of abi's you provide if your app uses native code, i wonder ? Jan 13 09:23:18 that would make using native code really seamless, no bloat of installing a bunch of so's the user doesn't need Jan 13 09:23:41 what could the reasons be for "Installation error: INSTALL_FAILED_MISSING_FEATURE" ? Jan 13 09:24:12 i would think you specify you require ssomething in the manifest that wasn't available on the device Jan 13 09:24:15 your device doesnt have some hardware Jan 13 09:24:37 alright, where do i find this logcat for more details? Jan 13 09:24:57 lime download catlog app Jan 13 09:25:22 oh, it doesn't come with the ADT package? :/ Jan 13 09:25:30 just do adb logcat Jan 13 09:25:36 okay, I think it's time to make a change to the developer settings... you should have to find an activation code in logcat *before* you're allowed to compile or install apps Jan 13 09:25:44 oops, i was wrong - no JS on WP8 Jan 13 09:26:35 "Windows Phone Runtime is a subset of native API that is built into the operating system. It is implemented in C++ and projected into C#, VB.NET, and C++, making it easy for you to consume naturally in the language of your choice. " Jan 13 09:26:40 if you haven't found logcat yet, you're not actually doing development, you're just messing around Jan 13 09:26:57 leeds, you're damn right i'm just messing around :D Jan 13 09:27:09 yeah but u gotta use thse stoopid tiles Jan 13 09:27:45 well, i think it was smart their runtime is in C++ and not in C# (like android's framework is in Java) Jan 13 09:28:13 although, of course, there is a lot of c/c++ stuff under the java layer Jan 13 09:28:13 i've written some java code (very noobish stuff) ..and found a tutorial on how to setup the basics for a LWP, but i keep running into new errors Jan 13 09:28:55 so for the time being i'm just trying to reach the tiniest results Jan 13 09:29:46 LWP ? Jan 13 09:29:52 live wallpaper Jan 13 09:31:19 i have close to no idea of what i'm doing :D ..but i'm certain that i'm closer to an result than i was...uhm...a week ago Jan 13 09:31:42 how can you be certain :P Jan 13 09:32:08 i installed ADT less than a week ago :D Jan 13 09:32:18 before that i just had standard eclipse Jan 13 09:32:31 for me that's a big step forward :D Jan 13 09:35:08 well shit, FireFox on mac doesn't seem to scroll d.android.com correctly Jan 13 09:35:25 with gestures anyhow Jan 13 09:35:30 use chrome Jan 13 09:35:41 heh Jan 13 09:35:46 I use Chrome on mac and for real dev Jan 13 09:35:54 I use Arch/BBQLinux Jan 13 09:36:20 aaauuuwww yeaaaahhh, finally found the logcat \o/ Jan 13 09:36:26 i like that FF can override the font for all websites; Chrome doesn't have that and I'm stuck reading docks in Roboto, which I detest Jan 13 09:36:51 i guess i could make a Custom.css, crap Jan 13 09:37:28 lime: catch it quickly before it runs away :) Jan 13 09:37:41 :D Jan 13 09:39:59 http://pastebin.com/8GtTaRkx Jan 13 09:40:07 alright, does this make any sense to anyone? Jan 13 09:41:06 do you need in the manifest ? Jan 13 09:42:12 yup Jan 13 09:42:15 android.software.live_wallpaper Jan 13 09:42:22 Jan 13 09:42:23 http://developer.android.com/guide/topics/manifest/uses-feature-element.html Jan 13 09:42:23 is all i have Jan 13 09:43:29 hm Jan 13 09:44:42 can i only compile the lockscreen? Jan 13 09:45:51 notgoingtosaywho: BBQLinux? Jan 13 09:45:59 fuck that, wolvix FTW ! Jan 13 09:45:59 bbqlinux.org Jan 13 09:47:03 wow, i haven't been to distrowatch in years … wtf is Mageia Jan 13 09:47:37 BBQlinux isn't even on the top 100 linux distros, lame Jan 13 09:48:08 i know Jan 13 09:48:09 even Joli OS has more users than you guys :P Jan 13 09:48:15 i dont make it Jan 13 09:48:19 BBQ team does Jan 13 09:48:44 whats special about it ? Jan 13 09:48:47 any reason why my AVD locks up when i set the target api to level 15? Jan 13 09:49:21 its for android dev's Jan 13 09:49:42 github.com/bbqlinux Jan 13 09:51:12 cargo cult linux, eh Jan 13 09:51:33 i'm looking at the repos; i don't get it Jan 13 09:51:42 well, good luck to you :D Jan 13 09:51:57 its not me Jan 13 09:51:59 lol Jan 13 09:52:00 it's just skinned debian sid I think Jan 13 09:52:02 meh Jan 13 09:52:11 i know the guy's who work on it Jan 13 09:52:22 all 4 of them :P Jan 13 09:57:20 Wozniak says he once used a blue box to call the Pope. Jan 13 09:57:24 \o/ Jan 13 09:57:43 not all 4 Jan 13 09:57:53 but a few extra people who contribute Jan 13 10:05:10 the pope doesn't answer phones Jan 13 10:06:11 http://www.quitor.com/wp-content/uploads/2010/08/Bildes-20.jpg Jan 13 10:07:44 they should make that like one of those quiz shows where you have to catch money Jan 13 10:08:08 seems the popemobile would be great for that Jan 13 10:11:38 morning all Jan 13 10:11:43 anyone awake yet? Jan 13 10:12:08 I'm having some trouble with a library project, and I can't seem to find anything useful that explains why Jan 13 10:12:26 morning Jan 13 10:12:56 offs why does date or time picker call onTime/onDate Set twice in anything above 3.0 and once on anything below ? Jan 13 10:13:03 is that not just silly ? Jan 13 10:17:52 so I've refactored some of my code into a library project Jan 13 10:17:57 and it uses some external JARs Jan 13 10:18:30 now the main project is throwing NoClassDefFoundError exceptions when trying to use code from the library project Jan 13 10:18:59 ah, right, that happens to me as well from time to time Jan 13 10:19:01 the JARS are listed under "Android dependencies", and the JARs themselves are listed as being in the library project's folder Jan 13 10:19:11 any idea what I've missed? :-/ Jan 13 10:19:17 I've tried cleaning and rebuilding both projects Jan 13 10:19:24 ehm, there are a couple of things that could be wrong Jan 13 10:19:30 I'm all ears :) Jan 13 10:20:24 I usually readd the library project and it sometimes fixes it Jan 13 10:20:54 just to clarify, do you only get this for the classes defined in the .jar that the lib project includes? Jan 13 10:21:00 or for every class? Jan 13 10:21:29 just tried the re-add, and no joy Jan 13 10:21:39 I get it for classes in the .jar that the lib project includes Jan 13 10:21:51 no problem accessing the classes defined in the lib project itself Jan 13 10:22:10 which folder is the jar in? Jan 13 10:22:17 $PROJECT/libs? Jan 13 10:22:29 brb Jan 13 10:22:33 basically: my project has an Activity which calls a few methods from the library class. The first few work fine, then the third uses a class from an external JAR referenced by the library project Jan 13 10:22:36 that's the one that fails Jan 13 10:22:39 yes, libs Jan 13 10:22:47 not lib :) Jan 13 10:22:53 ok Jan 13 10:23:29 <\0x90\> ok .. i'm learning both java and android for like 10 days now. messing about with sockets. can somebody explain to me why are people on internet trying to send messages from oncreate, just after they call a asynctask (point is: there's no time for socket to initialize and connection to complete, so sending messages either don't work or throw a exception) Jan 13 10:23:32 <\0x90\> or am i missing something here ? Jan 13 10:25:12 dmi: right, erm, I'm guessing you've also seen http://android.foxykeep.com/dev/how-to-fix-the-classdefnotfounderror-with-adt-17 Jan 13 10:26:00 and another thing which could be wrong is that the library project is set to use the wrong version of java Jan 13 10:26:29 \0x90\: sure it's not an anonymous method/class that's passed? Jan 13 10:27:49 both are newly-created Jan 13 10:27:52 <\0x90\> Anoia, http://myandroidsolutions.blogspot.com/2012/07/android-tcp-connection-tutorial.html Jan 13 10:28:04 <\0x90\> here's an example. this code doesn't work for me (i modified it a bit though) Jan 13 10:28:32 Maurits_: and I know about the issue in the link; my JARs are in "libs", not "lib" Jan 13 10:28:55 <\0x90\> it say if socket != null { sendmsg(); }, but before that it does new connectTask().execute(""); .. which spawns asynctask and calls socket in a different class Jan 13 10:29:03 dmi: I've also had this error because the lib project was building against another version of the JDK than my main project Jan 13 10:29:29 which you can check in project properties -> java compiler Jan 13 10:30:01 Maurits_: I can't see anything there; it has no project-specific settings for either Jan 13 10:30:04 <\0x90\> i'm wondering am i making a mistake somewhere while modifying the code for my purposes, or are these people seriosly assuming that socket will connect before you press a button Jan 13 10:30:08 so it should be using the global default JDK Jan 13 10:30:17 right, hmm Jan 13 10:30:22 I know :-/ Jan 13 10:31:06 that's all I can think of from the top of my head Jan 13 10:31:33 thanks for the help this far, anyway :) Jan 13 10:31:59 np, I've also had this issue magically go away after a while Jan 13 10:32:11 * dmi sighs Jan 13 10:32:26 annoyingly the bits I'm developing now rely on this Jan 13 10:32:28 maybe a bit of cargo cult debgugging ;) Jan 13 10:32:33 heh Jan 13 10:32:39 ooh, I know! I'll try restarting eclipse Jan 13 10:33:43 dammit Jan 13 10:33:46 for a moment, I thought it had worked Jan 13 10:33:57 but it was just that I'd commented that section out :( Jan 13 10:34:20 does anyone know of examples of people doing this? Jan 13 10:34:28 public open-source examples Jan 13 10:35:03 doing what ? Jan 13 10:35:43 using jar in a lib project ? Jan 13 10:35:57 well, I'm doing it and it works Jan 13 10:36:02 same Jan 13 10:36:12 StingRay_: yeah Jan 13 10:36:20 there no errors in your build path for the lib project ? Jan 13 10:36:23 I just want to see if it's something that I've messed up, or something wrong with my build system Jan 13 10:36:32 no Eclipse errors at all Jan 13 10:36:33 as in java build path > library tab Jan 13 10:36:41 I'm including libGoogleAnalytics.jar from my lib project for example Jan 13 10:36:49 StingRay_: green tick there Jan 13 10:37:53 dmi ? green tick ? Jan 13 10:38:07 no not settings > android Jan 13 10:38:11 oh, my mistake Jan 13 10:38:20 :) Jan 13 10:38:35 settings > java build path > libaray tab Jan 13 10:38:37 but no, the JARs are listed and I see nothing about errors Jan 13 10:38:56 location of embedded jars ? Jan 13 10:39:15 the path is the libs folder of the library project Jan 13 10:40:04 e.g. eclipseWorkspace/project-util/libs/ Jan 13 10:40:11 the project itself has no other JAR references Jan 13 10:40:25 huh, and you can import *.*.jarclass ? Jan 13 10:40:36 and thats fine ? Jan 13 10:40:43 as i eclipse knows it's there Jan 13 10:40:47 ? Jan 13 10:41:18 yup Jan 13 10:41:35 so the library is using Google's S2 geometry library Jan 13 10:41:43 (which worked fine when it was part of the main code) Jan 13 10:42:13 the S2 stuff is called from my library project at one point, and that errors out and claims it can't find the class Jan 13 10:42:27 if I comment that call, the rest of the library project calls work fine Jan 13 10:42:40 I then tried constructing one of the S2 objects directly in my main project Jan 13 10:42:49 and also get the same "no class" error Jan 13 10:53:41 good morning Jan 13 10:54:28 I wish I had more things to try :( Jan 13 10:54:36 maybe I should just move it all back to the main project for the time being? Jan 13 11:11:59 Is it ok to to a db query in the constructor of my listview adapter and then assign this to a class member, or should I always be doing the db query in my activity and then passing this dataset to the Adapter? Jan 13 11:15:31 brx_: well, an adapter is, as the name implies, something that adapts data to be shown Jan 13 11:16:17 so usually the activity should fetch the data, pass it to the adapter Jan 13 11:16:55 ok I'll stick to that then Jan 13 11:16:56 thanks Jan 13 11:17:47 hello, how can i find out if a specific uri exists? Jan 13 11:55:29 why is this wrong? Jan 13 11:55:30 Jan 13 11:58:47 hi! can i set my canvas to a mode, where 0,0 ist bottom left? Jan 13 11:59:23 it is so inconvenient to make a calculation every time i want to draw Jan 13 12:00:05 so don't Jan 13 12:00:30 just write your code with the assumption the 0,0 is top left Jan 13 12:01:44 Maurits_: very funny Jan 13 12:02:17 I didn't mean to be funny in any way, this is the default coordinate system in both Android and iOS Jan 13 12:02:30 why would you not simply use this? Jan 13 12:02:58 because when displaying mathematical functions, 0 is supposed to be at the bottom Jan 13 12:03:23 yes, but this isn't a graphing calculator Jan 13 12:03:32 is it not? Jan 13 12:03:40 very funny Jan 13 12:03:43 glgl Jan 13 12:04:33 ok, you mean 2D-OpenGL is better for that purpose anyway? Jan 13 12:04:59 no, that's kind of overkill I guess Jan 13 12:05:13 I guess you could simply draw using 0,0==top left Jan 13 12:05:17 and then flip the canvas Jan 13 12:05:44 thanks Jan 13 12:06:58 ultrixx: ah, you can simply apply a transformation matrix that will automatically do this for you Jan 13 12:07:27 oh, thanks i overlooked that Jan 13 12:07:33 see Canvas.setMatrix and friends Jan 13 12:19:17 is there any decent IRC clients for windows? Jan 13 12:21:01 I mean can you guys advise me any decent IRC clients for windows Jan 13 12:23:07 Currently using! Jan 13 12:23:16 ? Jan 13 13:05:13 where do people get free icons? (i need a 'play' and 'record' button) Jan 13 13:22:55 <\0x90\> if i receive a string "A1" when reading a socket (the server to which i connect actually send "A1\r\n" and i use if received == "A1" will it evaluate as true ? Jan 13 13:32:35 <\0x90\> ok.. found out. it won't. but message.isequal("A1") will. Jan 13 13:47:07 hi all :) Jan 13 13:47:10 how much time usually takes to get android developer account? Jan 13 13:47:19 i have payd before two weeks ago, but my payment is in Pending status Jan 13 14:12:33 If I wanted to pose a question to a website.. about android, what is the prefered site? Jan 13 14:13:19 http://xda-developer.com/ Jan 13 14:14:02 That really depends on the type of question Jan 13 14:14:23 oops, typo. xda-developers.com Jan 13 14:15:19 I am an iPHONE developer, attempting to pick up android... so I have a project that I am trying to do, I wrote out some details of what I am trying to do, and thought I would post for some advice. Jan 13 14:15:52 SimonVT: so I figure i would just assume put it up someplace Jan 13 14:16:26 you should first consult http://developer.android.com/ and read everything you need for an introduction to android development. For your questions I'd recommend the forums at previously mentioned website Jan 13 14:16:49 I have already done this.. done all the tuts... read a book or two Jan 13 14:17:28 nice, then forum.xda-developers.com Jan 13 14:17:48 but I am trying to do something similar to a iOS NavigationCOntroller type app. I was told that using activities was a bad idea... so I wanted to get oppionion on doing it with fragments Jan 13 14:17:57 you could also try the Google+ Community, for Android development, but it's less populated Jan 13 14:18:20 IrishGringo: activities is fine, just have one activity per fragment Jan 13 14:18:29 for the phone UI Jan 13 14:18:30 xda-developers is useless Jan 13 14:18:39 You could try stackoverflow or the android developers mailing list Jan 13 14:19:08 well, I have already done this project in iPHONE... that I am good at. I think I will try stack overflow.. thanks Jan 13 14:19:28 IrishGringo: a fragment is closest to a uiviewcontroller Jan 13 14:19:54 but I was also reading that it does not work on devices older that 3.0 Jan 13 14:20:01 and I will have a lot of 2.2 devices Jan 13 14:20:02 it does, through the support library Jan 13 14:20:27 3.0 and on support fragments natively Jan 13 14:20:28 I was reading that as well... but was not sure if it would just work.. or I had to make some code modifications Jan 13 14:20:51 you have to do some modifications, but mostly it's just a drop-in replacement Jan 13 14:21:37 hey guys, i have a fragment whose layout I need to vary slightly, the fragment code won't vary much at all so im considering subclassing my fragment versus a single fragment with say a ViewFlipper to switch between layouts using a single Fragment class.. thoughts? Jan 13 14:21:39 together with actionbarsherlock it's fairly easy to get a 'modern' UI on older devices Jan 13 14:21:46 next question... do you have a url, or sugestions on where I can find some example fragments code that shows a UINavigationCOntroller Jan 13 14:22:17 IrishGringo: well, when using activities, the system manages the activity stack Jan 13 14:23:04 you can manipulate it using various methods, but you don't host the navigationcontroller in your app Jan 13 14:23:05 Actually, I do not want an activity stack at all.... it would be great if I can finish the activity as I goto the next activity. Jan 13 14:23:28 that doesn't look like an uinavigationcontroller... Jan 13 14:23:47 There is a situation where I would be at question 10.... and I want a startover button that puts user back at question3. Jan 13 14:24:07 oh, I wouldn't use a navigationcontroller in iOS for this Jan 13 14:24:20 just swap out data Jan 13 14:24:26 I can not iin iOS or in Android? Jan 13 14:24:41 in android you can just have a Question fragment Jan 13 14:25:04 and one activity, and you just keep swapping out the fragment based on teh current question Jan 13 14:25:04 Maurits_: yea... that was another option that I was thinking of doing.. so I was looking at fragments documentation. Jan 13 14:25:14 fairly easy Jan 13 14:25:21 so I can make a views fragment. Jan 13 14:25:54 any interesting URLS I should read... example code? Jan 13 14:26:50 hi, how much time takes to be processed my account for google android developer? the tax payment is in "Pending" state for about 14 days Jan 13 14:27:14 If the user presses the Back button in my activity, will the application be destroyed due to finish()? I want it to behave the same way as if the user had pressed the Home button, where onSaveInstanceState is invoked Jan 13 14:30:24 If it will be finished, no you don't want it to behave the same as the home button.. That's why we have both a back and a home button Jan 13 14:32:59 platzhirsch: also, it won't destroy your application, but the current activity Jan 13 14:33:46 Maurits_: sure that sounded a bit to brachial Jan 13 14:34:21 SimonVT: then I am not quite sure how to proceed, after all the client (my apk) should reflect the server state, and if the user accidently hits back.. Jan 13 14:34:53 Then they wish to go back to the previous activity Jan 13 14:36:03 platzhirsch: well, onSaveInstanceState isn't called on a home button press Jan 13 14:36:12 Maurits_: not? Jan 13 14:36:20 platzhirsch: but once android needs to clean up activities to free up memory Jan 13 14:36:47 I see, but pressing Home won't destroy the activity, but pause it? Jan 13 14:37:12 yep Jan 13 14:37:35 stop it, even, but the distinction is minimal in this case Jan 13 14:38:19 ok, well then everything should be okay, if there is a Bundle I can restore the activity state, if not I have to at least check if the server backend is still running so I can reflect the change Jan 13 14:39:14 how would you know your activity state is up to date? Jan 13 14:39:51 Maurits_: normally the state of both, server and client (apk), is only controlled through the client, the user can shutdown/start the detection system on the server Jan 13 14:40:13 right, but this seems rather fragile Jan 13 14:40:13 so the only case where it goes out of sync is, if the user pressed back, even though the detection system is still actively running Jan 13 14:40:35 why not keep a state serial number which you increment on every update Jan 13 14:40:45 and then give the client a way to sync with the server state? Jan 13 14:40:55 ie, if clientSerial Maurits_: not sure why a continiously incrementable serial number is required, basically there are only two states the server can be in and I can request the server status which will return idle or active Jan 13 14:42:10 well, I don't know about your exact app Jan 13 14:42:10 Maurits_: so with the serial approach I would send this number in every request? Jan 13 14:42:11 of course Jan 13 14:42:21 and use it as an assertion? Jan 13 14:42:36 but generally you would want to have some fallback to resync the server and client Jan 13 14:42:47 relying on them being always in sync seems extremely fragile Jan 13 14:44:51 yep, I don't certainly like it the way is at the moment Jan 13 14:46:33 you could also do the communication with the server through a Service on the device Jan 13 14:46:43 instead of tying it to the activity lifecycle Jan 13 14:48:16 Hey guys..!! Am a newbie to android app. development..:) and am trying to build a twitter client here.. can anyone tell me how to begin.. do I need twitter4j..? Jan 13 15:08:19 anyone..? Jan 13 15:11:28 Is com.android.music from the AOSP related to "Play Music" which has package com.google.android.music on recent devices? Jan 13 15:17:13 appamatto: not really Jan 13 15:20:34 Leeds, so Play Music is not open source? Jan 13 15:20:40 correct Jan 13 15:21:17 correct Jan 13 15:33:36 what does 'namespace is not bound' mean? running lint in intellij Jan 13 15:44:06 what's the best place to put constants for intent extras - in activity classes or in a separate "constant-only" class? Jan 13 15:44:59 cincinnatus if the constants for the intent are for that activity, put them in that activity Jan 13 15:45:20 ok Jan 13 15:51:06 hi everyone. what's the best-practices way to pass data to a WebView from a Java android app? is there any other way than loadUrl("javascript://somefunc(" + .....) ? Jan 13 16:07:22 hm, more technical side but is there a way to tell an Android device is on the local network? Jan 13 16:07:58 Datalink, define "local". and who wants to know? Jan 13 16:08:20 on my AP, me Jan 13 16:08:32 for home automation Jan 13 16:08:36 Datalink, i mean where does the software run. ah Jan 13 16:08:58 Datalink, so another device on the same local network wants to know if your device has come on? Jan 13 16:09:12 yes Jan 13 16:09:33 Datalink: use multicast and "request-response" pattern, IMO Jan 13 16:09:58 Datalink, there might be something in the android api that i don't know of. otherwise, you can use the "usual" stuff, that p_l mentioned. upnp or zeroconf might even do what you need Jan 13 16:10:01 should work on typical home network, might be more problematic if you actually have routing in it (other than gateway outside) Jan 13 16:10:16 Android 4.something added mDNS support Jan 13 16:10:20 (zeroconf) Jan 13 16:10:29 Datalink, or roll your own UDP protocol (that may or may not be work) Jan 13 16:10:43 Datalink, if it's just for you, you could also "register" on a server with a known address Jan 13 16:11:32 a very simple "own" protocol is to use a local-multicast address and send UDP "pings" Jan 13 16:11:53 4.0.4 on my device, I'm looking for info on it Jan 13 16:12:39 p_l, you need to know how to use low-level sockets on the machine detecting your presence. that can be quite a read. i wonder if there are easy-to-use APIs for higher level stuff available Jan 13 16:12:50 android.net.nsd <--- mDNS stuff Jan 13 16:13:31 someoneelse: the amount of stuff needed to program would be quite simple, IMO Jan 13 16:14:28 I'm still trying to figure out my build env x.x Jan 13 16:15:10 each device would bind an UDP socket to a specified port and multicast address (requires multicast support in OS, though), then send a reply to requester according to incoming packet's sender's IP Jan 13 16:15:14 p_l, i recently tried and while it wasn't that complicated, i can imagine it being simpler in a nice, cozy mDNS library. getting UDP to work with the right multicast flags was a bit of pain though, especially since i haven't come into contact with any sort of multicast before Jan 13 16:15:26 on a different note, does anyone have experience with phonedown? Jan 13 16:15:37 How would one normally test the onSaveInstanceState method? Jan 13 16:15:39 sorry, phoneGAP, not down Jan 13 16:15:48 someoneelse: well, depending on what mDNS library is in use, you might face D-Bus hell... Jan 13 16:16:16 p_l, which one would you recommend? Jan 13 16:17:36 for mDNS? no idea Jan 13 16:17:51 I have issues with how it's often implemented on linux, which is my main OS Jan 13 16:18:05 p_l, avahi? Jan 13 16:19:32 my main issue with all that stuff is i can't always keep track of all the brand names =/ Jan 13 16:20:07 yes, avahi. Which uses D-bus at system level :/ Jan 13 16:20:20 anyway, a simpler variant would be to use Broadcast address Jan 13 16:21:25 home network IPs are static, but I was hoping for something that wouldn't just ping... Jan 13 16:21:56 well, device assigned IPs Jan 13 16:22:36 Datalink, read up on multicast dns on wikipedia, branch into avahi/bonjour, zeroconf and all the other stuff and you'll know if it does what you want =) Jan 13 16:23:05 Datalink: the "ping" isn't the ping command, just a way of screaming "hey, anyone here?" and others answering, "YES, SHUT UP, I AM " Jan 13 16:23:34 I meant OS level ping Jan 13 16:27:23 yes, it's not ICMP "ECHO REQUEST" Jan 13 16:38:53 can I improve the performance of loading sounds? Jan 13 16:39:26 now, I load them with a for loop and: mSoundPool.load(...) Jan 13 16:39:38 but that turns out to be too slow for > 10 files Jan 13 16:41:34 it's like this: Jan 13 16:41:51 I got 5 buttons and on pressing one of them I have to load 20 sounds. Jan 13 16:42:02 so I think it wouldn't be a good idea to load all 100 sounds at the startup.. :O Jan 13 16:42:18 ..but loading 20 in a row is also slow Jan 13 16:58:55 I want to put the two horizontal linear layout buttons at http://d.pr/i/xUGp+ one on the left and the other on the right, is there a gravity_layout setting that will do the job or do I need a spacer? Jan 13 16:59:10 s/gravity_layout/layout_gravity/ Jan 13 17:17:47 can i use APIs like graphics2d when programming for android? Jan 13 17:24:13 New android/eclipse developer... with fragment question. I see that I can add a fragment to my activity from the widgetlist... but I am looking for a fragment that will display a new view... kind of like a UINavigationCOntroller in iOS... am I doing this correctly? Jan 13 17:29:53 is it possible here to find out the exact line of crash? Jan 13 17:29:55 http://ideone.com/iinWQ0 Jan 13 17:30:05 I have the proguard mapping file, but I'm not sure on how to use it Jan 13 17:35:18 Hi Guys, how hard it would be to create widget which would load some pieces of text from db or file and then it would be randomly loading the textes on the screen? Jan 13 17:35:36 i want to make app for me which would load some lines of text which I need to remember Jan 13 17:37:52 spobat: is onCreate() big? put a breakline at its start and step over Jan 13 17:40:02 oh wow, fragments have their own onActivityResult Jan 13 17:40:05 sweet Jan 13 17:41:14 StingRay_: You have to make sure you use Fragment#startActivityforResult Jan 13 17:42:09 really? Jan 13 17:42:24 cause I just fired startActForRes from my fragment Jan 13 17:42:35 and it returned to onActRes in that same fragment Jan 13 17:42:40 .. that's what I said? Jan 13 17:43:14 oh Jan 13 17:59:17 Hello! Is there a way to globally log when the back key is pressed? Jan 13 18:06:02 I'm trying to use Activity.setProgress, and while the progress bar shows up, the progress bar doesn't update. I can change its visibility with setProgressBarVisibility though - any idea what might be wrong? I requested the feature Window.FEATURE_PROGRESS and I don't see errors in the logs. Jan 13 18:08:21 Code is here: http://ideone.com/Da26BC on Android 4.2 Jan 13 18:08:34 And the log messages are showing up. Jan 13 18:10:24 would that not just count to 100 quicker than your sleep ? Jan 13 18:10:50 oh i see now Jan 13 18:11:39 So it's what I'd expect - progress bar shows up, get log messages counting to 100 over 20 seconds, progress bar disappears. Jan 13 18:11:52 but the progress bar stays empty. Jan 13 18:12:21 never used an activity progress bar b4 Jan 13 18:12:31 always used a popup or dialog based one Jan 13 18:12:46 and used async Jan 13 18:13:29 hey guys..!! I am a newbie to android programming.. I am trying to make a twitter client and have put twitter4j in my app's libs folder.. but eclipse still does not recognize import twitter4j.* commands.. Jan 13 18:13:36 anyone..? Jan 13 18:14:17 it set in the build path too ? Jan 13 18:14:51 StingRay:Thanks.. no, I dont think so.. how do I do that..? Jan 13 18:15:28 Answer to my question is RTFM: setProgress should be from 0 to 10000, not 0 to 100. Jan 13 18:15:30 purezen: right click project -> build Jan 13 18:17:07 trinity: ok.. and then..? Jan 13 18:17:31 add your library lol Jan 13 18:17:54 first time in here, got rules I can read? Jan 13 18:18:05 or laternatively: right click project -> properties -> java build path -> libraries -> add libraries lol Jan 13 18:18:09 You just put the jar in libs/, don't go messing with build path Jan 13 18:18:24 trinity: thanks..!! but that still doesnt work.. Jan 13 18:18:50 or what simonVt said. i think with the current adt you dont need to put them in build paths Jan 13 18:18:54 simonvt: is that correct? Jan 13 18:19:36 Yes Jan 13 18:21:12 trinity: ok.. I was using 'Add JARs' option.. so, where after add libraries..? Jan 13 18:23:13 do what simonvt suggested. its worked for me before with libgdx libraries. if it doesn't then you can do the old approach Jan 13 18:24:40 SimonVT: thanks but it does not see, to be working that way.. Jan 13 18:28:57 <[1]Trinity> purezen: do you have the library as a jar or what? Jan 13 18:32:28 trinity: yes.. its a jar.. Jan 13 18:33:11 rightclick,prop,javabuild,libraries,add external jar Jan 13 18:36:26 trinity: I have copied it to the libs folder.. Jan 13 18:37:04 trinity: and then added it using 'Add JARs' option.. Jan 13 18:37:15 trinity: do I need to use it externally..? Jan 13 18:39:24 delete it from your libs folder, remove it from your libraries in properties Jan 13 18:39:37 and refollow, rightclick,prop,javabuild,libraries,add external jar Jan 13 18:40:01 Trinity: ok.. am on it..:) Jan 13 18:40:35 in windows 8, and eclipse, is there a way to find my android installation location? Jan 13 18:42:53 Trinity: ok.. its showing in Refernced Libraries now.. but the Java file still seems to be unaware.. Jan 13 18:43:18 IrishGringo: i have windows 7 but i believe it should be similar. C:\Android\Program Files\Android .... or it could be in Program Files (x86) Jan 13 18:43:44 its not even recognizing it explicitly.. like if I do:'import twitter4j.Twitter.. Jan 13 18:43:53 somebody with experience with ormlite? i woulike to to get this question answered http://stackoverflow.com/questions/14298231/ormlite-how-to-handle-result-of-join Jan 13 18:44:08 purezen: where did you get teh jar Jan 13 18:45:35 Trinity: online.. on twitter4j's page itself.. I am using file: 'twitter4j-core-3.0.3-sources.jar'..' Jan 13 18:46:17 trinity: and it said that from v3.. there would be no separate file for android.. dont know if that matters.. Jan 13 18:47:16 purezen: you're using teh wrong jar file Jan 13 18:47:45 purezen: find the unzipped file and open up "lib" the correct file should be called "twitter4j-core-3.0.3.jar" Jan 13 18:48:23 this time remove in properties->buildpath the old lib and just copy the new lib in the "libs" folder Jan 13 18:49:05 seems a specific WP error states that you should insert the installation CD Jan 13 18:49:06 http://thenextweb.com/shareables/2013/01/12/this-is-the-funniest-windows-error-message-youve-ever-seen/ Jan 13 18:49:53 Trinity: Oh.. I see.. silly me..:) ya.. its working fine now.. Jan 13 18:50:00 Thanks..:) Jan 13 18:50:38 np Jan 13 18:51:19 ah, seems it's an error message one gets when flashing, makes sense then Jan 13 18:53:28 Getting this error with facebook api: Description Resource Path Location Type error: No resource identifier found for attribute 'confirm_logout' Jan 13 18:53:53 I have added the FB project to my build path. Jan 13 18:54:38 any takers? Jan 13 18:56:33 oxbits: full error + pastebin layout Jan 13 18:57:34 ok, will do Jan 13 19:01:26 hi, anyone here that could help me? i've been checking all over the internet but still can't find the solution to my problem Jan 13 19:01:45 my problem is, my app doesn't connect to internet, and i've added permissions and stuff Jan 13 19:02:15 ^ not a lot of information to go on Jan 13 19:02:35 just a minute, uploading the code as we speak Jan 13 19:02:41 are you testing on adb? Jan 13 19:02:51 i mean AVD* Jan 13 19:05:08 http://codepad.org/l1ODzMYI Jan 13 19:05:14 no, i'm testing on my phone Jan 13 19:08:15 and exceptions being thrown? Jan 13 19:08:15 i also have the code to check network connection, and it works perfectly, and it also says i am connected to the internet Jan 13 19:09:05 01-13 20:08:42.875: W/System.err(24406): at si.iljo.avtonetapp.MainActivity.getData(MainActivity.java:54) Jan 13 19:09:05 01-13 20:08:42.875: W/System.err(24406): at si.iljo.avtonetapp.MainActivity.access$0(MainActivity.java:50) Jan 13 19:09:05 01-13 20:08:42.875: W/System.err(24406): at si.iljo.avtonetapp.MainActivity$1.onClick(MainActivity.java:33) Jan 13 19:09:05 this is all Jan 13 19:09:17 i copied this from logcat Jan 13 19:10:26 iljo: you still there? Jan 13 19:10:28 iljo: http://pastebin.com/H4AaLwUd Jan 13 19:12:31 HttpResponse response = client.execute(request); logcat says this line causes trouble Jan 13 19:12:48 anyone ever used this MediaCodec object (http://developer.android.com/reference/android/media/MediaCodec.html) I wonder if there is additional documentation on this Jan 13 19:12:56 i must be missing something... Jan 13 19:13:16 iljo: my code or yours? Jan 13 19:13:36 yours Jan 13 19:14:27 iljo: http://pastebin.com/t7Q9HYN6 Jan 13 19:14:36 use it liek you would DefaultHttpClient Jan 13 19:14:58 CustomHttpClient client = new CustomHttpClient(context); then you just want to call the customHttpClient's method Jan 13 19:15:41 b1rkh0ff: hows nikita? Jan 13 19:21:48 hello, I think I got disconnected Jan 13 19:22:05 layout xml: http://pastebin.com/wSkEfnkD Jan 13 19:22:06 Trinity: still nothing... Jan 13 19:22:17 error: Description Resource Path Location Type error: No resource identifier found for attribute 'confirm_logout' in package 'com.company.vidplay' fb_main.xml /MainActivityVP/res/layout line 30 Android AAPT Problem Jan 13 19:23:48 oxbits: replace com.company.vidplay with your own Jan 13 19:24:09 iljo: any logcat errors? exceptions being called? pastebin activity code Jan 13 19:25:13 oxbits: more exactly, xmlns:facebook="http://schemas.android.com/apk/res-auto" Jan 13 19:25:38 I was looking at that line Jan 13 19:28:07 Trinity: like: xmlns:facebook="com.company.vidplay" Jan 13 19:28:22 something like that, should be similar to admob Jan 13 19:30:15 oxbits: actually change it back and try to clean project Jan 13 19:30:23 oxbits: also make sure your build paths are correct Jan 13 19:30:34 I did a bit more digging and it shouldn't be turning up any errors Jan 13 19:30:43 iljo: you still need help? Jan 13 19:31:48 Trinity: aw snap! worked! u rule! now why did that work? Jan 13 19:32:20 oxbits: "!@#$ you eclipse: Jan 13 19:32:24 " Jan 13 19:33:08 Trinity: for real? it's just that eclipse has short comings? Jan 13 19:34:07 more liek adt Jan 13 19:34:16 probably just imported it wrong Jan 13 19:34:41 which caused some problems in gen folder Jan 13 19:36:17 Trinity: I got the FB project open, and just added it in the build path as a project, hmm, weird, thanks again, ttyl Jan 13 19:37:24 trinity, yes i do, i am currently debugging (it's first time i'm making an android app and i just figured out how to do that) Jan 13 19:38:59 iljo, open up logcat. paste the most recent logs Jan 13 19:39:09 the exception it throws is NetworkOnMainThreadException... and now i know exactly the same as i've known before: the app doesn't connect to internet Jan 13 19:39:37 wrong, it means android isn't allowing it because it's running on the main UI thread Jan 13 19:39:54 networking can not be done on teh UI thread because it might stall the UI thread which in turn would cause a UI force close Jan 13 19:40:18 the correct response would be to use Asynctask to accomplush networking Jan 13 19:43:53 hullo folks! any of you know if you can retrieve the currently used phone number to be used in apps ? Jan 13 19:44:18 iljo: http://pastebin.com/2ANv3Lzy , subclass that and execute it Jan 13 19:44:31 iljo: i'd recommend a bit of digging from the android docs on AsyncTasks Jan 13 19:44:50 Shizen: TelephonyManager tMgr =(TelephonyManager)mAppContext.getSystemService(Context.TELEPHONY_SERVICE); Jan 13 19:44:50 mPhoneNumber = tMgr.getLine1Number(); Jan 13 19:45:00 ah Jan 13 19:45:02 Shizen: remember to have the read_phone_state permission Jan 13 19:45:14 I assume for dual-line you can getLine2Number() ? Jan 13 19:46:15 ok, I'll try that Jan 13 19:51:33 Hi. I'm looking at the various A2SD variants for my phones. Leaning to Link2SD for my needs, but afaict the developer has 'gone dark' since ~ September. Thought I'd ask in here: anyone know of the fate/disposition/ongoing development of 'bakpinar'? Jan 13 20:03:20 Trinity: researching AsyncTasks now, thanks for your help Jan 13 20:03:51 hi Jan 13 20:04:02 Is it possible to make android apps in c++ using qt? Jan 13 20:05:20 Peyam: if you feel masochistic, yes Jan 13 20:05:45 Hello! I want to draw rotating squares.(different sizes) Can i use LayerDrawable for it? i mean override Layer drawable and force drawables to rotate. Jan 13 20:06:02 Or i should use views for my case? Jan 13 20:08:35 So main case - rotating squares and after event - the should stop rotation. How it will be better to implement this? Jan 13 20:09:22 I don want deal with open gl. Jan 13 20:10:15 xgear then use surfaceview Jan 13 20:13:50 Which classes can i use to automate my work. i.e. i override class Drawable to draw big green and small blue square. Then i want draw rotation of them (squares have 1 center) Jan 13 20:14:27 Is there a way to deal with FrameLayout's children weight? I'd like to divide a FrameLayout in four egal parts Jan 13 20:14:47 Or there are another methods to implement my case using surface view? Jan 13 20:16:03 JulienDev: frame layout can have 1 child Jan 13 20:16:50 It can have all you want, it's just not meant for what you're trying to do Jan 13 20:16:54 linearlayout has weight Jan 13 20:20:59 In fact, I'd like to be able to double click one child and animate child to take fullscreen (same with pinh), this is why I can't use LinearLayout Jan 13 20:21:56 sup Jan 13 20:21:56 So, I think I have to set size programmatically Jan 13 20:22:27 if i create a sqlite db with the onUpgrade method. will it be erased on every app update? Jan 13 20:22:59 Am I right SimonVT ? Jan 13 20:23:13 if by programmatically you mean custom viewgroup, sure Jan 13 20:23:57 ok cool ;) thanks Jan 13 20:24:10 will this delete the data everytime i upgrade? http://radpaste.com/550/ Jan 13 20:30:41 my Note 10.1 sometimes doesn't boot, I can boot into its recovery mode it with the power/volume button, but I'd like to know how I could diagnose what's causing these errors Jan 13 20:31:09 is there an error log somewhere? Jan 13 20:36:56 Hello there, I was looking into http://developer.android.com/training/implementing-navigation/ancestral.html and I was wondering if there was a way to get the upIntent without having to specify the code in each of my activity screen? Jan 13 20:58:21 I know you can have an NFC enabled phone act as a "card" for other readers and phones to read when using NDEF. Is there a way to do this with other techs such as NfcV? Jan 13 20:59:28 There's some arcade games already out there that use RFID cards to keep track of players, and those cards can be read using the NfcV tech. But I was hoping to make an app that could let your phone act as the card Jan 13 21:21:41 anyone here have any experience with AudioManager.registerMediaButtonEventReceiver or AudioManager.registerRemoteControlClient Jan 13 21:22:04 trying to work around what appears to be a bug on the galaxy s3 Jan 13 21:22:22 hi Jan 13 21:22:34 looks like they registered the media control as a higher priority then then the AudioManger Jan 13 21:22:44 i'm running eclipse on linux, and i would like to run an android app on my samsung gt-i3900 but eclipse doesn't recognize the device. what do i need to do? Jan 13 21:23:04 did u put it in debug mode? Jan 13 21:23:36 yes, debug usb. right? Jan 13 21:23:42 yeah Jan 13 21:24:15 yes it's in debug mode Jan 13 21:24:16 can u deploy it to the device ? Jan 13 21:24:20 open up your CLI and see if adb can talk to it -- the link between eclipse and adb gets broken a 'lot' Jan 13 21:24:35 adb devices Jan 13 21:25:37 i got this: ???????????? no permissions Jan 13 21:27:26 any ideas? Jan 13 21:27:52 haven't tried it on linux, not going to be much help, don't think it needs root access Jan 13 21:28:29 that means you haven't setup devfs properly Jan 13 21:29:21 hello Jan 13 21:29:31 bankai_: i've created a file called 51-android.rules with this string: SUBSYSTEM=="usb", ATTR{idVendor}=="04E8", MODE="0666", GROUP="plugdev" Jan 13 21:29:33 madprops You still here Jan 13 21:31:17 did you unplug and replug it in ? Jan 13 21:32:07 you also might have to to reload udev. Jan 13 21:32:47 udevadm control --reload-rules Jan 13 21:33:12 i've unplug and replug, i've restarted udev Jan 13 21:33:51 mcr: it's doesn't work Jan 13 21:34:06 i've reloaded the rules, but i've the same result Jan 13 21:34:08 lsusb Jan 13 21:34:20 sudo chmod 666 /dev/usb/bus/STUFF Jan 13 21:34:31 lsusb: Bus 001 Device 011: ID 04e8:6860 Samsung Electronics Co., Ltd GT-I9100 Phone [Galaxy S II], GT-I9300 Phone [Galaxy S III], GT-P7500 [Galaxy Tab 10.1] Jan 13 21:35:20 sudo chmod 666 /dev/bus/usb/001/011 Jan 13 21:35:25 Lol galaxy family Jan 13 21:35:27 will solve the problem temporarily. Jan 13 21:35:46 you don't need/want MODE=0666 in your rules, butw. Jan 13 21:36:15 you probably want ATTR{idProduct}=="6860" instead. Jan 13 21:36:24 you should be in group plugdev (use "id" to confirm) Jan 13 21:36:43 I use group "dialout" Jan 13 21:36:49 MODE=0664 Jan 13 21:36:49 mcr: it's doesn't work, with adb devices command i got no permissions again Jan 13 21:36:57 even after chmod ? Jan 13 21:37:00 yes Jan 13 21:37:11 ls -l /dev/bus/usb/001/011 Jan 13 21:37:16 might wanna restart adb Jan 13 21:37:21 question: could the connector be loose, and it's connecting/disconnecting. Jan 13 21:37:24 yeah, adb kill-server Jan 13 21:37:33 ps ax | grep adb Jan 13 21:37:37 make sure they are *all* dead. Jan 13 21:37:54 (if the connector is loose, it will get a new USB ID each time) Jan 13 21:38:09 ok, i've killed adb Jan 13 21:38:45 now..? Jan 13 21:39:00 adb start-server, right? Jan 13 21:39:26 adb will start when you run it with 'devices' Jan 13 21:40:03 yeah, it's work :D Jan 13 21:41:45 but, how can i fix this problem finally? Jan 13 21:46:31 you've either got the wrong id or you're not in the group you configured the access for Jan 13 21:46:56 or a number of other things, see what happens on the reboot Jan 13 21:51:33 bankai_: i think that i'm not in the group Jan 13 21:52:29 but i don't know which group i need to use Jan 13 21:53:30 maybe, usb? Jan 13 21:53:53 it doesn't matter all that much, as long as you're in it and anyone else who needs the same access is in it. Create another one if you want Jan 13 21:55:43 after the group is created, do i need to set it in udev? Jan 13 22:04:28 erm... I'm new with android sdk, I have a ByteBuffer object filled with RGB data. For debugging purposes I would like to visualize the picture. Which should be the easiest way? Jan 13 22:21:38 Is it possible to check from what package a broadcast was sent? Jan 13 22:24:42 is this still considered best practices, or was it ever? http://touchlabblog.tumblr.com/post/24474750219/single-sqlite-connection Jan 13 22:25:07 or, should i just use a contentprovider (there are other reasons why i might want to got that route anyway) Jan 13 22:25:37 muhoo: that should be OK Jan 13 22:25:52 muhoo: I have used the single connection, it works WAY better than making multiple connections. But ContentProvider is by far the best implementation. Jan 13 22:26:48 thank you Jan 13 22:32:28 Hello. I'm trying to implement some code from stack overflow, but I'm not sure how to go about piecing it together. I'm using Eclipse. Jan 13 22:32:34 Here is the code I would like to implement: http://stackoverflow.com/questions/11094377/android-how-to-change-playback-rate-of-music-using-opensl-es Jan 13 22:32:59 Do I need to download OpenSL ES for this to work? Jan 13 22:41:45 AlexMeng, no Jan 13 22:42:13 AlexMeng, the NDK comes with an OpenSL ES sample Jan 13 22:44:09 Ologn: is the NDK available from the SDK manager? Jan 13 22:44:51 No you download it separately Jan 13 22:44:52 nevermind I think i've found it Jan 13 22:45:01 AlexMeng, http://developer.android.com/tools/sdk/ndk/index.html Jan 13 22:46:01 Speaking of the NDK, if I were to use it would I need to still do all my IO in Java? Jan 13 22:46:05 in java i would use Thread.sleep(17); to set the fps, what should i do for android? Jan 13 22:46:36 Lime - use delta-time Jan 13 22:47:08 alright, will google that Jan 13 22:47:34 Pelya just ported OpenArena (Quake) to Android via the NDK Jan 13 22:48:28 Da_Rhyno: no, although it depends on which versions of android you target Jan 13 22:48:46 Da_Rhyno: from 2.3 onwards you can have fully native activities Jan 13 22:48:49 Lime - even though it's for basic, this is general enough to follow: http://games.freebasic.net/BASICGaming/Issue9/index.html#tutorial1 Jan 13 22:49:14 AlexMeng, the files you will be looking for are in android-ndk-r8d/samples/native-audio Jan 13 22:49:21 i'll see if i can make some sense out of it Jan 13 22:49:27 Ologn: thank you very much Jan 13 22:49:43 Hmmm... how much of the market would I lose though if I only go with 2.3+ would you say? Jan 13 22:51:31 I read in Beginning Android Game Development that a good chunk of it still uses 2.1 and 2.2 Jan 13 22:52:27 And the edition I have was put out rather recently I'd say... Jan 13 22:54:30 Thanks Mauritz_ Jan 13 22:54:45 Maurits_ * Jan 13 22:55:06 Da_Rhyno: I guess you could do a small java wrapper Jan 13 22:55:12 and then call into your NDK main Jan 13 22:55:24 and get most of the benefits that native activities bring Jan 13 22:56:21 That's probably what I'll end up doing. Do the file functions and random/time functions from the C library work? Jan 13 22:56:29 sure Jan 13 22:56:47 pretty much everything you would normally do in C works Jan 13 22:57:05 the libc is a little less full-featured than glibc Jan 13 22:57:09 but that's all Jan 13 22:57:22 Cool! So I could get my assets from fopen? =D Jan 13 22:57:34 AAssetManager :) Jan 13 22:57:37 well, assets are encoded in the apk Jan 13 22:57:43 Ah, I see. Jan 13 22:57:55 an apk is just a zip though Jan 13 22:58:01 so you could, in theory Jan 13 22:58:21 the biggest miss are exceptions though Jan 13 22:58:31 (NDK doesn't have them) Jan 13 22:58:34 But it's probably easier then to make a wrapper. Jan 13 22:59:36 Belgianguy - yeah... I guess if I'm writing wrappers though I could still use IOException to a certain degree. Jan 13 23:00:12 How would I go about using the code given in the answer to this question: http://stackoverflow.com/questions/11094377 Jan 13 23:00:32 I have the NDK downloaded but i'm unsure how to compile with it. I'm also unsure where the .mk files go Jan 13 23:02:50 Thanks for the help gents! Jan 13 23:07:17 AlexMeng: I'd say follow a tutorial, it's quite a steep learning curve Jan 13 23:07:45 and the Android.mk goes into the YourProjectName/jni directory Jan 13 23:08:17 but makefiles can be fickle beasts Jan 13 23:08:33 and debugging is quite a trick to master in the NDK :) Jan 13 23:09:01 That's probably one thing I should read up on. =P Jan 13 23:09:13 belgianguy: well from the looks of that stack overflow question, its already setup to be useable in my android app Jan 13 23:09:19 Makefiles Jan 13 23:09:31 assuming that all works correctly, its still going to be difficult just to set up? Jan 13 23:09:34 why isn't there a built-in rest client library >_< Jan 13 23:10:17 AlexMeng: I struggled with it at first, but once you get the hang of it it all makes sense Jan 13 23:10:26 javah can be a big timesaver, too Jan 13 23:10:29 is there a way to get the time left on a CountDownTimer outside of the onTick event? Jan 13 23:11:25 belgianguy: if you were going to implement that code, how would you go about it? build with the ndk first? and then get the make files into the right directories? Jan 13 23:12:43 I'm not trying to learn the NDK or get my own C code running. I only want to use this resource i've found Jan 13 23:14:33 AlexMeng: you should be fine then Jan 13 23:15:58 anyone used RoboSpice? Jan 13 23:16:05 specifically for REST? Jan 13 23:25:42 cool interview http://www.infoq.com/interviews/lee-java-di Jan 13 23:26:17 (bob lee, java, dagger, jsr 335, etc) Jan 13 23:27:41 but i wonder if android will ever see this stuff Jan 13 23:32:37 one thing he says, that i dont get though, is about java security … how he sees this as being a java applet issue & pr issue more than a server side issue; mostly because the java sandbox doesn't work well. but i would think the java sandbox issues would also effect using java server side also Jan 13 23:32:38 hmm Jan 13 23:32:59 nobody's dealt with RoboSpice? or another library that will make it unnecessary to write a lot of backend code just to make a "proper" REST client? Jan 13 23:33:14 ok, he is relying on process separation Jan 13 23:33:14 Afzal: it looks interesting, I might use that in my next app. Jan 13 23:33:49 TheTrash, Good luck because I can't even make the samples work, with the instructions on the site Jan 13 23:34:05 Oh hm Jan 13 23:34:23 they apparently have a 1.4 release coming though…who knows Jan 13 23:34:51 Woops wrong button Jan 13 23:34:53 I don't get Oracke's lackluster or even ignorant stance on their security Jan 13 23:35:13 they're branding themselves the next black sheep (the last one was Flash) Jan 13 23:35:35 I have a feeling that the future of java is actually shifting into android, rather than into oracle's hands Jan 13 23:35:49 g00s: Android isn't typical, and does not even use the java VM... dalvik already does all security through process separation and different user ids per app Jan 13 23:35:50 hmm Jan 13 23:36:10 zinx: oh yeah, for android / java / security sure Jan 13 23:36:14 I don't get Oracle's lackluster approach on the Java plugin in general... they should either just kill it entirely or at least do an attempt at supporting and pushing the ecosystem. Jan 13 23:36:40 g00s: one of the main reasons for dalvik being created was that, in fact (it loads a bunch of stuff when it starts up, then does copy-on-write so you don't waste a lot of space from apps running the same things) Jan 13 23:36:46 Would they do it on purpose, as to undermine Android? Jan 13 23:37:11 zinx: sure, thanks. Bob was mostly talking about java security outside of android though Jan 13 23:37:18 g00s: yeah Jan 13 23:37:40 g00s: just saying it's not entirely relevant in the Android context ;) Jan 13 23:37:46 I'm guessing all upper management simply forgot that the department exists, but the budget is automatically assigned and no one ever told the department to stop. Jan 13 23:38:31 TheTrash: Java dept. at Oracle? they know it exists. it's comprised entirely of the patents and lawyers they tried to sue Google with. Jan 13 23:38:50 Nah, just the browser plugin department. Jan 13 23:39:00 yeah, I bet they're teaching their lawyers to program atm to fix that bug Jan 13 23:39:11 belgianguy: lol, that's an amusing thought Jan 13 23:39:12 after DHS even advised to uninstall it Jan 13 23:39:29 actually, Oracle isn't dependent on java to succeed (even server, for that matter), to continue to generate its revenue either... follow the money, etc... Jan 13 23:39:34 Mhah I'd sooner assume they're teaching their lawyers to help them steer clear of any legal claims associated with the bug. Jan 13 23:39:48 true, they're destroying MySQL in the same way Jan 13 23:39:51 isn't java pretty much the reason they bought Sun in the first place? Jan 13 23:40:02 it can't be about their hardware surely Jan 13 23:40:19 however, Google does have a vested interest in makeing java succeed, that's why I think the effective stewardship of java has changed hands Jan 13 23:40:36 but isn't the "master" branch at Oracle? Jan 13 23:40:45 lots of companies have a vested interest in java Jan 13 23:40:50 IBM, for example Jan 13 23:40:54 kbs: i think android wrt java is more like IE 6 :: browsers Jan 13 23:41:06 i wouldn't be surprised if the java standards switch hands out of Oracle at some point :/ Jan 13 23:41:28 Oracle's only real interest in Java was to sue Google, and that failed. Jan 13 23:41:31 i dont see how it could happen, for the reason why Harmony always struggled Jan 13 23:41:55 maybe Google can finally do something about that once the lawsuit is over Jan 13 23:42:05 zinx: meh, I don't think that line of reasoning checks out Jan 13 23:42:06 g00s: hm, interesting thought :) I think it's pretty straightforward... outside of people who're writing java on the server side, the only actual mass use of java is in android. Jan 13 23:42:20 the former group -- who knows what the future is. Jan 13 23:42:28 zinx: some simple math learns that they've paid about as much for Sun as they were hoping to get out of the google lawsuit Jan 13 23:42:42 i just wish google would license it from oracle and get us all on a current version Jan 13 23:42:46 Did Android even exist when they bought Sun? Jan 13 23:42:51 Maurits_: they really do not care about Java Jan 13 23:42:54 zinx: and they must've known about the figure they asked from google in the lawsuit was way more then they were going to get Jan 13 23:42:54 TheTrash: yes. Jan 13 23:43:07 isn't Java still used for things like interactivity on bluray? Jan 13 23:43:18 and settop boxes Jan 13 23:43:30 Maurits_: not sure how things don't add up, then. Jan 13 23:43:30 and about 75% of all enterprise web applications :p Jan 13 23:43:41 and the whole thing with the java / oracle lawsuit isn't even over; i bet google could be in 'wait and see' for that to be over, forever Jan 13 23:43:42 Maurits_: they wanted Sun's server/db stuff Jan 13 23:43:49 Maurits_: they don't give a crap about Java. Jan 13 23:44:08 Leeds: dunno -- I'm sure java still gets used outside servlets and android. But if you were to project a trajectory on where java will continue to grow, I mostly see it happening within android Jan 13 23:44:09 Leeds: java is still in massive use Jan 13 23:44:28 so, i wonder if Bob's Renaissance talk is available in full version somewhere. Jan 13 23:44:39 Leeds: java proper (i.e., language+library+vm), even Jan 13 23:45:46 Maurits_: fwiw, if the company cared about Java, their Java developers probably wouldn't have quit :P Jan 13 23:46:22 zinx: their mysql developers also quit Jan 13 23:46:44 Maurits_: not surprised. they do care about mysql, though. not to have, but to push out of use :/ Jan 13 23:47:23 tangentially, maybe many of you have seen this already -- language usage over the last decade. Vaguely entertaining or something, if you trust the data :-) http://www.tiobe.com/content/paperinfo/tpci/images/tpci_trends.png Jan 13 23:47:24 Is there any way to have an imageview align to the top and fit the width of the image, but maintain the aspect ratio? Jan 13 23:47:27 but java is bigger than solaris and mysql combined Jan 13 23:47:35 Maurits_: not to Oracle Jan 13 23:47:42 and oracle essentially killed sun's hw business Jan 13 23:48:01 ie. if your screen was 10x10, and you displayed a 20x40 image, I want the image in screen space to be 10x20 with the top left of the image at the top left of the screen. Jan 13 23:49:04 zinx: also, their acquisition press release mentions java, java, java and oh, java. Jan 13 23:49:13 so meh Jan 13 23:49:41 Maurits_: their actions since then show why, too Jan 13 23:50:01 (Google, Google, and oh, Google.) Jan 13 23:51:12 you're conveniently ignoring the roadmap Oracle has for developing java Jan 13 23:51:18 yup Jan 13 23:51:22 i do that Jan 13 23:51:24 they want control of the full stack Jan 13 23:51:46 and they are greedy as hell, so if they see google making profits (indirectly) from java, they're going to want it Jan 13 23:51:50 yeah, I imagine they do Jan 13 23:52:15 wow, there is a client for TAHOE-lafs on android Jan 13 23:53:08 but they haven't really been ignoring java at all: Jan 13 23:53:09 http://www.javaworld.com/javaworld/jw-03-2012/120315-oracle-s-java-roadmap.html Jan 13 23:53:10 so if i can set up my own tahoe-lafs storage servers, than that solves the 'i want my private cloud' Jan 13 23:53:56 mdkess: there might be a better way, but perhaps simplest solution I've seen is to extend ImageView and override the onMeasure(), calculate the desired height and setMeasuredDimension() on it. Jan 14 00:01:55 nice, tahoe-lafs looks like a cool techno-project. adoption increasing? Jan 14 00:03:39 no idea; i dont like storing my stuff on "the cloud" in general. i was looking for something were i could have my own redundant, distributed, and encrypted storage service Jan 14 00:03:49 i was looking at aerofs also Jan 14 00:04:44 cool. It's something i'm interested in as well; would love to hear your reviews if you find something interesting. Jan 14 00:05:12 i'm not sure if aerofs is out of private beta yet Jan 14 00:05:33 it will take more research ;) Jan 14 00:06:35 i was reading this the other day http://www.theverge.com/2013/1/7/3835724/the-price-of-apps Jan 14 00:06:56 about app pricing, and sustainable development, etc Jan 14 00:07:20 two things to look for is that : the service exports your data, and in readable format :| Jan 14 00:07:39 but i think its even better, if you package up the server bits so people can run them themselves Jan 14 00:08:18 evernote would need a different business model; they would charge maybe for the app and the server bit - but you host the server bit, and have control over its deployment, where its stored, security, etc Jan 14 00:08:53 i know i'm crazy :) Jan 14 00:09:43 I think it probalby makes sense today for the more techno-savvy at least. Jan 14 00:10:16 I use openwrt to run a few archiving apps at my router to download gmail/facebook data Jan 14 00:11:17 g00s: I've been working on the business model for an app we'll be launching soon Jan 14 00:11:37 I'm thinking about ads by default and then a subscription to get rid of them Jan 14 00:11:57 $0.50 a month or something Jan 14 00:12:07 i like this quote Jan 14 00:12:09 "The future of sustainable app development is to give away as much value as possible and empower those who receive more value to pay more for it." Jan 14 00:12:21 that came from here, also a good paper Jan 14 00:12:22 http://appcubby.com/blog/the-sparrow-opportunity/ Jan 14 00:12:33 3 charts are great Jan 14 00:12:37 gotta run Jan 14 00:13:15 well, the problem is that you can't really separate every app into free and premium parts Jan 14 00:21:39 if I use getPreferences() from one activity, then other activities in my apps can't access that data, right? Jan 14 00:23:02 not intended for access by other activities, no Jan 14 00:23:04 Each app / package stores its own preferences in its own local file structure Jan 14 00:23:12 use getSharedPreferences() if you want that Jan 14 00:24:50 g00s: ownCloud is meant to provide that sort of "private cloud" thing, but I haven't checked on its progress in a while. Jan 14 00:25:47 Maurits_: right. I'm trying to decide if I ought to use getSharedPreferences, or send the data directly back to the main activity somehow, or make my little new/edit activity a dialog instead Jan 14 00:26:12 it's simple enough to be a dialog, but, it always feels awkward to me when apps pop up a dialog. Jan 14 00:26:20 getSharedPreferences is usually the easiest way to go Jan 14 00:26:38 I'm not sure why. dialogs just feel wrong. activities feel right. Jan 14 00:26:39 you can still have separate files for different parts of the application Jan 14 00:26:58 *seperate preferences files Jan 14 00:27:06 yeah Jan 14 00:28:57 I personally don't really see the point of getPreferences() Jan 14 00:29:05 preferences are usually not activity-bound Jan 14 00:29:13 but shared across the entire app Jan 14 00:29:25 right. seems odd Jan 14 00:30:06 activities that store state (location, what's in text input fields, what's checked, etc..)? Jan 14 00:30:21 location as in, location in a scrolled list. Jan 14 00:30:29 ah, for saving short-term state Jan 14 00:30:34 that does make sense Jan 14 00:30:41 not so short-term Jan 14 00:31:03 like, before the save button is clicked, I still ought to store this data somewhere in case a phone call interrupts the activity. Jan 14 00:31:11 you have onSaveInstanceState for short-term state Jan 14 00:31:21 ohh, right, forgot about that Jan 14 00:31:30 talking about applications where you'd want that state persisted forever Jan 14 00:31:59 yeah, that'd be a use case Jan 14 00:32:05 * Chani notes that the web browser has a terrible habit of not saving that. Jan 14 00:54:15 * Chani glares at NumberFormatException Jan 14 01:11:43 btw: java7u11 is out Jan 14 01:13:53 meh, still no x86 api 17 image Jan 14 01:17:31 http://i.imgur.com/1FX4V.png :( Jan 14 01:18:56 It's possible your CPU simply doesn't support it, but sometimes it has to be enabled in the BIOS first, so that's worth checking out. Jan 14 01:20:56 if i have a reference to a Thread and a Runnable, how to i run that Runnable on the Thread? Jan 14 01:22:57 clever: as far as I know... you can't. The thread has to be created with new Thread(theRunnable) for it to run that Runnable. Jan 14 01:23:25 Normally it's new Thread(someRunnable).start() Jan 14 01:24:02 you can make the thread runnable run other runnables Jan 14 01:24:09 but I'd just use executor for that ;) Jan 14 01:24:36 i'm trying to run a piece of code on the main thread, but i dont have a reference to an Activity for runOnUiThread Jan 14 01:24:42 i'm trying to just keep a simple ref to the ui Thread itself Jan 14 01:24:53 create a handler in the main thread and use post on that Jan 14 01:25:00 +1 Jan 14 01:25:27 Zharf: and the code is being compiled as a lib, that doesnt link to android Jan 14 01:25:35 oh... Jan 14 01:26:51 maybe i can stick that into my subclass again, hmmm Jan 14 01:26:55 * clever tries Jan 14 01:27:16 I have a similar library but I never found that to be a requirement for it... my library just has a singlethreaded executor in it that runs runnables I give it Jan 14 01:27:34 the user then decides to run them in ui thread on android if they wish by using handler or runonuithread Jan 14 01:27:42 in mine, the lib has its own dedicated Thread for http requests Jan 14 01:27:54 but the callbacks coming out, are trying to alter the ui, from that thread Jan 14 01:28:22 I guess you could just add a callback interface and register to the callback in the activity and run on the ui thread from there. Jan 14 01:28:27 so the library is altering the UI? but doesn't link to android? Jan 14 01:28:27 most of the callback methods are abstract, so i then write an android only sub-class, that can use android code Jan 14 01:28:43 Zharf: the lib is running a callback in the main android app Jan 14 01:28:49 but it runs that callback on the wrong thread Jan 14 01:29:03 have that callback run another callback in the ui thread ;) Jan 14 01:29:17 ive got an idea, let me try it Jan 14 01:29:53 it'd be nice if it'd be possible to attach android ui thread to an executor :E Jan 14 01:29:55 I imagine the lib returns some sort of payload, why not return that to the callback and let the activity run the ui stuff, since it's, you know, it's responsibility :P Jan 14 01:30:38 Zharf: i'm putting an abstract runOnUiThread into my lib class Jan 14 01:30:48 which will then get implemented on the android only sub-class, to use Handler Jan 14 01:31:01 Heh, you've just forked Android! Jan 14 01:31:12 Anyone know how Google handles QUEUEing in GTALK and GVOICE? Is it just a Service that reads the database for a 'phase 1' message, when processing, sets to phase 2, and finally sending it it sets to phase 3? phases == different steps of messagins, queue, sending, sent Jan 14 01:31:35 TheTrash: nearly everything leaving the lib, is just a local abstract method Jan 14 01:31:48 TheTrash: the java and android apps that use it, then sub-class it, and implement those Jan 14 01:32:32 Weird... is it ever used outside Android Jan 14 01:32:34 ? Jan 14 01:32:56 TheTrash: yeah, there is a desktop app using SWT that does the same thing Jan 14 01:33:04 Oh hmmm Jan 14 01:33:51 Zharf: how does the instance of Handler know which thread to run things on? Jan 14 01:34:03 it's some Looper thing I believe Jan 14 01:34:11 I never really looked into it very deeply Jan 14 01:34:31 just as long as you create the instance in the ui thread it should work.. Jan 14 01:34:46 ah, sounds like it binds to the current thread, at construct time Jan 14 01:34:52 yes Jan 14 01:34:58 but it doesn't work with most regular threads Jan 14 01:35:02 it's very android specific Jan 14 01:35:16 the thread has to have a looper, iirc Jan 14 01:35:27 i'm only trying to use it on the ui thread right now Jan 14 01:35:33 that's fine then Jan 14 01:35:35 so thats perfect Jan 14 01:36:48 runOnUiThread(new Runnable () {public void run() {onPlayerData();}}); both functions are abstract Jan 14 01:36:57 and get implemented in the android end (or swt end) Jan 14 01:37:11 what classes do I need to make an Adapter that pulls data from a SharedPreferences? Jan 14 01:37:35 I just wanted to display a list of saved stuff and it seems to be a lot more complicated than I expected... Jan 14 01:38:35 Zharf: seems to be working, for android end Jan 14 01:38:37 just need to wrap each outgoing callback Jan 14 01:57:27 hey, I'm new with the android platform. Can I make an app without gui? I mean, I would like to launch the app from command line (maybe from adb shell), the app would compute some stuff and then return. Jan 14 01:57:45 a service, yes Jan 14 01:57:45 lol.. Jan 14 01:57:49 WHy would you awnt to do that on Android? Jan 14 01:58:11 I have a TabActivity class with 2 TabWidgets, both of them should start the same Activity but send different data(putExtra()) Jan 14 01:58:11 But it is not starting the acitivities when I switch between tabs, any other way I can do this? Jan 14 01:58:31 FelicianoX: What does it do when you switch tabs? Jan 14 01:58:43 Nothing Jan 14 01:58:57 I've added a System.out.println Jan 14 01:59:03 lighthazard, android hardware testing purposes Jan 14 01:59:06 it only starts the activity once Jan 14 01:59:10 gmagno: Super valid point. Jan 14 01:59:17 gmagno, you can make a service run stuff in the background and it would have no UI, you can start it from adb shell Jan 14 01:59:33 but there's no return value to the shell I believe Jan 14 02:00:32 stackoverflow.com is not working for me :S Jan 14 02:00:37 Zharf, no problem I believe I can write files on sdcard, right? Jan 14 02:00:49 sure Jan 14 02:00:53 great Jan 14 02:03:58 None of similar questions on stackoverflow have answers that works Jan 14 02:07:43 btw, anyone ever used android.view.surface? I'm looking for documentation on it, maybe some code examples. Jan 14 02:07:49 http://developer.android.com/reference/android/view/Surface.html Jan 14 02:15:53 Good evening android dev, I am interested in making an application where my main activity contains a news feed sort of like facebook's or twitter's android apps, but the news that appears is a dynamic object that includes sliders inside....would anyone here know where to start? Jan 14 02:18:57 listview with a custom tab that has a scrolled linear view Jan 14 02:19:06 custom row* Jan 14 02:21:01 Thank you for the advice lighthazard Jan 14 02:21:55 asdf Jan 14 02:22:23 MajorZero: The words I just used should help a lot in your googlefu Jan 14 02:22:46 as Jan 14 02:24:57 lighthazard: They were very helpful because it's been about two months since I last developed in android but based off of what you told me I see where you're headed. Thank you once again Jan 14 02:25:24 Good luck! **** ENDING LOGGING AT Mon Jan 14 02:59:59 2013