**** BEGIN LOGGING AT Wed May 22 02:59:58 2013 May 22 03:18:20 anyone making a living off their android apps? May 22 03:18:46 Lo 9 May 22 03:19:00 Whoops, sorry May 22 03:19:01 I read an interesting link the other day, a guy posted his sales/lessons learned after a year, he posted apps to kindle, barnes and noble, play store etc... May 22 03:19:09 will try and find it May 22 03:21:14 idk was somewhere in http://www.reddit.com/r/androiddev/ May 22 03:21:32 anyway basically he said without marketing his app didn't do well but times of marketing it got more downloads lol May 22 03:21:45 wow shocker May 22 03:21:54 also depends on quality May 22 03:21:55 and that he did better on kindle I think than the play store since kindle did a free promotion thing May 22 03:21:58 user demographic May 22 03:22:05 comparable products May 22 03:22:09 lists are endless May 22 03:23:10 I found myself annoyed recently at the micro-transaction thing in most games(being a new smart phone user) but in a way I guess that's what devs have to do? since people with spend $5 on a coffee but turn their nose at a $1 or $2 on an app May 22 03:23:21 atleast that seems to be the impression I got from reading May 22 03:24:07 I think i'm going to go with the trialware approach myself, where after 15 days or whatevre have to buy to keep using May 22 03:24:30 two versions is probably better May 22 03:25:55 you think? what's to stop the user from using the free version though? May 22 03:26:08 as in why would they ever upgrade if they can use free indefinitely May 22 03:26:26 ads, features etc. May 22 03:26:27 the problem with games and IAP is that more and more games are being designed to maximise IAP sales - and there are companies which just churn out IAP-maximising games May 22 03:26:40 <_genuser_> anybody implement listview in a widget? May 22 03:26:50 _genuser_: yes May 22 03:27:28 <_genuser_> is it really as complicated as the oft cited example by romain guy or somesuch? May 22 03:27:43 <_genuser_> or is it simple as a listview with a custom adapter in a regular activity? May 22 03:28:15 no idea what you're saying, did it talk about remoteview services? May 22 03:29:02 <_genuser_> I think so. May 22 03:29:17 I can't imagine people are making much off ads, but some of the micro-transactions they're probably cleaning up with, like in a poker game I installed have to pay for more chips, $10 for x amount May 22 03:29:27 <_genuser_> in regular activity, define list in xml, set view in activity java, .setAdapter(adapter), done. May 22 03:29:57 <_genuser_> but in widgets it didn't seem possible to place a list, reference it and set adapter. May 22 03:30:20 <_genuser_> bankai_: I have built a generic textbox working widget before. May 22 03:30:35 if someone has already given you resources why are you asking again ? May 22 03:31:18 <_genuser_> well, it was a long project that I would have to download and read thru. If there's a better way, I'd rather ask before learning. If not, no problem. May 22 03:32:14 <_genuser_> :) in other words, I don't mind learning but want to verify. I have learnt better approaches for many things after asking here. May 22 03:34:05 http://developer.android.com/guide/topics/appwidgets/index.html read this May 22 03:36:03 <_genuser_> bankai_: thx. will do. May 22 03:36:18 I have a dialog fragment May 22 03:36:33 and I am trying to this.dismiss(); it May 22 03:36:40 this works perfectly on Android 3.0+ May 22 03:36:50 but on 2.3 and presumably below, where there are no dialog fragments May 22 03:36:57 it is showing up as a regular fragment May 22 03:37:04 and dismissing it seems to just leave me at a white screen May 22 03:37:05 you probably used too many carriage returns May 22 03:37:19 the more lines, the better May 22 03:44:53 there are dialog fragments on API 4+ with the support library May 22 03:45:49 that's what I'm using May 22 03:45:59 the support library turns them into regular fragments, it seems May 22 03:46:31 wait, I lied...maybe I'm not May 22 03:51:04 it does no such thing May 22 03:51:22 https://friendpaste.com/6Xwgv7V8azUBJEp3JmbH1E May 22 03:52:12 um, pre-3.0 supports dialogs... May 22 03:52:56 I had read wrong then? May 22 03:53:11 but like....say I force it to always do the newFragment.show() path May 22 03:54:04 oh huh May 22 03:54:05 it does May 22 03:54:43 thank you :) May 22 03:57:41 is there any way to query the phone's cell radio which RRC connection mode it is in (DCH/FACH/PCH/Idle) and determine T1/T2/T3 timings between states ? May 22 04:17:03 setting a background to a random image on onCreate causes the app to stutter, code is https://gist.github.com/anonymous/5625208 … ideas? Sure there's a better way to do this May 22 05:01:43 nownot, https://gist.github.com/alex-richards/5625331 that's how i'd do it May 22 05:01:55 alex_PP: thanks man! May 22 05:02:12 not sure if that'll solve your problem though May 22 05:02:59 Random is automatically seeded May 22 05:03:29 so it is May 22 05:04:36 but by using System.currentTimeMillis() someone could perform a timing attack and get the same background every time! May 22 05:06:52 is that true for all versions of java? and if so, has it ever changed May 22 05:06:54 ? May 22 05:08:35 java 1.4.2 - uses current time to seed by default May 22 05:09:17 Most are based off of some form of it May 22 05:09:31 Here's Android: https://android.googlesource.com/platform/libcore/+/refs/heads/master/luni/src/main/java/java/util/Random.java May 22 05:10:48 ah ha, couldn't find the jave.* source on grepcode May 22 05:10:51 *java May 22 05:14:27 alex_PP: can you set alpha doing with code you sent me to? May 22 05:15:21 I have it working with the code posted using a ImageView, it just freezes on load b/c its doing the image load May 22 05:18:01 hey all May 22 05:23:14 downlaoded latest android May 22 05:23:27 W/dalvikvm(15163): Unable to resolve superclass of Landroid/support/v4/app/Watson; (151) May 22 05:23:29 wtf -_- May 22 05:23:33 and now your referenced jars are broken i bet May 22 05:23:54 are you getting class not found errors? May 22 05:24:01 Jc_Dev, it's sherlock action May 22 05:24:30 make sure the support jar is in your apk, easiest way is to look at file size May 22 05:25:10 there is no support jar, just plane old sherlock action May 22 05:25:13 when i updated i had to re-add my referenced jars again a few times and do a rain dance before it would start including the jars in the dex again May 22 05:25:19 ABS depends on support jar May 22 05:25:26 you need to ensure it's being included May 22 05:25:54 the new update puts it as Android Private Libraries May 22 05:34:31 any of read a good android sdk book to learn how to build apps or did you just jump right in? May 22 05:35:14 Jumped in. Of course, those were simpler times. May 22 05:36:20 what you mean? in terms of compeition or has the sdk got really complicated? May 22 05:40:10 damn May 22 05:40:13 just updated to the latest May 22 05:40:22 still getting same error May 22 05:41:01 05-22 01:40:28.005: W/dalvikvm(18066): VFY: unable to find class referenced in signature (Lcom/novoda/imageloader/core/ImageManager;) May 22 05:43:34 look higher up May 22 05:43:39 it will tell you what's wrong May 22 05:53:30 lesson of the day: java does NOT like static classes May 22 05:53:42 use singletons instead May 22 06:03:53 that makes no sense and lacks any semblance of context May 22 06:04:14 do you guys have any tricks on how to get noticed for a featured spot? May 22 06:04:24 tips rather :) May 22 06:06:11 hi May 22 06:06:16 any grouper folks awake? May 22 06:17:06 hi all May 22 06:19:00 hiho :c May 22 07:14:50 Does anyone have any clue why NDK reports bluetooth mouse right and middle buttons as AINPUT_EVENT_TYPE_KEY? May 22 07:16:11 (i.e. calling AInputEvent_getType(event) on AInputEvent* received to OnInputEvent returns 1 May 22 07:43:40 I have a Button that use custom style, how can i made it like inactive, i mean i can set enable=false but also i want that this buttons(picture in background) have different transparency. May 22 07:46:22 state drawable May 22 07:47:02 heho May 22 07:47:59 i've got a problem with the android emulator. i want to test something while my app is offline, and watch logcat meanwhile. but when i set the emulator offline(F8), logcat simply says "- waiting for device -"... ;/ May 22 07:48:02 what can i do? May 22 07:57:04 Zharf: i should set in for button itself or bitmap that is used as a background ? May 22 07:58:06 button background, it should then choose the bitmap based on button state... May 22 08:01:43 Nebukadneza: The messages do not appear at all when you reconnect after testing and do adb logcat? May 22 08:02:36 when reconnecting, i'd have to adb kill-server; adb start-server in order to get logcat to connect again May 22 08:04:40 still, they should be there May 22 08:04:50 mh ;/ May 22 08:04:52 I just tried it May 22 08:05:02 yeah, after restarting adbserver i do get them May 22 08:05:05 And I was able to see the messages that were sent there during offline May 22 08:05:30 Okay, so basically you are asking if there is a way to be offline without the logcat being offline? May 22 08:05:39 so you would get them in real time May 22 08:06:01 well, at least without restarting adb-server (which makes eclipse barf) May 22 08:06:04 Zharf: you mean that i should have two background images one normal and second transparent and switch them ? May 22 08:06:30 I don't know if there's a way not involving a restart May 22 08:06:49 Why you don't just use the console to logcat it when you need that one? May 22 08:07:16 And then just restart eclipse after you're done with it :) May 22 08:07:27 urgh May 22 08:07:41 hetii, the state drawable does the switching, but pretty much yeah May 22 08:08:54 i try by btn.setAlpha(100); but the picture is still the same May 22 08:11:55 hello people May 22 08:12:22 have somebody sucessfully used Robospice with OAuth ? if so could somebody point me to a working example ? May 22 08:14:25 Zharf: this is what i have currently: http://pastebin.com/KwCfcyd9 May 22 08:26:15 whats wrong with the recent update??? May 22 08:26:23 i cant reference my own library projects May 22 08:26:54 ok the sdk installer missed something May 22 08:28:30 hetii, http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList May 22 08:29:49 sure bit still it will require to provide more bitmaps in my resources but i prefer do it by setting some animation or alpha instead making new bitmaps May 22 08:31:21 or does somebody knows a cool rest library which comes with oauth out of the box ? May 22 08:39:13 hetii, I believe you can extend StateListDrawable maybe to that effect, not sure if it would work, don't ask me how, etc ;) May 22 08:40:27 I did it by: http://pastebin.com/kf4YSm2e May 22 08:43:16 something new happened in support for AMD processors or ATI graphics ? http://devgurus.amd.com/thread/166637 May 22 09:11:45 hi all May 22 09:12:22 quesiton: how can i debug and check a centain varaibla (items inside arraylist) can't find anywhere where the size is changig May 22 09:12:38 use the debugger if you're in eclipse May 22 09:12:52 double click on the line in the sidebar to add a breakpoint May 22 09:12:58 and how can u see the values of an arraylist all the time? May 22 09:13:11 hit debug as instead of run as May 22 09:13:17 i know, but would like to know where the values are chancing May 22 09:13:32 Well look under the variables section in the Debug perspective May 22 09:14:09 that's empty May 22 09:14:27 it is empty until you hit a breakpoint May 22 09:14:32 then it gets filled May 22 09:14:41 ok tnx May 22 09:17:48 would someone be able to tell me what's wrong with my code/what line is wrong from viewing a logcat dump? May 22 09:18:04 Is it a good practice to overwrite notifyDataChanged in an array adapter to perform additional tasks (e.g. sorting) after refetching data from a source? May 22 09:18:58 because I've absolutely no idea what I'm looking at tbh... http://pastebin.com/Wq7q2iUh May 22 09:20:30 (Sorry, that link is incorrect) May 22 09:21:48 http://pastebin.com/NprbXZfc May 22 09:22:00 ups THEY did it again! May 22 09:22:12 google played with the libraries May 22 09:38:25 How do you write tests with complicated data structures? May 22 09:38:39 conor_f: are you trying to get the camera from a emulator? May 22 09:39:03 Hi, sorry for i distracting you, i interested in the question about up button in android, and i believe that button enters in difficulty non developer user, am i right? I would like to discuss this May 22 09:39:30 conor_f: btw, you app is skipping a lot frames, were you debugging or running? May 22 09:40:03 FrancescoV: debugging May 22 09:40:27 I literally only started with Android two days ago :P I'm not good at this at all May 22 09:40:33 conor_f: ok, but you see in your log that your application is doing to much on its main thread May 22 09:40:36 Yeah, I am getting the camera from the emulator May 22 09:40:38 yeah May 22 09:40:47 I should pass it off immediatly May 22 09:41:07 are you starting your camera with an easy intent? May 22 09:41:47 easy intent? I'm not using any intents for the part that's not working May 22 09:42:27 are you following a tutorial? May 22 09:42:32 no May 22 09:42:39 :P May 22 09:42:52 I'm just changing the visibility of some buttons and the preview May 22 09:43:22 ok, so you aren't calling de default camera application on the device? May 22 09:43:38 oh no. I'm trying to learn the Camera API May 22 09:44:52 have you added permissions? May 22 09:45:18 yes May 22 09:45:58 the only problem I have at the moment is when I take a picture and hit recapture afterwards, it crashes May 22 09:46:14 if I rotate and then press recapture, it works fine... It's mind boggling to me :P May 22 09:46:26 check this out: http://www.vogella.com/articles/AndroidCamera/article.html May 22 09:46:33 to check if there is a camera available May 22 09:47:03 oh, you see your camera? May 22 09:47:19 yeah May 22 09:47:50 and can take + save pictures and go back to the beginning to take another picture May 22 09:48:10 but when I just take a picture, then press recapture without rotating or pressing anything else, it crashes May 22 09:48:41 maybe the service is bussy? May 22 09:49:02 are you developing this on your own or using a site with an example? May 22 09:50:16 it's a mixture of sample code and my own edits/making it fit my purpose May 22 09:50:24 but I understand everything that's happening in it May 22 09:51:52 run your app instead of debugging en check how many frames are skipped May 22 09:52:24 Is it possible to grab input (just one key, like F1) outside the application using BroadcastReceiver? May 22 09:53:26 FrancescoV: I don't know how to do that and what would that tell me about where my problem is? May 22 09:54:12 because maybe your trying to do too much on your main thread, then the system is skipping parts of your code May 22 09:58:24 hmm... ok. Thanks for your help May 22 09:58:40 I have to start my study now though May 22 09:58:51 I'll talk again. Bye #android-dev May 22 09:59:27 Somebody ever used the GestureOverlayView? May 22 10:00:12 I must develop the same situation like the Gesture Search application. But can't find out how the listview is still reacting on a swipe May 22 10:05:34 Oh, cool, just reading about xbox one. It allows me to watch TV on my TV. Oh wait... May 22 10:05:47 they shoulda gone with android :) May 22 10:22:27 I'm trying to create tests for my project that uses ActionBarSherlock but when I try to run it says "java.lang.IllegalStateException: You must use Theme.Sherlock, Theme.Sherlock.Light, Theme.Sherlock.Light.DarkActionBar, or a derivative." although when I run the application itself and not the tests this doesn't happen May 22 10:22:28 why are private libraries not put in my project? May 22 10:22:33 is anybody using android annotations for production code? May 22 10:23:26 ok they added a "click here" button ;) May 22 10:49:17 hello, i'm starting a new activity and passing an intent with extras. but in the new activity calling getIntent get extras the map is null, no values. what do i miss? May 22 10:51:59 did you put the bundle on the intent with setExtras(bundle)? May 22 10:53:02 putting a single string, test purposes May 22 10:53:23 just found out, i could maybe set wrong flags... May 22 10:53:50 i'm starting new activity and setting flag FLAG_ACTIVITY_NEW_TASK May 22 10:54:10 and then i'm trying to access the intent in the on create method with getIntent May 22 10:54:55 do i have to override onnewintent method to get my data? May 22 11:09:49 shakeponk: http://stackoverflow.com/questions/2091465/how-do-i-pass-data-between-activities-in-android see 2nd answer May 22 11:12:15 I'm trying to create tests for my project that uses ActionBarSherlock but when I try to run it says "java.lang.IllegalStateException: You must use Theme.Sherlock, Theme.Sherlock.Light, Theme.Sherlock.Light.DarkActionBar, or a derivative." although when I run the application itself and not the tests this doesn't happen May 22 11:13:10 FrancescoV: yeah, i'm doin it quite the same way, but there is nothing in the intent extras. i'm starting a new activity from a simple class. had to add this mentioned flag. could this be the problem? May 22 11:14:16 for sharing juist one string, you don't need any flag May 22 11:16:16 http://pastebin.com/U6rvJ8Pu May 22 11:16:55 Ge0rG: i avoid that stuff :) May 22 11:16:59 FrancescoV: yeah but i got an exception which stated that if i'm starting activity from a non-activity class i need this flag May 22 11:17:16 g00s: had some bad experiences with it? May 22 11:18:14 shakaponk, your simple class, is it extending from something? May 22 11:18:23 not this one; i don't mind boilerplate that much May 22 11:18:40 this handles "micro" boilerplate May 22 11:18:53 implementing a content provider is macro boilerplate ;p May 22 11:18:53 FrancescoV: no it doesn't May 22 11:19:48 g00s: in android/java there is sooo much boilerplate May 22 11:20:00 yeah :( May 22 11:20:04 at so many levels ... May 22 11:20:18 then you start uing all these little libraries that fester on their own ... May 22 11:20:49 shakaponk, try using simple context instead of applicationcontext May 22 11:20:51 which reminds me... I need to write a PreferenceScreen May 22 11:21:00 or should I go straight to fragment? May 22 11:21:05 and on which line/code is there an error? May 22 11:21:36 FrancescoV: no error just no data... everything else works fine... activity starts... May 22 11:22:52 oké found it May 22 11:23:52 FrancescoV: do you mean me? :-) May 22 11:23:57 in your intent, your juist putting one extra, in your activity, you ask your extraS --> bundle . use Bundle bundle = new Bundle(); bundle.putString("id", id); intent.putExtras(bundle) May 22 11:24:10 understand? May 22 11:24:39 yeah, sure, get it... but how comes all the examples on stackoverflow etc work? May 22 11:25:08 you weren't putting extraS but one extra in your intent. easily, use always a bundle, then you can get your data via getInten().getExtras() (= bundle) May 22 11:25:37 ok, thx. i'll try. i think it'll work :-) thx for your efforts ;-) May 22 11:27:47 ok, tell me if you need more help May 22 11:27:49 FrancescoV: perfect :-) May 22 11:27:53 ;) May 22 11:29:18 hello, im trying to use geocoder to gimme my GPS address. i can retrive lat' and long' numbers but when i try to translate into address, it returns null. please help me. here is my java code. only one activity http://paste.debian.net/5733/ May 22 11:31:39 omid8bimo, i'm using an asynctask for translating my lat & long into a read address May 22 11:31:43 interested in code? May 22 11:33:01 hey I have a weird issue.. and I dont have any of the code here but thought I could tell someone and you could might give me ideas for what to check May 22 11:33:41 I have an ArrayLisT that contains set/get name, value, id May 22 11:33:55 P3nnywise: can you explain your issue shortly? May 22 11:34:03 I think so May 22 11:34:12 I feed a listview adapter with thi arrayList May 22 11:34:30 when you click an item.. you get a popup saying "this is the current .value. on your item.. change it to something" May 22 11:34:34 and you can write 23453534 May 22 11:34:38 and it overwrites the .value May 22 11:34:50 I then update the listview adapter.. and I can now see the newly added value May 22 11:34:56 I can open it again and change the number.. you get the picture May 22 11:35:15 here is the problem... it doesn't work.. the first time.. first time I open the dialog, enter a number and hit okay May 22 11:35:18 it doesn't change the value May 22 11:35:26 always the first time May 22 11:35:31 close app.. open again.. doesn't work the first time May 22 11:35:36 works with no probelms after that May 22 11:35:51 yes May 22 11:36:24 I mean obviously my code works.. cause the second time.. .third etc.. May 22 11:36:28 it updates just like its supposed to May 22 11:36:36 but not the first time, never the first time May 22 11:36:45 FrancescoV: can you paste it please if its not that much trouble? is asynctask better than geocoder? May 22 11:37:20 p3nnywlse: so only the first time no reaction? May 22 11:37:32 yes May 22 11:37:45 I add things to the basket.. all start out with 1 in value May 22 11:37:54 I try and enter a number and hit okay.. the list isn't updated May 22 11:37:59 next time.. exactly same procedure May 22 11:38:00 it works May 22 11:38:05 omid8bimo, for location: use asynctasks: i'm using one asynctask to get the best location (lat - long) , another asynctask for getting the real addres for lat long May 22 11:38:48 debugged it already? May 22 11:39:05 my list, is being held in a DataHandler class.. Singleton, so I just getInstance().ArrayList.. each time I work with it May 22 11:39:28 it would make sense to me if I by mistake.. duplicated an object somewhere or something May 22 11:39:32 but then .. why would it work the next time May 22 11:41:04 hmm, good question, i'll try to search something May 22 11:44:28 anyone got the play services lib working in intellij? I get this error https://gist.github.com/anonymous/5626949 when i run this code https://gist.github.com/anonymous/5626952 , the isGooglePlayServicesAvailable() runs fine May 22 11:47:47 omid8bime: still here? May 22 11:53:25 Hey guys, I have as little problem with android studio. Can anyone help me ? May 22 11:56:12 No one ? :( May 22 11:56:36 Kentin: wait a month and try again :) May 22 12:04:22 i want my emulator to have a internet connection, why does it not have it out of the box May 22 12:07:37 What are minimal desktop specs to run some emulators plus sdk+eclipse? May 22 12:08:14 When I "import android.accounts.Account" I get a compiler warning "android.provider.Contacts in android.provider has been deprecated". Any idea what I should be doing instead? May 22 12:11:15 is any bode here?) May 22 12:11:33 body*) May 22 12:14:27 Yes. May 22 12:30:36 Whhen doing getIntent(); in debugging, How can I tell which component called the present activity? May 22 12:31:37 How do I know which Activity fired an Intent? May 22 12:35:10 * hackkitten rejoices at the speed of an Atom/HAX-based AVD (o/ May 22 12:40:35 Activities can only be launched by Intents? May 22 12:43:17 crised: you would like to know which activity started the new launched activity? May 22 12:44:28 Anyone here uses unity? May 22 12:45:22 When will we get 4.3? May 22 12:46:34 FrancescoV: yes May 22 12:47:41 crised: you can use a Bundle and use putString("caller", "callername"); on the bundle, then put the bundle on the intent with intent.putExtras(bundle); --> in your new activity, get your caller with getIntent().getExtras().getString("caller"); understand? May 22 12:50:51 FrancescoV: yes May 22 12:51:35 is it possible to use a different backend for a PreferenceActivity? i.e. an sqlite db? May 22 12:53:03 FrancescoV: let me understand something, all activities are launched by Intents, right? May 22 12:53:57 yes May 22 12:53:59 so in the manifest when you specify an Activity, and it's intent filter, you are saying launch this activity only when you get an intent of this type? May 22 12:54:30 crised, are you developing an easy app? May 22 12:54:43 (I understand the case of calling an activity by the class name) May 22 12:54:50 FrancescoV: nope, what's an easy app? May 22 12:55:15 first app / using only simple activities with couple of views May 22 12:55:18 I'm trying to figure out how this works before actually start to deelop May 22 12:55:34 FrancescoV: please tell me that about IntentFilter May 22 12:57:57 Did anyone manage to get StickyListHeaders running with Android Studio? May 22 13:09:14 you can override your resolution with "am". very cool. May 22 13:11:03 Hi folks, just update ADT plug in and ddms, now when I compile and run a project on my device, I get a VerifyError. I tried cleaning it, I checked the code but nothing seems wrong. It was wxorking fine. Any clues? May 22 13:13:17 Anyone here uses Unity3D? May 22 13:21:51 fuu i got that play lib working for maps v2, but now it just keeps complaining about missing resources May 22 13:23:15 lol May 22 13:33:14 Is it to be expected, that Android Studio (IntelliJ) will be the new IDE to develop, no Eclipse anymore? :-) May 22 13:33:32 yeah, in some months or so May 22 13:34:20 Ge0rG: makes me thinking whether I should switch to IntelliJ, too May 22 13:34:56 dunno. I thin I need to switch to a machine with more RAM May 22 13:35:02 4G is just not enough for chrome + eclipse May 22 13:35:57 thank god they ditch eclipse May 22 13:37:52 what would be the easiest way to use a PreferenceFragment backed by sqlite / program logic, instead of SharedPreferences? May 22 13:44:39 how can you remove all fragments that are inside one framelayout? May 22 13:53:29 What is capturable outside of my app? May 22 13:53:36 using a BroadcastReceiver May 22 13:58:32 newlex: http://developer.android.com/guide/components/intents-filters.html lists them May 22 13:59:13 well actually, http://developer.android.com/reference/android/content/Intent.html lists them all May 22 13:59:32 the intent filters page shows you how to use some common ones May 22 14:00:03 hello May 22 14:00:38 the new developer console after google I/O suggests me to add some languages to my app, that it already have... May 22 14:00:54 how I show to developer console what languages a app have? May 22 14:01:03 on iOS it goes on its manifest file May 22 14:01:33 speeder: do you have the languages set through the resource system or separately? May 22 14:01:48 I think it checks for presence of localized strings in resources May 22 14:04:06 I see May 22 14:04:15 it does not use the resource system at all May 22 14:04:17 it is a game May 22 14:04:22 that use custom frameworks and whatnot May 22 14:06:01 speeder: well, you can ignore it, or fake it May 22 14:06:21 (put a basic strings.xml for each of the supported languages, and it should pick on it) May 22 14:06:39 though I'd actually recommend ignoring it May 22 14:07:20 it does not affect my SEO does it? May 22 14:07:36 I mean, if a french searches for my app, he will have a harder time because I don't have a french strings.xml? May 22 14:07:58 (the app supports french, and the store has a french description available) May 22 14:08:07 speeder: I think the description matters more for that May 22 14:08:24 app search doesn't search through contents of the APK, iirc May 22 14:10:27 I see May 22 14:10:51 I know it does not search on the connects of the app, but the fact that the optimiser is nagging about languages, it can make a developer worried May 22 14:23:47 anyone knows good websites with android tutorials or example apps? May 22 14:24:17 can you get a Fragment that was added in a previous activity? May 22 14:24:38 speeder: the app is always available worldwide but it may help your rank in certain countries if you have the dedicated strings.xml file (even if it's empty) May 22 14:24:51 besides, how are you doing app name? I'm sure you have one already :P May 22 14:25:10 deleet: I am using Corona SDK, it does not support strings.xml May 22 14:25:12 :( May 22 14:25:42 speeder: I'm sure that you can still add them, just slap it on the res folder and dont reference them May 22 14:25:55 that's what the store looks for I think May 22 14:26:04 I don't have a res folder May 22 14:26:08 make one :P May 22 14:26:22 Corona will save a "res" folder inside a folder named data May 22 14:26:50 can always post process your apk and add it May 22 14:27:52 how? May 22 14:28:00 apktool stopped working a while ago May 22 14:31:35 it's just a zip file May 22 14:31:44 unzip it, put it in, zip it, sng May 22 14:31:47 *sign May 22 14:34:42 hummm May 22 14:34:54 if I put the translated names it will work? May 22 14:35:04 (this is one of the stuff I am really sad Corona does not do) May 22 14:35:24 I just unzipped one (I already knew they were zips), and opened the manifest… iti s just a sequence of numbers May 22 14:35:33 sorry me, but what again is this _new_ android suite called? May 22 14:35:36 manifest.xml on the api is something else? May 22 14:35:40 that ide that's based on eclipse May 22 14:35:57 spobat: you mean the one based on intelliJ? May 22 14:36:03 yep May 22 14:36:08 android studio May 22 14:36:14 ok, thanks May 22 14:37:24 I knew it was something with "s" :p May 22 14:39:59 anyone know what the status is of including .aar packages from a remote maven repository? I can pull down the artifact but it doesn't want to build properly :/ May 22 14:40:58 Hey guys i want my app to go back to the start-screen (main-activity) after a few minutes of inactivity. What would be the easiest way to implement it? Any Keywords i can search for? Cheers May 22 14:42:49 olarf, Handler May 22 14:43:40 hello, I am a bit confused about how to handle background tasks in my android app. I am starting a thread inside onStart() method, and I would like to change UI according to what is being done in that thread, let's say the thread is counting and I want a TextView with current number. How do I get that info from the thread? And where in my code should I update the TextView? May 22 14:44:43 gmag: use a handler and send a message May 22 14:45:00 your thread cant touch the ui and the handler will deliver your message on the ui thread May 22 14:46:10 deleet, so, my thread should "raise" a message, and that would be listened by some Handler in UI thread? May 22 14:46:16 gmag: you can use a handler, for ex: a callback interface, you must know that the onPostExecute method is executed in UI thread ;) May 22 14:46:42 if it's just a message (Toast), you can easily do it in onPostExecute May 22 14:48:07 er... ok, I already have the Thread doing stuff, I should stick to the Thread approach. Should I still use that onPostExecute? May 22 14:48:58 Hi guys, I'm having some issues when building an android phonegap project. When running 'ant release' I get errors related to the classpath. It says what my JAVA_HOME is "/opt/java/jre1.7", however if I do echo $JAVA_HOME I get the right value: /opt/java/jdk1.7. Is this wrong value being saved somewhere on the project? May 22 14:50:41 gmag, what is your asynctask doing? what must be shown (message)? May 22 14:51:53 FrancescoV, simply put, my thread is counting 0, 1, 2, 3, 4, ... Some kind of a "progress bar". I would like to change TextView with the correct number May 22 14:54:35 FrancescoV, do you understand the idea? May 22 14:54:39 gmag: don't know if you can transform first reaction on this: http://stackoverflow.com/questions/5457493/asynctask-return-value May 22 14:54:45 yes May 22 14:55:09 but i'm using a callback interface for returning Lists, i think the stackoverflow link is working, but haven't tested yet May 22 14:57:10 gmag, tell me if it works, else i will show you how i do it all the time (with interface) May 22 14:59:57 FrancescoV, that get() function seems to be blocking May 22 15:00:04 FrancescoV, not sure it that is a good thing May 22 15:00:11 i keep getting "call requires api level 14 current min is 14" in android studio. i am not sure if that's a real thing or if it's just trolling May 22 15:00:38 adding @TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH) does fix it May 22 15:00:41 FrancescoV, I also found this: http://www.techotopia.com/index.php/A_Basic_Overview_of_Android_Threads_and_Thread_handlers But I am not sure if it works May 22 15:02:40 gmag: are you using an asynctask or a new runnable? May 22 15:02:50 FrancescoV, runnable May 22 15:03:10 hm ok, i'll search a little May 22 15:03:49 gmag: pv talk? May 22 15:04:07 FrancescoV, sure May 22 15:18:30 where, in android studio, do I specify the sdk? May 22 15:19:35 spobat project view, stand on module, f4 May 22 15:20:47 alright, thank you xorgate :) May 22 15:22:23 wow, is it *really* possible to write in Java 8 for Android now? May 22 15:23:16 ah, probably not May 22 15:23:46 Hey guys, how do I have the same view as the android's phone app so that you can see the numbers you type. Like a calculator lcd May 22 15:24:14 a textView ? May 22 15:24:23 12 buttons + textView :} May 22 15:24:28 oh :P May 22 15:24:31 oh yeah, forgot the buttons May 22 15:24:33 dam May 22 15:24:58 so just one large textview with some custom font May 22 15:25:01 and backgruond etc May 22 15:25:12 up to you May 22 15:25:23 awesome May 22 15:25:39 you cant ask some1 to textually design it for you too :) May 22 15:25:47 lol :P May 22 15:26:13 I have a neat ideea for an app StingRay_ May 22 16:05:51 hi people. i'm new to android dev. experimenting with taking a big image (2560 x 1440px), putting it in an image view, and scrolling around. only part of the image is to be displayed on the device at any one time. it works with smaller images but not this one. my xml is at http://pastebin.com/qE2XMfc8. can someone give me a hand on debugging this? is there a maximum size for images in an imageview May 22 16:05:52 ? May 22 16:07:24 antgel: did you put it inside a a scrollview? May 22 16:07:41 sleepynate: yes, see my paste May 22 16:07:53 i reckon it's just too damn big May 22 16:08:08 basically what is happening is the app doesn't load, and there are no errors that i can see May 22 16:08:30 in you imageview set adjustviewbounds to true May 22 16:10:05 sleepynate: trying it now. but why would that fix the behaviour i'm seeing? i'm all for preserving aspect ratio, but the app doesn't even load and hangs May 22 16:11:08 nope, same behaviour May 22 16:11:47 antgel: does it actually hang? i imagine what is happening is that it's butting up against the allocated layout margins, can't adjust them, and deciding it can't put the imagine inside it May 22 16:11:48 if you make your image half that size does it load at all? May 22 16:12:42 if you're hitting the memory limit, you can either scale it or get more ram :) May 22 16:13:00 sleepynate: you mean half the dimensions (on one axis)? is this a problem of *dimensions* or *file size*? May 22 16:13:04 if it's a view bounds issue, then you'll wangle with the layout properties May 22 16:13:16 sleepynate: but if it was a memory issue, wouldn't i get some sort of error? May 22 16:13:48 in a bitmap, dimensions are proportional to file size :) May 22 16:14:06 antgel: if you let it sit forever, you should get an error eventually May 22 16:14:12 might take minutes though May 22 16:15:06 sleepynate: well, that's not always true, when compression is taken into account. :) this is a png May 22 16:15:49 sleepynate: actually, the app *does* load, but it crashes after like 2 or 3 seconds. sorry for my mistake. does this mean that there should be an error somewhere? May 22 16:16:14 * antgel is embarrassed May 22 16:20:12 sleepynate: ping? May 22 16:21:49 antgel: I would suspect that is just too large May 22 16:22:11 and to do it you would need to have it in quadrants and some nice tile stream loading May 22 16:22:16 I'm just guessing though May 22 16:22:19 :) May 22 16:22:21 sleepynate, StingRay_: okay, i looked in the logcat, we have out of memory error! i should have known to look there but i'm new May 22 16:26:37 or look at the gallery source May 22 16:26:53 it will probably use bitmapOptions to do something to make it work May 22 16:27:47 StingRay_: that's interesting - what do you mean by tile stream loading? like a google maps / OSM-type thing? that sounds hard to implement. are there any libraries / examples of this that i could use? May 22 16:27:51 i really want to do this May 22 16:28:19 like I said, gallery source May 22 16:28:34 StingRay_: ah i just saw your comment about gallery. thanks May 22 16:28:38 and by tile loading I mean a X by X grid May 22 16:28:49 like most games do May 22 16:29:09 and google maps app probably May 22 16:29:53 StingRay_: okay, good food for thought, will investigate further May 22 16:29:56 thanks for the help May 22 16:30:01 i thought this would be the easy bit May 22 16:30:38 StingRay_: when you say bitmapOptions do you mean BitmapFactory.Options? May 22 16:30:45 ya May 22 16:30:58 allows kinda of a preview read I think May 22 16:31:08 then allows you to load in out things May 22 16:31:10 iirc May 22 16:31:27 like load this 2k image but only at 100x100 May 22 16:33:36 urgh, Apple still hitting with their patents at the S4 May 22 16:33:39 will they ever stop May 22 16:34:15 seems they want to draw Google in as well, as 2 of the 5 relate to Siri and Google Now is seen as the infringer May 22 16:39:54 only in the states though right ? May 22 16:40:11 where the patent system is a bit….erm…. odd May 22 16:51:09 Yah but we're killing those prenda trolls May 22 17:02:41 hello! May 22 17:02:47 hi May 22 17:02:48 please help me with my launch, up vote this: http://www.reddit.com/r/Android/comments/1euebd/jigsaw_game_where_the_image_is_a_animation/ =D May 22 17:03:01 also I would appreciate if anyone know where android fans go see reviews May 22 17:03:07 meteoritic does not have android section May 22 17:03:07 :( May 22 17:08:49 can anyone recommend one of those app recipes books? i have someone new joining the team who's not familiar w/android and looking for a way to ramp him up as fast as possible May 22 17:10:41 hi all May 22 17:10:54 how do I resolve my android SDK installation folder? May 22 17:11:08 im trying to deploy my Unity game to Android May 22 17:11:16 by following the instructions here: http://docs.unity3d.com/Documentation/Manual/android-sdksetup.html May 22 17:11:29 app recipes? Like tutorials for common stuff? http://www.mkyong.com/tutorials/android-tutorial/ May 22 17:11:42 step 4 says: "you should select the root folder of the SDK installation" May 22 17:11:52 but what exactly is the root folder? May 22 17:21:29 anyone? How do i resolve the andoird SDK root folder? May 22 17:22:20 um... it's the folder the SDK is installed in, surely? May 22 17:34:31 !khanify iosched 2013 May 22 17:34:39 *pout* May 22 17:45:50 I am trying to follow the first reply on this thread: http://stackoverflow.com/questions/7693054/change-ui-elements-by-threads-in-android But I am getting an error since I have my Thread class in a different file and "updateTextView" is unkown in that file... how should I make that work if the Thread class is in a diff file? May 22 17:45:54 hey all setting up a script that uses some existing .java files....will it effect anything if i remove the package declaration? May 22 17:47:29 basically using it to set up eclipse projects :) May 22 17:48:04 es May 22 17:48:10 the package declaration is a must in java May 22 17:48:49 I'm having some problems. I completely changed one of my layout xml files and now R is not being generated. From googling I realize this is from having some sort of (weird) errors in my XML layouts. Anyone have any idea what it could be? May 22 17:49:42 conor_f: did you clean ? May 22 17:49:45 yeah May 22 17:49:47 hirsty: if it's empty the file must be relative to the prjet path ... the path and the namespace of the package has to be in sync May 22 17:49:59 all that did was remove all the gen files May 22 17:49:59 this is the moment I have to control myself not to start begging for help :( May 22 17:50:14 conor_f: then you have errors in your xml :) May 22 17:50:22 open what you changed and look May 22 17:50:47 I have checked and checked again. I can't find anythin May 22 17:50:59 *anything May 22 17:51:04 post the xml on pastebin May 22 17:51:06 and the xml is the only thing you changed ? May 22 17:51:17 StingRay_: no. I changed an activity too May 22 17:51:24 but only one XML file May 22 17:51:30 pastebin it then May 22 17:51:34 kk May 22 17:52:44 did you remove the gen directory, too? May 22 17:52:52 if yes recrate an empty directory "gen" May 22 17:53:17 monsti: no I didn't May 22 17:53:19 http://pastebin.com/PrsU8ejP May 22 17:53:25 the directory is there, just empty May 22 17:54:11 any line with the error? May 22 17:54:44 conor_f: whats your min target version ? May 22 17:55:05 14 May 22 17:55:13 thats the min ? May 22 17:55:28 yeah :P May 22 17:55:39 whats your project built against ? May 22 17:55:49 Hey guys, where does Android studio keep the ADB tools and all that? May 22 17:55:51 "built against?" May 22 17:56:02 yeah the target May 22 17:56:13 oh May 22 17:56:13 17 May 22 17:56:28 ok well It's not your ?android:attr/buttonBarButtonStyle May 22 17:56:32 then May 22 17:56:34 nope May 22 17:56:36 erm May 22 17:56:39 <|0xD34D|> another silly question, do the strings you reference exist? conor_f May 22 17:58:18 |0xD34D|: yeah, double checking that right now May 22 17:59:02 <|0xD34D|> honestly if there is a problem with generating R.java, it should spit out the errors May 22 17:59:19 |0xD34D|: they all seem to be there May 22 17:59:24 where would it spit them to? May 22 17:59:28 <|0xD34D|> what IDE? May 22 17:59:31 Eclipse May 22 17:59:35 <|0xD34D|> problems tab May 22 18:00:01 <|0xD34D|> usually at the bottom with Javadoc, Console, etc. May 22 18:00:13 sorry, it was over in my debug tab May 22 18:00:28 nope, just 18 instances of "R cannot be resolved to a variable" May 22 18:04:38 conor_f: did you change resourse name to maybe a conflicting one ? May 22 18:04:47 Im trying to cancel a countdowntimer, but even though ive canceled it (i had saved a reference to it), it wont stop. So if i start yet another countdowntimer i now have two timers running. Anyone experienced something like this? May 22 18:05:06 conor_f: like shmooz said, upper case etc ? May 22 18:05:36 shmooz: What do you mean to a conflicting one? Like a system variable or something? May 22 18:05:58 conor_f: like your xml files cannot be name myXml.xml May 22 18:06:02 yeah you need to stick to naming conventions to not conflict with reserved ones May 22 18:06:09 it has to be myxml.xml May 22 18:06:13 or my_xml.xml May 22 18:06:26 nope, all good May 22 18:15:04 Have anyone here succesfully tried the new Beta Publish functionality in Android Developer console? May 22 18:15:17 alpha yes May 22 18:15:26 I published an APK there 4 hours ago, but am still getting 404 on the URL Google tells me to send to my testers ( https://play.google.com/apps/testing/nilsnett.chinese ) May 22 18:15:26 not promoted anything to beta yet lol May 22 18:15:36 hm.. .maybe I must have alpha first May 22 18:15:40 no May 22 18:15:46 just need all the info filled May 22 18:15:51 and valid market listing May 22 18:15:55 images May 22 18:15:56 price May 22 18:15:57 etc May 22 18:16:14 "pricing and distribution" as well? May 22 18:16:32 total valid market listing info May 22 18:16:36 all of it May 22 18:16:44 wow ok... thanks. Will try May 22 18:20:42 So any aother advice for my predicament? May 22 18:23:21 Undo the changes that fucked up your build, re-apply them one at a time May 22 18:24:56 bleh May 22 18:25:07 It completely changed the layout though May 22 18:25:13 like, entirely May 22 18:25:54 ok. thanks May 22 18:26:43 conor_f: go to Project Properties > Java Build Path > Check the Android Version Checkbox and then Project Properties > Build Project May 22 18:27:07 man, i wish there was something that could take JSON and generate java for me May 22 18:27:28 Like gson? May 22 18:27:55 conor_f: if that doesn't work either then you need to undo the changes and slowly step by step redo and find the error in your code May 22 18:28:27 SimonVT: no, to give me classes i can use with gson May 22 18:29:17 Oh, heh May 22 18:29:19 would be kinda problematic since there is no type information in json May 22 18:29:58 Nilzor: ah good point May 22 18:35:06 shmooz: I had (What I thought) the "brilliant" idea of backing up the "offending" files, deleting every reference to them in the project and then trying to build, but nothing happened. Still errors May 22 18:35:16 have I really gone and messed things up? XD May 22 18:35:41 IDE builds ftl May 22 18:37:09 conor_f: depends what the offending files were but did you try the last thing I said ? ... Project Properties > Java Build Path > Check the Android Version Checkbox and then Project Properties > Build Project May 22 18:39:07 yeah May 22 18:39:10 didn't work May 22 18:39:12 same errors May 22 18:39:44 ok then you have errors in code somewhere May 22 18:39:47 hi guys, I´m developing an application which needs to listen to events (like touch press, etc) outside my application. could you guys tell me how can I do that? May 22 18:41:11 you cannot May 22 18:45:14 even after deleting those files, it's still not building :O May 22 18:46:36 so fix the specific error you are seeing May 22 18:46:39 rather than spray and pray May 22 18:47:01 Can anyone explain me in simple words what a Loader is? May 22 18:47:08 The only error I'm getting is because R isn't getting generated May 22 18:47:18 lol, or you can try deleting the offending project too May 22 18:47:20 according to I/O I saw is something that collect things from UI thread May 22 18:47:33 shmooz: :P -_- May 22 18:48:20 conor_f, usually you'll have other errors, perhaps check the console May 22 18:48:52 crised: http://developer.android.com/guide/components/loaders.html May 22 18:49:04 always in the docs May 22 18:49:06 but using WindowsManager I can add the parameter FLAG_WATCH_OUTSIDE_TOUCH May 22 18:49:21 StingRay_: Still I don't reckon it May 22 18:49:23 WagnerBatista, it doesn't do exactly that May 22 18:49:39 <|0xD34D|> WagnerBatista: and all you get is ACTION_OUTSIDE in that case (when it is outside) May 22 18:49:42 WagnerBatista, it just tells you that a touch occurred outside your window, not where or what exactly May 22 18:49:48 any of you using retrofit run into .RetrofitError: java.io.IOException: No authentication challenges found ? May 22 18:50:10 crised: look at the examples May 22 18:50:14 tis all there May 22 18:50:16 StingRay_: Can you tell me why this activity is launched? https://github.com/donnfelker/android-bootstrap/blob/master/app/src/main/java/com/donnfelker/android/bootstrap/authenticator/BootstrapAuthenticatorActivity.java May 22 18:51:09 crised: not sure what your asking May 22 18:51:16 cause something launched it ? May 22 18:51:31 conor_f: try commenting out parts you suspect and see if you can get it running May 22 18:51:47 StingRay_: When you start that app, you get prompted the username & password, How is this activity launched? May 22 18:52:02 StingRay_: CArouselUI is supposed to be the activity launcher May 22 18:52:26 StingRay_: Don't understand where is the intent that launches this activity, and my doubt has to do with Loaders I guess May 22 18:52:58 at the least the touch coordinates x and y it´s possible to get from my app or it´s not possible either? May 22 18:53:06 crised: no May 22 18:53:41 StingRay_: Can you please tell me the exact line, where this activity is started May 22 18:53:48 ok, thanks so much guys! May 22 18:57:07 crised: no, that would take me too much time May 22 18:57:20 StingRay_: ok May 22 18:57:37 StingRay_: So Loader collect data, and then show it into UI> May 22 18:57:41 ? May 22 18:57:44 Data like what? May 22 18:57:48 not really May 22 18:57:52 look at the examples May 22 19:01:02 JakeWharton: in retrofit what's the best way to specify an app key & token to be sent with each request? May 22 19:01:43 How do you have to send it? May 22 19:01:59 the URL or the post data May 22 19:02:15 Can't send it in the header? May 22 19:02:49 If not, then you'll have to pass it to each method :/ May 22 19:03:13 yeah that's what i'm thinmking May 22 19:03:26 and it looks like error handling is pretty much try/catch ? May 22 19:03:50 And ask whoever made the api to let you pass it in the header May 22 19:03:56 try-catch or use Callback May 22 19:04:24 don't see anything about callback in docs May 22 19:04:41 oh duh, because i haven't read it all May 22 19:05:33 Instead of defining a return type, you put Callback as the last parameter May 22 19:05:43 Pass it a callback when you invoke the method.. And you get two methods May 22 19:05:48 yep, exactly what i needed, thanks! May 22 19:08:06 SimonVT: you at square or just a consumer of their libs? May 22 19:08:18 so I have a custom class that I am using in my app, and I want to send an object of that class over to another intent, I've set that class to implement Serializable and I am using intent.putExtra(String, Serializable value) May 22 19:08:29 Just a consumer :) May 22 19:08:50 i'm going through and ripping out my implementations in favor of theirs. it's awesome. May 22 19:09:12 over at the other intent, how am I supposed to catch that object? so far I know getIntent() and then....I don't know what to store what I get back from intent.getSerializableExtra, or how to turn it back into what it was originally (an array of objects from my custom class) May 22 19:10:00 cast it May 22 19:10:58 Sicp: but not sure a extras Bundle is a good choice for sending sizeable data in serial form May 22 19:12:41 casting it does not work May 22 19:12:53 oh, sorry May 22 19:13:02 typo; so what do you suggest I do otherwise? May 22 19:13:16 what do you mean casting doesnt work ? May 22 19:13:37 nevermind, I had tried that before but didn't even bother to check spelling when the error occurred because I thought it was far fetched May 22 19:13:42 but I looked again and it worked May 22 19:14:03 worked means fulfills its purpose (successfully assigned to another variable of the same type..) May 22 19:16:49 another thing...I have this AT that does some work, and from that work (or when that work is done, I want to be redirected to the second activity) May 22 19:17:26 in preExecute I initialize the intent and in postExecute I am using startActivity(that intent) May 22 19:17:34 I feel this is horribly wrong? May 22 19:18:10 Guys, could the problem be that I've only a "vertical" orientation in that XML file and I never made a horizontal one? May 22 19:18:36 conor_f: what problem ? May 22 19:18:49 R not generating May 22 19:18:59 oh, na, not relevant to it May 22 19:19:06 one other thing May 22 19:19:30 all my other layout files start with a relative layout tag, no May 22 19:19:44 could that be it? Or is there some header that's required? May 22 19:20:07 thats just info May 22 19:20:23 I think you just need the scemas thats it May 22 19:20:43 but that would glow with red marks if there were a prob I think May 22 19:26:08 what is the current recommendation to replace gallery if I'm supporting old devices? May 22 19:26:17 witdgetwise May 22 19:27:20 request.xml:3: error: Error: No resource found that matches the given name (at 'title' with value '@string/action_settings'). :/ what is the action_settings? May 22 19:27:45 A string it seems May 22 19:27:56 gathered that much May 22 19:27:58 :d May 22 19:30:37 Hello everyone! how can I use an android device to use the printer on my local network connected to one of PCs? Thanks in advance. May 22 19:31:17 Hello everyone! how can I make an android device to use the printer on my local network connected to one of PCs? Thanks in advance. May 22 19:36:09 Is ORM really used in Android? May 22 19:36:20 Any Google I/O about it? May 22 19:38:05 Guys I'm actually incredibly frustrated right now. Has anyone any suggestions at all for what I can do? I tried commenting out the offending lines but still won't build May 22 19:38:20 offending lines ? May 22 19:38:27 I thought you did not know what was wrong May 22 19:40:21 I don't May 22 19:40:37 I just commented out all lines that gave me errors (i.e. referenced R) May 22 19:40:57 erm May 22 19:41:07 wrong approach May 22 19:41:18 look at the console in eclipse to see what errors are preventing R from being generated May 22 19:41:27 why would it even both to build R if you dont use it May 22 19:41:32 :) May 22 19:42:32 There are no errors as to why it's not being built May 22 19:44:06 _none_ May 22 19:44:06 hmmm im extracting my proj into my ADT but my R.java keeps getting deleted in gen May 22 19:44:20 where should i put it as to use it and for it to be used and not deleted May 22 19:44:21 conor_f, in the console May 22 19:44:24 not in the errors tab May 22 19:44:37 pfn: Yes, in the console May 22 19:44:45 all it says is DDMS May 22 19:44:46 then choose build -> clean -> all May 22 19:45:08 also dont forget you have "console" "problems" and "errors" May 22 19:45:11 and then rebuild project May 22 19:45:36 the best approach is to use ant to reveal what exactly is failing May 22 19:45:40 annnd nothing May 22 19:45:42 when UI tools fail, learn to use the commandline to figure it out May 22 19:46:44 I agree entirely May 22 19:46:49 But I don't know what to use May 22 19:47:28 I just told you what to use May 22 19:47:28 ant May 22 19:47:48 Do a command line build May 22 19:49:24 I have absolutely no idea how to do that May 22 19:49:28 lemme google May 22 19:49:51 http://developer.android.com/tools/building/building-cmdline.html May 22 19:50:33 ty May 22 19:50:47 is the gen folder cleared on every build? May 22 19:51:50 the gen folder is empty May 22 19:51:58 it is not May 22 19:52:04 cleared on every build May 22 19:54:25 ok well i have a template app with the R.java in the gen folder? May 22 19:54:38 yes, you do May 22 19:54:40 on import the project it seems to go walkies May 22 19:55:03 producing errors in my project May 22 19:55:15 then fix them May 22 19:55:43 they can be fixed on reputting the r.java in the gen folder May 22 19:59:04 wanting to know why it keeps removing it tis all :D May 22 20:01:50 it only gets removed if you clean May 22 20:02:15 rebuilding cleans? May 22 20:02:28 what exactly is "rebuilding" May 22 20:03:00 importing the project saving it to workspace and running it as an android app May 22 20:04:52 how exactly are you importing the project May 22 20:04:59 you didn't import it as an android project May 22 20:05:09 Buildfile: build.xml does not exist! May 22 20:05:09 Build failed May 22 20:05:27 so you wouldn't get gen included May 22 20:05:29 importing as an existing archived android project May 22 20:05:32 conor_f, android update project -t android-17 -p . May 22 20:06:12 :@ First I didn't have ant installed, now android -_- May 22 20:06:23 android comes with the sdk May 22 20:06:30 and ant is trivial to install May 22 20:06:30 (Sorry, I'm frustrated) May 22 20:06:34 Yeah May 22 20:06:43 comes on mac, too, for the most part May 22 20:09:27 BUILD FAILED May 22 20:09:27 /home/conor/Code/Android/adt-bundle-linux-x86/sdk/tools/ant/build.xml:479: SDK does not have any Build Tools installed. May 22 20:14:19 there's your answer May 22 20:14:34 hey pfn May 22 20:14:42 sup home slice May 22 20:15:17 if two broadcast receivers have the same intent-filter and and intent is fired that matches both, what happens? May 22 20:15:30 it's called a "broadcast" receiver for a reason May 22 20:15:32 pfn: it can't be though :/ It was building perfectly before I made those changes May 22 20:15:45 conor_f, run 'android' no arguments May 22 20:15:58 so both broadcast receivers are invoked? May 22 20:16:45 conor_f, the commandline tool doesn't lie May 22 20:20:15 pfn: May 22 20:20:18 thank you May 22 20:20:35 while none of what just happened makes any sense to me May 22 20:20:52 I now have lines in my code that are wrong from ant debug May 22 20:21:23 and sorry for being cranky to you and everyone :P May 22 20:24:44 anyone want to know the error? May 22 20:25:04 in my strings file, I had declared two things with the same id May 22 20:25:09 that's all XD May 22 20:25:18 what a finely balanced eco-system it all is May 22 20:32:22 ah so you didnt just change 1 xml May 22 20:32:35 so blame the flawed starting info ;) May 22 20:32:46 SimonVT: is there a way with retrofit to put something in the middle? i want to make sure that my callback handler gets invoked for every single service call May 22 20:34:43 StingRay_: I thought I said I changed a layout, strings and an activity? :P May 22 20:34:48 probably wrong again though lol May 22 20:36:16 anyway, duplicate string value should have presented an error in eclipse May 22 20:36:25 doesn't explain how you're missing build tools, though May 22 20:37:03 pfn: My set up is most likely screwed May 22 20:37:13 I'm still very n00b May 22 20:38:54 well, don't know how you were successfully able to run ant debug if you didn't have build tools May 22 20:39:39 Passing object between intents: Singletons seems to be very performant. however im seeing discrepancy on this topic (http://www.devahead.com/blog/2011/06/extending-the-android-application-class-and-dealing-with-singleton/). Simply put: Can i create a classic i.e. enum singleton and use refer to this across my activities. If not, what technically is the problem and why must i excend May 22 20:39:39 Application according to the previous URL May 22 20:40:27 funkbox, what do you mean? May 22 20:40:49 Can someone tell me, off the top of their head, what the ADB product/vendor ID is for the Galaxy Nexus? May 22 20:41:04 SimonVT: basically a way to inject a wrapper around Callback so that i can do some processing before handing it off May 22 20:41:12 Trying to play with something and the lsusb result I'm getting doesn't look right May 22 20:41:51 Uh, I don't think so.. Don't see why you would need that tho May 22 20:42:26 One of the callback methods are always called May 22 20:42:42 pfn: running android with no args brought up the SDK manager, then I just installed them and tried again :P May 22 20:42:55 SimonVT: have a data layer that needs to persist this crap May 22 20:43:04 err, not crap. wonderful data. May 22 20:43:28 But why wrap Callback May 22 20:43:49 SimonVT: i guess i could just have an intermediary May 22 20:44:09 SimonVT: it goes client -> service -> sqlite -> client May 22 20:45:31 Consider adding something between client and service May 22 20:45:35 I use Tape May 22 20:46:55 that's a little overboard May 22 20:47:12 i'll just introduce a middle component May 22 20:47:41 https://developer.android.com/guide/faq/framework.html#3 <- please check this out. ggl says singletons are fine.. however they dont mention any activity lifecycle concerns regarding this usage to pass object pointers between processes (activities etc) May 22 20:48:08 onDestroy will garbage collect the singleton May 22 20:48:36 or ? May 22 20:48:44 Well, it solves some issues.. I assume by client you mean activity/fragment.. Those can disappear, and then you have to deal with that. Tape is very fire and forget. I get notified by my contentprovider anyway May 22 20:50:41 I found it easier to not use Callback tho, since I often have to do several service calls right after each other May 22 20:50:55 conor_f, indeed May 22 20:51:29 Callback is async, so you'll have to spawn a thread to do processing when the result is delivered.. Makes it annoying to chain calls May 22 20:51:41 tortal, onDestroy won't collect singletons May 22 20:51:51 onDestroy isn't a garbage collection process May 22 20:52:02 yea, but all references to the object will be gone May 22 20:52:15 except in the singleton May 22 20:52:23 what is "in the singleton" May 22 20:52:33 some object i want the other activity to have May 22 20:52:39 class objects are never garbage collected May 22 20:52:47 no, what is the definition of "in the singleton" May 22 20:52:54 but statics are May 22 20:52:59 static members are never garbage collected May 22 20:53:10 unless you explicitly set them to null, to remove the reference May 22 20:53:13 static fields are part of the root set May 22 20:53:34 only way static fields would ever get garbage collected would be to unload the classloader that contains them May 22 20:54:23 u´re right May 22 20:54:55 so the simplest approach of using the singleton pattern when passing obj-references is to have some singleton (e.g. enum) with static fields May 22 20:55:28 you're throwing lots of words around, but it doesn't sound like you really understand what they mean May 22 20:55:56 well im only on my first uni year May 22 20:56:04 im trying to understand May 22 20:56:09 a single class typically has a private constructor, and a public static final field that contains a single instance of that class May 22 20:56:24 a singleton class* May 22 20:56:29 yeah that i know May 22 20:56:45 i just wonder what Application (class) can help me wit this May 22 20:56:47 that single instance will never be garbage collected, because of the static field that references it May 22 20:58:17 http://www.devahead.com/blog/2011/06/extending-the-android-application-class-and-dealing-with-singleton/ <- here is a post about confustion of the static fields (ctrl+f "static variables bound") May 22 21:00:29 ok simply put.. static modifier will ensure that the dalvik VM will consider this reference to always be active May 22 21:00:37 i know this is true in vanlilla May 22 21:00:59 but android paradigm is so different.. remember im coming from swing/awt/netbeans.. yeah you get it May 22 21:02:24 Thanks for all the help again guys :) May 22 21:02:27 tortal: I would be highly skeptical of that article :) May 22 21:03:04 JesusFreke: thx for the input. but can you explain why some insist on extending the Application class to make some kind of "global singleton environment" for all... i dont think it's the only post ive seen about this May 22 21:04:11 but as i askeed before: dalvik wont de-initialize my singleton static fields even on onDestroy() May 22 21:04:23 No it won't May 22 21:04:30 Does anyone know where the source code of things like ViewDragHelper are? May 22 21:04:35 I keep seeing padding between my Button and its parent LinearLayout…tried setting layout_gravity on button to left, but that doesn't seem to get rid of it... May 22 21:04:37 so wtf is that blog post about May 22 21:04:41 romainguy: thx May 22 21:04:55 but why does he insist in extending Application? i really want to understand May 22 21:05:00 hwrd|work: the easiest way - google for ViewDragHelper.java ;) May 22 21:05:05 tortal: "so wtf is that blog post about" that was exactly my reaction to the blog post :) May 22 21:05:07 tortal: ask him :) May 22 21:05:32 tortal: but this is a great example of how wrong information can be online :)) May 22 21:05:39 monsti: I did that :) . No result! May 22 21:05:53 Unless my google-fu is too weak May 22 21:06:04 hwrd|work: add "source" May 22 21:06:51 romainguy: http://pastebin.com/dUGn6Rm6 this is how he argues May 22 21:07:06 * Napalm appludes, for romainguy's presentations at I/O May 22 21:07:19 congrats on another year down :D May 22 21:07:40 Hi :) May 22 21:07:59 Napalm: thanks May 22 21:10:58 funkbox: monsti : https://www.google.com/#q=ViewDragHelper.java+source May 22 21:11:10 * hwrd|work wonders if he is crazy... May 22 21:11:14 check github May 22 21:11:48 I did that already… in platform_frameworks_support right? May 22 21:11:50 the official repository for Android's source code is here: https://android.googlesource.com/ May 22 21:12:20 Looks like it's in the support lib.. The support lib source is downloaded along with the jar by the SDK manager May 22 21:12:46 if in activity i create an Handler A and a Thread B from the main UI thread, it's possible to send message from Thread A to Hanlder B ? May 22 21:13:02 or Thread A must be an HandlerThread ? May 22 21:13:19 romainguy: the git repo on android.googlesource.com for support is not up to date, the source that comes down the SDK manager for support is more recent May 22 21:13:47 even in the master branch? May 22 21:13:52 example: https://android.googlesource.com/platform/frameworks/support/+/master/v4/java/android/support/v4/widget/ does not contain ViewDragHelper.java May 22 21:14:01 \SDK\extras\android\support\v4\src\java\android\support\v4\widget\ does May 22 21:14:03 romainguy: what whould be your best approach for this task? sending SIMPLE but DIFFERENT obj-references between intents. classic singleton, weak hash map . problem iwth singleton is that i'll have to make it very verbose to in order for thread safety since i can't use an enum (non-static files) May 22 21:14:19 between activities* May 22 21:14:48 what kind of objects are you passing around? May 22 21:14:53 I would use Parcelable classes May 22 21:14:57 no no no May 22 21:14:59 :D May 22 21:15:12 im already using ORMLite and serializing some objects May 22 21:15:27 because it's such a pain to make forgeinTables for the task in hand May 22 21:15:41 objects are small, and not heavy when serializing May 22 21:15:42 tortal: what is the underlying issue you're trying to solve ? May 22 21:16:04 tortal: so POJOs? May 22 21:16:07 just find a good practice to send obj-references between activities/services May 22 21:16:16 yea May 22 21:16:22 what's a obj-reference ? May 22 21:16:26 pointer May 22 21:16:29 ah May 22 21:17:11 i dont know if one can use the term pointer in java May 22 21:17:23 it's a lot clearer what you're trying to do :) May 22 21:17:56 i mean, it IS a pointer. so why not let the coder have control of it (like C#) May 22 21:18:05 so if they're not heavy to serialize why not serialize it? May 22 21:18:20 tortal: because activities can be started from other activities to whose memory you do not have access May 22 21:18:30 because, serializing objects for the simple purpose to send it to another activity is really anti-perfomance.. May 22 21:18:34 What is the difference between Thread and HandlerThread ? May 22 21:18:36 if in activity i create an Handler A and a Thread B from the main UI thread, it's possible to send message from Thread A to Hanlder B ? May 22 21:18:37 or Thread A must be an HandlerThread ? May 22 21:18:44 onStop will of course persist data into SQL... and serializing will be done there May 22 21:18:59 but as long as application is "active", serializing will just hog CPU May 22 21:19:36 tortal: And you've verified that you have a performance problem? May 22 21:19:53 ,a,a May 22 21:20:16 Because I serialize very big object trees to XML in one of my apps and there's no performance hit. May 22 21:20:25 kakazza: not really, but since this is a uni-course and much of the grading will be based on structure, patterns, abstraction etc.. May 22 21:20:48 inventing your own way that does not follow the pattern of what the platform does is sure-fire way to get a lower grade May 22 21:20:48 kakazza: i know, GSON et al. are super-performant May 22 21:21:10 byt reflection is not correct really May 22 21:21:12 but* May 22 21:21:16 We're not talking about GSON. May 22 21:21:17 Napalm: Ah! Thanks! May 22 21:21:18 when it's not needed May 22 21:21:22 We're talking about parcelable. May 22 21:21:23 funkbox: monsti : Thanks also May 22 21:21:25 tortal: dude, just use what android gives you May 22 21:22:09 funkbox: i wish i could to do that.. but i have to present a CLEAR mvc where i can argue how simple it would be to implement it in iOS/whatever May 22 21:22:32 you're solving a problem that's not there, and insisting that there is a problem May 22 21:22:39 maybe May 22 21:23:00 i feel bad when serializing an object and then making unsafe typecast when retrieving it May 22 21:23:18 e.g. between intents in putSerializableExtre May 22 21:23:22 yep May 22 21:23:26 live with it May 22 21:23:38 :) May 22 21:23:55 or rather, read up about how android is structured and it will be a lot clearer why it's like that May 22 21:24:19 hi i'm trying Navigation Drawer with abs because i want use min sdk 10. how can change top toggle drawable, i wnat change arrow with new png toggle May 22 21:24:22 ugh, Parcelable is a fucking nightmare May 22 21:26:13 Sicp: in what way? May 22 21:26:17 I've sent with an intent, a ParcelableArray, I'm finding it extremely difficult to fetch it on the other side May 22 21:26:23 Heya May 22 21:26:47 I'm curious, it's not possible to call View.findById() within the constructor of the view. However, where is the appropriate place to call that method? May 22 21:26:51 conceptually, i do understand the lifecycles and how they affect the app.. at least generally.. im just looking for best practices.. i think that everyone here agrees that serializing is to be avoided when the perfomance/code_reduction is too high May 22 21:27:02 So I can get a referene to the view's sub-views as neede... May 22 21:27:35 If you're inflating from XML, use onFinishInflate May 22 21:27:46 tortal: I think that everyone in here agrees that you're not having a performance problem. May 22 21:29:06 maybe.. but the course is not on mobile-dev or android. the course is on agile development, MVC, applied design patterns, and SDD/RAD May 22 21:29:19 Hello, i am using actionbarsherlock 4.3.1 and i'm trying to setup it on Eclipse. I imported it as library and it works if i set Project build tarket equal to 4 (apilevel 14) but if i set to 2.2 (apilevel 8) it doesn't work. On the other side, minSdkVersion is equal "7" and android:targetSdkVersion equal to 8. Any hint about it ? May 22 21:29:34 targetSdkVersion has to be 14 or higher May 22 21:29:41 you also need to compile with Android 4.0 or newer May 22 21:30:06 minSdk can be as low as 7 May 22 21:30:25 kakazza: that's why i believe explicitly making it clear that im solving performance hits (no matter how miniscule) will grade me better May 22 21:30:29 Jake, maybe tortal will listen to you. How do you pass objects between activities? May 22 21:31:01 store them somewhere else, pass a pointer to where they live May 22 21:31:02 tortal: You're not solving performance hits when there are none. If you're worried, use the NDK. May 22 21:31:22 tortal: then instead of passing the reference directly, pass a key or id you can use with a data manager of some sort May 22 21:32:10 evancharlton, would you take a look at some simple code? May 22 21:32:38 JakeWharton: I always wondered, why do you use newInstance() instead of new Foo(); May 22 21:32:38 ok thx everyone JakeWharton kakazza romainguy. I think i'll go for the singleton/weak hashmap method.. too bad that i wont be able to use enums since they would be automagically thread-safe May 22 21:32:39 Sicp: no one will look at it before you pastebin it :) May 22 21:32:51 yes, that's coming; I was querying your willingness May 22 21:32:56 http://pastie.org/7945244 May 22 21:33:09 JakeWharton: ok, thanks a lot. I'll try setting targetSdkVersion as 14... i wanted to do this change because i've issues on a 2.3 device... if my app has issues with actionsherlock on 2.3 device and minsdk is equal to 7, i guess i doesn´t have to do with the targetSdk version on library the, right ? May 22 21:34:01 that's where I try to convert the objects back to the form they were sent in; and this is the Result class that these objects are made of: http://pastie.org/7945253 evancharlton May 22 21:35:26 and this is the "Unmarshalling" error that I get when I run: http://pastie.org/7945258 May 22 21:35:47 Sicp: erm, where did you get the idea for readFromParcel(Parcel[]) ? That's all kinds of backwards May 22 21:35:58 and createFromParcel(Parcel) May 22 21:36:10 this guy, http://shri.blog.kraya.co.uk/2010/04/26/android-parcel-data-to-pass-between-activities-using-parcelable-classes/ May 22 21:36:22 and here, http://mobile.dzone.com/articles/using-android-parcel May 22 21:36:31 kakazza: it's a convention so that you don't add arguments to the contructor May 22 21:36:51 As in a message to future developers that this was intended? May 22 21:36:52 they use it when dealing with a single object; here I'm dealing with an array May 22 21:37:08 I mean, you shouldn't, for Fragments for example. May 22 21:37:24 Sicp: and you're doing it so very wrong :) Start with createFromParcel(Parcel). Why are you returning null? How do you expect that to ever work? May 22 21:37:32 right, because they're created by reflection in the fragment manager on rotation May 22 21:37:38 so they need a default constructor May 22 21:37:47 I don't call that method in searchResult_ACT May 22 21:37:48 I'm not sure how that convention would prevent me from adding arguments, though? May 22 21:38:04 I call Result.CREATOR.newArray May 22 21:38:09 Sicp: I don't know what you mean by that, but createFromParcel is automatically called from the framework May 22 21:38:10 because if you do public FooFragment(String name) {} then rotate your activity it will crash May 22 21:38:43 if you do newFragment(String name) { Bundle crap; new Foo(); setArguments() } May 22 21:38:59 alright, I fixed it May 22 21:39:06 it's one of the many insanely awful API choices that fragments make May 22 21:39:27 return new Result(source) May 22 21:39:39 I see. So instead of constructors, you use the newFragment convention to have "constructors" that take arguments? May 22 21:40:31 now it's back to an old error I was getting, which is NullPointer inside that toast in the searchResult_ACT, evancharlton. When trying to call on .getName() from the facebook object May 22 21:40:33 Ok, makes much more sense now. I've only seen empty newInstance() methods in the samples. May 22 21:40:54 something is not being passed to the creation and so it ends up being null May 22 21:41:04 Sicp: you're almost certainly screwing that up because you're trying to reinvent the wheel. I still haven't got a clue what searchResult_ACT is, but it sounds scary and also broken. Pastebin? May 22 21:41:10 well, the parameters from what was grabbed from Parcelable are not being passed May 22 21:41:12 pastebin both sides of the parceling here May 22 21:41:19 it's above May 22 21:41:32 http://pastie.org/7945244 May 22 21:42:04 that's where I grab the results from extras (they were sent as ParcelableArray) and try to turn them back into Result[] arrays May 22 21:42:17 kakazza: yep. you see the empty ones just to stick to convention. it's not a convention if you don't do it for all of them! May 22 21:43:05 It just wasn't clear to me, because I've only ever seen empty ones. May 22 21:43:13 I will gladly adapt that convention! May 22 21:44:39 One more question, in the dagger sample you use the ActivityTitleControler, saying that Fragments shouldn't modify anything out of their juristiction. While that makes perfect sense to me and I already keep it that way 90% of the time, why not even let it modify the Actionbar title? May 22 21:45:01 Should it be that much of an island, not touching _anything_ at all but delegating these requests? May 22 21:45:04 what happens when you have two fragments that both call getActivity().setTitle() May 22 21:45:34 Well, one or the other will succeed in the end :x May 22 21:46:15 I'd think, the same as if both called titleController.setTitle() May 22 21:49:56 thing is, that Result class is rigged to work with Parcel, yet I am dealing with Parcelable.. May 22 21:50:15 JakeWharton, in new Navigation Drawer there is ActionBarDrawerToggle to change homeAsUpIndicator, this class or similar exits inside ABS, i want recreate png animation May 22 21:51:40 htc is hemorrhaging their top execs May 22 21:53:37 Sicp: let me simplify it for you: Results[] resultsFoRealSon = (Results[]) getIntent().getParcelableArrayExtra("facebookResults"); May 22 21:54:02 let the system do its job and handle all that other crap under the hood May 22 21:54:16 then go through and remove all those methods you aren't using, like readFromParcel(Parcel[]) May 22 21:55:13 just in time for Eclipse to freeze May 22 21:55:59 ahh eclipse, the fun never stops, huh ? May 22 21:56:06 \o/ May 22 21:56:33 brb May 22 21:57:54 im reading multiple posts on how androids docs are wrong when saying that singletons are more correct than extending Application (http://portabledroid.wordpress.com/2012/05/04/singletons-in-android/) May 22 21:57:59 im just getting more n more confused May 22 21:58:02 Not sure if Jake is working or just facepalming. May 22 21:58:13 pepigno75: no idea. some people have been figuring it out on their own May 22 21:58:24 working May 22 21:58:32 and facepalming :) May 22 21:58:35 ;) May 22 21:58:53 Thanks for taking the time to reply in here. May 22 21:59:02 ok JakeWharton i'm creating two png to change when ND is opne/close thanks May 22 21:59:28 What's the answer to your question above, regarding .setTitle()? May 22 21:59:53 evancharlton, same error, cannot cast Parcelable[] to Result[] May 22 21:59:59 kakazza: except you can provide a different TitleController that's smart, or uses subtitles or something May 22 22:00:03 it's probably a bad example May 22 22:00:06 i was in a rush May 22 22:00:10 that's the whole point to avoid May 22 22:00:21 still though, fragments shouldn't touch anything outside of the view/dialog they manage directly May 22 22:00:34 they should use an indirection that can be changed based on phone/tablet/configuration May 22 22:00:48 one way is injecting a different controller based on configuration. May 22 22:01:01 i'll clean up that example at some point... with all this free time that's floating around :) May 22 22:01:59 Yeah, better put all that free time to use! ;p May 22 22:02:17 Sicp: er, what? Are you sure you imported the right Result? Are you sure that the Result in your project implements Parcelable? May 22 22:02:18 tortal: the author is basically saying that data goes away when the process is killed May 22 22:02:23 which is er… expected May 22 22:02:31 sure of both, evancharlton May 22 22:02:52 Sicp: is this a logcat error? javac? May 22 22:02:59 logcat May 22 22:03:03 pastebin it May 22 22:03:07 if you are using singletons to keep data around for a long time you need to persist that data somewhere May 22 22:03:22 and the docs explain pretty clearly that when an activity is paused or stopped you should persist data May 22 22:04:41 JakeWharton: Thanks, yet again. I guess the sample is also incomplete wrt the @ForActivity and @ForApplication annotations? I do not see them handled anywhere? May 22 22:04:45 http://pastie.org/7945379 evancharlton May 22 22:07:25 romainguy: any idea why the source repo for support is out-of-date/sync ? May 22 22:07:33 no idea May 22 22:11:23 romainguy: as mentioned before, i'll of course do intensive and required persistance to SQLite on relevent onStop(). This is basically a question of a good pattern for it (http://stackoverflow.com/questions/3826905/singletons-vs-application-context-in-android) this seems to be a controversial debate May 22 22:12:36 i thought this was a fun article; Martin Fowler also had a blog on this. i usually attributed cqrs to getters / setters, but its an architectural precept. i think it fits android dev naturally; loaders are the querying and something like AsyncQueryService being side-effect stuff http://www.h-online.com/developer/features/CQRS-an-architecture-precept-based-on-segregation-of-commands-and-queries-1803276.html May 22 22:13:04 ok moved my project to someone elses pc, imported it and now it says it cant find the APK? Doesnt eclipse BUILD the apk?.... May 22 22:13:07 however, the accepted answer on that post seems like a proper way to go (light-weight objects) that do the action, rather than global singletons. (even tho i understand that application and activities etc are all their own singleton) May 22 22:13:33 but the post doesn't give an example of how i would do that May 22 22:14:58 Sicp: sorry, my mistake; java makes you cast each item instead of the whole array. Try something like this: http://pastie.org/private/unx6jms88444e2fx7uj4q May 22 22:15:02 sorry for the confusion May 22 22:16:17 (your Parcelable code is still pretty wrong; you don't need a bunch of it. Here's about all you'll need: http://pastie.org/private/hw4tvyadoy7j9sob5otemq ) May 22 22:16:18 any ideas? May 22 22:16:55 tortal: it's like all patterns, you have to be careful when you use them May 22 22:17:04 the solution is neither to always use singletons nor to never use them May 22 22:17:14 the Application instance has its own issues too May 22 22:17:24 especially if you share the same process with several apps May 22 22:18:25 aw, i dont think se saw that May 22 22:19:22 seen in ##java just now: "Can someone tell me if this code is correct? " "Does it compile?" "Nope :(" "Then it's not correct." May 22 22:26:03 what i did for my last app, was have the loaders handle all the query stuff with a content provider, but update/delete/insert was done with straight db (which still sent out uri notifications so the loaders could get updated). so my provider only had query() overriden May 22 22:26:45 worked reasonably well ;) May 22 22:29:30 dunno why this is complaining that the apk is missing :/ May 22 22:30:38 mmm, Exynos 5420, octa + Mali-T628 May 22 22:30:39 still NullPointer when I try to getName on one of the result objects in the searchResult_ACT, evancharlton : here's the Result.java class as you've suggested http://pastie.org/7945438 (note that the results are NOT Null because of a mistake on my side, I've carefully logged up until this point, thanks for the help so far:) May 22 22:31:42 Sicp: where is the NPE? Also, can you show me the new searchResult_ACT code? May 22 22:31:53 the NPE? May 22 22:32:10 I have an app that i created (pretty simple) that I'm converting to an android app. I'm learning that I now need a MainActivity class and am creating my Actions in there in place of the Listeners that I had in my main class. May 22 22:32:18 i want use volley library but there isnt documentation :( May 22 22:32:32 My is that I can't access the object that I've created in my main class from the MainActivity class. May 22 22:32:35 ^ problem May 22 22:32:56 I' not sure if I simply need to move all the functionality that currently exists in my main class to MainActivity, or make it Static, or just pass a reference to the object... May 22 22:32:59 pepigno75: I have a sample project I threw together; sorry there isn't any documentation posted anywhere. May 22 22:33:16 pepigno75: if you want the javadocs, you can read them here: http://files.evancharlton.com/volley-docs/ May 22 22:33:33 pepigno75: my sample project is here: https://github.com/evancharlton/folly May 22 22:33:51 evancharlton: i was struggling with how to properly implement http digest auth for my volley requests May 22 22:34:03 ok evancharlton i know but there isnt documentation I:) May 22 22:34:14 this is the new and improved searchResult_ACT :P http://pastie.org/7945451 May 22 22:34:26 pepigno75: I just linked you to a couple of sources of documentation :) May 22 22:34:31 looks much more sensible of course, if only there were any values! :P May 22 22:34:43 So i guess my real question is, generally would you stick all of your main functionality (stuff that would have gone in main() in a desktop java app) into MainActivity and do away with my old main class? May 22 22:34:46 drudge: Can you be more specific? I've done that; it's pretty straightforward May 22 22:35:15 kakazza: the ForActivity and ForApplication are used in the modules May 22 22:35:19 thanks evancharlton i see now... May 22 22:36:12 Sicp: hmm, that all looks right. Are you positive you're parceling them correctly? Mind pasting me whatever is passing them into searchResult_ACT's intent? May 22 22:36:13 evancharlton, What do you think of volley ? May 22 22:36:19 pepigno75: great! May 22 22:36:22 sure May 22 22:36:23 How can I find the default text color for Theme.Holo.Light? It's not #000000 but a bit lighter it seems May 22 22:37:17 evancharlton, i want load images, crop and cache in disk... is volley the best choise? May 22 22:38:01 pepigno75: sounds like it. Only thing that seems "hard" (not really) is the cropping--just extend ImageRequest and do the cropping in parseNetworkResponse May 22 22:38:36 evancharlton: are the docs going to be refined further, or are they finished ? May 22 22:38:50 volley don't crop images ? May 22 22:38:56 (browsing through http://files.evancharlton.com/volley-docs/ … ) May 22 22:39:21 g00s: they'll almost certainly going to be refined (into some sort of "how-to" guide, probably). I just generated these using javadoc May 22 22:39:30 yeah, ok May 22 22:39:37 pepigno75: er, no. It'll scale them but not crop May 22 22:39:53 evancharlton: i'm not really sure where to handle it, was hoping you could point me in the right direction May 22 22:39:55 Anyone have any thoughts on my MainActivity question? May 22 22:40:10 drudge: brb, meeting. I'll follow up in a bit May 22 22:40:34 so i can use another library to crop... :( May 22 22:40:41 nm, I found it May 22 22:41:30 evancharlton, Picasso crop images.. may be? May 22 22:43:50 evancharlton, this is the parce(r) http://pastie.org/7945471 May 22 22:43:51 lol May 22 22:45:04 actually, the logs I had wwere just below those lines, I never got any proof of anything having ever being parceled correctly to the next intent May 22 22:45:18 but where they were at right there they were all being logged correctly May 22 22:45:25 from getAttr's on the object May 22 22:48:15 ooh, seems 4.3 has been surfacing in tests May 22 22:48:19 so it _is_ real May 22 22:50:21 or they faked those, too (after reading article) May 22 22:51:07 I don't get it... May 22 22:51:20 ok fk it!!! fk x 10…. if I want to tentatively try intellij stuff, start with AS or IJce ? May 22 22:51:59 are there any advantages to AS over just normal IJ ? May 22 22:52:07 g00s: where are you!!! May 22 22:52:08 :) May 22 22:52:18 it has 25% more Android May 22 22:52:18 you didnt try AS did you ? May 22 22:52:27 StingRay_: i'm here, of course :) May 22 22:52:40 JesusFreke: ? May 22 22:52:42 no, didn't try AS May 22 22:53:00 HOw well does Guava work on Android May 22 22:53:11 great if it fits :) May 22 22:53:37 StingRay_: sorry, I was exaggerating. it only has 12.5% more Android May 22 22:53:50 the problem is definitely with Result.java, evancharlton, I am certain. It must be creating new objects out of nothing May 22 22:53:55 JesusFreke: still dont follow May 22 22:53:56 :) May 22 22:53:58 AS is a bit more wizardy than IJ, but it has a few nice additional features. I wouldn't lose sleep over not having it though May 22 22:53:59 assigning nothing to their attributes May 22 22:54:18 StingRay_: there's nothing in particular to follow :) May 22 22:54:41 It was an (apparently) pretty poor attempt at a joke May 22 22:57:26 pepigno75: Just use Picasso. That's what it's designed for. May 22 22:59:06 drudge: alright, where were we? digest auth? May 22 22:59:24 evancharlton: yes sir May 22 22:59:28 android service question - i currently have an intentservice that im using to perform a series of uploads to a server. I'm defining static register(UploadCallback) and unregister(UploadCallback) methods on this intentservice that activities can use to update their UI when an upload event happens. I've also heard this can be done with binders instead and message passing May 22 22:59:43 anyone have experience doing this kidn of thing and is one way recommended over the other? May 22 23:00:20 JakeWharton, i don't remember.. Picasso cache in images in disk... May 22 23:00:28 nope, it's implemented as should be May 22 23:00:49 pepigno75: of course May 22 23:01:53 JakeWharton: looking at picasso does it handle local uri lookups ? May 22 23:01:53 ok JakeWharton i'll try next night :)... i'm in Italy and so it's 1 am :( May 22 23:01:54 drudge: if you need me to explain any of this, let me know (I'm hoping it lights up a lightbulb) - http://pastebin.com/VrKQpPrB May 22 23:02:42 evancharlton: basic auth i understood, but digest auth was the issue for me May 22 23:03:03 drudge: oh, derp. wires crossed, haha. May 22 23:04:48 who is responsible for merging a view's style into the attribute set May 22 23:04:55 it doesn't seem to be in the layout inflater anywhere May 22 23:05:17 does attribute set do it itself when obtainStyledAttributes is called? May 22 23:05:45 JakeWharton: Resources will do it May 22 23:05:47 drudge: oh, gross, digest auth involves round-trips. So, I've never done it, but it sounds like what you want to do is use an Authenticator which makes the extra fetch and whatnot at a higher priority so that it won't deadlock May 22 23:07:31 StingRay_: AS has some nice things to it, and I expect more to come May 22 23:07:55 belgianguy: such things missing for IJce ? May 22 23:07:56 as soon as they start using the update mechanism *cough*Google*cough* May 22 23:09:04 StingRay_: the Android specifics (layout preview, resource view on hover, Gradle ALL THE THINGS, also money May 22 23:09:11 romainguy: I'm looking in there and trying to follow it. I think it calls down to C for it to happen in AssetManager May 22 23:09:30 ah, not money, CE is Community, sorry :) May 22 23:09:52 StingRay_: the engine is the same, the sauce a little different, but my old ICE projects still work in AS May 22 23:09:58 IJce* May 22 23:10:28 Gradle can even convert Maven projects I read, so I guess that'll become the new standard, then? May 22 23:10:55 romainguy: think I found it in the C. ~936 of AssetManager. thanks May 22 23:12:20 JakeWharton, ok Picasso is wonderful with images but to create a ListView fast and smooth What can I use? i have develop a "blog app" so I have to create as many many rows May 22 23:13:01 pepigno75: drop Picasso in your getView of your adapter May 22 23:13:03 it will do the right thing May 22 23:14:13 ok JakeWharton thanks...:) good night for all May 22 23:30:32 my res/strings always wind up becoming some unmanageable clusterfuck - even using naming conventions. i wonder what other do to keep these straight May 22 23:30:45 use files May 22 23:30:50 oh yeah ! May 22 23:30:52 strings_login.xml May 22 23:31:10 i should break them into activity / fragment files May 22 23:31:15 not sure if g00s was being sarcastic, or... May 22 23:31:27 XD May 22 23:31:52 at first i wasn't sure if jake was being sarcastic ;) May 22 23:32:35 it would be nice if resources had namespaces maybe May 22 23:33:24 right now i'm prefixing everything with fragmentname_ or activityname_ for stuff that only belongs to those May 22 23:34:15 we used to do that May 22 23:34:18 doesn't scale May 22 23:34:41 you're better off using logical groupings rather than implementation groupings May 22 23:35:37 JakeWharton: so, prefixed_ based on some domain idea rather then where they sit in the UI May 22 23:35:54 right. because eventually you'll add a new fragment and re-use a string accidentally May 22 23:36:34 (or something like that) May 22 23:36:41 evancharlton, now I know why I was getting a nullpointer for the getName, debugged showed that all the elements of the resultsReal array (the one that I need in the end) are null except for the very last one May 22 23:36:56 no fucking idea why, still May 22 23:37:00 JakeWharton: that makes sense, thanks May 22 23:49:38 ruh roh. going back and forth between eclipse / idea … i did some refactorings in eclipse which involved file renames; going back to idea and attempting 'synchronize' is not working May 22 23:50:05 nonexistent files stay in the project tree … ghosts :| May 22 23:51:38 ok, had to invalidate caches and restart , phew May 22 23:58:36 my whole team basically decided to switch from eclipse to android studio while i was out sick May 22 23:59:01 lol May 22 23:59:16 isn't AS still kinda beta code? certainly felt like it :S May 22 23:59:34 sure, but considering how we were using eclipse, it's not an issue May 22 23:59:42 hahaha good call May 22 23:59:50 no i mean how WE were using eclipse May 22 23:59:56 i have no major issues with eclipse May 23 00:00:47 i'm still confused why google when with gradle -- i don't see any possible benefit using it :S intellij without it works fine May 23 00:01:13 (i'm also pissy coz he it didn't work through the shit proxy server at work) May 23 00:02:41 my idea CE project tree keeps doing weird crap :( May 23 00:03:01 http://i.imgur.com/LAPVYIb.png May 23 00:03:55 what's the problem? the blank space or the lack of xml suffix ? May 23 00:04:00 both :( May 23 00:04:07 which version of java are you using ? May 23 00:04:14 12.1.3 May 23 00:04:25 not intellij, java ... May 23 00:04:58 oh, apple one java version "1.6.0_45" May 23 00:05:20 try using a different version, there are some known UI rendering issues with certain java vms May 23 00:06:45 well, i have lion (10.7) and tried grabbing the oracle JDK - that caused a huge problem; every java app triggered the OS's 'you are trying to run a java app, would like to download the jvm?" … despite that i already had apple java 6 and oracle java 7 May 23 00:07:15 i think 10.8 was past that time apple/oracle transitioned May 23 00:07:42 set your JAVA_HOME to use oracle's java then May 23 00:08:03 that stuff was set of course :P May 23 00:08:15 every java app broke, even eclipse May 23 00:08:35 i think some shitty plist file got messed up somewhere May 23 00:08:59 i can try it again, sigh. but its impossible to uninstall apple java May 23 00:09:16 basically have to re-image your box May 23 00:09:48 i have a few different apps using different java versions - wrapper scripts are your friend haha May 23 00:11:02 is there anyway to do THIS http://thepseudocoder.wordpress.com/2011/10/04/android-tabs-the-fragment-way/ inside of what is already another tab fragment May 23 00:11:04 bankai_: i wonder if its the same problem i see in the android sdk downloader May 23 00:11:16 basically tabs within tabs is what I'm trying to achieve May 23 00:11:36 what kinda problem you seeing with the emulator ? May 23 00:12:00 the sdk downloader had a tree structure widget too. May 23 00:12:15 like, open the folder for SDK 17 and there is a bunch of stuff May 23 00:12:43 but when I do that, the items (children) in the tree remain constant … so if I open a folder with 5 elements May 23 00:12:56 the last thing in the list (extras, or addons) loses its last 5 elements May 23 00:12:58 hehe May 23 00:13:31 hard to explain May 23 00:13:41 oh, weird... yeah definitely try a different version - i have to run intellij and the sdk manager with different java versions, but that's coz i'm on freebsd and have a very funky setup May 23 00:18:05 I'm currently using a gridView object, filled with image views. I have a click handler on the image view to swap out the image view's src attribute, which is working fine, except for on the first grid view item where i have to click twice to see the image source change. all of the other items work fine on the first click, and i see the click handler executing even when the image doesn't change. is there something I'm missing regardin May 23 00:18:05 the first item in gridview? May 23 00:19:51 guys any opinions on the intelliJ android studio? Anyone tried it yet? May 23 00:19:53 JakeWharton: in your earlier example above; strings_login.xml was for the concept logins (not a physical UI space / activity / fragment) and … do you further prefix that stuff like login_x login_y , etc ? May 23 00:20:19 (the strings in string_login) May 23 00:20:39 yeah, was just a random example May 23 00:21:04 DarkSlay3r, I've been using it. I like it May 23 00:21:14 Is it buggy? May 23 00:21:30 I haven't had any issues with it May 23 00:22:30 Awesome... I'll be trying it out May 23 00:22:32 thanks May 23 00:44:21 Has anyone used the new Beta feature in the market yet ? When ever i upload something as BETA and refresh the page it suddenly ends up under the production tab????? May 23 00:45:35 .. May 23 00:45:53 i used alpha and all fine May 23 00:46:09 do i have to designate the APK somehow special? May 23 00:46:20 not at all May 23 00:46:21 darken maybe don't use back/refresh May 23 00:46:31 if i click ratings/comments or something like that May 23 00:46:36 then switch to apk tab again May 23 00:46:37 same May 23 00:46:43 the beta APK is under the production tab May 23 00:48:00 maybe it thinks it's release ready, and your beta assumption is perfectionism ? May 23 00:48:08 is it possible to put fragments inside of fragments? May 23 00:48:33 StingRay_, its very close to release but i mainly want to test the feature :) May 23 00:48:54 try alpha May 23 00:49:29 same May 23 00:49:36 very odd May 23 00:49:44 something to do with package name ? May 23 00:49:58 as in you have a store listing already for some reason ? May 23 00:49:59 i don't think i can upload a non matching pkgname May 23 00:50:19 well ofc i have a store listing May 23 00:50:40 the app is already on the market May 23 00:51:11 is the beta feature only for unreleased apps? May 23 00:51:44 I think my problem stems from this... http://pastebin.com/60wqRXL9 I have a tabhost inside of a tab host so when I try to get the support fragment manager from the main activity and tell it to add to "android.R.id.tabcontent" it doesn't know which tabcontent to which I am referring because there are two May 23 00:51:54 There are no errors being reported with my xml files, but when I clean my project in eclipse nothing gets built in the Gen folder.' May 23 00:52:27 cleaning again doesn't change it May 23 00:52:40 darken: that was my assumption May 23 00:52:44 Fallout2man: go to the eclipse console, and look for the wonderful 'problem in xml file' May 23 00:53:14 StingRay_, O_o thad would be lame :( May 23 00:53:31 why would you want to test "released" apps May 23 00:53:41 new features May 23 00:53:42 etc. May 23 00:53:44 g00s: Nada. I'm looking at the Android console and see no messages. May 23 00:53:53 darken: diff package name then May 23 00:53:59 *****beta May 23 00:54:00 :) May 23 00:54:09 g00s: The only thing that changed was I just updated my android tools and ADT May 23 00:54:11 StingRay_, how can you make an update for an app with a different packagename... May 23 00:54:16 that doesnt make sense May 23 00:54:33 with…"rename" May 23 00:54:48 and then "raname" to release package May 23 00:54:51 when ready May 23 00:54:54 darken: i'm waiting for more documentation on that feature myself; maybe i just haven't found it yet May 23 00:54:56 no i think you are mistaken, that is not how its supposed to work May 23 00:55:08 well I know you can have 1 instance on play May 23 00:55:17 g00s, it looks pretty straight forward, until it doesnt work May 23 00:55:18 and that beta alpha use direct play listing May 23 00:55:28 or thats what I thought May 23 00:55:36 StingRay_, for premade G+ communities that you ahve to add May 23 00:55:49 if you are in that group May 23 00:55:53 darken: how did you define your distribution list ? May 23 00:55:56 you can send ppl a OPT in link May 23 00:56:05 ppl in the G+ community can click an opt in link May 23 00:56:12 then they get beta on Gplay May 23 00:56:12 I have a G+ test group for my alpha listing May 23 00:56:31 ok, me and my g/f are the only ones in it atm May 23 00:56:38 but sure it will grow "_ May 23 00:56:43 g00s: think I found the problem! the SDK manager now tells me I have more updates. Which is weird because when it refreshed earlier afterwards it said I had updated everything. May 23 01:02:37 you have to close and re-open May 23 01:06:00 g00s: yup, it was the missing SDK components, whew May 23 01:06:56 silly question; but about how alpha/beta/prod is handled on the phone … how are they handled? can you have beta / prod at the same time? if you install a beta, and it doesn't work out, can you go back to and older prod release? does that older prod release re-use the same /data/data private storage the beta did ? May 23 01:11:24 so I managed to figure out what I was doing by using this.getChildFragmentManager(); May 23 01:11:40 and telling it to do all the things I was trying to get the supportfragmentmanager to do May 23 01:11:46 but I don't actually have any tabs May 23 01:11:56 inside of my main tab control May 23 01:12:04 it just draws the fragment May 23 01:16:31 Can anyone refer a good tutorial for integrating Google Maps v2 in a way compatible with phones running API Level 10? (Gingerbread) May 23 01:17:00 I would assume there is a support library for it? and if not then sorry for wasting your time May 23 01:17:25 This is my first time using support libraries May 23 01:17:54 maps works on 2.2 and up May 23 01:19:22 The tutorials use fragments though. May 23 01:19:43 I'm not using Fragments, and I've been told that V2's API keys won't work with V1 code. May 23 01:20:05 I'm so sorry, terribly new to this -_-;; May 23 01:24:21 use the support library May 23 01:24:31 http://developer.android.com/tools/extras/support-library.html May 23 01:25:40 danke May 23 01:27:54 well, this is going to take a while, thanks again for the assist. Lots of demos to slog through now. :) May 23 01:36:40 would it be more efficient to have a clear GLSurfaceView, and set the gradient background within xml. Or render the background inside GLSurfaceView on every draw call? May 23 01:41:58 It woul May 23 01:42:04 Use an opaque GLSurfaceView May 23 01:58:47 hmm, i have a form which is validated on a button press; but the setError message could be off the screen. whats the best way to scroll near that location so that its field, and the error itself, are guaranteed to be on the screen? May 23 02:00:32 if you call forcus or touch on the view, or maybe requestFocus May 23 02:00:40 the scroll should move to it May 23 02:00:42 I think May 23 02:01:01 but what if you have a few things that are invalid ? May 23 02:01:13 yeah, i want to go to the topmost one May 23 02:01:27 but the callout has to be on screen too May 23 02:01:41 I think that I would store the pos of the views May 23 02:01:47 and smoothScroll to it May 23 02:02:15 also maybe changed the next item to be the next "error" view May 23 02:02:17 maybe May 23 02:03:15 I've never really understood why there are two ways of starting an activity i.e using new intent("com.foo.bar") and intent(this, newActivity.class) May 23 02:03:34 one is implicit, the other explicit May 23 02:03:45 the implicit way is for message mased routing May 23 02:03:50 *based May 23 02:04:17 CocoStorm: wtf u doing up? May 23 02:04:18 the explicit way is usually used within your app, do avoid any late binding, you know exactly what activity to start May 23 02:05:22 StingRay_: i got all my pictures in Lr :P didn't realize i had so few total; but so many bad ones :*( May 23 02:05:37 g00s, so they're the same thing but one's more specific? May 23 02:05:42 StingRay_, heh I'm going to hit the hay soon May 23 02:05:47 now the hard part, gah, keywording May 23 02:05:59 CocoStorm: this is in the docs btw :) May 23 02:06:13 g00s, oh May 23 02:06:18 =] *looks harder* May 23 02:06:29 CocoStorm: think of it as polymorphic function call vs goto May 23 02:07:01 or overloaded function May 23 02:07:20 hmm that makes sense May 23 02:07:27 thanks g00s May 23 02:07:51 if you aren't exposing your activities to the outside, you probably don't need intent filters May 23 02:08:07 so just use the explicit one May 23 02:12:54 yeah for sure May 23 02:16:06 http://puu.sh/2YTR4 - coworkers bike May 23 02:16:11 bet that was instant anus pucker May 23 02:18:18 650r? May 23 02:18:29 yes May 23 02:18:39 2012? May 23 02:18:42 I dont know May 23 02:19:03 darken you have one or something May 23 02:19:34 had one, stolen after 1 month May 23 02:19:41 probably gonna get one again though May 23 02:22:24 frankly kinda surprised my bike hasnt been stolen May 23 02:22:28 I garage it all the time May 23 02:23:38 i dont have a garage =( May 23 02:24:12 http://imageshack.us/a/img688/4849/img20130113194043.jpg May 23 02:24:14 mmmmm May 23 02:24:17 love May 23 02:24:48 hi May 23 02:24:53 any grouper devs alive? May 23 02:26:20 whata a grouper dev? i've heard of grouper fish May 23 02:26:31 nexus 7 May 23 02:27:05 nexus 7 devs ? May 23 02:27:10 this isn't a rom dev channel May 23 02:27:21 im not trying to create a rom. May 23 02:27:24 in anycase May 23 02:27:33 unless you are talking kernel stuff etc May 23 02:27:41 yes May 23 02:27:42 kernel May 23 02:27:50 i compiled the aosp kernel from the master branch May 23 02:27:57 thats #android-root unless you have a quick question May 23 02:28:02 did fastboot boot zImage and it's hung May 23 02:28:07 it's pretty elementary May 23 02:28:14 err that's a ROM question May 23 02:28:14 im trying to do basics here May 23 02:28:57 you just copied zimage over manually or stuck it in the product/blah and then make / flash May 23 02:29:12 this is more of an app dev channel May 23 02:30:34 ron_frown: make / fastboot boot zImage to test after compile May 23 02:31:13 are you compiling kernel with the appropriate toolchain flags May 23 02:31:17 yes May 23 02:31:22 arch=arm toolchain path May 23 02:31:40 followed this http://source.android.com/source/building-kernels.html May 23 02:31:43 enable early printk and figure out how to get a uart to do serial debug May 23 02:32:02 used the arm-eabi-4.6 May 23 02:32:10 USUALLY those examples require you to extract proprietary binaries over the top of something May 23 02:32:11 then make May 23 02:32:19 ah in the kernel? May 23 02:32:21 must be it May 23 02:32:38 i might have done that in just the android repo May 23 02:32:44 where i ran lunch from May 23 02:32:53 that would probably be it May 23 02:33:37 * g00s decides he wants to rename all the things in his project; time to test idea refactoring :) May 23 02:34:01 ron_frown: oh, did you see Boot to Qt ? May 23 02:34:03 good luck! May 23 02:34:13 intellij do me proud! May 23 02:34:20 g00s no... link? May 23 02:34:27 ron_frown: http://www.h-online.com/developer/news/item/Digia-previews-Boot-to-Qt-platform-1867640.html May 23 02:34:38 based on android for lower level stuff; gui in Qt May 23 02:34:43 there you go ! May 23 02:35:02 this was inevitable May 23 02:35:24 may even be the best way forward :D May 23 02:37:06 oh yeah probably should wipe dalvik/cache before trying to boot too i guess May 23 02:37:09 thanks for the pointers May 23 02:37:16 do they have source May 23 02:37:23 if so I'm going to port it to my hardware May 23 02:37:35 ron_frown: didn't look that closely at it May 23 02:37:49 its using android kernel and drivers, so ... May 23 02:37:56 nice! May 23 02:38:27 god damn it May 23 02:38:33 commercially only closed source May 23 02:38:52 fuck em May 23 02:39:55 I say you build it you do whatever you want license wise May 23 02:40:16 but I think all these endeavors are bad May 23 02:40:25 ubuntu/tizen/boot 2 qt May 23 02:41:02 I'll just get my shit going and add v8 + js to be equivalent to qt + qml May 23 02:45:53 :( May 23 02:47:29 ron_frown: i think that was it, make picked up the drivers, let's see if it boots May 23 02:50:03 can't create tabception May 23 02:50:10 maybe not but made progress i think May 23 02:50:11 thanks May 23 02:50:23 I can display tab fragments inside of what is already a tab fragment May 23 02:50:30 but I can't get the second tab host to show up **** ENDING LOGGING AT Thu May 23 02:59:59 2013