**** BEGIN LOGGING AT Sun Feb 05 02:59:59 2012 Feb 05 03:00:08 QubeZ: NetworkInfo ni; ni = cm.getNetworkInfo(ConnectivityManager.TYPE_WIFI); Feb 05 03:00:35 ConnectivityManager cm; cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); Feb 05 03:03:40 [2012-02-04 21:58:52 - All Things Search Card] res/layout/BusinessCard.xml: Invalid file name: must contain only [a-z0-9_.] Feb 05 03:03:55 dunivan: xml must be lowercase Feb 05 03:04:00 ahhh Feb 05 03:04:09 weird..when i change the network state after the activity is loaded, then hit the update status button, it still says disconnected, even though its scanning Feb 05 03:04:13 businesscard.xml then you can use R.layout.businesscard.xml in your onCreate for setContentView Feb 05 03:04:27 ONLY when i recreate the activity by destroying it (turning it over) does it change the status in the textview Feb 05 03:04:31 da fuck Feb 05 03:04:34 this gott abe a bug Feb 05 03:04:54 eoss: you getting the updates ia getDetailedState()? You sure its new info? Feb 05 03:05:08 maybe when you kill the activity and recreate (orientation change), it rescans and then sets the text Feb 05 03:05:15 but its not actively scanning *shrug* Feb 05 03:05:22 never used the getDetailedState() code Feb 05 03:05:46 i can push the button it should update the textview with whatever getDetailedState() returns Feb 05 03:05:52 and its not Feb 05 03:05:58 its giving me old status Feb 05 03:06:06 eoss: maybe its the append, can you just do .setText() instead Feb 05 03:06:14 and see if your buffer is the issue Feb 05 03:06:41 just do a .setText(ni.getDetailedState().toString()); and see if its at least updating that way Feb 05 03:06:57 nope already tried will try again Feb 05 03:08:09 nope same thing =[ Feb 05 03:08:38 that onclicklistener code is not in a thread is it? Feb 05 03:09:11 nope Feb 05 03:09:19 its sitting in oncreate method Feb 05 03:09:52 eoss: i dont understand from yoru declaration of NetworkInfo ni; and ConnectivityManager cm; .... how are you using the cm variable before its intialized to the ConnectivityManager? Feb 05 03:10:45 i just pasted it in backwards because you asked what ni was first Feb 05 03:10:54 then it showed cm and i thought youd ask what that was next =P Feb 05 03:10:58 ahh ok Feb 05 03:11:12 gonna post on google group.. Feb 05 03:11:35 i see someone recommends 'cleaning the eclipse' project.. Feb 05 03:11:48 cleaning is always good when you see weird shit Feb 05 03:12:12 how doy uo clear? Feb 05 03:12:18 Project -> Clean Feb 05 03:12:59 i get this Feb 05 03:13:00 Description Resource Path Location Type Feb 05 03:13:00 The primitive type int of R.layout.businesscard does not have a field xml BusinessCard.java /All Things Search Card/src/all/things/search/card line 11 Java Problem Feb 05 03:13:26 when I define businesscard.xml in oncreate of BusinessCard.java Feb 05 03:13:36 paste your businesscard.xml Feb 05 03:13:41 pastebin Feb 05 03:13:51 and your BusinessCard.java Feb 05 03:14:16 http://pastie.org/private/o7uwrntdtkuhsdjweg4tq Feb 05 03:14:41 is xml Feb 05 03:14:59 http://pastie.org/private/joadcq49zhv1ikyuorw5og is java Feb 05 03:15:25 dunivan: line 11 in java should be setContentView(R.layout.businesscard); Feb 05 03:15:30 you dont need the .xml Feb 05 03:15:49 also, in your TextView you should not use 10pt, use 10sp <-- scale-independent pixel Feb 05 03:15:57 ahh, i make that mistake a lot, are extensions not needed across the board? Feb 05 03:16:17 dunivan: right, even with png's... you use @drawable/blah instead of blah.png Feb 05 03:17:35 ahhh Feb 05 03:17:40 alright, lets try a debug Feb 05 03:25:46 hmm, when i click in simulator it opens debugging Feb 05 03:25:49 but thats it Feb 05 03:26:32 just run it, dont run as debug Feb 05 03:26:56 the green circle with white arrow, not debug Feb 05 03:31:16 when i run it it still gives debug prompt Feb 05 03:31:44 you're using eclipse? Feb 05 03:33:30 yup Feb 05 03:33:39 now it says unfortunately the app has stopped Feb 05 03:33:57 dunivan: look in your logcat and see what errors are showing Feb 05 03:35:39 02-04 22:33:08.209: E/AndroidRuntime(539): android.content.ActivityNotFoundException: Unable to find explicit activity class {all.things.search.card/all.things.search.card.BusinessCard}; have you declared this activity in your AndroidManifest.xml? Feb 05 03:35:52 02-04 22:33:08.209: E/AndroidRuntime(539): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1508) Feb 05 03:35:53 dunivan: you need to define your activity in manifest Feb 05 03:35:59 BusinessCard activity needs to be defined Feb 05 03:36:41 change android:name=".AllThingsSearchCardActivity" Feb 05 03:36:41 to android:name=".BusinessCardActivity Feb 05 03:37:04 no, you need to add another where you defined BusinessCard Feb 05 03:37:18 and no, its name is not BusinessCardActivity, your activity is called BusinessCard Feb 05 03:37:40 are my intent filters right? Feb 05 03:37:40 Feb 05 03:37:41 Feb 05 03:37:41 Feb 05 03:37:51 dunivan: post your entire manifest Feb 05 03:38:07 but not in the channel Feb 05 03:38:09 ... just do it on some pastebin Feb 05 03:38:12 pastebing.com Feb 05 03:38:16 -h Feb 05 03:38:18 -g Feb 05 03:38:19 neekers: ya, we've been working on pastie.org Feb 05 03:38:20 lol Feb 05 03:38:37 http://pastie.org/private/66q0cbj8s2detvt1hvwxmg Feb 05 03:39:12 thanks all in the channel for letting me get help and not flaming me Feb 05 03:39:20 dunivan: remove your intent filter stuff from your BusinessCard activity definition Feb 05 03:39:27 only one activity can be MAIN Feb 05 03:39:30 the last version of this app was essentially a weblauncher Feb 05 03:40:05 dunivan: we're going to start flaming you if you paste more than 3 lines in the channel :P Feb 05 03:40:12 ha ha Feb 05 03:40:31 remove that intent-filter from your .BusinessCard definition there and run again Feb 05 03:40:45 now the @string/app_name, does that just keep all things associated with the app? Feb 05 03:41:12 dunivan: no, that makes the header of your activity say the name of whatever you have app_name set to in your strings.xml Feb 05 03:41:36 its a bar that is at the top of your activity... sometimes depending on the rom, its hidden Feb 05 03:41:37 ohh ok Feb 05 03:43:11 hey guys, I know java by using the console - I'm trying to use methods, and it doesn't seem to be working. Feb 05 03:43:37 Snuupy: thats barely a reasonable question let alone an Android question Feb 05 03:43:38 ... wat? Feb 05 03:43:40 you might need #java Feb 05 03:44:02 QubeZ: my methods work fine in the console - I just can't use it on Andriod. Feb 05 03:44:03 awesome! Feb 05 03:44:04 Android* Feb 05 03:44:11 it worked Feb 05 03:44:29 Snuupy: ummm Feb 05 03:44:34 dunivan: cool! Feb 05 03:44:45 QubeZ: how would I create methods in Android? Feb 05 03:44:55 Snuupy: read d.android.com Feb 05 03:44:59 learn about activities Feb 05 03:45:05 they call it "activities"? Feb 05 03:45:11 now I can apply these same steps to all pages that I want to open with this set intent? Feb 05 03:45:11 you can't just take straight java and make an android app out of it Feb 05 03:45:20 QubeZ: damn, that sucks Feb 05 03:45:48 dunivan: essentially, but you'll learn more as you go and find better ways to design your app etc... Feb 05 03:45:56 have fun with it, read a lot, learn Feb 05 03:46:21 will do! Feb 05 03:46:45 QubeZ: so essentially I have two methods: 1) Main screen, loads the second screen. 2) Second screen, just has two buttons - first does nothing, second goes back to home. Feb 05 03:46:48 how would I do that? Feb 05 03:47:13 Snuupy: thats more than I can explain on IRC. You need to learn about Activity and Intent Feb 05 03:47:25 okay, thanks Feb 05 03:47:31 any links or vids that can teach this? Feb 05 03:47:46 and method in Java is really a function of a class, so not sure why you say you have two methods (Main Screen and 2nd screen). Feb 05 03:47:54 really you should be saying you have two classes Feb 05 03:48:07 or in Android, two activities Feb 05 03:48:16 hmm...that's weird. Feb 05 03:48:48 function within a class i meant Feb 05 03:48:53 how would I clear the screen, and put two buttons there? Feb 05 03:49:13 learn about layouts, Activity and Intent Feb 05 03:49:24 should get your started, read the Notepad tutorial on d.android.com Feb 05 03:49:32 oh man >.< Feb 05 03:49:42 alright, thanks! Feb 05 03:49:48 oh man! reading? oh man! Feb 05 03:50:36 no, I was thinking it would be a bit easier to transition from the console to creating apps. Feb 05 03:50:38 I was wrong. Feb 05 03:50:44 thanks for the info though Feb 05 03:50:58 np, no its not easy to port to a mobile platform Feb 05 03:51:01 you have to learn the API Feb 05 03:51:27 QubeZ: yeah, I just learned that - I have never touched an API before, or developed for mobile devices. Android is my first one. Feb 05 03:51:30 I just started yesterday. Feb 05 03:51:59 Snuupy: you'll learn a lil bit each day, just start with a few tutorials and off you go Feb 05 03:52:09 QubeZ: any tuts you suggest? Feb 05 03:52:22 Snuupy: the mobiletuts site is nice Feb 05 03:52:38 cool, thanks Feb 05 03:53:03 Greetings! Feb 05 03:53:45 If I'd like to "upgrade" and older android 2.2 project to a 4.0.3 - Can I just update that via projects "Android" properties? Feb 05 03:54:06 Is this all that's required, or am I missing something? Feb 05 03:54:28 ...so when is the GSM GNexus getting 4.0.4 ;/ Feb 05 04:07:28 hey, can anyone help me with this? getFromLocationName is returning NPE Feb 05 04:07:29 http://pastebin.com/d0bGChqP Feb 05 04:07:35 line 8 Feb 05 04:09:04 Tricknology: where is addresss defined? Feb 05 04:09:09 List
address; Feb 05 04:09:17 globally Feb 05 04:09:28 just as that Feb 05 04:09:33 not instantized Feb 05 04:10:23 its List
? Feb 05 04:11:03 argh, ApplicationContext... Feb 05 04:12:26 Tricknology: check that gc isn't null Feb 05 04:12:41 yes Feb 05 04:14:09 it is not Feb 05 04:14:26 I am building a cross platform mobile website that is designed to control an embedded systems project. The embedded system controls important components of a living system. So, security is of course very important. I am trying to figure what authentication method to use while offering the best user experience. Feb 05 04:16:07 The mobile site will push commands into a queue that the embedded system will access. So, the site doesn't directly interface with the embedded system. I have full access to a unix based server and that is what the site is hosted on. I am trying to keep away from a) a user having to login everytime they visit the site and b) building an app for each platform. Feb 05 04:17:05 Any suggestions for an authentication flow model that may do what I am trying accomplish? Feb 05 04:17:13 accomplish even. Feb 05 04:17:34 hm. That word looks funny. heh. Feb 05 04:29:28 thanks QubeZ Feb 05 04:29:29 again Feb 05 04:30:16 np bro Feb 05 04:30:22 its always confusing at first but keep at it Feb 05 04:30:32 read alot, some days you just wont get anywhere but keep chugging along Feb 05 04:32:19 dunivan: check out www.todomapr.com Feb 05 04:32:26 Anybody have any thoughts on using crash reporting in a production app? Feb 05 04:32:38 I took ACRA out of my last app before deploying to market, but it might have been nice to get those crash reports. Feb 05 04:32:43 should be coming out next month, I'm going to do a 2 week release of the app to get a small user base to test and give feedback before full release in late march Feb 05 04:32:55 Just didn't want the app to be making network calls to Google, thought it might freak people out. Feb 05 04:32:56 Thoughts? Feb 05 04:32:58 VonRath: i use ACRA and plan to use it in prod Feb 05 04:33:20 VonRath: I let people know its going to report crashes via the first run tutorial screen Feb 05 04:36:05 Huh. Feb 05 04:36:14 Wonder what the general consensus is for crash reporting in production. Feb 05 04:36:24 Seems to me like most people don't use it in production. Feb 05 04:36:34 I dont know why they wouldn't Feb 05 04:40:15 VonRath: why not use the NOTIFICATION option so user's can decide whether they want to upload the crash report with a comment of their own? Feb 05 04:40:34 signed up QubeZ Feb 05 04:40:43 dunivan: thanks :) Feb 05 04:45:35 Has anyone implemented Kerberos authentication on an Android before? Feb 05 04:45:40 anyone here* Feb 05 04:46:51 we're here, just can't field your question Feb 05 04:47:24 I meant to say Has anyone here implemented.... :) Feb 05 05:21:57 hey Feb 05 05:22:48 New to android dev, got a program working but soon as i seperate my function to anther class it wont load in the AVD. I posted the code on a forum http://www.anddev.org/other-coding-problems-f5/newbie-made-a-working-xml-reader-but-classes-dont-work-t60445.html Feb 05 05:23:20 It parses XML... Feb 05 05:25:27 But does it blend? Feb 05 05:26:13 ? Feb 05 05:26:25 It loads up in my AVD then force stop Feb 05 05:26:33 can anyone think of a reason why a sdk 10 app force closes on start-up on 2.3.7? Feb 05 05:26:45 Bennyq: you are extending Activity but you have no onCreate.. not sure if thats the issue Feb 05 05:26:48 logcat can and would be happy to tell you Feb 05 05:27:00 Bennyq: why do you extend activity in this class? Feb 05 05:27:14 XMLParse should be a nice Utility class and doesn't need to be part of the UI Feb 05 05:27:38 you should have it parse and feed the data back to your calling method in your real activity Feb 05 05:27:41 then do something with that data Feb 05 05:28:02 QubeZ, thanks for ur help thats what i want to do but unsure how.. Feb 05 05:28:30 do i need a onCreate for every class? Feb 05 05:28:52 any class that extends Activity would have an entry point of onCreate but since you dont have one...im sure it just dies Feb 05 05:29:03 first, do not extend Activity in your XML parsing class Feb 05 05:29:10 you dont need it i dont think so, based on what you are using here Feb 05 05:29:38 remove the textview, you can just send the data back to your calling activity and setText on your TextView in there instead Feb 05 05:29:38 okay Feb 05 05:29:52 ohhhh Feb 05 05:30:31 have doXML return a String which will be returning whatever getEventsFromAnXML returned Feb 05 05:30:53 ie: your second method returns something, then your first method returns that back to your calling method in your first (and only) Activity Feb 05 05:31:11 okay just trying this now Feb 05 05:31:25 probably better way to do it than return it twice like that but you can improve it once its working Feb 05 05:34:31 JakeWharton - its only on the device, it launches fine on emulator Feb 05 05:37:37 If i remove extend activity I can no longer get "private String getEventsFromAnXML(Activity activity)" working Feb 05 05:38:53 pass the context from your actual Activity and use that context in there Feb 05 05:39:05 just dont extend Activity in your class Feb 05 05:39:08 in this class Feb 05 05:41:54 Thanks for helping, but could you put it in layman terms not too sure what you mean Feb 05 05:42:15 ok in your XML parsing class, 2nd class, remove the "extends Activity" part from that class Feb 05 05:42:54 Bennyq, don't use anddev.org .. Feb 05 05:43:08 yeah did that Feb 05 05:43:10 now you have that 2nd method returning some String buffer to your first method... so make your first method return String back to your other Activity class (first class) calling this Feb 05 05:43:40 yeah did that Feb 05 05:43:56 doXML needs to return String as well and return the stringXmlContent.. make sure your first class that is actually exending Activity... gets that data Feb 05 05:44:12 try compiling that Feb 05 05:44:24 i did return getEventsFromAnXML(this).toString(); Feb 05 05:44:55 Bennyq: let me rewrite this for you Feb 05 05:45:00 okay Feb 05 05:45:03 thankyou Feb 05 05:45:19 Bennyq: did you learn that from a tutorial? Feb 05 05:45:26 if so, can you share that with me Feb 05 05:45:27 ? Feb 05 05:45:38 yeah i can, ill find the html Feb 05 05:47:14 Bennyq: try this http://pastie.org/3319659 Feb 05 05:47:16 BUT... Feb 05 05:47:24 yeh Feb 05 05:47:26 from your other class, make sure you call the method doXML(this); Feb 05 05:47:29 or whatever your context is Feb 05 05:47:30 dunivan, i got the tutorial from http://www.ziddu.com/download/9531954/AndroidXmlResource_files_100421a.zip.html Feb 05 05:47:33 so you can pass that context Feb 05 05:47:41 ok one sec Feb 05 05:48:19 ie: XMLParse.doXML(YOUR_CONTEXT); // call this from the other class Feb 05 05:48:39 i've been working on NAS and Android all day, so im a bit screwy Feb 05 05:48:41 hope that works Feb 05 05:48:45 just wrote that code in the pastebin lol Feb 05 05:49:15 make sure to do a organize imports in Eclipse Feb 05 05:49:27 forgot what windows key shortcut is but make sure it imports the proper classes Feb 05 05:50:28 Context cannot be resolved to a type Feb 05 05:50:42 imports Feb 05 05:50:46 organize your imports Feb 05 05:50:50 k Feb 05 05:54:15 brb Feb 05 05:54:42 still says doXML must return type of string Feb 05 05:55:49 okay i just put return ""; in the catch Feb 05 05:56:01 oh ya, i didn't mess with the catch Feb 05 05:56:06 ok good Feb 05 05:56:30 right because it will try that and if there is an exception it needs to return something... at the very bottom of the doXML you can just do return null Feb 05 05:56:40 then check for null later to ensure you have data Feb 05 05:57:08 http://pastie.org/3319659 Feb 05 05:57:10 ah yeah thanks Feb 05 05:58:19 i.e. in your calling method: if (XMLParse.doXML(this) != null) { // not null here so handle the data } Feb 05 05:58:39 yep thanks heaps Feb 05 05:58:43 hey folks, anyone familiar with how to fix a debug cert being expired? i can't run my app on an AVD cause it's catching this as an error Feb 05 05:58:49 Bennyq: working? Feb 05 05:58:57 my avd is slow, ill let u know Feb 05 05:58:57 if it is, please close out your post on anddev Feb 05 05:59:03 okay Feb 05 05:59:14 badz2363: create a new one Feb 05 05:59:44 delete the current one and create a new one Feb 05 06:01:04 anyone know the low-down about patenting apps? Feb 05 06:01:24 say ive developed the next twitter.. should i patent that? Feb 05 06:01:36 is twitter patented so that no other services like that can exist? Feb 05 06:01:42 QubeZ: thanks, unfortunately I wrote a hello world app over a year ago and I'm just trying to pick this up again now. I'm not sure where the cert lives or how to create a new one. Feb 05 06:01:58 badz2363: google on "create debug cert android" Feb 05 06:02:00 badz2636 get keytool Feb 05 06:02:18 Tricknology: you can patent unique ideas and need to go to the USPTO (patent and trademark office) site Feb 05 06:02:29 I"m actually going through the trademark process now, but never did patent Feb 05 06:02:41 you have to demonstrate the unique idea and document it Feb 05 06:02:41 youll use that to make the cert for when you export Feb 05 06:02:49 its pretty unique Feb 05 06:03:00 but it inherits other aspects of things that have been invented previously Feb 05 06:03:05 but it puts them together in e anovel way Feb 05 06:03:17 than thats not patentable Feb 05 06:03:30 well.. what i mean is that it does something unique Feb 05 06:03:48 but like social networking.. you cant patent that Feb 05 06:03:54 read up on the requirements for patents... from what I've read, what you have is not patentable Feb 05 06:04:04 i have, its fuzzy Feb 05 06:04:25 there is nothing like it though Feb 05 06:04:31 its specific enough Feb 05 06:05:16 badz2363: i have a link for you Feb 05 06:05:19 QubeZ; Fixed, should i just delete my post on anddev? Feb 05 06:05:33 Bennyq: just respond to it and state that you got it resolved and how it was resolved Feb 05 06:05:45 thanks QubeZ and Tricknology. i found where it was and eclipse seems to have generated a new one for me Feb 05 06:05:51 i hate reading responses to posts like "oh its fixed, thanks"... help others by posting how it was fixed Feb 05 06:05:51 badz2363: this has worked the best for me http://www.buzztouch.com/resources/Obtaining_a_Google_Maps_API_Key_v1.0.pdf Feb 05 06:06:06 thanks Tricknology! Feb 05 06:06:14 you may have to go into .android and follow the directions for debug.keystore Feb 05 06:06:26 i did it in mac osx Feb 05 06:06:43 windows should be similar Feb 05 06:06:54 if you cant find .android then its hidden Feb 05 06:07:16 Tricknology: he said that Eclipse re-generated the debug.keystore Feb 05 06:07:23 ooh, didn't catch that Feb 05 06:07:37 but you can get the md5 again and get a new api code by following those directions Feb 05 06:07:43 yep. i found the bad one, blew it away and eclipse gen'd a new one Feb 05 06:07:47 just did it today actually Feb 05 06:08:02 ok, well i hope that link is what you're looking for :) Feb 05 06:08:21 took me 2-3 hours to find that lol, never used maps api in debug before Feb 05 06:09:23 SimonVT, i can't figure out this stupid action mode close button problem Feb 05 06:10:03 the code is exactly the same as 4.0.3 Feb 05 06:10:21 has to be some kind of problem with the animation Feb 05 06:13:05 and i found a bug in the platform :) Feb 05 06:13:28 if (count > 0) { Feb 05 06:13:28 for (int i = 0; i < 0; i++) { Feb 05 06:15:54 anyone have experience with ant XPathTask? Feb 05 06:15:59 or XPath expressions? Feb 05 06:17:15 xpath Feb 05 06:17:16 a bit Feb 05 06:17:23 only from selenium testing webapps though Feb 05 06:21:55 does exporting an unsigned apk make a debug apk Feb 05 06:22:16 dunivan yes Feb 05 06:22:23 thanks t0mless Feb 05 06:22:48 t0mless: really? I thought you had to set the debuggable=yes flag in manifest to do that? Feb 05 06:23:05 pretty sure eclipse does it for you Feb 05 06:23:16 unsigned apk can't be published to the Market either dunivan Feb 05 06:23:28 infact I think the build.xml for ant in the tools/ does it for you Feb 05 06:23:28 t0mless: gotcha Feb 05 06:23:33 right, not market ready Feb 05 06:24:16 ugh headache Feb 05 06:24:29 must of had too much tea Feb 05 06:24:34 ... or too little.... Feb 05 06:25:12 nvm about the XPath JakeWharton, I figured it out Feb 05 06:25:41 come solve my problems then Feb 05 06:25:51 head hurts -_- Feb 05 06:26:43 i go to install it and it says application not installed Feb 05 06:27:32 what reason does it give? Feb 05 06:27:52 none, i hit install and it says application not installed Feb 05 06:28:06 im going to wipe cache and retry Feb 05 06:28:09 you mean you pushed the apk onto the device then opened it? Feb 05 06:28:14 use adb to install it Feb 05 06:28:21 it will give you fail reasons Feb 05 06:28:24 and/or check logcat Feb 05 06:28:34 i sent it to myself in email Feb 05 06:28:40 lol Feb 05 06:28:41 why Feb 05 06:28:49 to see if it works Feb 05 06:28:51 connect device, use eclipse/adb to install Feb 05 06:30:33 can I do setprop adb.tcpip.port on a terminal emulator on my device if it's not rooted? Feb 05 06:30:38 will it take? Feb 05 06:31:52 seems not... but the adb tcpip command works Feb 05 06:31:52 so whatev's Feb 05 06:32:42 changing all my DB code to use ContentProvider to accomodoate HC and ICS is such a pain in the ass Feb 05 06:32:44 i can't believe the amount of shit to change Feb 05 06:39:15 this ~/Desktop/androidsdk/platform-tools/adb install ~/Desktop/All Things Search Card.apk Feb 05 06:39:18 gives Feb 05 06:39:28 too many files specified; only takes APK file and verifier file Feb 05 06:39:32 How do i parse this exact xml string from android? 1 Feb 05 06:39:32 using adb wireless Feb 05 06:39:45 dunivan: you need to not have spaces in your apk Feb 05 06:40:15 not sure why you named your project with spaces Feb 05 06:40:34 bad idea generally, use underscores to separate... are you in Linux/OSX? Feb 05 06:41:00 Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES] Feb 05 06:41:09 can I change that in eclipse? Feb 05 06:41:19 huh, apparently it didn't sign it Feb 05 06:41:24 with export unsigned Feb 05 06:41:29 Tried a few examples but don't work,or wasn't a similar xml format Feb 05 06:41:30 so I lied Feb 05 06:41:39 build with ant! Feb 05 06:41:47 or just install it with exclipse Feb 05 06:41:54 by clicking the green GO button Feb 05 06:42:07 QubeZ: can I refactor the app name to get rid of the spaces? Feb 05 06:42:17 do what t0mless suggested first Feb 05 06:42:21 just install via Eclipse Feb 05 06:42:31 apk name can be whatever you want Feb 05 06:42:37 doesn't have to be the same as your app name Feb 05 06:42:47 you can rename your apk to installthisshit.apk Feb 05 06:42:53 I thought he was having issues because of the spaces at the command line, he wasn't escaping them so maybe it thought it was "too many files" Feb 05 06:42:53 and it would work Feb 05 06:44:24 i am not seeing a green go button Feb 05 06:44:34 green button with white arrow Feb 05 06:44:38 next to the debug button usually Feb 05 06:44:58 Anyone has any idea how to parse this string from android? 1 Feb 05 06:45:08 Zenix11: is it in preferences? Feb 05 06:45:10 it looks like a play button Feb 05 06:46:00 Hi, I get lots of java related build errors while building android.. Error are http://pastebin.com/f6WASPqj.. any clue to resolve them? Feb 05 06:46:15 No,its a xml format string from a webservice Feb 05 06:46:29 I need to get the value inside Feb 05 06:46:29 xc0ffee you have jdk installed? Feb 05 06:46:36 awesome! Feb 05 06:46:44 thanks t0mless and QubeZ Feb 05 06:46:51 np Feb 05 06:46:59 t0mless, yes.. I have java version "1.6.0_30" Feb 05 06:47:21 protip - don't have you're galaxy nexus charging (in debug mode) off you're computer's usb when you're trying to deploy an app to an AVD Feb 05 06:47:25 would the root linear layout height being fit to parent make content non-scrollable? Feb 05 06:47:28 i just found that out the hard way lol Feb 05 06:47:29 t0mless, building on 64 bit one iric ubuntu.. Feb 05 06:47:39 badz2363: ? Feb 05 06:47:58 dunivan: no, just set ScrollView outside of the LinearLayout and all the linearlayout contents will scroll Feb 05 06:47:59 galaxy nexus is too big for me, ill stick with my S 4g Feb 05 06:48:14 * p_l|backup would love the GN, but no money Feb 05 06:48:20 eclipse was having a very difficult time figuring out where to deploy to for some reason. i was trying to manually start the AVD and the app just wasnt getting over to it Feb 05 06:48:22 badz2363 oooooor just learn how to target devices with adb Feb 05 06:48:40 you just have to edit your run config then Feb 05 06:48:45 to either ask you what device to go to Feb 05 06:48:51 or tell it to use emulator always Feb 05 06:49:44 i just didnt even think that my phone would show up as a possible device, but AOKP i guess defaults your phone to debug mode Feb 05 06:49:54 How do i parse this exact xml string from android? 1 Feb 05 06:50:01 does id of scrollview need to match anything? Feb 05 06:50:08 Zenix11: read up on XML parser libs Feb 05 06:50:14 Linux 3.3 Will Let You Boot Into Android: Greg-KH http://www.linuxtoday.com/news_story.php3?ltsn=2012-02-05-001-41-IN-KN Feb 05 06:50:18 Pretty dang cool Feb 05 06:50:20 lol @ badz2363 Feb 05 06:50:46 dunivan: not really, just wrap LinearLayout with ScrollVIew and it'll just scroll Feb 05 06:50:55 galaxy nexus is too big until you have one Feb 05 06:50:57 I tried some like XmlPullParser,DOM,SAX but none of the examples/tutorials were in the xml format similar as mine Feb 05 06:51:04 then everything else is small and feels like a toy Feb 05 06:51:07 JakeWharton: thats what I thought about Razr too Feb 05 06:51:14 bought that the first day because it was just too nice Feb 05 06:51:25 i love my car dock Feb 05 06:51:35 same Feb 05 06:51:40 had to get it from London Feb 05 06:52:18 i was an OG Droid to G-Nex guy. id never go back to such a small screen. i also love how a dual core lte device is still slimmer than the OG Feb 05 06:52:23 I have been trying to find the pinout on my tablets pdmi. viewsonic gtablet Feb 05 06:52:57 damn i wish i didn't have to write a ContentProvider to support my DB operations in HC or ICS Feb 05 06:53:14 I used .requery() in places and need to get away from that but no way around it at the moment Feb 05 06:53:41 i was hoping it would just work for my initial release so ics users can use my app then I can work on moving to content provider + cursor loader in next release Feb 05 06:53:48 anyone know a way to make it work? Feb 05 06:53:52 QubeZ: trying to convert an app for ICS? Feb 05 06:54:11 ya but guessing there is a huge design guide now to adhere to Feb 05 06:55:46 ya actually i dont care about honeycomb, i just want my app to work with ICS Feb 05 06:56:05 why do you have to make it a content provider? Feb 05 06:56:42 apparently the new way is to use content provider to expose your DB operations using cursorloader to make DB operations in the bg and not on UI like it was in older Android Feb 05 06:56:50 but for some reason, my app just crashes on ICS Feb 05 06:57:00 i'll have to get the actual logs out... loading up my ICS emu Feb 05 06:57:19 huh... I use a db but don't use a cursorloader Feb 05 06:57:31 use asynctaskloader which does get info from my db Feb 05 06:57:43 let me check what my prob is Feb 05 06:57:48 but delivers a different object Feb 05 06:58:03 cusorloader has to be done with content providers? Feb 05 06:58:18 yes Feb 05 06:58:27 hey, I'm going to start compiling android from source tomorrow Feb 05 06:58:29 how do I hide the gray card name item? Feb 05 06:58:30 any advice? Feb 05 06:58:34 balls Feb 05 06:58:59 I was going to use cursorloaders for my listviews Feb 05 06:59:02 why exactly do people compile android from source? Feb 05 06:59:03 but fuck it Feb 05 06:59:30 ya i wanted to also because its so much better/faster... but have to write alot of code Feb 05 07:00:03 I'll get my 2.0 out with HC/Tablet support and ABS, and fragments Feb 05 07:00:17 then I'll covert over to a cursor loader later Feb 05 07:00:30 I have no fucking clue how content providers work to be totally honest Feb 05 07:01:36 they're not that difficult actually and kinda make sense... you can make them private too so only implement them for your app/DB operations but its still rewrite of alot of what I do and I'm 1 1/2 months from release. Feb 05 07:01:40 so I dont want to touch my code base Feb 05 07:01:43 just bug fixes Feb 05 07:01:47 would this do it: android:theme="@android:style/Theme.NoTitleBar"? Feb 05 07:01:58 ya Feb 05 07:02:08 test it Feb 05 07:02:19 don't do that on 3.0+ please Feb 05 07:02:26 unless you know what you're doing Feb 05 07:04:42 hello, how root LG Optimus One P500 2.3.3 from OSX ? Feb 05 07:04:55 this channel won't help you with that Feb 05 07:05:47 ics emu is god damn slow Feb 05 07:06:17 it's fast on my laptop and at work Feb 05 07:07:01 awesome, it did it! Feb 05 07:07:30 diimdeep: try #android-root Feb 05 07:07:40 JakeWharton: how do you get rid of the titlebar in 3.0? Feb 05 07:07:45 dunivan: ty Feb 05 07:07:50 the same way Feb 05 07:07:56 but i like my action bar Feb 05 07:08:02 Action bars are the shit. Feb 05 07:08:30 JakeWharton: i'll start playign with your lib once I have a need for actionbar's in my app Feb 05 07:08:39 You don't use menus? Feb 05 07:08:43 once the web service is up and users can share... actionbar! Feb 05 07:08:54 RMapZero: yes Menu, bottom of the app Feb 05 07:09:08 i dont use anything at the top besides buttons ala iOS Feb 05 07:09:11 yeah well on 3.0+ we prefer the menu in the action bar and not some dumb compat menu Feb 05 07:09:19 Yeah. Feb 05 07:09:27 3.0 guidelines are pretty explicit about that. Feb 05 07:09:28 which is why you should only disable the title bar on pre-3.0 Feb 05 07:09:35 JakeWharton: make sense Feb 05 07:09:38 otherwise you're whacking our action bar Feb 05 07:09:55 Yeah, 3.0+ is so beautiful when used. Feb 05 07:10:06 Somehow when the 3 dots move to the bottom it's just hideous. Feb 05 07:10:10 ya i'd actually like to get away from the old menu system because its much cleaner to have a drop down or rows of choices rather than the More (annoying) button Feb 05 07:10:17 I dont agree Feb 05 07:10:22 I think 3.0 was kinda a joke Feb 05 07:10:30 I wish they would just pretend like it never existed Feb 05 07:10:35 I actually don't know what 3.0 looked like. Feb 05 07:10:39 I went 2.3.3 to 4.0.3 Feb 05 07:10:48 I fucking love ICS. Feb 05 07:10:49 no one cares about 3.0 Feb 05 07:11:00 we're just talking abotu 3.0+ arch wise Feb 05 07:11:07 3.0 was legit because it brought about some sweet new APIs Feb 05 07:11:21 but it's market share will never be anything (thankfully) Feb 05 07:11:25 *its Feb 05 07:12:07 there was just a lot of shit tht was broke Feb 05 07:12:13 lots of bugs in the fragment crap Feb 05 07:14:27 how hard (1-10) to create a GUI item that i would use to swipe left/right that has like a list of graphics swinging around Feb 05 07:21:02 swinging around? Feb 05 07:22:13 ya my code is crashing on ics emu near the requestUpdates where I am requesting updates from the network. Even when I turn on wife and gps (mock) and send values Feb 05 07:22:21 how do I define autolink color? Feb 05 07:22:23 maps shows on ics just fine with my mock values and i can surf the net Feb 05 07:22:35 dunivan: you gotta look at the API docs, start using that Feb 05 07:28:31 these? Feb 05 07:28:35 http://developer.android.com/guide/index.html Feb 05 07:28:44 that entire site, reference it Feb 05 07:34:26 Will do Feb 05 07:34:35 i am spent though time to hit the sack Feb 05 07:34:43 thanks all for the help! Feb 05 07:39:10 My galaxy nexus seems to cache the app icon of my app. How is this cache cleaned? Feb 05 07:39:28 make clean? Feb 05 07:39:37 shouldnt be changing the icon of your app all that often Feb 05 07:39:55 make clean? Feb 05 07:40:07 eclipse: project->clean Feb 05 07:40:11 ( antitree ): ant clean Feb 05 07:40:15 dammit Feb 05 07:40:22 sorry antitree Feb 05 07:40:54 I've done a project clean from eclipse. Feb 05 07:40:58 Restarted the phone. Feb 05 07:41:10 The emulator shows correct icon and if I unpack the apk I see the resource. Feb 05 07:41:22 * t0mless shrugs Feb 05 07:41:26 uninstall from phone Feb 05 07:41:37 and re-install Feb 05 07:42:02 my app keeps crashing where I am trying to get network info on ICS emu Feb 05 07:42:11 i enabled all location services and get to the net just fine Feb 05 07:42:19 even sent mock coords which load in Maps Feb 05 07:42:22 ideas? Feb 05 07:45:25 t0mless: yeah I've done that as well. Feb 05 07:45:48 really odd. Feb 05 07:45:58 make sure you're not installing a wrong apk? doesn't make sense that it would cache the icon Feb 05 07:46:19 especially after doing a clean uninstall Feb 05 07:47:30 I know. Doesn't make sense to me either. It really is the right apk. I changed the version in AndroidManifest and it is now reporting itself with the new version. Feb 05 07:47:51 Still the old icon. I have removed the old icon from all drawable folders. Feb 05 07:51:14 ah Feb 05 07:51:15 got it. Feb 05 07:51:32 my mistake, not too surprised. Feb 05 07:52:12 missed the xhdpi folder which obviously is used by my galaxy nexus Feb 05 07:55:32 god damn it Feb 05 07:55:40 I think there is a very real chance I got aspbergers Feb 05 07:56:16 worst name for a diesease ever Feb 05 07:57:08 haha Feb 05 07:59:39 ok, head hurts, time to go to bed Feb 05 07:59:42 later nerds **** BEGIN LOGGING AT Sun Feb 05 08:38:10 2012 Feb 05 08:46:51 How do i parse 1 in Android? Would i need to format it to proper XML? Feb 05 08:47:57 Im ursing pullparser, GetName() works, how do i get attributes of a node returned cant seem to figure it out Feb 05 09:05:41 JakeWharton, done with ABS 4.0? Feb 05 09:09:09 is there a program to make quick simple apps? Feb 05 09:17:37 Anyone knows how to parse this to XML? 1 Feb 05 09:45:57 http://stackoverflow.com/q/9145338/860212 Anyone know anything about this? :-( Feb 05 09:57:49 Anyone knows how to parse this to XML? 1 Feb 05 09:59:13 Zenix11: that *is* XML Feb 05 09:59:35 proper, even Feb 05 10:00:14 p_1|backup : Yeah it is,but i have issues parsing it and getting the values out Feb 05 10:01:33 Zenix11: ... since I haven't slept lately, I'm very tempted to tell you to relearn XML parsing, but I'll try to help Feb 05 10:02:03 is that the root? Feb 05 10:02:37 I know its proper XML,but..I can't get the value out after trying tutorials/examples Feb 05 10:03:17 =/ Feb 05 10:05:09 query with XPath //int/text() is one option... Feb 05 10:08:15 Something like xpath.evaluate(//int/text() ,inputSource)? Feb 05 10:09:12 yes, of course put the xpath expression into string Feb 05 10:09:28 that will pull *all* "int" elements' text Feb 05 10:10:14 so do something like if(nodes != null && nodes.getLength() > 0) to loop? Feb 05 10:10:41 yeah Feb 05 10:11:09 hmm i'll give it a try and post back results here Feb 05 10:11:23 mind you, I hate XML with the fury of thousand's suns, and I haven't slept in a while, so doublecheck everything Feb 05 10:11:49 *thousands Feb 05 10:12:08 yeah i will Feb 05 10:41:45 Anyone knows how do i convert an ArrayList to string? Feb 05 10:41:55 Zenix11: Ehm.... define convert! Feb 05 10:42:31 Zenix11: What do you want to do with the String that its converted to? Feb 05 10:43:15 n20: it would be used to verify if it contains 1 or 0,for login purposes Feb 05 10:44:17 Zenix11: I'm not sure I follow. Could you provide some PSEUDO? Feb 05 10:45:59 n20 : Hmm like,if (string.contains("1") then you'll login Feb 05 10:46:34 has anyone used c2dm here? i still can't get my head around it Feb 05 10:48:27 hey guys Feb 05 11:26:00 When i loop through my elements to get the values inside,the result i get's blank though,with no values in arraylist.Anyone care to take a look at my codes to see what's wrong? Feb 05 11:26:44 link ir Feb 05 11:38:13 hi! i'd like to change my current input method (between MessageEase and Wifi Keyboard, to be exact) in a script, by changing a variable or some such way. (i'm only using tasker, but i think this is the place to go for such specific questions.) how would I do that? i.e. ow can i find out the variable's name and what setting it should have for each option? Feb 05 11:38:34 (android 2.2.2) Feb 05 11:46:43 i just realized i have swype installed by default on the galaxy Feb 05 11:47:23 swype sucks, get MessageEase Feb 05 11:47:29 I tried swype on my OG EVO but never liked it much. Are there pros to it? Feb 05 11:47:39 why is Message ease better? Feb 05 11:48:07 sounds like an anal lube "MessageEase" Feb 05 11:48:44 gyscis: Do you use Swype, or any alternative messaging/keyboard interface? Feb 05 11:49:15 it has only the nine most used letters in a grid, and you select less common ones by swipin outwards from them. i e the E is in the middle, and you select g by swiping to the lower left. Feb 05 11:49:40 makes for 100% accuracy as you cant miss any buttons and dont need autocorrect or suggestions Feb 05 11:49:59 so you get really proficient at 'Wheel of Fortune'? Feb 05 11:50:07 exactly :P Feb 05 11:50:30 billdollar, you were asking me ? Feb 05 11:50:34 I'd like to see Sayjak versus the field. Feb 05 11:50:40 just the room Feb 05 11:51:02 wow, you can adress everyone in the room ? Feb 05 11:51:16 oh, you did it manually <_< Feb 05 11:51:45 I'm looking to do the first step of Augmented Reality ; I'd like to locate the camera position in the environment Feb 05 11:51:51 some of my friends use voice recognition messaging software, I've just used diffent keyboards, love the ICS keyboard Feb 05 11:51:59 locate the camera position? Feb 05 11:52:08 in referance to the space around the userr? Feb 05 11:52:14 yeah Feb 05 11:52:17 I thought I'd use some Epipolar geometry Feb 05 11:52:29 so how do you make the camera tell depth? Feb 05 11:52:35 Several images Feb 05 11:52:40 light measure? Feb 05 11:52:43 no need Feb 05 11:52:56 so you set up the play area with a panaramic camera? Feb 05 11:53:06 ? Feb 05 11:53:13 No, I'd just use the camera and have it move around Feb 05 11:53:20 the different point of views should be enough Feb 05 11:53:20 like the .apk would measure light valiue based on predetermined defaults of how it does it Feb 05 11:53:35 but it needs to find matching point between images Feb 05 11:53:39 oh like the FPS that uses Google Mapos? Feb 05 11:53:40 and it also needs objects not to move Feb 05 11:53:53 So maybe that's not so practical Feb 05 11:53:56 why can't objets be virtual? Feb 05 11:54:02 That's why I was wondering how AR are doing it Feb 05 11:54:19 make it a sni[er site Feb 05 11:54:19 sniper Feb 05 11:54:19 I... don't understand your questions. I think there's a quiproquo here Feb 05 11:54:29 AR? Feb 05 11:54:39 Augmented Reality Feb 05 11:54:44 quiproquo...let me wiki that Feb 05 11:54:54 that's what we're talking about...I'm with you Feb 05 11:55:13 Quid pro quo :p Feb 05 11:55:14 but you can only augment reality through the eye of the phone IMO Feb 05 11:55:23 I don't want to really augment it Feb 05 11:55:34 Basically, I want to touch a point on the camera, and know the 3D position of it Feb 05 11:56:15 For that, I'd have to map the environment in 3D and know the phone's location Feb 05 11:56:21 so the point must remain stationary. Use a common object to calibrate? Feb 05 11:56:25 without a 3D camera, it's possible with epipolar geometry for instance Feb 05 11:56:36 Is that what your trying to figure out or the actual programmig? Feb 05 11:56:51 No, I'm looking for a general method Feb 05 11:57:20 common objuect...like an apple or an egg Feb 05 11:57:32 To what purpose ? Feb 05 11:57:42 If the environment is stationnary, I don't need it Feb 05 11:58:09 I can directly find the positions of the camera from two slightly different point of views Feb 05 11:58:26 And then do it again with some optimisations for the next point of views Feb 05 11:59:00 But if an object is moving, then the two point of views will not be coherent Feb 05 11:59:09 I'm trying to draw a bitmap on a canvas that is overlayed on a camera's SurfaceView as show in this tutorial http://imrannazar.com/Augmented-Reality-with-the-Android-NDK:-Part-2 ... But the drawing only happens on the left most pixel column and the rest of the view is not touched for some reason ... anyone ? Feb 05 11:59:10 It will think the object is very far, or very near Feb 05 11:59:18 shown* Feb 05 11:59:21 there's a general determined size and shape for eggs, so if you'd place it in a room it'd give you a relation to depth of the "augmented reality" so you could use a 3D enviroment... Feb 05 11:59:37 ping pong balls what ever Feb 05 11:59:54 I think I'm off base for what your trying to maop Feb 05 12:00:01 But it'd only work for the object's depth, wouldn't it ? Feb 05 12:00:15 Not the rest of the image Feb 05 12:00:53 Well, since the environment will most likely be a plane - the floor, maybe I could use 3 objects and find the plane equation from there Feb 05 12:01:14 Idk, the device could determine depth from relation to the position of the common object and a predefined "augmented reality" (or the actual space for the AG instance) Feb 05 12:01:49 from relation...in relation. Feb 05 12:02:02 does that idea come across clearly? Feb 05 12:02:24 the relation to the position of the common object will most likely be a pixel vector Feb 05 12:02:40 so it's not a 3d vector, it doesn't give depth or real position information Feb 05 12:02:50 unless I assume it's in the same height-plane Feb 05 12:03:19 http://youtu.be/Jd3-eiid-Uw Feb 05 12:03:25 I thought of this Feb 05 12:04:18 Not the theory, the video...but think of the screen of the device as the WiiMote Feb 05 12:04:23 lol, wiimote is cheating Feb 05 12:04:33 it's using two cameras and IR for easy detections Feb 05 12:05:29 two cameras remove the issue with moving objects Feb 05 12:05:46 since the two points of views are in the same instant, hence objects are in the same position Feb 05 12:07:07 is it cheating though? do any devices have IR anyway? Feb 05 12:07:10 i don't think so. Feb 05 12:07:15 :-p Feb 05 12:07:47 ? Feb 05 12:08:00 ... so I can't use devices. That's the conclusion ? <_< Feb 05 12:08:11 i don't see why not? Feb 05 12:08:25 I thought ICS could support usb periphrials Feb 05 12:08:36 lol I really really don't think I understand you Feb 05 12:09:26 being able to attach (sp) periphrials to a device Feb 05 12:09:40 yeah, i understood the last sentence, thanks :p Feb 05 12:09:55 but what's it to do with the subject ? Feb 05 12:10:08 idk, I'm trying to help you think of idea Feb 05 12:10:11 Does anyone have a solution for my bitmap drawing problem :( ? Feb 05 12:10:14 lol thanks :) Feb 05 12:12:14 CVirus: not really, I haven't even started to use code, I would think it's a parameter definition Feb 05 12:13:50 gyscos: yes, mayeb you just have to expiriance the AG in a predefined area Feb 05 12:13:58 billdollar: what do you mean by parameter definition ? Feb 05 12:13:59 maybe expirence Feb 05 12:15:03 I'd think that I have misdefined or left the area to create the bitmap undefined Feb 05 12:15:20 hmm Feb 05 12:15:28 ...did I hear a 9'3r in there? Feb 05 12:15:36 niner Feb 05 12:21:23 gyscos: AR in a predefined (default) space. User defined AR is "built" through calibration exercises that build the realm of interaction. Companion apps take advantage of user defined database. Common objects with universal shape can be defined with a barcode scan. Feb 05 12:23:20 Which UI widget would you use to mimic the functionality of iOS's contacts app, notably: the search box at the top of a ListView of contacts, displayed only if you pull down to reveal it. Feb 05 12:25:01 robottinosino: idk Feb 05 12:26:35 A database cursor adapter will easily give you the ListView contents but how to add a custom widget at the top of the list, contained in the scrolling window? Feb 05 12:26:45 hi all! I'm trying to load a page by using HttpClient, but it is not fully loaded. Why? Feb 05 12:27:13 thanks Feb 05 12:32:40 I have further elaborated on myy question above (switching current input method on a rooted android 2.2.2) in this place: http://www.linuxquestions.org/questions/showthread.php?p=4594263#post4594263 . if anyone can answer my questions, here, there, or by query, i'd be very grateful. Feb 05 12:34:23 hey, say i have a project that i'm trying to use as a library to another project, every time the library references one of it's resources (eg R.raw.beep), it can't find it (from the context of my project) Feb 05 12:34:28 what do i do about this? Feb 05 12:36:22 hey guys, i want to generate an email with the Intent.ACTION_SEND intent, ...anyone has an idea how i can make a new line? (like
w/ html) Feb 05 12:37:10 doesn't \n work? Feb 05 12:41:39 didn't try it yet.. it probably will, do you know any list on how to format strings efficiently (for emails o.O) like... bold / italic and stuff like that? Feb 05 12:42:50 XML tags work Feb 05 12:42:55 , etc Feb 05 12:43:21 (I think) Feb 05 12:43:49 ok, tried it with \n now... that works Feb 05 12:43:55 now trying the xml tags Feb 05 12:43:58 I'm fairly sure you need to do Html.fromHtml( to get those processed properly though Feb 05 12:44:34 i need some help with my LG Optimus 3d who can help me ? i am having problem rooting v21b Feb 05 12:44:53 yeaeh Feb 05 12:44:53 thanks Feb 05 12:44:57 works really well Feb 05 12:45:15 ..hmm... if tables are working too? hehe i can't imagine it, but let's try Feb 05 12:47:29 i need some help with my LG Optimus 3d who can help me ? i am having problem with rooting v21b Feb 05 12:47:51 Laguna-NL: I think you'll have better luck in #android-root Feb 05 12:48:10 eclaesson 10x Feb 05 12:49:08 Aeefire: generally you send two copies of the message, one with raw text and one with html Feb 05 12:49:29 in the same email Feb 05 12:49:59 get up some spam from your inbox and look at the source of the email Feb 05 12:51:31 i don't want to create an email client if you mean that.. i just want to generate a message (which needs to be formatted a bit) and then hand it over to the user's email client Feb 05 12:52:32 i get what you're trying to do Feb 05 12:53:05 in the email, your content is split up into two parts Feb 05 12:53:11 hang on i'll do a pastie with a simple example Feb 05 12:53:55 hehe maybe I'll get what you mean then Feb 05 12:54:42 http://www.pastie.org/3321154 Feb 05 12:55:07 ya Feb 05 12:55:12 mail source Feb 05 12:55:52 ahh you mean i might want to set the newMail.setType("plain/text"); to html? Feb 05 12:56:03 text/html Feb 05 12:56:18 heh, yeah i don't know the android library for that but i'd assume it would be something like that Feb 05 12:56:35 worth a try Feb 05 12:58:17 hey why do i always get the damn @Override errors, i'm using 1.7 version of the compiler Feb 05 12:58:26 narf doesn't work this way... Feb 05 12:59:09 what does the api say about setType? Feb 05 12:59:52 Set an explicit MIME data type. This is used to create intents that only specify a type and not data, for example to indicate the type of data to return. This method automatically clears any data that was previously set by setData(Uri). Feb 05 13:01:02 hmm, well if you check the source of the mail that's being sent (on the receiving end) and compare it with some proper html email you should be able to figure what's going wrong Feb 05 13:01:04 hmm, the email is usually a mime multipart alternative, with the most favored form as the last Feb 05 13:01:13 so the mail should be a text/plain followed by text/html multipart afair Feb 05 13:02:14 it's also possible to recursively contain multiparts, a guy wanting to send files and alternative starts with a multipart/mixed holding a part which is multipart/alternative and has the text+html pieces, then the rest of the multiparts is the attachments Feb 05 13:07:32 тут кто-нибудь по русски говорит? Feb 05 13:07:54 whoa, never seen that in an irc channel before! Feb 05 13:08:44 я не понимаю, Россия Feb 05 13:08:52 )) Feb 05 13:09:32 erdos:hi all! I'm trying to load a page by using HttpClient, but it is not fully loaded. Why? Feb 05 13:11:03 However, thanks guys.. I think I'll get along with the Html.fromHtml() ; Feb 05 13:11:28 i'm very new at android, but i would think that if some of the page is coming up you're doing it right, make sure you're allowing javascript and stuff like that Feb 05 13:12:31 httpclient doesn't imply using webview Feb 05 13:12:51 but who knows, we probably need to see code to understand where reading the http response stream might go wrong Feb 05 13:13:23 public String getHtml() throws ClientProtocolException, IOException Feb 05 13:13:23 { Feb 05 13:13:23 HttpClient httpClient = new DefaultHttpClient(); Feb 05 13:13:23 HttpContext localContext = new BasicHttpContext(); Feb 05 13:13:23 HttpGet httpGet = new HttpGet("http://habrahabr.ru/blogs/android/101154/"); Feb 05 13:13:23 HttpResponse response = httpClient.execute(httpGet, localContext); Feb 05 13:13:23 String result = ""; Feb 05 13:13:24 Feb 05 13:13:24 Feb 05 13:13:25 BufferedReader reader = new BufferedReader( Feb 05 13:13:25 new InputStreamReader( Feb 05 13:13:26 response.getEntity().getContent() Feb 05 13:14:08 pastebin.com plz Feb 05 13:14:12 this is bad form. No pasting in channels. Feb 05 13:14:28 alankila: How can I show you my code? Feb 05 13:14:40 as they said, pastebin.com... Feb 05 13:14:44 slavabulgakov : http://pastebin.com/ Feb 05 13:14:53 in any case this looks like you are not using response handlers, so you're using httpclient poorly Feb 05 13:15:01 whats the best way to setting View params such as padding, programatically to a dip value? Something with TypedValue? Feb 05 13:16:10 slavabulgakov: also see EntityUtils.toString(Entity) Feb 05 13:16:30 mrenouf: Convert dp to px, then set Feb 05 13:17:04 getResources().getDisplayMetrics().density * dp = px Feb 05 13:17:06 alankila: http://pastebin.com/7pkiUSrw Feb 05 13:17:13 SimonVT, oh, just multiply... ok Feb 05 13:19:01 slavabulgakov: ok. Try to use EntityUtils.toString(response.getEntity()), and use ResponseHandler for httpClient.execute(). I don't see anything wrong with this code other than that it's cumbersome and may risk not releasing the http connection back to the httpclient's pool Feb 05 13:19:25 although you are making a new httpclient per request (an antipattern) Feb 05 13:19:51 alankila: I used this http://stackoverflow.com/questions/3479833/is-it-possible-to-get-the-html-code-from-webview example. result is the same Feb 05 13:20:00 if you think the response is still partially read, I have no explanation why that would be. In fact I don't have explanation for right now either. Feb 05 13:20:19 also, what the hell is up with TextView.setMinWidth vs. View.setMinimumWidth ? Feb 05 13:21:07 slavabulgakov: if you really used that, why did you not use the answer's ResponseHandler + EntityUtils.toString() ? Feb 05 13:37:26 hmm Feb 05 13:37:33 anyone had problem with IDEA and ABS? Feb 05 13:37:39 IDEA refuses to build R.java for it :\ Feb 05 13:39:41 uarghhh one more problem: I want all _ID s which get returned by a cursor (from an SQLite database) into a string-array.... no idea how to do that Feb 05 13:39:42 O.o Feb 05 13:40:42 Mavrik: IDEA? Feb 05 13:40:56 IntelliJ IDEA yeah :) Feb 05 13:41:37 why you dont use eclipse? :P Feb 05 13:42:22 because planets are in the wrong alignment. How's that helping? Feb 05 13:42:59 anyway, the solution is to manually add Android facet, force IDE building and then force-rebuilding R.java Feb 05 13:57:10 is there a standard way to open an app in the background, for instance by passing a kind of argument to it? i.e. i do not want it to open its interface (it is a server), just do its normal startup routine (start server, wait for connections) Feb 05 14:00:16 service Feb 05 14:02:20 to be clear, i want someone elses app to start in the background Feb 05 14:02:25 still service? Feb 05 14:02:39 needs to go in a script Feb 05 14:03:21 in background? Feb 05 14:03:35 you can make an intent, if his app "listens for intents" Feb 05 14:03:56 how would i find that out? Feb 05 14:04:06 sorry, i'm very, very new to this Feb 05 14:05:31 probably contact the developer of the app Feb 05 14:05:34 or what app do you mean? Feb 05 14:05:38 which* Feb 05 14:05:42 pikaro: then you need to read the application fundamentals and lifestyle stuff Feb 05 14:06:09 what server are you trying to start? Feb 05 14:06:27 sshdroid Feb 05 14:10:19 on tablets, is there no notificationbar? cant se one in my emulator with ics Feb 05 14:11:00 jakob|: no, it's integrated with the bottom (button/clock/etc) bar Feb 05 14:11:32 Leeds: oh, hmm, i'll se if I find it then Feb 05 14:16:42 Leeds: do you know how to access it in the emulator? Feb 05 14:16:50 cant find no shortcutkey Feb 05 14:16:52 tap on the clock? Feb 05 14:17:05 there is no clock? Feb 05 14:17:14 what is there? Feb 05 14:17:23 Leeds !!! Feb 05 14:17:32 how much on your admob account??? :D Feb 05 14:17:45 nothing really, just the ::: button Feb 05 14:17:48 there's a payout being processed! Feb 05 14:18:18 to my bankdetails ? Feb 05 14:18:39 jakob|: you're in the launcher? Feb 05 14:19:12 Leeds: yes ii am Feb 05 14:19:28 inflation eats our money faster than paypal processes transactions Feb 05 14:20:59 The clock is in the lower right corner.. That's what's brings up the notification bar Feb 05 14:21:54 Guys I am looking at http://developer.android.com/resources/tutorials/notepad/notepad-ex3.html and I dont uderstand why they started activity NoteEdit by using startActivityForResult(i, ACTIVITY_CREATE); I am especiialy courious about second parameter Feb 05 14:22:00 then they have inside of onActivityResult only - >< super.onActivityResult(requestCode, resultCode, intent); and filldata Feb 05 14:22:06 whats point of that? Feb 05 14:22:44 i though you use startActivityForResult when you need to know result of activity and you want to do something specially whicch does not seem like this case Feb 05 14:28:39 You use startActivityForResult when you want to know the result, or just generally want to do something when returning from an activity Feb 05 14:28:51 The second parameter is the request code Feb 05 14:29:33 SimonVT: so why did they used like that did? dont see them doing anything with result.. Feb 05 14:29:51 if I had to guess, I'd say they're going to use it later in the tutorial Feb 05 14:30:49 You said they were doing fillData in onActivityResult.. So they want to do something when returning from an Activity Feb 05 14:36:02 SimonVT: ou yeah makes sense but they are not using Activity create code , that is also returned i guess isn't it? Feb 05 14:36:19 It's returned, yea Feb 05 14:36:50 But you're not required to use it. Maybe they just know that in all cases, fillData is the only thing that should happen Feb 05 14:39:04 SimonVT: ok that confused me a little ok thx Feb 05 14:42:01 has anyone ran into a problem where calling GLSurfaceView.requestRender() does nothing? Feb 05 14:43:54 or rather, does nothing when called from a separate thread, even though the whole point is that you can call it from a separate thread Feb 05 15:05:52 hello everyone! Feb 05 15:06:46 http://code.google.com/p/android/issues/detail?id=8889 ... that's nice.. an hour lost Feb 05 15:07:12 I am new to android development and I try to do something specific with a ListView, I'm asking for some advices Feb 05 15:08:28 I have a ListView that displays entries coming from a SQLite database via Cursors. I display the entries by using my own Adapter and each entry is made of: a text that must be clickable and an image that must be clickable Feb 05 15:08:50 my question is: how can I determine if I click on the text or on the image? Feb 05 15:09:19 I put a OnItemClickListener but it detects the click on the entire row and do no difference between the text and the image Feb 05 15:09:27 any idea? Feb 05 15:09:40 You have to set an OnClickListener on each seperate view in your adapter, and not use OnItemClickListener on the listview Feb 05 15:09:51 aaah that's what I suspected... Feb 05 15:10:04 ok then, thank you for the advice! Feb 05 15:17:42 hm, is it expected that on ICS, the ABS light action bar has no theming? Feb 05 15:34:00 Hello Feb 05 15:34:04 How can I enable WiFi in Android Virtual Device? Feb 05 15:34:09 I need it for app which use only wifi to transfer data... Feb 05 15:37:02 How can I emulate Android device with WiFi connection? Feb 05 15:50:16 how to use redex to indicate any characters? Feb 05 15:51:15 slavabulgakov redex? do you mean regex? Feb 05 15:51:38 ArGGu^^: yes Feb 05 15:52:07 well dot matches any character except new line Feb 05 15:54:07 ArGGu^^: like this: "
.
"? Feb 05 15:54:49 that only match one character Feb 05 15:55:15 ".+" example matches one or more Feb 05 15:55:34 ".*" zore or more Feb 05 15:55:38 *zero Feb 05 16:04:04 ArGGu^^:thanks! Feb 05 16:04:11 np Feb 05 16:11:04 ArGGu^^: not working Feb 05 16:14:14 ArGGu^^: and how do with new line? Feb 05 16:18:10 hey, what to the icons next to API version mean in launch app dialog? Feb 05 16:20:00 huh? Feb 05 16:24:09 SimonVT, eclipse launch dialog thows icons next to "Target" Feb 05 16:24:18 red cross, green tick and a yellow exclamation mark Feb 05 16:24:26 Oh Feb 05 16:25:02 Probably has to do with whether the API is supported by your app (minSdkVersion, etc) ? Feb 05 16:28:26 hmm Feb 05 16:49:24 Is there any Android emulator for PC which support virtual WiFi in simulated Android? Feb 05 17:01:21 slavabulgakov well the new line could work with "(.|\r\n|\r|\n)" Feb 05 17:02:25 and "
.+
" example matches to "
example
" Feb 05 17:02:47 please don't tell me you're using regexp to parse xml :) ? Feb 05 17:02:55 if it does not match there is new line in the string Feb 05 17:07:57 * Codhisattva would like to find a dev partner to port a game to the NDK Feb 05 17:08:08 No me ;) Feb 05 17:08:23 port to unity and go ;) Feb 05 17:08:25 err Feb 05 17:08:29 maybe not an option Feb 05 17:08:58 Codhisattva: I have decided we are the only 2 people up in the world right now! Feb 05 17:09:04 not sure if I can port to Unity Feb 05 17:09:24 I believe you are correct. everyone else is in the kitchen making nachos for the superbowl Feb 05 17:09:38 oh I just heard that was today.. Feb 05 17:09:42 heh Feb 05 17:09:49 TheNerdBunny ;) Feb 05 17:10:09 Football is just one of the boring sports I can think of watching ever Feb 05 17:10:16 slow and loud. Feb 05 17:10:23 slightly better than baseball Feb 05 17:10:42 I was ttrying to decided which I liked least Feb 05 17:10:52 Hey a great baseball game is where nothing happens! Feb 05 17:11:01 BTW I like playing sports... Feb 05 17:11:04 but watcing uggg Feb 05 17:11:19 Make an exception for olympics etc Feb 05 17:11:52 * TheBunny is reading about cities to move to for future jobs! Feb 05 17:12:12 superbowl? sounds delicious Feb 05 17:12:49 can I just bitblt into a Unity screen buffer from a bunch of C code? Feb 05 17:14:20 That I have no idea Feb 05 17:14:27 I kind of doubt it Feb 05 17:14:37 tough they are pushing the whole plug in system more Feb 05 17:15:49 Still arn't you porting old old code Feb 05 17:15:54 that really needs the NDK Feb 05 17:17:47 yeah old C for the game engine and video codec Feb 05 17:18:05 at least it's portable and I'm sure it will fly in the NDK Feb 05 17:18:12 IM sure it will Feb 05 17:18:26 THis is what Rudy was helping with? Feb 05 17:18:31 no Feb 05 17:18:34 oh ok Feb 05 17:18:44 that was a stupid OS X bug :/ Feb 05 17:19:01 no I meant same app / code base? Feb 05 17:19:01 he found it in 5 mins. I was stumped for days. jerk. Feb 05 17:19:05 LOL Feb 05 17:19:08 yeah I know :) Feb 05 17:19:10 yeah mostly Feb 05 17:19:11 hey guys Feb 05 17:19:20 some times another set of eyes is wort a million Feb 05 17:19:24 yup Feb 05 17:19:27 * TheBunny so are naps Feb 05 17:19:35 esp with OpenGL mystery magic Feb 05 17:19:36 good morning sileni Feb 05 17:19:49 NDK is such a beast to debug unfortunately Feb 05 17:20:08 tho I bet you could package a copy of gdb server in your assets and launch it as the first thing Feb 05 17:20:10 hi Feb 05 17:20:13 Im porting a game I wrote in 1995-1998 now Feb 05 17:20:16 to SDL / GL Feb 05 17:20:19 its intersting Feb 05 17:20:23 that's cool Feb 05 17:20:28 tho I think IM throwing out 1/2 the code base Feb 05 17:20:33 I've got a large server backend I didn't want to fork Feb 05 17:20:33 things are just simpler now Feb 05 17:20:36 If i want a RESTful api, and my site is supposed to give info on what states we support and the city in each state we support. Should i have something like www.hostname.com/state (returns states we support) www.hostname.com/city (returns cities we support) , www.hostname.com/specificstate (returns citys in specific state we support) ? Feb 05 17:20:40 so i wrapped it all in a java thread and call main() :P Feb 05 17:20:59 TheBunny: do you freelance time? Feb 05 17:21:11 some times Feb 05 17:21:19 hmm Feb 05 17:21:23 TheBunny: good morning mr.bunny! Feb 05 17:21:24 time it limited remember my day job? Feb 05 17:21:25 fortunately all the other comms w/ my backend were already local tcp, so i don't have to mess with the android UI from ndk at all Feb 05 17:21:29 at work we do server.mycompany.com/RETURNTYPE/request/params Feb 05 17:21:33 where returntype is xml or json Feb 05 17:21:41 TheBunny: yeah stupid day jobs Feb 05 17:21:49 storkme: response intended for me ? Feb 05 17:21:59 Codhisattva: http://chrisdillman.com/ Feb 05 17:22:01 blah blah Feb 05 17:22:11 I did an ios contract this last month honestly Feb 05 17:22:14 yeah sileni Feb 05 17:22:39 MMO is ported at work and things are slowing down for me and Im cleaning that all up and helping set up testing teams. Feb 05 17:22:54 So in a month I might be down to just maintaining Feb 05 17:23:01 and we don't launch for a long long time... Feb 05 17:23:06 whew Feb 05 17:23:08 storkme: ok, so something like www.hostname.com/xml/state Feb 05 17:23:29 big gap between code complete and launch? lengthy beta? Feb 05 17:23:44 i guess so sileni Feb 05 17:23:45 all .... Feb 05 17:23:51 Engine and tools done Feb 05 17:23:59 so you have a few years of content and tuning Feb 05 17:24:07 ah yeah that stuff Feb 05 17:24:08 whew Feb 05 17:24:09 and then you have a LOT beta of like 6 monnths Feb 05 17:24:16 that slowly lets in the public etc Feb 05 17:24:34 in the end you open the MMO up to a huge amount of players before launch Feb 05 17:24:41 cause you hope they will buy. Feb 05 17:24:47 SO I spent a year porting to amc Feb 05 17:24:49 mac Feb 05 17:25:00 and then 6 months clean / optimizeing etc Feb 05 17:25:17 and now Well I just kindof sit back while the rest of the company finishes the project Feb 05 17:25:26 Its just I have a weird job... Feb 05 17:27:01 Codhisattva: so yeah I might have time for non rush contracting Feb 05 17:42:50 hello! Feb 05 17:46:53 I a class that extends LinearLayout. This class contains an ImageView with an OnClickListener on it (on the ImageView). When I click on the ImageView, I get a reference on it via the OnClickListener(View v). I do (MyClassThatExtendsLinearLayout)v.getParent() and I always get an exception saying that I cannot cast this to a LinearLayout Feb 05 17:47:26 For me I wanna cast a LinearLayout to a class that inherits LinearLayout so I don't see the problem. Does anyone has any idea? Feb 05 17:52:57 ImageView is not a LinearLayout Feb 05 17:53:30 The View passed to the onCLickListener is the ImageView Feb 05 17:53:45 He's calling getParent Feb 05 17:54:01 oh, I see that Feb 05 17:54:08 hmm, maybe some intermediate container Feb 05 17:54:15 Only reason that would fail is the imageviews parent is not your linearlayout Feb 05 17:54:25 In fact, all is going into a custom adapter Feb 05 17:54:39 do a Log.v("", b.getParent().getClass().getName()) Feb 05 17:54:55 good idea Feb 05 17:56:28 http://i.imgur.com/AWHq1.png <-- what's that kind of device called? Feb 05 17:57:00 hum the log returns android.widget.LinearLayout Feb 05 17:57:36 So it's saying it can't case LinearLayout to YourCustomLinearLayout? Feb 05 17:57:50 the instance is not your custom class Feb 05 17:57:59 yes Feb 05 17:58:29 it's in the layout? ? Feb 05 17:58:31 yes mrenouf but my custom class extends LinearLayout Feb 05 17:58:58 it doesn't matter, if the instance is not the correct type Feb 05 17:59:05 Maybe some code/xml.. Feb 05 17:59:22 For example: Object o = new Object(); String s = (String) o; Feb 05 17:59:32 String is a subclass of Object, but that's still illegal Feb 05 18:00:04 Object o = new String(); String s = (String) o; Feb 05 18:00:10 That's valid. Feb 05 18:01:05 If you're not actually specificying your custom class in the layout, then you don't have an instance of it. Feb 05 18:02:16 hum I think I understood something... Feb 05 18:03:16 yeah I found Feb 05 18:03:38 maybe is it a bad practice on my side, let me explain it to you Feb 05 18:03:59 I created a layout for what I wanna display in each row of my ListView Feb 05 18:04:17 then my Adapter is creating an instance of this layout for each entr< Feb 05 18:04:20 *entry Feb 05 18:04:39 in the XML, just change but, I want to have some internal logic behind the elements in this row layout Feb 05 18:05:22 so I created a class that extends LinearLayout and loads this layout to deal with the elements Feb 05 18:05:22 assuming you're inflating the items from an XML fragment? Feb 05 18:05:59 and then I used this class that extends LinearLayout in another xml, that's the XML I use for my ListView Feb 05 18:06:10 that's dirty, I'm sure it's a bad practice Feb 05 18:06:36 perhaps Feb 05 18:06:49 just trying to solve your exception issue Feb 05 18:07:04 because if I do v.getParent().getParent(), it gives me my customClass Feb 05 18:07:13 phone is ringing... Feb 05 18:07:19 oooh Feb 05 18:07:24 there ya go Feb 05 18:08:04 Hey guys, I want to start compiling android from source... can anyone recommend a guide to follow? Feb 05 18:08:07 I'll be building for the EVO 4G Feb 05 18:25:07 is there anyway to get rid of some annoying warnins like Feb 05 18:25:14 "Missing contentDescription attribute on image" Feb 05 18:25:17 in eclipse? Feb 05 18:27:07 Hey does anyone have any tips for someone compiling aosp for the first time? Feb 05 18:27:21 or any guides I can follow? Feb 05 18:28:11 I've been looking for help for a while Feb 05 18:28:15 source.android.com ? Feb 05 18:28:28 Bear10, yeah, add a contentDescription Feb 05 18:28:53 mrenouf, before the latest eclipse update i never had to do so Feb 05 18:28:57 mrenouf: That seems like its only for nexus devices... would those steps be ok for an Evo 4g? Feb 05 18:29:20 Bear10, you still don't *have* to, but it's good practice Feb 05 18:29:28 also, do you need a super powerful computer to do it? Feb 05 18:29:46 mrenouf, so i need a file specifically for contentDescription strings too? Feb 05 18:29:56 because if i hardcode it then i get the other warning lol Feb 05 18:29:58 Bear10, if you really want to ignore, Preferences/Android/Lint Error Checking and you can control the different checks performed Feb 05 18:30:10 Bear10, just that you should externalize the string into a resource Feb 05 18:30:20 Pressing Ctrl-1 will allow you to "quick-fix" it Feb 05 18:30:35 thanks Feb 05 18:30:55 am I in the wrong place for these questions? Feb 05 18:31:23 ztag100, check #android-root or xpda, etc forums Feb 05 18:40:43 Bear10, no you can keep all your strings in strings.xml Feb 05 18:41:01 man now that i changed lint slightly all the rules went crazy lol Feb 05 18:41:05 and now i have 100+ warnings Feb 05 18:41:11 heh Feb 05 18:41:23 dont shoot the messenger :-) Feb 05 18:44:32 hey, I'm having a problem with counters and buttons. The first button isn't always adding to the first counter (sometimes it adds to the second), and the second button isn't always adding to the second counter. Is this the right place to get help? Feb 05 18:49:47 Snuupy: Do you have some code to show? Feb 05 18:49:56 yep! Feb 05 18:49:57 Makes it a lot easier to help Feb 05 18:50:23 eclaesson: pm? Feb 05 18:50:44 Nah, paste your code on a pastebin and just give me the link Feb 05 18:51:09 alright, cool Feb 05 18:51:14 http://pastie.org/private/endunwtgv3ahixtftooedg Feb 05 18:53:03 Snuupy: Still looking through the code, but shouldn't line 33 & 34 switch places? Feb 05 18:53:45 The same with 55 & 56 Feb 05 18:54:00 You update the text before you increment the counter Feb 05 18:54:05 im learning android development, and im currently working on the ui.  my question is, can i specify textSize in the parent, and have it affect all children? Feb 05 18:54:15 for example, LinearLayout as my parent, and several