**** BEGIN LOGGING AT Sun Apr 22 03:00:01 2012 Apr 22 03:01:08 In order for an app to run as root, it has to go through a setuid program, and su is the only one accessable on an android device Apr 22 03:01:25 su asks Superuser what to do, and goes from there Apr 22 03:01:32 oh I see Apr 22 03:01:49 nice, that's why I guess Super SU needs a different binary Apr 22 03:02:20 Exactly Apr 22 03:02:42 because the su for Superuser always asks Superuser, and SuperSU needs it's binary to ask it Apr 22 03:02:51 Cool man, thanks for making Superuser and the modified su :d Apr 22 03:03:03 :-) No prob Apr 22 03:03:11 ChainsDD care if I include that shit in my custom android dist? Apr 22 03:03:20 Not at all Apr 22 03:03:59 I ugess it makes perfect sense in retrospect, but I always wondered why even though I have su/sudo in my android dist, apps couldnt escalate to root Apr 22 03:04:00 the source is available on github if you want to build it yourself, or you can download it precompiled from downloads.androidsu.com Apr 22 03:04:27 tell me something guys, do I need a agencyCursor = new Cursor() line before this: https://github.com/AfzalivE/Android-GTFS-Reader/blob/incomplete/android-gtfs-reader/src/afzal/gtfsReader/AgencyEdit.java#L69 ? Apr 22 03:04:31 Yeah, there's a lot that goes on between the two of them Apr 22 03:04:45 sounds good Apr 22 03:14:58 Apparently for an emulator to launch with GPU support, it needs to be launched at least once with it off. Apr 22 03:16:54 Hi, anyone can help me? I want to make an android app that needs to conect with other smartphones but I have some questions Apr 22 03:19:35 ?? Apr 22 03:19:41 ?? Apr 22 03:26:46 Kulas: don't ask to ask. Apr 22 03:26:48 Just ask. Apr 22 03:27:25 -updates ABS- -everything breaks- Apr 22 03:27:40 \o/ Apr 22 03:27:46 Even cleaning a project plops an NPE. Crap. Apr 22 03:27:57 oops, i guess /o\ Apr 22 03:38:23 Ok. I want to make an app where you can create a "profile" and you can add your friends. If someone with his phone make certain action, your friends are notificated that you make that action. Also in the app you can go to your friends profile and see what actions he had make (sorry for my english, it´s not my native language) Apr 22 03:39:06 Kulas: you're going to need to write a web application Apr 22 03:40:12 readme: with that I'm having trouble, I know how to program, but I dont know nothing about making web application Apr 22 03:40:31 Kulas: try the google app engine tutorials. you can use java, python, or Go. Apr 22 03:41:30 Hi :) can anyone please tell me how can I set a notification ringtone in Android Virtual Device started from eclipse? Apr 22 03:44:01 readme: thanks! I'm going to try it! Apr 22 03:44:37 Everything fixed. Success. Apr 22 03:44:50 Kulas: just be patient. it's pretty boring. Apr 22 03:47:49 hello all Apr 22 03:48:13 i've been making this tabhost based on fragments Apr 22 03:48:18 using ActionBarSherlock Apr 22 03:48:31 Oh hell yes. My onDraw override is actually working! Apr 22 03:48:48 I forgot to super.onDraw, like an idiot :\ Apr 22 03:49:13 i'd like to get the application context in the SherlockFragment Apr 22 03:49:33 getApplicationContext() does not exist in this class. am I missing something? Apr 22 03:50:11 getActivity() (which is a Context) Apr 22 03:50:14 hesperaux: You may have to use getActivity().getApplicationContext() Apr 22 03:50:35 okay Apr 22 03:50:46 what would be the difference there between those two suggestions? Apr 22 03:50:54 one gives you the global application context Apr 22 03:50:59 i don't really understand what the Context actually does for me =/ Apr 22 03:51:03 and should only be used if you need a context that will outlive the activity Apr 22 03:52:08 Quick, what shows that are actively airing do you all watch? Apr 22 03:53:23 what does a Context do? Apr 22 03:53:46 http://developer.android.com/reference/android/content/Context.html Apr 22 03:53:51 ... Apr 22 03:53:53 i'm on that page man Apr 22 03:53:55 class overview is pretty succinct Apr 22 03:54:06 I would have just said something less precise than the overview Apr 22 03:54:12 succinct is the problem. i don't understand what it really means Apr 22 03:55:00 It can do a lot of things, and you will need it for most of the things that you do :) Apr 22 03:55:17 Would anyone have some time and patience to help a mostly newbie like myself? Apr 22 03:55:29 I have some basic starter questions. Apr 22 03:55:52 inb4 don't ask to ask Apr 22 03:55:56 haha Apr 22 03:55:58 Oops. Apr 22 03:56:31 I have an XML file I created in PowerShell to save an array of objects. Apr 22 03:56:46 all i know is that half the time I have to pass in a Context, for no apparent reason, without any idea of what it is used for or what it offers my class Apr 22 03:56:47 I want to import those objects into my Android project. Apr 22 03:57:41 Does anyone have any tips on dealing with importing data from an XML file to a project? Apr 22 03:57:43 hesperaux: great, you understand it! Apr 22 03:57:55 Major_Mer: What is the problem? Apr 22 03:58:06 hesperaux: do you know what the word 'context' means? Apr 22 03:58:15 Create an ASyncTask to read and parse the XML data into what you need. Apr 22 03:58:17 of course Apr 22 03:58:21 OnPostExecute() conttinue Apr 22 03:58:42 a context is a reference point for operation Apr 22 03:58:56 rij: I suppose I need to look up ASyncTask. I have 0 Java experience. Apr 22 03:58:59 hesperaux: I mean in English Apr 22 03:59:07 Major_Mer: just include the XML as a raw resource Apr 22 03:59:25 Leeds: I can do that!? Apr 22 03:59:33 Major_Mer: you can do that! Apr 22 03:59:39 haha Apr 22 03:59:44 Don't you need to use the XML data? Apr 22 03:59:52 Yeah. Apr 22 03:59:59 Then you'll need to parse the XML Apr 22 04:00:04 Ah. Apr 22 04:00:10 see http://developer.android.com/guide/topics/resources/providing-resources.html Apr 22 04:00:25 Leeds, a context is a reference point for anything...conversation, description.. Apr 22 04:00:33 If you're including it as a raw resource (it's not dynamic and it doesn't have to be downloaded), you can parse it PROBABLY without an ASyncTask but it's best to use one so you don't freeze the application while you're parsing Apr 22 04:00:44 hesperaux: Wrong definition, technically Apr 22 04:00:45 it defines what was important at the time something else was acted upon Apr 22 04:01:01 hesperaux: http://stackoverflow.com/questions/3572463/what-is-context-in-android Apr 22 04:01:01 There is no default parser that can create objects from the XML data? Apr 22 04:01:11 Major_Mer: Yes there is Apr 22 04:01:17 rij, this looks like it might be useful Apr 22 04:01:46 Major_Mer: http://www.ibm.com/developerworks/opensource/library/x-android/index.html Apr 22 04:01:52 i'll add that to my growing list of favorites Apr 22 04:02:43 rij: Reading now. This looks promising. Apr 22 04:04:45 rij, i read that and it makes more sense. thanks. Apr 22 04:05:05 StackOverflow has been a great help in Android development for me. Apr 22 04:05:21 i've been on there quite a bit already. i should have looked on there about Context lol Apr 22 04:05:36 i'm about to try it again, this time for Fragment vs. FragmentActivity Apr 22 04:06:09 lol good luck on that one Apr 22 04:08:27 rij: Thanks for the good link. I'm still meditating on it, but I seem to be having a hard time figuring out how to define the data types, etc, from my XML. Apr 22 04:09:53 I might need to find a Java channel before I pester everyone in here. :) Apr 22 04:10:05 Probably Apr 22 04:10:31 Thanks for the tips, rij. Apr 22 04:12:52 Major_Mer, although the java channel likes to tear your heart out Apr 22 04:12:57 even more than normal Apr 22 04:14:51 Does the ABS SherlockPreferenceActivity work like the HC and up PreferenceActivity on pre HC devices? Apr 22 04:15:36 hesperaux: I think the Java channel is asleep. Apr 22 04:15:41 meaning can I build my PreferenceActivity the way the docs (http://developer.android.com/reference/android/preference/PreferenceActivity.html) tell me to and it'll work on pre-HC? Apr 22 04:15:41 lol Apr 22 04:15:45 count yourself safe xD Apr 22 04:16:02 ChainsDD, no way i could ever tell you Apr 22 04:16:06 lol Apr 22 04:16:30 I'm trying to avoid having to write two different PreferenceActivitiies Apr 22 04:17:06 I think my big problem is that I really just don't understand classes in general. PowerShell didn't make me deal with them. So Java is really making my head spin. Apr 22 04:17:33 Major_Mer, i would be willing to explain waht i know about java classes. I'm not as bad at java as I am at android dev Apr 22 04:17:35 lol Apr 22 04:17:58 Would you mind if I PM you my dumb questions? Apr 22 04:18:02 go for it Apr 22 04:18:06 hesperaux: what do you know about java classes? Apr 22 04:18:22 i think i do Apr 22 04:18:25 No PMs, let it out in the open so that everyone can learn ;-) Apr 22 04:18:32 haha Apr 22 04:18:35 There are no dumb questions Apr 22 04:18:54 ChainsDD, i've been told otherwise by people in this channel, just not directly Apr 22 04:19:06 can anyone please help me in setting up a Notification Ringtone in AVD, I am getting Nullpointer :( Apr 22 04:19:49 :-P They can go to hell. AFAIK, it's IRC ettiquete to not PM so that others may benefit from the knowledge Apr 22 04:20:08 yeah, i avoid PMs too Apr 22 04:20:24 ChainsDD, i'd stick up for myself a bit more, but i don't want to get kicked Apr 22 04:20:24 c2tarun: what's your code? Apr 22 04:21:06 ChainsDD, RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); Apr 22 04:21:21 the two ops in here are really cool guys (I think, never met them, but follow both of them on twitter and +) Apr 22 04:21:22 c2tarun: try using a custom ringtone? adb push ringtone /system.media/audio/ringtones/; then reboot and see Apr 22 04:22:36 The emulator may not have ringtones installed on it, check the settings Apr 22 04:22:44 f2prateek, I pushed an mp3 file and then via music player I set it as ringtone, but I am not able to set it as notification ringtone. Apr 22 04:22:50 ChainsDD, ^^ Apr 22 04:23:22 * c2tarun trying to push into /system.media/audio/ringtones/ Apr 22 04:24:47 f2prateek, I got this message: failed to copy '/home/tarun/Music/06 Lose Yourself.mp3' to '/system.media/audio/ringtones/': No such file or directory Apr 22 04:25:08 * c2tarun its a 6 second mp3 Apr 22 04:25:27 adb shell ls -l /system.media/audio/ringtones Apr 22 04:26:23 yeah I am in shell now, but there is no system.media in there. Apr 22 04:26:29 readme, ^ Apr 22 04:26:29 well, theres your problem. Apr 22 04:26:46 * c2tarun creating system.media Apr 22 04:26:49 … shouldn't it be /system/media? Apr 22 04:27:01 makes sense Apr 22 04:27:17 ohh... Apr 22 04:28:32 I am getting mkdir failed due to Read-only file system. Sudo is not working, how can I create a folder there? Apr 22 04:29:08 adb remount Apr 22 04:29:11 adb root Apr 22 04:29:12 what to think about this? http://www.xda-developers.com/android/oracle-and-google-fight-over-java-copyright/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+xda-developers%2FShsH+%28xda-developers%29&utm_content=FaceBook Apr 22 04:29:20 should work on the emu Apr 22 04:32:12 ChainsDD, it worked :) thanks, let me try to set is as NR Apr 22 04:34:55 why I am not getting an option of choosing ringtone :( http://imagebin.org/209166 Apr 22 04:35:01 Do I have to reboot emulator? Apr 22 04:36:04 I think you need to make sure that the MediaScanner has run Apr 22 04:36:14 chkng Apr 22 04:36:15 reboot, or go into dev tools Apr 22 04:38:20 hmm... not working either. Can you please tell me that how can check from that URI that the URI returned is not getting anything. Apr 22 04:38:46 do a null check of the URI to make sure that it returned something? Apr 22 04:39:41 I tried that, its returning a path. Let me get that path from logs Apr 22 04:40:38 I am getting this content://settings/system/notification_sound Apr 22 04:41:51 ChainsDD, ^ Apr 22 04:42:29 And then you're trying to put that URI into a MediaPlayer using setDataSource? Apr 22 04:42:50 nope I am trying to set it to notification.sound = soundUri Apr 22 04:43:14 but yeah finally its going to MediaPlayer and then its unable to create MediaPlayer Apr 22 04:43:46 Try using RingtoneManager.getActualDefaultRingtoneUri() Apr 22 04:44:19 that will give me the ringtone, because I set the ringtone. Apr 22 04:44:28 I am not able to get the notification ringtone. :( Apr 22 04:45:12 I was actually trying to right the code that if I dont get NR, it will take alarm if that also not found then ringtone. Apr 22 04:45:29 but I dont know how to check that Uri is actually pointing to null :( Apr 22 04:45:32 RingtoneManager.getActualDefaultRingtoneUri(this, RingtoneManager.TYPE_NOTIFICATION) doesn't give you the notification uri? Apr 22 04:46:40 If I can see the whole code, I can help better Apr 22 04:47:23 you might be able to check after you've set the data source of the MediaPlayer Apr 22 04:47:34 I found this page: http://stackoverflow.com/questions/7645951/how-to-check-if-resource-pointed-by-uri-is-available let me try this, if it didn't work then I'll upload the code Apr 22 04:47:42 ok Apr 22 04:54:05 ChainsDD, this worked: http://pastebin.com/BZD990aD Apr 22 04:55:07 Looks nice Apr 22 04:55:11 I like it Apr 22 05:53:08 to which class should I refer for Single choice list?? Apr 22 06:00:47 That's strange, there's no widget for editing a number only in the Preferences Apr 22 06:05:52 hi Apr 22 06:07:17 anyone has an idea how i can make a list background like in the gmail honeycomb app Apr 22 06:07:30 http://www.smartdroid.de/wp-content/uploads/2011/10/screen_20111023_0804_1.jpg Apr 22 06:07:56 the left list with the bevel on the right Apr 22 06:08:13 align a transparent png file on the right side Apr 22 06:08:20 to make a shadow Apr 22 06:08:34 hello folks Apr 22 06:08:47 i'm trying to use code.google.com for Apr 22 06:09:10 ok... but how to align a background to the right Apr 22 06:09:12 hosting android source code/apps etc but having trouble setting up username and password in .netrc file as mentioned on Apr 22 06:09:25 LordBeppo: i didn't say to make the file the background necessarily ;) Apr 22 06:09:45 you could use an ImageView inside of a RelativeLayout and set android:layout_alignParentRight on it. Apr 22 06:09:58 i'm using the GIT bash on windows . it uses mingw32 and I thought all I need is to create a .netrc in home directory with appropriate info. Apr 22 06:10:02 is there something more to it? Apr 22 06:10:33 Mavericks: there is probably a channel for msysgit Apr 22 06:10:52 ok, but then the listitems will not overlap this imagewiew Apr 22 06:11:00 meh, just try #git Apr 22 06:11:13 LordBeppo: eh? Apr 22 06:11:31 LordBeppo: the last item in the relative layout is the highest on the z-axis. Apr 22 06:12:07 ok... thank you i'll give this a try Apr 22 06:12:50 readme: thanks, sorry about that Apr 22 06:20:54 just my luck, how in the world did i get an irc server with such a lame ass name Apr 22 06:31:04 Anyone installed opencv on their phone? Apr 22 06:49:05 Anyone know if lunch sim-eng is gone? I am messing with dalvik and building it to run on the desktop would be excellent. Apr 22 07:22:49 evening/morning all Apr 22 07:25:21 hey everyone, i have a tiny question. If I just move the Android source folder anywhere, will it still work? Apr 22 07:26:05 say I have the source code in ~/Android and I want it to move it to ~/Android/source (since I have android-sdk-linux in ~/Android too), will that be okay? Apr 22 07:34:07 android's source? Apr 22 07:34:17 you only need that if you're compiling android itself Apr 22 07:37:17 I've got an AsyncTask crashing with strange messages like "Completed Abruptly", "termination - AbstractQueuedSynchronizer$ConditionObject" does anyone know what I should be looking for? Apr 22 07:47:43 Javadog: is there a full stack trace Apr 22 07:49:54 Ah hang on, let me recreate it Apr 22 07:52:05 This is all I get http://pastebin.com/erPKijWd Apr 22 07:52:16 I got the stuff in my other post from the debug perspective Apr 22 07:57:33 what about in logcat Apr 22 07:58:18 http://pastebin.com/DZypJBkG Apr 22 07:58:44 * Javadog just now realized he could copy multiple lines out of the logcat view in eclipse with ctrl+c o__o Apr 22 07:58:47 04-22 07:51:37.264: E/AndroidRuntime(1014): Caused by: java.lang.NullPointerException Apr 22 07:59:00 04-22 07:51:37.264: E/AndroidRuntime(1014): at com.culmor30.CourseWatch.SearchResultsActivity$ParseSearch.doInBackground(SearchResultsActivity.java:144) Apr 22 07:59:06 wb culmor Apr 22 07:59:20 Oh, you didn't see I was using a new handle? :p Apr 22 07:59:36 i ignore joins, parts, quits, nicks, etc. Apr 22 07:59:49 you see where the problem is now, right? Apr 22 08:00:32 Not really, because the program gets through the whole doInBackground method and crashes after the whole asynctask (should have) finished Apr 22 08:00:46 I checked using breakpoints, it goes through onPostExecute and everything Apr 22 08:01:05 it says that an NPE was thrown at line 144 of SearchResultsActivity.java Apr 22 08:01:25 Hang on. bluescreen may be incoming Apr 22 08:01:39 I've noticed that scrolling in eclipse stops working right before my computer dies Apr 22 08:01:56 it's probably just that eclipse is heavy software Apr 22 08:02:01 and your computer is fubar Apr 22 08:02:10 is it hot? Apr 22 08:02:14 I've got plenty of free ram, and I'm running on an i7 Apr 22 08:02:23 check temp Apr 22 08:02:51 Not especially, been hotter. Let's see... 60C Apr 22 08:02:51 i used to have a computer that froze because of the harddrive overheating Apr 22 08:03:08 Closing eclipse and my emulator seems to prevent it, if I'm fast enough Apr 22 08:03:42 A part of me wants it to break so I have an excuse to buy a new one, though Apr 22 08:03:52 it is broken. you should just buy a new one. Apr 22 08:03:53 how's eclipse on OS X? faster or slower than linux/Windows? Apr 22 08:03:59 at least a new part, for whatever is failing Apr 22 08:04:36 This only happens with eclipse, though. I can run heavy games like, Idunno, Minecraft, Crysis, etc with no issues Apr 22 08:04:44 interesting Apr 22 08:04:44 Afzal: i found eclipse on mac and linux kinda sucks; on windows it seems to work better than the other 2 Apr 22 08:05:02 I thought it was just as good on OSX Apr 22 08:05:09 Javadog: so your problem is on SearchResultsActivity.java:144 Apr 22 08:05:10 eclipse on mac kinda sucks, because java on mac sucks Apr 22 08:05:10 g00s, okay then it's the same as linux. Which, for me, is faster than on Windows :D Apr 22 08:05:13 Only tried for a few minutes though Apr 22 08:05:20 and the cocoa / java bindins suck ass too Apr 22 08:05:22 right, what's the deal with Java on mac? Apr 22 08:05:39 >_< you're really making he rethink my decision to get a mac now Apr 22 08:05:50 That's our job :p Apr 22 08:06:00 Afzal: right now most mac people are using what apple supples; java 6 Apr 22 08:06:14 I use Java 6 on Maverick Apr 22 08:06:15 java 7 i think you cn get as a tech preview from the oracle web site Apr 22 08:06:15 There's only a preview of java7 available Apr 22 08:06:24 but java 7 and android won't tango Apr 22 08:06:33 unless RIM wants to use Java 7, I don't really mind Apr 22 08:06:34 There's also OpenJDK Apr 22 08:06:42 openJDK is just .. bad Apr 22 08:06:53 Yeah, but it is there Apr 22 08:07:01 Updates faster than apple Apr 22 08:07:15 can we make "groups" in Eclipse (put packages in groups?) Apr 22 08:07:23 isn't there Homebrew for OS X? Apr 22 08:07:39 Afzal... like, projects? Apr 22 08:07:43 i would go with whatever the eclipse devs are using to test eclipse on mac Apr 22 08:07:55 i think thats the apple jdk Apr 22 08:08:06 Javadog, like, organizing projects into groups (so all libraries go into the library group, all apps go into the apps group etc) Apr 22 08:08:22 g00s, yeah that would probably work best Apr 22 08:08:43 Could just use folders? Apr 22 08:08:47 oh well. I guess I should find out if Macs have a return policy so that if I don't like the Macbook, I can return it Apr 22 08:08:50 i have java version "1.6.0_31" Apr 22 08:08:54 its good enough Apr 22 08:09:14 Something that bothered me about macbooks: can't boot from a USB drive. No bios control at all Apr 22 08:09:26 hmm Apr 22 08:09:29 was trying to boot my puppy linux drive and I ended up having to burn a cd Apr 22 08:09:33 i boot from usb drive to install the os Apr 22 08:09:34 nvm Javadog, eclipse has working sets. I have them organized into folders also. I'm really anal when it comes to organizing folders Apr 22 08:09:44 Oh yeah, working sets. Apr 22 08:09:50 Javadog, whoa. damn, that would... not be good >_< Apr 22 08:10:18 macbooks can definitely boot from usb Apr 22 08:10:32 I have a strong personal bias against apple because they fucked me for a lot of money, so keep that in mind when I talk about them Apr 22 08:10:32 but macbooks appear to be selective about what they boot Apr 22 08:10:42 should have hfs+ and gpt partition table or something Apr 22 08:10:52 I tried every type of boot flag available for puppy and none worked. Apr 22 08:11:37 Wut. I can't disable screen auto-off in the api15 emulator? Apr 22 08:13:44 readme: I can't figure out what the error is. Here's the code apparently throwing it: http://pastebin.com/ikC7TUmt Apr 22 08:14:14 Javadog: I will bet you one million dollars there is a NullPointerException at SearchResultsActivity.java:144 Apr 22 08:14:15 (line 2 == line 144) Apr 22 08:14:50 Alright let's just see about that Apr 22 08:14:56 Javadog, I have hated Apple for quite some time because they fuck people for money.... lol, but after the lack of some software on Linux and slowness of Windows. I feel like I should give Macs a try Apr 22 08:15:02 Javadog: it was already in your stack trace Apr 22 08:15:09 what more do you ned to see Apr 22 08:15:18 oh my god, that's some awkward coding... Apr 22 08:15:19 courseDescriptions[i] is null on line 2 Apr 22 08:15:41 I'm parsing a very awkward webpage Apr 22 08:15:45 Hello, is this an invalid syntax in build.xml : android:layout_width="@string/button_width" ? instead of using : android:layout_width="50dip". eclipse does not complain at all and compiles fine but the avd emulator is failing to load the app , giving me a runtime exception : you must supply a layout_width attribute Apr 22 08:15:47 it makes me uncomfortable too Apr 22 08:16:21 Javadog: a pro tip: "foo".equals(bar) will never throw a nullpointerexception. also < foo.length - 1 seems suspect. Apr 22 08:16:43 It was doing it before without the -1 Apr 22 08:16:51 you could also consider something like Arrays.asList("foo", "bar").contains(bar) although not probably a good idea to keep on constructing this on every iteration of the loop Apr 22 08:16:57 courseDescriptions[i] = null; doesn't change the length of the array does it? Apr 22 08:17:17 I mean, setting an item to null doesn't remove it from the array? right? Apr 22 08:17:18 no, it doesn Apr 22 08:17:20 ok Apr 22 08:17:30 No, that should be tabbed Apr 22 08:17:44 Not that it matters to the compiler, just, you know Apr 22 08:17:58 Javadog: paste the rest of the code and I will show you why courseDescriptions[i] is null on line 2. Apr 22 08:18:10 hang on I'm stepping through it with breakpoints Apr 22 08:18:20 and this is a looong file, heheh Apr 22 08:20:28 Aha, I see the problem Apr 22 08:20:37 also, guys, I think the problem where Eclipse couldn't properly import a folder which was places inside the Workspace has been fixed :D Apr 22 08:20:42 what was the problem? Apr 22 08:20:42 and you say, "string".equals(stringVar) won't blow up? Apr 22 08:20:56 No, alankila said that, but he is probably right. Apr 22 08:20:57 If I didn't fill the array, there were null values Apr 22 08:21:01 indeed not. That's one of the reasons to write it in that order. Apr 22 08:21:02 the problem is what you're doing is null.equals() Apr 22 08:21:07 not "".equals Apr 22 08:21:11 so that is why it blows up Apr 22 08:21:19 ahh Apr 22 08:21:24 clever, will try Apr 22 08:21:42 but if you do multiple tests you can also try other things Apr 22 08:21:48 i'm not saying you should throw empty strings in there.. there is more than likely a better way. Apr 22 08:21:58 just a theoretical point. you can't call methods on null. it's null :) Apr 22 08:22:00 like you could make a Set containing the values you want to set to null, and then just do set.contains(valueToKill) Apr 22 08:22:08 who uses SmartGit? :D Apr 22 08:22:38 It's generally awkward to write a whole lot of x.equals(y) || x.equals(z) || x.equals(a)... Apr 22 08:22:56 alankila: is it any faster for the computer, doing it that way? or is it jsut doing this in the background? Apr 22 08:22:59 just* Apr 22 08:23:32 "It depends" Apr 22 08:23:58 if you asked if it's more scalable, I would have said yes, probably. Apr 22 08:24:17 Okay, I'll try your way Apr 22 08:25:08 Oh man, have you guys ever been to the #java channel on here? I'll just say it left a lot to be desired :\ Apr 22 08:25:19 oh it doesn't really make a difference, but it's generally good idea to know about things like sets and trees Apr 22 08:25:41 Javadog: ##java is good, but not if you talk about android :) Apr 22 08:26:03 Javadog, I used it yesterday to ask if using something like Cursor cursor = new Cursor(); is good practice or necessary Apr 22 08:26:17 I wasn't really sure what they were saying but it seemed like it wasn't Apr 22 08:26:24 Afzal: what kind of question is that? Apr 22 08:26:52 is it good practice to instantiate my objects? :) Apr 22 08:26:58 anyway aren't the sqlite cursor objects given to you as result of db queries. I was not even aware it's possible to construct one directly, to be honest. Apr 22 08:27:15 readme: No, potential memeory leak :p Apr 22 08:27:20 memory* Apr 22 08:27:23 readme, yes, that was my question Apr 22 08:27:33 Javadog: garbage collection bro Apr 22 08:28:21 although here's one of my SO favorites http://stackoverflow.com/questions/6470651/creating-a-memory-leak-with-java Apr 22 08:28:22 Afzal: eh. You construct an object if you need to. Apr 22 08:28:59 alankila, so say we're talking about this line: https://github.com/AfzalivE/Android-GTFS-Reader/blob/incomplete/android-gtfs-reader/src/afzal/gtfsReader/AgencyEdit.java#L69 Apr 22 08:29:29 there's no need to have something like Cursor agencyCursor = new Cursor somewhere befre it, right? Apr 22 08:29:51 Afzal: do you understand how references work? Apr 22 08:30:03 readme, in C++, yes Apr 22 08:31:07 Afzal: Object a = new Object(); Object b = a; a = null; --- Tell me what the value of "b" should be Apr 22 08:31:14 Afzal: Cursor is an interface Apr 22 08:31:27 you cant say Cursor c = new Cursor () :D Apr 22 08:31:50 Don't confuse the poor guy :p Apr 22 08:31:54 Afzal: not that I can see, no Apr 22 08:31:56 hi g00s o/ Apr 22 08:32:02 hello hackkitten Apr 22 08:32:03 :D Apr 22 08:32:05 * hackkitten is salvaging her other AndEngine-based project Apr 22 08:32:06 :) Apr 22 08:32:10 readme, the old value of a ? Apr 22 08:32:14 http://i.imgur.com/SYvtb.jpg Apr 22 08:32:26 oh Apr 22 08:32:35 Afzal: that is right. So you understand then that references merely point at objects. They aren't objects themselves. Apr 22 08:32:47 * alankila wonders what closing the db does before cursor has been even read from Apr 22 08:32:48 yeah Apr 22 08:32:52 so maybe you understand why your question didn't make a hell of a lot of sense now Apr 22 08:33:05 alankila, probably just destroys the cursor :p Apr 22 08:33:19 nope, but it probably makes it not work anyway Apr 22 08:33:34 the cursor is there, as object, not destroyed. Apr 22 08:33:49 okay then you can reuse it i guess Apr 22 08:33:55 * alankila also wonders why the "startManagingCursor" thing Apr 22 08:34:21 alankila, I think that's so that you can manage it yourself instead of automatically or something like that Apr 22 08:34:36 dealt with cursors year before last. :p Apr 22 08:34:59 yes but you seem to call stopManagingCursor right after Apr 22 08:35:32 I think I was trying to experiment with something here. I don't even remember haha Apr 22 08:36:32 there really should exist methods that move fields from cursor to android widgets and back... Apr 22 08:36:58 your switch-case also have fallthrough issues Apr 22 08:37:13 alankila: You meant like this, yes? http://pastebin.com/7TZwrUeg Apr 22 08:37:29 I doubt finish() quite kills the activity right there, so your SAVE falls through CANCEL through supercall Apr 22 08:38:10 Javadog: yes, sort of like that. I like the logic to be tight, and move this HashSet to a static of class Apr 22 08:38:24 and also write things like new HashSet(Arrays.asList("x", "y", "z")); to initialize it Apr 22 08:38:37 Ah, so it doesn't need to be created every time I search? Apr 22 08:38:44 indeed not. Apr 22 08:38:51 And yeah, I was wondering how I could reduce that to one line Apr 22 08:39:27 I also encourage to always use { }, even for 1-statement cases. It tends to make code editing easier on the long run Apr 22 08:39:37 ^^ this! Apr 22 08:39:39 alankila, lol, wow. yeah. I dunno what I was thinking but maybe I thought finish() would take care of that Apr 22 08:39:47 easy to just do the indent but forget to add the {} and then spend time wondering why it doesn't work Apr 22 08:40:25 yup, that has kicked my ass in C++ many a times (not putting {} for one line) Apr 22 08:40:44 actually, that wouldn't be my code since I always do that and otherwise don't understand :p Apr 22 08:40:48 I've never experienced any trouble with my brackets :p Apr 22 08:41:03 The auto un-indent clues me in Apr 22 08:41:19 I still wish we had something as fast as QtCreator Apr 22 08:41:20 as long as you can see the right indent level, but manually editing the indent in many editors causes issues Apr 22 08:42:15 http://www.emacswiki.org/pics/static/TabsSpacesBoth.png Apr 22 08:42:39 readme, only classes need instantiation, then? that's the answer to my question? Apr 22 08:43:17 Afzal: java has no notion of structs, maybe it helps to see at it this way Apr 22 08:43:45 freecandy: lol Apr 22 08:44:06 java has value types which are all written in lowercase, at maximum 64 bits wide (long and double). Everything else is Object, and passed by reference. Apr 22 08:44:47 Ah damn, something wrong with my parsing. At least this crash is fixed though, thanks for the help and tips :) Apr 22 08:45:13 maybe increment i too often. Or somehow end up with adding a null as element. Apr 22 08:45:30 how do you know how many array elements to allocate though? Apr 22 08:45:36 alankila, and passing by reference would not need instantiation. Apr 22 08:46:00 * alankila generally recommends working with ArrayList instead of array for everything that's fairly large anyway (such as any Object) Apr 22 08:46:14 would not want to see a List over byte[] though. Apr 22 08:46:20 okay how about this. Object a = new Object(); Object b = a; a = null; here, why didn't Object b need to be instantiated? Apr 22 08:46:29 Afzal: wut. Apr 22 08:46:58 Afzal: "new Object()" = "Make a new instance of Object and return reference to it" Apr 22 08:46:59 Afzal: b isn't the object Apr 22 08:47:02 a stores the reference Apr 22 08:47:13 copy reference to b. set reference at a to null. Apr 22 08:47:18 oh Apr 22 08:47:20 b now holds the Object reference. Apr 22 08:47:24 ohhhhhhhhhhh Apr 22 08:47:42 holy crap this is like a revelation. Apr 22 08:47:51 :O Apr 22 08:47:55 yeah, you could have had it by opening page 1 of lrn2java Apr 22 08:48:06 but that's ok Apr 22 08:48:18 lol thanks! I shall read a bit more about this Apr 22 08:48:22 My app parses courses that my univarsity offers... I thought something was wrong, but turns out that the random search I entered actually returned no results v___v Apr 22 08:48:27 university* Apr 22 08:51:28 so when we do something like Button testbtn = (Button) findViewById(R.id.btnspeed); There's an instantiation somewhere in findViewById. Am I getting this right? Apr 22 08:51:41 no, it's a lookup Apr 22 08:52:07 er, at least I'd assume it's a lookup... that is, if you called it again, you'd get the same object back again Apr 22 08:52:29 right but I meant, in the method findViewById Apr 22 08:52:45 It gets the view, as a resource, from Android Apr 22 08:52:48 right, that's what I meant Apr 22 08:52:51 Afzal: no, the object is created when the view tree is built Apr 22 08:52:59 also, working sets :( libraries have to be in the same working set as the project that references it Apr 22 08:53:05 Afzal: the findViewById just recursively scans the view tree looking for it Apr 22 08:53:09 the Button object already exists - findViewById looks it up and returns it - it doesn't create it Apr 22 08:53:18 oh okay Apr 22 08:53:26 right, that would be in R.java Apr 22 08:53:32 it would be bad form to make something called "find" to "create" Apr 22 08:53:33 (or not?) Apr 22 08:53:40 of course... Apr 22 08:53:50 names are important. they should reflect the intent and the actual behavior Apr 22 08:53:53 no, R.java is just a table of resource names to IDs Apr 22 08:54:06 a table of generated constants Apr 22 08:54:17 okay, anyway. I must read up on basic Java I think Apr 22 08:54:30 yes, things in R are just integer constants that android tools generate to integrate the XML resources with java code Apr 22 08:54:36 R.id.foo = just some number Apr 22 08:55:15 it gives you sort of compile-time checking, but it is admittedly awkward I guess Apr 22 08:56:35 It is awkward. Why is it R.java? Is it even remotely related to R? Apr 22 08:56:43 R for Resources, I guess Apr 22 08:56:57 what annoys me is that there's two R's, one for your app and another for android's own resources. Apr 22 08:57:06 that one is called android.R, fully qualified Apr 22 08:57:19 your own is whatever your package is Apr 22 08:57:26 yup, and then you have to import the R for every package in your project Apr 22 08:57:35 (to other packages in the same project) Apr 22 08:58:47 anyway it's not impossible to get the wrong R when you just blindly import R with eclipse's quick-fix and don't actually look what the R suggestion is. Then spend time working out why some constants work (because you selected same names as in android.R.id) and others do not ... Apr 22 08:58:54 this is the worst case :-p Apr 22 08:59:02 How can I know if an Activity's onCreate() is called due to an orientation change ? Apr 22 08:59:29 :| Apr 22 08:59:54 bubbleguuum: that is the usual behavior, if you have not made steps to stop it from happening Apr 22 08:59:57 oh wait Apr 22 08:59:58 save orientation in bundle -> check orientation in OnCreate Apr 22 09:00:00 reparsed question Apr 22 09:00:25 http://developer.android.com/reference/android/app/Activity.html#onConfigurationChanged(android.content.res.Configuration) Apr 22 09:00:38 Ravenheart: yes I could do that, but thought there might be a more direct way Apr 22 09:00:52 its the first thing that came to mind Apr 22 09:00:58 dunno, I think Ravenheart's idea sounds pretty good. Apr 22 09:01:15 do you really need to detect orientation changes? Apr 22 09:01:21 why do you think you need to do that Apr 22 09:02:29 I need it because on orientation change I must clear the original Intent in some cases Apr 22 09:04:17 oh wow. I am stupid :( Apr 22 09:04:34 no, different working sets can share resources . :D Apr 22 09:17:06 Hello. I'm using a fragment with the support package. Somehow the 'root' fragment (which you declare in your XML) cannot be replaced. I can see that because the new fragment partly has a transparent layout and I can clearly see that the root layout is not replace but is actually behind the layout of the new fragment (even when I use replace). If after that I once again use replace the 2nd layout is replaced with the 3rd one, th Apr 22 09:17:16 why is the root layout never replaced? Apr 22 09:17:35 Can someone help in answering this: http://stackoverflow.com/questions/10264752/how-do-i-create-an-open-and-closed-indicator#comment13198992_10264752 Apr 22 09:17:57 is it possible for an activity to modify the original Intent that will be used if the activity is recreated ? setIntent() will not do it as it does not survive orientation changes. Apr 22 09:18:03 You aren't really meant to remove fragments defined in xml Apr 22 09:18:10 Add it from code instead Apr 22 09:19:57 But I can't leave the 'class' attribute (in the fragment layout) empty. So I have to give a, what I call, root fragment but when I load a new one I want it to replace the root. Or am I misunderstanding the way the fragment works? Apr 22 09:20:32 Add a container for the fragment to xml, like a framelayout Apr 22 09:21:43 I already did. The root layout of that activity is a RelativeLayout, and within that is a layout Apr 22 09:22:46 Add the fragment from code Apr 22 09:23:16 Hm. I have a 4.0.4 nexus S and im just running the standard helloworld app. I do the same with an AVD running 4.0.3 with a WXGA800 screen. Smartphone has a nice gradient background, and the emulator doesn't. Why is this? Apr 22 09:26:50 You sure it's not a backlight problem? :p Apr 22 09:28:23 but if I add a fragment from code I have to leave the 'class' attribute empty (otherwise it will still load that fragment). And the app simply crashes if I leave the class attr empty Apr 22 09:29:00 it says: Error inflating class fragment Apr 22 09:29:11 really strange how books on google play are actually pulling reviews from amazon Apr 22 09:30:00 Javadog no Apr 22 09:30:29 Hi all Apr 22 09:32:38 niles11_: Why do you have a fragment tag in xml for a Fragment you're adding from code? Apr 22 09:33:32 hey devs, I want to create a file and let the user send it via Email or whatever he likes. I know how to do this if I use the external storage. But can this be done with files on internal storage. Not every phone is gonna have a SD card. That's why I am asking Apr 22 09:35:46 I have an application with a fixed header (sort of a actionbar, but it isn't an actionbar!). I want everything below the header to change depending on the users actions. So everything which is shown below the header are all fragments. Apr 22 09:37:59 niles11_, it's hard to control the fragment with widgets in the action bar or the other way around. so if u don't want to do this it's okay Apr 22 09:38:30 Well, removing fragments defined in xml is not supported.. So don't do that Apr 22 09:38:38 but the fragment doesn't need to be added via code if uput it into the xml file Apr 22 09:39:37 hey SimonVT, u seem to be a pretty knowledgable guy :) Mind to help me with the storage thing? Apr 22 09:41:10 You can try saving the file on internal storage and making it world readable Apr 22 09:41:31 but I can only add one fragment in XML. I started off with a ViewPager instead of a single fragment layout. That worked fine but it was really hard to make good transistions from one fragment in the viewpager to the other. Besides I didn't need the swiping effect which you automatically get from the ViewPager layout. Therefore I thought using a simple layout would do the trick and just replace the fragment each time Apr 22 09:41:54 And it actually works fine, but only not for the very first layout (which isn't replaced) Apr 22 09:48:46 niles11_, use ViewPagerIndicator ? Apr 22 09:49:35 SimonVT, thx I had tried this. Didn't work. Seems I need to implement a contentProovider to provide access to internal files Apr 22 09:53:44 I just looked at that ViewPagerIndicator but I'm not sure if this is what I'm looking for. It only adds stuff which I don't need. I just want to update everything below the header with a new 'screen' (say: fragment). I don't need any swiping, tabs or indicators Apr 22 09:56:20 mephju: I don't know.. Google some more, or just require external storage for that part of your app Apr 22 09:59:40 SimonVT, yeah I have google the COntentProvider thing. And yes if it were up to me I would just make the mounted SD a required necessity to send the f iles. But my boss is an iphone dev and he wants it to work without SD. I no longer try to persuade him when it comes to dev decisions ;) and I get paid to do this anyway :D Apr 22 09:59:47 googled* Apr 22 10:00:05 mephju: just write the ContentProvider Apr 22 10:00:15 readme, I am :D Apr 22 10:00:23 imo, your boss is right. requiring the SDcard unless you're saving a huge file is dumb. Apr 22 10:01:07 readme, I disagree because u won't find devices without external storage. also the internal storage is precious Apr 22 10:01:31 imo the only reason to put out the SD card is to put back a bigger one ;) Apr 22 10:02:04 a lot of phones don't even have SD but only external storage which is always present Apr 22 10:03:01 it's good that with devices like the Galaxy Nexus, external/internal storage doesn't matter a lot Apr 22 10:07:06 hmmm Apr 22 10:07:23 am i likely to fill up the back stack? Apr 22 10:07:50 i have something a little like a tabhost implemented using buttons Apr 22 10:08:07 i.e. pressing different buttons switches to a different activity Apr 22 10:08:14 NO_HISTORY Apr 22 10:08:38 http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_NO_HISTORY Apr 22 10:08:46 i like that it uses the back stack Apr 22 10:08:50 imo back button shouldn't take you to the previous tab Apr 22 10:08:53 but do as you wish Apr 22 10:08:55 i'm just wondering if the app will fall over Apr 22 10:09:12 well, what else should back do Apr 22 10:09:16 vortexion: no, but the user is going to be confused when they see they can press the back button 10000 times and never leave the app. Apr 22 10:09:26 it should go to the activity before the tabbed activity. Apr 22 10:09:56 it's the top level activity Apr 22 10:10:05 then it should go back to the launcher Apr 22 10:10:14 so you have no back stack in that case Apr 22 10:10:21 effectively no back stack Apr 22 10:10:38 if you're going straight to tabbed activity, then that is what I would expect. Apr 22 10:10:46 confused is an understatement. I'd delete the app and then bitch about it on very many subreddits. Apr 22 10:14:05 readme, thanks for the pointer to NO_HISTORY Apr 22 10:14:15 worth knowing Apr 22 10:23:18 I would like to convert an array of objects into a scrollview using only the .name attribute from each of the objects. Could someone help me get something set up? Apr 22 10:53:48 yo Apr 22 11:05:44 Should I enable hardware acceleration in my app that just uses the android widgets? Apr 22 11:07:05 Seems I should, since it's enabled for Android apps in ICS by default. Apr 22 11:21:56 I created a single option list alert dialog, but the problem is when I am selecting the option the dialog is not dissapearing. How can I make it dissapear?? Apr 22 11:47:03 HI there, someone knows a good engine to make some tile based 2d game in opengl?? Apr 22 12:23:02 anyone wanna beta-test? :) Apr 22 12:23:04 http://forum.xda-developers.com/showthread.php?t=1612798 Apr 22 12:31:51 anyone any good at opengles 2.0 ? Apr 22 12:32:10 dat metaquestion Apr 22 12:32:59 i have a renderer that draws a triangle using drawarrays but im trying to port my old 1.0 code to 2.0 to draw a square using drawelements im just getting a black screen Apr 22 12:48:40 Anyone good at opengl to join my game project? Apr 22 12:48:41 =D Apr 22 12:51:06 caioketo: hi im having problems with my opengl Apr 22 12:52:08 i have something working in opengl 1.0 but im trying to port it to 2.0 at the moment im trying to get VBO's working Apr 22 12:52:24 but its not displaying anything Apr 22 12:54:09 if you let me see the code, maybe i can help you Apr 22 12:55:08 I'm trying to see all the alternatives on ads services for Android. Can anyone recommended any? Apr 22 12:55:26 whats the prob with admobs? Apr 22 12:56:35 I wanna know if there are a ad service that are as good as, or better then that. :P Apr 22 12:56:48 i rly dont know =/ Apr 22 12:57:30 hi. I have problems using FileInputStream/FileOutputStream. It seems that the data is not written or not read from the file. How can I look into the internal Filesystem of the app? Apr 22 12:57:36 I assume QTQuick doesn't work on android? Apr 22 13:01:02 fornext_: you will need to use an emulator or a rooted device. files are in /data/data/ Apr 22 13:03:26 readme, my device is rooted. But accesing with an FTP-App tells me "this path is inaccesable" Apr 22 13:05:31 ftp app? Apr 22 13:05:40 fornext_: you need to su first Apr 22 13:06:09 readme, SwiFTP .... but the app havent ask for su rights. Apr 22 13:06:28 1. $ adb shell 2. su 3. cd /data/data/ 4. ls Apr 22 13:06:42 fornext_: maybe there is a better app. ask in #android. Apr 22 13:18:16 is Necessitas stable enough for good apps? Apr 22 13:18:36 caioketo: i did make my own renderer but now im working from an example thats apparently is supposed to display correctly http://pastebin.com/nWGGFiqQ Apr 22 13:24:20 ill take a look Apr 22 13:25:23 yeah fuck Qt Apr 22 13:25:42 turns out it's slow on android and it's better to just make it using regular tools Apr 22 13:27:08 maybe youre forgettinh "gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);" Apr 22 13:29:54 ok, i officially hate tabs in ICS Apr 22 13:30:22 iSeeDeadPixels, what tabs Apr 22 13:31:15 Dany0, tabs. Apr 22 13:32:36 iSeeDeadPixels, pics? Apr 22 13:33:40 http://imgur.com/1wyEB i want it to look like that, but when i run it, they don't show up Apr 22 13:35:09 oh these things Apr 22 13:35:44 iSeeDeadPixels, you have to put the stuff inside the tab into it's own layout or something like that, it just requires some trickery Apr 22 13:36:53 the tabs just don't show up ;) Apr 22 13:37:32 iSeeDeadPixels, http://developer.android.com/design/patterns/multi-pane-layouts.html Apr 22 13:38:08 that is only a design document Apr 22 13:38:17 anyone good at opengl wnat to join my game project? =// Apr 22 13:38:37 Dany0, http://imgur.com/uNdKa Apr 22 13:38:40 Anybody awake? Apr 22 13:39:05 readme, just checking we're talking about the same thing Apr 22 13:39:28 I'm thinking of getting a cheap tablet for testing... anyone have any suggestions or caveats? Apr 22 13:40:34 I'm considering a Viewsonic GTablet or an Ainol Novo Elf Apr 22 13:40:47 Dany0, any news? Apr 22 13:40:51 or tips Apr 22 13:40:53 or whatever Apr 22 13:41:00 Dany0, http://imgur.com/uNdKa <- phone Apr 22 13:41:16 http://imgur.com/1wyEB <- eclipse Apr 22 13:41:21 should I go with 7" or 10"? is dual core important? is android 2.3 good enough or should it be ICS? Apr 22 13:41:51 iSeeDeadPixels, can you send me the manifest? Apr 22 13:41:53 xml Apr 22 13:42:20 manifest? Apr 22 13:42:25 oh well, just thought I'd ask Apr 22 13:42:41 does anyone know of a C++ specific tutorial for using the NDK? Apr 22 13:43:07 http://pastebin.com/RrjZsJ7Q @ Dany0 Apr 22 13:43:39 Hiraghm, 10" 5core, android 3.2 or higher ;) Apr 22 13:43:49 asus transformer ;) Apr 22 13:43:54 cause all the examples and tutorials I see are based on C, and I need to see what I have to do to access my C++ classes from the Java side Apr 22 13:43:55 Hiraghm: sorry, I've only tried NDK with C Apr 22 13:44:01 5core? Apr 22 13:44:15 some guy here the other day had it work with C++, you need to do whatever you do to call C++ from C code. Apr 22 13:44:18 I did mention "cheap", right? Apr 22 13:44:29 extern C? Apr 22 13:44:49 http://www.theverge.com/2012/3/9/2856504/google-branded-7-inch-asus-tablet-coming-as-early-as-may-says Apr 22 13:45:02 Hiraghm: basically. I never used it, but yeah. Is that all there is to it? Apr 22 13:45:18 FileInputStream fis = openFileInputStream(filename);fis.read(string.getBytes());fis.close(); what is wrong? Apr 22 13:45:56 it is wrong Apr 22 13:45:56 I've been surfing ebay the past few days. I can get a Zenithink C71 for as little as $130. Apr 22 13:46:38 fornext_: um, maybe that you shouldn't use String to allocate a new byte array and then throw the ref. away immediately after reading to it.. That is not how strings work. That is not how objects work in java. Apr 22 13:46:45 String is immutable Apr 22 13:47:03 it is? Apr 22 13:47:07 yep Apr 22 13:47:36 readme, hmm, man your are right. Apr 22 13:48:16 fornext_: yeah, I know. Apr 22 13:49:32 readme, didnt see that, while digging in Androids internals. Apr 22 13:50:11 Dany0? Apr 22 13:50:11 fornext_: i think you should probably learn java first Apr 22 13:50:17 I'm searching Apr 22 13:50:37 http://www.mindview.net/Books/TIJ/ Apr 22 13:51:20 iSeeDeadPixels, your style xml would help too Apr 22 13:52:23 no wait Apr 22 13:53:01 iSeeDeadPixels, see how he https://github.com/k9mail/splitview/blob/master/example/res/layout/main.xml made it, and look for irregularities. Apr 22 13:53:16 caioketo: its opengl 2.0 Apr 22 13:54:04 caioketo: thats why im having problems because it doesnt use the same methods as 1.0 Apr 22 13:54:34 i don't want a split view :S Apr 22 13:54:42 Dany0 Apr 22 13:55:09 iSeeDeadPixels, hmm Apr 22 13:55:44 i said i had problems with the tabs :C Apr 22 13:56:10 http://imgur.com/1wyEB / http://imgur.com/uNdKa Apr 22 13:58:46 Oh, the joys of developing on Windows... http://dl.dropbox.com/u/13228613/IMG_20120422_095320.jpg Apr 22 13:59:32 JavaDog, that's what you get for owning a x360 controller Apr 22 13:59:33 fun :) Apr 22 13:59:48 Hey it makes a nice gamepad Apr 22 13:59:51 fits well in my hands Apr 22 13:59:55 for CoD Apr 22 13:59:59 No Apr 22 14:00:01 yes Apr 22 14:00:10 anyone willing to help me? :S Apr 22 14:00:29 What's your question? I missed it due to ^ Apr 22 14:00:38 http://imgur.com/1wyEB / http://imgur.com/uNdKa Apr 22 14:00:44 with tabs is in eclipse Apr 22 14:00:52 JavaDog, I suspect his layout is wrong Apr 22 14:01:10 but I can't find how to do it right so.. yeah.. lol Apr 22 14:01:12 Did you create it using the drag and drop thing in eclipse? Apr 22 14:01:18 jup Apr 22 14:01:25 Yeah, don't use that, it sucks Apr 22 14:01:38 lol ok Apr 22 14:01:39 xD Apr 22 14:01:54 It's hardly ever accurate even for checking xml you've written Apr 22 14:02:32 http://vvcap.net/db/PnlCfecj5GzAiEyKb1CW.png <- that shit is why i use D&D Apr 22 14:02:46 glitches. everywhere. Apr 22 14:02:56 JavaDog, is there even any good drag&drop android designer out there? Apr 22 14:03:17 iSeeDeadPixels, dungeons and dragons? Apr 22 14:03:24 then again, i was trying to use fragments Apr 22 14:03:32 iSeeDeadPixels: that's... not normal. Try re-downloading eclipse? Apr 22 14:03:35 Dany0, seriously. Apr 22 14:03:43 what the hell is D&D? Apr 22 14:03:46 * iSeeDeadPixels not amused Apr 22 14:03:50 drag n drop :p Apr 22 14:04:02 oh Apr 22 14:04:24 Dany0: Don't know, I've just used XML which is what everyone seems to suggest Apr 22 14:04:36 I've been doing android for like 4 days total Apr 22 14:04:41 So maybe there is Apr 22 14:05:09 http://pastebin.com/mpe8H8ba Apr 22 14:05:12 fuuuuuck I lost 10 minutes of work Apr 22 14:06:36 Can't say what's wrong with it, I struggle with it a lot myself :< Apr 22 14:06:51 Just trial and error until it decides to work Apr 22 14:06:57 No exceptions or errors? Apr 22 14:07:24 nope Apr 22 14:07:30 just doesn't show the tabs. Apr 22 14:07:41 Try a different api level emulator? Apr 22 14:08:07 iSeeDeadPixels, what's the difference between the emu and the device? API&dpi? Apr 22 14:08:34 This ^ Apr 22 14:08:44 Wait Apr 22 14:09:04 I thought he was saying that the tabs only show up in the drag/drop editor, and the emulator was having problems Apr 22 14:09:11 Have you tested on a physical device? Apr 22 14:09:15 JavaDog, no Apr 22 14:09:21 he said it shows up in emu, not the device Apr 22 14:10:04 Oh okay. That's pretty strange then Apr 22 14:10:09 Gotta be some api difference Apr 22 14:10:10 my emu is my devices, tabs show up in eclipse Apr 22 14:10:12 ...... Apr 22 14:10:20 i develop on a nexus s Apr 22 14:10:21 So... it's what I said? Apr 22 14:10:29 eclipse is the IDE Apr 22 14:10:33 yes Apr 22 14:10:34 eclipse shows Apr 22 14:10:37 device doesn't Apr 22 14:10:42 Okay Apr 22 14:10:48 iSeeDeadPixels, emu != device Apr 22 14:10:54 avoid confusion Apr 22 14:10:56 Yeah, important distinction Apr 22 14:10:58 devices are not birds Apr 22 14:11:22 Anyway, what do you have the nexus s running? Apr 22 14:11:36 android version Apr 22 14:12:23 I'm assuming it's 4.0.3 or 4.0.4, so try making a 2.2 emulator (api8) Apr 22 14:12:29 4.0.4 Apr 22 14:12:39 Dany0 i never said emu. Apr 22 14:12:45 you were the first. Apr 22 14:12:47 JavaDog, I assume multi-pane doesn't work in 2.x? Apr 22 14:13:03 Multi-pane? You mean fragments? Apr 22 14:13:04 you said device and eclipse Apr 22 14:13:08 yes Apr 22 14:13:08 JavaDog, ye Apr 22 14:13:13 eclipse is the IDE Apr 22 14:13:19 There's a support library for fragments I think Apr 22 14:13:20 wait Apr 22 14:13:24 eclipse != emu Apr 22 14:13:33 are they supported in 8? I forget Apr 22 14:13:55 ola Apr 22 14:14:00 Well give it a shot and see how it works Apr 22 14:14:06 support library is easy enough to add Apr 22 14:14:14 Eclipse is showing this error when I create a new project - main cannot be resolved or is not a field Apr 22 14:14:20 I assume you mean the emu by eclipse because I don't use the drag&drop Apr 22 14:14:36 can anyone help me? Apr 22 14:14:46 G13ydson, do you have the paths set up properly? Apr 22 14:14:50 uh... windows? Apr 22 14:14:53 actionbar has tabs, but they're using fragments, but they will always be tabs, no multi pane shizz Apr 22 14:15:40 http://developer.android.com/guide/topics/ui/actionbar.html Apr 22 14:15:43 iSeeDeadPixels, what does the app do? Apr 22 14:16:16 what does it matter? Apr 22 14:17:10 if it's simple you could do it in HTML Apr 22 14:17:32 it's a app for a website Apr 22 14:17:48 iSeeDeadPixels, so just make a mobile version of the website? Apr 22 14:17:52 no. Apr 22 14:17:56 you can package it into an app Apr 22 14:18:01 ........ Apr 22 14:18:02 there's no problem in that Apr 22 14:18:05 -no- Apr 22 14:18:12 geez okay Apr 22 14:18:16 just sayin' Apr 22 14:19:46 iSeeDeadPixels: did you follow the instructions here http://developer.android.com/guide/topics/ui/actionbar.html#Tabs Apr 22 14:20:40 Not always an option... I'm also making a sort of app for a website, but there's no API so I have to POST and parse the pages and shit Apr 22 14:21:01 readme, uhu, but i don't know how i should make the fragments, and style them Apr 22 14:21:20 or even umplement the example code Apr 22 14:21:29 where would i put it, etcetera Apr 22 14:21:40 uhm Apr 22 14:21:47 sorry, I am Brazilian and my English is not very good :) Apr 22 14:21:52 then why the hell do you wonder why doesn't it work? Apr 22 14:21:58 iSeeDeadPixels: there is probably an example Apr 22 14:22:01 let me see Apr 22 14:22:04 iSeeDeadPixels, you forgot to actually implement the thing Apr 22 14:22:11 readme: I knew it was coming eventually: http://dl.dropbox.com/u/13228613/IMG_20120422_095320.jpg Apr 22 14:22:24 readme, there was supposed to be an opensource app called "gigbeat" but the source is gone now Apr 22 14:22:33 JavaDog: lolwtf Apr 22 14:22:42 Dany0: are you a bot? Apr 22 14:22:59 He's not Apr 22 14:23:02 nope Apr 22 14:23:13 you have failed the reverse turing test. congratulations. Apr 22 14:23:22 what Apr 22 14:23:31 So... you're a bot? Apr 22 14:23:43 Dany0, because i was using a different system. Apr 22 14:24:13 Oh I get it Apr 22 14:24:18 * JavaDog has been up all night Apr 22 14:24:18 I don't Apr 22 14:24:26 iSeeDeadPixels: https://github.com/commonsguy/cw-advandroid/tree/master/Honeycomb/FeedFragments Apr 22 14:24:40 his project should be a reliable reference Apr 22 14:24:45 i don't want a split layout or anything : | Apr 22 14:25:09 Fragments aren't just for doing that, I don't think Apr 22 14:25:18 right ^ Apr 22 14:25:19 then again I've never used them, so don't listen to me Apr 22 14:25:24 Okay, do listen Apr 22 14:25:32 how do i even create three fragments : | Apr 22 14:25:38 that will fill the screen : | Apr 22 14:25:39 Fragment is just a reusable component that encapsulates some behavior and UI Apr 22 14:25:57 iSeeDeadPixels: why not...read the project I linked you to? Apr 22 14:26:06 creating 3 fragments != using up the screen Apr 22 14:26:24 then i'll have 3 fragments on one page right? Apr 22 14:26:28 a Fragment doesn't even have a definite region of the screen! Apr 22 14:26:30 in main.xml Apr 22 14:26:37 it's just a way of encapsulating UI and behavior Apr 22 14:26:46 ok Apr 22 14:27:10 so i should create a new class, let it extend Fragment and then what? Apr 22 14:27:18 create a seperate XML for it? Apr 22 14:27:39 iSeeDeadPixels: why not read the source of the project I linked you to? Apr 22 14:27:48 it should be pretty obvious from that Apr 22 14:28:24 start here https://github.com/commonsguy/cw-advandroid/blob/master/Honeycomb/FeedFragments/src/com/commonsware/android/feedfrags/FeedsTabActivity.java Apr 22 14:30:14 either i'm stupid or i'm stupid, but i don't get the structure Apr 22 14:30:54 it's complicated. check the project out and run the code Apr 22 14:31:26 *sigh* google doesn't even have tutorials Apr 22 14:31:35 they have Fragment, and ActionBar guides Apr 22 14:31:58 iSeeDeadPixels: Do you know Java? Apr 22 14:32:14 JavaDog: i think he has acceptable Java skills. Apr 22 14:32:25 ah okay Apr 22 14:32:36 at least, he hasn't given me any reason to doubt it yet. Apr 22 14:33:01 i built https://play.google.com/store/apps/details?id=nl.deadpixel.recoverystick so yeah Apr 22 14:34:57 i'm getting pissed off at how hard it is to use tabs :C Apr 22 14:35:48 tabs are easy Apr 22 14:35:54 in ICS??? Apr 22 14:35:57 :C Apr 22 14:36:00 gah Apr 22 14:36:06 * iSeeDeadPixels pissed off Apr 22 14:36:06 ICS is overrated. Apr 22 14:36:11 not enough information. Apr 22 14:36:19 2.3.7 is the best android. Apr 22 14:37:21 nope Apr 22 14:37:24 4.0.4 Apr 22 14:40:51 nope, I get 56 hours per charge, and I run all the apps I need, with 2.3.7 Apr 22 14:41:30 4.0.4 is just worthless 2d graphics hardware acceleration for an 8 hour battery life Apr 22 14:42:08 56 hours? Apr 22 14:42:14 on average Apr 22 14:42:18 waow Apr 22 14:42:18 I get great battery life with my GSM Galaxy Nexus Apr 22 14:42:44 I'm running 2.3.4 on my Evo-3D :( Apr 22 14:44:10 Biggest battery savings: switching the e-mail app from 24/7 push connectivity to polling every X minutes. Apr 22 14:45:53 ooh, how do you do that? Apr 22 14:47:08 More often than not, the biggest battery hog is using the network, seconded by apps that seize wakelocks or do busy-wait loops. Apr 22 14:47:31 Also backlight Apr 22 14:48:45 Simple java question: I've got an inner class, like so: public class outerClass { ... private static class innerClass { ... } } Apr 22 14:48:47 Backlight doesn't come close to radio/network Apr 22 14:48:57 How can I access the fields of the inner class from the outer class? Apr 22 14:49:35 is it just innerClass.fieldIWant > Apr 22 14:49:37 ? Apr 22 14:50:02 You could be coasting along using 3-15mah with the backlight on, then your network comes on to download a twitter message and suddenly your battery drain jumps to 300mah Apr 22 14:50:35 Anyone good at opengl to join my game project? Apr 22 14:50:47 not yet Apr 22 14:51:16 pragma-: that entirely depends on your display and radio Apr 22 14:51:31 everything is relative, after all Apr 22 14:51:37 is there any channel focusing on opengl es ? Apr 22 14:51:50 LTE is extremely expensive, for example Apr 22 14:52:08 3G radios are pretty good these days Apr 22 14:52:16 Hallo to all Apr 22 14:52:34 Once you've driven a Corvette for a month, it's hard to go back to a Yugo. Apr 22 14:52:59 meanwhile, super high-density displays (xhdpi) with bright backlights are also super costly Apr 22 14:53:42 I never understood why someone would be attracted to a 30 minute battery life just so they can see an extra hair on Johnny Depp's chest while watching movies. Apr 22 14:54:20 pragma-: Because that's when they'll hit their monthy data cap anyway Apr 22 14:54:36 monthly Apr 22 14:54:53 Actually, Johnny Depp is probably more the girly type that shaves his chest, now that I think about it. Apr 22 14:55:04 But I digress... widely. Apr 22 14:55:34 anyone use the NDK and IDE debugging and have the debugger some times stop on break points? Apr 22 14:56:13 actually more like 1 out of 10 runs worked.. and everything else launches the app and never stops. Apr 22 14:56:21 I wonder if Im missing some setting or time out Apr 22 15:00:39 ah the inevitable proverbial user comment on each app update: "X worked before! update broke it! please fix!" Apr 22 15:01:00 does anybody have a gtalk decompiled and or modified? Apr 22 15:01:12 hax0r ! Apr 22 15:01:14 bubbleguuum: maybe you shouldn't break your app when you update it! Apr 22 15:01:36 in that particular case, I suspect the user to be broken Apr 22 15:01:46 but it did happen I broken stuff heh Apr 22 15:02:08 I do have some bizarre 1 star rating from some nutjob ranting in Polish. Apr 22 15:02:26 I might be able to translate it Apr 22 15:02:28 pragma: I know what you mean Apr 22 15:02:48 Or, you know, google translate Apr 22 15:03:11 idiots ranting in $OBSCURE_LANGUAGE only his family understands... Apr 22 15:03:18 guys, i'm losing my mind. My app was working perfectly awhile ago and then it decided to break itself because of some NoClassDefFround (maybe from an external depency? but it doesnt make sense because i never had this problem before and i havent touched this code in about half a week): here is the full error with the line at which it occurs: http://pastebin.com/JGRu3w9Q Apr 22 15:04:03 It translates to "Useless coward hackers trying to fry my phone in the meantime the rcmp are catching them 3 years jail time awesome" Apr 22 15:04:12 haha Apr 22 15:04:43 Heheh Apr 22 15:05:20 * pragma- has visions of men in red on horseback breaking into server rooms. Apr 22 15:08:13 and then they say black magic doesn't exist... Apr 22 15:10:53 bluezone, http://stackoverflow.com/questions/3951274/noclassdeffounderror-when-trying-to-unit-test-json-parsing-in-android Apr 22 15:11:00 related methinks Apr 22 15:11:36 bluezone: does your project depend on gson, because it looks like it Apr 22 15:11:47 you're probably missing a dependency Apr 22 15:11:54 readme: yes, but all the external libraries are linked Apr 22 15:12:40 they were always linked this just decided to break itself at a random moment :( Apr 22 15:13:07 Is that "random moment" you updating the sdk/adt? Apr 22 15:13:41 SimonVT: YES Apr 22 15:13:50 SimonVT: my idiot brother did that! Apr 22 15:13:56 Hey, I've been having some trouble building an app widget. I need to render the entire widget to a Bitmap and send it via setImageBitmap() to the widget. I'm having issues where that's silently failing on some 2.x devices. Does anyone know a resource talking about this limitation? Apr 22 15:14:04 Should be easily googled then, but either way: http://tools.android.com/recent/dealingwithdependenciesinandroidprojects Apr 22 15:14:29 xxv: there's a limit to how big the bitmap can be (1MB?) when shipping it across the binder Apr 22 15:15:01 evancharlton: k. Any idea where that limitation is? I just want to make sure I don't hit it. Apr 22 15:15:11 As in, where I can learn more. Apr 22 15:15:22 xxv: no, let me google for a bit Apr 22 15:15:38 evancharlton: thanks a ton. I thought I came across it before, but my g-fu has been lacking today Apr 22 15:16:27 xxv: note that this isn't a problem for HC+, since it's a FileDescriptor which gets passed instead of the bitmap itself Apr 22 15:16:42 I know it doesn't help you now, but it should make your life easier in like 4 years :P Apr 22 15:17:21 evancharlton: heh. Well, I have a Galaxy Nexus, so I've bothered to make my widget work well on it ;-) Apr 22 15:17:33 Still, most of my users aren't so lucky. Apr 22 15:19:58 evancharlton: nice to know that it passes a FD. I was going out of my way to pass an URL and a FD is a little less kludgy than that. Apr 22 15:20:18 http://groups.google.com/group/android-developers/msg/74ab89b350ad07c2 Apr 22 15:20:25 ^ says 1MB Apr 22 15:21:01 sweet, thank you very much :-) Apr 22 15:21:04 I'm sick of users using Market comments as a support channel Apr 22 15:21:13 another clown that I cannot help Apr 22 15:21:28 making false claims of course Apr 22 15:21:42 idiots Apr 22 15:21:50 bubbleguuum: borrow a friend's phone and mark the comment as spam? Apr 22 15:22:02 I can do it from my own :/ Apr 22 15:22:46 instead of sending you an email for help it sooo much better to post a comment over which you can do nothing Apr 22 15:23:49 and can't even reply directly. I don't get why they haven't added that. Apr 22 15:24:09 That feature is the one good thing about Amazon's store. Apr 22 15:24:31 Of course, it still doesn't prevent idiots from making false claims. Apr 22 15:24:32 users: 1, developers: 0 Apr 22 15:25:18 I explicitly link to the bug-tracker/issue/ticket system in my market description and on the what's new tab, and they still post comments like 'doesn't work' which I can't respond to for further information Apr 22 15:25:51 SimonVT: i'm not quite sure what i should be doing here, should i move my external libraries to "Android Dependancies" ? Apr 22 15:26:00 pragma: same here, I state in the apps description to contact me for support as cannot respond to comments Apr 22 15:26:14 so its impossible to start an app without dalvik? Apr 22 15:26:18 also, my app requires root, which I state in 3 parts in the description (immediately, in the middle, and at the end), and I'm betting those "doesn't work" comments are from users that don't know what root is. Apr 22 15:26:32 bluezone: put everything in libs/ , shake Eclipse vigourously and try from there Apr 22 15:26:55 k i will try that 1 min Apr 22 15:27:00 pragma: had a similar problem Apr 22 15:27:21 Anyone good at opengl to join my game project? Apr 22 15:27:29 i wish :( Apr 22 15:29:04 restrict the lusers in the manifest Apr 22 15:30:59 boolean isUserAMonkey { return true; } Apr 22 15:33:51 someone's card got declined for my 1.99 app :P Apr 22 15:34:02 lol Apr 22 15:34:09 http://xkcd.com/221/ Apr 22 15:34:36 :) Apr 22 15:35:26 Oh wow... minecraft complies (see the alt-text) http://imgur.com/gallery/pkXXp Apr 22 15:35:31 readme: wait until you get the awesome cancellation on "took too long to deliver" Apr 22 15:35:53 bubbleguuum: ups will leave the app at the wrong house Apr 22 15:35:59 xxv: i put everything in libs and i also linked all the libraries in eclipse using that libs folder, i'm not sure which one worked but it works so i'm not asking any questions :D ty ty Apr 22 15:36:04 Guys, why in the F can't I "reactivate" an old APK in the Play Store? It looks like the option exists, but then the version number is lower than the current version number, so it errors. Apr 22 15:36:25 Change the version number? Apr 22 15:36:26 You'd think Google would accommodate that, since they clearly have "reactivate" links next to previous versions. Apr 22 15:36:38 Yeah, unfortunately my developer didn't take that release. Apr 22 15:36:46 Chronax: er, no, it doesn't work like that Apr 22 15:36:46 No way to change the version number since I no longer have the code for that version. Apr 22 15:36:47 there's no downgrade Apr 22 15:36:53 versionCode has to be monotonically increasing Apr 22 15:36:58 Yeah, I know. Apr 22 15:37:08 so how could Google magically allow that to work? Apr 22 15:37:21 Might have to post it as a new app Apr 22 15:37:24 But then Google should remove "reactivate" as an option for APKs which are known to have a lower version number / versionCode. Apr 22 15:37:38 Chronax: and break every device ever? Apr 22 15:37:42 I'm not even sure what the "reactivate" stuff is for Apr 22 15:37:58 evancharlton: Touche. Apr 22 15:38:16 Is there any way to update the version number / versionCode in a compiled apk? Apr 22 15:38:16 Chronax: it shouldn't be too hard to bump the version code by poking around in the bits, reassembling the APK, and then resigning it. Apr 22 15:39:19 Ugh. Apr 22 15:39:38 Assuming he has his key. Apr 22 15:39:40 I really wish this guy would've created a tag. Apr 22 15:39:48 Yeah, I have the key, I sign the app via Jenkins. Apr 22 15:39:54 In this case, manually. Apr 22 15:40:17 Feels like there should be an option to revert back, though, and automatically increment the versionCode / number. Apr 22 15:40:40 xxv: also i think the sledgehammer helped :) Apr 22 15:41:10 I wish the system allowed for an easy way to have betas alongside stable versions. But this will never happen Apr 22 15:41:10 Chronax: .. and how would Google do that, exactly? :) Apr 22 15:41:25 Yeah, I understand. Apr 22 15:41:29 Chronax: they don't have the ability to sign your binaries with your private key Apr 22 15:43:33 bubbleguuum: "beta version crashes on my 2.1 evo 4g, will change rating to 5 stars when fixed" Apr 22 15:43:50 yeah there a complications =) Apr 22 15:43:54 *are Apr 22 15:44:36 No... a user smart enough to know their version number would have upgraded. It would be worse than that, I imagine... Apr 22 15:45:12 aaaaahh "will update to rating++ when Z happens" style of comments... Apr 22 15:45:42 "terrible app, force closes no error don't download WOULD GIVE ZERO STARS" Apr 22 15:45:56 lol Apr 22 15:46:34 Anybody ever successfully update the version number / code in a signed APK? Apr 22 15:46:50 Chronax: I'm poking around one of my APKs now Apr 22 15:46:59 Thanks, evancharlton. Apr 22 15:47:06 "bla..bla...bla...blabla. Uninstalled!". Cool story bro. you can keep it installed or uninstall it, noone cares. Apr 22 15:47:54 you should care about what users have to say abbout your apps (most of the time) Apr 22 15:48:25 We were discussing what would happen if beta version of apps were allowed on the market alongside stable ones Apr 22 15:48:47 versions* Apr 22 15:49:37 Anyway, time for breakfast. Was nice talking! /tailwags Apr 22 15:55:41 textziew / autolink isn't working for a dutch address... Apr 22 15:56:24 bluezone: glad to hear it worked. I find that Android+Eclipse's build process often needs some vigourous shaking to make it work. :-) Apr 22 15:56:35 lol yeah Apr 22 15:56:43 fuckin' dvorak Apr 22 15:56:47 textziew. Apr 22 15:56:49 omg Apr 22 15:56:53 textview... Apr 22 15:57:53 Hey guys, I recently release my app "Select Who?" and I'm really struggling with the Google Play SEO, I was originally about the 5th in the search for the term "Select Who" but I updated my description and now I can't even find my app. Apr 22 15:58:11 Chronax: hey, send me a /msg Apr 22 15:58:44 Anybody able to give me any advice? Apr 22 15:59:22 Reggar: updating your app probably deranks your app in search for a little while or something. Give it a bit to climb back up in the index? Apr 22 16:00:35 anyone having a clue why my address won't show up as a maps link? :) Apr 22 16:00:36 Yeah well I updated it a few days ago, guess I've just got to give it more time. Anybody know when Google Play updates its stats Apr 22 16:00:42 http://maps.google.nl/maps?q=Spoorsingel+51,+1947+LB+Beverwijk Apr 22 16:02:59 Reggar: I'm sorry, but I doubt you'll be able to get an answer to that in here. I would recommend emailing the developer support folks and seeing what they say. Apr 22 16:03:38 Okay I'll try that, thank you for your help evancharlton :) Apr 22 16:04:01 no problem; good luck! Apr 22 16:04:05 Hi, I'm writing an application for android that has to control a pc(execute some scripts, play a movie etc), what would you guys recommend for the procotol, Apr 22 16:04:06 I'm currently using a simple tcp/ip client server structure, but an ssh sftp could also be an option (or simple ftp and executing the scripts placed on some directory when a key file is detected) Apr 22 16:04:35 The app should be able to upload files ofc Apr 22 16:04:47 Electric_Brain: how secure does this need to be? I'd probably just stick with tcp/ip because it's much simpler Apr 22 16:04:49 i'd go with TCP/IP Apr 22 16:05:09 doesn't need to be secure, it's a local connection Apr 22 16:05:15 over wifi Apr 22 16:05:29 also, i hate this kind of comments :C "funktioniert nicht Funktioniert nicht auf Galaxy S und lässt sich auch nicht direkt stornieren, so daß der Kaufpreis erstattet wird. schade" Apr 22 16:06:01 I just removed AdMob from my app, and now it crashes on start-up. Why on Earth can this happen? Apr 22 16:06:20 Jobo: logcat, holmes. Apr 22 16:06:20 Stacktrace will tell Apr 22 16:07:13 I can't use logcat, I don't have a USB cable to this Android Apr 22 16:07:23 uh Apr 22 16:07:27 get one, then :) Apr 22 16:07:34 and/or install e.g. aLogcat Apr 22 16:07:38 evancharlton: the connection is secured with wpa, and the wifi range wouldn't be very big also :P, I guess I'll stick with tcp/ip then given that I already have some code written Apr 22 16:07:44 Oh yeah, I've had aLogCat before.. Apr 22 16:08:00 I havent implemented file transfer but it shouldn't be much complicated right? Apr 22 16:08:13 Just gotta shut down my phone somehow, 'cause it's totally frozen and the "app frozed" message doesn't even appear.. Apr 22 16:08:27 Jobo: spent $0.60 and buy a USB cable. Apr 22 16:08:31 spend* Apr 22 16:09:09 It probably won't fit and whatnot. I'm doing fine with dropbox. Besides, I have a smaller Android (with a usb cable) that I could potentially just use Apr 22 16:09:21 I'm just lazy Apr 22 16:09:40 * evancharlton shakes his head Apr 22 16:11:25 this phone is horrible at turning on Apr 22 16:11:57 goes on with its little launch screen animation for fucking ages. Had to restart it all over again. Apr 22 16:19:14 how much money will google pay for java? Apr 22 16:20:08 somewhere between $0 and $193.90B, inclusive Apr 22 16:20:45 hey how can i make the screen always stay turned on when i am connected to the usb dev cable? Apr 22 16:20:53 on the device, not the pc Apr 22 16:20:57 or tv Apr 22 16:20:59 soroca: there's an option in dev settings Apr 22 16:21:09 ah cool, because i would really like that option Apr 22 16:21:14 let me look for it Apr 22 16:21:22 it sucks if you have to constantly unlock the screen Apr 22 16:21:38 evancharlton: why 193B? Apr 22 16:21:55 so question is where are the dev settings? Apr 22 16:22:26 ah i found it under applications Apr 22 16:22:58 thanks evancharlton Apr 22 16:23:11 arek_deepinit: that's GOOG's current market cap. Apr 22 16:24:18 evancharlton: but that would not be possible, cause that would create monopoly, like oligopoly are any better Apr 22 16:24:45 arek_deepinit: a) what? b) it was a joke c) ... what? Apr 22 16:25:00 evancharlton: you probably know what oligopoly is? Apr 22 16:25:34 when i run the app on a device then eclipse does not automatically create a filter for logcat for that app, do you know why or how i can change that? Apr 22 16:25:37 arek_deepinit: you're just using random words that you think are on-topic when, in fact, they are not. Apr 22 16:25:53 arek_deepinit: anyway, this is #android-dev, not #android-lol-lets-play-lawyer Apr 22 16:26:06 true:), pardon me Apr 22 16:26:25 i cannot see anything because it get spammed with random noise Apr 22 16:27:14 everything scrolls past the screen faster than the cpu of the galaxy nexus Apr 22 16:27:15 looking for some opengl devs for my game project Apr 22 16:27:29 which is fast Apr 22 16:27:35 caioketo: what kind of game? Apr 22 16:27:44 soroca: ndk obviously? Apr 22 16:28:23 do you have any idea? i mean if i run stuff on the emulator then eclipse automatically creates a filter for that app and it works Apr 22 16:28:28 arek_deepinit: what do you mean? i dont use ndk Apr 22 16:28:55 why does it not create a filter for the app on the device? Apr 22 16:29:06 i could not resolve it through googling Apr 22 16:29:09 arek_deepinit I'm starting with some RPG tile based, but im aiming on a MMORPG tilebased, and multi-platform, ill dev an webclient... Apr 22 16:29:54 caioketo: tile based kinda like HOMM? Apr 22 16:30:21 HOMM? never heard Apr 22 16:30:25 any idea? Apr 22 16:31:02 arek_deepinit yeah, but not with turns, just a normal MMORPG, but tilebased Apr 22 16:31:06 caioketo: my gods, Heroes of Might and Magic Apr 22 16:31:32 arek_deepinit I played a lot, but didnt remember the name :P Apr 22 16:32:03 whats also weird is that if i create a filter manually and then click it then the previous unfiltered logs get all deleted! similarly when i change back to unfiltered it deletes all the logs for the app! Apr 22 16:32:29 this sabotages my dev efforts Apr 22 16:32:55 "Conversion to Dalvik format failed with error 1" I know what Dalvik is, but why does this error occur at what seems randomly? Apr 22 16:33:05 oh wait actually it doesnt Apr 22 16:33:10 but anyway Apr 22 16:33:12 Jobo: check your logs. Apr 22 16:34:28 evan what logs on earth are you talking about? It has to do with Eclipse and not my project. Apr 22 16:35:53 Jobo: oh right I forgot that eclipse doesn't have logs. Apr 22 16:36:08 Apr 22 16:36:19 Don't make that mistake again Apr 22 16:36:30 what mistake? Apr 22 16:52:29 hi Apr 22 16:52:41 anyone having a clue why my address won't show up as a maps link? :) Apr 22 16:52:43 thank you for this channel. It's great Apr 22 16:53:03 go to maps.google.com put your address in, then click the link icon near the top and copy it Apr 22 16:53:11 it will be the exact address! Apr 22 16:53:35 I am having an issue with google finding things like state parks and such using maps which is kind of sad. Apr 22 16:53:50 I search for a state park and it fails lol. Zoom level also affects it Apr 22 16:53:58 consider the zoom level your map is in PRE search Apr 22 16:54:31 I don't know why they built it that way, it should narrow results in reverse order of the string being searched instead of making db query quicker based on a zoom level Apr 22 16:54:36 for a number of reasons. Apr 22 16:54:39 xbp, the funny thing is, it's a dutch address Apr 22 16:54:50 and autolink doesn't make it a link. Apr 22 16:54:57 iSeeDeadPixels then search for the nearest city and get your maps fixed in the general area Apr 22 16:55:09 http://maps.google.nl/maps?q=Spoorsingel+51,+1947+LB+Beverwijk Apr 22 16:55:13 your map has to be near the location before you search it generally unless it's a major city Apr 22 16:55:53 autolink, textview :P it doesn't create a map link ;) Apr 22 16:56:04 that doesn't look like a valid address. Apr 22 16:56:07 What is the city and country Apr 22 16:56:19 and street please Apr 22 16:56:25 came up for me however Apr 22 16:57:24 I wish I spoke dutch. Why google doesn't hav a language link at the top is another failure. Apr 22 16:57:28 Spoorsingel 51, 1047LB Beverwijk, The Netherlands Apr 22 16:57:38 1947* Apr 22 16:57:42 how can i logcat filter exaclty the app name? Apr 22 16:57:46 some of us use vpns that are foreign due to new censoring laws... it mjakes it more difficult. Apr 22 16:58:06 simply doing adb logcat package.name:v seems to print everything Apr 22 16:58:22 51, 1947LB Beverwijk Apr 22 16:58:27 that works for me Apr 22 16:58:39 just that by itself seems to pull up the address Apr 22 16:58:51 http://g.co/maps/9euct Apr 22 16:59:01 i cannot get the logcat filter to work, can you help? Apr 22 17:00:36 iSeeDeadPixels what are you trying to get? "copy link location" type of grab? Apr 22 17:00:41 no Apr 22 17:00:44 or just a url to your addy? Apr 22 17:00:48 TextView autoLink map Apr 22 17:00:57 no idea what that is :/ Apr 22 17:01:09 a textview Apr 22 17:01:11 activity launch VIEW and use geo: Apr 22 17:01:15 with the autolink attribute Apr 22 17:01:22 geo is the maps autolink attribute Apr 22 17:01:27 use VIEW Apr 22 17:01:34 ehh? Apr 22 17:01:37 with a geo url Apr 22 17:02:11 ah, my answer :) "right now autolink map is supported only for US " Apr 22 17:02:54 can I get the autolink for you? Apr 22 17:03:05 see if you use an ameircan vpn you can do it probably Apr 22 17:03:24 fuck, logcat does not filter properly! Apr 22 17:03:31 it's the address format Apr 22 17:03:32 please help, how does this work?? Apr 22 17:03:41 it only works with US streetnames Apr 22 17:03:43 i tried adb logcat com.package.name Apr 22 17:03:52 i tried adb logcat com.package.name:V Apr 22 17:04:01 i tried adb logcat com.package.name:D Apr 22 17:04:09 i tried adb logcat Apr 22 17:04:14 app:com.example.packagename Apr 22 17:04:17 it always shows exactly the same crap! everything Apr 22 17:04:30 oh, the stupid documentation does nowhere mention app:! Apr 22 17:04:30 use eclipse Apr 22 17:04:46 iSeeDeadPixels: i use the commandlne because eclipse keeps emptying my logs for no apparent reason Apr 22 17:05:01 Man oh man starting with app development is confusing Apr 22 17:05:32 soroca: http://bit.ly/JZq0A0 Apr 22 17:05:35 iSeeDeadPixels: the app: syntax seems to be wrong, when you try it you get the logcat help screen Apr 22 17:05:46 PrivateAlpha: so true Apr 22 17:06:07 Eclipse is a life saver though Apr 22 17:06:14 iSeeDeadPixels: trust me i googled the shit out of google, the documentation is wrong or not existent Apr 22 17:06:19 iSeeDeadPixels: the app: doesnt work btw Apr 22 17:06:48 why couldnt they just make it pure java, then it would be easy.. but all this xml... oh well Apr 22 17:07:27 soroca, first link will help you Apr 22 17:08:21 soroca logcat com.example.packagename:V *:S Apr 22 17:08:51 iSeeDeadPixels: no. i was there before i asked here. i tried exactly what the people respond, as i told you before. it does not work. also note that *:S is just an example and i already get everything if i leave it OUT Apr 22 17:08:57 if you call SensorManager.unregisterListener() with a listener that isn't registered, what happens? Apr 22 17:09:05 Can someone explain why they use the xml to me please? Apr 22 17:09:07 it simply ignores the filter Apr 22 17:09:14 PrivateAlpha: no idea, they like it verbose Apr 22 17:10:22 It'll take us a while but I'm sure we'll be able to do this someday soroca :) Apr 22 17:13:04 soroca: use Eclipse Apr 22 17:13:40 Ginto8: probably nothing Apr 22 17:13:46 FUCK Apr 22 17:14:11 iSeeDeadPixels: eclipse does not work, it empties the log and the pause button does not care if i press it, fuck this sucks Apr 22 17:14:17 fucking logcat Apr 22 17:15:12 soroca, get Eclipse. Apr 22 17:15:29 use ddms standalone, or logcat in a shell Apr 22 17:15:43 soroca: just use logcat from your terminal Apr 22 17:18:09 evancharlton: the problem is that it does not work. the help screen is wrong. please scroll up, the filter does not work Apr 22 17:19:16 pfn: please scroll up Apr 22 17:20:07 iSeeDeadPixels what's going on Apr 22 17:20:24 I see what you're referring to.. it automatically recognizing the address and making a link for it Apr 22 17:20:42 is it possible to add a button to a SurfaceHolder? Apr 22 17:20:56 Don't worry about that, instead save the info entered into a second variable and use it as I told you in a "search query" by building a string Apr 22 17:21:39 composed of geo: + "addy input from first screen" + zoom level ("&z=14") Apr 22 17:21:54 oh man this makes me angry Apr 22 17:21:55 that variable will be the same if launched using the VIEW activity Apr 22 17:22:17 this stupid ********* logcat does not work at all, it is poorly programmed crap Apr 22 17:22:45 I don't know if this is specifically a Kindle Fire thing (since the Fire is weird), but I'm doing a tilt test and getDefaultSensor(SensorManager.SENSOR_ORIENTATION) is apparently getting me the accelerometer, while I have no clue what SensorManager.SENSOR_ACCELEROMETER is giving me :/ Apr 22 17:22:47 not sure, but I'd like to watch activities as they happen I haven't learned that part yet about adb Apr 22 17:22:52 just open two terminals and pipe one through grep Apr 22 17:22:54 like what activity is being called for what etc Apr 22 17:23:05 evancharlton : windows prolly Apr 22 17:23:07 What up with SherlockActivity and RelativeLayout and MenuInflater? Apr 22 17:23:11 please try the following on your command line: adb -d logcat whatever.fucking.stupid.shit.you.write.here.does.not.matter.FUCK <<-- copy this literally, it will show you everything, not filtered at all Apr 22 17:23:12 xbp: cygwin Apr 22 17:23:21 Frikish: that question makes no sense. Apr 22 17:23:24 oh good action Apr 22 17:23:43 I get that the java.lang.NoClassDefFoundError: com.actionbarsherlock.R$styleable, from the MenuInflater inflater = getSupportMenuInflater(); Apr 22 17:23:43 inflater.inflate(R.menu.importantmenu, menu); Apr 22 17:24:13 soroca: ... duh? that's an invalid filter. Apr 22 17:24:23 soroca: what are you trying to see? Apr 22 17:24:27 soroca : adb -d logcat |grep *whatever I am complaining about not seeing" Apr 22 17:24:36 evancharlton: no it is a valid filter because if you leave out the :Level then :V is implied Apr 22 17:24:45 evancharlton: try adding a :E :D :V :Whatever, no change Apr 22 17:24:53 evancharlton: i want to see only the logs from my app Apr 22 17:25:12 xbp: this does not work becaues not all logs contain the app name in the string! it needs to filter internally Apr 22 17:25:43 evancharlton: i am blinded by the spam i cannot see anything without a filter, it is vital to my dev efforts yet google sabotages it by writing broken shit :( Apr 22 17:26:30 soroca: what tag are you using? Apr 22 17:26:37 Frikish: clean project Apr 22 17:26:43 evancharlton: com.my.package.name Apr 22 17:26:55 soroca: try adb logcat com.my.package.name:* *:S Apr 22 17:27:04 closed and open it, and now its fins Apr 22 17:27:08 fine Apr 22 17:27:24 evancharlton: the * only works in front of the colon. it is not a valid log level Apr 22 17:27:44 but maybe you mean verbose Apr 22 17:27:44 fine then use V or I or whatever is highest Apr 22 17:28:08 because TalkProvider:* *:S shows me everything from TalkProvider Apr 22 17:28:34 soroca filter OUT tagnames maybe Apr 22 17:28:41 that may work for you Apr 22 17:28:56 evancharlton: it does not seem to work. but i see what you mean. it would be a stupid notion of "filter" thought if you have to specify what you do NOT want Apr 22 17:29:26 also the help screen says i should use it as i do Apr 22 17:29:52 soroca : set tagname as applicati anme and set filter as your application Apr 22 17:29:57 xbp: hm this is really furstrating, doesnt seem to work Apr 22 17:29:58 then you will see only your application log Apr 22 17:30:12 xbp: can you give an example of what you mean? Apr 22 17:31:03 this behavior is really irrational, it doesnt seem to follow any rules, whatever you specify as filter Apr 22 17:31:18 Hey, is there a list of supported/tested GPUs for the emulator GPU support? Apr 22 17:31:30 put your application as the filter and the tagname Apr 22 17:31:37 click clear log Apr 22 17:31:40 and start again Apr 22 17:31:42 xbp: of course i triedthat already Apr 22 17:31:58 can you filter by thread:ID Apr 22 17:32:05 xbp: i want to use it from the commandline now because eclipse keeps emptying my log and the pause button doesnt work etc Apr 22 17:32:21 adb logcat BadProcessName:S MyProcessName:V Apr 22 17:32:31 :s removes that from displaying Apr 22 17:32:35 :S rather. Apr 22 17:33:14 xbp: did you actually try it? it does absolutely not care about what yuo mean Apr 22 17:33:21 please try it Apr 22 17:33:46 soroca: I just tried it Apr 22 17:33:47 Honestly, I have only used adb from the commandline a couple times and not recently Apr 22 17:33:47 works here Apr 22 17:33:54 i started writing apps in appinventor Apr 22 17:34:04 yeah, I don't use the one in eclipse. Apr 22 17:34:10 just pop open a commandline and type "adb -d logcat something.that.does.not.math.anything" <-- it will show everything Apr 22 17:34:20 because I can write an app in 10 minutes that would probably take me 2 weeks otherwise Apr 22 17:34:21 soroca: no shit Apr 22 17:34:24 soroca: I covered this Apr 22 17:34:32 soroca: stick a *:S on the end of that Apr 22 17:34:37 evancharlton: what exactly did you try? if i try adb logcat my.app.name:V *:S then i see nothing Apr 22 17:34:51 I tried to tell him the :S after the process that is flooding Apr 22 17:35:02 *:S means filter EVERYTHING Apr 22 17:35:04 HAHA Apr 22 17:35:05 <3 Apr 22 17:35:13 * = all Apr 22 17:35:20 http://stackoverflow.com/questions/7533693/phones-processes-flooding-logcat-output-how-to-eliminate-those-messages Apr 22 17:35:20 xbp: it is not mentioned in the help screen and a "filter" means what i want to see, not what i want to see AND what i dont want to see Apr 22 17:35:23 soroca: adb logcat TalkProvider:* *:S <-- bam, only TalkProvider in the logcat Apr 22 17:35:26 also, IT DOES NOT WORK Apr 22 17:35:38 evancharlton: this really works for you? Apr 22 17:35:42 soroca I told you :V means I LIKE and :S means hide form me Apr 22 17:35:43 RLY Apr 22 17:35:45 <3 Apr 22 17:35:46 i didnt get anthing, let me try again Apr 22 17:36:07 adb logcat BadProcessName:S MyProcessName:V Apr 22 17:36:11 soroca: obviously if what you're looking for has fallen off the log buffer, you won't see anything until it logs again Apr 22 17:36:12 xbp: yeah, not something you would have to tell a filter. filter means i specify exactly what i want, not what i dont want too Apr 22 17:36:31 soroca : logcat isn't a filter.... :V is a filter and :S is a filter for logcat Apr 22 17:36:43 xbp: evancharlton do you see how the *:S is absolutely redundant? it makes no sense, it should be implied and no use case would be lost Apr 22 17:36:45 :V filters what you want to see more of and :S hides what you don't want to see Apr 22 17:36:54 evancharlton: yeah but i restarted the app Apr 22 17:37:09 :S = suppress. redundant is the name for what you're asking for ? Apr 22 17:37:09 soroca: http://b.android.com/ <-- go file a bug about the bad interface, then Apr 22 17:37:25 can you give one reason why specifying an explicit *:S is necessary? Apr 22 17:37:30 yes i will evancharlton Apr 22 17:37:36 in the meantime, I'm telling you what works now; you can cry all you want about a bad *:S but that won't fix anything :) Apr 22 17:37:40 unless you see a reason where this stupid broken syntax is not shit Apr 22 17:37:42 "i want to supress some of the log data coming out of 'logcat' but I don't want to supress it if ya know what I mean" Apr 22 17:37:44 how can i set a textview from within a fragment? Apr 22 17:37:45 hrm Apr 22 17:37:49 i find this helpful for viewing logcat in shell Apr 22 17:37:49 i will try again Apr 22 17:37:50 http://jsharkey.org/blog/2009/04/22/modifying-the-android-logcat-stream-for-full-color-debugging/ Apr 22 17:37:57 iSeeDeadPixels: .setText(..) Apr 22 17:37:58 seperate activity iSeeDeadPixels Apr 22 17:38:08 thanks doogan Apr 22 17:38:36 xbp: seperate class Apr 22 17:38:37 ? Apr 22 17:38:45 seperate declaration Apr 22 17:38:48 that really looks helpful doogan Apr 22 17:39:10 is for sure Apr 22 17:41:21 evancharlton: it does not work for me. it shows stuff in eclipse, and nothing in the console Apr 22 17:43:45 ok enough, i will become a plumber and be happy all my life Apr 22 17:44:09 plumbing intricate networks of shit tubes Apr 22 17:47:13 hi guys, anyone know if it's possible to share a workspace between windows and os X (not simultaneously) without having to update your location of your android sdk every time you switch machines? Apr 22 17:47:47 Or you could use version control. Apr 22 17:48:54 TheTrash: hmm not a bad idea, do you mean that I wouldn't worry about workspaces so much as just pulling the project down each time I switch machines? Apr 22 17:49:00 Yo, anyone worked with BalloonItemizedOverlay?! Apr 22 17:49:18 How do I get a a BalloonTap to link to an activity? Apr 22 17:49:30 anyone have any luck getting bt5 arm on motorola triumph Apr 22 17:49:32 ? Apr 22 17:49:37 Like each Balloon links to a different activity? Apr 22 17:49:58 evancharlton: do yuou know why it cannot work, because the app name is not part of the log string even if you do *:V Apr 22 17:50:12 Does anyone know of any cross platform developer framework (like appcelerator titanium, etc) that supports the Android Open Accessory Development Kit? Or is going pure native the only way? I just wanna build a quick prototype/proof of concept and i'm not very comfortable with native Android Java. Apr 22 17:50:24 hence i get to see nothing Apr 22 17:50:41 it is consistent with the weird concept behind it, and does not let me see the package name of the app Apr 22 17:51:14 evancharlton: https://developer.android.com/guide/developing/tools/adb.html#logcat this details the possible output formats, which does nowhere mention the package name of the app Apr 22 17:51:32 i would actually have to find the PID and filter for that or something likewise idiotic Apr 22 17:51:35 soroca: your package name won't magically get inserted into your string ... ? Apr 22 17:51:41 that's obvious Apr 22 17:51:57 that's why you specify a tag when you actually do the logging Apr 22 17:51:58 evancharlton: of course not, no it is not ovbvious because i want system logs and errors as well, which obviously i do not manually log Apr 22 17:52:26 evancharlton: look, i want exactly the same app specific log that eclipse produces. seems like i have to find out the PID, set the output option to -v pid and then filter for that Apr 22 17:52:48 Eclipse just find the pid from your package name, then shows you that Apr 22 17:53:01 who ever programmed logcat was a real idiot, sorry Apr 22 17:53:16 yes SimonVT, which makes it pretty much unuseable from the cli Apr 22 17:53:29 also the weird explicit *:S is totally idiotic Apr 22 17:53:57 it should have an output option -v package at least Apr 22 17:54:50 your package name is not associated with your log messages Apr 22 17:55:19 you'd have to query the system and try to infer the pid Apr 22 17:55:36 evancharlton: exactly that is the problem, the very obvious use case is wanting a user only see all app specific logs though, denoted by a package name and surely not by a dynamic PID. which is why logcat is stupid Apr 22 17:56:02 i will write google a letter to fire the project lead Apr 22 17:56:12 immediately Apr 22 17:56:12 you do that Apr 22 17:56:19 I'm sure it'll get the attention it deserves Apr 22 17:56:40 of course it will Apr 22 17:56:52 i will write it on $1000 notes Apr 22 17:57:11 it'd better be a long letter, then. Apr 22 17:57:20 the programmer must be fired Apr 22 17:58:06 you're an idiot Apr 22 17:58:27 evancharlton: with that i think you are an idiot and really dont get the problem Apr 22 17:58:46 thats the type of programmer who probably wrote that crap Apr 22 17:59:02 Careful there Apr 22 17:59:16 soroca: if it's so easy, why don't you sack up and submit a patch to adb? Apr 22 17:59:16 attacking any part of google will get you no love Apr 22 17:59:20 Settle down, kids. Before one of you bans the other Apr 22 17:59:26 SimonVT: :) Apr 22 17:59:30 Heh Apr 22 17:59:30 submit a patch to gerrit* Apr 22 17:59:35 no i have enough, he told me i was stupid before when he didnt even understand the syntax, then he didnt even understands the problem by now and says im an idiot Apr 22 17:59:39 raymonddull: the bug isn't with gerrit. Apr 22 17:59:54 although everybody sees how that is the most demanded use case, because everybody uses it in eclipse as well Apr 22 18:00:05 raymonddull: submit a patch for adb to gerrit* (better?) Apr 22 18:00:11 yeah Apr 22 18:00:22 soroca: dude chill out, if ye dont like it, change it Apr 22 18:00:23 evancharlton: it is not easy to output the package name? and you want me to think youre not an idiot? Apr 22 18:00:30 soroca: I'd love to see your numbers for "most-demanded use case". How many data points do you have? Apr 22 18:00:30 ok sorry but this made me angry Apr 22 18:00:46 soroca: be the better man then Apr 22 18:01:03 someone remind me to -b him in a bit Apr 22 18:01:04 Lol Apr 22 18:01:11 I told him ;/ Apr 22 18:01:27 he's just understandably frustrated Apr 22 18:01:39 and needs to chill out for a bit Apr 22 18:01:44 evancharlton: I just got him to chill >.> Apr 22 18:01:54 and realize that it's just logcat. It's not like someone kicked his puppy. Apr 22 18:03:30 evancharlton: Also I have it noted that you are a ninja admin :P Apr 22 18:04:46 PrivateAlpha: I try to stay -o Apr 22 18:04:51 you know, hang out with the people Apr 22 18:06:51 Cool cool but please in future dont go calling people idiots? Its not nice Apr 22 18:07:35 or productive* Apr 22 18:07:57 "this trivial api doesn't work exactly how I expect it to so I'm going to rage for an hour and pretend this is a fireable offense even though it's been explained to me time and time again" Apr 22 18:08:01 * evancharlton shrugs Apr 22 18:08:08 he'll get over it Apr 22 18:10:21 Yeah its true that he was being a bit stupid, but you could have defused him instead of banning him >.> Apr 22 18:11:13 SimonVT: Reading up the chat a bit gave new meaning to "Settle down, kids. Before one of you bans the other" Apr 22 18:11:22 ^_^ Apr 22 18:11:29 Next time you say that I'll shut up fast Apr 22 18:11:30 PrivateAlpha: it's a timeout :) Apr 22 18:11:37 PrivateAlpha: haha Apr 22 18:12:01 evancharlton: you know he'll just rage more Apr 22 18:12:07 nah Apr 22 18:12:24 he got the answer he needed (add *:S) so he'll go do some work and it'll blow over Apr 22 18:12:39 Hopefully Apr 22 18:12:40 instead of spending his time/energy in this infinite loop of IRC rage Apr 22 18:14:04 huh, so how the heck can I debug "classNotFoundException" crash right after application launch? Apr 22 18:14:30 http://bit.ly/JkWutb <- thats me Apr 22 18:14:32 Mavrik: a class didn't get built in correctly, or you're targeting the wrong API level Apr 22 18:14:41 hmmm Apr 22 18:15:03 Mavrik: using eclispe? Apr 22 18:15:04 build checks out, API level as well Apr 22 18:15:16 not to mention I just cloned the repository with version that is already published Apr 22 18:15:19 :\ Apr 22 18:15:21 PrivateAlpha: yeah Apr 22 18:15:25 Mavrik: one of the classes you're using didn't make it into the final dex, though Apr 22 18:15:41 Mavrik: Which class is it trying to find? Apr 22 18:15:44 there's no proguard.cfg either Apr 22 18:15:45 project->clean and see if that helps Apr 22 18:15:46 Mavrik: can you pastebin your stack trace from logcat? Apr 22 18:15:51 ^^ Apr 22 18:16:36 that's the exception: http://pastebin.com/9cP520h4 Apr 22 18:16:47 it's looking for org.prevoz.android.MainActivity Apr 22 18:17:01 and that's the manifest entry: Apr 22 18:17:01 Apr 22 18:17:04 goto androidManifest.xml->Application Tab, check if there is a name(Its the first textfield) Apr 22 18:17:10 is there any GOOD tutorial about making a tilebased in opengl 2.0? Apr 22 18:17:10 OK, and is your package org.prevoz.android ? Apr 22 18:17:10 And what's the package in MainActivity.java? Apr 22 18:17:16 rij: yup Apr 22 18:17:23 as I said - I just cloned a working repository Apr 22 18:17:27 and changed nothing. Apr 22 18:17:37 Is it the same in the Manifest? Apr 22 18:17:43 yes. Apr 22 18:17:46 Well then Apr 22 18:18:05 Project->clean :) Apr 22 18:18:09 I checked pretty much everything of that Apr 22 18:18:20 I even re-cloned the whole repo, switched branches, etc. Apr 22 18:18:41 Mavrik: and you're 10000% sure that MainActivity's package is org.prevoz.android ? Apr 22 18:18:47 yes. Apr 22 18:18:58 I just checked. Apr 22 18:19:03 hm Apr 22 18:19:19 any way to dump list of classes from .dex file? Apr 22 18:19:25 any one have a good beginner tutorial for me? Apr 22 18:19:33 Mavrik: baksmali would be your best bet Apr 22 18:19:35 Heh Apr 22 18:19:39 Mavrik: smali.googlecode.com Apr 22 18:19:40 Found the repo Apr 22 18:19:45 Try renaming lib/ to libs/ Apr 22 18:19:57 SimonVT with the uber haxing Apr 22 18:20:08 lol Apr 22 18:20:22 The google hax Apr 22 18:20:46 ^^ Apr 22 18:20:53 code is public yeah :P Apr 22 18:22:36 i just found another bug in eclipse Apr 22 18:22:50 yeah, so renaming lib to libs worked -_- Apr 22 18:22:58 SimonVT: thanks :) Apr 22 18:23:09 Yeah, so.. Gotta include jar dependencies :p Apr 22 18:23:23 if yuo rename a project and then try to import a project with the former name then eclipse says "Some projects cannot be imported because they already exist in the workspace" and you have to restart eclipse so it recognizes the name change Apr 22 18:23:33 although the project doesnt exist anymore Apr 22 18:23:40 yeah, eclipse is a piece of shit Apr 22 18:23:47 hah ok Apr 22 18:23:52 at least there we agree Apr 22 18:24:06 SimonVT: I guess that is connected to those latest ADT changes with library dependencies Apr 22 18:24:46 Mavrik: Not really. They changed it so it automatically picks up the libs/ folder.. Before that you had to include any jar in your build path Apr 22 18:25:12 hmm, funny thing is I had those included (after all the project actually built OK) Apr 22 18:25:27 Gotta export them as well Apr 22 18:25:28 what do you recommend instead of eclipse? Apr 22 18:25:38 But, libs/ does that automatically Apr 22 18:25:55 ah that :) Apr 22 18:26:24 o m g Apr 22 18:26:56 I just figured out that I dont have to use xml for layouts Apr 22 18:27:10 PrivateAlpha: but you really really really really should Apr 22 18:27:20 +1 Apr 22 18:27:26 evancharlton: Yeah yeah Apr 22 18:27:30 Is this the right way to be doing this, or am I missing an obvious more efficient way? http://pastebin.com/qhXwUjWz Apr 22 18:27:31 if you build layouts in code, you're gonna have a bad time Apr 22 18:27:38 haha Apr 22 18:27:47 how bad of a time? Apr 22 18:27:55 JavaDog: what are you trying to do? Apr 22 18:28:04 That last line there just bothers me Apr 22 18:28:06 JavaDog: as a rule, regex is never the most efficient way to do something. Apr 22 18:28:21 Not that it's regex Apr 22 18:28:44 JavaDog: you could use String.valueOf(...charAt(0)) Apr 22 18:28:48 "Take the first character of a String and convert it back to a String and put it in another String array" Apr 22 18:28:51 JavaDog: but it doesn't much matter Apr 22 18:29:00 JavaDog: .substring(0,1) Apr 22 18:29:07 substring is deprecated Apr 22 18:29:12 wait, what? Apr 22 18:29:21 string.split replaces it Apr 22 18:29:35 Boo Apr 22 18:29:39 http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html#substring(int, int) Apr 22 18:29:42 JavaDog: no it's not? Apr 22 18:30:34 Ah you're right Apr 22 18:30:39 I'm thinking of StringTokenizer Apr 22 18:31:20 yeah Apr 22 18:31:35 Unfortunately I do have to use regexes here, but I'm at least compiling them beforehand Apr 22 18:31:45 but yeah just use .substring(0,1) (though it's probably almost identical to new String(string.charAt(0)) or whatever Apr 22 18:32:04 Eh, saves some space at least Apr 22 18:33:28 In that code I linked, is the match checked on line 2 or line 3? Apr 22 18:33:34 The actual computation Apr 22 18:33:40 hi all Apr 22 18:33:51 I've got a bit of an odd question and I'm not sure where to start looking Apr 22 18:33:52 Hi there Apr 22 18:34:05 JavaDog: probably 2 but I'm not positive. Apr 22 18:34:17 Yeah I'll code with that in mind just in case Apr 22 18:34:20 I'm interested in building a "headless" android-ish system to do some remote video capture stuff Apr 22 18:34:39 What I'd like to find out is what devices are available to use as a base for that sort of design. Apr 22 18:34:53 Sh0rtWave: PandaBoard is a supported ICS platform Apr 22 18:34:56 Like development boards (like say, an MBED) or something along those lines Apr 22 18:34:59 Pandaboard? Apr 22 18:35:10 I seem to recall RaspberryPi works with Android as well Apr 22 18:35:14 Sh0rtWave: pandaboard.org Apr 22 18:35:15 Oh interesting Apr 22 18:35:18 Cooool Apr 22 18:36:02 Hrm Apr 22 18:36:06 Pandaboard's nice Apr 22 18:36:14 tho it might be a bit more than I'm looking for. Apr 22 18:36:17 evancharlton: just don't expect to run some of the higher-end code on Pi Apr 22 18:36:26 (possibly also ruling out Google Chrome) Apr 22 18:36:39 p_l: yeah, for sure Apr 22 18:37:00 morrildl_: hey, we were just talking about pandaboards; those things still work with AOSP, right? Apr 22 18:37:06 cause IIRC v8 is usually only compiled/supported for armv7a Apr 22 18:37:35 yeah, it's also something weak like 700mhz, right? Apr 22 18:37:57 hi all, i have a core java project working on linux/windows, can i port it to android? Apr 22 18:38:11 devish: depends on what APIs you're using. Apr 22 18:38:53 evancharlton: java API? ..i use most of them Apr 22 18:39:41 will it be possible to run it in Android anyhow? Apr 22 18:39:43 So, Pandboard is one alternative, Raspberry PI is another...is there anything worthwhile in between those two? Apr 22 18:39:50 devish: ... most of them? do you know how big the java API is? Apr 22 18:39:56 Sh0rtWave: beagleboard Apr 22 18:40:04 Sh0rtWave: How complicated of a project is this? Apr 22 18:40:20 If you want to save time/money, I'd suggest getting a PIC and a bread board and building out what you need. Apr 22 18:40:26 I intend to build a headless device that I can attach a "programmer" to Apr 22 18:40:32 It's beyond the capabilities of a PIC Apr 22 18:40:33 s/time/learning new functions Apr 22 18:40:36 I was thinking something like an MBED Apr 22 18:40:46 Cortex M8 at least Apr 22 18:40:50 evancharlton: yes...the project has dependency on java API Apr 22 18:40:56 oo Apr 22 18:41:06 Something with some actual teeth. Apr 22 18:41:32 I need to do some live video analytics but I also need low power Apr 22 18:49:21 Hi, I'm having a problem with Japanese i18n Apr 22 18:49:27 https://imgur.com/a/IZdHs Apr 22 18:49:41 With the Japanese translation, the icons and text is kinda off. Apr 22 18:50:12 What are possible resons for that? Note, some text is too long for a single line under the icon. Apr 22 18:55:27 anyone uses taskers here Apr 22 19:01:09 twittergal: taskers? Apr 22 19:02:07 aried3r: the "Settings" one is strange. Can you pastebin your layout XML? Apr 22 19:02:27 hey guys, i'm trying to create a basic app that when a toggle button pressed it makes an image view invisible. i have the onToggleClicked method right but i'm not sure how to call setVisibility. i tried Picture1.setVisibility(v.VISIBLE) but Picture1 isn't found Apr 22 19:09:39 evancharlton: http://paste.pocoo.org/show/tds60fExWbIKOP5kbbWn/ Apr 22 19:09:56 Dashboardlayout is the one from Google I/O App Apr 22 19:10:45 Is-it possible to load a MapView into an AsyncTask? Apr 22 19:11:35 JulienDev: what are you trying to do? because no. Apr 22 19:12:01 evancharlton: In my opinion open a MapActivity is to slow Apr 22 19:12:39 I'd like to open the mapactivity and create the MapView inside a thread or AsyncTask Apr 22 19:13:14 JulienDev: not really possible, or worth the trouble usually Apr 22 19:14:18 ulienDev ur saying opening the activit is taking two long? Apr 22 19:14:21 or loading of tiles? Apr 22 19:14:43 JulienDev: things in a thread don't just magically happen faster Apr 22 19:14:58 okay, so, question Apr 22 19:15:04 Jug6ernaut: I mean opening the activity Apr 22 19:15:09 no magic :( Apr 22 19:15:12 are there no rules at all put on apps based on what they're allowed to call themselves or the icons they're able to use? Apr 22 19:15:28 facebook's update put 2 new icons in my app drawer, one called "Camera" that has a generic camera icon Apr 22 19:15:37 Tommy: Just not allowed to have the same package names Apr 22 19:15:39 looks like a pretty scummy method of getting people to share every picture Apr 22 19:15:45 yeah I was a bit annoyed with that as well Apr 22 19:15:52 JavaDog: i just can't believe facebook would do this and it's shrugged off Apr 22 19:15:53 Yea Julien Dev nothing u can do about that, & like evancharlton said a thread would just make it happen in the background, would still take as long if not longer IF it were possible(which its not) Apr 22 19:16:02 Oh wow, did they? That's pretty shitty of them Apr 22 19:16:05 i now have 2 "Camera" apps in my drawer, neither of which clearly says facebook even after you launch them Apr 22 19:16:16 JavaDog: even after you launch it, GENERIC CAMERA INTERFACE, and automatically shares to facebook. Apr 22 19:16:22 Wow, you're right. I have that too Apr 22 19:16:27 absolutely disgusting Apr 22 19:16:28 any1 wanna compile a kernel module for me?? Apr 22 19:16:41 Let's complain on reddit Apr 22 19:16:48 haha i don't reddit, but good idea Apr 22 19:17:03 (there are actually facebook devs there, frequently asking for feedback) Apr 22 19:17:11 i'm all for giving developers as much freedom as possible, but when they're obviously hiding the identification of their app to benefit from it Apr 22 19:17:12 that's dirty Apr 22 19:17:15 Jug6ernaut: Indeed, my problem is that I'd like to let the user know that something happened. For now, the user start the intent and few seconds after, the Activity is shown Apr 22 19:17:38 JulienDev: present a loading screen first Apr 22 19:18:06 MDijkstra: Yes, I think this is the clue :) Apr 22 19:18:15 Thank you for your help Apr 22 19:18:24 but which device are you testing on? Apr 22 19:18:27 shouldn't be that slow Apr 22 19:18:53 Galaxy S 4.0.4 Apr 22 19:18:54 Expect slowness in the emulators though Apr 22 19:19:05 that's reasonable Apr 22 19:19:08 You shouldn't be having a problem with that Apr 22 19:19:14 aren't you doing stuff before you fire the intent? Apr 22 19:19:47 Nothing, just put an extra integer Apr 22 19:23:12 this is also useful: Apr 22 19:23:13 http://stackoverflow.com/questions/4163335/speed-up-launch-of-activity-containing-mapview-and-extends-mapviewactivity Apr 22 19:23:52 MDijkstra: <3 Apr 22 19:27:04 does anyone know how to properly toggle visibility of images? Apr 22 19:28:21 MDijkstra: Yes, it's better know. I just have to set the good delay before posting :) Apr 22 19:34:09 Okay I'm really confused trying to follow this example http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/List4.html Apr 22 19:34:15 Where does this list actually get populated? Apr 22 19:34:32 I just get an empty page Apr 22 19:35:34 sans serial, is there any way you can debug a physical device as it boots? Apr 22 19:36:13 JavaDog: They use a static list of items Apr 22 19:36:48 so you can see where it hangs and stuff. Apr 22 19:37:16 do you need a serial port or is there some special android sdk tool that gives you this functionality? Apr 22 19:38:03 enthdegree: Does ADB work during boot? Apr 22 19:38:25 connect your phone over usb and run "adb logcat" Apr 22 19:39:01 SimonVT: How do I populate this dynamically, then? I'm not sure where I would do it. Apr 22 19:39:29 How would I create a new intent while destroying the old intent? (so the back button can't go "back" to the previous intent) Or would destroying the spawner intent ("old intent") destroy the new intent? Apr 22 19:39:38 JavaDog, super, I will look into this! thanks Apr 22 19:40:03 enthdegree: Sure :) Apr 22 19:46:13 JavaDog, is it sufficient to simply start adbd on the device very early in the init.rc, then spam the terminal with `adb logcat` until it connects Apr 22 19:46:48 I imagine it will work. Let me try on my phone without changing anything Apr 22 19:48:34 Yeah, no need to change anything Apr 22 19:49:02 I just started it and typed "adb -d logcat" Apr 22 19:49:22 got a -waiting for device- message, and as soon as the boot animation started, I started seeing logs go by Apr 22 19:50:10 (the -d forces it to look for a physical device, which I used because I have an emulator running as well) Apr 22 19:53:26 Does anybody uses eclipse on ubuntu. Sometimes there is no input possible after switching between virtual desktops. Is there something i can change? Apr 22 19:54:13 try pressing ctrl, alt, altgr, etc one by one Apr 22 19:54:19 one of your modifiers is probably getting stuck Apr 22 19:55:17 I never thought it'd be such a pain trying to figure out how to use JNI with C++ :( Apr 22 19:56:02 JavaDog, fabulous thanks for trying that Apr 22 19:56:45 No problem :) Apr 22 19:58:54 Can someone please explain how to properly call setVisibility? i've been looking everywhere and i can't get it to work Apr 22 20:00:40 Is there anyway to program in C++ for android? for opengl Apr 22 20:00:59 bakis: http://developer.android.com/reference/android/view/View.html#setVisibility(int) Apr 22 20:01:04 caioketo: in limited way, with NDK Apr 22 20:01:05 Pass it one of the parameters it tells you Apr 22 20:01:07 View.setVisibility(View.VISIBLE|View.INVISIBLE|View.GONE) Apr 22 20:01:44 caioketo: from 2.3 and up, you can do a whole applicatio in C++, but you're mostly limited to input, networking, graphics and sound Apr 22 20:02:30 I think this is a serious problem I have, speaking of C++ Apr 22 20:02:41 jni/lwio.cpp:4:20: error: iostream: No such file or directory Apr 22 20:02:55 yeah i'm doing exactly that but it won't work.. Apr 22 20:03:00 and here's what triggers the error: #include Apr 22 20:03:13 Eh, who needs iostream anyway Apr 22 20:03:25 it should *find* it in any event, shouldn't it? Apr 22 20:03:41 is there any opengl es 2.0 tutorial with C++? Apr 22 20:03:50 you might have a problem with your include paths, Hiraghm Apr 22 20:04:29 yeah, I think so. Apr 22 20:04:39 since I'm using Cygwin for this, not sure how I can fix it. Apr 22 20:07:20 If the boot animation fails to play does that mean the kernel failed to load Apr 22 20:08:36 enthdegree: #android-root Apr 22 20:08:43 thanks Apr 22 20:09:49 Anyone konw how I can get a ListView not to display an ugly black background when scrolling and remain transparent to its parent? Apr 22 20:14:33 Nevermind, found it Apr 22 20:15:27 enthdegree: boot anim is another program Apr 22 20:16:22 * Hiraghm sighs Apr 22 20:20:45 The notepad tutorial is seriously helpful Apr 22 20:21:01 it makes you understand whats what Apr 22 20:25:07 I'm using onTouchEvent method in GLSurfaceView Apr 22 20:25:59 currently, when I press the screen, there are mutliple presses registred - is there a method that registers one press per press-and-hold? Apr 22 20:26:23 or do I need to make my own check sinceLastPressed? :) Apr 22 20:28:01 I don't know what to set the CPATH variable to :( Apr 22 20:28:19 I installed Cygwin to C:\Cygwin... Apr 22 20:32:33 does anyone know how i can pass more than one argument through publishProgres(); ? Apr 22 20:32:51 i am currently passing a String parameter Apr 22 20:33:05 but i would like to send another parameter Apr 22 20:34:55 erek: Pass an object Apr 22 20:35:00 Make a class that can hold several values, pass that Apr 22 20:35:11 Hiraghm still working on jni? Apr 22 20:35:19 yes Apr 22 20:35:31 it's not finding iostream Apr 22 20:35:42 jni/lwio.cpp:4:20: error: iostream: No such file or directory Apr 22 20:35:47 and here's what triggers the error: #include Apr 22 20:37:43 * Hiraghm sighs Apr 22 20:41:41 this is fcking ridiculous Apr 22 20:43:32 my emulator for api10 only displays a black screen, anybody know a fix? Apr 22 20:43:46 Try hitting the power button? Apr 22 20:44:08 ya but it always displays that Apr 22 20:44:37 I can emulate api15 no problem but anything lower is just a black screen emulated Apr 22 20:45:29 do you guys know how to set specific lengths of text to a color with EditText? Apr 22 20:45:37 instead of just the entire box Apr 22 20:45:40 of text Apr 22 20:47:07 an EditText, or a TextView? Apr 22 20:47:52 erek: If you meant a TextView, follow this example: http://stackoverflow.com/a/1533512/1079597 Apr 22 20:47:57 an* Apr 22 20:48:25 i'm using an edittext Apr 22 20:48:34 should i be using a textview instead? Apr 22 20:48:48 What are you doing with it? EditText if for taking user input Apr 22 20:48:51 Not if you want to edit text Apr 22 20:48:51 is for* Apr 22 20:49:07 well Apr 22 20:49:16 i disabled editing of my one edittext Apr 22 20:49:18 see Apr 22 20:49:18 If he's just displaying text, a TextView is a good choice Apr 22 20:49:28 it's output for my telnet rogram Apr 22 20:49:36 Ah Apr 22 20:50:37 Perhaps this will help? http://stackoverflow.com/questions/3096332/style-edittext-content-on-the-fly Apr 22 20:52:29 What's the best way to get the width and height of a LinearLayout at run-time? Apr 22 20:56:43 is anyone here maintinaing 2 different versions of an app (in version control) … 1 for pre-hc, 2 for hc and above ? Apr 22 20:59:34 if there any way to specify positions and sizes in relative units rather than density-independent units? Apr 22 20:59:42 dlaroche: Add an id to your LinearLayout and get a pointer to it from your program using findViewById(). Then you can use yourLayout.getWidth() and yourLayout.getHeight() Apr 22 20:59:42 if/is Apr 22 21:00:17 mahamoti: Like with a RelativeLayout? Apr 22 21:00:22 The stop(); command for Threads is deprecated, what should I use instead? Apr 22 21:00:36 JavaDog, yeah Apr 22 21:00:55 Well, you could use a RelativeLayout Apr 22 21:02:56 JavaDog: it returns 0 because the layout has been drawn to the screen yet Apr 22 21:02:56 how can I find out where Cygwin is looking for include files? Apr 22 21:03:40 dlaroche: You can't get the width and height before the elements exist Apr 22 21:04:10 in onResume of my activity I am using toolBar.getWidth() and it returns 0 Apr 22 21:05:03 Perhaps you need a static pointer to the View? Apr 22 21:05:21 When the activity is destroyed you lose its current fields' values Apr 22 21:05:24 I give up Apr 22 21:05:29 JavaDog: can you explain please Apr 22 21:05:41 how should I reference it then? Apr 22 21:06:14 static final LinearLayout myLayout = findViewById(R.id.myViewId); Apr 22 21:06:45 Yeah, don't do that Apr 22 21:06:47 JavaDog, basically I want to specify the size and position of ALL ui elements in terms of percentages of the total screen size. it seems that relative layout only lets items be positioned relative to other items but doesnt let you specify relative size, is that right? Apr 22 21:07:21 Look up linearlayouts weight Apr 22 21:07:29 layout_weight Apr 22 21:07:45 Also use margins/padding Apr 22 21:09:31 SimonVT: What were you saying "don't do that" to? Apr 22 21:09:44 Keeping a static reference to a view Apr 22 21:09:58 Why shouldn't you? Apr 22 21:12:11 Cus you'll end up with a reference to your entire activity, keeping everything in memory Apr 22 21:13:01 layout_weight works but only in one dimension...how would I specify a UI element with a layout_height = 50% of screen width? Apr 22 21:13:41 vertical linearlayout Apr 22 21:14:02 I don't believe that's supported by any of the widgets Apr 22 21:14:07 Jug6ernaut, how would you do it? Apr 22 21:14:19 How should dlaroche solve his problem then? Apr 22 21:14:38 well it doesnt seem possible to make a consistent looking UI across various screen sizes without that capability :/ Apr 22 21:15:15 yes, please explain, because I tested out having a static reference, and couldn't even get that to work Apr 22 21:17:03 I guess you can findViewById again Apr 22 21:17:23 You have to find a way to wait until the views are measured Apr 22 21:17:51 Basically, I'm gonna have to create a custom view with code to handle this? Apr 22 21:20:27 I've gotta get some sleep, been up for 24 hours now. Later guys, and good luck Apr 22 21:20:37 thanks Apr 22 21:30:06 if there at least a way to set the width or height relative to the screen size, and make the other parameter determined by a fixed aspect ratio? Apr 22 21:30:10 if/is Apr 22 21:31:02 ie, something that is 50% of screen width wide, and has a 1:2 aspect ratio? Apr 22 21:32:15 or is my only option to forgo xml stylesheets and define everything in terms of pixel coordinates at runtime? Apr 22 21:35:57 I'm creating a new activity using an intent, and in the manifest file, I've set the activity's screenOrientation to landscape, but when I create the activity, it's not landscape? Apr 22 21:36:44 And my launching activity has the same setting and is landscaped Apr 22 21:37:58 Jobo, the layout is horizontal? Apr 22 21:38:06 Nevermind, fixed it now Apr 22 21:38:23 that was quick ;) Apr 22 21:43:53 ((Spannable) console).setSpan(new ForegroundColorSpan(Color.BLACK), 0,arg0[0].length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); Apr 22 21:43:59 what's wrong about that? Apr 22 21:44:10 it seems to crash Apr 22 21:44:32 console is an EditText Apr 22 21:44:45 arg0[0] is a string Apr 22 22:06:46 A repost: Apr 22 22:06:48 I've got a ImageButton on top of a VideoView (For skipping the video). The ImageView drawable is a transparent png. When the video starts playing the transparent png doesn't blend correctly with the movie. Apr 22 22:07:23 Will have to make a sample app regarding this if no-one knows this sort of stuff inside out. Apr 22 22:08:19 "doesn't blend correctly" doesn't tell us anything. Apr 22 22:18:34 i am using org.apache.commons.net.ftp.FTPSClient.connect(host, port) and the problem is i do not get a connection, and i do not get a response. i dont know what happens because i see nothing in the logs or anywhere, can you help? Apr 22 23:05:00 hello, i am using org.apache.commons.net.ftp.FTPSClient.connect(host, port) and the problem is i do not get a connection, and i do not get a response. i dont know what happens because i see nothing in the logs or anywhere, can you help? Apr 22 23:06:13 intraAction: check if you are on real internet connection first? (j/k). If there's nothing in the logs, you probably didn't call it properly. Debug first (add extra logging as well) Apr 22 23:06:14 freecandy: Will get more of a solid example together Apr 22 23:41:42 p_l: the connection is definitely there and the server is running and serving requests from other clients. the problem is that i dont get an exception or any debug info in the logs, just nothing Apr 22 23:42:15 i would love to debug but i get no information at all Apr 22 23:42:31 intraAction: connect the phone to computer and attach a java debugger to your application? Apr 22 23:42:38 you should be able to trace the execution then Apr 22 23:43:34 p_l: what do you mean by java debugger? Apr 22 23:43:42 logcat? i see nothing in logcat Apr 22 23:43:44 ... Apr 22 23:43:47 a debugger Apr 22 23:43:56 the kind you attach to a program Apr 22 23:44:19 p_l: but it is not my program! i use the apache.commons.net lib Apr 22 23:44:25 that is the problem Apr 22 23:45:05 intraAction: is it in *your* program, that you compiled? Apr 22 23:46:45 p_l: do you know the apache commons project? Apr 22 23:46:55 i use the jar in my project Apr 22 23:46:58 as a lib Apr 22 23:47:40 intraAction: then it becomes compiled into your code, to which you can attach a debugger Apr 22 23:48:06 ah, but the debugger cannot tell me anything about it, because there is no code in my project it corresponds to Apr 22 23:48:08 (and even if it was in separate APK, a quick play with some tools and you have it repacked with your debug key) Apr 22 23:48:11 i mean what would it tell me? Apr 22 23:48:22 intraAction: it can trace the execution Apr 22 23:48:25 i cannot set breakpoints or anything Apr 22 23:48:28 ah ok Apr 22 23:48:33 let me try that Apr 22 23:48:43 intraAction: set up a breakpoint before you call the function, then use stepping Apr 22 23:48:54 that means they just discarded exceptions or something? Apr 22 23:48:58 ok Apr 22 23:48:59 you can go till it encounters a native call Apr 22 23:49:01 thanks p_l Apr 22 23:49:21 (and for native calls, there's gdbserver in firmware images, too) Apr 22 23:49:27 it is weird that i dont get an exception, they probably discard it Apr 22 23:49:32 which is bad style Apr 22 23:49:46 by native call you mean call to the linux kernel? Apr 22 23:49:55 intraAction: to any non-DVM code Apr 22 23:50:14 is there other non-DVM code than the linux kernel on an android device? Apr 22 23:50:15 as the java debug interface can't go there Apr 22 23:50:25 intraAction: yes, any native lib Apr 22 23:50:33 p_l: are there many? just out of interest Apr 22 23:50:51 that includes libc, gl, RIL, sound, etc. Apr 22 23:51:12 whats the percentage non-kernel-native/kernel? Apr 22 23:51:21 so for example your resolver might be cooking itself off for some reason Apr 22 23:51:23 100%? 1000% Apr 22 23:51:40 o/ Apr 22 23:51:44 thanks p_l maybe i can find out with that, the resolver would be native? Apr 22 23:51:59 intraAction: hostname resolver is usually native Apr 22 23:52:09 p_l: but i specified an ip Apr 22 23:52:28 intraAction: it probably still goes through gethostbyname Apr 22 23:52:38 which is in a native library written in c? Apr 22 23:52:43 in libc? Apr 22 23:53:10 usually part of libc Apr 22 23:53:16 ok Apr 22 23:53:20 remember, android doesn't use glibc Apr 22 23:53:24 why not? Apr 22 23:53:56 because... it doesn't! Apr 22 23:54:06 no there is a reason for almost everything Apr 22 23:54:07 intraAction: glibc code... isn't nice Apr 22 23:54:19 thanks that is a good reason, so google thought they can do it better Apr 22 23:54:52 p_l: are you from google? Apr 22 23:55:23 ... nearly got in, so not (yet) Apr 22 23:55:28 nice Apr 22 23:55:35 cool Apr 22 23:55:39 did they ask hard questions? Apr 22 23:55:40 and even then, I was applying for SRE/SWE, not normal SWE Apr 22 23:55:51 not necessarily hard... interesting, definitely Apr 22 23:55:57 what do those stand for? Apr 22 23:56:17 software ? engineering Apr 22 23:57:25 SRE = Site Reliability Engineering Apr 22 23:57:34 the sysadmin side of google operations Apr 22 23:57:49 SRE/SWE means you get to tinker with code as well (making sure it scales, fixing bugs etc.) Apr 22 23:59:20 ah interesteing Apr 22 23:59:27 very cool Apr 22 23:59:34 did you study cs? Apr 22 23:59:53 still studying Apr 23 00:00:02 what does SWE stand for? Apr 23 00:00:08 software engineering Apr 23 00:00:13 and the W? Apr 23 00:00:56 intraAction, SoftWare Engineering Apr 23 00:01:12 ive never liekd that Apr 23 00:01:15 it's SE, not SWE Apr 23 00:01:18 oh, thats usually abbreviated as SE and software is written as one word Apr 23 00:01:25 never heard SWE before Apr 23 00:01:28 is it common? Apr 23 00:01:31 yeah canadiancow Apr 23 00:01:34 fairly common Apr 23 00:01:38 ah ok Apr 23 00:01:49 lol Apr 23 00:01:57 actually, it's usually SW, because you have both SW and HW (software and hardware) Apr 23 00:02:14 hm Apr 23 00:02:15 ok Apr 23 00:02:39 p_l: by that logic SRE must be SWRE Apr 23 00:02:47 oh, site :) Apr 23 00:03:07 it is still inconsistent Apr 23 00:03:27 in terms of job titles though? Apr 23 00:03:30 i rarely see SWE Apr 23 00:03:34 yeah Apr 23 00:03:44 i think SA is software architect Apr 23 00:04:12 system architect Apr 23 00:04:27 * drpenguin thinks he tuned in at the right time.. Apr 23 00:04:28 i thnk i have seen the abbreviation SICP before Apr 23 00:04:31 what does it stand for? Apr 23 00:04:41 structure and asdjasidjasdjalsd look it up Apr 23 00:04:45 too long Apr 23 00:04:55 Structure and Interpretation of Computer Programs Apr 23 00:04:55 structured ? comptuer programming Apr 23 00:04:56 here's another one, LMGTFY Apr 23 00:05:04 lol Apr 23 00:05:06 ok Apr 23 00:05:17 I read parts of SICP when learning Scheme Apr 23 00:05:52 p_l: what did they ask you at google? Apr 23 00:06:26 weird questions like "imagine you are a pencil put in a pencil sharpener, how would you save the world?" Apr 23 00:06:34 practical questions related to systems and programming Apr 23 00:06:54 my friend works at google, in Ireland. he ended up in arab search quality and now he's in adsense Apr 23 00:06:59 no riddles and trick questions at all? Apr 23 00:07:08 they used to interview him on the phone, asking about scenarios Apr 23 00:07:31 well does he know arabic? Apr 23 00:07:42 intraAction: riddles get the interviewer a stern talking to Apr 23 00:07:47 well yes he's lebanese Apr 23 00:08:11 p_l: i read that google is famous for its weird interview questions Apr 23 00:08:26 ok Sicp Apr 23 00:08:58 intraAction: that's actually Microsoft.... in 1990 Apr 23 00:09:06 no also google Apr 23 00:09:14 p_l: google "google interview questions" Apr 23 00:09:18 intraAction: because everyone copied them Apr 23 00:09:39 What are some examples of well-done, aesthetic about dialogs? Android doesn't seem to provide anything for default and I can't see examples of nice-looking ones. Apr 23 00:09:49 Google did have such questions at one point... over time, recruitement was overhauled, which includes banning such questions Apr 23 00:10:00 vadi2: just use a webview and a web page Apr 23 00:10:01 I think android design would help there, vadi2 Apr 23 00:10:10 I did look there yesterday - no help Apr 23 00:10:22 intraAction: I don't like how that looks, going of the app to open a webpage Apr 23 00:10:28 p_l: interesting, didnt know Apr 23 00:10:28 or do a label Apr 23 00:10:39 vadi2: it is common and you can easily update it Apr 23 00:10:43 vadi2: anydo(sp?) did it quite nice in their missed call dialog Apr 23 00:10:47 vadi2: menu action shows screen with a label and information with fancy background imaging Apr 23 00:11:08 about just has version and software info right? Apr 23 00:11:26 intraAction: and looks completely out of place, slow, etc. etc. - all not fitting into use of a *dialog* Apr 23 00:11:50 ok maybe it is more fit for a faq or something Apr 23 00:11:52 xbp: Yeah Apr 23 00:12:04 p_l: I'll take a peek Apr 23 00:12:45 johnny law rocks! Apr 23 00:13:01 what a cool app, nothing advanced but good idea Apr 23 00:13:16 where Apr 23 00:13:36 nice Apr 23 00:13:49 i just 5 stared that app. <3 Apr 23 00:14:08 would help, it's 3.7 overall :P Apr 23 00:14:10 i lke where it says for foreigners travelling around the usa not knowing the truth about police here haha Apr 23 00:14:22 ya police 1 star it im sure Apr 23 00:14:24 and it shows you rodney king video? Apr 23 00:14:25 haha Apr 23 00:14:32 how?! Apr 23 00:14:37 i dont see that part Apr 23 00:14:46 yea it's in the "read more" of the description Apr 23 00:15:02 what do you have to push to get the video? Apr 23 00:15:16 the borders of sarcasm Apr 23 00:15:19 lol Apr 23 00:15:28 * xbp gives Sicp a smirk Apr 23 00:15:30 :/ Apr 23 00:15:38 i didn't want to watch that guy get his butt kicked anyways Apr 23 00:15:54 * xbp throws a bronze star at Sicp to save face Apr 23 00:16:08 I'm lebanese and I've seen it Apr 23 00:16:24 that was way back when police couldn't beat people up for no reason Apr 23 00:16:28 oh how the times hav changed haha Apr 23 00:16:47 they had a reason that day if i remember right, he was on drugs Apr 23 00:17:07 out of control.. it was a little before I paid much attention to any news or information outside my bubble Apr 23 00:17:36 lebanese! cool to meet you, i'd like to see the "cedars of lebanon" .. are there still any there? Apr 23 00:17:56 sure yea Apr 23 00:18:10 ought to be looking to see the "women of lebanon" Apr 23 00:18:15 cause fuck the tree Apr 23 00:18:16 +s Apr 23 00:21:27 what does johnny law do? Apr 23 00:21:38 look it up.. Apr 23 00:24:32 Are you giving up your rights due to fear of untrained law enforcement? NO MORE! Apr 23 00:24:35 This application delivers your miranda rights as an American Citizen for use mainly in areas of the country that do not obey the civil liberties of american citizens. Apr 23 00:25:04 These rights are guaranteed to you by your united states citizenship and should be relayed to law enforcement upon any misconduct. Apr 23 00:25:07 lol Apr 23 00:25:11 why are you pasting that here? Apr 23 00:25:16 what if you're not in america ... Apr 23 00:25:18 so you hold it in their face? Apr 23 00:25:37 it just aims to let you know your rights Apr 23 00:25:48 they hold up in court, I presume Apr 23 00:25:49 and you say "just a second officer i have to search this app" Apr 23 00:26:01 "ah there it is, now i have to start it, just a second" Apr 23 00:26:19 "ok now i have to find the right rule for the right context" Apr 23 00:26:20 not the ideal use-case..no Apr 23 00:26:22 intraAction: fun fact - the miranda laws thing exists only in certain states... that are common setting for police dramas Apr 23 00:26:27 I would personally wait until they brought you to an interview room and started asking you questions, because THEN you can say "oh btw, you didnt read me my miranda rights (correctly) and then you get away scott free" Apr 23 00:26:33 p_l: i thought it exists everywhere Apr 23 00:26:38 intraAction: nope Apr 23 00:26:54 iirc it's a minority of the states, if not only one or two Apr 23 00:27:14 "please open the handcuffs again officer becuase i have to pull out my miranda app and read it" Apr 23 00:27:22 you have the fifth amendment Apr 23 00:27:31 "please stop turning me around because i want to invoke a dalvik vm to start my app" Apr 23 00:27:50 ah p_l Apr 23 00:28:12 so the app is basically a joke Apr 23 00:28:21 no.. its not Apr 23 00:28:33 so you would say what i put in quotes? Apr 23 00:28:58 its to inform you, the american citizen, of your rights, but as p_l said not every where relies on the miranda laws, so it would only benefit you in areas that do use em Apr 23 00:29:22 intraAction: it's not. It's just that as someone who isn't american, I actually ended up checking it when I resorted to ban all job offers in USA Apr 23 00:30:43 drpenguin: you have to know your rights by heat is the point, you cannot just say "ok now let me pull out this phone and open a DVM and start my app and learn about my rights and stand in awe of how great this country where the officer is just beating the mobile out of my hand is because initially i wanted to read them to u" Apr 23 00:30:48 heart* Apr 23 00:31:13 intraAction: You wouldnt do that, because then the cop would call you a smart ass and haul you in even faster Apr 23 00:31:28 Obviously, you aren't supposed to use the app WHEN you're getting arrested Apr 23 00:31:42 drpenguin: so what actual use does the app have? you say "wait for me to pull out my rights and read them to you because i dont know them!" ? Apr 23 00:31:56 *sigh* trollers gonna troll Apr 23 00:32:16 srsly this app doesnt make sense to me, every cop would take the phone away and laugh about yuo Apr 23 00:32:22 intraAction: trying to make you learn them, I guess Apr 23 00:32:39 p_l: yeah that is a small use case i acknowledge Apr 23 00:32:57 also, the cops would just pummel the soles of your feet for that, and no matter how you wanted, no lawyer would find enough evidence to get you anything unless they screwed up something Apr 23 00:33:00 but not while a cop is standing next to you Apr 23 00:33:13 lol Apr 23 00:34:09 hint: pummelling soles of the feet is a great way to make the target unable to walk from pain, but not leave signs when he/she is released Apr 23 00:34:54 or tickle the soles Apr 23 00:36:11 intraAction: tickling is too complex, I fear. The people who can do that kind of torture seem to be more often than not the ones harassed by lobby groups, or are in countries with long enough experiences in torture to actually properly ban it Apr 23 00:36:21 lol Apr 23 00:37:09 and actually, the ban on torture is not only for humanitarian reasons Apr 23 00:37:20 but? Apr 23 00:37:36 you get data so faulty you end up an embarrassment on global scale Apr 23 00:37:47 lol Apr 23 00:37:57 because people say everything you want to hear Apr 23 00:38:00 (like the "Iraq has WMDs!" 'evidence', invented by guy who wanted out of torture) Apr 23 00:38:25 anyway, it's not a political channel Apr 23 00:38:40 it is still a global embarrassment Apr 23 00:38:58 and everybody now thinks it was only because of the oil Apr 23 00:39:14 whoa.. when did this turn to politics? Apr 23 00:39:34 drpenguin: stop defending torture! Apr 23 00:39:39 drpenguin: by discussing a politically-loaded app Apr 23 00:41:42 ban us if you want to but i insist on having my lawyer present Apr 23 00:41:59 which is my right, and he wont be here so soon Apr 23 00:42:34 actually, it's not your right in this case Apr 23 00:42:46 what is the icon res for xhdpi Apr 23 00:42:48 but still, it's really off-topic Apr 23 00:42:58 was just joking Apr 23 00:43:02 yay, an ontopic question Apr 23 00:43:03 ... Apr 23 00:46:12 i never understood why eclipse cannot automatically put the activity tag in the manifest Apr 23 00:46:30 why do you have to do it automatically like a stupid machine? Apr 23 00:46:36 err manually* Apr 23 00:48:16 Because when you do a new class, it doesnt check for if its an "activity" and go "zomg its an activity, let me add it in"? Apr 23 00:48:35 Plus, the average developer usually needs to add in extra stuff to the manifest anyway.. Apr 23 00:48:45 drpenguin: it can trivially check for that Apr 23 00:48:51 It can, but it doesnt :P Apr 23 00:50:44 yes, but fair enough Apr 23 00:50:56 do you guys recommend something other than eclipse btw? Apr 23 00:51:15 or is it still the best compromise because it is the officially recommended ide? Apr 23 00:51:49 Theres netbeans, or intellij, or you could just use vim as an editor and compile your projects manually like a boss Apr 23 00:52:04 yeah but do you really recommend one of those? Apr 23 00:52:20 I dont recommend anything Apr 23 00:52:28 do you use eclipse? Apr 23 00:52:35 It doesnt matter what I say you should use, because you may not like it, yeah I do Apr 23 00:53:04 no i mean if you said "i used to use eclipse, then i tried intellij, and man, this is so cool and more productive" i would try it too Apr 23 00:53:27 And like I said, that doesnt mean squat cause you may not like intellij Apr 23 00:54:04 well we are all humans and share the large majority of preferences Apr 23 00:54:25 >_>; did you really just say that Apr 23 00:54:34 there are some variations but it is easy to say, for example, vim is king and emacs is pure shit, and everybody would agree Apr 23 00:54:37 ;) Apr 23 00:55:02 If richard stallman was in here right now, you would be dead Apr 23 00:55:33 no he is old by now and i would just throw a vim book at him Apr 23 00:55:39 *sigh* Apr 23 00:55:52 anyway, will keep using eclipse for the time being Apr 23 00:58:12 try bikeshed editor Apr 23 00:58:13 it's good Apr 23 01:29:01 some shortcuts are more worthy** than others Apr 23 01:39:47 how can i exit the entire app from a random activity? i mean when i press the BACK button on the device it usually jumps back to the calling activity Apr 23 01:39:59 but i want to return to the desktop altogether Apr 23 01:41:24 <[[thufir]]> what do people think about the oracle versus google case? Apr 23 01:42:18 fuck oracle Apr 23 01:43:17 hey btw if the eclipse adb logcat gets somehow disconnected from the device is there a faster way to fix it than restart eclipse? Apr 23 01:43:26 i mean if the logcat view doesnt get updated any more Apr 23 01:44:04 i tried adb kill-server; adb start-server but that didnt help Apr 23 01:46:06 try using adb outside of eclipse? Apr 23 01:46:15 adb kill-server;adb start-server;adb logcat Apr 23 01:47:24 raymonddull: but i want to use it inside eclipse because outside it looks like gray crap on black Apr 23 01:47:35 raymonddull: inside i see colors and can nicely scroll Apr 23 01:47:37 lol Apr 23 01:47:41 then use ddms Apr 23 01:48:05 whats ddms? Apr 23 01:48:11 also a command line crapp? Apr 23 01:48:13 err app Apr 23 01:48:53 adb shell | su | rm -rf /system | reboot Apr 23 01:49:12 myn: careful with jokes like that Apr 23 01:49:15 yeah Apr 23 01:49:19 donut do that :) Apr 23 01:49:31 i just want it to work as it did before Apr 23 01:49:42 DDMS has logcat built in and a command entry Apr 23 01:49:52 whats ddms? Apr 23 01:49:57 the thing i can select from the help menu? Apr 23 01:50:01 no Apr 23 01:50:07 its a perspective in eclipse Apr 23 01:50:12 oh you mean the debugger Apr 23 01:50:19 yeah Apr 23 01:50:22 no that uses the same logcat view anyway Apr 23 01:50:31 what u want todo? Apr 23 01:50:36 that doesnt work, also i dont want to code in the debugger for the rest of my life Apr 23 01:50:48 myn: do you know the logcat view in the coding view of eclipse? at the bottom Apr 23 01:50:55 yeah Apr 23 01:51:10 it somehow disconnect from the device and doesnt show new logs anymore, although the device is still running and adb logcat shows stuff Apr 23 01:51:20 i want to reconnect that view without restarting eclipse Apr 23 01:51:36 does the device list in the device list (top left)? Apr 23 01:52:04 i dont have a device list in the top left of eclipse Apr 23 01:52:08 okay Apr 23 01:52:28 adb kill-server Apr 23 01:52:33 did that Apr 23 01:52:34 then reload eclipse Apr 23 01:52:39 replug in device Apr 23 01:52:44 does the device list in device manager? Apr 23 01:52:54 well if i restart eclipse then it works, i am just trying to find a faster way because restarting eclipse takes some time Apr 23 01:53:06 myn: yes in adb devices the device is still online Apr 23 01:53:09 make sure you are running the latest adb too Apr 23 01:53:15 i am Apr 23 01:53:19 just downloaded it the other day Apr 23 01:53:22 there was a bug where if you had > 40 processes adb would crash Apr 23 01:53:29 okay Apr 23 01:53:33 so you guys didnt encounter that issue regularly before? Apr 23 01:53:36 I had issues with my EVO 3D Apr 23 01:53:37 ah Apr 23 01:53:54 and the issue only occured in Eclipse Apr 23 01:54:06 the device wouldn't be listed and any adb mode would not either Apr 23 01:54:18 GOOG finally fixed it though Apr 23 01:54:28 ok Apr 23 01:56:55 btw do you know what the weird "adb server is out of date. killing..." message means when you start adb shell sometimes? Apr 23 01:56:59 out of date? Apr 23 01:56:59 If I put an app on the market but want someone to get it for free, there's no sort of code/coupon system, is there? Apr 23 01:57:08 i hate adb and eclipse Apr 23 02:02:16 question 1) what does "out of date" mean in the weird adb message "adb server is out of date. killing..." Apr 23 02:02:28 would starting with a kernel patched to target hardware be enough to get some kind of shell ? Apr 23 02:02:34 assuming it can boot Apr 23 02:03:06 borillion: you just want a small linux with shell? Apr 23 02:03:35 arent there better distributions for that? Apr 23 02:04:01 eventually more than that, but as a first step to getting android on the device Apr 23 02:05:04 sorry im not a linux expert Apr 23 02:05:43 but i think the android kernel has only some minor modifications compared to the official linux kernel Apr 23 02:06:00 right Apr 23 02:06:13 borillion: are you a kernel hacker? Apr 23 02:06:14 another option is angstrom to start off with Apr 23 02:06:27 like can you modify and patch a kernel to a target platform? Apr 23 02:06:36 debian Apr 23 02:06:36 no lol, I know some stuff about modules and etc but not a hacker at any level Apr 23 02:06:40 i had debian running on a droid1 Apr 23 02:06:42 <: Apr 23 02:06:53 what is a hacker? Apr 23 02:06:59 Not sure :P Apr 23 02:07:00 the term is used so loosely and now has a bad wrap. Apr 23 02:07:16 "The Ã…ngström distribution is a Linux distribution for a variety of embedded devices. The distribution is the result of a unification of developers from the OpenZaurus, OpenEmbedded, and OpenSIMpad projects." interesting Apr 23 02:07:22 I remember when college taught us that hacking would end us with some big corps and internet sensationism Apr 23 02:07:32 I can apply patches, Make small changes but Im not sure how the entire patching system works Apr 23 02:07:32 binary! Apr 23 02:07:57 file replacement / code replacement / parsing i think for the most part Apr 23 02:08:01 xbp: "kernel hacker" is a common phrase Apr 23 02:08:13 it means people how understand the kernel and how it is programmed and can change it etc Apr 23 02:08:14 kernel hacker = making kernels that aren't supposed to work... WORK. Apr 23 02:08:20 yeah :) Apr 23 02:08:21 roger that Apr 23 02:08:23 <: Apr 23 02:08:31 that's the general def of hacker minus kernel to me Apr 23 02:08:39 LOL, no if it doesn't work Id prolly not know much of what to do Apr 23 02:08:52 but now seeing they're dishing out life sentences for people who "hack" with ill intent im very cautious to use the word Apr 23 02:09:09 but for linux running on android devices, there is debian .. it runs like a vm i think Apr 23 02:09:10 I know how to use menuconfig LOL Apr 23 02:09:12 it's a toaster debian Apr 23 02:09:20 menuconfig .. not sure what that is :/ Apr 23 02:09:50 i think image_bin or something of the sort is what I was using to edit roms Apr 23 02:09:51 hehe debian in a vm on an android Apr 23 02:09:56 pretty impressive Apr 23 02:10:01 ya it worked on my ddroid1 Apr 23 02:10:05 xbp, http://upload.wikimedia.org/wikipedia/en/0/02/Linux-kernel-menuconfig.png Apr 23 02:10:08 i dont even know menuconfig either Apr 23 02:10:11 i did that like in 2010 Apr 23 02:10:49 thats about the most I know Apr 23 02:11:11 oh that menuconfig Apr 23 02:11:45 it probably takes a decade of intense daily study to fully understand the kernel Apr 23 02:25:57 http://www.treasurenet.com/forums/shipwrecks/24356-spanish-shipwrecks-off-oregon-coast-2.html Apr 23 02:28:59 anyone know how long a t-mo prepaid account can be inactive before it's cancelled? Apr 23 02:31:03 canadiancow, call them with and it will tell you its an option in the menu Apr 23 02:31:29 well im in canada, so it wont even register on a network up here Apr 23 02:31:35 but it seems like my account's gone Apr 23 02:33:00 maybe not, can you call their 1800 and talk to someone I think if you give them the number off the sim they can look it up Apr 23 02:33:13 yea i just called and entered my phone number and it says it cant find it Apr 23 02:33:18 i havent used it since...october? Apr 23 02:40:26 when you press the power button long enough, it asks you to mute the phone Apr 23 02:40:30 how can i do that from code? Apr 23 02:40:46 you can probably do it by writing to the system settings.l Apr 23 02:40:53 using SharedPreferences Apr 23 02:40:56 what do you mean? Apr 23 02:41:10 i mean if you didn't get that, you should read on d.android.com about shared preferences and system settings Apr 23 02:41:10 i thought i'd call a function or something Apr 23 02:41:19 oh ok Apr 23 02:41:22 so it is not a function call Apr 23 02:41:23 yeah. you'll use a function that writes a setting :) Apr 23 02:41:23 but a setting Apr 23 02:41:27 ok Apr 23 02:41:35 how did you know i should look there? Apr 23 02:41:44 because I've read the docs before Apr 23 02:42:48 readme: an you give me a link? i googled it and searched on d.android.com but there is no ttutorial Apr 23 02:44:11 ok Apr 23 02:44:21 Oh, trickster build path issues. Apr 23 02:44:26 http://developer.android.com/reference/android/provider/Settings.System.html Apr 23 02:44:45 intraAction: see the VOLUME_* constants Apr 23 02:44:47 great thanks Apr 23 02:45:04 but that is just a class file with incrompehensible method names, not a tutorial Apr 23 02:45:07 but i will try ok Apr 23 02:45:12 Is the libs folder a "special" folder? You'd think that Eclipse would have imported the JAR files into the libs folder, or that something would have caught it on the lint path. Apr 23 02:45:19 intraAction: read the guide on storage Apr 23 02:45:20 Or am I completely mistaken? Apr 23 02:45:39 no, you can call it chicken and it will work the same Apr 23 02:45:50 readme: they all say "This is used internally, changing this value will not change the volume. See AudioManager." Apr 23 02:46:03 oh, well there's your answer Apr 23 02:46:15 http://developer.android.com/reference/android/media/AudioManager.html Apr 23 02:46:19 readme: but i was in audiomanager and i didnt find a mute setting Apr 23 02:46:22 much easier than I thought Apr 23 02:46:26 just some weird ringermode stuff Apr 23 02:46:28 intraAction: maybe mute is just setting all to 0. Apr 23 02:46:46 I see several hits for "mute" on this page. Apr 23 02:46:55 readme: in audiomanager there are not even corresponding values to system.settings Apr 23 02:46:58 setStreamMute Apr 23 02:47:08 readme: what is stream? i want general mute Apr 23 02:47:16 see the STREAM_* constants in the same page Apr 23 02:47:44 ah interesting readme Apr 23 02:47:55 ctrl + f, use it Apr 23 02:48:05 thank you Apr 23 02:48:14 i just ctrl+f'd mute Apr 23 02:48:20 yeah, that's what i did Apr 23 02:48:22 and then didnt know what stream meant Apr 23 02:48:24 then I did the same for "stream" Apr 23 02:48:31 and assumed it mean some video stream or something Apr 23 02:48:33 well, that's where you should have used c-f again Apr 23 02:48:38 fair point Apr 23 02:49:07 Anyone have tips for storing 66 simple objects for use in an array at runtime? Apr 23 02:49:54 Major_Mer: if you are sure it is going to be an array of 66 objects, then just declare a static array of 66 objects. and do it at class-load time. Apr 23 02:50:29 I had done it that way, but I was told it was ugly and that I should look at some sort of resource file. Apr 23 02:50:38 is it strings? Apr 23 02:50:44 Strings and Int. Apr 23 02:51:29 I'm working on a Android app and want to populate a list with this data. Apr 23 02:52:11 you could use arrays.xml Apr 23 02:52:27 look up array in the docs. there is an xml format for it. Apr 23 02:52:43 I was looking at that, but couldn't figure out a) how to store it, and b) how to parse it. Apr 23 02:53:10 if you want to write back to it, then you shouldn't use resources Apr 23 02:53:19 I don't. Apr 23 02:53:27 what do you mean by a.) Apr 23 02:53:50 a) where do I put the XML file? How do I reference it? Apr 23 02:54:47 When I put in in the res structure, Eclipse starts yelling at me. Apr 23 02:54:54 a) values/arrays.xml b) Resources res = context.getResources(); res.get*Array*() Apr 23 02:54:59 http://developer.android.com/reference/android/content/res/Resources.html Apr 23 02:55:04 http://developer.android.com/guide/topics/resources/providing-resources.html Apr 23 02:55:23 is it an array, or is it raw? Apr 23 02:55:34 I'm fairly sure it is an array. Apr 23 02:55:40 readme: did i conclude correclty that the static variable MUTE_STREAMS_AFFECTED is the only way to know whether a stream is curenlty muted? Apr 23 02:55:43 I have 66 objects. Apr 23 02:55:49 They will never change. Apr 23 02:56:27 and presumably "starts yelling at me" is baby talk for "gave me *this* error message, which I didn't understand, but which someone with experience will" Apr 23 02:56:28 and, if i setSTreamMute(S) then is MUTE_STREAMS_AFFECTED updated immediately? Apr 23 02:56:51 I apologize, Leeds. Apr 23 02:56:59 "Determines which streams are affected by mute. The stream type's bit should be set to 1 if it should be muted when a mute request is received." Apr 23 02:57:03 It said that the directory was not valid. Apr 23 02:57:09 directory name, rather. Apr 23 02:57:10 i dont understand what "stream type's bit" means readme Apr 23 02:57:21 and what was the directory name? Apr 23 02:57:25 techData Apr 23 02:57:44 and what lead to you believe that 'techData' was a valid directory name under res/? Apr 23 02:58:02 Eclipse let me right click and create the folder. Apr 23 02:58:10 ah... point-and-drool Apr 23 02:58:13 intraAction: maybe it's a bitmask. i'm googling "android audiomanager example" to find out. Apr 23 02:58:17 rather than reading the fucking manual Apr 23 02:59:26 thanks Apr 23 02:59:32 me too Apr 23 02:59:35 the values in STREAM_* constants don't look like bitmask values, because they're continuous Apr 23 02:59:44 bitmask are usually powers of 2 **** ENDING LOGGING AT Mon Apr 23 02:59:58 2012