**** BEGIN LOGGING AT Sun Feb 10 02:59:58 2013 Feb 10 03:26:35 Strange situation going on. No defined in the AndroidManifest.xml but yet I get "Storage" and "Phone calls" when I look at the app info. Any ideas, my google fu is not working Feb 10 03:34:20 just had to pose the question to finally figure it out Feb 10 03:37:53 well now you have to tell us Feb 10 03:38:21 apparently there is a bug... Feb 10 03:38:23 one sec Feb 10 03:38:37 :p heheh Feb 10 03:39:14 If you make sure to defined the sdk used to be donut or higher then the default permissions are correct Feb 10 03:39:20 Feb 10 03:40:41 the gf and I are figuring out how to do some android development this weekend. made ourselves a simple little Lights Out clone Feb 10 03:41:43 it's a backwards compatibility feature, not a bug. Old versions of Android gave those permissions to every app. Feb 10 03:42:04 bug...feature...same difference ;) Feb 10 03:43:23 was just a pain to figure out Feb 10 03:51:23 Anyone know the trick with getting library projects to work in intellij? Feb 10 03:56:21 Hey guys, high level question, if my main activity is started to handle an event, but then the user is not authenticated, I try to launch another activity to authenticate them, but how can I save off the event details so that once the user is authenticated I can then actually handle the event? Do I just store them on the main activity? Feb 10 03:57:22 I guess versus passing the event information around from activity to activity or another strategy I do not know. Feb 10 04:01:08 might be possible to store the event in your current activity, call the authenticate activity and then when you return back to the main activity continue...make sense? Feb 10 04:01:49 process the event...oh you arent authenticated? well i'll store my current state and have you authenticate Feb 10 04:03:55 hey, is it possible to get back a decoded video sample from MediaPlayer and put it in an opengl texture? Feb 10 04:38:15 jecxjo: okay, yeah it sort of makes sense, I will try something like that out, it is a URI from a bundle the user has asked to upload Feb 10 04:46:06 plantian: I'd either save the "state" information in the current Activity before moving to the Authentication Activity or pass the state info to the Auth Activity to keep the state flowing through each activity... Main Activity --URI--> Auth Activity --URI--> URI Handler Activity Feb 10 04:47:13 personally I like functional programming which is not quite the way you'd typically do Java. Feb 10 04:49:55 jecxjo: I will try to save a bundle on the activity. I'm "trying" to use the AccountManager so I'm not sure if it is capable of carrying the state around. Feb 10 04:50:47 plantian: ah ok. well worse case you make your own class that extends AccountManager and add the state info in Feb 10 05:01:21 jecxjo: Well it turns out before that I'm sort of stuck. Are you familiar with using the AccountManager for custom accounts? Feb 10 05:01:53 plantian: nope sorry, just getting into droid programming Feb 10 05:04:16 jecxjo: No problem, thanks for the help, I'm just getting into it too. Feb 10 05:04:40 I use mainly Python for web programming so I feel like I'm drinking from a fire hose trying to get this to work. Feb 10 05:05:50 i know the feeling. OS and Communications on embedded controll systems, so lots of C/C++/ASM. all my UI is mainly Tk based either tcl or lisp. Feb 10 05:16:26 jecxjo: Cool, sounds interesting. I don't think I've talked to many people using lisp or tcl. Feb 10 05:17:20 plantian: they were both languages i just found interesting and so i started using them as my daily tool/r&d languages Feb 10 05:17:47 Hi all Feb 10 05:17:55 hi peter12 Feb 10 05:18:22 Im a little new to irc but i finally got it working Feb 10 05:18:57 irc is a wonderful tool Feb 10 05:19:10 jecxjo: you must be new to irc Feb 10 05:19:32 exhibit a: pragma- Feb 10 05:19:57 pragma-: yeah, only been using it for oh...15 years or so Feb 10 05:20:26 though i should have said the dev channels on freenode as a wonderful tool Feb 10 05:21:41 and most of the people in other channels ARE tools Feb 10 05:22:16 Anyone have experience with expansion files? Feb 10 05:22:46 yeah irc for dev is pretty amazing Feb 10 06:02:59 ok im looking for some help on caching bitmaps in a listview. i see the lru cache but dont know how to implement it in my app Feb 10 06:03:47 drdreed: you could check this out: https://github.com/lucasr/smoothie Feb 10 06:03:55 pretty awesome library. Feb 10 06:04:22 k ill check it out Feb 10 06:10:45 cool .... lucasr is a mozilla guy Feb 10 06:11:10 yu[ Feb 10 06:11:12 yup Feb 10 06:12:28 mozilla ftw Feb 10 06:12:53 \o/ Feb 10 06:12:57 :D Feb 10 06:13:38 I contribute to firefox mobile ... knew the name ... guess we all float around the same circles Feb 10 06:16:26 yes, he's also the author of pattrn. Feb 10 06:17:06 hence the image library. Feb 10 06:19:18 ok i guess i dont know how to use this library in my app. my listview is displaying data from an rss feed. Feb 10 06:20:28 drdreed: do you know how to use any library at all ? Feb 10 06:22:52 yes Feb 10 06:36:15 opening the project I get all kinds of errors. I can't even make it into a jar Feb 10 06:36:54 we can put drdreed into a jar : dirty deeds, done dirt cheap Feb 10 06:37:11 oh, didn't see the r in drdreed :/ Feb 10 06:40:00 haha funny Feb 10 06:44:30 sorry i pissed in your guys cherrios was just looking for some help Feb 10 06:45:21 drdreed: it probably is an android library project Feb 10 06:48:37 ok i guess back to google i go to figure out how to use it Feb 10 06:50:03 drdreed: no offence but if you do search you can easy find Feb 10 06:50:14 + there are instructions on the page Feb 10 06:50:33 all your missing is "how to use library projects android eclipse" Feb 10 06:50:42 and thats not hard to find Feb 10 06:51:27 k thank you Feb 10 06:53:52 got the library in now Feb 10 07:22:30 hm, i hope this is going to be good … i desperately need something like this http://www.informit.com/store/android-user-interface-design-turning-ideas-and-sketches-9780133154856 Feb 10 07:39:23 g00s: why not just follow the guidlines, use actionbar/abs etc Feb 10 07:39:32 and end up with a 70-100% generic app ? Feb 10 07:39:34 :) Feb 10 07:39:47 oh, i didn't detect your sarcasm at first :D Feb 10 07:39:55 lol Feb 10 07:40:59 problem the way i see it, is those guidelines are for programmers who have no design experience Feb 10 07:41:03 cause a normal rule Feb 10 07:41:20 is context dictates UI desgin, platform is probably 3rd/4th Feb 10 07:42:04 context in this case being target demographic and purposes of the app Feb 10 07:42:05 :) Feb 10 08:35:54 Anyone know of a good tutorial to dev with ndk? Feb 10 08:43:50 there are a few books on it Feb 10 08:44:40 seems like a pretty big topic Feb 10 08:47:07 "Judge Invalidates 13 Motorola Patent Claims Against Microsoft" … oops Feb 10 09:07:58 Hi Feb 10 09:08:42 Hey Guys I've looking at intercepting MMS messages, How every broadcast receiver don't get called for MMSS Feb 10 09:09:38 mms are a bit crappy though Feb 10 09:09:43 ppl still use them ? Feb 10 09:12:29 well they do Feb 10 09:12:43 I'm trying to get hold of them before they hit the notifications Feb 10 09:13:46 hey all, I'm having trouble getting multiple extras in activity B. I have it putting an extra of type int in A and i am using getIntExtra i get null pointer error, anyone know why? Feb 10 09:14:12 hey StingRay_ thanks for the help last night Feb 10 09:14:49 cause your not using getInt Feb 10 09:15:06 and int that you put in was not of type object Feb 10 09:15:12 so object out = null Feb 10 09:15:17 just guessing Feb 10 09:15:18 :) Feb 10 09:15:46 cause if you do both, it comes out Feb 10 09:17:05 actually pay little attention to what I'm saying, I've been up since yesterday and its now 9:17am Feb 10 10:40:12 I have a textview in my layout: TableRow { LinearLayout { Textview }}. When I try to find the textview I get the error Android TextView casting error: android.widget.LinearLayout cannot be cast to android.widget.TextView Feb 10 10:40:37 is it not possible to find controls this way when using a layout like this? Feb 10 10:40:49 um... then you're finding the linearlayout not the textview Feb 10 10:41:39 it looks like this: http://pastebin.com/uh8MuPSq Feb 10 10:43:51 I can't see that I am doing anything wrong Feb 10 10:43:57 looks mostly ok... what I'd do, for testing, is separate the findViewById and the cast, so you can dump the actual returned value before trying to cast it Feb 10 10:44:38 I am not quite sure how you mean. Feb 10 10:45:32 how to findVewById without casting what I want to find? Feb 10 10:45:53 wats your activity code? Feb 10 10:46:01 "TextView tvPlayerOne = (TextView)findViewById(R.id.tvPlayerOne);" becomes "View v=findViewById(R.id.tvPlayerOne); Log.v("foo",v); TextView tvPlayerOne=(TextView)v;" Feb 10 10:46:08 Remember to clean project Feb 10 10:46:26 or something along those lines Feb 10 10:48:32 also not sure but that seems waaayyyover nested Feb 10 10:50:20 Leeds: View found the textview :/ Feb 10 10:50:36 lasserix: I need that inner linearlayout to dynamically populate controls Feb 10 10:50:41 Melvinkelvin: you mean it worked when you used my example? Feb 10 10:52:31 yeah Feb 10 10:54:13 in which case your code is probably not doing what you pasted Feb 10 10:55:05 I'm guessing it's just stale id's in code, and it just needed to be re-compiled Feb 10 10:55:06 it might be that the clean project was helpful Feb 10 11:00:14 Leeds: ms sold out of all 10 of their surface pros; are you hoarding them over there :P Feb 10 11:19:25 yeah, it's weird how "XXX sold out!" gets translated to "XXX is popular!" rather than "the manufacturer of XXX has bad supply chain management, or low confidence in their product" Feb 10 11:35:58 r.e. adb moving files - is it possible to over-ride the permissions that stop me writing to data/data/apname/files Feb 10 11:36:10 i tried adb push .... /data/data/.../files but it tells me permission denied Feb 10 11:45:02 sorry for my bothering too much, I have searched the net like a maniac without finding any good results. I have two Linear layouts side by side now, I am trying to populate each side with textviews, problem is only the first textview is added to the layout. everything else is ignored. http://pastebin.com/hA00m37s Feb 10 11:45:10 for bothering* Feb 10 11:46:02 I don't know if the workaround of having two linear layouts side by side is a good practise at all but it works for the first item per layout Feb 10 11:46:52 as I usually do this for populating a list I think it has something to do with the Linear layouts side by side. Does anyone know the expected behaviour when having it this way? Feb 10 11:47:04 Melvinkelvin, your linear layouts are horizontal.. Feb 10 11:48:11 your items have match parent width, therefore they take all space horizontally Feb 10 11:49:09 If youhave a moment could you take a screenshot and upload it? again, this layout hiearchyseems overcomplicated Feb 10 11:49:10 Zharf: but how come the first items per layout is positioned perfect? :/ Feb 10 11:49:23 I will take a print screen Feb 10 11:50:04 or draw in paint what you are trying to do Feb 10 11:51:03 http://postimage.org/image/63w8achpn/ Feb 10 11:52:16 I'm guessing the textviews are supposed to go downwards then Feb 10 11:52:32 so why aren't your linearlayouts vertical Feb 10 11:52:46 so one linearlayout with match/match and orientation set to horizontal. that houses two linearlayouts with layout_weight = 1, width = 0, height = match parent and orientation vertical Feb 10 11:53:23 then you can put your texts views for either player in their respective linearlayout Feb 10 11:54:38 oh, orientation vertical, how in the world could I miss that! Feb 10 11:54:45 thanks alot guys! Feb 10 11:56:06 Melvinkelvin, because most of us do, almost everytime... except not anymore so much with intellij idea 12, because it defaults to making them vertical ;) Feb 10 11:56:41 Okay. I've got an Adapter which loads images from a network into ImageViews, a subclass of that for a catalog, and another subclass of that for something else. Only now, I want to wrap text around the images in the other subclass. Feb 10 11:56:45 i will keep that in mind now forever, ashame I missed that Feb 10 11:57:03 So now, I'm thinking I need a way to load the images into the TextViews later. I am struggling to think of a non-painful way to implement this. Feb 10 11:58:29 fromHtml has an ImageGetter which loads images. I'm wondering if I can set something like an ImageSpan, call setText, then load the images in later, without calling setText again. Feb 10 12:00:54 images in a textview, wut? Feb 10 12:02:08 Well, higher level issue. I need to wrap text around an image. Feb 10 12:05:48 http://code.google.com/p/android-flowtextview/ This seems to be the least painful solution. Feb 10 12:20:56 w0rp: sexy! Feb 10 12:24:33 I can't use that either, because it doesn't apply the styles from Spanned instances correctly, and I get black text on a black background. Feb 10 12:24:58 It *does* wrap the text, as advertised, though. Feb 10 12:27:36 Is there any magic to getting ADB to detect an HTC Desire that's plugged in? I've tried 3/4 modes on the device, the missing one being "charge only", the tried ones being HTC sync, something spanish that I don't understand, and wait, I've got something, what does this mean: Feb 10 12:27:37 ???????????? no permissions Feb 10 12:28:09 there was some "accept" dialogue on the device making it not do anything. This is in HTC sync mode, though. Feb 10 12:28:31 At this point I'm considering implementing this with HTML. Feb 10 12:29:24 And logcat shows no activity during a failing install. Beware, many n00b questions shall spring forth today :-) Does logcat need some sort of enabling on the device? /me searches Feb 10 12:30:13 You probably need to install drivers for the device. Feb 10 12:30:30 This is on Linux, though that still could be true, I guess. Feb 10 12:32:36 Hi. What is the relation between the MediaPlayer API and the AwesomePlayer? Feb 10 12:39:01 hi, trying to figure out files with ndk - i see domo/quake/mame all give a directory visible on the phone when plugged in that you can just drop files into ... does anyone know how to do this from C++ in the NDK ? ive had file io working in /data/data/com.appname/files - but i can't put anything there from the outside and i gather its only for an app's private cache anyway Feb 10 12:39:18 how do doom/quake/mame work? Feb 10 12:40:07 i dont know much about java and am focussed on a crossplatform sourcebase which must stay in c++ - my sourcebase originates on desktop/c++ and iOS Feb 10 12:41:11 either being able to compile data accessible from the NDK or the user being able to drop additional data in (like mame/doom allow on android) would suit me Feb 10 12:41:53 fredcooke: sounds stupid but did you try different usb cables? Feb 10 12:42:06 is it really suppoed to be this hard... discussions i've seen on forums talk about writing a peice of java to copy the apk resources into c++ accessible files... surely there is a better way Feb 10 12:43:15 i have many custom data formats (3d models) so traditional resources tied to one platform dont work for me Feb 10 12:44:38 I imagine if there's a ton of OpenGL code involved, and that code doesn't make use of vertex buffer objects a lot, it won't work. Feb 10 12:44:47 You'd probably have to do a rewrite with OpenGL ES. Feb 10 12:45:16 First: Make sure you have Debugging enabled: Settings > Applications > Development > USB Debugging << lasserix hit me with anything that sounds stupid, i'm likely doing it :-) I just found this, I think "Depuracion USB" which is checked/green, so I think that might be OK Feb 10 12:45:16 ceti331_: i am not totally sure, but a phone has to be rooted to have direct access to those paths (for accessing, etc) Feb 10 12:45:45 I just have had problems with i think the fascinate ? and usb cables Feb 10 12:46:00 and looking online seemed to be a general samsung prob Feb 10 12:46:08 my phone is defniitely not rooted: and i've just been able to drop MAME roms in, playing r-type 2 quite happily :) Feb 10 12:46:45 ceti331: they are making those folders outside the "protected" directories for you to use ? Feb 10 12:46:54 it appears so Feb 10 12:47:08 http://androidcommunity.com/forums/f4/adb-in-linux-35609/#post320430 < I guess I should do this... Feb 10 12:48:17 lsusb: Bus 001 Device 022: ID 0bb4:0c87 High Tech Computer Corp. Desire (debug) < this proves that debug is on. On by default = strange to me, though. Feb 10 12:48:34 so when i connect my galaxy nexus in linux, i'm seeing a folder with "android/ ROMS/MAME/ quake/ doom/ Pictures/ ..." Feb 10 12:48:55 i dont think that is the 'root' of the filesystem though by any means Feb 10 12:49:15 yeah i believe that folder is created by mame for the user to use Feb 10 12:49:36 that would suit me fine if i could do exactly that from my own C++ app Feb 10 12:49:44 then i can just drop my data in Feb 10 12:50:08 dont forget Feb 10 12:50:22 what i've got so far is i pass getFilesDir().getAbsolutePath() to C++ and cache it Feb 10 12:50:26 yes i've got that permission Feb 10 12:50:42 http://stackoverflow.com/questions/4731314/android-ndk-write-file ? Feb 10 12:50:59 i've been able to create & read files in /data/data/.../files fine, but the issue is i can't put anything there from my development machine (that i know of) Feb 10 12:51:32 oh let me see if adb can see those mame directories.. Feb 10 12:51:39 maybe that will give me a clue what to do Feb 10 12:52:08 yeah like i said i believe the phone has to be rooted otherwise they are "system hidden" Feb 10 12:53:06 heh find doesnt work in adb shell Feb 10 13:16:37 hey guys, help me out here : an activity has its own layout, a fragment has its layout but can only be used in a fragment activity, is this correct? Feb 10 13:18:58 i think you can also have a fragment thats not in a fragmentactvity Feb 10 13:19:02 in the void, so to speal Feb 10 13:19:03 k Feb 10 13:20:20 hmm, but if i wanted to have two fragments in one layout i would use a fragment activity ? Feb 10 13:20:43 yes Feb 10 13:20:48 running adb as root makes it work - new question, does the app need the write external permission when using the "preferExternal" install option? Feb 10 13:20:52 normal activities don't know about fragments Feb 10 13:21:36 arrnas in my experience, best make a fragment always, otherwise later you have to convert your act to a frag Feb 10 13:21:43 They don't? Feb 10 13:22:38 'normal' as in Activity versus FragmentActivity Feb 10 13:22:42 so i guess i figured my main question out then, master/detail flow has two fragments and two fragment activities instead of one fragment activity because phones need a seperate activity to display the detail part Feb 10 13:23:22 Activity doesn't know about support fragments, it knows perfectly well about fragments :p Feb 10 13:23:25 no Feb 10 13:23:33 you can swap your fragments in the same activity Feb 10 13:23:53 if you want an independent activity for your fragment, you can do that Feb 10 13:24:04 *for each of your fragments you can do that Feb 10 13:24:15 but personally i feel defeats the point of using fragments Feb 10 13:26:01 for a phone you just "hide"/swap out master for detail without starting a new activity Feb 10 13:26:32 depending on your ui nav pattern, you'd want to incorporate the backstack and use appropiate fragment manager calls Feb 10 13:28:05 i have an app that goes frag pattern like so --> " Feb 10 13:28:47 oops! home->browse catagory->catagory sublist->(detail: list || page view) Feb 10 13:29:09 all living in one activity Feb 10 13:33:51 so the example app is like that just because somebody preferred to use two activities? Feb 10 13:38:23 i dont know tbh, i think it's kinda of a legacy thing devs just used to using multiple activities for everything (before fragments) Feb 10 13:38:42 Some progress, i see there is an sd card directory i can get at from both ndk file functions, and adb push Feb 10 13:38:53 someone said alternatively you may want seperate entry points for your app hence multiple activities Feb 10 13:39:17 but you can just send the intent to start the one activity with flags pertaining which fragment to start and you don't need mult activities Feb 10 13:39:36 I cant see that on the usb storage browser.... But this at least is a start, i can actually put my assets on and read them Feb 10 13:40:05 maybe it's kinda how the US still doesn't use the metric system even though it makes more sense people are just used to a foot being a foot and not ~ 1/3 of a meter Feb 10 13:40:13 ;p Feb 10 13:40:23 Do you thik there will ever me a nice direct ndk api for the filesystem, or will ndk always be an afterthought Feb 10 13:41:08 it could be easier to do multiple activities on the phone, but since a fragment has many of the activity functions for saving state and etc i don't really know , Feb 10 13:41:27 ceti331_ if you build it, they will come :) Feb 10 13:41:41 heh ok community effort Feb 10 13:42:53 I guess in the longrun, downloading is the best answer, i am reading about some appstores having limited apk sizs Feb 10 13:43:37 seems to be what most of the gfx intense games do Feb 10 13:44:18 I was even considering putting some data embedded as c source lol Feb 10 13:44:28 esp cause i think people want to be able to d/l right away and open, and are happier with a cool splash screen / intro loading while it d/ls then having to wait for the android market indicator to go from 0--100 Feb 10 13:44:59 like if you just put in cut scenes, hints how to play or whatever Feb 10 13:44:59 Hi guys, I've installed an Android SDK on my mac, how can I determine what version is? Feb 10 13:45:28 Yeah data streaming across the web opens many other possibilities Feb 10 13:45:38 Continual updates too Feb 10 13:45:39 I managed to load from eclipse fine, but trying to install from an apk using File Browser app or Internet (default browser) fails with the "application not installed" error. The one that I setup without the preferExternal installs fine again now (but not previously), however the others with prerferExternal do not. Feb 10 13:46:03 plus ultimatly i dunno if you are independent dev but if you have server then you can do more monetizations schemes i think? Feb 10 13:46:29 i am tinkering with indie dev really Feb 10 13:46:47 fredcooke: make sure you have no typos in the manifest Feb 10 13:47:13 escube: open the update sdk and see what you have installed and have not Feb 10 13:47:29 or you can just make a new project and see what target it is using Feb 10 13:47:29 lasserix: stock example app for now, just limited internal storage, so i strongly doubt I made a typo, but I'll check it again anyway Feb 10 13:48:58 i could look at most of my key data being embedded so the game runs, and essentially download hi res models and textures Feb 10 13:58:57 I would still be very curious to find out how mame works, Feb 10 13:59:37 And i am surprised i cant see the galaxy nexus sdcard directory in usb storage mode, although i can adb push to it Feb 10 14:00:17 mame i think creates a directory accessable to the user Feb 10 14:00:37 then just uses that directory as a reference for reading the mods or whatever the user puts in Feb 10 14:01:54 for instance: try renaming the folder mame uses for its mods Feb 10 14:03:12 I cant yet find mames dir in adb shell - only usb storage in the desktop filebrowser Feb 10 14:04:42 Is it true thy are trying to phase out usb storage mode, i had to do something to enable it i recall Feb 10 14:04:59 yeah it is Feb 10 14:05:03 their favoring MTP Feb 10 14:05:05 dunno, but yeah its under settings Feb 10 14:05:27 And i read sd cards are on the way out too... Feb 10 14:05:42 SAY IT AIN'T SO. Feb 10 14:05:46 more reason to root the phone Feb 10 14:06:24 makes little sense to me; usb storage and so on is one big benefit of android over ios Feb 10 14:06:34 oh god Feb 10 14:06:47 exactly, ceti331_ Feb 10 14:07:11 the convienience of being able to do what you like Feb 10 14:08:39 When it comes to additional data being downloaded .. you would have to deal with hosting that yourself? Th appstores would only deal with an apk? Feb 10 14:09:06 double oh god Feb 10 14:09:30 http://developer.android.com/google/play/expansion-files.html Feb 10 14:09:31 rtfm Feb 10 14:11:13 Leeds you having one causal domain sheared night? Feb 10 14:11:33 erm... what? Feb 10 14:11:40 Oh god! Feb 10 14:11:44 http://www.labyrinthinhabitant.com/anathem.html Feb 10 14:11:50 you just keep saying oh god Feb 10 14:13:06 wow no one reads anymore only 4 hits for the phrase "casual domain shear" which is so useful this day and age Feb 10 14:13:13 calling for help from above to deal with... people who keep wanting to have conversations about MTP, over a year after the decision was made, and people who spout stuff without reading the docs Feb 10 14:15:18 To me android is just one of many environments, i dont have time to read everything Feb 10 14:15:57 well i have what i need to make some progress so i am content for the minute Feb 10 14:43:59 is there a reason why onResume() / onPause() seem to get called twice when the screen goes off and twice again when it comes back on? Feb 10 14:44:57 and although onPause() does get called last, it doesn't seem to execute my thread-pausing code for some reason Feb 10 14:45:24 how can i have the same thing happen when i turn off the screen as when i tap the home button? (one onPause call) Feb 10 15:27:46 onCreate seems to get called when i press the power button or let the screen turn off - is there a way i can prevent this from happening? Feb 10 15:32:14 ivdorelian you should assume your activity can get killed any time Feb 10 15:33:06 even when the screen turns off? Feb 10 15:33:30 it's a bit weird that it gets killed then but not when i press the home button Feb 10 15:34:00 it matters not Feb 10 15:34:14 if it's not on top, assume you will get killed Feb 10 15:34:48 heh Feb 10 15:34:59 Hi, I have a 'public class RoosterFragment extends Fragment' and also a 'java.lang.ClassCastException: nl.haas_en_berg.rocflevoland_rooster.RoosterFragment cannot be cast to android.app.Fragment'. How is this possible? Feb 10 15:35:28 Because it extends the support version of fragment Feb 10 15:35:39 Ah, sounds likely Feb 10 15:35:43 How do I fix that? Feb 10 15:35:56 Don't cast it to the native fragment Feb 10 15:36:04 I don't, someone else does Feb 10 15:36:09 lemme post the full stacktrace Feb 10 15:36:26 http://paste2.org/p/2845657 Feb 10 15:36:57 'someone else' is android itself Feb 10 15:37:15 You forgot to extend FragmentActivity Feb 10 15:37:45 ah :) Feb 10 15:38:06 * Peetz0r tries again now Feb 10 15:38:34 SimonVT: Thanks! Feb 10 15:38:40 Now I have the result I was expecting Feb 10 15:51:15 Hi there, anyone here who uses dexguard? Feb 10 15:52:13 what is the best way to communicate from a service to a background thread, asynchronously, without implementing your own message passing interface? Feb 10 15:53:46 Ge0rG: AIDL interface Feb 10 15:54:06 if you dont want messenger stuff Feb 10 15:54:44 StingRay_: aidl is blocking Feb 10 15:54:57 well only if you do nothing Feb 10 15:55:02 StingRay_: also, it is for activity-service, not for service-backgroundthread Feb 10 15:55:08 as in no thread management Feb 10 15:57:30 I could do perverse amounts of Handler.post() Feb 10 16:01:23 Hi everyone Feb 10 16:06:26 In ICS (4.0.4) half the touch/click events suddenly don't get passed to the WebView Feb 10 16:08:55 Hello - I'm trying to use Apache's httputils - if I try to use them in a normal Java project I can use EntityUtils.consome and httpGet.releaseConnection, but in an android project I cant. Any ideas why?# Feb 10 16:09:00 *consume Feb 10 16:09:32 fuck android. really. the more you get into it the more it's ibvious it's not ready yet. Feb 10 16:09:40 *obvious Feb 10 16:09:50 yeah, fuck android man Feb 10 16:10:30 :| Feb 10 16:12:21 LOL, what? System.getProperty("dalvik.vm.heapgrowthlimit") << seen on the interwebs of the world, but getProperties foreach Log.i does not reveal it, is it newer than 2.2 or what? Feb 10 16:18:22 WhereIsMySpoon: different versions / implementations, probably, Android uses a forked version I think. Feb 10 16:18:39 EuroTrash: yea I just found it, android.net.http, is a wrapper around apache's Feb 10 16:18:52 There's ways to use the standard httputils instead, though, and supply it as a lib. Not sure if it's tricky. Feb 10 16:22:48 I have a cleanUpInbox method in my code, triggered by an alarmManager every X period of time...do I go out with an AsyncTask? Feb 10 16:22:57 it's completely hidden from the user's eyes (the work) Feb 10 16:23:43 Feb 10 16:24:34 Hi! SimonVT, can you help with your number picker? If I use it and action bar sherlock it appears black with numbers very dark in preference dialog on android 2.3. Feb 10 16:25:36 Here is definition of theme http://pastie.org/6110511 Feb 10 16:26:00 does anyone have a workaround for piece of junk android failing to register simple tasks? Feb 10 16:26:01 http://stackoverflow.com/q/14708618/521361 Feb 10 16:26:10 how to transfer files between samsung galaxy 3 and MBA? Android File Transfer doesn't work anymore Feb 10 16:26:53 you're working on Ubuntu phone? Feb 10 16:26:54 lol Feb 10 16:27:00 don't call it a piece of junk. Feb 10 16:27:53 What on earth does this mean?: http://pastie.org/6110517 I have no red x's in my project anywhere Feb 10 16:28:02 I tried to google with it but i got no results Feb 10 16:29:05 don't call it a piece of junk. << that's what it is :P half the basic stuff doesn't even work properly Feb 10 16:29:18 you're the one coding :) Feb 10 16:29:20 you're working on Ubuntu phone? << nah just a home screen replacement Feb 10 16:29:43 Sicp, that's why i don't like having to override half of android's basic functionality because it doesn't work out of the box Feb 10 16:29:53 it does here.. Feb 10 16:30:01 only time it fails is when I have written something wrong Feb 10 16:30:09 lucky you Feb 10 16:31:00 why is eclipse juno not recommended for android dev? Feb 10 16:31:31 DrChaos_ it is by some Feb 10 16:31:37 others like myself prefer intellij Feb 10 16:32:02 I use Juno Feb 10 16:32:30 DrChaos_, i'm running juno. Frankly eclipse is the only thing that *does* work Feb 10 16:32:34 didn't like how IntelliJ sectioned parts of the SDK so much, every project has to have its own SDK selected for it alone Feb 10 16:32:55 or at least that's how I failed at it when I tried it Feb 10 16:33:17 (17:30:09) RobinJ: lucky you Feb 10 16:33:17 no luck involved, these are computers we're talking about, afterall. Feb 10 16:33:30 ? you just define a sdk for a version of android and you use that for x projects Feb 10 16:36:30 Is anyone able to take a look at the pastie I linked and point me towards why this error could be happening, please? :) Feb 10 16:45:19 Both styles work for me: http://stackoverflow.com/questions/2630158/detect-application-heap-size-in-android/9428660#9428660 I guess those dalvik.vm vars are old/unused? Feb 10 16:48:54 when buttons go off screen in the gui editor, how do i get them back? Feb 10 16:50:50 update eclipse, java, adt, windows, screend rivers Feb 10 16:51:03 add more ram Feb 10 16:51:05 configure eclipse.ini Feb 10 16:51:55 =\ why do they allow noobs in the android channel? Feb 10 16:53:46 cos the C channel is full man ;) Feb 10 16:57:42 =\ found the problem, thanks Feb 10 16:57:55 Okayyy, so it seems Android doesnt like any files in any directories that dont have extensions on them. >_> Feb 10 16:58:19 WhereIsMySpoon: cause you updated java ? Feb 10 16:58:23 StingRay_: what? Feb 10 16:58:58 StingRay_: there are multiple SO posts on it :P Feb 10 16:59:04 hmm... not sure how else to ask that...... update java, did you ? java, did you update? Feb 10 16:59:18 StingRay_: I know what you said, whats that got to do with it Feb 10 16:59:22 And i dunno Feb 10 16:59:24 did java update you? Feb 10 16:59:40 you dont know ? Feb 10 16:59:44 Re HTC Desire memory, class 24 meg is the number for this Spanish market phone on Orange. My app idea will need 13 meg just for 10mins of data, approx, leaving me 11 for other objects, which should be sufficient. Feb 10 16:59:55 i just run pacman -Syu every day, glance over the stuff to make sure its legit then press y Feb 10 17:00:02 i dont memorise the stuff Feb 10 17:00:05 fail Feb 10 17:00:21 * fredcooke runs Debian sid, and only updates those things that he needs to. Feb 10 17:00:28 Anything else is asking for constant breakage Feb 10 17:00:36 dun like debian :) Feb 10 17:00:46 you can pin packages in arch Feb 10 17:00:52 eg kernel Feb 10 17:00:56 ok? Feb 10 17:01:03 so you don't reboot more than an average win box :-p Feb 10 17:01:17 i like mint Feb 10 17:01:20 i don't use arch, but i know people who do, in any case, this is off topic, sorry to everyone. Feb 10 17:18:49 google play store statistics are still broken for me :E Feb 10 17:34:52 hi everyone. just read that its not possible to set alarm manager on boot when app is on external storage. I was wondering if it makes sense to use a widget to do the job Feb 10 17:35:34 sinaa: you want to listen for a certain broadcast event Feb 10 17:35:58 Feb 10 17:36:13 clever: that wont happen for external storage apps (its called before storage mount) Feb 10 17:36:19 ah Feb 10 17:36:30 its a big issue apparently in the android community Feb 10 17:36:48 cause you need to force your app to be installed on internal memory, and users dont want that Feb 10 17:37:45 I want to make an app forked from a calendar app. Easiest way to do this? Feb 10 17:37:51 and I've been thinking if it makes sense to put the alarm setting task on a widget Feb 10 17:38:09 (and whether anyone may have done this before) Feb 10 17:38:52 conor_f: I thnk I answered your question... Feb 10 17:39:36 Just wanted to get a second opinion. sorry Feb 10 17:39:49 it isn't really on topic here. Feb 10 17:39:53 sinaa, try use ACTION_MEDIA_MOUNTED Feb 10 17:40:33 Udmurt: I've been thinking if giving the user the option to install or not install the widget can be a better idea Feb 10 17:40:42 I want to be as power efficient as possible Feb 10 17:42:52 hi, funny problem, I'm getting this exception when using DefaultHttpClient (or any client really): java.net.UnknownHostException: Unable to resolve host "www.google.com": No address associated with hostname Feb 10 17:43:09 put when I ping www.google.com from shell, it resolves it without any trouble Feb 10 17:43:24 bet1m: android.permission.INTERNET? Feb 10 17:43:38 timroes, yes I have that on my manifest Feb 10 17:43:44 also, is it possible to install a widget on app install? Feb 10 17:43:54 it works fine with wifi, but not with gprs Feb 10 17:45:30 One of my maven dependenceis use a version of the support library not in central. Any way I can change the version of my dependency's dependency, without deploying it locally to my computer? Feb 10 18:00:04 I'm using the support library. 'FragmentTransaction transaction = getFragmentManager().beginTransaction();' tells me 'Type mismatch: cannot convert from android.app.FragmentTransaction to android.support.v4.app.FragmentTransaction' Feb 10 18:00:27 Can someone explain this? The support lib vs regular lib thing is giving me a headache Feb 10 18:08:44 incorrect import? Feb 10 18:08:51 is it possible to have Log.something() enabled in signed release builds? Feb 10 18:10:15 rootty: yeah, but all my Fragment-related imports refer to android.support.v4.app.Something Feb 10 18:11:19 Peetz0r: getSupportFragmentManager() ? Feb 10 18:12:07 rootty: thanks, that's what I needed :) Feb 10 18:55:03 why cant i wrap this linearlayout with a framelayout? http://mysticpaste.com/view/45UXOok82T?3 Feb 10 18:58:17 andronaut: only thing i can think of, remove the second xmlns:android Feb 10 18:59:00 clever, still gives me a well formed error Feb 10 18:59:14 cant think of anything else Feb 10 18:59:24 oh wait Feb 10 18:59:25 line 4 Feb 10 18:59:31 your framelayout ends Feb 10 18:59:39 then on line 62, it ends again! Feb 10 19:00:29 you mean the forward slash ends it? Feb 10 19:00:36 yeah Feb 10 19:00:44 the error is gone :D Feb 10 19:00:49 thats how you end a tag in the starting element Feb 10 19:01:27 it warns me that the parent is useless though Feb 10 19:02:02 yeah, if your not using the framelayout for anything special, it can just be dropped Feb 10 19:22:19 All, I'm doing black box testing using robotium and I need to get a unique view for a view, is there any way to do it? Feb 10 19:23:05 (On a single instance, I could probably use hashCode, but obviously not everywhere) Feb 10 19:23:52 is there a dependency injector that actually hides code instead of requiring you to delete the boilerplate? Feb 10 19:24:23 andronaut: have you checked out dagger? Feb 10 19:24:30 http://square.github.com/dagger Feb 10 19:25:01 no but i will Feb 10 19:25:51 andronaut: it is an awesome library. Feb 10 19:30:50 hey guys, i have my emulator up and i'm pressing build and nothings happening Feb 10 19:30:51 :( Feb 10 19:30:51 grr Feb 10 19:31:37 oh nvnm Feb 10 19:31:39 it just took a while Feb 10 19:31:40 my bad Feb 10 19:39:31 i'm setting up a preferences screen whilst using ABS in my project and I'm thinking it may be better (albeit more work upfront) to just roll my own and use a listfragment. This actually doesn't have anything to do with ABS. Anyone done this? Feb 10 19:41:06 jeppy: as opposed to? Feb 10 19:42:12 using preferenceactivity Feb 10 19:42:36 i'm supporting api 8+ so preferencefragment is out, unless i'm unaware of something Feb 10 19:43:28 even with preferencefragment, you still use a preferenceactivity Feb 10 19:44:10 do you plan on support tablets? Feb 10 19:45:00 Would be a lot less work to preferenceactivity/fragment on api11+, and just preferenceactivity +1 Feb 10 19:45:44 arg Feb 10 19:46:02 * jeppy` needs to get a new isp Feb 10 19:58:52 I am creating a persistent system-app that is running as a system user Feb 10 19:58:59 I am wondering if there is a way for me to debug its startup Feb 10 19:59:13 yeah Feb 10 19:59:31 in your manifest you have a startup as boot? Feb 10 19:59:40 yup Feb 10 19:59:47 well I specify android:persistent="true" Feb 10 19:59:47 ok here what i suggest Feb 10 19:59:58 which implies that it will be started immediately after all system serviecs Feb 10 20:00:02 the problem is that when I kill it Feb 10 20:00:07 it immediately spawns back up Feb 10 20:00:15 since it is a system app that is "persistent" Feb 10 20:00:22 you can use android.io.debug or android.debug.... to wait until a debugger attaches Feb 10 20:00:32 ah interesting Feb 10 20:00:35 k let me look Feb 10 20:00:36 put this in your application object Feb 10 20:00:45 in the onCreate() Feb 10 20:01:59 hmm. I can't seem to find android.debug or android.io.debug Feb 10 20:02:47 let me check - i put a bookmark :) Feb 10 20:03:04 thanks monsti :0 Feb 10 20:03:06 :) Feb 10 20:03:44 android.os.Debug.waitForDebugger(); Feb 10 20:04:02 this opens the dialog "waiting for debugger.." Feb 10 20:04:24 and in eclipse go to DDMS - click the process an press "debugger attach" Feb 10 20:05:35 thanks monsti Feb 10 20:05:36 perfect Feb 10 20:07:05 well i also did a very very very supid hack Feb 10 20:07:22 ... a Thread.wait(60 * 1000); Feb 10 20:07:32 .... and then you have time to attach the debugger ;) Feb 10 20:10:51 Can someone help me fix "onBackPressed" in my PreferenceActivity? The way it is now the back button will close the app entirely and not just PreferenceActivity. I start the PreferenceActivity with "Intent i = new Intent(this, SettingsActivity.class); startActivity(i);" and the PreferenceActivity is basically just: "addPreferencesFromResource(R.xml.settings);" Feb 10 20:11:23 I don't see why the back key doesnt just return me to the previous activity Feb 10 20:13:09 Quacked check the activity that you are launching PreferenceActivity from. Check the onPause() method and make sure you do not call finish(); inside that method Feb 10 20:13:31 You want the previous method to pause but not finish Feb 10 20:13:37 onStop had this.finish(); :D Feb 10 20:13:40 thank you Feb 10 20:14:23 No problem, remove that and it should work for you, as long as onPause and onDestroy are ok Feb 10 20:14:34 works fine Feb 10 20:14:48 I tried a workaround with startActivity in onBackPressed, but I knew that was wrong :) Feb 10 20:14:53 (although it kinda worked) Feb 10 20:15:34 Yeah I'm no expert but that probably isn't the best way to do it, I don't know how well onBackPressed works across devices and you would be relaunching the activity a lot which takes more time Feb 10 20:15:41 yep Feb 10 20:15:48 Glad you got it working though :D Feb 10 20:19:07 When I'm overriding getItemViewType, what's the typical way of storing the types? Right now I have a collection of MenuItem which is subclassed into concrete types, and I've just manually assigned them all an ID from 0 - N-1. It's kinda klunky though. Feb 10 20:19:43 Another issue though, if I add android:parentActivityName to the manifest, I can go "Up" from the PreferenceActivity and back to MainActivity, but then it looks like the MainActivity is relaunched. Is that normal? Feb 10 20:20:21 how to transfer files between samsung galaxy 3 and MBA? Android File Transfer doesn't work anymore Feb 10 20:23:19 hi. how can I fix this http://pastebin.com/VTZuDfVR so it wo't give me NPE ? Feb 10 20:24:12 I get this weird NPE on closing my app: http://paste2.org/p/2846376 What am I doing wrong? Feb 10 20:26:02 Peetz0r, where is your code? Feb 10 20:26:30 superlinux-hp: which code are you referring to? Feb 10 20:26:40 I don't see any reference to my code in that stack trace Feb 10 20:27:06 How can I figure out what this warning is: Resources | Converting to String: TypedValue{t=0x10/d=0x1770 a=-1} ? Feb 10 20:28:14 is there a way to remove a system app? Feb 10 20:28:24 Peetz0r, I am just one year android experience. so what i think is just a wrong;y linked library Feb 10 20:28:25 adb uninstall com.my.test.app does not work :( Feb 10 20:28:26 sleepster: I guess you need root Feb 10 20:28:37 I thought adb ran as root though Feb 10 20:28:57 also my app is set with "android:persistent=true" so it keeps spwaning up Feb 10 20:28:58 hi. how can I fix this http://pastebin.com/VTZuDfVR so it wo't give me NPE ? Feb 10 20:29:15 what I probably need to do is somehow figure out how the app is spawned up, and then disable it Feb 10 20:29:22 probably in init.rc or something Feb 10 20:35:03 hi. how can I fix this http://pastebin.com/VTZuDfVR so it wo't give me NPE ? Feb 10 20:35:04 superlinux-hp: Use getIntent().getStringExtra(), check if the result is null to test whether or not the value exists associated with that key. Check for existence of both values, not just the first. Feb 10 20:35:14 ok Feb 10 20:57:51 found some weird bug, iscroll stops working randomnly within a phonegap app, but when I use to 2 touchpoints to drag it it works Feb 10 21:06:42 How can I figure out what this warning is: Resources | Converting to String: TypedValue{t=0x10/d=0x1770 a=-1} ? Feb 10 21:22:04 hey guys why can't an android fragment call a public function. Feb 10 21:24:07 Icekiller: what do you mean? Feb 10 21:26:40 novie I have a fragment, I am attempting to call a function inside of another public class.java file. It is giving me a null pointer exception from the fragment and not the function itself. Feb 10 21:27:16 null pointer means that something is null. Feb 10 21:27:33 either the object you are trying to call from the fragment is null or the fragment is null Feb 10 21:28:01 ^^ Feb 10 21:28:06 Quacked, what are you doing? Feb 10 21:29:17 16/9 = 6000 a=-1 Feb 10 21:29:29 err 16/d = 6000 a =-1? Feb 10 21:29:48 why are you using hex and parsing to string? Feb 10 21:30:10 Icekiller: pastebin the code that crashes Feb 10 21:32:15 Quacked that is hex, idk what your code is doing but thats what it says^^ Feb 10 21:33:08 Resources | Converting to String: TypedValue{t=16/d=6000 a =-1} Feb 10 21:36:01 any NineOldAndroid users here? Feb 10 21:36:23 when I wrap my view with AnimatorProxy, the animation breaks on 3.0+ devices :/ Feb 10 21:44:56 l Feb 10 21:45:33 why cant the gui on the emulator go into landscape mode? Feb 10 21:47:24 andronaut: http://stackoverflow.com/questions/2618967/switching-to-landscape-mode-in-android-emulator Feb 10 21:48:07 yes the orientation of the window and apps change but not the home screen and the screen with all the icons Feb 10 21:49:13 andronaut: the launcher doesn't support landscape Feb 10 21:50:29 Tricknology: hmm.. the app is really just a countdown timer using AlarmManager Feb 10 21:53:17 Upon orientation change, inside a Fragment aCtivity, how do I get hold of the fragments again? Feb 10 21:54:52 well quacked hopefully the numbers 16. 6000 and -1 help Feb 10 21:55:04 or at least the variable t, d, and a Feb 10 22:13:28 I'm finding Jelly Bean's ProgressBars too small - is there a commonly used alternative? Feb 10 22:16:12 hello .. how can i lock screen ?? (i need lock screen in my phone , like what Proximity do ) Feb 10 22:24:56 weox: what? Feb 10 22:26:07 novie : in some where in my program i should lock screen for any touching . how can i do that ?? (in phone with proximity sensor , when user talking screen is disable , i want something like this) Feb 10 22:28:30 novie : SCREEN_DIM_WAKE_LOCK , i think it is what exactly i want !! Feb 10 22:29:02 weox: that will keep the screen on but dimmed. Feb 10 22:29:43 novie : in that mode , user input processing ?? user touch ?? Feb 10 22:30:51 weox: it just keeps the screen on. doesn't have anything to do with input or touch. Feb 10 22:32:09 novie : thanks . how should i do ? i just want screen off , but any thing work .(of curse touch and input in screen not processing) Feb 10 22:33:34 weox: I'm not sure. Feb 10 22:58:06 * peroht cries at getSupportFragmentManager().findFragmentByTag() Feb 10 23:35:26 Is android dev and solaris plausible? Feb 10 23:44:45 it's not supported, but you could vbox linux ( like i do ) and dev that way Feb 10 23:46:42 i see in some api something like this : "Only the system can get this permission" , where can i found any information about system level api ?? Feb 11 00:03:26 ok #android is useless. how do I get the 'stop' command? I have busybox but it doesn't have it. all the instructions for adb over tcp refer to this command Feb 11 00:03:47 ... stop? Feb 11 00:04:04 http://stackoverflow.com/questions/2604727/how-can-i-connect-to-android-with-adb-over-tcp Feb 11 00:04:26 I see, no clue then Feb 11 00:05:24 can you run something like adb kill-server on your phone? i think it's talking about that Feb 11 00:05:31 andkore: what's the problem you're havig? Feb 11 00:05:31 lemme check Feb 11 00:05:44 Peetz0r: just trying to figure out how to get/use that command Feb 11 00:06:01 kill server not found either Feb 11 00:06:14 I've never used a 'stop' command and I've been using adb over tcp/ip all day today Feb 11 00:06:20 oh Feb 11 00:06:23 how do you do it? Feb 11 00:06:41 well, my phone (cyanogenmod 9) has a menu option for it Feb 11 00:06:55 oh lol Feb 11 00:07:01 I have busybox ... and /system/bin/stop Feb 11 00:07:03 andkore: don't have a usb cable to set it from the laptop side? Feb 11 00:07:09 stock android doesn't, so you can connect over usb, then run 'adb tcpip 5555' Feb 11 00:07:11 that's usually easier Feb 11 00:07:14 MDijkstra: oh I do. I just want to fix this Feb 11 00:07:30 then disconnect usb, and run 'adb connect 192.168.3.147:5555' Feb 11 00:07:31 setting it every time from the computer side is not 'easier' imo Feb 11 00:07:33 and it will work :) Feb 11 00:07:34 I want ot automate this Feb 11 00:07:36 to* Feb 11 00:08:02 capella: hmm. any idea where it came from? Feb 11 00:08:20 next time, if your device hasn't rebooted or anuthing, you'll only need the 2nd command (and you won't need to plugin and remove usb) Feb 11 00:08:41 yeah. Feb 11 00:09:07 I think you can change the setting in build.prop or something Feb 11 00:09:22 Could be. Lemme check that file on my 2 devices Feb 11 00:09:40 andkore: I dunno, I'd prefer to set it manually Feb 11 00:09:50 My phone has an unofficial CM9-build, my tabket has almost-stock-4.0.3. Feb 11 00:09:58 andkore: since it gives everyone on the same wifi network full access to your phone Feb 11 00:10:18 but for testing devices you may want to have it enabled constantly Feb 11 00:10:21 yeah, that's true. at least if I could use thoes commands I could create scripts to enable/disable Feb 11 00:10:32 hi all Feb 11 00:10:33 I think there's a number of apps that do that Feb 11 00:10:43 let you toggle adb-wifi Feb 11 00:10:55 i am currently learning java, and would love to try some android evelpoment Feb 11 00:11:12 there are. I'm developing a compulsion to do things the linux-y way Feb 11 00:11:24 if anyone could offer some brilliant insight, and help me i would be very grateful! Feb 11 00:11:42 shaun413: uh, what are they supposed to tell you? Feb 11 00:11:43 shaun413: read the topic :) Feb 11 00:11:56 dunno about this start/stop command, if you already have busybox you could check whether it's just not on your $PATH Feb 11 00:12:01 hmm Feb 11 00:12:05 ie, something like Feb 11 00:12:16 find / -name stop -type f Feb 11 00:12:23 I checked the busybox website Feb 11 00:12:27 im not sure what I want you to tell me, is it a viable for a small income? Feb 11 00:12:34 it's not in the binary. I think it's a stock android thing that my custom ROM cut out Feb 11 00:13:08 shaun413: what exactly is your question? Feb 11 00:13:12 andkore: it's most likely a small shell script that just kills or starts adbd Feb 11 00:13:33 is it viable for producing some income Feb 11 00:13:36 hm. what other commands would I use? kill? Feb 11 00:13:48 hey guys. I have Jake's ABS and ViewPageIndicator set up... so I have this tab paging thing, and inside the TestFragment.java file, based on what 'page', I inflate xml layout A, or xml layout B... inside xml layout A, I wrote this until you flip too fast... it'll then blow out with this InflateException... any ideas of what stupid I'm doing this time? Feb 11 00:13:52 also, what resourses should i look at for getting started? Feb 11 00:14:46 shaun413: depends. If you can invent the next Draw Something or Wordfeud or anything, then definately yes. If you're going to create the bazillionth television series soundboard, then maybe not. Feb 11 00:14:54 shaun413: read teh topic Feb 11 00:15:10 andkore: you could try the following: Feb 11 00:15:16 shaun413: http://developer.android.com/training/index.html Feb 11 00:15:18 setprop ctl.stop adbd Feb 11 00:15:22 setprop ctl.start adbd Feb 11 00:15:26 thanks! Feb 11 00:15:37 how'd you find that out? Feb 11 00:15:44 http://matejcik.blogspot.nl/2010/10/starting-and-stopping-android-core.html Feb 11 00:16:07 MDijkstra: thanks a lot Feb 11 00:16:12 good chance that start/stop are just aliases for those commands Feb 11 00:16:23 np Feb 11 00:18:47 sweet Feb 11 00:18:52 that works I think Feb 11 00:19:08 yes it does Feb 11 00:19:44 when you guys ssh into your phones, does it take you to the /data/local directory? Feb 11 00:20:09 bit weird that they overload the property system to signal start/stop events Feb 11 00:20:17 but whatever Feb 11 00:20:22 what do you mean overload? Feb 11 00:20:30 oh Feb 11 00:20:36 yes, using the property system for that seems odd Feb 11 00:21:22 how difficult is it to learn android dev, if you know java Feb 11 00:21:54 not very Feb 11 00:22:00 just follow some tutorials Feb 11 00:22:13 there's so much documentation out there Feb 11 00:22:38 and really helpful tools Feb 11 00:22:42 like ADT Feb 11 00:33:02 I am just getting started with android development. I installed the dev environment (jdk,eclipse,adt, etc) on my MacBook Pro (2011 model) running Windows 7 with 8Gb RAM. It is painfully slow running the emulator. It won't even run the simple drawing app (Doodlz) from my android book. Do I need to stick to doing app dev on a desktop (my MacPro)? Feb 11 00:33:56 From experience, using the emulator is pretty slow Feb 11 00:34:20 Though it seems to have gotten faster over the recent ADK releases Feb 11 00:34:46 The emulator can chugg along at a snails pace so I generally stick to debugging on an actual device. Feb 11 00:35:20 emulator works quite well for me nowadays Feb 11 00:35:35 ah, ok...maybe i'll pick up a device. thanks :) Feb 11 00:36:00 but yes, device is best option Feb 11 00:36:08 :) Feb 11 00:36:21 The other benefit of course is that you can to see it on a real world device. Feb 11 00:37:16 true, i figured i would get a device a little later, but i think i'll go grab one sooner. Feb 11 00:43:26 Anyone have any experience with .apk expansion files? Feb 11 00:44:51 The biggest benefit is that you'll have a real-world device! Feb 11 00:45:32 And join the Android club! xD Feb 11 00:46:00 even a gingerbread device is useful Feb 11 00:46:13 most users use gingerbread Feb 11 00:46:21 unfortunately Feb 11 00:46:27 ^ lol, beat me too it Feb 11 00:46:36 indeed Feb 11 00:46:38 thomas_: a 2.3 image in the emulator runs quite fast compared to a 4.2 iamge on the same hardware+emulator Feb 11 00:46:50 but on my apps that's about 25% of users Feb 11 00:46:53 but barring free devices... Feb 11 00:46:58 rest are on 4.x Feb 11 00:47:01 also, you can have an android tablet that is faster than the emulator for less than €100 Feb 11 00:47:31 Peetz0r: thanks, i'll try that out :) Feb 11 00:48:10 Zharf: I suspect a largish fraction of users are ones with old phones that have maybe eight apps installed tops. Feb 11 00:48:36 and those were installed by the person giving the phone Feb 11 00:49:11 I have 14 apps installed and I'm all out of space :E Feb 11 00:49:36 I should root and uninstall the crap Feb 11 00:50:24 I.d love to know figures for newly registered (last six months) phones in the UK and us Feb 11 00:50:36 oh and all the apps that could be put on sd are on sd Feb 11 00:51:16 that's 11 apps on sd Feb 11 00:51:45 also, I know I have one dormant device, still in the stats, and wjkk be till it dies. it is stuck in my kitchen displaying weather forecast Feb 11 00:52:02 heh Feb 11 00:52:21 I have a froyo device I use for testing Feb 11 00:53:34 I may be weird though Feb 11 00:54:08 I have had my nexus 4 a week,and not put in a sim Feb 11 00:57:01 My devices run only 4.0 Feb 11 00:57:29 altough I should possible downgrade my phone to 2.3 for performance reasons and/or get a new one Feb 11 00:57:55 My hpone is kinda slow since I tried different 4.0 roms on it, but what did I think Feb 11 00:59:24 it's the htc wildfire, singlecore at 528hmz (oc'd to 768), and 320mb ram Feb 11 00:59:49 hmmz, my phone appears to have as much ram as my tablet Feb 11 01:00:00 but my tablet is 2 years newer, and performs way better Feb 11 01:01:38 according to the specs, my tablet is supposed to have 512mb ram, but 'free' tells me there's only about 300 :p Feb 11 01:09:40 Peetz0r: some of it goes to various hw Feb 11 01:11:21 Ndk... I am usiing a sample with .cpp extention but cant seem to include iostream ... Do i neeed additional comiler flags in the makefile to get cpp starndard libraries Feb 11 01:16:03 I can see these headers in the ndk Feb 11 01:16:45 And the sample is including headers from around there Feb 11 01:24:28 Its definitely compiling cpp Feb 11 01:24:33 E Feb 11 01:25:28 Just tried cpp11 support, added std=c++11 to the makefile , but still no acesss to standard cpp headers Feb 11 01:42:16 hey guys, whats the typical library used for REST API communication in Android? Feb 11 01:42:20 anyone got any favorites? Feb 11 01:43:27 Anyone here use ndk with c++, i am having difficulty with cpp headers Feb 11 01:48:17 and…. nothing :) Feb 11 02:03:01 anyone know how to change the home directory (from /data/local)? Feb 11 02:18:16 join #c++ Feb 11 02:22:53 I am developing aport ofaweb app,I ohhbrbeyboardbattery draainning :) Feb 11 02:32:19 Just tried adding thenheaders manually Feb 11 02:32:39 The include paths.. Its getting some but has compile errors... I cant help but feel i must be missing something for it too not have them already Feb 11 02:33:55 Hi all Feb 11 02:34:55 Ok i see sometihng about exporting Ndk toolchain version environment variable Feb 11 02:42:23 any recommendations for 2d game engines? Feb 11 02:43:30 jug6ernaut, no Feb 11 02:43:53 as of about 6 months ago, my opinion went to that of "there are no good, free game engines for android" Feb 11 02:43:54 * jug6ernaut is surprised u didn't say and engine :P Feb 11 02:44:04 when was the last time andengine was updated? Feb 11 02:44:11 9months :\ Feb 11 02:44:17 Anyone here use the ndk? Feb 11 02:44:25 hence my comment :P Feb 11 02:44:29 ceti331_ ask ur question :) Feb 11 02:44:35 canadiancow fair enough lol Feb 11 02:44:44 * jug6ernaut isn't sure with what to go with Feb 11 02:44:55 i Feb 11 02:45:00 i'd be tempted to try cocos2d-x Feb 11 02:45:07 if onlyb ecause i believe it's still being worked on Feb 11 02:45:07 I dont appear to get standard cpp headers, although cpp syntax is compiling Feb 11 02:45:16 but it still has too much zynga influence for my tastes Feb 11 02:45:16 I'm looking at examples of that right now actually Feb 11 02:45:46 zynga has touched cocos2d also? or just influenced Feb 11 02:46:03 well the bought the people who were behind the iphone version Feb 11 02:46:08 Ive found something talking about standard library support APP_STL but setting it to variousmthings isnt improving it Feb 11 02:46:17 and they're also heavily influencing cocos2d-x Feb 11 02:46:35 cant include vector iostream etc Feb 11 02:46:50 ceti331_ just look up the headers and source, they are all in the ndk Feb 11 02:47:00 Yes theyre there Feb 11 02:47:11 But something isnt settup , they wont include Feb 11 02:47:18 then its just a matter of not having the right path to them Feb 11 02:47:34 canadiancow ic Feb 11 02:47:39 I tried manually adding paths to my makefile but something was still wrong Feb 11 02:47:49 all I'm really looking for is a good sprite engine atm Feb 11 02:47:56 anything more then that is to much time/work lol Feb 11 02:48:07 Its compiling the sample ok, but not when i try to use cpp stlib Feb 11 02:49:04 so what is ur actual problem? Feb 11 02:49:46 It wont let me add cpp code using stl Feb 11 02:49:50 At the moment Feb 11 02:50:47 Now i read APP STL Must go in appplication.mk not android.mk in jni Feb 11 02:50:56 Trying to find that Feb 11 02:51:21 bla, been to long since I've done anything ndk Feb 11 02:52:01 * jug6ernaut used no applications.mk Feb 11 02:52:01 Heh. I cant find that in this sample :) and it clearly states it doesnt work in android.mk which i domhave Feb 11 02:52:07 only android.mk Feb 11 02:52:31 I am just going from a sample... My plan is to include my source , unity build style Feb 11 02:53:00 its a gles project , runs on ios and linux at the moment Feb 11 02:53:14 Does use cpp11 and of course stl Feb 11 02:54:11 yikes, i open up one of my .cpp files and i find this. Feb 11 02:54:21 logA("%d%d%d%d%d%d%d%d%d%d%d%d%d%d",Map[0][y],Map[1][y],Map[2][y],Map[3][y],Map[4][y],Map[5][y],….. Feb 11 02:54:28 Lol Feb 11 02:55:24 I think these options relate to linking of standard liibraries. I am perplexed as to why cpp headers arent just there by default Feb 11 02:56:18 Lol. I stop rolling my own collection classes and this is the result Feb 11 02:56:32 lol Feb 11 02:57:38 Grrr all those lovely devices but mr cpp coder a second class citizen Feb 11 02:58:00 Back to ios? Feb 11 02:58:19 objectiveC kills braincells Feb 11 02:58:21 don't let the door hit you on the way out Feb 11 02:58:42 Heh what does java do Feb 11 02:58:56 you can build android apps entirely in c or c++ Feb 11 02:59:02 Ok Feb 11 02:59:10 you can even use the ndk as a standalone cross compiler Feb 11 02:59:18 and build linux apps that use autotools or cmake Feb 11 02:59:27 but yeah, have fun with ios Feb 11 02:59:33 * jug6ernaut cant Feb 11 02:59:48 ok i read something that says the dedault config does not provide vector etc. i feel a bit better **** ENDING LOGGING AT Mon Feb 11 02:59:58 2013