**** BEGIN LOGGING AT Sun Dec 23 02:59:59 2012 Dec 23 03:08:48 osxorgate: gson is just something that plays games with reflection to encode/decode the json. Dec 23 03:10:12 hello Dec 23 03:10:38 I would appreciate some assitance in setting up a build environment for creating roms Dec 23 03:10:44 would anybody be able to assist me? Dec 23 03:12:08 anyone? Dec 23 03:12:10 #android-root Dec 23 03:12:15 bueler ? Dec 23 03:12:15 thanks Dec 23 03:15:28 is that the only place Dec 23 03:15:31 its dead Dec 23 03:16:14 Yup. Dec 23 03:35:25 ok I got the attachments working Dec 23 03:36:37 I want to make a custom list item to use in a ListView Dec 23 03:37:03 I'm not really sure what I need to do. I imagine I can define it in a layout xml file Dec 23 03:37:31 hey i keep getting this error Installation failed due to invalid APK file! on eclipse Dec 23 03:37:56 i recently upgraded my custom rom to jelly bean Dec 23 03:46:46 nasty! Dec 23 03:46:52 {+|*} Dec 23 05:11:59 is querying the sqlite database on the main thread a no-no? Dec 23 05:12:12 in all cases? Dec 23 05:13:53 RustyShacklefor1: enable StrictMode and see if it complains. i found listening to strictmode a very good practice... :) Dec 23 05:18:03 http://developer.android.com/reference/android/os/StrictMode.html if I copy and pase the example in my main activity, am I good to go? Dec 23 05:19:25 RustyShacklefor1: meh, advice may have changed, but if its like a single row and the query isn't atrocious then it should be fine … as long as its not in some loop or something Dec 23 05:19:57 updates/deletes/writes are a different story Dec 23 05:34:32 hmm java IDE code completion is so nice in comparison to c++ Dec 23 05:38:08 k0nichiwa: true dat. What C++ IDE's even exist? Dec 23 05:38:35 I've used qt creator and the autocompletion was ok Dec 23 05:39:00 Visual Studio 2012 has very good intellisense completion for C++ Dec 23 05:39:17 g00s: I will only be querying, the tables will be unchanged. One table has 14k rows though Dec 23 05:46:07 oh cool they let me get the eglcontext native handle .. in level 17 =( Dec 23 05:46:32 now i either have to call my native code w/a thread in which they're set or i have to cheat and access the private field Dec 23 05:47:52 autcomplete in xcode is ok once it "indexes" your files, problem is if you edit it usually doesn't have them indexed esp if there are syntax errors Dec 23 05:49:30 u know its too bad google got rid of code search, that was so useful Dec 23 05:49:47 why did they get rid of it, i thought there motto was "dont be evil" Dec 23 05:59:49 it is open source..yuo can go back and put it in Dec 23 06:03:52 that woudl be way to hard =) the user woudln't have my mdified stuff on the device Dec 23 06:04:19 im just going to access the private field in JNI at least for now, the name of the field has remained constant from 1.5 to 4.1+ Dec 23 06:05:25 p. new to android dev-- if i have a menu of x items, and want to pass some kind of identification about which menu item is clicked on, is there any way to do it apart from the id of the tablerow Dec 23 06:11:12 Quick question, how do I check if an activity is currently running on the foreground. I'm trying to make sure my service doesn't try and load an application more than once when it's already open. Dec 23 06:12:40 I'm not very good with multiple threads. Is there anyway I can see the process tree? Dec 23 06:13:08 that is, what threads/activites are active, etc. Dec 23 06:14:08 RustyShacklefor1: sounds similar to what I'm looking for Dec 23 06:14:13 alternatively, if i define a tag as "foo" how can i access this within the object i created Dec 23 06:16:41 i haven't mastered the whole lifecycle thing just yet. There must be some tool I can use to see everything thats active Dec 23 06:22:41 RustyShacklefor1: if the row being queried is indexed and its a simple query, should be ok Dec 23 06:25:24 RustyShacklefor1, for thread in the debugger in eclipse it shows u the threads Dec 23 06:33:38 sometimes eclipse windows tabs get screwed up, u get a white tabless subwindow or something above your tab group Dec 23 06:40:33 i need an intravenous food line, just when i start to get a lot done i get hungry Dec 23 06:49:11 k0nichiwa: I know what you mean, I'm awake, girlfriend is passed out bnehind me, and I'm struggling to figure out how to get this rotary encoder working properly.... argh Dec 23 06:52:58 Quick question. Do you see anything wrong with my addAccount method, immediately? If I add a log to it, it shows up in logcat, but it never launches the activity requested. Any idea why that might be? Dec 23 06:53:16 Oh, the code: http://pastebin.com/phmA4ths Dec 23 06:53:20 /herp Dec 23 06:54:52 can ViewPager do page turns, like, overlapping the new page on top of the older one instead of pushing it on the side? Dec 23 07:21:39 hello Guys Dec 23 07:21:41 any one there :D Dec 23 07:23:51 ListView Text Disappears on Load http://stackoverflow.com/questions/14009262/android-listview-text-disappears-on-load Dec 23 08:02:53 I'm trying to build an ASyncTask to run Sqlite queries on another thread Dec 23 08:03:15 what is a good way to pass my query as a parameter? Dec 23 08:03:22 I don't really want to pass a string Dec 23 08:05:34 rusty hold on ill post some code Dec 23 08:07:09 my goal: pass a select statement to my ASyncTask, return a cursor loaded with those rows Dec 23 08:10:54 RustyShacklefor1, http://pastebin.com/18snyZEU Dec 23 08:11:04 it expires in an hour so copy & paste it if you want to look at it Dec 23 08:11:22 not esp proud of the code, what can i say, always too much work too little time =) Dec 23 08:11:32 it's snippets of code, hopefully you can figure out what i did Dec 23 08:13:09 i has some "thread utils" and i overrode the sqlite open helper and added some methods to do transactions in a bgfnd async task Dec 23 08:17:46 hey guys, if i have a class i made myself 'Item', what is the best way to pass it as an extra in intent? Dec 23 08:22:57 hey guys how are you? Dec 23 08:23:41 Anyone familiar with the WebView control? Dec 23 08:26:35 RustyShacklefor1, have you completed a code review of the snippets i posted for you ? Dec 23 08:26:36 =) Dec 23 08:30:09 k0nichiwa: it's alot more code than I expected Dec 23 08:30:39 why are you checking for the main thread? Dec 23 08:31:15 I was thinking more along the lines of subclassing ASyncTask Dec 23 08:31:36 the first argumement being an sqlite query, the return value being a cursor Dec 23 08:32:21 I can't figure out how to construct a SQLite query and then store it in an object Dec 23 08:32:50 I'm contemplating just constructing a String with my sqlite query Dec 23 08:34:04 RustyShacklefor1, the first part is "threatutils" just some stuff to run a runnable on a thread or such Dec 23 08:34:25 its not specific to database queries. sometimes i was on a background thread or something and wanted to make sure i did something on the main thread Dec 23 08:34:45 for example maybe i wanted to do some UI manipulation, if i was on a background thread, program crashes Dec 23 08:34:59 so i put the UI manipulation in an anonymous runanble and used my thread utils to put it on the main thread Dec 23 08:35:34 i think i saw in some google examples or source code the idea of just creating an async task for little tasks like i do there Dec 23 08:36:01 anyone have any experience with WebView? Dec 23 08:36:30 RustyShacklefor1, so the first part is a general purpose thread utils class i was using, and below that are some snippest that were specific to sqlite quries Dec 23 08:37:01 RustyShacklefor1, look into jackson JSON maybe Dec 23 08:37:15 jackson json can take a json string and stick it into an objec tautomatically i think Dec 23 08:37:28 * k0nichiwa back to work Dec 23 08:37:29 either way, I saved it. It's hard to find good examples online Dec 23 08:39:06 the appdelegate stuff may be particular to me, i subclassed app delegate, maybe you can google app delegagte in android to figure out what i was doing Dec 23 08:39:12 cuz ive forgotten =) Dec 23 08:44:54 if i have a class i made myself 'Item', what is the best way to pass it as an extra in intent? Dec 23 08:48:03 ListView Text Disappears on Load http://stackoverflow.com/questions/14009262/android-listview-text-disappears-on-load Dec 23 09:02:46 how does a Bundle differ from a HashMap? Dec 23 09:03:06 it seems to me that their purpose is very similar Dec 23 10:12:07 hei guys. Quick question. I've yet to upload an app to Google Play, but I was wandering ... for paid apps, how often does the list of WHO bought your apps update? Dec 23 10:12:27 If i'm not mistaken, all the users that buy the app are shown in the Google Checkout account Dec 23 10:13:06 But if someone buys my app right now, how much will it take for him to appear in Google Ccheckout? Dec 23 10:20:08 feh, Collections.sort() allocates a new array and copies the data instead of doing an in-place sort -- but good thing Mark Weiss has a nice AA Tree implementation of which I was able to take advantage Dec 23 10:33:35 reduced app loading time from 20 seconds to 3 seconds Dec 23 10:36:30 http://en.wikipedia.org/wiki/AA_tree is awesome Dec 23 10:43:23 pragma-: did you tried it? Dec 23 10:54:52 hey why don't i see nullpointer exceptions in the logcat? instead i just get info about an unhandled exception Dec 23 11:32:38 How can I populate a spinner from a MySQL database? Dec 23 11:46:45 is it possible to somehow to tell a horizontal vertical layout with three children to place the last child to align to the right border Dec 23 11:47:09 i've tried using android:layout_gravity="right" on the last child but that does nothing Dec 23 11:48:30 Guys some tool (Eclipse plugin maybe) for creating entity relationship diagram and from there SQL for sql lite and java objects? Dec 23 12:24:45 Hi, is there a way to create a RelativeLayout.LayoutParams with a "deault" width instead of a forced one? I only want to set the margin in there :\ Dec 23 12:26:25 aaah, found it! RelativeLayout.LayoutParams.WRAP_CONTENT Dec 23 14:38:16 so to have a correct holo application do I have to use the ugly gradient background on my listview? Dec 23 14:39:10 i'd prefer to use something like that dark one in this picture http://developer.android.com/design/media/typography_defaults.png Dec 23 14:42:37 Chilley: what background are you talking about? Dec 23 14:46:25 hm, if I want to create a new "view class", that in turn should contain a nested view of standard views. What would be the best way to achieve this? I mean I COULD just extend LinearLayout or something like that and then add my views from within the class, but it feels strange to "let" the program get access to stuff like addView, potentially screwing with my "widget" Dec 23 14:46:28 am I making any sense? Dec 23 14:49:25 Chilley: making a "correct" holo application has the one purpose, to give the user a constant and well known look and feel among the applications on their device, so they won't get confused and have a good usability. I guess that backgruond, since its still pretty much the same color (just without gradient) then the default background, won't confuse any user or lower the usability of your app. So I would say its totally okay, Dec 23 14:58:51 i download a json to sd card, with a stringfield 'hash'. Now i download the file again, and compare the fields 'hash' in the local and the remote, and the fields are different... unicode thing? Dec 23 15:30:15 why do I get this when trying to install the ADT plugin? http://pastie.org/5568770 Dec 23 15:30:39 I'm on Arch, so I got the latest Eclipse Indigo (4.2.1) Dec 23 15:31:03 Sicp, Indigo is the latest version of Eclipse in Arch? Dec 23 15:31:12 yes Dec 23 15:31:26 hmm, the latest Eclipse in general is Juno Dec 23 15:31:37 why doesnt Arch have it? Dec 23 15:31:39 Juno sorry, Juno Dec 23 15:31:43 oh Dec 23 15:31:49 not Indigo, Indigo is the one before Juno Dec 23 15:31:51 i thought eclipse was too old Dec 23 15:32:24 I've been this whole ADT thing so many times in the past Dec 23 15:32:41 everytime it's something different Dec 23 15:32:49 * michaelnovakjr recommends IntelliJ Dec 23 15:33:14 either that or NetBeans with ADT Dec 23 15:33:20 over Eclipse? Dec 23 15:33:22 what're you crazy? Dec 23 15:33:34 IntelliJ is a great IDE for Android. Dec 23 15:33:37 Sicp, just as backup plan Dec 23 15:33:41 if Eclipse doenst work Dec 23 15:33:54 it does, of course it does, it's just this little glitch with ADT Dec 23 15:34:06 anyway, I have the IDEA package, I'll try Dec 23 15:41:51 you guys use Community Ed. yea? Dec 23 15:51:54 Sicp: yes Dec 23 16:10:13 What layout should I use to display tabular data take from a database? Dec 23 16:15:43 hey guys Dec 23 16:15:52 how to run the app automatically after installing with ant? Dec 23 16:15:58 what would an extra target look like Dec 23 16:17:57 You have to use adb shell am and construct an intent that launches your main activity Dec 23 16:19:45 yes it works from the command line but not in ANT Dec 23 16:19:53 I mean, it starts running from ant Dec 23 16:19:57 but says "device not found" Dec 23 16:21:42 mi6_x3m: that means your device isn't connected to the computer. Dec 23 16:21:53 what operating system is on your development machine? Dec 23 16:22:03 I said it works from the command line nicely :) Dec 23 16:22:27 huh? Dec 23 16:22:33 adb shell am start -a android.intent.action.MAIN -n my,package/.NativeActivity Dec 23 16:22:40 works without issues from the command line Dec 23 16:23:32 so then what's the problem? Dec 23 16:23:48 ant tells me Dec 23 16:23:50 [exec] adb server is out of date. killing... Dec 23 16:23:50 [exec] error: device not found Dec 23 16:23:50 [exec] * daemon started successfully * Dec 23 16:23:50 [exec] Result: -1 Dec 23 16:24:46 what ant target are you running? Dec 23 16:26:17 run, a custom one with the above line Dec 23 16:26:43 If the installd target works fine, you can be fairly certain you're doin' it wrong Dec 23 16:27:37 SimonVT: the question is now to do it right :) Dec 23 16:28:14 wait let me paste some code Dec 23 16:28:43 SimonVT: michaelnovakjr http://pastebin.com/4z0krbg8 Dec 23 16:29:51 What's the 1 for Dec 23 16:30:23 ignore it, I was testing something Dec 23 16:30:27 it's gone normally Dec 23 16:40:49 I don't know, really Dec 23 16:42:36 I got too much in my dropbox: https://dl.dropbox.com/u/100261/dropbox.PNG Dec 23 16:52:05 SimonVT: nevermind, thanks! Dec 23 16:52:16 Fixed it? Dec 23 17:12:09 hi Dec 23 17:12:46 i have the screenOrientation="portrait" on my activity xml... but its still changing orientation to landscape Dec 23 17:13:03 its prevents from show on landscape mode? Dec 23 17:13:12 or i need to set another parameter? Dec 23 17:13:31 i think yuo need to override onConfigurationChanged Dec 23 17:14:40 android:configChanges="orientation" this? Dec 23 17:16:21 that goes in the manifest Dec 23 17:16:28 and then your activity needsto override that method Dec 23 17:17:38 That has nothing to do with forcing an orientation Dec 23 17:18:55 oh eh right. Dec 23 17:18:57 how can i force a app to stay only in portrait orientation? Dec 23 17:24:17 Suchorski: http://developer.android.com/guide/topics/manifest/activity-element.html#screen Dec 23 17:25:36 i was on this page Dec 23 17:25:44 i set the screenOrientation Dec 23 17:25:47 isn't working Dec 23 17:29:08 can you paste your manifest file? Dec 23 17:36:30 Anyone using lastpass, is there a better alternative to it? Dec 23 17:36:48 i use lastpass. haven't found anything better yet. Dec 23 17:37:08 cool Dec 23 17:37:59 lastpass can decrypt your passwords right? Dec 23 17:38:23 have no idea Dec 23 17:39:11 i made here timroes :D Dec 23 17:39:11 tks Dec 23 17:39:21 i was putting this on activity xml Dec 23 17:39:26 not in manifest Dec 23 17:39:57 spike|spiegel: no, they cannot Dec 23 17:40:40 the lastpass software does the encryption/decryption locally, and your password is never transmitted to them in cleartext Dec 23 17:42:08 easiest way to know I guess is to see FAQ on "what happens if I forgot my master password" Dec 23 17:42:12 Hello Dec 23 17:42:19 I am Japanese Dec 23 17:42:23 Suchorski: good :) Dec 23 17:42:26 I live in Japan Dec 23 17:42:41 licksjp: Hi, I am German and live in Germany :) Dec 23 17:42:43 timroes tks for the help Dec 23 17:43:05 timroes: Hello Dec 23 17:43:07 rynkan: i use KeePass / KeePassX (Linux), there's an Android program to read/write it too, though it's not as friendly as it could be Dec 23 17:43:18 I am Android developer Dec 23 17:43:37 now i'll wait for the class of java in the college to keep studying android sdk :D Dec 23 17:43:44 my applications has opened the Google Play about 70 applications Dec 23 17:45:18 timroes: are u Android developer? Dec 23 17:45:35 with any luck, everyone in this channel is an app developer Dec 23 17:46:00 licksjp: as zinx said, chacnes are high ppl in that channel do know some stuff about android development :) Dec 23 17:46:10 ;) Dec 23 17:47:17 my ndk-build runs under SUDO without error. However, as a normal user: Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: /Applications/android-ndk-r8c/jni/Android.mk Dec 23 17:47:31 Any idea? Dec 23 17:48:03 tofi9: what operating system? Dec 23 17:48:27 Mac OS X 10.8 & NDK release 8c Dec 23 17:48:37 okay mac, I am out :) Dec 23 17:48:50 zinx: cool, thanks! Dec 23 17:49:10 If you got some tips regarding other unix/linux… it might just be the same for mac os x too :D Dec 23 17:49:53 (a) I don't have some :D (b) i am not sure, if problems (that seem to have somethign to do with permissions) are so easily transfarable to linux/unix Dec 23 17:52:41 timroes: thx :) Dec 23 17:57:14 tofi9: not that I was any sort of help :D Dec 23 17:57:34 Japan is 3 O'clock AM Dec 23 17:57:54 hello, anyone knows how are those contact pics at messaging app made? Dec 23 17:57:57 at http://i46.tinypic.com/15qrbzp.png Dec 23 17:58:00 that Second and First Dec 23 17:58:22 i havent seen such contact picker built in eclipse Dec 23 17:59:09 or is it QuickContactBadge and im missing something ? Dec 23 17:59:46 tibbi: Is it ur applications? Dec 23 17:59:57 the pic is from default messaging app Dec 23 18:00:11 from emulator Dec 23 18:00:18 oic Dec 23 18:02:05 Trying to create a popup from a service, Windowmanager$BadTokenException: Unable to add window -- token null is not valid Dec 23 18:02:22 timroes: just some extra info about the toolchain: Dec 23 18:02:24 Android NDK: Found project path: /Applications/android-ndk-r8c Dec 23 18:02:43 This is of course not my project path… how does it determine the project path? Or how can I override? Dec 23 18:04:02 tibbi: its a layout every of this items Dec 23 18:05:00 hey, is it possible to retrieve the ip address of a pc on the same network given its mac address in android? Dec 23 18:05:07 but is it something just pulled from the palette, or whole created manually ? Dec 23 18:05:32 tibbi: https://github.com/android/platform_packages_apps_mms/blob/master/res/layout/recipient_list_item.xml Dec 23 18:05:48 ill check it out thanks Dec 23 18:05:50 i thought its that, but right now i recognize, that in that layout the contact badge is left of the name, so can't be that items Dec 23 18:06:36 Anyone using phonegap here? :) Dec 23 18:08:33 we use android phone ;-) Dec 23 18:10:09 Does anyone program check emulator or Android device? Dec 23 18:12:54 Chainfire: Aye, Got a second ? .. Know you keep busy ;) Dec 23 18:23:26 I'm utilizing the AsyncTask and trying to get the data back to my main view to show info to the user, are there any good tutorials that someone can point me to to explain how to do this? Dec 23 18:24:14 Seus: http://www.vogella.com/articles/AndroidPerformance/article.html Dec 23 18:35:37 what's a good way of showing a loading symbol in the lower right corner of the screen? On TOP of everything else, without disrupting the layout Dec 23 18:38:31 ah man i love the android-devs Dec 23 18:47:44 svearike: show it as an actionbar item Dec 23 18:48:07 ideally if you have an refresh button beforehand in the actionbar, turn that into the loading symbol while loading Dec 23 18:53:54 timroes, hmm yeah well that's kinda neat way of doing it Dec 23 18:54:07 timroes, only problem is I just removed the actionbar due to space ;) Dec 23 18:54:20 are you creating a game? Dec 23 18:54:46 timroes, no application for controlling the lights at home Dec 23 18:55:13 then removing the actionbar is anyway bad design, so you shouldnt care so much about thhe position of the loading icon anymore :) Dec 23 18:55:17 but the actionbar is taking up about 10% of the screen height. :\ Dec 23 18:55:48 perhaps there's a way of making the actionbar smaller? Dec 23 18:56:03 and therefor give you place for an up navigation , your current position or app title, actions and the overflow menu :) Dec 23 18:56:57 timroes, I have a Tabbed view at the moment, is there some way one could put that INSIDE the actionbar? Dec 23 18:57:23 if the screen is large enough the tabs automatically goes to the actionbar Dec 23 18:57:30 because with both those at the top almost 20% of the height is taken up :\ Dec 23 18:57:39 ListView Text Disappears on Load http://stackoverflow.com/questions/14009262/android-listview-text-disappears-on-load Dec 23 18:58:37 timroes well define automatically? :) I'm running the app on my tab aswell, still a "two liner" instead of all up in the actionbar Dec 23 18:59:15 i better define 'enough space' :D Dec 23 18:59:24 not on a smartphone display :) Dec 23 18:59:52 ofc you can skip out the actionbar that were just recommendations, but especially tabs, without the actionbar i image looking a bit werid Dec 23 18:59:56 iOs like Dec 23 19:00:38 well there are two tabs , and they are not moved up to the action bar it seems, I'm using fragments for the Tabs if that matters Dec 23 19:01:04 2 tabs should fit in the actionbar.. it certainly looks that way atleast Dec 23 19:01:47 hi guys, any idea how to test the new Android Maps API v2 on emulators ? Dec 23 19:02:26 aolin: install the google aps in the emulator (google for it, cyanogenmod has a nice tutorial on how to do so) Dec 23 19:03:04 yeah I guess I need working play store Dec 23 19:03:25 thanks, I'll try Dec 23 19:10:05 ListView Text Disappears on Load http://stackoverflow.com/questions/14009262/android-listview-text-disappears-on-load Dec 23 19:10:47 harshamv: stop Dec 23 19:13:48 harshamv: please don't post the same message over and over. Dec 23 19:15:25 michaelnovakjr: sorry. irc had got disconnected. wasnt sure it went to the network Dec 23 19:15:45 this also isn't an advertising channel for stack overflow questions. Dec 23 19:16:57 i understand. last time i posted someone asked to see the code. so i have posted it there. so that one can look Dec 23 19:17:03 sorry wont do it Dec 23 19:17:26 post code on something like pastebin Dec 23 19:18:22 ryanm: yessir will do that. Dec 23 19:19:57 looked trough your post, seemd that you have fiddled with text-styling etc to much, step back untill you get the text to show Dec 23 19:23:32 rynkan: okay. i will remove it and test it and get back Dec 23 19:24:50 rynkan: it only happens in 2.x version of android Dec 23 19:25:02 on my ICS galaxy s2. and Note 2 Dec 23 19:25:05 it works fine Dec 23 19:25:27 also i have used Sherlock which is throwing some theme related erros when run on 2.3.3 Dec 23 19:27:58 apparently the Play Services will not run on emulators :( Dec 23 19:28:10 so no Maps API v2 on emulator either :( Dec 23 19:28:38 aolin: I got it running already, with the tutorials from cyanogen mod and its files Dec 23 19:29:07 on which emulator ? Dec 23 19:29:16 version I mean Dec 23 19:29:21 i guess newest Dec 23 19:29:25 that time 4.1 Dec 23 19:29:31 aolin: u can by pass it saw someone post a link on SO Dec 23 19:29:49 yeah, I'd need to get it running on 2.2 Dec 23 19:30:24 I saw good instructions for 4.x but older seems harder Dec 23 19:34:16 aolin: http://www.piotrbuda.eu/2012/05/installing-google-play-on-android-emulator.html#comment-654222493 Dec 23 19:37:13 rynkan: i removed all the textView styling. still the same issue Dec 23 19:37:31 pretty wierd to be stuck with a basic list_view Dec 23 19:38:13 harshamv: I see ... I tried those instructions already but it did nothing to my 2.2 .... but then again the 2.2 google apps package that I downloaded was lacking the login serice apk .. Dec 23 19:57:19 hey guys Dec 23 19:57:40 i have a question regarding inappbilling Dec 23 19:59:05 i am using IAB as some sort of "donation system". therefore using unmanaged items. I totally don't care atm about this "consuming" and other stuff. However, the first purchase works fine, but everytime the user trys to make another purchase of the same item, it fails (nullpointer exception in the IabHelper class) Dec 23 20:03:19 does Display.getHeight() always refer to the same side when it landscape vs. portrait? Or, does it change depending on which is actually the height? Dec 23 20:17:21 adb : insufficient permissions for device Dec 23 20:17:37 when i try to pull a file form sdcard using adb i am getting that error, why might that be? Dec 23 20:18:36 oh, it works now :s Dec 23 20:24:36 hm i have a fragment with a member BroadcastReceiver. it works fine until i press 'home' and return to the app. Then the member is null. Any mechanism I don't know about? Dec 23 20:24:55 brx_: put your storage in protected mode? :) Dec 23 20:25:13 the fragment is reused, so i would expect the broadcastreceiver to still be there Dec 23 20:25:26 rynkan, no i hadnt changed anything, just unplugged the usb cable and it started working again Dec 23 20:29:31 anyone here familiar with inappbilling? :p Dec 23 20:58:43 Which is the best way to have large sets of data in an App. Is it a good practice to ship a DB or an XML with the app and load it on the first run Dec 23 20:59:14 I'm shipping a sqlite db in the bundle, but this does have some issues Dec 23 20:59:22 err, in the apk Dec 23 20:59:35 what kind of issues Dec 23 20:59:36 ? Dec 23 20:59:45 I think the sqlite db format isn't guaranteed to be compatible between versions Dec 23 21:00:04 how are u handling it ? Dec 23 21:00:23 at the moment I'm not, but an easy fix would be to do what you said Dec 23 21:00:32 just put the queries in a file Dec 23 21:00:40 u mean ship an XML and import the Dec 23 21:00:43 run them at first start Dec 23 21:00:44 yeah Dec 23 21:00:46 data on the first run ? Dec 23 21:00:57 is there any tutorial on how this can be done ? Dec 23 21:02:32 erm, well, you use http://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html Dec 23 21:03:14 you implement onCreate to read out the query file you've got in your apk Dec 23 21:03:39 Hello. Dec 23 21:03:50 and you use the supplied SQLiteDatabase object to insert everything Dec 23 21:03:50 i am printing 'this' on a Fragment: Fragment_ShopCommentList{42c79900 #1 id=0x7f040014 COMMENTLIST_FRAGMENT_TAG} <-- what are the numbers? Dec 23 21:05:26 harshamv: still, it's more involved than just being able to copy a db Dec 23 21:05:39 oh Dec 23 21:06:01 I'm trying to access a string-array (living in XML) through my Java code, compiling on API level 10 (Android 2.3.3). I've googled around and came across "getResources().getStringArray(R.array.array_name)" but Eclipse complains at getResources for not existing. Dec 23 21:06:19 The question is: How do I get a string-array in Java? Dec 23 21:07:01 soryy708 you call activity.getResources() Dec 23 21:07:05 context Dec 23 21:07:07 or rather context Dec 23 21:10:03 xorgate: Which activity and how do I get it? Dec 23 21:10:22 soryy708 your code is inside an activity i would presume Dec 23 21:10:32 noganex: No it isn't :D Dec 23 21:10:59 xorgate: An activity creates an object out of a normal java class which handles stuff Dec 23 21:12:09 so you have a res\values\bla.xml with a in it, yes? Dec 23 21:12:35 xorgate: Yeah. Dec 23 21:12:51 and you have an android app, which consists of subclasses of Activity (probably) Dec 23 21:14:08 xorgate: Nevermind, I'm passing the calling activity to the constructor. Messy kludge, lol Dec 23 21:14:26 xorgate: An android app consists of subclasses of Activity, yeah Dec 23 21:44:48 so if I have an AsyncTask in a different class, how can I call it and get the return data back to the UI class? I don't want to display anything to the user, just return the data to the main UI so I can change to a different view... Dec 23 21:49:46 Seus, i think you should try oNNewIntent( in your activity class Dec 23 21:50:33 in the async onPostExecute() startActivity(), also on your activity use launchMode="singleTask" Dec 23 22:07:33 how do I find a list of valid backends for the -audio option of emulator? Dec 23 22:10:43 oh there Dec 23 22:11:32 mmh Dec 23 22:11:54 it says sdl is one of the backends but when trying to use it it fails saying that there's no such backend <.< Dec 23 22:12:24 seems logical Dec 23 22:12:46 really.. Dec 23 22:13:00 android works on the principle of greatest surprise Dec 23 22:13:28 or most astonishment Dec 23 22:21:32 Zharf, sounds like it sdl isnt installed on your platform then, but that the emulator supports it ? Dec 23 22:22:58 svearike, it's installed, the emulator help texts seem very out of sync though Dec 23 22:23:03 oh man I would love another monitor. Eclipse really eats up screen space Dec 23 22:23:10 it says to use -help-audio-out but there's no -help-audio-out Dec 23 22:24:02 http://d3bfa197500d4a3b.paste.se/ Dec 23 22:26:31 I'm trying to get my system to be able to record the sound that the emulator is playing :E Dec 23 22:26:37 I hate linux audio Dec 23 22:33:11 hi Dec 23 22:33:24 I have an activity with a listview (and adapter) Dec 23 22:33:37 I show a dialogfragment in which the listview data may change Dec 23 22:33:47 is Samsung Kies even possible to install??? Dec 23 22:33:54 I would like to refresh the activity's listview when the dialog is dismissed Dec 23 22:34:01 what is the best way to achieve this ? Dec 23 22:34:16 I thought onResume would let me refresh the data but it's not called Dec 23 22:34:47 and I found that dialogfragment have no onDismissListener :( Dec 23 22:36:11 foo, bar, baz, qux. Dec 23 22:43:30 how do I detect if my database exists yet? Dec 23 22:44:01 I see examples that involve calling SQLiteDatabase.openDatabase() Dec 23 22:44:12 would it suffice to check if the file exists? Dec 23 22:47:07 I finally got popups appearing where I want -- now I just have to figure out how to make them look a little more organic and populate them with keys http://stackoverflow.com/questions/13984378/how-to-make-a-curved-onscreen-keyboard-for-android Dec 23 22:54:45 Hello guys Dec 23 23:01:17 RustyShacklefor1: you might try putting the code to open the db inside a try {} catch {} Dec 23 23:06:55 How does one find secret codes on Android or secret intents? Dec 23 23:12:47 AdamOutler: you mean codes like, up up down down left right left right b a b a start ? Dec 23 23:13:04 no Dec 23 23:13:49 it's only one ba Dec 23 23:15:39 hmm... you're right, I guess it's been a long time since I played super contra Dec 23 23:16:33 I have an activity which shows a dialogfragment, how can I know when my dialogfragment has been dismissed ? Dec 23 23:17:34 Estragon ondestroy? Dec 23 23:17:58 but I want to know it "inside" my activity Dec 23 23:18:08 and not in my dialogfragment class Dec 23 23:18:21 Estragon, you'll need to build the diaglogfragment's object up. Dec 23 23:19:07 sorry, im not english-native, I don't understand what you mean ? Dec 23 23:19:45 my activity's code : http://pastebin.com/7CPL204V Dec 23 23:19:55 with AddFragment extending DialogFragment Dec 23 23:19:57 Estragon, you can make it so when the dialogfragment is destroyed, it will fire an event that you can watch for, or you can simply launch the dialog fragment from a single thread and have the next command acknowledge it. Dec 23 23:22:12 Estragon, what calls that? Dec 23 23:22:25 that's not your activities code. thats a define for a single variable. Dec 23 23:22:45 it's a method inside my activity Dec 23 23:23:02 which is called by onOptionsItemSelected Dec 23 23:23:06 use onBackPressed() Dec 23 23:30:43 HttpClient from rest service is slow for me Dec 23 23:31:02 i mean that even i get 100kb of data or 1kb it takes more than 100ms. Dec 23 23:31:23 even the old windows mobile had 20ms time on this Dec 23 23:31:45 and server response is 7-10ms Dec 23 23:37:24 ok, how do I emulate the media keys via a service? Dec 23 23:37:40 I want to skip, play, etc from my application, but to use a standard that can be accessed from my service Dec 23 23:43:28 Tonisius: You might be able to do it with an IME Dec 23 23:43:55 IME? Dec 23 23:43:59 * Tonisius googles it Dec 23 23:44:36 oh, I don't want to build a keyboard Dec 23 23:44:47 my service has no need for a keyboard Dec 23 23:45:16 Although, I will keep a link to this as it could come in handy for a game I have on the backburner Dec 23 23:45:50 jstream: I'm trying to emulate a key being pressed, which I don't see available. Specifically the Play or FastForward keys or even Stop, depending on what's available. Dec 23 23:48:12 IMEs are services that send keystrokes, it seems like it's exactly what you're asking for. It just so happens that most IMEs are associated with on screen keyboards, but I don't think that needs to be the case Dec 23 23:48:56 I see what you mean with your definition. Dec 23 23:49:12 now I gues sI should read deeper and see the mappings for play, pause, ff, rw, stop Dec 23 23:50:01 Here ya go, player: http://developer.android.com/reference/android/view/KeyEvent.html Dec 23 23:50:56 intKEYCODE_MEDIA_NEXTKey code constant: Play Next media key Dec 23 23:51:12 yeah, I just saw an implementation from the BLUEz guys for bluetooth keys Dec 23 23:51:13 aweesome! Dec 23 23:51:16 Thank you very much Dec 23 23:52:26 np gl Dec 23 23:52:35 thanks :D Dec 23 23:52:44 you're fault for not letting me go to the gym... Dec 23 23:57:15 awesome, I can run it from the command line too <3 Dec 23 23:57:25 adb shell input keyevent 86 Dec 23 23:57:31 jstream: so awesome :D Dec 24 00:11:07 hi! I have random number of textviews. What kind of layout should I use to make them go to the next line if the current line is filled? Dec 24 00:12:37 linearlayout? Dec 24 00:14:00 with linearlayout items go off screen Dec 24 00:15:44 i'd rethink my layout Dec 24 00:46:23 I guess I will have to go with gridview Dec 24 01:03:18 Can I use my Galaxy Nexus as a general arduino board? Dec 24 01:03:29 say what? Dec 24 01:04:30 Instead of a phone Dec 24 01:04:41 Take it apart use the board Dec 24 01:04:46 good luck! Dec 24 01:06:11 slie: you'd need to write programs using either the JDK or SDK and access the gpio ports Dec 24 01:07:00 Jstream, thank you Dec 24 01:12:48 hello Dec 24 01:13:06 any idea why http connection for rest service is slow? Dec 24 01:13:19 even with empty response Dec 24 01:40:58 hm fragment has getString but not getColor Dec 24 02:15:47 Parhs: maybe server is slow? Dec 24 02:17:14 u could make ur own android w/a genral purpse arudino hm? that woudl be cool Dec 24 02:17:26 but doing the cellular part would prbably be almost impossible Dec 24 02:18:52 sounds like a waste of time Dec 24 02:22:17 for drivers that use tiling it's a huge plus ... android, powervr might be examples Dec 24 02:22:32 on iphone you want to use as few rendering passes as possible Dec 24 02:22:47 if you can use all the texture units you're using the hardware to its full potential Dec 24 02:23:11 however on some drivers it may not help, but it shouldn't hurt ... unless they don't tolerate my fragment shader hack Dec 24 02:23:35 i mean iphone, iphone driver usins tiling Dec 24 02:24:03 hi all. Dec 24 02:25:07 I have a problem loading bitmap images on openGL texture. It seems it can be loaded and the texture become blank. I using Samsung Galaxy Tab 7.0. No errors whatsoever. Any ideas? Dec 24 02:25:18 it can - it can't* Dec 24 02:26:21 what utilities do you use to grabe the bitmap bits from your resource or asset ? Dec 24 02:26:55 from resources Dec 24 02:27:00 image in sd card Dec 24 02:28:22 well i suggest that you try writing code to supply the bits yourself first, red green blue alpha or whatever your format is Dec 24 02:28:31 hmm Dec 24 02:28:33 and hard code a color Dec 24 02:28:37 and see if you can even get that to work Dec 24 02:28:48 make sure you can do a texture first, once you can do that, thn try to use the real data Dec 24 02:28:56 the code is working Dec 24 02:29:00 im about to get ot that point myself actually (loading textures) Dec 24 02:29:01 on 10 inch, smart phones Dec 24 02:29:06 but doesn't work on 7 inch Dec 24 02:29:10 Galaxy Tab Dec 24 02:29:25 maybe you're making an invalid assumption about your surface format Dec 24 02:29:35 such as ? Dec 24 02:29:40 surface could be 8 bits rgba, or could be 565 0 alpha Dec 24 02:29:44 maybe something like that Dec 24 02:29:58 hmm Dec 24 02:30:00 your texture format might have to match your surface, not sure =) im no expert Dec 24 02:30:15 are you using glsurvaceview ? Dec 24 02:30:21 thats something I can see. At least got some leads Dec 24 02:30:22 yeah Dec 24 02:30:30 i have a link for u Dec 24 02:31:39 sure thanks k0nichiwa Dec 24 02:32:22 oh never mind, im using a custom glsurfaceview but only to avoid onpause nuking my context, i got a version from a paste Dec 24 02:32:39 however you can see the config for your surfaace probably in "onsurfacecreated" in therenderer Dec 24 02:34:37 hmm Dec 24 02:39:56 is there a 64bit version of android sdk Dec 24 02:48:21 linuxuz3r: I don't believe there is for Linux. **** ENDING LOGGING AT Mon Dec 24 02:59:58 2012