**** BEGIN LOGGING AT Fri Jun 15 02:59:59 2012 Jun 15 03:00:15 Hi, I am trying to run monkey runner on my Galaxy tab but monkey runner launches the intent android.intent.action.CALL_BUTTON and it crashes my activity, is there any way of catching it or stopping it? Jun 15 03:00:20 drpenguin will do . thanks :) Jun 15 03:00:59 totic: catch the exception thrown in your activity that crashes? Jun 15 03:01:55 one more question, whats the difference between set content view and inflating a view Jun 15 03:02:00 drpenguin: the tablet doesn't have an internt for android.intent.action.CALL_BUTTON since its a tablet not a phone Jun 15 03:02:16 so it crashes whenever monkey runner tests that Jun 15 03:02:31 totic: so.. why cant you just catch the exception thrown..? Jun 15 03:03:14 drpenguin: how do I catch this? http://cl.ly/0c052C2k0r022H1f0z2J Jun 15 03:03:56 How does one catch any exception...? Jun 15 03:04:42 ok monkey runner launches that intent randomly (it simulates the user pressing the call button) Jun 15 03:04:50 the Galaxy Tab doesnt have such a button Jun 15 03:05:20 if you saw the exception, its not thrown from a particular line in my code Jun 15 03:05:24 If ya dont know how to catch an exception, may want to brush up on your java man Jun 15 03:05:53 I know how to catch an exception… Jun 15 03:05:57 Did you read what I wrote? Jun 15 03:05:59 I have a button that uses a style which defines everything, including a drawable for the background. How can I change the alpha of the full style? I tried android:alpha and it didn't do anything Jun 15 03:06:07 *sigh* show me your monkey runner code Jun 15 03:06:18 I want to put this down quickly for yo Jun 15 03:06:20 u Jun 15 03:06:26 totic check what exception it throws and catch(that exception e) Jun 15 03:06:43 oh sorry my bad Jun 15 03:06:47 totic and the exact line where the errors was thrown Jun 15 03:06:49 its monkey exerciser Jun 15 03:06:50 adb shell monkey -p mobilaurus.supershuttle -v 5000000 --ignore-crashes Jun 15 03:06:57 not monkey runner Jun 15 03:07:08 Well derp, gotta give me accurate information Jun 15 03:07:16 sorry :( Jun 15 03:08:06 dude the channel is abnormally good lately. does anyone else notice this? Jun 15 03:08:24 drpenguin: any new idea with the new infor? Jun 15 03:09:49 That I dont know dude, Ive never used monkey Jun 15 03:10:35 looking at the manual, it doesnt look like you can specify intents Jun 15 03:10:41 thanks, sorry for making you jumped through hoops before Jun 15 03:10:54 OH WIT Jun 15 03:11:03 did you look at the --help output? Jun 15 03:14:07 why does in java button.getBackground().setAlpha(number); work, but when I do android:alpha="100" in xml it doesn't do anything? Jun 15 03:14:30 adb shell monkey -p my.package -v 5000000 --ignore-crashes Jun 15 03:14:35 thats how I run it Jun 15 03:14:42 T-Dub|DlolPics: is android:alpha a documented xml attribute? Jun 15 03:14:46 because I don't think it is Jun 15 03:15:01 It is one of the options when I do android: and look at everything I can use Jun 15 03:15:07 totic: look at the -c option Jun 15 03:15:11 But maybe not, what do I use the change the alpha in xml? Jun 15 03:15:16 black list maybe Jun 15 03:15:30 I would think you should change this in the drawable. Jun 15 03:15:31 what are the categories? Jun 15 03:15:37 the background statelistdrawable of your button. Jun 15 03:15:48 My background references a xml file though Jun 15 03:15:49 for your ocular pleasure: http://developer.android.com/guide/developing/tools/monkey.html Jun 15 03:15:54 and those already have defined colors Jun 15 03:16:01 T-Dub|DlolPics: you'd need to change each color, individually. Jun 15 03:16:11 Unless you can add something to the color code to auto make it transparent? Jun 15 03:16:19 but if you want to continue with your alpha war, be my guest. you might figure it out, but I've never used it. Jun 15 03:16:26 color codes are ##AARRGGBB Jun 15 03:16:35 lol Jun 15 03:16:38 The colors I use is #FF5500 and #FBB769, any idea how to make it transparent? Jun 15 03:16:38 you can use #RGB or #RRGGBB Jun 15 03:16:44 but they are #AARRGGBB Jun 15 03:17:01 drpenguin: I guess I can create my own category Jun 15 03:17:05 alpha byte is the first two hex digits, T-Dub|DlolPics Jun 15 03:17:09 AA Jun 15 03:17:16 Oh didn't know that Jun 15 03:17:23 how do i declare a collection that is of all my layouts for the pager to inflate? Jun 15 03:17:31 what is that called so I can google how to figure out x amount of alpha? Jun 15 03:17:51 jnewt: new int[] layouts = {R.layout.one, R.layout.two}; Jun 15 03:18:08 err, int[] layouts = {... } Jun 15 03:18:09 lose the new Jun 15 03:18:17 layouts are of type int? Jun 15 03:18:21 layout resource ids are Jun 15 03:18:26 ah Jun 15 03:18:27 and that's what you pass to layout inflater Jun 15 03:18:30 ok Jun 15 03:18:32 it makes sense to inflate only if you need to Jun 15 03:18:36 i.e. after the user swipes Jun 15 03:18:40 of course Jun 15 03:22:09 Hi! I have a question about location manager. If my user has disabled their system settings for GPS or whatever provider I am using, do I still need to remove the LocationManager's listener when the activity is closing, like in my onPause? Jun 15 03:45:06 <[deXter]> Wow, it's pretty dead in here. Jun 15 03:46:14 i need some information on how do i add this: import android.support.v4.view.ViewPager; to my project, some step by step stuff? anyone know of good info? Jun 15 03:46:29 any idea why this thing don't work in ICS: if ((intent.getFlags() & Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY) != 0) ? Jun 15 03:46:57 it looks legit to me but when it starts from recent it just not working !! Jun 15 03:48:44 jnewt: have you included the ACL in your project? Jun 15 03:49:49 not unless i did so unknowingly. Jun 15 03:49:59 Then thats probably a no :P Jun 15 03:50:22 behold! http://developer.android.com/sdk/compatibility-library.html Jun 15 03:50:40 newt go to eclipse and right click go android tools and support library Jun 15 03:50:43 ok, where can i read about including what i need, where to find it and how to actu Jun 15 03:51:05 newt right click on project Jun 15 03:51:18 drpenguin: oh yeah, i started to do that but got stuck on #3 of the Downloading part, because i don't have anything called "Android Support package" to click on Jun 15 03:51:40 drpenguin any ideas if ((intent.getFlags() & Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY) != 0) not working in ICS? Jun 15 03:51:41 jnewt: well then how do you expect to use the ACL if you dont have it :P Jun 15 03:52:01 elnews: I'd appreciate not being called upon to answer your question, thats generally frowned upon man Jun 15 03:52:22 drpenguin lol ok. sorry bout that. Jun 15 03:52:41 so.. you are masking the result of getFlags() with the value of that thing.. and what is it doing that you dont want it to do? Jun 15 03:52:52 drpenguin: i don't expect anything at this point. i just need some instructions that correspond to my situation. if it says to click on something that doesn't exist, it makes it tough to follow Jun 15 03:53:33 jnewt: see if its already Installed? Jun 15 03:54:23 i dont' see it in the sdk manager at all, so it doesn't say installed of course Jun 15 03:54:29 well, Long story. i hv an app that started from phone call and appears that the app is kept in the recent apps Jun 15 03:54:52 just want to differentiate between an app called from recent or home Jun 15 03:55:03 jnewt: "physically' look if its installed in your system Jun 15 03:55:06 so i can make a necessary actions. Jun 15 03:56:14 elnews: ok, but you arent answering myquestion Jun 15 03:56:17 I dont need the story Jun 15 03:57:37 jnewt: in SDK Manager, scroll down to Extras and select Android Support Jun 15 03:58:00 mdwright: it shows Rev 8 Installed Jun 15 03:58:10 okay, so it's installed Jun 15 03:58:26 i thought i was looking for access compatibility? Jun 15 03:58:50 drpenguin see the flags is to detect if the app is launched from history but i don't get it why it's not working !! Jun 15 03:59:12 jnewt: Nope Jun 15 03:59:27 elnews: have you tried to see what values are outputting, and then black box it from there to ensure what *you* are doing is correct? Jun 15 04:00:09 jnewt: I've gotta run, but now you just need to follow the directions under "Setting Up a Project to Use a Library" on http://developer.android.com/sdk/compatibility-library.html Jun 15 04:01:14 ok, i can just skip the downloading part then? i don't have that "Android Support package" to click in the SDK manager Jun 15 04:09:38 What is the best way to deal with "android.view.WindowLeaked: Activity has leaked window com.android.internal.policy." from an AlertDialog, right now I grab the dialogs and "onPause" I call .dismiss on them and null them Jun 15 04:10:01 but I am still getting the same error when I run it using monkey execiser Jun 15 04:12:29 http://developer.android.com/sdk/compatibility-library.html i can't complete #3 under Setting Up a Project to Use a Library. i copied the jar to the folder, but it doesn't appear in my package explorer Jun 15 04:13:30 jnewt: right click on the folder in eclipse -> refresh Jun 15 04:14:30 pboos: thanks. Jun 15 04:16:22 totic: also try calling .remove on them Jun 15 04:16:34 anwarhahj: thanks Jun 15 04:16:41 before or after the dismis? Jun 15 04:17:12 totic: i did mine after the dismiss, because dismiss just closes it from the view, while remove eliminates the reference Jun 15 04:17:40 totic: as i read on stackoverflow, the error comes from the dialog object still referencing the activity after the activity is gone Jun 15 04:18:30 anwarhahj: no method called remove Jun 15 04:18:44 http://developer.android.com/reference/android/app/AlertDialog.html Jun 15 04:19:22 you mean hide? Jun 15 04:19:28 or cancel? Jun 15 04:20:51 no, when i did it, i was using the depracated activity methods dismissDialog(int id) followed by removeDialog(int id) Jun 15 04:22:33 anwarhahj: so any recomendations for now? I am thinking of just remove all the Dialogs and use a stupid activity instead Jun 15 04:22:40 because I had to use a map, and none of the fragment-map hacks worked for me Jun 15 04:22:49 I just can't figure what to do Jun 15 04:23:00 i know it's bad practice, but I just go with the depracated methods in my case Jun 15 04:23:10 I am working on android 2.2 Jun 15 04:23:12 but android guide says to use fragments and then use the Jun 15 04:23:20 http://developer.android.com/reference/android/app/DialogFragment.html Jun 15 04:23:30 DialogFragment class Jun 15 04:23:41 which should be compatible through the support libraries Jun 15 04:23:59 yeah I can't use that since I am developing Enterprise code, so only android 2.2 (they use galaxy tabs version 1) Jun 15 04:24:28 well you should be able to use Activity.removeDialog(int id) Jun 15 04:25:27 http://developer.android.com/reference/android/app/Activity.html#removeDialog(int) Jun 15 04:25:42 it seems to work ok up to ICS... Jun 15 04:25:48 i am pretty new to this my self Jun 15 04:26:46 where do I get the id from the dialogs? Jun 15 04:28:40 In that method, you create an ID for each one Jun 15 04:28:59 like final static int HELP_DIALOG_ID = 1 Jun 15 04:29:17 like final static int PREFERENCES_DIALOG_ID = 2 Jun 15 04:29:45 the alert is built this way: this way http://pastebin.com/75wq9Bcm Jun 15 04:32:53 anwarhahj: I am sorry I am a bit lost Jun 15 04:32:53 so the only thing you need to do differently here is dont call .show() on the alertdialog you create Jun 15 04:32:58 its ok Jun 15 04:33:08 ok but .show displays it Jun 15 04:33:31 so what should it do instead? Jun 15 04:33:33 just return that alertdialog to a method called onCreateDialog(Int ID) Jun 15 04:34:10 onCreateDialog is a function that automatically gets called when you use the function activity.showDialog(int ID) Jun 15 04:34:53 so all you have to put in your onCreateDialog is a switch that calls the appropriate AlertDialog.Builder function (like what you showed me) for each alert dialog you want to make Jun 15 04:35:42 I followed this example http://developer.android.com/guide/topics/ui/dialogs.html#ShowingADialog Jun 15 04:36:33 i would paste some code, but it is on my other computer sorry Jun 15 04:36:33 where shoudl i go to learn how to translate runtimeError messages from LogCat into something that i can use to fix the problems? Jun 15 04:37:19 something like this: 06-14 23:26:18.440: W/ResourceType(1647): No package identifier when getting value for resource number 0x00000000 Jun 15 04:37:35 anwarhahj: I am reading about it here http://developer.android.com/guide/topics/ui/dialogs.html Jun 15 04:39:07 that's where i went too. you're on the right track. i just had to combine the top "Showing a Dialog" code example with the one about "AlertBuilder" lower down the page Jun 15 04:39:23 cool found an example http://www.mysamplecode.com/2011/11/android-alertdialog-example-showdialog.html Jun 15 04:42:42 i just tried to run my pager and this is what logcat spit out: http://pastebin.com/w8NqWejm the tablet just says Unfortunately has stopped [OK] Jun 15 04:43:45 Line 21 looks like where the problem starts Jun 15 04:45:27 I'm completely unfamiliar with the google play store publishing stuff, but does it let a developer link other developers with an account? Jun 15 04:53:21 wabz: i think the feature was recently added Jun 15 04:53:32 you can have multiple poeple working on the same app Jun 15 04:54:06 yeah I vaguely remember reading about that but can't find anything Jun 15 04:54:55 it looks like top developers can now reply to reviews - my company just has one global account for which very few people have the username/password.. it'd be good if we could create our own local account and use it to respond to reviews Jun 15 05:09:19 what should i search for, where can i learn how to change that little android guy with the box in his belly and the app name at the top of my app? Jun 15 05:11:21 i can't click on it in the layout editor, and it doesn't seem to be in the xml Jun 15 05:13:27 jnewtL what are you talking about Jun 15 05:14:24 i made an example application, and it has a little android guy at the top left and the name of my project next to him. i didn't put it there. i want to get rid of him, and change the text Jun 15 05:15:41 f2prateek, it's some sort of default header or title or something. i don't know what it's called Jun 15 05:20:49 oh its the app icon Jun 15 05:20:53 just change that Jun 15 05:21:16 ok, it's called an app icon Jun 15 05:21:22 yeah Jun 15 05:21:38 change in the android manifest Jun 15 05:21:49 can i just delete it? Jun 15 05:22:15 yeah but you still have to supply an alterate application icon Jun 15 05:22:33 delete ic_launcher.png in all your drawable folders Jun 15 05:22:34 i'm not talking about what you touch to use the app, it's after the app is open Jun 15 05:23:07 yeah i know in the top left on the actioin bar right? Jun 15 05:23:10 this: android:icon="@drawable/ic_launcher" ??? Jun 15 05:23:13 yeah Jun 15 05:23:39 f2prateek, is that what it's called, the action bar? there's no actions, the buttons are on the bottom of the app Jun 15 05:23:50 can you give me a screenshot? Jun 15 05:24:51 unfortunately, my app won't let me view the normal layout editor, only xml for some reason, not sure if it's an eclipse problem or something else Jun 15 05:25:16 which would be another question I have Jun 15 05:27:54 k this is what the action bar and app icon are https://www.dropbox.com/s/la6o0yv9k99guzn/Image%20004.png Jun 15 05:28:19 app icon is declared in the manifest Jun 15 05:28:20 android:icon="@drawable/app_icon" Jun 15 05:28:23 yup, that's what i'm talking about Jun 15 05:28:46 just change @drawable/app_icon to whatever your application icon is Jun 15 05:29:17 i don't have one. i just want text up there Jun 15 05:31:46 http://developer.android.com/reference/android/app/ActionBar.html#setDisplayShowHomeEnabled(boolean) Jun 15 05:31:49 set it to false Jun 15 05:31:53 will hide the icon Jun 15 05:32:02 sweet, thanks Jun 15 05:42:35 how long do I give an unanswered stackoverflow question until I post it to android-developers? Jun 15 05:42:44 1 day? :p Jun 15 05:47:06 wabz: 3? Jun 15 05:47:19 wabz: what's the question? Jun 15 05:47:28 wabz: bounty Jun 15 05:47:36 http://stackoverflow.com/questions/11043266/listview-not-entirely-rendered-at-animation-completion Jun 15 05:49:05 hey i have 2 webviews completely seperate but it seems one uses the settings from the other somehow, is that possible or a known bug ? Jun 15 05:49:08 you will probably have better luck if you paste the code instead of offering up a tarball Jun 15 05:49:14 I did Jun 15 05:49:24 oh, I'll edit your post then Jun 15 05:50:12 ah thanks heaps Jun 15 05:50:43 18 hrs Jun 15 05:50:45 of coding Jun 15 05:50:46 ;-/ Jun 15 05:50:49 drinking beer now Jun 15 05:50:51 lol Jun 15 05:51:03 wish I had beer Jun 15 05:51:09 that's not a bug, I think that's how webview just works. Jun 15 05:51:19 it's not just webview though Jun 15 05:51:19 but theyre 2 diff instances of webview Jun 15 05:51:23 with different settings applied Jun 15 05:51:34 or maybe you're not replying to me :p Jun 15 05:53:08 are there any good guides about layout design Jun 15 05:53:16 gaz`: what happens.. does it take the last applied set of settings? Jun 15 05:53:23 from the design point of view Jun 15 05:53:30 eSatsu: tons on the official android site Jun 15 05:53:31 eSatsu: http://developer.android.com/design Jun 15 05:53:36 ty Jun 15 05:53:50 no it seems to go for zoomdesnity.far Jun 15 05:53:55 even when i set zoom density medium Jun 15 06:03:27 I have a gridView . But want to display images pulled from a remote service. the number of images (count) it will return is not fixed. in this case what should the getCount of adapter return? Jun 15 06:03:35 weird Jun 15 06:03:49 I get this error 06-15 05:15:01.100: WARN/ResourceType(52): Resources don't contain package for resource number 0x7f050000 Jun 15 06:04:05 theres few of those. but I looked in R file and that number dont exist Jun 15 06:04:54 anyone? Jun 15 06:05:22 sorry not familiar with that Jun 15 06:07:51 Nism: Once the images are pulled from the remote services, where do you store the image names in your application? Jun 15 06:09:06 DiskCache Jun 15 06:09:15 X-suriV: Disk Cache Jun 15 06:09:48 but that s the background service-continuously doing work. so number of images might get update after some time. Jun 15 06:10:24 can you create a variable to keep track of the number of images? Ie: download an image and add, delete an image, remove? Jun 15 06:10:36 yes. I have that variable Jun 15 06:10:47 but isn't getCount called when the grid is getting initialized? Jun 15 06:11:11 getCount() is called whenever you update the adapter Jun 15 06:11:20 oh Jun 15 06:11:37 which also occurs at initialization :) Jun 15 06:12:07 right. i get tht now. so i can just reset to that adapter's newer instance. and getcount will return that atomic variable Jun 15 06:12:13 hhmm. Jun 15 06:13:01 let me try. thanks readme, X-suriV Jun 15 06:16:29 I'd appreciate any help with this: I have a RadioGroup populated programmatically with some quiz questions parsed from XML. When creating the RadioButtons, I set a tag "correctAnswer" on each one to determine the correct answer. Can anyone see a problem with this code? http://pastie.org/private/8s3pxw52fmjli7eel99nxw Jun 15 06:17:22 JavaDog: what is the expected result of this code, and what is happening instead Jun 15 06:17:26 * I've verified that the integer being returned from question.getCorrectAnswerIndex() is being parsed correctly Jun 15 06:18:14 On some questions in my quiz, incorrect answers are popping up my "Correct answer!" toast and their tags are apparently returning true Jun 15 06:19:08 Here's where I check it http://pastie.org/private/rt6bar375w0mge5namjja Jun 15 06:19:30 it looks like you are using your index variable 'i' which is an index into 'answers' as an index into questionsList Jun 15 06:19:36 that seems not correct to me. Jun 15 06:20:35 Oh yeah, I want the size of the questions array. Jun 15 06:20:44 wait Jun 15 06:20:49 no Jun 15 06:21:08 Okay, I see the problem Jun 15 06:21:09 you are getting the index from the wrong row Jun 15 06:21:21 I'm getting the answer for another question Jun 15 06:21:28 right Jun 15 06:22:56 I can use the questionNum I passed earlier Jun 15 06:23:07 hah, that was silly of me Jun 15 06:23:09 Thanks readme Jun 15 06:25:35 Is the Motorola Xoom an MDPI device? Jun 15 06:28:48 http://developer.motorola.com/products/xoom/ + http://developer.android.com/guide/practices/screens_support.html = your answer Jun 15 06:29:12 I've already found the answer, but I'll give you my original sources. Jun 15 06:30:11 bah I hate to restart android emu Jun 15 06:30:57 check off 'snapshot' Jun 15 06:31:12 then you only need to restart it the real way when it breaks. which will inevitably happen. Jun 15 06:31:24 also use the x86 images, they start up quite quickly Jun 15 06:31:35 can't do that with gpu emulation though Jun 15 06:32:56 I also need to update eclipse lol using version from 2009 Jun 15 06:34:33 weird. logcat seems permently borked. I closed everything, including adb Jun 15 06:34:43 restarted all. still can't get anything Jun 15 06:38:17 just realised im eager loading everything... Jun 15 06:38:26 if i had the time it would be very nice to fix that Jun 15 06:39:26 I'm getting a weird ClassNotFoundException, only on pre-ICS (works fine on my Tab 10.1 and emulator with ICS, but not Desire Z with Gingerbread). Here's the logcat output http://snipurl.com/23y234e Jun 15 06:40:57 i'm trying to start a new activity that is supposed to draw a chart. i'm using this: http://www.androidcompetencycenter.com/2009/03/tutorial-how-to-start-a-new-activity/ to start a new activity Jun 15 06:41:23 so whats issue? Jun 15 06:41:26 Intent myIntent = new Intent(myPagerAdapter.this, ChartsActivity.class); is the problem Jun 15 06:41:39 [2012-06-15 01:38:25 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Parser exception for Z:\eclipse\workspace\a1quilter\AndroidManifest.xml: The value of attribute "android:name" associated with an element type "action" must not contain the '<' character. Jun 15 06:41:50 no wrong error, hold on Jun 15 06:42:13 The constructor Intent(myPagerAdapter, Class) is undefined Jun 15 06:42:17 * DataTracer waves Jun 15 06:42:33 is the issue in the manifest? Jun 15 06:42:37 that class has public consector? Jun 15 06:43:21 public class, public onCreate Jun 15 06:43:47 same as the tutorial Jun 15 06:44:33 am i missing an import needed by Intnet? Jun 15 06:44:33 I meant constector not oncreate Jun 15 06:44:51 class extending Activity? Jun 15 06:45:02 class is extending Activity Jun 15 06:45:12 has public consector? Jun 15 06:45:29 public thisclassname(....) {....} Jun 15 06:45:57 no Jun 15 06:46:24 just public class ChartsActivity extends Activity {...} Jun 15 06:46:42 “There are three classes of people: those who see. Those who see when they are shown. Those who do not see.” Jun 15 06:46:45 Im not sure but I think public constector is requirement for acticvity Jun 15 06:46:48 --DaVinci Jun 15 06:46:58 readme: very nice quote Jun 15 06:47:15 XXCoder: according to the tutorial, it is not. but i could be wrong. Jun 15 06:47:20 it was a non-sequitor Jun 15 06:48:06 I doubt theres any harm on trying. Jun 15 06:48:08 XXCoder: also, i want to initiate it from a class that extends PagerAdapter, not activity, maybe that's the problem Jun 15 06:48:46 theres method you can call activoity from non-activity class, but you can't get results from that activity Jun 15 06:49:27 I successfully did it, but it was real ugly when I needed return value so i found another way, but lemme get code i used to start activity from non activity Jun 15 06:50:13 Intent i = new Intent(this.getContext(), ChooseFile.class); Jun 15 06:50:13 getContext().startActivity(i); Jun 15 06:50:40 you can't use startAcivityForResult because class youre calling from is not an activity Jun 15 06:51:46 jnewt: you should use Fragments in your pager Jun 15 06:52:01 Fragments have a getActivity() method that you can call. Jun 15 06:52:21 or, you can simply pass a ref to the activity into your adapter. Jun 15 06:52:27 listen to readme. i only know about activity stuff because i recently went though hell with that lol Jun 15 06:52:50 is it pretty much a start-over situation readme? i was pretty happy just to get the pager working Jun 15 06:53:09 what are you trying to do from a business perspective Jun 15 06:53:20 or in least problem solving Jun 15 06:53:22 to integrate fragments, you just put a tag in the layout Jun 15 06:54:08 definitely don't need to start over. Jun 15 06:54:42 well, i wanted 3 pages with controls on them, but then i wanted to put a chart on one, so i got a chart library, and a class that i can modify to suit my needs, but i can't start it in the pager Jun 15 06:55:11 what chart lib Jun 15 06:55:14 https://twitter.com/castirony/status/213524588930404352 Jun 15 06:55:38 readme achartengine-1.0.0 Jun 15 06:55:43 AgentOrange: funny Jun 15 06:55:47 * XXCoder closes ugly code file again and wonders if he should just delete it Jun 15 06:55:54 jnewt: and how does achartengine display a chart? Jun 15 06:56:01 do you know how that works? Jun 15 06:56:53 yeah, i can make it work when it's the only thing that the application does. Jun 15 06:57:03 so, how does it display a chart? Jun 15 06:57:11 does it use a customview? surfaceview? what does it do Jun 15 06:57:17 does it have a fragment wrapper? Jun 15 06:58:06 well, i don't know the internals of it, but you add a series, then get the view, refresh and repaint Jun 15 06:58:48 are you able to use it in XMKL? Jun 15 06:58:51 XML? Jun 15 06:59:21 maybe, I'll need to do some more reading, the way i have it, it's all java Jun 15 06:59:40 why aren't you able to get it to work in the viewpager? Jun 15 07:00:33 whats latest eclipe version? Jun 15 07:01:14 readme, i don't understand how to properly start the activity in the pageradapter. i'm getting errors when declaring the intent Jun 15 07:01:47 jnewt: tell me more: what activity do you need to start and why Jun 15 07:02:04 do you want the chart to be something that appears *in* the viewpager? Jun 15 07:06:03 If the latter, you don't want to start an activity. Jun 15 07:06:10 you want to stick the view in the view pager. Jun 15 07:06:11 readme: i cobbled together a standalone application with one activity ChartsActivity that would render a chart. I want that chart to appear in one of my "layouts", Jun 15 07:06:32 ok so instead of an activity.. make it a fragment Jun 15 07:06:36 isnt activity normally entire screen? Jun 15 07:07:15 make a ChartFragment so you can use several of them to have charts (plural) Jun 15 07:07:56 https://github.com/tom-dignan/android-jqplot-wrapper Jun 15 07:08:09 I made something similar. Except it wraps a javascript chart library inside a webview Jun 15 07:08:16 then you have a Fragment based interface to it Jun 15 07:08:29 it's just a proof of concept at this stage but i plan to add more interfacing Jun 15 07:08:38 how would you declare an empty framgnet constructor? Jun 15 07:08:47 all classes have that by default Jun 15 07:09:29 tahts what I thought, but why do the docs say http://developer.android.com/reference/android/app/Fragment.html#Fragment() Jun 15 07:09:34 but if you wanted to be explicit.. just define an public empty zero-argument constructor...public MyClass() {} Jun 15 07:10:00 the docs are being explicit Jun 15 07:10:46 k but even after doing that I still get unable to instantiate fragment error Jun 15 07:10:59 stacktrace Jun 15 07:11:08 http://sebsauvage.net/paste/?c7d259e3230ed915#Rj1mneyfaJbB+PvdvBwDZ25uczBYCCYIOn/l4NpfTKI= Jun 15 07:11:13 and paste code Jun 15 07:11:56 oh man, i hope you're going to share this NumberPickerFragment Jun 15 07:12:16 https://www.dropbox.com/s/m16hgjld0fn9zia/NumberPickerFragment.java Jun 15 07:12:35 the first two methods are the instantiate stuff Jun 15 07:12:54 where is the Activity Jun 15 07:13:36 its not a static class Jun 15 07:13:45 I know Jun 15 07:13:58 but show me the activity you're inflating the Fragment in that causes your exception Jun 15 07:14:15 https://www.dropbox.com/s/sogrz2eyh52tom5/TimerActivity.java Jun 15 07:15:24 and the main https://www.dropbox.com/s/41cvxplnjpz1lat/main.xml Jun 15 07:15:44 fragments are isntantiated thorugh the xml, code just hides and shows them Jun 15 07:15:49 maybe just need to rebuild? Jun 15 07:16:07 i did Jun 15 07:16:09 wtf is this error 06-15 07:16:29.712: WARN/ResourceType(52): Resources don't contain package for resource number 0x7f0700e5 Jun 15 07:16:13 it works on ics Jun 15 07:16:17 but on on gingerbread Jun 15 07:16:50 weird, it looks like you have most of it right Jun 15 07:18:23 if i make the fragment static, can i still use it in the xml? Jun 15 07:18:34 so what languages can i use for android dev besides java? Jun 15 07:18:38 yeah, com.foo.bar$StaticFragment Jun 15 07:19:15 AgentOrange: lots, but no matter what you will need a java background to be successful Jun 15 07:19:19 AgentOrange: only java. theres team making c# android though Jun 15 07:19:34 oh apps not android itself lol Jun 15 07:19:36 NM Jun 15 07:20:02 C# is already ready... it's just not free. Jun 15 07:20:21 Java is pretty easy to learn too if you already know an OOP language Jun 15 07:20:23 i've seen people here using lua, scala, there's even a basic compiler of some sort. Jun 15 07:20:29 free in what terms? source? develment envorment? Jun 15 07:20:35 android apps in LUA? really? wow Jun 15 07:20:54 I guess you could use Scala or AspectJ as well Jun 15 07:21:04 I think at least one guy inhere uses scala Jun 15 07:21:13 readme: thanks for your help :) Jun 15 07:23:37 readme: blog.xamarin.com/2012/05/01/android-in-c-sharp/ Jun 15 07:23:56 XXCoder: yeah, i know about that Jun 15 07:24:04 if you want to develop apps it costs money Jun 15 07:24:13 not with mono Jun 15 07:24:28 last time I tried, mono wasnt as good as eclipse Jun 15 07:24:35 XXCoder: https://store.xamarin.com/ Jun 15 07:24:39 mono for android costs money Jun 15 07:25:23 oh Jun 15 07:25:38 thought mono was open source Jun 15 07:25:49 it is worth it for a company or seriously diehard C# programmmer Jun 15 07:25:54 but not for most people Jun 15 07:26:03 very worth it for a bigcorp Jun 15 07:26:04 for sure Jun 15 07:26:10 guess so Jun 15 07:29:32 readme: know anything about 06-15 07:16:29.712: WARN/ResourceType(52): Resources don't contain package for resource number 0x7f0700e5 Jun 15 07:29:50 I checked out R file and it dont have any resouce with that number Jun 15 07:32:36 do you know what causes that warning Jun 15 07:32:53 are you certain it's even being sent by your app? Jun 15 07:33:01 maybe it's just some other junk on your test device Jun 15 07:33:14 true. how can i find out? Jun 15 07:33:38 dont. in the future filter the logs and pay attention only to your own app's messages Jun 15 07:34:03 ok checking out logcat festures. Jun 15 07:34:05 features Jun 15 07:51:01 anyone know if it might be possible to see the same android os version with different linux kernel versions, in the wild? Jun 15 07:53:01 kernel isn't part of the AOSP source tree and you need to get it separtely, so although I don't dabble in that stuff, I am fairly confident that the kernel versions will vary. Jun 15 07:55:14 readme: how about dalvik vm versions? Jun 15 07:56:39 I would expect that to be consistent Jun 15 07:57:42 hi Jun 15 08:46:51 trying to follow http://www.vogella.com/articles/AndroidNotifications/article.html and I got R.drawable.icon symbol not found Jun 15 08:51:32 did you import com.android.R ? Jun 15 08:52:15 if you did, delete that line, Jun 15 08:52:22 or clean project and rebuild Jun 15 08:53:55 I didnt, but I didnt have an icon either, added one, compiled Jun 15 08:54:06 I thought it would use the default icon, seems not Jun 15 08:54:18 thanks f2prateek Jun 15 09:03:46 lol no, it referes to the .png file directly Jun 15 09:04:04 so default one should be ic_launcher for ics Jun 15 09:11:32 say i want to implement an Imageview subclass that scales the image up beyond the size of the intrinsicWidth() and intrinsicHeight() of its src drawable Jun 15 09:12:26 Is it possible to setError on an ImageView like we do for EditText ? Jun 15 09:14:49 did you read the docs? Jun 15 09:14:59 it's definitely something you can figure out by reading the docs Jun 15 09:19:45 why is Notification notification = new Notification(R.drawable.icon, "A new notification", System.currentTimeMillis()+1000L*100L); happening right away rather than in 2min? Jun 15 09:21:14 Utopiah: because when is just a timestamp for the notification Jun 15 09:22:36 Utopiah: it is usually a good idea to at least try to read the docs first Jun 15 09:23:05 I did but obviously didnt mean I understood what it meant Jun 15 09:23:27 http://developer.android.com/reference/android/app/Notification.html#when Jun 15 09:24:02 Can someone give me a hint how I can find out wicht pointer creates a ACTION_MOVE event? Jun 15 09:24:14 Utopiah: ok, but now you understand what the word timestamp means? :) Jun 15 09:24:54 I implement two onscreen analog joystick, both work fine when just one is used, but not together. Jun 15 09:26:15 appel1: couldnt timestamp here be understood as when the notification appears rather than when it is "sent"? Jun 15 09:26:38 fornext: is your phone multitouch? Jun 15 09:26:54 diki, yes it is. Jun 15 09:27:46 I remember facing a similar problem on Pc with sdl controls for a game Jun 15 09:28:27 fornext: getPointerId() Jun 15 09:28:50 *MotionEvent.getPointerId() Jun 15 09:29:20 Utopiah: don't think so, and reading the rest of the text makes it even more obvious.. "The icons and expanded views are sorted by this key." Jun 15 09:29:34 MDijkstra, yes I save the PointerId in Action_DOWN, or POINTER_DOWN for using it later in the move event. Jun 15 09:29:50 fornext: there can be multiple in a single event Jun 15 09:29:52 appel1: http://en.wikipedia.org/wiki/Curse_of_knowledge Jun 15 09:30:30 Utopiah: https://www.google.com/search?q=define%3Atimestamp :) Jun 15 09:31:05 fornext: ie, you need to loop through them with for(int i = 0; i < e.getPointerCount(); i++) { doSomethingWithData(e.getX(i), e.getY(i)); } Jun 15 09:31:08 Utopiah: nice find there Jun 15 09:31:51 MDijkstra, let me try. This sounds helpful. Jun 15 09:32:44 diki: I have a toolkit for Internet argumentation ;) Jun 15 09:41:30 MDijkstra, thx. The problem was, that I thought ACTION_MOVE are single events. Jun 15 09:42:07 MDijkstra, What about ACTION_DOWN and ACTION_POINTER_DOWN. This both are single, or not? Jun 15 09:44:33 might be offtopic, but in android project / eclipse.. is there a quick way to see which subclasses override some method? Jun 15 09:46:17 intent = ChartFactory.getScatterChartIntent(this, getDemoDataset(), getDemoRenderer()); Jun 15 09:46:46 miha: take your cursor over the method and press f4 Jun 15 09:46:52 miha: cursor on method in base class: ctrl+t Jun 15 09:47:15 undefined DemoDataset() and getDemoRenderer(), this is from achartengine library. where are these defined, or should i make something up? I can't track down what they are. Jun 15 09:48:34 deebo rretzbach thx :) i also figured i could just throw some checked exception and compile Jun 15 09:48:37 thx a lot Jun 15 09:48:42 or maybe something like this would work? http://stackoverflow.com/questions/8374769/how-to-make-a-graph-in-achartengine-plot-slowly/8995510#8995510 Jun 15 09:48:50 but where would that code go? Jun 15 09:49:04 miha: hehe, let the compiler do the work for you, eh? :> Jun 15 09:49:32 rretzbach: :D Jun 15 09:49:38 Hi, I want to develop a softkeyboard based on androids latinIME. Can I import this source somehow into eclipse to get a runnable android project? https://github.com/iamcalledned/LatinIME Jun 15 09:50:09 i tried it in my ChartFragment, and it doesn't evne come close to compiling. I need a starting point. Jun 15 09:52:18 rretzbach: well that could be handy if you dont know shortcut to "find where this method is called"? ;) Jun 15 09:53:09 miha: It probably works in any IDE too Jun 15 09:53:15 activity inside tabhost does not receive broadcasts Jun 15 09:53:17 hey guys, quick question - is there an example code for trasferring files between two android devices through wifi? (NOT wifi direct) Jun 15 09:55:52 fornext: I think so, yes Jun 15 09:58:48 conspiracy theory time: what is MS up to (announcing) just before google i/o ? Jun 15 09:59:16 google will probably announce their nexus tablet :) Jun 15 09:59:24 g00s: MS is gonna get Yammer :P Jun 15 09:59:34 what the hell is Yammer ? Jun 15 09:59:39 g00s: according to engadget, windows rt demo'ed on tablet hw Jun 15 09:59:43 g00s: Ask google Jun 15 09:59:56 g00s: which would make sense, stealing a bit of the spotlight from google Jun 15 10:00:12 (just like they attempted to do by showing off 3d maps just before apple) Jun 15 10:00:30 hehe, google tried to steal some spotlight on ios 6 maps, everybody does it Jun 15 10:00:38 they succeeded, I think Jun 15 10:00:49 everyone was comparing iOS 6 maps to the new google maps Jun 15 10:01:00 i saw comparison pics of regular google street view and ios 6 , thought ios looked terribad Jun 15 10:01:49 "Nokia's 'Meltemi' Linux-based mobile OS reportedly shelved" Jun 15 10:01:57 how many operating systems did Nokia have ? Jun 15 10:02:11 how many more do you think we will find out about ? Jun 15 10:02:22 g00s: it was nokia's bada, give or take Jun 15 10:02:32 or it was going to be... Jun 15 10:02:40 i thought that was Meego :P Jun 15 10:02:43 yeah, they probably made all of the remaining maemo folk work on it Jun 15 10:03:00 (those who didn't quit after they switched to WP7, as the vast majority did) Jun 15 10:03:12 those guys will be fired now Jun 15 10:03:17 pretty much Jun 15 10:03:20 good time to hire tech talent i suppose Jun 15 10:03:47 nvidia actually opened a branch in finland to capture some of the linux talent leaving nokia Jun 15 10:03:52 in Europe, anyway Jun 15 10:04:22 MDijkstra: meh, that happened to me when I got hired by Sun 12 years ago :) Jun 15 10:05:04 Sun opened a new site to house ex-SCO people Jun 15 10:07:02 I've never understood why nokia became the darling of the open source community anyway Jun 15 10:07:12 always seemed really opportunistic Jun 15 10:07:19 Qt? Jun 15 10:07:54 well, yeah, but the intention to make maemo largely closed-source if it proved successful has always been there Jun 15 10:07:58 imo Jun 15 10:11:56 anyone know good page for example code about putting data into sqlite and later in app getting that data from sqlite? Jun 15 10:12:54 Angel07: the interwebs has some good tuts Jun 15 10:13:01 :/ Jun 15 10:14:03 google "android sqlite tutorial" :p Jun 15 10:17:02 what's the recommended way of doing futures and promises? Jun 15 10:17:16 or at least deferring operations away from the ui thread Jun 15 10:17:31 funktronic why not using an AsyncTask ? Jun 15 10:18:02 ah, looking at it now Jun 15 10:18:29 an asynctask is essentially a future, I think Jun 15 10:18:40 so doInBackground is executed using a threadpool and onPostExecute is on the ui thread? Jun 15 10:18:50 MDijkstra: kinda sorta :) Jun 15 10:18:57 but it looks promising Jun 15 10:19:39 funktronic: yes, although you can do this yourself by posting to the UI threads event loop Jun 15 10:19:42 it does look like it will do quite nicely, thanks! Jun 15 10:19:58 ie, that's what AsyncTask does Jun 15 10:20:03 i'm lazy and a shitty dev. don't want to write code that i don't need to write Jun 15 10:20:09 fair enough Jun 15 10:21:41 there is also this thing i heard about the other day; don't know if its any good http://code.google.com/p/android-query/ Jun 15 10:22:36 i generally prefer writing a little more boiler plate with the official stuff then getting all coupled to these libraries though Jun 15 10:22:53 i see things that require reflection Jun 15 10:23:13 or i assume they do, i just started doing java this week Jun 15 10:23:46 no, nothing should require reflection Jun 15 10:23:56 appel1: if you are curious http://blog.blundell-apps.com/notification-for-a-user-chosen-time/ does exactly what I need Jun 15 10:23:56 or almost nothing, I'm sure there's an exception somewhere Jun 15 10:24:34 looks like in java you can do class.invoke(methodname, params, instance) Jun 15 10:24:39 Utopiah: just so you know, I think those get cleared once the system restarts Jun 15 10:25:10 Utopiah: that could be problematic in some use cases Jun 15 10:25:48 MDijkstra: needs sth like android.intent.action.BOOT_COMPLETED/android.permission.RECEIVE_BOOT_COMPLETED ? Jun 15 10:26:42 Utopiah: no, I'm not sure if that example does this Jun 15 10:26:48 Utopiah: that's not a good way to do it since it has a running service for the whole wait duration Jun 15 10:26:52 Utopiah: but you need to recreate the alarms on device boot Jun 15 10:27:02 Utopiah: or your stuff will be lost Jun 15 10:27:43 Utopiah: I mean, just receiving the boot events is not enough, you need to recreate all the AlarmTasks when you receive it Jun 15 10:27:49 yes Jun 15 10:27:54 i'm using a library that is giving me trouble with the line: GraphView graphView = new LineGraphView(this,"GraphViewDemo"); Jun 15 10:28:27 it says this: The constructor LineGraphView(ChartFragment, String) is undefined Jun 15 10:29:02 when i go to the LineGraphView Class, there is this: public LineGraphView(Context context, String title) {...} Jun 15 10:29:08 is that not defined? Jun 15 10:29:25 jnewt: this in your case isn't a Context then Jun 15 10:29:44 jnewt: ChartFragment isn't a Context that is Jun 15 10:31:44 appel1: ok, then i need to get the context? i thought this did so in an activity, what does so in a fragment (where i'm currently trying to make a graph Jun 15 10:32:13 can i use one of the getContext() methods app / base / etc? Jun 15 10:33:19 jnewt: I think there's a getActivity you can use to get the activity from within a fragment Jun 15 10:38:34 jnewt: just so you don't get confused, do NOT use getActivity() to call setContentView/findViewById from your fragment. that is a no-no. Jun 15 10:39:27 too late on the confusion part. i cannot wrap my head around the concept of context already. i read the words, but it doesn't make sense Jun 15 10:39:56 Context is a class that e.g. Activity extends from Jun 15 10:39:59 It's that simple Jun 15 10:40:12 inheritance Jun 15 10:40:16 so why do we need to have it / get it? Jun 15 10:40:28 did you need it for something? Jun 15 10:40:30 Cus the constructor requires it Jun 15 10:40:37 yeah, there you go. Jun 15 10:40:41 your black box needs it Jun 15 10:40:44 readme: something did. Jun 15 10:40:48 yeah, black box right Jun 15 10:42:02 i've got one more issue here with compiling. i need to add the graph to the layout. the examples show it by layout.addView. is this done before / after inflating from the fragment? Jun 15 10:42:27 Why not add it to the layout you're inflating in the fragment Jun 15 10:42:30 and they're adding it to a layout Jun 15 10:43:53 is there a good document describing the layout process for views? Jun 15 10:44:09 the reference docs are a bit tight on explanations :D Jun 15 10:44:18 The layout process? Jun 15 10:44:33 SimonVT: that's what I want to do. Jun 15 10:44:42 jnewt: I meant, define it in the xml Jun 15 10:44:42 SimonVT: determining the size of a view Jun 15 10:45:14 tapas: How to implement onMeasure, or? Jun 15 10:45:21 i am in the process of subclassing View and i don't quite grasp it just form the api ref Jun 15 10:45:23 SimonVT: yeah.. Jun 15 10:45:26 I don't see any examples of doing that with a chart SimonVT Jun 15 10:45:47 so i assume it's either not preferred, or not possible Jun 15 10:45:53 jnewt: Jun 15 10:46:12 tapas: I'd recommend looking at the source of the framework views Jun 15 10:46:25 I don't believe there's any real good resources for it Jun 15 10:46:30 At least I've found none Jun 15 10:47:04 SimonVT: ah, too bad.. this is kinda essential ;D i'm proobably spoiled from qorking with Qt for a long time :D Jun 15 10:47:21 s/qorking/working/ Jun 15 10:47:41 It's not too bad Jun 15 10:48:03 Depending on amount of laziness and your use-case, it can be quite simple Jun 15 10:48:48 Like, if you always need match_parent in one direction, and wrap_content in another, there's no point in implemention logic for fixed sizes/other combinations of match_parent/wrap_content Jun 15 10:48:58 SimonVT: i suppose i can gather all the needed info from the ref docs afterall.. just a bit of work Jun 15 10:49:45 simonVT: i think i can't do that because my graph is an instance, not a class. Jun 15 10:50:01 Uh, what? Jun 15 10:50:22 Of course your graph is a class Jun 15 10:51:08 SimonVT: yeah, in our case i think i need to pretty much implement all combinations correctly ;D Jun 15 10:51:25 SimonVT: it's a good exercise though.. maybe i'll write an article about it later on ;D Jun 15 10:51:29 SimonVT: there is a graphclass, that i use to make my graph. Jun 15 10:52:19 dude instead of adding the graph to the layout with addView Jun 15 10:52:28 just return the graph in the onCreateView of your fragment Jun 15 10:52:32 put the fragment in your layout Jun 15 10:52:34 viola Jun 15 10:53:02 i thought i needed to return the view that i inflated. Jun 15 10:53:11 you need to return any view Jun 15 10:53:23 you could inflate a view and call addView on it Jun 15 10:53:25 then return that view Jun 15 10:53:39 why even return anything Jun 15 10:53:51 because read the fragment docs derp Jun 15 10:53:53 nm, lemme try Jun 15 10:55:17 ugh, 9 different combinations :D Jun 15 11:00:50 readme, so i inflated the view, and then it overwrote the whole thing with the graph beacause i returned the graph instead of the layout right? Jun 15 11:01:28 Why inflate a layout you're not going to use? Jun 15 11:02:03 i wan't to use it. Jun 15 11:02:25 i want to add more to it than just the graph Jun 15 11:02:33 so inflate the view Jun 15 11:02:36 add the graph to it Jun 15 11:02:39 then return that instead Jun 15 11:02:45 When I run startActivity(intent); overridePendingIntent(slide_in_left, slide_out_right); the slide-in works, but when the started activity is finished, it doesn't slide out Jun 15 11:03:19 oh, I need to call it after finish() as well maybe? Jun 15 11:03:41 you will probably want to cast the inflated layout to the correct layout type so you can use the right kind of layout params and stuff when you add the graph to it Jun 15 11:04:03 overridePendingTransition* Jun 15 11:13:00 you need to wait for the animation to complete before calling finish() Jun 15 11:13:18 i haven't done this for an activity, but have done it with dialogs Jun 15 11:18:11 it looks like inflate returns a View, and addView is a method ViewGroup (maybe others too), but not View, which makes sense. so how do i addView(graphView) to the inflated layout? Jun 15 11:18:21 cast Jun 15 11:18:30 view to viewgroup? Jun 15 11:18:32 learn about is-a relationships in OOP/Java Jun 15 11:18:55 never heard of that. ok Jun 15 11:19:00 that would be sufficient for using addView but some layouts have more complicate things you might want to use too.. like RelativeLayout has addRule for anchors etc. Jun 15 11:19:07 if you just want addView Jun 15 11:19:15 then you can cast to ViewGroup Jun 15 11:19:53 i just want to add it to the layout, maybe move it to a specific location or resize later, but baby steps are good Jun 15 11:20:13 look at the doc for your outermost layout Jun 15 11:20:23 it has the inheritance heirarchy Jun 15 11:21:09 bbl Jun 15 11:35:54 hi, is it possible to kill arbitrary processes from another app or to trigger a system procedure for that purpose? Jun 15 11:36:07 is there an AsyncCallback<> interface defined anywhere similar to http://msdn.microsoft.com/en-us/library/system.asynccallback.aspx ? Jun 15 11:37:07 I don't know, what is it :D Jun 15 11:40:23 funktronic: have you take a look at asynchtask ? Jun 15 11:41:53 Hey, my application would always start the main menu intent and start downloading a file. So in order to speed things up I put a check so it didnt download it if it had the file.. but its not sped it up at all. Instead I just get a black page with the apps name on top and then after a few seconds the main menu intent loads. Any ideas? http://pastebin.com/9pfyZR1j Jun 15 11:44:59 Is it possible to launch the android sound player to play a sound, or do I have to use MediaPlayer and do everything manually? Jun 15 11:45:42 i guess when the measureSpec has mode EXACTLY for both dimensions my view must use these passed sizes in setMeasuredDimentsion, correct? Jun 15 11:46:00 Yes Jun 15 11:48:11 Hemmed Jun 15 11:48:35 Ignore that! Jun 15 11:49:36 Does the android calendar not use http for active sync (google sync) ? Jun 15 11:49:41 I tried installing Fcc plugin for c4droid but i get an error saying something about incompatability Jun 15 11:50:01 Gcc* Jun 15 11:50:31 And gcc is what i want Jun 15 11:50:41 in public Intent (String action, Uri uri) how does uri have to look like when i want to start an app from this intent? Jun 15 11:50:50 action in this case is android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS Jun 15 11:53:15 Ivru: i'm going to wrap that Jun 15 11:53:33 i want to pass some function pointers Jun 15 11:53:55 so i guess just an interface that has a Handle(T data) method or something Jun 15 11:54:08 funktronic: then you could just made a callback using an interface Jun 15 11:54:13 yeah that's it Jun 15 11:54:36 Ivru: yes, i don't want to define my own interface if there's one that's already available :) Jun 15 11:55:10 lazy boy Jun 15 11:55:13 ;) Jun 15 11:55:21 well i don't want to break idioms Jun 15 11:57:27 anyone familiar with the android calendar? Jun 15 11:57:44 does it not use http for its sync protocol (microsoft activesync (exchange)) Jun 15 11:57:46 ? Jun 15 11:58:18 check the source Jun 15 11:58:25 ginsun: http is not a sync protocl.l Jun 15 11:58:39 activesync is Jun 15 11:58:43 EAS is :) Jun 15 11:58:47 http is the transport Jun 15 11:58:51 yes Jun 15 11:59:05 but what does it use for the transport, something other than http(s)? Jun 15 12:00:51 ginsun: if you mean google calendar, it uses a proprietary sync, AFAIK - in that it's not part of AOSP, it's part of the 'gapps' Jun 15 12:01:15 it probably uses gtalk as its transport - most of the gapps do Jun 15 12:01:23 Leeds, yes, but Google Sync is activesync (by microsoft) according to google's sync website Jun 15 12:01:42 there are activesync clients Jun 15 12:02:01 I'm pretty sure that Android phones don't use Microsoft's proprietary protocol to talk to Google servers Jun 15 12:02:24 why wouldn't they, google licenses those protocols Jun 15 12:02:25 Hi Jun 15 12:02:36 i'm sure they do so for a reason Jun 15 12:02:41 Leeds, I've already implemented a proxy that manipulates the transmission of exchange data from IPHONE to google gmail /calendar (it uses microsoft activesync) Jun 15 12:02:49 ginsun: GOOD for you! Jun 15 12:02:55 Leeds, no you didn't get it Jun 15 12:03:01 no, I don't care Jun 15 12:03:16 Leeds, by that, I meant that they actually use microsoft protocols Jun 15 12:03:27 I highly doubt that Jun 15 12:03:31 but I don't really care Jun 15 12:03:39 I'm trying to use intel atom. It's installed under SDK manager but can't select as target in avd manager. Jun 15 12:03:42 Leeds, ok Jun 15 12:03:44 they do Jun 15 12:03:46 it's a fact Jun 15 12:03:51 wongk, he doesn't care Jun 15 12:03:53 wongk, :) Jun 15 12:03:56 tru dat Jun 15 12:04:02 wongk: I would care if you've got any actual evidence for that Jun 15 12:04:06 not very much Jun 15 12:04:16 i do, but i don't care enough to make you care Jun 15 12:05:06 I'm sure they support it, but I doubt they use it for android phones Jun 15 12:05:14 very possible Jun 15 12:05:19 SimonVT, what do you think are they doing instead? Jun 15 12:05:45 Same as Leeds Jun 15 12:05:53 so do you think they use activesync for mobile devices --> google for phones that aren't running android Jun 15 12:05:55 ? Jun 15 12:06:03 hmm Jun 15 12:06:07 ginsun: the fact of the matter is, if this is a google app (gapp), then your going to have to reverse engineer the protocol, because it's proprietary Jun 15 12:06:24 and since it's over https, that's not going to be easy Jun 15 12:06:26 wongk, mhm Jun 15 12:06:31 there are APIs for the calendar in ICS Jun 15 12:06:41 I'd imagine all gapps communicate through the same protocol Jun 15 12:06:53 i'd assume so Jun 15 12:07:13 As in market, gmail, talk, calendar, etc Jun 15 12:07:25 they all use activesync Jun 15 12:07:29 i've looked at the market protocl, it uses protobuffs Jun 15 12:07:44 there's been work done to reverse engineer it Jun 15 12:08:08 over https, of course Jun 15 12:09:16 hm Jun 15 12:09:31 but do android phones use the normal activesync for accounts that aren't gmail accounts? Jun 15 12:09:57 otherwise they'd use protocols that aren't understood by other providers (e.g. a university exchange account) Jun 15 12:10:27 that depends on a lot of things Jun 15 12:10:46 ActiveSync is not universal Jun 15 12:11:29 Depends how you set it up Jun 15 12:12:00 wait, there are mail servers which don't use exchange? when did this happen? Jun 15 12:12:09 shocking, isn't it Jun 15 12:12:37 i've heard there are even other mail protocols Jun 15 12:12:41 but i don't believe it Jun 15 12:13:03 presumably they're still using licensed activesync over https? Jun 15 12:14:27 wongk, hm earlier you said, it'd depend on a lot of things. what things do come to your mind? Jun 15 12:14:46 are you familiar with email protocols? Jun 15 12:15:03 wongk, imap, pop, smtp, etc. ? Jun 15 12:15:15 yes, so why would you even ask that question Jun 15 12:21:05 wongk, I think I misunderstood you earlier Jun 15 12:23:43 ok, the info about the real size of the view when it's time to draw i get from onLayout right? Jun 15 12:23:54 or can i use the measured size from the measure pass? Jun 15 12:25:40 getWidth/Height Jun 15 12:25:56 hmm ok.. Jun 15 12:26:15 I don't believe you should use onLayout in views, just viewgroups Jun 15 12:27:03 another question: setMeasuredDimensions(int, int).. the arguments to that function can be just ordinary integers fulfilling the size costraints passed into onMeasure()? Jun 15 12:27:09 the doc is a bit confusing there.. Jun 15 12:27:22 "The measured width of this view. May be a complex bit mask as defined by MEASURED_SIZE_MASK and MEASURED_STATE_TOO_SMALL." Jun 15 12:27:39 every integer can also be interpreted as a bitmask i guess.. Jun 15 12:27:49 I don't remember, sorry Jun 15 12:29:10 np.. Jun 15 12:29:29 it seems to work ok just using ordinary ints.. that part of the api ref needs serious love though :D Jun 15 12:30:12 hehe Jun 15 12:35:41 Hello colleagues. Jun 15 12:36:04 I am making an application that uses the camera, and it's landscape only. Jun 15 12:36:44 I noticed, that few applications (Google Goggles, and the Camera app) turn only the components' orientation, not the whole UI. Can I achieve this? Jun 15 12:39:10 also: working on hacking up a test project that demonstrates this pesky illegalstateexception bug in listviews Jun 15 12:39:36 [yes, not changing the adapter from a different thread and yes, calling notifyDatasetChanged] Jun 15 12:39:50 about once or twice a day one still gets an illegalstateexception Jun 15 12:45:52 Never had that :p Jun 15 12:47:53 SimonVT: it plagues a project of us where we load a highscore list.. Jun 15 12:48:36 Well, SOMEWHERE you're not letting the listview know the data changed Jun 15 12:48:43 [we do that in a background thread and use publishProgress to communicate the individual entries to the GUI thread where it's then added to the adapter and te datasetchange notification is called] Jun 15 12:48:47 I doubt it's an android issue Jun 15 12:49:02 hello all Jun 15 12:49:02 SimonVT: we triple checked every possibility.. Jun 15 12:49:16 Do you start the asynctask from the ui thread as well? Jun 15 12:49:26 SimonVT: yes.. Jun 15 12:49:30 also the interesting thing: Jun 15 12:49:55 sometimes if you leave the device just lying around and haven't changed anything in ages (after getting the complete highscore list is done) Jun 15 12:50:02 it will throw this exception spontaneously Jun 15 12:50:04 very weird :D Jun 15 12:50:41 i will now create a very very simple test case and try to reproduce it.. once that's done, i'll file a bug report.. Jun 15 12:55:38 Somewhere, somehow, someone fucked up your project :p Jun 15 12:56:11 sabotage Jun 15 12:56:29 SimonVT: yeah, i guess it's still possible :D Jun 15 13:00:55 http://pastesite.com/38186 Jun 15 13:01:03 i'll let you know if it ever throws the exception :D Jun 15 13:02:03 oh there's still a subtle bug :D Jun 15 13:02:51 http://pastesite.com/38187 Jun 15 13:02:55 this one's better.. Jun 15 13:09:25 wongk, SimonVT, thanks Jun 15 13:10:22 if(true == isFinishing()) lawl tapas Jun 15 13:10:40 while(true==true) Jun 15 13:10:42 gotta be sure Jun 15 13:11:02 while (false == isCancelled()) Jun 15 13:13:54 how do you update your phone to the latest version of android? Jun 15 13:14:33 it's questions like that that get you funny looks :P Jun 15 13:14:58 john_doe_jr: you need to send it to Google for updating... address it FAO ctate Jun 15 13:15:06 hah Jun 15 13:16:25 john_doe_jr: a) this channel is for app development, that question is off-topic and b) official updates come from your vendor or carrier Jun 15 13:17:18 or ROM developer Jun 15 13:17:33 but if you ask that question, then your obviously stock Jun 15 13:18:33 is there any reason why eclipse dislikes .png in the drawable folder? The android shelves examples does just that.. so not too sure whats going on Jun 15 13:19:18 Timmaah1201: read your_workspace/.metadata/.log Jun 15 13:20:11 error: Error parsing XML: no element found Jun 15 13:21:10 but a .png is obviously not a .xml so :/ Jun 15 13:22:20 ah nvm.. Jun 15 13:22:34 Timmaah1201: what were you doing? :) Jun 15 13:23:35 forgot to delete a closing brace :$ Jun 15 13:26:02 Timmaah1201: eheh :D Jun 15 13:26:04 tipically Jun 15 13:27:03 a slightly different question Jun 15 13:27:33 ive made a splash screen by adding an image to a theme, and assigning that theme to the main activity in the manifest, but now when i go back to the main menu intent it re-loads the splash screen, is there a way to avoid this? Jun 15 13:28:11 hey everyone is there a way to stop charging my device when i connect it to a pc using USB debugging mode Jun 15 13:35:31 Is it possible to import another package into an Android app? Jun 15 13:35:38 I've written my own data access module Jun 15 13:36:26 hey everyone is there a way to stop charging my android device when i connect it to a pc using USB debugging mode Jun 15 13:37:18 stop charging? Jun 15 13:37:38 why? Jun 15 13:41:49 Leeds, coz my phone is already charged to 98 or 97% and then it starts charging when i connect to debug an app. I just don't want it to charge. Jun 15 13:41:57 meh Jun 15 13:43:54 because that degrades the battery? Jun 15 13:46:57 AgentOrange, does it ?? Jun 15 13:50:02 is it possible to add files to the application framework and compile them in java using eclipse? Jun 15 13:50:39 i want to add my own surface view Jun 15 13:53:22 does Android has some internal db for app? Jun 15 13:53:28 I need to store array Jun 15 13:53:32 AgentOrange, I don't know if I am thinking correctly or not but I think it does Jun 15 13:54:33 woozly: http://developer.android.com/guide/topics/data/data-storage.html Jun 15 13:54:50 anyone using async http client? any way to change which thread it invokes the success handler? Jun 15 13:54:50 and many other answers can also easily be found in the docs... Jun 15 13:55:00 i'd like to have it execute stuff on a threadpool thread Jun 15 13:55:31 okay, thanks! Jun 15 13:56:32 * Gx4 goes party* Jun 15 13:58:41 http://pastebin.com/Ds3ga1nf Jun 15 13:58:42 sry wc Jun 15 14:19:55 Hey guys, I set a splash screen using a theme.. But everytime I return to the main activity the screen pops up again. Anyone know how I can stop this from happening? Jun 15 14:20:21 I'm thinking by implementing onResume/onPause but spent last 45minutes googling and its not really come up with anything that seems applicable/makes sense :/ Jun 15 14:21:24 anyone managed to get a progress indicator up when a webview is connecting? Jun 15 14:23:30 Degrading ICS to gingerbread on Samsung S2 will brick the phone ? please tell Jun 15 14:23:55 try it ;) Jun 15 14:24:00 let us know Jun 15 14:24:25 awesome_guy: #android-root Jun 15 14:25:45 awesome_guy: why? Jun 15 14:25:53 I have s2. Too Jun 15 14:26:40 going with nandroid backup worked Jun 15 14:27:10 diki , it is slow and crashing system proccesses Jun 15 14:27:28 I agree on the slow part Jun 15 14:27:42 And i have keyboard lag as well Jun 15 14:27:49 also looks are the same like GB Jun 15 14:27:53 But no crash Jun 15 14:27:57 then why go for ICS Jun 15 14:28:24 I didn't know Jun 15 14:34:05 is it possible to make a service dependent from an activity? i want to suspend a method in a service, present the user some activity to give him the choice to decide how to continue and based on this decision i want to resume the service Jun 15 14:34:35 didn't you ask that same question the other day, and get an asnwer Jun 15 14:36:06 thanks Jun 15 14:37:44 i've got a fully working filer text, is it possible to add it to the action bar? Jun 15 14:38:20 My thinking was that it would be represented by a search icon, that when pressed expands the filter text view Jun 15 14:58:53 Hi guys, I cant get logcat. C:\Program Files (x86)\Android\android-sdk\platform-tools>adb logcat Jun 15 14:58:53 Unable to open log device '/dev/log/main': No such file or directory Jun 15 14:59:12 under: what is weird about your device? Jun 15 14:59:25 is there a way to get what xcoord a view starts at? Jun 15 14:59:41 Leeds: what you mean? Jun 15 14:59:58 under: what device do you have, what OS version, is it rooted/hacked? Jun 15 14:59:59 til yesterday, it worked Jun 15 15:00:10 then what did you change? Jun 15 15:00:21 updated the kernel Jun 15 15:00:41 under: what device do you have, what OS version, is it rooted/hacked? Jun 15 15:00:53 SGS2, CM9 rooted Jun 15 15:01:23 yes, I think the problem is the kernel Jun 15 15:01:29 * under downgrades Jun 15 15:02:13 there we go, that's what's weird about your device - you're running an unreleased community build Jun 15 15:04:49 Leeds: the kernel was the problem, yes Jun 15 15:10:59 I am trying to set the divider height programatically on the ListView, in the XML markup I can say: android:dividerHeight=".6dip", however the setDividerHeight only takes an int - any suggestions? Jun 15 15:11:36 When I select a menu element, I get this 06-15 17:10:01.800: W/InputManagerService(3586): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@40f30e98 Jun 15 15:11:36 and nothing happens. http://ideone.com/Er0pr Jun 15 15:12:38 do i need to have usb debugging turned on for adb over wifi to work (it seems i do), but it's messing with my usb connected device i think Jun 15 15:13:17 i keep getting this message on the log: USBAccessoryManager:write():IOException: java.io.IOException: write failed: ENODEV (No such device) Jun 15 15:21:03 so i still have absolutely no idea how to render objects dynamically in opengl es 2... Jun 15 15:21:25 define "render objects dynamically" Jun 15 15:21:47 i could tap something in the app and create an object in that spot Jun 15 15:22:01 or even add multiple objects prior to drawing without coding every single one Jun 15 15:22:38 bakis: well, GL doesn't care how you manage your objects internally... but it has very explicit drawing loop Jun 15 15:23:02 so what does that mean Jun 15 15:23:25 you blank the display, then you render each object you want there, then you call appropriate function that finalized it iirc, then you are back at the start Jun 15 15:25:55 developernotes: Two options Jun 15 15:26:25 That integer parameter is a literal pixel value, so you have to convert from DP somehow at runtime Jun 15 15:27:08 One way is to put that dimension in res/values as a dimension value Jun 15 15:27:09 bakis: as it happens, actual drawing involves passing in the shader programs, vertex data, textures etc. then letting shaders draw it Jun 15 15:27:33 okay.. Jun 15 15:27:46 Which you can then fetch out converted as a pixel with e.g. getDimensionPixelSize Jun 15 15:28:06 And then the other is to convert from dp programmatically Jun 15 15:28:28 i feel like i need to edit the shit out of my file to get this to work... Jun 15 15:28:33 As demonstrated in the first answer here: http://stackoverflow.com/questions/8309354/formula-px-to-dp-dp-to-px-android Jun 15 15:29:18 my setup is restricting the color of every object and other stuff maybe? i dunno... i really don't understand opengl that well. Jun 15 15:30:00 billjings: thanks, I'll check that out! Jun 15 15:30:25 The resources method is way cleaner if you can get away with that. Jun 15 15:34:58 anyone know how ti disable scrolling in a webview Jun 15 15:36:33 gaz`, quick google search netted me this http://stackoverflow.com/questions/2527899/disable-scrolling-in-webview Jun 15 15:36:53 yeh Jun 15 15:36:55 most of them dontwork Jun 15 15:36:59 or are too hacky Jun 15 15:38:04 imn sick to death of webviews now Jun 15 15:38:06 theyre shit Jun 15 15:41:31 gaz`, the answer on that link I provided works fine. Jun 15 15:41:47 gaz`: welcome to reality Jun 15 15:42:07 which one Jun 15 15:42:11 theres 47 answers Jun 15 15:42:12 :) Jun 15 15:42:13 the accepted answer Jun 15 15:42:21 webview.setOnTouchListener(new View.OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { return (event.getAction() == MotionEvent.ACTION_MOVE); } });. Jun 15 15:43:05 billjings: If I just store the value in values/dimens.xml, do I just want to call getResources().getDimensionPixelSize(..) then? Jun 15 15:43:10 ah Jun 15 15:43:11 cheers Jun 15 15:43:24 Also, there's only 9 answers on there. Jun 15 15:43:37 yeh i was being flippant Jun 15 15:43:43 developernotes: Yes Jun 15 15:43:55 billjings: sweet - thanks again for your help! Jun 15 15:44:03 Np! Jun 15 15:44:10 if I have the aidl source code, how can I compile it? Jun 15 15:45:37 aidl tool source code is what I meant Jun 15 15:51:54 Has anyone here used ViewPageIndicator? Jun 15 15:54:38 does java have properties in the same sense as Delphi (Object Pascal)...a Delphi property is a field of a given type and reads from a private or protected field or function and writes to a private or protected procedure by a parameter? Jun 15 15:55:15 if i setVisibility(GONE) a GLSurfaceView, why doesnt my Activity get lifecycle callbacks anymore? it gets them again if i set the gl view to visible Jun 15 15:59:40 GeeksOnHugs: in java, we call those methods Jun 15 16:02:52 OK so for my class I would have a public getter and setter than? Jun 15 16:03:39 in Delphi they'd be private and the interface would have a single property that could be read and written to (less read only properties of course) Jun 15 16:04:55 Does anyone know why R.id.pager would give this error: pager cannot be resolved or is not a field Jun 15 16:05:16 GeeksOnHugs, java does not have properties Jun 15 16:05:59 so yes, use getter/setters Jun 15 16:06:34 right on, thanks wongk and mgj Jun 15 16:13:33 i had an error: i deleted a class from eclipse, where the hell has gone? the trash is empty lol Jun 15 16:14:33 umm Jun 15 16:14:35 you deleted it Jun 15 16:15:25 yes but the deleted things should move to trash Jun 15 16:15:28 revert your changes from your repository? Jun 15 16:15:31 "trash" heh Jun 15 16:15:50 i'm working on locale Jun 15 16:16:34 ahh, that value of VCS Jun 15 16:16:52 shit! Jun 15 16:16:56 git does chunks now so you should even be able to revert a chunk Jun 15 16:17:02 you are using git right? Jun 15 16:17:09 i can't count how many folks i've run across that wished they had used it, after the fact Jun 15 16:17:33 under: right-click on the package or project it used to be in and choose restore from local history Jun 15 16:17:38 git init . is so easy. github is so easy. no excuses. Jun 15 16:17:42 jesus helped me. Jun 15 16:18:15 jesus saves .. in git Jun 15 16:27:04 can i hide a view without using setVisible(GONE)? :) Jun 15 16:28:31 with one file per public class does that mean for every custom exception type I have to have a file??? Jun 15 16:28:34 setVisibility(INVISIBLE)? ;) Jun 15 16:28:51 yeah, that doesnt work either :) Jun 15 16:29:03 huf: did you have something else in mind? Jun 15 16:29:04 once i call that on a this gl view, i no longer get lifecycle callbacks Jun 15 16:29:13 which isnt a lot of fun Jun 15 16:29:14 setVisibility(INVISIBILITY_CLOAK); Jun 15 16:29:50 GeeksOnHugs: that's the idea Jun 15 16:30:55 OK...I'll prolly just use a common exception type than...I hate to add files for something so simple Jun 15 16:32:54 it is a terrible shame to polute your source tree with files ;) Jun 15 16:35:17 :P Jun 15 16:35:20 What's a good way to make an Eclipse project play along with the CLI? Jun 15 16:35:43 Should I write a Makefile that calls ecj, and otherwise lets that process do the work? Or should I somehow make Eclipse obey my Makefile process? Jun 15 16:36:32 i believe eclipse supports ant Jun 15 16:36:42 don't know about make Jun 15 16:36:54 (Forgive the ignorance of my question, I don't know what I'm talking about. Basically what I want is to be able to use Eclipse when it makes sense, and otherwise develop without it (e.g. for my old habits (vim etc), and also for quick use from people that don't want to download Eclipse to check out the project) Jun 15 16:37:01 Yeah, I can go with ant. Jun 15 16:37:20 But I'm not really sure how it fits into the process, here. Jun 15 16:37:37 it's the same as make, only different Jun 15 16:37:44 is there a way to know what happend when a user says the app crashed? Jun 15 16:37:48 if its on google play Jun 15 16:38:10 Right, I get that, but e.g. if I had a way to use ecj or something to compile, then it would only be the command-line tools that would need to know about that stuff (actually I'd use a Rakefile) Jun 15 16:38:11 crash logs in the developer console Jun 15 16:38:22 oh really Jun 15 16:38:24 didnt see them!! Jun 15 16:38:29 what does it give? Jun 15 16:38:31 a stacktrace? Jun 15 16:38:34 yup Jun 15 16:38:46 wow Jun 15 16:38:54 apps going live in a sec Jun 15 16:38:58 but i know its gonna die somewhere Jun 15 16:38:59 lol Jun 15 16:39:01 load your publisher dashboard, you lazy git :) Jun 15 16:39:45 what a genius feature Jun 15 16:39:56 which, incidently, you already have to do to publish it Jun 15 16:41:14 is there a convention for ordering scopes of fields and methods? Private, Protected, Public or Public, Protected, Private? Jun 15 16:43:57 i prefer member variables by decreasing visibility, followed by member functions by decreasing visibility Jun 15 16:44:08 subjective Jun 15 16:45:01 Yeah, I'd definitely agree with wongk on that one. You want your source to be as legible as possible, and starting with a bunch of internal WTF methods is not a good way to do this. Jun 15 16:45:47 * Ge0rG is always sorting stuff alphabetically, then adding new members grouped by context Jun 15 16:47:10 Can someone please explain to me what I am doing wrong. I am importing a git repo of ViewPagerIndicator which has library and sample code, then when I try to create a new project from the library source it cannot find the AndroidManifest.xml that is clearly in the structure. Jun 15 16:48:12 Snicers-Work2: did you pick the correct directory as your source root? Jun 15 16:49:24 For the location of the new project? Yes I am picking the library folder of the project which contains the AndroidManifest.xml Jun 15 16:49:42 It even finds the project name and auto populates it for me. Jun 15 16:50:09 that's unusual Jun 15 16:50:51 That it would populate project name but not find the manifest? Jun 15 16:52:42 wongk in general, i agree, but if you have a private method that is only used by one public method, would it not make sense to put them to gether? Jun 15 16:52:56 I used EGit to download the source, then it created a "master" package that has the library and sample in it. But the lib is not recognized as a library, so I am trying to create a new project based on the library folder so that it recognizes. That is where the problem is happening. Jun 15 16:52:57 i just dont want to have to jump around the source file as i try to figure out what a method's doing Jun 15 16:53:36 canadiancow|work: it makes sense, but i can jump around the source with the press of a key, do it's of no concern to me :P Jun 15 16:55:50 wheres these crash reports Leeds Jun 15 16:56:30 gaz`: there is an "Errors" link in the developer console Jun 15 16:56:36 oh yeh Jun 15 16:56:51 nice Jun 15 16:56:55 looks likei donth ave many Jun 15 16:57:14 on all my apps in total got 5 Jun 15 16:57:22 cant be right Jun 15 16:57:43 not everybody is reporting Jun 15 16:58:10 yeah it's a minority Jun 15 16:58:15 people who are reporting Jun 15 16:58:57 like people who are rating Jun 15 16:59:18 try bugsense Jun 15 16:59:21 works pretty well Jun 15 16:59:57 it also only reports crashes, hopefully your app isn't FC'ing much Jun 15 17:02:19 Noone reports those crashes Jun 15 17:09:00 i'll be damned, d.android. com does mention this irc channel Jun 15 17:09:28 Hooah Jun 15 17:09:30 wongk: yes? Jun 15 17:09:50 i was not aware Jun 15 17:11:06 there are many things, I suspect, of which you are not aware :P Jun 15 17:11:22 and i'll be sure to let you know when i figure them out! Jun 15 17:11:45 huh, it also turns out i'll be in san fran during IO Jun 15 17:12:28 lucky... talk your way into parties, at least :) Jun 15 17:12:54 for the record, I will repeat that if there is a rumoured Nexus tablet, I'm happy to Paypal for one... Jun 15 17:13:47 Ok wierd, I created a new project on a new workspace and the library imported fine, any idea why? Jun 15 17:14:04 the nexus tablet is the only device i am looking forward to at io Jun 15 17:14:06 I wonder if my employer would pay for transatlantic flight & io admission for me next year... Jun 15 17:14:27 I would love to go to IO. Jun 15 17:14:28 i cant think of any other hardware i could possibly want Jun 15 17:16:00 though if $200 - $250 is the correct price for it, thats chump change Jun 15 17:16:32 Figured it out, the library file can not be a sub folder of the master workspace... Jun 15 17:16:35 odd. Jun 15 17:16:48 eclipse is strange in that regard, yeah Jun 15 17:17:36 Yeah, I am sure there is a good reason, I just can't think of one. Jun 15 17:17:44 Snicers-Work2: i always create my primary workspace in $HOME/opt/eclipse/workspace Jun 15 17:17:56 then i create all my projects in $HOME/Projects Jun 15 17:18:17 that works around all the eclipse glitches dealing with workspace and project paths Jun 15 17:19:06 $HOME/opt is where i install eclipse, java, android sdk, maven, etc Jun 15 17:19:39 why does google play require three clicks to update one app, but only one click to update multiple apps? Jun 15 17:19:51 yeah, ive always found that strange Jun 15 17:19:59 s/strange/annoying Jun 15 17:20:09 apparently the usability people were on vacation that day Jun 15 17:20:54 oh i saw a strange bug in play last night Jun 15 17:20:59 the main screen was...blank Jun 15 17:21:13 Because updating all apps already has your permissions set and agreed upon. If you don't have an app set to auto update or the permissions change you have to agree to the new terms. Jun 15 17:21:48 you have to agree to the new permissions even if you have an app set to auto update Jun 15 17:21:52 what if there are no permissions change Jun 15 17:21:56 which is good Jun 15 17:22:11 permission changes are unrelated Jun 15 17:22:13 you have to agree to the old permissions when only one app can be updated Jun 15 17:22:27 right, thats why its annoying Jun 15 17:22:30 https://plus.google.com/115750341222356983405/posts/HBcU7MDN51F Jun 15 17:22:47 there should be an update button next to each app in the list Jun 15 17:22:54 +1 Jun 15 17:23:06 like i trust google enough to update maps without reading stuff about it Jun 15 17:23:10 but not facebook Jun 15 17:23:23 i dont trust facebook enough to even install it Jun 15 17:23:23 so even if i have multiple apps with an update Jun 15 17:23:27 i dont usually want to "update all" Jun 15 17:23:28 heh Jun 15 17:23:31 it would be sufficient to always show the "update" button in the "updated apps" title row.... Jun 15 17:23:36 no it wouldnt Jun 15 17:23:41 for the situation i just described Jun 15 17:24:17 canadiancow|work: yeah, but you are a complicated corner case. most people just want to "update all" without further bothering Jun 15 17:24:28 and there is no "update all" if only one app update is available Jun 15 17:24:30 i always set google apps to auto update Jun 15 17:24:48 i dont let naything autoupdate ever Jun 15 17:24:53 i want to know when im getting new software Jun 15 17:25:40 +1 canadiancow|work Jun 15 17:26:15 well i read about the updates to google apps on blogs, so i know whats included Jun 15 17:26:40 but i check the change log for most other apps although they are usually uninformative Jun 15 17:28:13 hello romainguy_ Jun 15 17:30:25 is there a boolean function that takes an object and returns if it's assigned? We had Assigned(MyObject) in delphi...something like that? Jun 15 17:30:43 assigned? Jun 15 17:30:48 not null... Jun 15 17:30:49 != null Jun 15 17:30:52 hm. google play should implement support for paid updates. i.e. you can buy app version 2 for 5$, or, if you already bought app version 1 some time ago, you can upgrade for free to 1.3 or upgrade to 2.x for 2$ Jun 15 17:30:54 GeeksOnHugs: return object != null? Jun 15 17:32:29 yah cool, good enough, just wondering if there was a function thank you Jun 15 17:32:47 Ge0rG, it's an interesting concept, but it's not what smartphone users expect Jun 15 17:32:59 but im not a typical consumer Jun 15 17:33:01 i think apps are too cheap Jun 15 17:33:17 canadiancow|work: so you are spending much on play store? Jun 15 17:33:22 apps are ridiculously cheap Jun 15 17:33:29 i dont buy a lot Jun 15 17:33:36 but when i see somethin gi like, i have no isuse paying for it Jun 15 17:33:38 reminds me of a comic about decision making for spending $1 on an app and buying all sorts of stuff in shops, etc Jun 15 17:33:43 canadiancow|work: it is indeed not what users expect. but it is how the software development model in the real world works Jun 15 17:33:46 the price of an app doesn't even really affect my decision to buy it Jun 15 17:34:02 Ge0rG, and it tends to be easier for everyone to manager than releasing com.canadiancow.app.v2 Jun 15 17:34:15 wongk, for me, it does, to some extent Jun 15 17:34:22 i will not buy an app that has targetSdkVersion < 14 Jun 15 17:34:35 i bought max payne though...but that was for different reasons Jun 15 17:34:48 canadiancow|work: you are right, but the current model only works as long as the device market is still growing Jun 15 17:34:56 i made $1 in the time it took me to type this, i don't really care :P Jun 15 17:35:06 once it is saturated, nobody is going to buy your app a-new, and profits will collapse Jun 15 17:35:36 Ge0rG: that already ahppens Jun 15 17:35:58 thats true Jun 15 17:36:02 and then you have no motivation to update Jun 15 17:36:07 wongk: fortunately not for me Jun 15 17:36:09 although you ahve the option to use in app billing to add new features Jun 15 17:36:21 "google maps now suppors full offline navigation. buy for $5" Jun 15 17:36:23 etc Jun 15 17:36:53 my sales stats are showing pretty exact linear growth Jun 15 17:37:06 i make £2 a month Jun 15 17:37:09 on my apps Jun 15 17:37:22 :) Jun 15 17:37:22 make a lot more from one app on bb app world Jun 15 17:37:23 I make ~800eur a month Jun 15 17:37:25 i dont sell apps. but one of my app's websites has ads, and it makes ~$4/day Jun 15 17:37:34 i make a lot of money developing apps for other people :P Jun 15 17:37:46 i.e. full time job Jun 15 17:38:00 I don't use apps that supports ads ;) Jun 15 17:38:04 yeh thats how i survive Jun 15 17:38:07 id rather usrvive from ym apps Jun 15 17:38:10 canadiancow|work: yeah, thats the best and most secure way to get your developer money Jun 15 17:38:21 canadiancow|work: also, its not impaired by device market saturation ;) Jun 15 17:38:49 well the trick there i guess is to keep making new apps Jun 15 17:38:59 hopefully I'll get my first (free, no ads!) app on the market soonish Jun 15 17:39:07 if you want $50/hour, and an app is generating $500/month, dont spend more than 10 hours/month on it Jun 15 17:39:14 Zharf, i dont have ads in my app Jun 15 17:39:18 just on the website for it Jun 15 17:39:25 aha Jun 15 17:39:30 well that's slightly better Jun 15 17:39:45 but i mean...the server costs for it exceed the ad revenue Jun 15 17:39:47 always easier to adblock websites Jun 15 17:39:49 ;) Jun 15 17:39:51 so i need to make money somehow Jun 15 17:39:59 How do you tell Android which activity to bring up first? Jun 15 17:40:04 i dont know how you can sit here as a developer trying to come up with ways to prevent other devs from making money Jun 15 17:40:43 canadiancow|work, make good apps and I'll pay for them Jun 15 17:40:44 mobile ads are a really sleazy way to make money. developers should rather live from thin air! Jun 15 17:41:00 Snicers-Work2: whichever activity is launched will be... launched. An app can have 0, 1, or more launchable activities Jun 15 17:41:14 unfortunately, people are expecting really much from paid apps. Jun 15 17:41:46 The only way I support ads in an app is if they're not intrusive. I.e. on a loading screen, or after a level in a game. Something that is less of a hassle, more of a transition to the next thing. Jun 15 17:42:14 Right, but one activity launches first correct? a base activity? Jun 15 17:42:47 Snicers-Work2: no. the launched activity is the one that responds to specific intent Jun 15 17:43:04 activities that respond to launch intent show up in launcher Jun 15 17:43:32 Snicers-Work2: in your manifest, you define which activity/ies is/are launchable... if you've got more than one, you'll have more than one launchable icon... if you've got 0, you won't have an icon in the launcher at all Jun 15 17:43:43 I see that now, thanks. Jun 15 17:43:49 (why would you have 0? think of a live wallpaper, a keyboard, etc.) Jun 15 17:44:11 service library, plugin, device admin,etc. Jun 15 17:44:22 So the manifest is an activity picker? Jun 15 17:44:24 p_l: "etc." :D Jun 15 17:44:28 :P Jun 15 17:44:38 What if you want it to just launch into one activity? Jun 15 17:44:39 the manifest is a list of the components of the app Jun 15 17:44:52 Snicers-Work2: no, Launcher asks for a list of all activities that respond to specific intent Jun 15 17:44:52 then you only make one activity launchable... is this complicated to understand? Jun 15 17:45:05 i dont put ads in my free apps, giving people little incentive to upgrade Jun 15 17:45:05 HMmm i made some resourcejpgs but they arent getitng copied into bin/reds Jun 15 17:45:07 res Jun 15 17:45:09 why ? Jun 15 17:45:21 but i still have made almost $5k in a single month Jun 15 17:45:32 birbeck: from? Jun 15 17:45:33 its tapered to about $2k/mo now Jun 15 17:45:38 [13:40:42] canadiancow|work, make good apps and I'll pay for them Jun 15 17:45:42 i dont want to charge for the app Jun 15 17:45:47 it doesn tmake sense in my business model Jun 15 17:45:48 wtfffff Jun 15 17:45:50 Leeds: from Cover Art Downloader (Donate) and My Coffee Card Pro Jun 15 17:45:50 Leeds, not complicated at all, just refreshing on this, been a year since I touched Android dev and Java. Jun 15 17:45:55 if i call an asynctask from within onLocationChanged (a gps listener) do I still get access to the UI thread (@ preexecute and postexecute) ? Jun 15 17:45:57 jpgs arent allowed in apps now or ? Jun 15 17:46:02 Leeds: both have fully functional free versions with no ads Jun 15 17:46:07 birbeck: ah, I remember the coffee card, I think :) Jun 15 17:46:25 I recently heard that you can get subscriptions fees in apps Jun 15 17:46:47 Leeds: last year was a great year for that app Jun 15 17:47:06 p_l, you can now Jun 15 17:47:11 and it landed me this job, so this has been a good year too Jun 15 17:48:03 (wow, watching the football streaming from the UK, just saw a *blackberry* advert... wonder if they'll be advertising VCRs next) Jun 15 17:48:52 blackberrys arent THAT bad Jun 15 17:49:02 I'm creating a project library and it has custom typefaces, however I don't think implementers should have to include these fonts into their own project. Is there a way I can do a Typeface.createFromFile() but reference the typefaces from the library? Jun 15 17:49:08 yes they are Jun 15 17:49:13 ur just canadian Jun 15 17:49:13 :) Jun 15 17:49:47 they're probably better than nokias ;) Jun 15 17:50:19 sorry, didn't mean to start that Jun 15 17:50:26 I heard nokias are junk... or so said moodys Jun 15 17:51:34 ADR is junk :P Jun 15 17:51:38 haha Jun 15 17:51:39 Leeds: blackberry is pretty big in UK Jun 15 17:51:55 its pretty big everywhere outside the US, afaik Jun 15 17:51:56 the ux designer wanted to know what the ui looks like when you get a text message on android Jun 15 17:51:57 er, NOK Jun 15 17:52:20 canadiancow|work: particularly Indonesia... Jun 15 17:52:24 i told her to send me a text, and i showed her on both my gnex and one x Jun 15 17:52:25 canadiancow|work: if you discount corporate purchases (for obvious reasons, especially now that WinMo dropped the ball), not so big Jun 15 17:52:39 why wouldnt i count corporate purchases? Jun 15 17:52:54 canadiancow|work: probably won't advertise in football match ;) Jun 15 17:52:54 if you dont count corporate purchases, zynga employees dont own smartphones Jun 15 17:53:04 i just got an email from her saying thats shes been pondering over it all night on how in the world i got a single text message to go to two different phones Jun 15 17:53:08 corp execs dont watch football? Jun 15 17:53:15 google voice ftw Jun 15 17:53:28 I got an email from them today saying they'd added some dates to their global "please use our platform" developer push... nearest to me is Beijing, or possibly Singapore Jun 15 17:53:34 canadiancow|work: they do, but they aren't considered the market when placing ad there Jun 15 17:54:16 if they had an event a bit closer - HK, or maybe even Shenzhen - I'd probably go... Jun 15 18:07:59 this channel has been awesome lately... .o(what changed) Jun 15 18:11:30 installing os x in a vm on my macbook :) Jun 15 18:11:55 if it works i can extend my linux partition to the whole disk and never have to boot os x native again Jun 15 18:12:03 good luck with that Jun 15 18:12:23 i figure it should work since its mac hardware Jun 15 18:12:33 i ran a hackintosh vm for a while Jun 15 18:12:56 I had poor luck in the past trying to run mac os x vms, but that was on pc/linux host Jun 15 18:13:38 wouldnt macos just see generic PC host in VM? :) Jun 15 18:14:18 i dont do any ios stuff any more, so i havent needed it, but now i need outlook so i might as well try to get xcode and outlook in a single vm Jun 15 18:14:22 i don't know the intimate details of hypervisors Jun 15 18:14:49 miha: not sure exactly, i might need some hacks, but i know you can run os x in vms on the right pc hardware Jun 15 18:14:55 * readme needs a mac... on my list of major necessary purchases Jun 15 18:15:05 I could buy one now, but it would be fiscally irresponsible to do so. Jun 15 18:15:05 no one NEEDS a mac Jun 15 18:15:12 they are crap imho Jun 15 18:15:31 ios development is too popular for me to ignore, since my primary source of income is freelance work Jun 15 18:15:52 find a someone to outsource too :) Jun 15 18:16:15 readme: i consider that too. but i really hate apple. even more than microsoft. Jun 15 18:16:30 not saying overseas necessarily, maybe a friend that only does ios, he could pass android work your way Jun 15 18:16:52 if i call an asynctask from within onLocationChanged (in a gps listener) do I still get access to the UI thread (@ preexecute and postexecute) ? Jun 15 18:17:06 i think a huge part of my value proposition with my clients is that the work is done by me ;) Jun 15 18:17:50 "This version of Mac OS X is not supported on this platform!" "Reason: null" Jun 15 18:17:56 they ask for a change and since I write the code fairly clean I amaze them after I change 3 characters and send back a new build in a split second. Jun 15 18:19:18 thats not always the case in ios Jun 15 18:19:40 i think it was canadiancow that said something that can take 2 minutes in android can take 2 weeks in ios Jun 15 18:20:38 hi everyone, I'm looking for people to help test the app I'm working on: http://tapchatapp.com/beta.html Jun 15 18:20:38 share something on an arbitrary social network :) Jun 15 18:20:38 there are some pluses to it (very far and few between), but i can attest to that statement Jun 15 18:20:53 the big problem is when deisgners make you do stupid shit Jun 15 18:21:33 codebutler: cool Jun 15 18:21:39 codebutler: is any of that open source? Jun 15 18:21:45 "i need this on/off setting to look exactly like a UISwitch" Jun 15 18:21:45 readme: the server is open source Jun 15 18:21:50 then android takes foreva Jun 15 18:22:22 canadiancow, thats when you slap them around a bit with a large trout, i mean android hig Jun 15 18:23:45 heh Jun 15 18:23:47 but other things Jun 15 18:23:51 similar Jun 15 18:23:59 that arent as obviously stupid Jun 15 18:24:06 (like "duplicate this ios ui component") Jun 15 18:24:09 but take just as long Jun 15 18:24:19 but you dont realize they'll take long until you're halfway done Jun 15 18:24:37 and you realize it goes against the design guidelines, which is why there's no built-in support for it Jun 15 18:26:00 yeah, the worst android apps are 1:1 ports from ios Jun 15 18:26:18 I thought the worst apps were PhoneGap :P Jun 15 18:26:27 nah i dont even mean straight ports Jun 15 18:26:46 (ViewPager)findViewById(R.id.pager) what does it mean when ViewPager is in ()'s? Jun 15 18:27:03 something like "rounded corners" can be difficult Jun 15 18:27:10 and it's not obvious that it's difficult Jun 15 18:27:10 That means you are casting the View returned by findViewById to a ViewPager Jun 15 18:27:27 try to round the corners on the top and bottom preference in a preferenceactivity Jun 15 18:27:31 like ffs that's not easy Jun 15 18:27:46 heh, yeah Jun 15 18:28:06 Knossos: sad to say, i would prefer a phonegap app, at least the developer isnt trying to fake ios in java which generally leads to instability and poor performance Jun 15 18:28:42 Unless it is skinned to look like an iOS app :P Jun 15 18:28:48 canadiancow, um thats easy Jun 15 18:28:49 Ah, so it is just casting the type? Jun 15 18:29:05 birbeck: really? Jun 15 18:29:06 how Jun 15 18:29:17 theming preferences at all isnt really documented Jun 15 18:29:18 canadiancow, create a linearlayout with a background shape drawable Jun 15 18:30:02 to override the preferences list, copy the layout from aosp and set it in your application theme Jun 15 18:30:13 you lose oem native themes then though Jun 15 18:30:19 mmmm it's not quite that simple Jun 15 18:30:28 and that is exactly what i tell people that request something like that Jun 15 18:30:33 i mean there are other things going on here Jun 15 18:30:34 but yea Jun 15 18:30:40 "we want it to have our branding, not htc's" Jun 15 18:30:47 hey guys, I have an ARM binary (not related to android at all). It is possible to run it on the official emulator ? Because I tried and it told me "permission denied" (I had 777 chmoded it then) Jun 15 18:31:05 then they say, oh thats fine, i only want it to look this way and this way only, until i show them an example of how the view doesnt fit with the rest of the app or os Jun 15 18:31:29 "how the view doesnt fit with the rest of the app" Jun 15 18:31:34 "oh then redesign the rest of the app too" Jun 15 18:31:39 MaaaZ: what does "ARM binary" mean? Jun 15 18:31:46 well, if you change the preference list, you gotta change all lists Jun 15 18:31:52 i mean, what OS & ABI was it built against? Jun 15 18:32:11 also, where are you trying to install it on device? Jun 15 18:32:40 ctate: I mean an ELF, compiled for ARM Jun 15 18:32:50 lemme check Jun 15 18:32:54 ELF is a file format, not an ABI :) Jun 15 18:32:56 MaaaZ: yes, but what version etc Jun 15 18:33:17 is it an ARM Linux binary? An Android binary? The two are different. Jun 15 18:33:22 elves make cookies Jun 15 18:33:28 mmm, cookies Jun 15 18:33:36 (not much, but some -- especially in the supporting libs area, but also e.g. the loaders) Jun 15 18:35:35 the most often failure (and most confusing error message) though is "your_binary_name: File not found" when a lib it is linked against is missing Jun 15 18:36:14 please this is urgent...im finishing up a program as part of a job interview...im comparing with if (myObj = null) {} but the compiler says something like "can't convert between myObjType and Boolean"??? please help stat :( Jun 15 18:36:41 GeeksOnHugs == Jun 15 18:36:42 == Jun 15 18:36:45 :D Jun 15 18:36:47 doh Jun 15 18:36:48 lol Jun 15 18:36:50 ty Jun 15 18:36:58 That'll be 50 Jun 15 18:37:10 add it to my tab ;) Jun 15 18:37:11 ctate, p_l : if I do a readelf -h it gives "Version4 EABI", if i do a file it gives "ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), stripped" Jun 15 18:37:16 just pencil in "don't know -- need intellisense" Jun 15 18:37:21 * GeeksOnHugs buys a round of beer Jun 15 18:37:23 in C, that error would be really great. in java it is just a compiler error instead Jun 15 18:37:51 + "OS/ABI: UNIX - System V" Jun 15 18:38:17 GeeksOnHugs: In general, it's worthwile to put the constants on the left for things like that. Jun 15 18:38:24 if (null == myObj) Jun 15 18:38:37 Besides, >half the time it's the key piece to read anyway. Jun 15 18:39:19 MaaaZ: back to the other questions. where on device are you installing it; where/how did you build it? Jun 15 18:39:45 why is (null == myObj) better than (myObj == null) Jun 15 18:40:21 so far I know, either works equally? Jun 15 18:40:36 readme: in C, if you forget the second =, the first one would yield a compiler error Jun 15 18:40:40 rking seems to believe there is a difference Jun 15 18:40:50 right, invalid LHS Jun 15 18:40:50 ctate: I've put it in the /sdcard/ dir, 777 chmoded it. the emulated plateform is android 2.3.3, API 10, CPU ARM (armeabi) Jun 15 18:40:57 readme: it's about defensive programming Jun 15 18:40:58 but is there any reason in java? Jun 15 18:41:08 I have yet to hear a legit java-based reason though, ctate Jun 15 18:41:15 MaaaZ: ah, that's your problem. the sdcard partition is mounted noexec. put it somewhere else. Jun 15 18:41:23 readme: maybe if myObj is a boolean and it is not compared to null but to true or false? ;) Jun 15 18:41:25 so far I know, only || and && is order sensive. if left caluse is false, and dont run right clause Jun 15 18:41:42 MaaaZ: I don't think chmod means anything on sdcard since it's vfat. (and see ctates answer, which is the result of that) Jun 15 18:41:44 in || case it dont check right clause if left clause is true Jun 15 18:41:47 Ge0rG: bah -- (myObj) (!myObj) no need for == there. Jun 15 18:41:55 indeed Jun 15 18:42:03 dragorn: it's mounted noexec even if it's an ext4 FS Jun 15 18:42:06 if (developerIsDumb = false) { ... } Jun 15 18:42:28 that will never be true Jun 15 18:42:32 as we saw, java will not allow code like that Jun 15 18:42:37 ctate: this is true Jun 15 18:42:54 Ge0rG: thats a big. Jun 15 18:43:00 er bug Jun 15 18:43:07 java is a f*cked up language anyway. Jun 15 18:43:09 like canadiancow|work said, it will never be true lol Jun 15 18:43:20 in java this sort of thing is often seen as e.g.: if ("".equals(stringvar)) .... Jun 15 18:43:24 java is very easy, but dunno Jun 15 18:43:26 XXCoder: but it will be compiled Jun 15 18:43:31 oh wait, it will! Jun 15 18:43:42 if (somebool = false) is valid Jun 15 18:43:47 yeah its "meta" bug not invalid code Jun 15 18:43:52 yes, it will compile if lhs is boolean Jun 15 18:43:53 it's valid, and always evaluates to 'false' Jun 15 18:43:59 I guess I concede to your constant on LHS reasoning then Jun 15 18:44:03 ctate: ok so putting it on the internal memory should work ? Jun 15 18:44:05 it will compile but wont do what you want it to do lol Jun 15 18:44:29 MaaaZ: i dunno if it will *run* -- you didn't say how you compiled & linked the executable -- but at least you won't be running up against the noexec issue :) Jun 15 18:44:37 string comparison is the single largest fuckup of the java language design. Jun 15 18:44:46 ctate: okay, I'll try Jun 15 18:44:49 readme: Because you can't ever accidentally do (myConst = myVar) Jun 15 18:44:59 The other way around does quietly execute in many languages. Jun 15 18:45:38 It's not a super-huge deal, especially if you only ever program in a language that warns you, but like I said the const-first reads better most of the time. Jun 15 18:45:44 Ge0rG: well its not bad. str.compareTo("whatever" Jun 15 18:45:46 ) Jun 15 18:45:53 11:40 < readme> I guess I concede to your constant on LHS reasoning then Jun 15 18:45:56 i get it Jun 15 18:45:57 But yeah, Ge0rG already ansewred actually. Jun 15 18:45:58 XXCoder: "whatever".compareTo(str) Jun 15 18:46:04 Sorry, I didn't read the whole scrollback. Jun 15 18:46:10 ty Jun 15 18:46:19 ctate: thst works too yes Jun 15 18:46:23 XXCoder: because writing it as str.compareTo() will crash if str is null Jun 15 18:46:28 XXCoder: what if str is null? Jun 15 18:46:45 I think most lint tools make you have to say if ((myVar = myConst)) if you really mean it. Jun 15 18:46:45 well assumed check before but thats interesting. Jun 15 18:46:46 also, as background to this whole conversation Jun 15 18:46:50 'final' is your friend, people! Jun 15 18:47:07 final: make variable perment as in cannot be changed? Jun 15 18:47:12 XXCoder: if you look at the android code you'll see a lot of use of the idiom: if "".equals(str) Jun 15 18:47:15 XXCoder: also, string comparison is fucked up because (str == "whatever") looks right and works sometimes, but is actually designed to fail Jun 15 18:47:29 btw, how does "".equals(null) evaluate? Jun 15 18:47:34 which is a check for non-null and non-empty Jun 15 18:47:35 interesting. learning quite a bit Jun 15 18:47:40 Ge0rG: false, of course Jun 15 18:47:56 sorry, check for non-null and *empty* Jun 15 18:48:14 how often do you need non-null _and_ empty strings? Jun 15 18:48:18 ctate: it returns number. false would be any number but 0? Jun 15 18:48:24 okay, or "magicstring".equals(str) Jun 15 18:48:39 Ge0rG: it returns false Jun 15 18:48:44 it's a check for "does this string have these contents" without having to check separately for null Jun 15 18:49:06 XXCoder: err, number? are you thinking javascript instead of java? :) Jun 15 18:49:22 yeah, which is written as str == "magicstring" in most modern languages Jun 15 18:49:33 ctate: compareTo() returns a number, like strcmp Jun 15 18:49:42 I usually do this if str.compareTo("somestring)" == 0 then... Jun 15 18:49:43 Ge0rG: but strings are objects and how else are you supposed to compare for object identity? :) Jun 15 18:49:50 romainguy_: yeah yeah Jun 15 18:50:04 i forgot about that aspect; kept thinking about .equals Jun 15 18:50:06 XXCoder: if all you need is to test whether two strings are equal, use equals() instead Jun 15 18:50:29 equals? true/false on wheather both strings is same? Jun 15 18:50:33 ctate: how often are you checking string objects for identity? Jun 15 18:50:59 Ge0rG: it doesn't matter, == is an identity check Jun 15 18:51:07 Ge0rG: if it worked differently only with strings... Jun 15 18:51:12 thats awesome. Im sick of bit long compareto then check for int == 0 Jun 15 18:51:30 knowing how to code is different from actual skill. Jun 15 18:51:45 ctate: when I'm trying to move it from sdcard to /sbin for instance (within the adb shell), it says "failed on 'my_binary' - Cross-device link" Jun 15 18:51:45 every object has .equals Jun 15 18:51:49 romainguy_: I know that == is an identity check, I'm just saying it was a bad design decision by the java guys Jun 15 18:52:06 Ge0rG: I disagree, especially at the time Jun 15 18:52:16 at least you don't end up with =, == and === Jun 15 18:52:37 thanks guys, I will evenually rewrite some string compares I have in my lwp Jun 15 18:52:53 it is a bit annoying through when you write math code with vectors and matrices though Jun 15 18:52:55 I still need to fix node battle, it displays badly in ICS Jun 15 18:53:03 romainguy_: hey, I'd love to get your feedback on the app I'm working on: http://tapchatapp.com/beta.html Jun 15 18:53:24 ctate: while you are here... do you have knowlede of the adb backup internals? I've filed a bugreport for a failing restore at https://code.google.com/p/android/issues/detail?id=31560 Jun 15 18:53:35 Ge0rG: ctate *wrote* adb backup :)) Jun 15 18:53:40 I'm thinking on making 2 bitmap buffers and swap em as drawing completes. what you guys think Jun 15 18:53:53 so that way it displays only when drawing is complete Jun 15 18:54:04 XXCoder: but Android is already double buffered Jun 15 18:54:11 XXCoder: there's no need to do your own Jun 15 18:54:25 romainguy_: yeah? why do node battle look really bad in ics Jun 15 18:54:34 circles not drawn complete, so on Jun 15 18:54:38 romainguy_: I think that identity is a much less often needed feature than equality, therefore == should check for the latter Jun 15 18:54:44 XXCoder: 1. what is node battle? 2. I don't know, it's your code Jun 15 18:54:53 oh its live wallpaper Jun 15 18:54:57 very simple one Jun 15 18:55:08 its in play market Jun 15 18:55:35 I can assure you that Android never displays the content of a render buffer half way through a frame Jun 15 18:56:07 I don't know why it happens then. maybe CM9 does it differently. Jun 15 18:56:10 (the swap happens when you call either eglSwapBuffers() or unlockCanvasAndPost()) Jun 15 18:56:19 or the problem lies somewhere else :) Jun 15 18:56:40 dunno I use basic graphic draw circles Jun 15 18:56:49 or lines if its in ansdroids mode Jun 15 19:00:45 I wonder if there are any best-practices on keeping tcp sessions over 3g, like refresh intervals, time it takes to get the cpu woken up on incoming traffic, etc Jun 15 19:01:49 Ge0rG: unfortunately it's probably not really feasible to debug backup bugs like that without access to the archive file itself Jun 15 19:02:06 Ge0rG: which you understandably probably do not want to attach to the issue in the bug tracker Jun 15 19:02:42 Ge0rG: there are some issues in the ICS implementation, fixed for the future, that may have been at play here; again, it's hard to tell without the raw archive for me to dig into Jun 15 19:02:58 Ge0rG: if you want to pm about it feel free Jun 15 19:04:36 XXCoder: remember that on almost all hardware, the CM folks are kitbashing the Android system to run with graphics drivers provided by the vendor for an *earlier* version of Android that did not make the same demands of it Jun 15 19:04:59 probably why its like that. Jun 15 19:05:06 it looks worse on touchpad lol Jun 15 19:05:15 guess touchpad dont like lines < 1 Jun 15 19:05:21 thickness Jun 15 19:06:04 ctate: not entirely true for CM9. the hacks needed to use older drivers cause CTS to fail so we aren't building for those devices. Jun 15 19:06:13 oh interesting Jun 15 19:06:18 i stand corrected Jun 15 19:07:08 that's not to say that someone else isn't doing it, though Jun 15 19:07:15 (because they are) Jun 15 19:07:31 indeed Jun 15 19:08:06 something's different on CM9 though... my maguro with CM9 is a fair bit slower than a maguro with stock 4.0.1 Jun 15 19:10:19 canadiancow|work: you might want to take that up directly with the CM folks, if you can reliably demo/repro it Jun 15 19:10:42 well theres a limit to how many phones i can try it on :) Jun 15 19:11:12 I heard of that CM9 thing Jun 15 19:11:22 is it on the Play Store? Jun 15 19:11:32 o.O Jun 15 19:11:35 :p Jun 15 19:12:17 i've heard of the Play Store thing, is it on the Android Market ? Jun 15 19:12:23 +1 Jun 15 19:12:24 g00s: it actually is Jun 15 19:12:41 if you go to http://market.android.com/ you'll get a link to the Play Store at the top Jun 15 19:12:49 gah, foiled ! Jun 15 19:13:04 JakeWharton: have you had any reports of ListView items not filling parent width when using Theme.Sherlock.Dialog? Jun 15 19:13:29 grmbl Instapaper broken because they use an old version of ABS Jun 15 19:13:48 isn't Instapaper like brand spanking new ? Jun 15 19:14:03 yeah Jun 15 19:14:09 sheesh Jun 15 19:14:19 it's JakeWharton's fault Jun 15 19:14:28 romainguy_: but how does it break with an old version of abs ? Jun 15 19:14:37 crash Jun 15 19:14:39 * ctate continues to read 'Instapaper' as 'Instapundit' Jun 15 19:14:47 g00s: for "old" read "buggy" Jun 15 19:15:08 but ABS 4.0 wasnt that bad Jun 15 19:15:10 there were issues Jun 15 19:15:14 but i dont see how it could be "broken" Jun 15 19:15:20 like...how did the app get released Jun 15 19:15:29 jake issues an mandatory update to 4.1 :P Jun 15 19:15:32 canadiancow|work: it crashes on a future version of Android :) Jun 15 19:15:36 issued Jun 15 19:15:40 oh Jun 15 19:15:46 did it definitely have ABS 4.0? not 3.5? Jun 15 19:15:49 romainguy_: thats exactly the kind of thing i am worried about Jun 15 19:15:50 yea i always wondered about that Jun 15 19:16:02 this is why i dont think jake should "use native" on the latest OS Jun 15 19:16:02 romainguy_: hrm. compat is hard. is it something they could reasonably expect not to change/break? Jun 15 19:16:20 ctate: according to adamp, no Jun 15 19:16:25 or romainguy, you should just give JakeWharton all the source Jun 15 19:16:33 oh hm, didn't jake release some "futureproofing" updates quite recently? Jun 15 19:16:39 yes Jun 15 19:16:40 it's been fixed Jun 15 19:16:42 well then :) Jun 15 19:16:43 but apps need to be udpated now Jun 15 19:16:44 hah Jun 15 19:16:56 it should just be a drop-in replacement Jun 15 19:16:58 i guess i SHOULD update my app then Jun 15 19:17:03 i'm sure instapaper will get the memo [swidt?] when they start getting crash reports from the field Jun 15 19:17:08 we retweeted/reshared the announcement too Jun 15 19:17:10 canadiancow|work: yes Jun 15 19:17:35 yeah there's only so much sympathy i have for devs who don't understand the need to keep on top of compatibility Jun 15 19:17:49 romainguy_: so 4.1 is ok then ? Jun 15 19:17:49 well i mean i have a branch with the latest version of ABS Jun 15 19:17:58 but i havent flushed everything else out yet, which is why i havent released it Jun 15 19:18:05 here you go https://plus.google.com/u/0/111962077049890418486/posts/QdYgyZJo1hf Jun 15 19:18:08 i didnt want to update it just to "update abs" Jun 15 19:18:10 4.1 is the correct version Jun 15 19:18:23 oh yeah, saw that Jun 15 19:18:23 I quote "If you use v4.0.x you MUST upgrade as soon as possible!" Jun 15 19:18:24 :) Jun 15 19:18:43 i thought we were talking about 4.1 Jun 15 19:19:05 does anyone know of any _really_ good opengl es 2.0 resources? Jun 15 19:19:35 bakis: here's the one I used and enjoyed http://shop.oreilly.com/product/9780596804831.do Jun 15 19:19:52 it's not very iOS specific Jun 15 19:19:54 and all the code is in C++ Jun 15 19:20:14 i think a new version of the red book is out Jun 15 19:20:40 oh well i'm writing in java... Jun 15 19:20:43 oh, that isn't ES Jun 15 19:20:45 http://www.informit.com/store/product.aspx?isbn=0132748452 Jun 15 19:20:50 bakis: the APIs are the same Jun 15 19:21:54 hm Jun 15 19:21:56 its going to be interesting to see if MS has opengl apis - i'm guessing not. thats not going to sit well with game devs that share code between android and ios Jun 15 19:22:02 is it es 2? Jun 15 19:22:05 (for wp8) Jun 15 19:22:28 romainguy, any idea where the google io app is? Jun 15 19:22:39 canadiancow|work: the old one ? Jun 15 19:22:45 new one! Jun 15 19:22:54 oh Jun 15 19:23:18 yeah, doesn't look like the code at http://code.google.com/p/iosched/ has changed lately Jun 15 19:24:32 I'm sure canadiancow|work is bright enough to check googlecode before asking Jun 15 19:25:31 g00s: "a new version of the red book" Jun 15 19:25:34 romainguy: so you'd definitely recommend it? Jun 15 19:25:34 so uh Jun 15 19:25:41 when i read that, i thought "cd audio?" Jun 15 19:25:48 and then i thought "postscript?" Jun 15 19:25:53 i suspect neither of these is what you meant. Jun 15 19:26:12 isnt the red book just the name of the like 7th version of learning opengl? Jun 15 19:26:17 given a speed a variable percentage to change the speed...does this formula work right (and should work for positive, negative and 0%): Speed = Speed + (Speed * Percent); right? Jun 15 19:27:02 yah I think that's right Jun 15 19:27:04 Is percentage 0 to 1? Jun 15 19:27:11 JakeWharton: are you at Square today? Jun 15 19:27:12 -1 to 1 Jun 15 19:27:38 Then yeah, probably Jun 15 19:27:45 well in theory it could be -more to positive more, it could be two hundred percent Jun 15 19:28:03 ctate: bakis : yeah, in opengl circles there is the red book and the blue book Jun 15 19:28:06 so that would be 2 Jun 15 19:28:36 ty SimonVT Jun 15 19:28:39 romainguy, he's currently nom'ing at a food truck Jun 15 19:30:41 romainguy_: yes Jun 15 19:30:55 you coming in? Jun 15 19:31:29 JakeWharton: I might drop by Jun 15 19:33:23 * g00s imagines the imperial theme song and storm troopers marching Jun 15 19:34:02 yeah, awesome. I will attempt to track you down then Jun 15 19:34:21 :>> Jun 15 19:35:08 http://www.nytimes.com/2012/06/16/technology/microsoft-expected-to-introduce-tablet.html Jun 15 19:35:08 TARGET: ACQUIRED Jun 15 19:35:18 I want my own squad of stormtroopers I could unleash upon app developers Jun 15 19:35:41 romainguy_: just threaten them that the emperor will not be pleased of their progress Jun 15 19:35:59 the battlestation must be operational ! Jun 15 19:36:09 romainguy_: +1 Jun 15 19:36:25 i thought the first target would be oems Jun 15 19:36:26 I find your lack of Action Bar... disturbing. Jun 15 19:36:59 who doesn thave an action bar? Jun 15 19:37:10 canadiancow|work: i don't Jun 15 19:37:16 well, i have an xml one like iosched Jun 15 19:37:19 ah Jun 15 19:37:22 switch to ABS Jun 15 19:37:26 I just have a bar Jun 15 19:37:26 it's so much more awesome Jun 15 19:37:34 i have been thinking about it. just … nervous Jun 15 19:37:41 heh Jun 15 19:37:45 you'll be grateful Jun 15 19:38:22 if i have my way, one of these days, words with friends will use abs Jun 15 19:38:22 what's the URL to the documentation page showing the distribution % of Android versions accessing Google Play? Jun 15 19:38:46 Like how many % use Android >= 2 Jun 15 19:38:54 http://developer.android.com/resources/dashboard/platform-versions.html Jun 15 19:39:00 http://lmgtfy.com/?q=android+version+chart Jun 15 19:39:02 Thank you! Jun 15 19:39:06 that's developer.android.com, pick the Resources tab, click 'Platform Versions' Jun 15 19:39:21 i hear that "google.com" makes a decent search tool as well Jun 15 19:39:22 so many on 2.2 Jun 15 19:39:28 "so many" ? Jun 15 19:39:37 its what...~25%? Jun 15 19:39:40 canadiancow|work: 19% Jun 15 19:39:46 which is a lot Jun 15 19:39:47 i'm going to listen to this before i switch to abs likely https://developers.google.com/events/io/sessions/gooio2012/106/ Jun 15 19:39:48 i suppose Jun 15 19:39:54 i might drop by square in a couple weeks, we'll see Jun 15 19:40:05 wongk: are you the emperor ? Jun 15 19:40:07 I know Google… I went to http://developer.android.com/guide/appendix/api-levels.html but didn't find any links from there Jun 15 19:40:15 This session will show you how to build user interfaces that work consistently across Android versions, from Eclair to today. We'll cover topics including the Action Bar, Fragments, style, size qualifiers, app structure, and navigation. Jun 15 19:40:17 Eclair eh? Jun 15 19:40:18 not that i'm aware of Jun 15 19:40:21 who supports eclair... Jun 15 19:40:34 Froyo or gtfo Jun 15 19:40:40 two or three wackos still do Jun 15 19:40:48 JakeWharton++ Jun 15 19:41:00 JakeWharton: oh is THAT what the 'G' release was Jun 15 19:41:01 well i mean if you have an app, fine Jun 15 19:41:05 like my app supports it Jun 15 19:41:20 haha Jun 15 19:41:24 what you did there, i see it Jun 15 19:41:27 but if c2dm was useful for me, i'd drop it in heartbeet Jun 15 19:41:30 heartbeat* Jun 15 19:42:05 mmmm heartbeets Jun 15 19:42:19 hah Jun 15 19:42:22 JakeWharton can i come to square next thursday or friday? Jun 15 19:42:56 everyone, to square! Jun 15 19:43:24 kegger at JakeWharton's place Jun 15 19:43:31 no Jun 15 19:43:40 he is not allowed to consume excessive amounts of alcohol Jun 15 19:43:41 @!$ MacBook Pro Jun 15 19:43:58 romainguy_: "Always get AppleCare" Jun 15 19:44:02 0% CPU usage and the fan is running full speed Jun 15 19:44:06 ctate: Google's Jun 15 19:44:07 heh Jun 15 19:44:10 yeah yeah i know Jun 15 19:44:11 ibm thinkpad ftw Jun 15 19:44:26 romainguy_: 100% gpu usage! Jun 15 19:44:58 romainguy_: new one or old one ? Jun 15 19:45:05 g00s: ~2 years old Jun 15 19:45:18 i don't think my fan ever turns on. Jun 15 19:45:25 i have it on a kallman notebook cooler though Jun 15 19:45:31 zalman Jun 15 19:45:39 the lid is closed Jun 15 19:45:47 so I guess all that metal is not helping Jun 15 19:45:58 but there's no app running @!$ Jun 15 19:46:02 it should help disipate :P Jun 15 19:46:04 uh oh. hope the battery is ok Jun 15 19:46:09 is there an easy way to convert a long value of 300000 to the string "5 minutes" ? Jun 15 19:46:18 s/easy way/built in method/ Jun 15 19:46:22 divide by 60000 Jun 15 19:46:30 thanks JakeWharton Jun 15 19:46:31 append " minutes" Jun 15 19:46:38 TimeUtils Jun 15 19:46:51 yeah, timeutils is great for that Jun 15 19:46:55 nice loaclized formatting Jun 15 19:47:00 I hate time Jun 15 19:47:05 almost as much as I hate floats Jun 15 19:47:09 i wish it would just stop! Jun 15 19:47:12 http://developer.android.com/reference/android/util/TimeUtils.html ? Jun 15 19:47:42 no http://developer.android.com/reference/android/text/format/DateUtils.html Jun 15 19:47:55 formatElapsedTime Jun 15 19:47:57 ah Jun 15 19:47:59 ok thanks :) Jun 15 19:48:07 Maybe it's not time utils Jun 15 19:48:12 or at least, that's not what i was thinking of Jun 15 19:49:07 I need food Jun 15 19:49:12 but to go get food I need pants Jun 15 19:49:14 canadiancow|work: be careful tho, if you create this value often. some of these instantiate Calendar objects pretty willy nilly Jun 15 19:49:19 i hate web programming Jun 15 19:49:23 best to check the code :) Jun 15 19:49:36 romainguy_: too much information :| Jun 15 19:50:53 canadiancow|work: TimeUnit! Jun 15 19:51:05 TimeUnit.MILLISECONDS.toSeconds(300000) Jun 15 19:51:51 it makes complete sense to find a decent time API in the concurrent package Jun 15 19:52:13 hah Jun 15 19:52:39 JakeWharton: people don't understand what alpha means, apparently Jun 15 19:52:51 JakeWharton: and my app being developer-focused, that concerns me Jun 15 19:53:26 haha Jun 15 19:53:38 but does it mean transparency or does it mean opacity? :) Jun 15 19:53:41 EddieRingle: i don't know what alpha is either :| unless you mention you also have betas and rc's, and what the difference in your world is between them Jun 15 19:53:49 ctate: translucency not transparency Jun 15 19:53:49 forgot to reply to your tweet, but yeah, that's not can encouraging sign Jun 15 19:54:00 romainguy_: yeah it came out of my fingers wrong Jun 15 19:58:14 JakeWharton: http://i.imgur.com/hEqZh.png Jun 15 19:58:41 Motorola Solutions acquires Psion for $200 million … baffled Jun 15 19:58:56 Psion? Jun 15 19:58:57 wth Jun 15 19:59:30 patents, probably Jun 15 19:59:40 seems like they want ruggedized stuff Jun 15 20:00:37 my dad was on a conference call about it earlier Jun 15 20:01:54 EddieRingle, don't release unfinished code :P Jun 15 20:02:26 users are usually stupid Jun 15 20:02:35 s/users/people Jun 15 20:02:36 canadiancow|work: it was either that or the existing version on the Play Store stay broken since GitHub turned off their old APIs Jun 15 20:02:44 alpha and beta need to stay in out until v1.0.0 is ready to hit the market Jun 15 20:02:51 we need to stop shitty apps on the market Jun 15 20:02:57 apparently that broke a number of things Jun 15 20:03:15 like our CI through cloudbees for k-9 mail Jun 15 20:03:34 My reasoning was that a cleaner, functional version of my app albeit with a few missing features was better than one that crashed when you tried to use it Jun 15 20:04:42 this is so cool. i'm selling my tc elecronic g-force and replacing it with stuff like this http://www.theverge.com/2012/6/15/3089066/amplitube-slash-ios-app Jun 15 20:06:14 just added an "important protip" to the app description Jun 15 20:06:54 EddieRingle can i access other orgs that im a member of? Jun 15 20:07:01 i only see my own repos Jun 15 20:07:05 not my company's Jun 15 20:07:06 seriously, it would be nice if play allowed devs to have a 'beta channel' where users could subscribe to if they wanted bleading edge stuff Jun 15 20:07:07 canadiancow|work: soon Jun 15 20:07:11 (disabled by default, of course) Jun 15 20:07:17 g00s: wonderful idea Jun 15 20:07:18 i've actually gotten some really good feedback from my users, but they're all android developers Jun 15 20:07:21 ah cool Jun 15 20:07:25 well the app looks pretty awesome so far Jun 15 20:07:31 thanks Jun 15 20:07:31 all decked out with ICS features and stuff Jun 15 20:07:35 I know :3 Jun 15 20:07:35 i'm 5star'ing it Jun 15 20:07:40 <3 Jun 15 20:07:48 g00s: that is a good idea Jun 15 20:08:10 I'm all gradumacated from high school now, so I've got plenty of time to work on it Jun 15 20:08:20 high school... sigh Jun 15 20:08:22 so young Jun 15 20:08:28 it's a terrible place now Jun 15 20:08:45 it became useless when I learned I could teach myself programming online Jun 15 20:08:50 so, middle school Jun 15 20:09:52 g00s, none of the apis in DateUtils seem to do what i want Jun 15 20:10:00 300000 == "5 minutes" Jun 15 20:10:13 g00s: I could really use the new reply to review feature the top devs are getting access to right now Jun 15 20:10:22 I wonder if it notifies the reviewer Jun 15 20:10:54 canadiancow|work: do you want it to always use the the time unit with lowest whole number? Jun 15 20:11:10 i wasn't aware of that feature Jun 15 20:11:17 yea Jun 15 20:11:24 canadiancow|work: write the code :P Jun 15 20:11:33 well thats what i was asking originally! :P Jun 15 20:11:37 yeah you'll have to pick your units thresholds by hand Jun 15 20:11:58 well the only values im using are going to be an integer numbers of minutes/hours Jun 15 20:12:05 no "5 hours 30 minutes" Jun 15 20:12:12 like, sometimes you'll want to call 26 hours "a day," but not for all use cases Jun 15 20:12:13 just "5 hours" or "30 minutes" or something Jun 15 20:12:21 no i wont Jun 15 20:12:22 canadiancow|work: even fornatDateRange with startMillis == endMillis ? Jun 15 20:12:22 :) Jun 15 20:12:38 canadiancow|work: then your code will be simple :) Jun 15 20:13:58 ok, this IS cool "With iOS 6, Apple devices will receive national emergency alerts" Jun 15 20:14:06 any android devices do this ? Jun 15 20:14:24 have you seen pull to refresh in ios6? Jun 15 20:14:28 no Jun 15 20:14:29 all of a sudden you hear a siren going off in your pocket Jun 15 20:14:32 it looks like you're stretching a condom until it breaks Jun 15 20:14:37 quick, under the desk! Jun 15 20:14:40 haha Jun 15 20:15:04 g00s: isnt' that a new federally mandated phone capability? Jun 15 20:15:16 ctate: i never heard so Jun 15 20:15:16 what law? Jun 15 20:15:36 http://newyork.cbslocal.com/2011/05/10/national-emergency-alert-system-set-to-launch-in-nyc/ Jun 15 20:15:45 its apple playing nice since... you know... they dont pay taxes Jun 15 20:15:49 in a ListPreference, can you programatically access the title for a specific (or the current) value? Jun 15 20:16:08 http://www.appleinsider.com/articles/12/06/15/with_ios_6_apple_devices_will_receive_national_emergency_alerts.html Jun 15 20:16:14 yeah yeah, apple insider. Jun 15 20:16:18 * ctate | starting next year, all cell phones will be required to have the chip that receives alerts Jun 15 20:16:25 sez the cbslocal story Jun 15 20:16:29 cool ! Jun 15 20:16:40 now you guys will know about tornadoes in mountainview Jun 15 20:16:56 i wonder why they call it mountainview Jun 15 20:16:58 it's probably a broadcast signal :p Jun 15 20:17:29 anyway, they have this website here Jun 15 20:17:39 to alert people about emergencies Jun 15 20:17:48 the first time there was a real emergency Jun 15 20:17:50 it crashed Jun 15 20:18:21 i wonder if the broadcast can also send arbitrary data, say bounding region of the area affected Jun 15 20:18:41 after it the whole internet was created for a "national emergency" Jun 15 20:19:03 r0ver: well, unless its terrorist related, and then the plug will be pulled :P Jun 15 20:19:15 g00s: well, it's obviously bounded by the signal strength Jun 15 20:19:37 ie, I guess it'll function like a warning siren Jun 15 20:19:56 AWOOOGA Jun 15 20:20:07 http://techcrunch.com/2012/06/14/carat-battery/ Jun 15 20:20:18 Hello, is there a way to adb install to a different directory like your own specified directory? Jun 15 20:20:28 No. Jun 15 20:20:50 apps are installed to a new dir tree created explicitly for them, under their newly-assigned uid ownership Jun 15 20:20:58 build that into android plx Jun 15 20:21:02 canadiancow|work: how does a list dropdown in the action bar on the Dashboard work for context switching? Jun 15 20:21:13 Captainkrtek: what are you actually trying to accomplish? Jun 15 20:21:40 wat Jun 15 20:21:43 hmmm, I'm trying to make a script to install a ton of apk's then later on be able to remove em. Problem is all the apps I'm installing, their file names are like blah.apk, not their package name Jun 15 20:21:51 I'm importing a java project that I wrote into android, and even though both the class I'm trying to use and its constructor are public, when I try to instantiate it I get the error "The constructor FileIndexer(File) is not visible)". Does anyone know why? Jun 15 20:21:56 'adb uninstall' needs the package names Jun 15 20:22:03 I know, there lies my iss Jun 15 20:22:04 your script can look at the apks to get the package names Jun 15 20:22:05 issue* Jun 15 20:22:14 canadiancow|work: a la github, on the dashboard you can select which context to use Hubroid as Jun 15 20:22:14 and then use those later on Jun 15 20:22:30 i dunno Jun 15 20:22:31 but ehm, if I may ask, why do you need to install a ton of apks? :p Jun 15 20:22:33 (specifically, you can use the host-side aapt tool to inspect the apks) Jun 15 20:22:34 havent done too much actionbar stuff Jun 15 20:22:45 MDijkstra: its for work, we deal with a ton of apps Jun 15 20:22:48 MDijkstra: automated testing springs to mind :) Jun 15 20:22:48 canadiancow|work: nono, I know how to do it, just asking if you like that workflow :P Jun 15 20:22:58 ctate: a couple of other things do as well Jun 15 20:23:10 ctate: ahh didn't think of using aapt, thanks! Jun 15 20:23:15 MDijkstra: oh sure, i'm just starting with the standard sdk toolset Jun 15 20:23:28 ctate: ping? Jun 15 20:23:31 Ge0rG: Jun 15 20:23:38 err, just saw it, thanks Jun 15 20:24:49 Battery stats accounting in the system is totally WRONG. and I am totally sad because of it. There are some _serious concurrency issues in accounting. Depending on which process registers/unregisters listeners first. BUGS in all of 2.X and ICS. Anyone had similar experience before? Jun 15 20:25:01 oh EddieRingle sure Jun 15 20:25:05 soudns reasonable Jun 15 20:28:17 what would be the correct attr to reference for status bar notification text colours? ?android:attr/textColorPrimary gives me white on an N1 o.o Jun 15 20:28:38 the non-remoteview notifications are black text Jun 15 20:30:06 voso: note that the battery accounting system is just there for guidance and does not (and cannot) provide entirely accurate measurement Jun 15 20:30:14 an example: if you register the light sensor during an incoming phone call BCast (PHONE_STATE) and you manage to do this before the display is turned on, your process will keep on growing in the stats, even if you have unregistered the sensor a few seconds later. However, if you register it delayed (~2seconds) and let the display be turned on (which results in the sensor being registered by android when auto-brightness is on), than all is o Jun 15 20:30:14 k. Jun 15 20:30:58 romainguy_: thx for your attn. it just makes my app look really bad in the stats, when in reality I consume _NO energy! Jun 15 20:31:13 I doubt that your app consumes *no* energy :) Jun 15 20:31:40 you are right there. Jun 15 20:32:05 ..related to those sensors.. Jun 15 20:32:14 how do you handle QA on 1400 devices? Jun 15 20:33:16 any suggestions as to how I can explain to the users that what they see in the Battery stats is irrelevant? Jun 15 20:35:09 anyway, sorry about the rants. Its just that I have spent 3 full days now on workarounds and I am doubtful I can ever succeed.. Jun 15 20:36:12 is there a certain aapt parameter to get package name or do I just need to do aapt dump resources and filter out the package name with sed or something Jun 15 20:40:59 ctate: care to review a few loc: http://pastebin.com/huS2dw89 ? Jun 15 20:41:08 testing is unfortunately not possible Jun 15 20:41:27 * ctate | We cannot update the view while we are pasued. Jun 15 20:41:30 typo: "paused" :) Jun 15 20:41:34 also, really? hunh! Jun 15 20:41:40 is therea FAQ or a HOWTO out there to use a external toolchain (gentoo) to compile the android source ? Jun 15 20:41:41 oops, i for got the listener method Jun 15 20:41:54 that said, remember that i basically don't write GUI code, so i'm not exactly the right person to review this sort of thing Jun 15 20:42:12 zPenguin: yeah the faq is really short on that: Jun 15 20:42:15 "Don't." Jun 15 20:43:25 ctate: are you hunh because the view can't be updated while it's paused? :P Jun 15 20:43:31 yes Jun 15 20:43:31 hunh'ing Jun 15 20:43:47 yes, it throws an IllegalStateException Jun 15 20:44:13 hmm Jun 15 20:44:14 interesting Jun 15 20:44:21 o well, it's straight forward enough Jun 15 20:44:22 cause i got this hardened cross android toolchain Jun 15 20:44:25 that i want to rebuild the source with Jun 15 20:44:31 it has stack smashing prevention and independent code Jun 15 20:44:35 a good security feature to have Jun 15 20:44:52 other then that id have to have 2 sets of libraries on the phone to run the hardened applications and id rather stay away from that method Jun 15 20:45:46 interesting. whose toolchain is it? Jun 15 20:45:57 [6] armv6j-softfloat-linux-bioniceabi-4.6.0 * Jun 15 20:45:57 [7] armv6j-softfloat-linux-bioniceabi-4.6.0-hardenednopie Jun 15 20:45:57 [8] armv6j-softfloat-linux-bioniceabi-4.6.0-hardenednopiessp Jun 15 20:45:57 [9] armv6j-softfloat-linux-bioniceabi-4.6.0-hardenednossp Jun 15 20:45:57 [10] armv6j-softfloat-linux-bioniceabi-4.6.0-vanilla Jun 15 20:45:58 mine Jun 15 20:46:09 i do gentoo hardened stuff Jun 15 20:46:28 ill prolly make the new one gcc 4.7 and hard float for arm7 Jun 15 20:46:35 what happens if you bindService with a null serviceconnection? Jun 15 20:46:43 *no* pie? Jun 15 20:46:46 then let users rebuild a kernel for their device and use the android compiled source for their arch Jun 15 20:46:50 it HAS pie Jun 15 20:46:54 okay whew :) Jun 15 20:47:01 those are the 5 options u can build with :) Jun 15 20:47:01 pfn: try and see :) Jun 15 20:47:14 yeah, I can, a bit lazy right now Jun 15 20:47:15 or try and catch :D Jun 15 20:47:25 i've read about an SELinux version of android Jun 15 20:47:38 you'd pobably have to build everything with your toolchain, not just the kernel Jun 15 20:47:50 ye i kno Jun 15 20:47:59 but if i get a userspace image going Jun 15 20:48:05 http://selinuxproject.org/page/SEAndroid Jun 15 20:48:08 then i can leave a emulator image up of the entire env Jun 15 20:48:10 for people to download Jun 15 20:48:21 "Pizza-making vending machines on their way to the U.S.". oh great. Jun 15 20:48:23 pax / grsecuirty now supports arm Jun 15 20:48:24 which is nice Jun 15 20:48:37 anyway, this is really a topic for the android-building google group, not for this [app development] channel Jun 15 20:48:58 g00s: you misspelled "OHH YEAHHHHHH" Jun 15 20:49:17 ohh my bad Jun 15 20:49:21 is there a # channel Jun 15 20:49:23 u can point me into Jun 15 20:49:24 pleace Jun 15 20:49:26 *pleaze Jun 15 20:49:31 Anybody know what could cause a "Constructor not visible" error even when the constructor and class are public? Jun 15 20:50:05 Adenverd: does it want a default constructor and you don't have one? Jun 15 20:50:31 Nope, I'm calling FileIndexer(File) and the class has public FileIndexer(File f) as a constructor Jun 15 20:50:48 oh Jun 15 20:51:17 FileIndexer is a java project that I imported in my Android project, if that helps at all Jun 15 20:52:25 can you pastebin the usage and the constructor Jun 15 20:52:43 http://stackoverflow.com/questions/11057858/constructor-not-visible-error-when-importing-custom-class-into-android-project Jun 15 20:52:55 stackoverflow question has both Jun 15 20:54:51 and File is java.io.File and not some other class by the same name? Jun 15 20:55:24 Yeah, just checked that. I have import java.io.File; at the top of both projects Jun 15 20:55:39 i'm spent Jun 15 20:55:49 Yeah, it's stumping me too :/ Jun 15 20:56:48 and i assume that the class FileIndexer is declared public Jun 15 20:57:08 indeed, both the class and the constructor are public Jun 15 20:57:20 freaking javac Jun 15 20:59:48 Ah! Found the issue: previously, the constructor wasn't public. When I removed the old jar, edited it to be public, and then readded the new jar, it still gave me an error until I ran. I assume that's because it didn't actually rebuild until I ran. Jun 15 21:00:05 aHA Jun 15 21:02:47 somebody is mad http://www.theverge.com/2012/6/13/3081568/comply-to-googles-design-guidelines-or-else Jun 15 21:04:59 I agree with it, just don't think that pulling the apps is the solution Jun 15 21:05:07 meh Jun 15 21:05:35 unified design stuff doesn't seem to matter Jun 15 21:05:47 look at windows. look at the effing _web_. Jun 15 21:07:21 or the iphone for that matter, hell if anything there is unified Jun 15 21:07:58 well, the point is mostly about people not supporting large screen sizes Jun 15 21:08:11 it happens Jun 15 21:08:13 i don't agree with the author, mostly because i don't think there is a roi for tablet specific android apps yet, unless you are special like twitter Jun 15 21:08:38 i'm amazed twitter isn't tablet optimized yet though Jun 15 21:08:44 g00s: I disagree, if you design your app right adding tablet support is almost trivial Jun 15 21:08:54 if Jun 15 21:09:06 of course if you built your app for 2.2 and you haven't updated it in awhile you're screwed Jun 15 21:09:13 pretty much, yeah Jun 15 21:09:40 i'd more ask why there isnt' better handling of early apps Jun 15 21:09:41 MDijkstra: i .. disagree. my navigation structure would change a lot. its not so much the layouts, but the multiple fragments on screens vs one screen. you can modularize things a lot with fragments but its still a lot of work Jun 15 21:09:42 I actually updated a 2.x app to fragments and actionbarsherlock last month Jun 15 21:09:49 the rewrite took like 20 hours Jun 15 21:10:01 holy crap that bad? surely that's not the norm Jun 15 21:10:04 porting it to tablets after that like 2 Jun 15 21:10:25 well, that's not strictly the fragments transition Jun 15 21:10:31 it can take a lot of time going to fragments if you ditch the asyncquerystuff and rip that out for loaders Jun 15 21:10:35 there was some other stuff I wanted to do differently Jun 15 21:10:56 starting from scratch maybe is easier Jun 15 21:11:05 (this was the first android app I ever wrote, and it kind of showed ;) Jun 15 21:11:09 ah Jun 15 21:11:34 still, converting everything to fragments can sometimes be a pain Jun 15 21:11:40 well, doubtless Jun 15 21:12:07 but once you have your app using them, it's fairly trivial to add tablet support Jun 15 21:12:28 with "adb forward", it is possible to force the local port to a special IP value ? by default, it forwards to 127.0.0.1, would it be possible to put like 192.168.X.X ? Jun 15 21:14:45 MDijkstra: i think what google needs is better tooling to visualize your ui in phone / tablet differences, like apple Storyboards http://developer.apple.com/library/mac/#documentation/General/Conceptual/Devpedia-CocoaApp/Storyboard.html Jun 15 21:15:30 the adt keeps getting bigger and bigger but doesn't ever seem to include many features that interest me. wonder if the adt people even write android apps. Jun 15 21:16:25 g00s: yeah, I also develop for iOS Jun 15 21:16:48 I dunno, I don't really like storyboards a lot Jun 15 21:16:53 * g00s favorite feature of adt is lint and ui preview, the rest is junk Jun 15 21:16:59 too inflexible for anything else than static layouts Jun 15 21:17:15 ms had a tool similar to this also, forgot what it was called. Jun 15 21:17:40 but it wasn't free, and it predated all their windows 8 / mobile stuff Jun 15 21:18:03 but at least they let you define and trigger your own transitions programatically Jun 15 21:18:06 so it's all fine Jun 15 21:19:16 but I dunno, my opinions on XCode are well known ;) Jun 15 21:20:16 so speaking of UI tooling Jun 15 21:20:25 i've been hacking on this for a while now: https://github.com/bignerdranch/Roger Jun 15 21:20:52 it's not quite to the point where you can just install it and go, but it's getting there Jun 15 21:21:48 mac only, but lets you visualize layouts on multiple devices/emulators at one time pretty easily Jun 15 21:23:29 billjings: this looks cool, i'm going to have to look at this Jun 15 21:23:53 g00s: that would be awesome. I'm looking for feedback on it Jun 15 21:24:57 anyone know how to fix this when building full-eng,thanks, make: *** No rule to make target `out/target/common/obj/APPS/LatinIME_intermediates/classes.jar', needed by `out/target/common/obj/APPS/LatinIMETests_intermediates/classes-full-debug.jar'. Stop. Jun 15 21:25:04 there are a few things i was thinking of working on, but don't have the time now … one to shows the hierarchical relationship between resources (like, this layout includes this layout, and uses these colors, etc). so i can see a dependency tree Jun 15 21:25:17 i'm planning on adding a UI to see what devices are connected, then call that 1.0 and build some proper binaries Jun 15 21:25:19 or i would like to be able to see , what references a certain color Jun 15 21:25:28 cool Jun 15 21:26:22 g00s: Seeing as how I built a resource dependency analyzer for Roger I could totally do that. :) Jun 15 21:26:38 i think ctate mentioned a while back, the transaltions for android are actually created by some other toolchain. this supports my idea, that stuff in res/ is really at best an intermediate representation … not something as a developer I should be wrapping my head around Jun 15 21:27:20 once res/ folders get too wide and deep, i can't comprehend the project any more Jun 15 21:27:58 ah, so you're really thinking of a tool that helps visualize and manage resources better than a folder listing Jun 15 21:28:07 yes, definitely Jun 15 21:28:18 so you can just see, "okay, i've got this drawable resource, and it has this this and this config qualifier setup" Jun 15 21:28:19 res/ is too low level once it gets big Jun 15 21:28:42 i don't think the adt visual editors do much of anything to help it Jun 15 21:29:08 they help create the xml files, but it still feels like too low level abstraction Jun 15 21:29:14 g00s: they're done by Google's company translation team Jun 15 21:29:36 so there's really no way for us to take outside translations, for example Jun 15 21:29:51 IntelliJ IDEA shows you when you have multiple versions of a resource Jun 15 21:30:03 [there was a brief conversation about this on android-platform or android-contrib, i forget which; regarding someone who wanted to contribute a full Macedonian translation] Jun 15 21:30:24 if I click "Go to" on R.drawable.whatever in my code it'll show a list of the three DPI-specific versions Jun 15 21:30:50 That sounds pretty rad Jun 15 21:31:03 i like the go-to stacktrace button in intellij's logcat Jun 15 21:31:11 no need to find it by scrolling Jun 15 21:31:18 billjings: then i had this other idea, about specifying a DSL maybe for creating rasterized res/ drawables from my .svgs that were somewhere else, like ${project_root}/art and this was a build target. like "take the bounding boxes in these svgs, make them *dpi assets and put them here" Jun 15 21:31:22 only prob is there is a bad bug with intellij on linux Jun 15 21:31:29 the menus aren't accurate if you maximize the winodw Jun 15 21:31:36 can't wait to get a mac & solve this... :) Jun 15 21:32:11 billjings: right now i have a python script which creates my pngs from svgs; SimonVT also has some homegrown thing Jun 15 21:32:36 g00s: share it on github... please :) Jun 15 21:32:40 that sounds awesome Jun 15 21:32:41 I didn't know this was a common thing Jun 15 21:32:49 i would love to have that tool Jun 15 21:32:50 * g00s is familiar with the whole svg -> icon debate, what gets lost, what needs to be reauthored, etc Jun 15 21:33:04 Ahh, for different res icons? Jun 15 21:33:09 yes Jun 15 21:33:51 for example, i have a file ab.svg that has my action bar icons. each icon has a bounding box with id; the script enumerates the ids and creates pngs and puts them in the right dpi folders Jun 15 21:34:20 it uses inkscape as the rasterizer Jun 15 21:34:24 plz share the hax g00s Jun 15 21:34:26 what else do you need, then? throw it into your build and you're done, right? Jun 15 21:34:41 haxplz Jun 15 21:34:48 billjings: its a python scrips outside of everything. i was thinking about making it an ant plugin or something Jun 15 21:35:16 oustide the usual android build process, of course Jun 15 21:35:36 i haven't dealt much with ant. can you not make ant just run a shell script? Jun 15 21:36:23 * readme is going to write such a script, since g00s is keeping his proprietary :( Jun 15 21:36:39 what a dick Jun 15 21:36:40 I'm going to write a script that writes scripts that g00s writes and doesn't share Jun 15 21:36:46 lol Jun 15 21:36:47 it's going to use telepathy module Jun 15 21:37:13 brb got to buy some new shoes 8-) Jun 15 21:37:16 what a bunch of whiners Jun 15 21:39:32 y u hatin, lov Jun 15 21:41:57 it is all I know ._. Jun 15 21:42:47 ive been coding through two day and two nights and this am my brain started to feel like I was retarded no matter how much i tried to focus...now I'm just falling asleep...frequently. Jun 15 21:43:34 smoke some crack, it'll help Jun 15 21:44:03 word Jun 15 21:44:17 drink 2 red bulls then punch yourself in the face Jun 15 21:44:21 lol, would poste haste if it was in front of me Jun 15 21:44:36 then post a video you youtube Jun 15 21:44:42 or drink a bottle of scotch and lapse into a week-long coma...that's my plan starting next weekend Jun 15 21:46:24 crack is safer Jun 15 21:49:25 meh, I wish Future provided an observable interface rather than polling Jun 15 21:49:37 I had an agreement to have some code to someone today at "close of business"...when should I consider that? Jun 15 21:49:52 5pm Jun 15 21:50:03 pfn: you mean you don't like the blocking get()? :) Jun 15 21:50:10 that's right Jun 15 21:50:39 yeah it's annoying Jun 15 21:50:40 I send them an email and said I work really late in the day so it's not close of business yet for me Jun 15 21:50:56 use hawaii time Jun 15 21:51:06 GeeksOnHugs: typically, 5pm in their local time Jun 15 21:51:13 1151 am there Jun 15 21:51:21 i didn't hear back from them...they are a potential employer, hope they are cool Jun 15 21:51:39 you're fired. Jun 15 21:51:48 heh, maybe Jun 15 21:51:59 on the plus side, you can sleep now Jun 15 21:52:44 but I thinking, no body would look at it till monday anyway now...I had an interview and this is my take home project...telling them when youd' have it is part of the test...I'll close, maybe an hour left, two hours tops Jun 15 21:52:58 I guess I can use a futuretask and override done() Jun 15 21:54:28 EOB is generally 5PM Jun 15 21:54:36 or whenever the business is nominally closed for the day Jun 15 21:54:47 i.e. when the secretaries go home Jun 15 22:04:32 man...I dunno. part of the test was saying the deadline and the meeting it...I could have had a week or more if I wanted it Jun 15 22:05:28 so I told them end of business today how smart lol...I'm close but I'm so drowsy Jun 15 22:12:42 GeeksOnHugs: if i were you, i'd send them what you have, then finish it and send them the finished product Jun 15 22:13:35 maybe that's a good idea Jun 15 22:14:02 yah, im going to do that, thanks Jun 15 22:26:32 Hello, I'm trying to modify something inside SecPhone.apk From samsung Galaxy S III, and I am having a hard time recompiling it back after editing the XML file. I am getting error about some values in string.xml. I am pretty sure it's realted to the aapt version or the apktool version, but not sure which to use. Anyone can point me to the right version? Jun 15 22:26:40 #android-root Jun 15 22:27:22 this channel is for app development, not Jun 15 22:27:26 rom development Jun 15 22:28:22 I am not creating any rom, I'm trying to modify something in the Phone app. Jun 15 22:29:17 Still, wrong channel Jun 15 22:50:37 I imported a java class into my android activity, and added the jar to the build path, but when I try to instantiate an Object from the imported java code, I get a NoClassDefFoundError...anyone might know why? Jun 15 22:55:22 the class loader evicted it because of a missing dependency or invalid code Jun 15 22:55:30 look in log cat for VerifyError Jun 15 22:56:28 searching "VerifyError" in my logcat doesn't show anything. That's a definite possibility though, I'm attempting to use some Lucene code Jun 15 22:58:07 JakeWharton: hey, I'm using ABS in a project and would love your feedback. http://tapchatapp.com/beta.html Jun 15 22:58:37 This is the first time I've ever exported some of my own Java code as a jar...just to double check, if the build path for the java code included the Lucene jar, and I imported a few Lucene classes, when I package up my java code, the necessary portions of the lucene jar will be packaged up too right? Jun 15 22:59:08 Adenverd: is your jar in 'libs'? Jun 15 22:59:10 codebutler: looks sweet, will check it out Jun 15 22:59:14 JakeWharton: thanks! Jun 15 22:59:39 wongk: which jar? the lucene jar or my own packaged jar? Jun 15 22:59:47 also using VPI? Jun 15 23:00:01 Adenverd: any ones that you are using in your prject Jun 15 23:00:55 If I do configure build path > Libraries, then yes, they're listed there. I'm not sure where else I should check though Jun 15 23:03:04 Adenverd: the directory 'libs' in your project tree Jun 15 23:05:19 yes, ...\workspace\Mobile_Categorizer\lib contains FileIndexer.jar Jun 15 23:05:38 libs Jun 15 23:05:40 no lib Jun 15 23:05:42 not Jun 15 23:05:55 Nope, no libs folder at all Jun 15 23:06:02 there's your problem Jun 15 23:07:53 should I just create a new folder in the project called libs and throw the jar in there? Jun 15 23:07:58 or do I need to configure it somehow? Jun 15 23:09:46 just need the directory Jun 15 23:09:55 rename lib Jun 15 23:19:37 should framework questions be directed here or #android? Jun 15 23:21:13 #android, this channel is for application development Jun 15 23:21:28 k Jun 15 23:34:03 ugh, why doesn't guava have a recursive delete function... Jun 15 23:34:43 jesus Jun 15 23:35:25 so my app that works PERFECTLY on Nexs ONE performs like an absolute dog onthe HTC ONE X, slow scrolling, jerky transitions, and worst of all, webviews simply decide NOT to load... anyway know whats going on? Jun 15 23:35:49 profile it? Jun 15 23:36:04 hows that gonna help Jun 15 23:36:08 its clearly an OS ISSUE Jun 15 23:36:15 works sublime on my nexus Jun 15 23:36:23 and slow as shit on quad core htc one x, Jun 15 23:36:34 not to mention why webviews simply dotn work on htc one x Jun 15 23:36:35 cores don't matter Jun 15 23:36:39 ==JakeWharton Jun 15 23:36:44 (not strictly true, but close) Jun 15 23:36:53 well ok, why is it VERY slow and why do webviews not load? Jun 15 23:36:54 well the main thread is certainly not running on more than one core Jun 15 23:37:05 did you enable hardware acceleration? Jun 15 23:37:09 that's why i said to profile it, to see where it's failing to spend time Jun 15 23:37:27 what's the 1x running? ICS? Jun 15 23:37:41 and what's your targetSdkVersion? Jun 15 23:38:00 well jake i tried all of that, if you remember, i ended up going back because i guess my networking is done on UI thread and thus it died on new devices, altho i dont quite get it since my networkign was done in thread, im quite willign to adjust it all to not be herectic material if i can work out how Jun 15 23:38:03 ICS yes Jun 15 23:38:14 im using minsdk 8 Jun 15 23:38:18 not min, target Jun 15 23:38:22 andn othign more, it wouldnt even run on 10+ Jun 15 23:38:28 ther eis no target Jun 15 23:38:36 you have to have a targetSdkVersion Jun 15 23:38:38 don't you? Jun 15 23:38:39 you're doing networking on the main thread still?!? Jun 15 23:38:46 like, won't it fail to build/install if you don't? Jun 15 23:38:47 no u dont have to ctate Jun 15 23:38:51 nexus one? ics? Jun 15 23:38:57 not at all no need at all Jun 15 23:38:58 huh? Jun 15 23:39:03 oh hm, which SDK are you building it against/with? Jun 15 23:39:08 [which API level that is] Jun 15 23:39:11 JakeWharton well it SEEMS SO , I FIRE OF A THREEAD SO I THOUGHT NOT BUT IT SEEMS ITIS Jun 15 23:39:24 ALL I HAVE IS Jun 15 23:39:44 whoops Jun 15 23:39:45 soz for caps Jun 15 23:39:52 project target build is 3.0 Jun 15 23:40:06 okay, targetSdkVersion defaults to 8 Jun 15 23:40:12 because that's what you defined as min Jun 15 23:40:22 so you're claiming your app is old and crunchy and can't do hw accel Jun 15 23:40:26 worksl iek a dream on my n1 (2.3.6) but on this htc oen x, ics its slow and nightmarish, webviews simply refuse to work scrolling is like a dog and transtions on viewflipper are jerky beyond beleive Jun 15 23:40:32 dont' do that :) Jun 15 23:40:41 i tried not to man Jun 15 23:40:46 btthen it wont run on newer devices Jun 15 23:40:46 Perhaps he is going for that grunge feeling Jun 15 23:40:49 dies at all networking Jun 15 23:40:54 gaz`: then fix that. Jun 15 23:40:58 yes Jun 15 23:41:04 but this is why you're having trouble on ICS Jun 15 23:41:13 so my networkign is flawed i asusme Jun 15 23:41:14 because your app is explicitly not letting the OS do the fast thing Jun 15 23:41:28 hence i cant target new OS, hence everythign is slow, and hence webviews dont work? Jun 15 23:41:33 righhht Jun 15 23:41:47 well ill have t rethink the networkign get it off UI i guess Jun 15 23:41:59 noteven surehow its on UI Jun 15 23:42:03 it basically isnt Jun 15 23:42:09 but i must be misunderstanding Jun 15 23:42:18 either way client is very pissed Jun 15 23:42:21 turn on strict mode and see what it screams about. it gives you stack traces and so on. Jun 15 23:42:22 works on all our test phones Jun 15 23:42:30 then we go out into the bar and it performs like a joke Jun 15 23:42:37 oh how do i? Jun 15 23:42:46 in settings / developer options, no? Jun 15 23:42:48 tbh i think they wont pay now Jun 15 23:42:58 as today it got released Jun 15 23:43:13 what are your test phones running? Jun 15 23:43:14 im ready to leave this company and lose my cash ;/ Jun 15 23:43:19 i only have n1 2,3,6 Jun 15 23:43:22 works perfect Jun 15 23:43:31 yeah but that's a 3-year-old device Jun 15 23:43:32 2.3.6 Jun 15 23:43:44 so i assumed it would work better on new devices Jun 15 23:43:58 that's not a good assumption even on desktops Jun 15 23:44:03 yeh Jun 15 23:44:03 cf when ModeX quit working Jun 15 23:44:08 if they dont pay for this im up shit creek Jun 15 23:44:19 Guys. I have problem with ListView updates. I have a button that simply calls adapter.notifyDataSetChanged(); and a background thread that posts same method call: adapter.notifyDataSetChanged(). The button works, the thread's post doesnt. What is the trick? Jun 15 23:44:21 i have to fly home and work in house Jun 15 23:44:27 this was my saviour Jun 15 23:44:54 i didlast app in exact same circumstances Jun 15 23:45:00 but no testers had this fucking htc one x Jun 15 23:45:12 and it went down perfect Jun 15 23:45:27 you'll probably see similar issues on any ICS device Jun 15 23:45:34 and possibly any HC device as well Jun 15 23:45:49 ok so mynetworkign is old too old, and i dont have hw accel on, but why do webviews mess up? Jun 15 23:45:57 because of the lack of hw accel Jun 15 23:46:03 they are blank basically Jun 15 23:46:20 or they appear then dissapear Jun 15 23:46:22 [probably] Jun 15 23:46:27 or when u go back to them theyre empty Jun 15 23:46:35 i dont see how hw accel effects this Jun 15 23:46:39 i mean, it's possible that HTC didn't bother testing their driver stack with software rendering Jun 15 23:46:45 which is of cousre their problem Jun 15 23:46:50 nothing wouldsuprise me about htc Jun 15 23:47:04 i played down freagmentation til today Jun 15 23:47:07 but that sort of dodges the question because you need to be able to run cleanly as a modern app Jun 15 23:47:22 well i know its all good i just need to update Jun 15 23:47:27 sdk 8 means you're a legacy app out of the gate Jun 15 23:47:37 and my networkign is fuxxed i guess but eay fix no doubt Jun 15 23:47:49 when di n1 get so old Jun 15 23:48:01 at the very least get the accelerated ICS SDK emulator and see how it goes Jun 15 23:48:08 yes Jun 15 23:48:12 but the meus are unusable Jun 15 23:48:15 emus Jun 15 23:48:21 beyond unusable Jun 15 23:48:22 no, the accelerated one Jun 15 23:48:26 oh Jun 15 23:48:32 how do i get it? Jun 15 23:48:50 i went out to celebrate a release Jun 15 23:48:52 http://android-developers.blogspot.com/2012/03/updated-sdk-tools-and-adt-revision-17.html Jun 15 23:48:53 and came back shamed Jun 15 23:49:04 * ctate | Thanks to contributions to AOSP from Intel, the emulator now supports running x86 system images in virtualization mode on Windows and Mac OS X. This allows the emulator running at near native speed. Jun 15 23:49:07 with a link for more info Jun 15 23:49:09 now i stand to lose £4000 Jun 15 23:49:14 weren't you the one that was slaving to the grind that we said was going to have quality issues? Jun 15 23:49:26 no wongk Jun 15 23:49:29 i was slaving Jun 15 23:49:34 but idont thin kanyonesaid that Jun 15 23:49:46 i recall saying it explicitly Jun 15 23:49:50 even if u did it was the usual nonsense Jun 15 23:49:56 not actual reality Jun 15 23:50:07 overworked developers produce low quality code Jun 15 23:50:14 no bad code practisies can make an n1 fly and an htc one x crawl Jun 15 23:50:17 its manifest Jun 15 23:50:24 well im def overworked Jun 15 23:50:28 mmm, platitudes aren't exactly helpful at this point Jun 15 23:50:41 dont know what that means Jun 15 23:50:52 it means wongk-home isn't helping much :) Jun 15 23:50:53 iftheres a hw accel emu then im saved Jun 15 23:51:02 icanfix on that Jun 15 23:51:07 yeah, step zero is to try to get an ICS test environment Jun 15 23:51:09 butthe emus i use are so wack Jun 15 23:51:21 and honestly you should probably try hard to lay hand on a physical device Jun 15 23:51:23 at least a Galaxy Nexus Jun 15 23:51:31 yes i had a few Jun 15 23:51:35 companies took em back Jun 15 23:51:35 well the kicker is, i am sure the company won't learn the lesson to be learned in this Jun 15 23:51:39 i NEED anew device Jun 15 23:51:43 or a One X or something that they're actually going to be using Jun 15 23:51:51 i do have a htc flyer from google running ics, maybe that can save my bacon! Jun 15 23:52:02 bacon ? Jun 15 23:52:07 where ? Jun 15 23:52:08 ASS Jun 15 23:52:17 aaaass Jun 15 23:52:25 SOOO i guess moral is, fix/debug on my tablet? Jun 15 23:52:33 or on HW accel emu Jun 15 23:52:40 thank fuck google gave me this tablet Jun 15 23:52:47 either way i thin kthey wont pay now Jun 15 23:52:56 and if so i might as well give up Jun 15 23:53:34 i'd be seriously, ragingly pissed off if i worked that hard and didnt get compensated Jun 15 23:53:36 * gaz` is so depressed Jun 15 23:53:43 i just done 600 hours Jun 15 23:53:46 on this proj Jun 15 23:53:54 this week was 69 hr week Jun 15 23:54:11 i mean, im not saying it would right to stab someone in the face, but... Jun 15 23:54:37 all i wanna do is get my amazing app out there, so it feels like it does on my n1- get paid, add to portfolio and forget about it Jun 15 23:54:49 then i find someone worth workingfr Jun 15 23:54:50 for Jun 15 23:55:08 my heart is racing 24/7 Jun 15 23:55:11 thought id done this Jun 15 23:55:18 but my mates htc one x made it look awful Jun 15 23:55:22 even lists were slow Jun 15 23:55:35 viewpager transitions were so jerky they wer eliek 3fps Jun 15 23:55:51 all that ican take, on the chin, but webviews not working, what is that all about Jun 15 23:55:51 send the apk if you can Jun 15 23:55:55 I'll test on my gnex Jun 15 23:56:02 MDijkstra thanks man i willsend it to you Jun 15 23:56:29 it shouldn't be that slow just because it's not accelerated Jun 15 23:57:09 no, I didn't even notice the fact that acceleration was off Jun 15 23:57:12 by default Jun 15 23:57:21 ... for sufficiently old apps Jun 15 23:58:26 yeah, my sufficiently old app Jun 15 23:58:38 in this case Jun 15 23:58:44 I have a ScrollView with buttons in it. I want to change the alpha of the buttons to transparent when the user isn't trying to interact, and when the user begins to "scroll" through the list I want them to become in focus. I know how to do this by the onTouchListener, when touched down I will change the alphas to 255. But how can I turn them transparent? Ideally speaking I'm looking for like a onRelease listener or s Jun 15 23:58:44 omething. Anyone have any suggestions? Jun 15 23:59:19 its VERY slow Jun 15 23:59:27 xa0c: you can't do ui things on a non-ui thread Jun 15 23:59:27 even simple lists on htc one x, drag like a joke Jun 15 23:59:34 that's the lack of hw accel Jun 15 23:59:40 on a much MUCH bigger screen Jun 15 23:59:50 wongk-home: I said: "using post" Jun 15 23:59:53 so that is caused by my networing which is on ui thread, even tho i dont see how but it must be Jun 16 00:00:06 yeh this screne is half hd, 720x1280!!! Jun 16 00:00:20 sent apk MDijkstra Jun 16 00:00:30 yeah just got it Jun 16 00:00:39 but webviews... Jun 16 00:00:42 whats that about? Jun 16 00:00:50 could it be some weird race condition i dont see Jun 16 00:00:59 i can handle slow lists and transitions but why dont the webviews work Jun 16 00:01:05 xa0c: can you pastebin the code? Jun 16 00:01:08 nevermind. I figured out: post runnable was not called at all (but returns true) Jun 16 00:01:22 Can someone explain what OnFocusChangeListener does? Jun 16 00:01:30 im properly paniced Jun 16 00:01:34 wongk-home: I solved it by using top-level view that posts the action Jun 16 00:01:37 i think im losing a fortune fo this Jun 16 00:01:57 Does focus refer to the user having their finger on the view? Or like if the view is in the foreground and another view/activity is being shown over it Jun 16 00:02:20 the performance is not 100% smooth on the gnex Jun 16 00:02:27 yeh Jun 16 00:02:32 but it's nowhere near as bad as you're describing on the one x Jun 16 00:02:37 if its acceptable ill survive Jun 16 00:02:47 on htc one x its like a pc in the 90s Jun 16 00:03:04 my mates like ISNT IT AMAZING, im like its shit compared to my ancient phone form what isee Jun 16 00:03:46 also, the web views work properly Jun 16 00:03:46 MDijkstra let me know any weirdness u come across Jun 16 00:03:53 ohhhhh Jun 16 00:04:04 what os is this Jun 16 00:04:16 galaxy nexus, 4.0.4 Jun 16 00:04:21 right Jun 16 00:04:30 i wouldnt be suprised if htc one x was a piece of shit Jun 16 00:04:49 sounds like you might not be so bad off, then Jun 16 00:04:50 well, it's a bit slower than usual Jun 16 00:04:58 but nothing too noticable Jun 16 00:05:12 thats good Jun 16 00:05:17 its not optimised at all either Jun 16 00:05:17 fix the networking, bump the target api level, and hopfeully things work out Jun 16 00:05:24 yes!!! Jun 16 00:05:27 If it works perfect on at least one device, you should be able to fix it somewhat quickly. Perhaps the buyer will not pay full price due to the delay of you making that fix, but i dont think all is lost Jun 16 00:05:40 true Jun 16 00:05:44 butthis is for a live event Jun 16 00:05:47 a very BIG live event Jun 16 00:05:52 starting in 3 days Jun 16 00:06:04 the fucking queen is gonna be there Jun 16 00:06:08 also, there's some minor visual glitches with the 'Planning your day' and 'Where to watch' labels not lining up properly Jun 16 00:06:18 yes they said that Jun 16 00:06:21 again icant see Jun 16 00:06:25 works good here Jun 16 00:06:42 probably differences in density Jun 16 00:07:14 How can I tell if a user has taken their finger off the screen? Is there a listener for this? like onReleaseListener or something? Jun 16 00:07:39 yeh Jun 16 00:07:46 its like images show themselves more Jun 16 00:07:49 orsomething Jun 16 00:07:59 i justwish my tablet was a phone Jun 16 00:08:11 these apps are pixel perfect so its impossible to make them scale to everything Jun 16 00:08:40 one hint of ratio issues and theyre like its wrong Jun 16 00:08:41 T-Dub|DlolPics: ACTION_UP Jun 16 00:08:53 in the onTouchListener? Jun 16 00:08:54 so webviews al working still MDijkstra? Jun 16 00:09:04 yeah, just trying them all out Jun 16 00:09:12 in the onTouchListener? MDijkstra Jun 16 00:09:12 thanks mate Jun 16 00:09:16 youre a life saver Jun 16 00:09:23 i went from ecstatic to depressed Jun 16 00:10:03 Hello can I use my pgp private key as my key signer for android apps? Jun 16 00:10:07 them labels look so fien on y n1 Jun 16 00:10:14 them labels look so fine on my n1 Jun 16 00:10:30 T-Dub|DlolPics: I forgot what the method was called, but I guess Jun 16 00:10:32 basicically i should have modern devices Jun 16 00:10:46 companies used to let me keep em but now they askfor em back:-x Jun 16 00:10:46 Ok I'll look into it. Thanks for the response MDijkstra Jun 16 00:10:57 the method where you get your MotionEvent Jun 16 00:11:32 MAYBE, ican trade my n1 for my mates htc one x for 3 days.................. Jun 16 00:17:53 it seems to me google have deliberately punished "old" code Jun 16 00:17:59 to force you to fix Jun 16 00:18:41 my networking is in a thread but its stil started from UI, isnt thatwhat ur meantto do, its a runnnable that i start with new thread.start etc Jun 16 00:19:05 MDijkstra: is ACTION_DOWN supposed to be called when your finger touches the screen? Jun 16 00:19:13 yes Jun 16 00:19:26 gaz`: just analyzing the performance of your app a bit Jun 16 00:19:27 Hmm Jun 16 00:19:35 gaz`: I didn't look at the layouts yet Jun 16 00:19:40 thanks man, i know it wont be great Jun 16 00:19:47 time constraints have been ridiclous Jun 16 00:19:57 and im still new to android so making lots of noob errors Jun 16 00:20:05 gaz`: but I'm guessing the heavy use of transparency when scrolling doesn't help and might cause the issues on the one x Jun 16 00:20:20 i use many transparent pngs yeh Jun 16 00:20:21 gaz`: okay, look Jun 16 00:20:22 the worst performing bit on the galaxy nexus is the 'live updates' Jun 16 00:20:30 you'll only get the strictmode problems on dev builds, not on retail phones Jun 16 00:20:38 MDijkstra live updates is sane enough, but it refreshes each 20 secs Jun 16 00:20:47 how so ctate? Jun 16 00:20:56 gaz`: it's not on by default on user builds Jun 16 00:20:57 and you have no resized images for hdpi, mdpi, ldpi Jun 16 00:21:04 which shouldn't be a problem in this case ofc Jun 16 00:21:11 MDijkstra no just one set Jun 16 00:21:18 you can also turn on hw accel in your manifest Jun 16 00:21:30 i tried it but my entire app stopped working MDijkstra Jun 16 00:21:33 oh, and it compiled the xml files ofc Jun 16 00:21:34 sorry ctate Jun 16 00:21:52 hw in manifest means it wont run on ew devices Jun 16 00:21:59 new* Jun 16 00:22:11 ? Jun 16 00:22:15 why not? Jun 16 00:22:22 it just wouldknt get past networking Jun 16 00:22:26 always returned null Jun 16 00:22:39 okay so what exactly is going on when you talk about networking problems? Jun 16 00:22:50 MDijkstra whats ofc Jun 16 00:22:51 its it a StrictMode failure, or is it actual mysterious errors? Jun 16 00:22:56 "ofc" = "of course" Jun 16 00:22:59 ah Jun 16 00:23:00 I'm using http://pastebin.com/PRnPU1Rw and it works pretty well, the on action down seems a bit glitchy but I might be able to work with it. My problem is if I hold my finger down the actual scrollView itself freezes. The toasts call no problem but the scrolling in the scrollview freezes. Any thoughts/suggestions? Jun 16 00:23:18 ctate well on new phones all networkignwould simply fsail until i removed anything apart form minsdk8 Jun 16 00:23:53 did you get bugreports? Jun 16 00:23:59 no Jun 16 00:24:03 i mean, that's pretty wack unless they were running dev builds Jun 16 00:24:06 just testers saying it couldnt get past splash Jun 16 00:24:11 even android:hardwareAccelerated="true" ruined it Jun 16 00:24:21 ... and your testers weren't providing bugreports? Jun 16 00:24:22 and android:targetSdkVersion="10" Jun 16 00:24:25 no Jun 16 00:24:28 they dont have a clue Jun 16 00:24:35 get some decent testers, sir. Jun 16 00:24:35 they get handed a phone and they press things Jun 16 00:24:42 gaz`: what are you doing with the custom fonts? Jun 16 00:24:43 this is a very expensive test company Jun 16 00:24:53 MDijkstra im just specifiyng a font where required Jun 16 00:24:57 .. who are obviously not worth the dosh Jun 16 00:25:03 also in native elements? Jun 16 00:25:10 ctate whats the diff between dev and release build Jun 16 00:25:24 MDijkstra erm i just findviewby id and set fonts when i have to Jun 16 00:25:28 gaz`: so are you able to share this networking code in a pastebin? Jun 16 00:25:29 mostly, the difference is that strict mode is turned on by default on dev (eng) builds Jun 16 00:25:36 possibly also on userdebug Jun 16 00:25:36 wongk yeh i could Jun 16 00:25:41 but not on user, i.e. retail builds Jun 16 00:25:47 and proguard gets run if configured Jun 16 00:25:50 gaz`: I don't know exactly if this is possible, but rendering custom fonts could also degrade the performance Jun 16 00:25:55 i actually dont know how to make a release or debug build Jun 16 00:26:03 i just use a boolean to turn off messages Jun 16 00:26:28 MDijkstra my last app worked great on HTC ONE X, using same skeleton, just less web views and no fancy transditions Jun 16 00:26:37 release builds are signed with a release key, exported through the android menu in the project explorer context menu Jun 16 00:26:53 idid export a signed apk is that it? Jun 16 00:26:58 yes Jun 16 00:27:08 ah ok so the one they tested isthat Jun 16 00:27:22 you really need to get hold of actual bugreports following the networking (or hwatever) failures Jun 16 00:27:26 my networkign clas is nothignspecial just http calls Jun 16 00:27:55 it will fail in the same way on the emulator Jun 16 00:28:10 ctate i think i failed as i had oen big catch, but we came to the conslusion in here that the issue was networking onUIexception orsome sort Jun 16 00:29:03 ineachactivity when it needs some data i do something like Jun 16 00:29:04 http://pastebin.com/1NaSSanT Jun 16 00:29:06 gaz`: I don't think the transitions are the problem Jun 16 00:29:26 gaz`: hard to say what is, and the performance is not that crappy Jun 16 00:29:33 thats nice Jun 16 00:29:38 try racecards Jun 16 00:29:43 then click the star in top right Jun 16 00:30:03 that is a lazy loading list, works beautiful on n, but on my mates ht one x it nearly had a heart attack Jun 16 00:30:09 "racing" Jun 16 00:30:16 select a race Jun 16 00:30:26 hit starin top right Jun 16 00:30:30 hit "add" Jun 16 00:30:40 here it zooms down a nice list with images Jun 16 00:30:45 on his it just borked Jun 16 00:30:55 scrollign wasnt respomding at all Jun 16 00:31:43 one thing I would add, though Jun 16 00:32:01 is some kind of glow to indicate that the crown at the top is a button Jun 16 00:32:11 yeh Jun 16 00:32:16 it does have a glow actually Jun 16 00:32:19 but i know what u mean Jun 16 00:32:38 theres a hitn when u load the app Jun 16 00:32:41 explaining that Jun 16 00:32:46 altho imho there soreto be explained Jun 16 00:32:51 u canswipe left and right n many things Jun 16 00:32:54 yet no indication othis Jun 16 00:33:21 im atthatstage wher ei wantit outand i no longer care, so long as the video looks good for my portfolio Jun 16 00:33:30 sorry i cant type my space bar is wrecked Jun 16 00:33:31 the problem is not obvious, you need to get a stack trace by running it in the emulator Jun 16 00:33:31 oh, the racecards stuff is pretty slow, though Jun 16 00:33:44 How can you track a ScrollView itself, even if there are other views on top of it. I have a ScrollView with a bunch of buttons in it. I have a listener on that scrollview, but it only gets called when the scrollview itself is touched. I want it to also get called if ANYTHING inside that scrollview is touched. I can't count on my user touching inbetween the buttons lol Jun 16 00:33:45 and just crashed the app Jun 16 00:33:47 scrolling or downloading MDijkstra? Jun 16 00:33:52 fuuuuucccc Jun 16 00:34:16 once I start scrolling down it slows to a crawl Jun 16 00:34:18 wongk stack trace of what Jun 16 00:34:18 then crashes Jun 16 00:34:24 I could have a look in logcat Jun 16 00:34:30 the networking issues on ICS Jun 16 00:34:34 MDijkstra weird doesnt crash here Jun 16 00:34:45 wongk good call yes i added stack traces Jun 16 00:34:51 buti need a device Jun 16 00:35:03 why can't you use the emulator? Jun 16 00:35:05 i thnik my tablet will have to do Jun 16 00:35:11 them emus are beyond unusable Jun 16 00:35:33 but yeh as a last resort Jun 16 00:35:33 interesting Jun 16 00:35:37 ill tinker tomorow Jun 16 00:35:54 i meanthey arent as bad as bb emus Jun 16 00:36:00 'but compared toj2me emus they suck Jun 16 00:36:04 its just the speed Jun 16 00:36:15 takes 2 mins to deploy Jun 16 00:36:28 gaz`: I think I know what's wrong Jun 16 00:36:33 at the bestof times eclipse is shite Jun 16 00:36:34 as long as I scroll slowly it's fine Jun 16 00:36:36 yeh MDijkstra?? Jun 16 00:36:50 but I guess you're firing off a http request for each row Jun 16 00:36:57 no Jun 16 00:37:04 ONLY in add favourites Jun 16 00:37:08 the rest is done up front Jun 16 00:37:18 well, yeah Jun 16 00:37:20 unless ur in add faves Jun 16 00:37:23 that's what I meant Jun 16 00:37:31 and that was a beautiful exampel thatworks great on my n1 Jun 16 00:37:40 if you scroll through the list really quickly Jun 16 00:37:47 it'll fire off 243243 requests Jun 16 00:37:53 yeh Jun 16 00:37:57 itll make a threa Jun 16 00:37:59 d Jun 16 00:38:02 and send off Jun 16 00:38:09 which is perfeclty fine on n1 Jun 16 00:38:23 maybe i need a better lazy loading example Jun 16 00:38:46 i had hoped n1 would be a joke comparitively Jun 16 00:38:49 nowadays Jun 16 00:38:52 rather than still better Jun 16 00:39:17 well, not better, different in the sense that it doesn't trigger this edge case Jun 16 00:39:32 but firing off 100 concurrent http requests is still not a good idea regardless Jun 16 00:39:49 how else does lazy loading work Jun 16 00:40:09 i want to 100% lazy load my entire app next time Jun 16 00:40:14 none ofthis progress bar shit Jun 16 00:40:14 you either load per block (ie, per match) Jun 16 00:41:02 or you have some kind of system where you only start queing the actual http requests after the user stops scrolling Jun 16 00:41:08 instead of while he is Jun 16 00:41:08 i thught the whole point was for each row grab image display when back Jun 16 00:41:31 ios seems ti have this down Jun 16 00:41:35 its all auto Jun 16 00:42:55 woah, so Spinner doesn't have built in support for multiple selection? Jun 16 00:42:56 I used to have these exact same problems in the past on iOS Jun 16 00:43:06 ok soi make it work on higher os, and it might work better Jun 16 00:43:18 Hello can I use my pgp private key as my key signer for android apps? Jun 16 00:43:26 oh i dont know ios im going off what theircoder tells me Jun 16 00:44:46 gaz`: also, you're doing a lot of recursive calls Jun 16 00:44:49 looking at logcat Jun 16 00:45:12 ithink only when an activity pauses Jun 16 00:45:28 i recursively remove bitmspd from views Jun 16 00:45:30 and recycle them Jun 16 00:45:43 bitmaps Jun 16 00:46:08 anything to avoid out of memory Jun 16 00:46:17 whichall my apps do if i play long enough with them Jun 16 00:46:26 06-16 02:41:30.414: E/AndroidRuntime(8063): java.lang.RuntimeException: Unable to start activity ComponentInfo{royalascot.app/tabhostactvities.RaceCardsAndResultsTabHostActivity}: java.lang.NullPointerException Jun 16 00:46:32 even if it takes an hour itll happen Jun 16 00:46:45 is what crashes the racecards view Jun 16 00:46:56 weeeeiird Jun 16 00:47:01 doesnt give a line thatsucks Jun 16 00:47:10 yeh i reckon im screwed Jun 16 00:47:31 gaz`: and the activity pause times out because of the large bitmap removal process Jun 16 00:47:40 ohhhh Jun 16 00:47:55 removing bitmaps is crashing it? Jun 16 00:47:58 or justslowing it? Jun 16 00:48:23 MDijkstra: it doesn't log the reason? Jun 16 00:48:28 (it should...) Jun 16 00:48:29 http://blog.chrisblunt.com/android-spinner-like-ui-for-selecting-multiple-options/ <-- woops, forgot about those pesky orientation changes! Jun 16 00:48:57 can anyone help me with this real quick: http://forum.xda-developers.com/showthread.php?t=1711388 Jun 16 00:49:12 any catch should have a system out then a stack trace Jun 16 00:49:28 gaz`: removing bitmaps is causing the pause to timeout, causing android to remove the activity completely Jun 16 00:49:34 i havent been given the time to test and stablise it Jun 16 00:49:53 let me find the full log Jun 16 00:49:53 ohh Jun 16 00:49:59 so maybe i just dont do that Jun 16 00:50:04 i figued it helped memory wise Jun 16 00:50:24 06-16 02:46:30.906: E/AndroidRuntime(8142): at royalascot.app.activities.HomeScreenActivity.onResume(HomeScreenActivity.java:1144) Jun 16 00:50:30 is where the NPE happens Jun 16 00:50:39 err, no Jun 16 00:51:04 somewher ein onresume Jun 16 00:51:20 06-16 02:46:30.906: E/AndroidRuntime(8142): at royalascot.app.activities.HomeScreenActivity.moveToNewActivity(HomeScreenActivity.java:970) Jun 16 00:51:35 personally idlike a week of playingwith the app before i claim its stable, however i get hours only Jun 16 00:51:37 I'm guessing you're trying to get info for a new activity that has not loaded yet Jun 16 00:51:41 brooksyx: stringText += '\n'; ? Jun 16 00:51:48 I have a linearLayout that is a bunch of buttons in it. That linearlayout has a onTouchListener on it, but if I press one of the buttons it doesn't activate my ontouchlistener. Is there any way to ignore the views for this specific listener? Jun 16 00:52:01 brooksyx: PS, your code won't run on the newest versions of android Jun 16 00:52:16 MDijkstra actually thatsjust some gui component thats still null, added that today :-x Jun 16 00:52:27 wongk-home: I just need to add that line? Jun 16 00:52:53 brooksyx: that's what you want, right, newlines insert between each line being read? Jun 16 00:52:58 wongk-home: why not? it runs just fine on my cm9 epic 4g touch Jun 16 00:53:02 yeah new lines Jun 16 00:53:13 brooksyx: you're doing network accesses from the main thread. that's Bad™. Jun 16 00:53:26 thats not the main thread Jun 16 00:53:27 istilldont get that Jun 16 00:53:27 (and modern Android versions will complain about it) Jun 16 00:53:29 yes ti is Jun 16 00:53:30 why is it so bad Jun 16 00:53:35 brooksyx: then you have your android:targetSdkVersion is below 10 Jun 16 00:53:35 onCreate() is called from the main thread. Jun 16 00:53:36 err yes it iis Jun 16 00:53:39 gaz`: there's another NPE in 06-16 02:41:30.414: E/AndroidRuntime(8063): at tabhostactvities.RaceCardsAndResultsTabHostActivity.onCreateX(RaceCardsAndResultsTabHostActivity.java:412) Jun 16 00:53:45 i want my app to pause n wait, i send off a thread to do dialog and i wait Jun 16 00:53:50 gaz`: because then you're blocking the UI thread for unbounded periods of time Jun 16 00:53:54 gaz`: nooooo Jun 16 00:54:01 whys that bad Jun 16 00:54:03 you can't do UI stuff from background threads Jun 16 00:54:05 gaz`: no, you don't want that Jun 16 00:54:07 i have a dialog up tellign people its ok Jun 16 00:54:10 because then when the person tries to interact wiht your app *nothing happens* Jun 16 00:54:11 no visuals stutters Jun 16 00:54:19 they cant theyre aiting for the dialog to vanish Jun 16 00:54:20 and 5 seconds later the user is told that your app is unresponsive and do they want to kill it? Jun 16 00:54:23 *waiting Jun 16 00:54:24 no Jun 16 00:54:28 that doesnt happen Jun 16 00:54:35 not for dialogs, yes for network activity Jun 16 00:54:35 It can't draw the dialog if you're blocking the ui thread Jun 16 00:54:36 unless im not actually doing networking on ui Jun 16 00:54:43 so i must be doing it right then Jun 16 00:54:44 the UI stuff is not threadsafe Jun 16 00:54:52 meaning you should only interact with it from the main thread Jun 16 00:54:55 you may be getting lucky Jun 16 00:54:59 yeh Jun 16 00:55:05 well i use a thread Jun 16 00:55:10 isnt that it? Jun 16 00:55:14 depends Jun 16 00:55:19 even if ui fires thread its not on ui right Jun 16 00:55:21 have to see your code to tell Jun 16 00:55:23 gaz`: reviewing your code, you do at least seem to have the thread part correct Jun 16 00:55:29 that i could tell Jun 16 00:55:34 well yeh its all stolen Jun 16 00:55:39 from google Jun 16 00:55:46 so most times its ok Jun 16 00:55:47 lol Jun 16 00:55:50 but a bt would be required to verify Jun 16 00:55:52 not from oracle? Jun 16 00:55:54 I kid, I kid Jun 16 00:55:59 only 9 lines of it MDijkstra Jun 16 00:56:18 basically i need 2 more yrs of android coding to get it Jun 16 00:56:26 and that involves painful projects Jun 16 00:56:29 where i just scrape by] Jun 16 00:56:42 i have 10 yrs of j2me tho Jun 16 00:56:48 so i kinda know the score Jun 16 00:56:51 and 16 yrs of java Jun 16 00:56:58 so i kinda feel im doing it semi right Jun 16 00:57:15 thanks wongk-home: worked great. Ill have to look into changing it in the future but it will have to do for the initial release.. Jun 16 00:57:25 and my lastappwas a storming success, this one is built on its skeleton Jun 16 00:57:34 so no idea why its fuckign up Jun 16 00:58:19 wongk a bt? Jun 16 00:58:51 i think google are being dicks Jun 16 00:58:58 and deliberately making old style code not work Jun 16 00:59:08 i meanwhy would a webview stop worknig Jun 16 00:59:12 wtf Jun 16 00:59:32 whydoes the app sing and dance on an old nexus one Jun 16 00:59:40 yet crawl and dissapoint on the latest and greatest phone Jun 16 00:59:57 in the j2me days id say it was the jvm Jun 16 01:00:05 but i dont think so now Jun 16 01:02:37 illlpick thisup tommorow guys Jun 16 01:02:42 bitdrunk now Jun 16 01:02:45 was out to "celebrate Jun 16 01:02:47 " Jun 16 01:02:56 says to maye mate check out my KILLER APP Jun 16 01:03:01 and was embarassed Jun 16 01:03:06 on his phone Jun 16 01:03:30 but this discussion has been mighty mighty useful Jun 16 01:04:27 hmm tried to save log Jun 16 01:04:29 killedm e Jun 16 01:04:57 http://stackoverflow.com/questions/11059940/how-to-make-a-layout-listener-ignore-views-on-top-of-it-android Jun 16 01:05:41 T-Dub|DlolPics howdu keep track of ur apps iused to use google analytics but the app is gone Jun 16 01:06:01 Was the a copy and paste or are you asking me? Jun 16 01:06:06 gaz1^ Jun 16 01:06:09 lol imjust being a git Jun 16 01:06:16 i remember u asked that for like 2 days Jun 16 01:06:17 Gotcha. I seem to get ignored now days lol. Jun 16 01:06:21 :-) Jun 16 01:06:23 Yeah I still want to know but gave up. Jun 16 01:06:29 looooll Jun 16 01:06:32 iwant to to Jun 16 01:06:51 I have no idea why the app got removed :( Jun 16 01:06:53 hah, so android.R.layout.simple_list_item_multiple_choice draws check boxes instead of radio buttons, but pressing still dismisses the dropdown Jun 16 01:07:06 i was thinkignof making anapp that scans all the stores andsums it all upgraphicallyfor you, got no idea ho tho :) Jun 16 01:07:28 i have an appon mikandi with over 100k dls Jun 16 01:07:35 isnt it a shame my best app is porn Jun 16 01:07:45 got a 90k app on google plus tho Jun 16 01:07:52 ifucombine the revisions etc Jun 16 01:08:42 What app store is your porn app on? I was thinking of making one too :P Jun 16 01:08:52 Mikandi.com Jun 16 01:08:57 waybetter than google play Jun 16 01:09:09 most dls are better than google play Jun 16 01:09:10 imho Jun 16 01:09:22 even obscure random stores im doing better Jun 16 01:09:30 Does admob allow adult apps haha? Jun 16 01:09:34 google play blows basically Jun 16 01:09:41 i think so Jun 16 01:09:52 im thinkingof not targeting mobile at all Jun 16 01:09:56 and just making a pc game Jun 16 01:10:24 "Nokia credit now labeled junk by all three major credit-rating agencies" eya, Elop is in big trouble Jun 16 01:10:51 for 2 main reasons, icant see android allowing me enough ram for what iwant, and 2 touchscreen controls are so awful the depth of control i want will be too tedious Jun 16 01:11:14 one building in my game is like 6000 tiles Jun 16 01:11:25 the game will just be constantly loading if ido it in android Jun 16 01:11:31 :-x Jun 16 01:13:00 gaz`: i'm going to guess, you don't know what the hell you are doing :) Jun 16 01:13:09 guess away Jun 16 01:13:18 but id like to hear your theories Jun 16 01:13:31 i been coding games since i was 9 Jun 16 01:13:48 my theory is , that its 6:13 pm and almost time to go running Jun 16 01:13:51 and for your reference her eis what i mean, theres tons of tiles Jun 16 01:13:53 http://www.youtube.com/watch?v=OhByEk5SDZ8 Jun 16 01:14:06 would it even fit into the ram without constant loading Jun 16 01:14:27 http://www.youtube.com/watch?v=-rcwOUMSbKE this oneis more zoomed in atfer the intro but u get the idea Jun 16 01:14:48 well, large heap Jun 16 01:14:52 that's what it's for Jun 16 01:14:59 too large basically right Jun 16 01:15:04 oh thats a new thing yeh Jun 16 01:15:16 yeh these game smust need tons Jun 16 01:15:57 i want to finish this then port to android Jun 16 01:16:02 largeHeap is API 11+ Jun 16 01:16:05 the poirting is not hard if i can handle the memory somehow Jun 16 01:16:25 i just dont want PLEASE WAIT every footstep Jun 16 01:17:29 i think by the time im finished there will be some ridiculous android device that cando it easily anyway Jun 16 01:17:42 protip: don't keep reallocating memory Jun 16 01:17:51 i have to work for 6 months to payfor the artwork for a few months anyway Jun 16 01:17:58 i been designign thisgame since 1996 Jun 16 01:18:00 LOOOL Jun 16 01:18:11 thats how tedious it is goign alone folks Jun 16 01:18:27 pay for each pixel Jun 16 01:18:36 ill doen this game when im 65 Jun 16 01:18:42 and no one will like or care :) Jun 16 01:19:15 but me, i need to play it Jun 16 01:19:22 its a game no one made Jun 16 01:19:27 and itll bedeep as hell Jun 16 01:19:47 and if usee the gfx theyre awesome, almost worth every penny Jun 16 01:19:51 to bankrupt myself Jun 16 01:20:39 i actually won £25k to finish it but they disqualified me since half my team is in taiwan Jun 16 01:20:58 $45K US and it could bedone Jun 16 01:21:31 ctate - good tip but each tile is unique mostly so i have to Jun 16 01:21:43 or i swap old tile for new? Jun 16 01:21:54 idontthink even the best phone could handle these tiles Jun 16 01:22:15 google need to pay me to finish and make it android exclusive ;) Jun 16 01:22:42 almost worked for google 3x Jun 16 01:22:52 once aas an android evangaliste Jun 16 01:22:55 what a job Jun 16 01:24:09 anyone like the game Jun 16 01:24:10 :p Jun 16 01:24:39 w t f … i barely understand this, but it really stinks http://scripting.com/stories/2012/06/15/theTechPressIsOutToLunch.html Jun 16 01:26:02 planwas to make for intel ultra books but they turned down funding also Jun 16 01:26:25 ultra books? lol Jun 16 01:26:41 nobody seems to be able to do that except apple at the moment Jun 16 01:26:44 shite hot laptops Jun 16 01:26:52 i cant use os x Jun 16 01:26:55 its filth Jun 16 01:27:10 put linux or macbook :) Jun 16 01:27:18 linux blows Jun 16 01:27:30 ok we're running out of non - blowing operating systems Jun 16 01:27:40 im an AmigaOS man Jun 16 01:27:43 :-x Jun 16 01:27:49 pureand simple Jun 16 01:27:50 oh, that explains EVERYTHING Jun 16 01:27:52 only OS for me Jun 16 01:28:01 hahah Jun 16 01:28:06 u meet us now and again Jun 16 01:28:14 if u dig deep into the bottom of the OS barrel Jun 16 01:28:45 freak Jun 16 01:29:06 you all know AmigaOS is supreme Jun 16 01:29:09 so why deny it Jun 16 01:29:29 BeOS Jun 16 01:29:36 amiga are releasing a laptop this year!! Jun 16 01:29:43 yeh cant deny BeOS Jun 16 01:29:46 damn fine OS Jun 16 01:29:55 gaz`: i'm sure it will be a hit :) Jun 16 01:30:00 lol Jun 16 01:30:02 ill have 2 Jun 16 01:30:04 for sure Jun 16 01:30:06 all 2 Jun 16 01:30:14 out of 2 ever made Jun 16 01:30:14 haha Jun 16 01:30:30 nah i thnk theres around 3000 active amiga user fanatics out there Jun 16 01:30:39 sostill a penny to be made Jun 16 01:30:53 yeah but 2900 are probably dead by now Jun 16 01:31:00 which leaves you and 99 others Jun 16 01:31:05 3000x500us=1500000 us Jun 16 01:31:05 anyone know if its possible to collapse the list of calls into single entries in the dialer app in ICS? Jun 16 01:31:44 seriously you travel the IT scene we are everywhere Jun 16 01:31:54 i worked in 9 or 10 games and software companies Jun 16 01:32:11 now and again theyre there, one games company i joined all the passwords were amiga references Jun 16 01:32:32 there really is no other machine Jun 16 01:32:38 BeBox. Jun 16 01:32:50 BeOS is dead tho rght Jun 16 01:32:54 or is it in dev? Jun 16 01:32:59 HaikuOS is still actively being developed Jun 16 01:33:04 OH CHRIST Jun 16 01:33:09 whoops Jun 16 01:33:11 are u joking Jun 16 01:33:13 that toy! Jun 16 01:33:14 tnzr: can you elaborate more on what you wanna do? Jun 16 01:33:32 unless its not a toy no longer? Jun 16 01:33:34 I haev a BeBox and several Amiga3000UXs, I prefer the bebox. Jun 16 01:33:37 *have Jun 16 01:33:48 wowza Jun 16 01:33:51 nice one Jun 16 01:34:00 well we all know BeOS is son of amiag os Jun 16 01:34:02 amigaos Jun 16 01:34:16 what u running on the a3k Jun 16 01:34:20 3.1 yeh? Jun 16 01:34:28 same here on my 1200 Jun 16 01:34:34 I think it's workbench 3.2, actually Jun 16 01:34:37 68060/50 + 603/240PPC Jun 16 01:34:41 doubt it Jun 16 01:34:45 dont think that even existed Jun 16 01:35:11 It's been a while, I'm probably misremembering. I think they're 68030's, though. Jun 16 01:35:14 publicly f course Jun 16 01:35:18 yeh 3.1 Jun 16 01:35:23 nice one Jun 16 01:35:48 f2prateek: basically i can see many of the same people in my recent calls list, but I'd like the same person to be collapsed into one entry (that I can expand if I want to see the call history on that person) Jun 16 01:35:48 is your BeBox better because it has more grunt or? Jun 16 01:36:00 The BeBox is a dual ppc/604e Jun 16 01:36:06 No, it just does stuff nothing else does Jun 16 01:36:09 Even still Jun 16 01:36:13 lol @ leeds for popping up to say frak and thats it Jun 16 01:36:25 hey, I'm having my breakfast! Jun 16 01:36:30 flameshadow well that will shite on your a3ks speedwise unless they have ppc Jun 16 01:36:46 flameshadow what proggies do u liek in particular Jun 16 01:36:50 gaz`: FYI, that's what comes after sleep, not after beer :P Jun 16 01:37:10 For either device? I have no current likes. Jun 16 01:37:12 i agree tho many OS have thigns not yet replicated, even OPUS on PC blows, my fave amiga program is diskmaster nothing has come close Jun 16 01:37:37 Leeds im stilldrinkign tsing tao after celebrating my "release" and realising it fkin sucks on my mates htc one x Jun 16 01:37:48 I used to use a bunch of genlock stuff on the Amiga to do video stuff, so perhaps that. Jun 16 01:37:50 tnzr: i think its doable, wasnt it a feature in gingerbread, or cyanognemod or something? i've defeinitely seen that before. Jun 16 01:38:03 breakfast in front of IRC Leeds youre geekier than i thought, mind u i do the exactsame Jun 16 01:38:20 tnzr: but i think it would be have to doen in source Jun 16 01:38:25 "A third of young adults in the UK 'don't know bacon comes from a pig' Jun 16 01:38:25 They might spread it on toast every morning – but if you asked 16- to 23-year-olds where butter comes from, many don’t have a clue." Jun 16 01:38:31 is the UK just fucking stupid ? Jun 16 01:38:47 yes Jun 16 01:38:55 where ri gre up you got bullied for success Jun 16 01:39:11 i once hande din homework on a coputer in 1992 and i had to take a beating for it after school Jun 16 01:39:18 sorry for my typing no idea whats going on Jun 16 01:39:34 i came out the school and got jumped expressly for handing in homework printed out Jun 16 01:39:47 UK is full of complete retards Jun 16 01:40:00 Stephen Fry balances them all out. Jun 16 01:40:10 i also got attacked for saying "impailed" once Jun 16 01:40:13 in an english class Jun 16 01:40:23 yes stephen fry does indeed do that Jun 16 01:40:27 and Leeds! Jun 16 01:40:57 thing is uk is usually london, go there and its liek trying to converse with children Jun 16 01:41:30 my city is worse tho, i honestly think its got the lowest IQ in the world Jun 16 01:43:00 UK pound slips everyday too, and everyone is lazy- we are doomed Jun 16 01:43:43 i used to ealk around like a king in taiwan on a UK wage, no im feeble Jun 16 01:43:49 now* Jun 16 01:44:04 £400/dayfor 10 months in taiwan, i was one of the richest peoplearound Jun 16 01:44:09 in 2006 Jun 16 01:44:15 now look at me, Jun 16 01:44:17 Did you have minions? Jun 16 01:44:24 * gaz` points to himself Jun 16 01:44:36 i didi employed 6 coders from taiwan to do my work Jun 16 01:44:49 and their pay was pitiful, easily afforded it Jun 16 01:44:56 and i paid them 50% of the going rate Jun 16 01:45:02 50% more than the going rate* Jun 16 01:45:32 biggest complaint? NO office to go to!!!! Jun 16 01:45:34 LOOOL Jun 16 01:45:43 which isthe point of my existance, not going to an office Jun 16 01:45:47 i was sickened to the core Jun 16 01:46:10 oh u WANT office politics? u want meetings about meetings? u want dental plans, FFS. Jun 16 01:46:24 Meetings are the worst. Jun 16 01:46:44 code reviews with a hangover Jun 16 01:46:47 need i say more Jun 16 01:47:27 i was on top the world when i wrote that code mate, but right now im sick to the guts Jun 16 01:47:33 so leave me alone! Jun 16 01:47:53 Fair enough. Jun 16 01:48:01 flameshadow im guessing ur english Jun 16 01:48:15 Heh. Why would you guess that? Jun 16 01:48:33 agreeableness to my obscurity, ownership of amigas, use of the lingo Jun 16 01:48:58 I'm not, but I'm an anglophile. Jun 16 01:48:59 oh and you havent started saying things liek gaz go get a book about beginners coding and come back when ur 13 Jun 16 01:49:13 aha Jun 16 01:49:22 If you were handing in homework in 1992, you're older than 13 Jun 16 01:49:28 hehe Jun 16 01:49:29 lol Jun 16 01:49:31 32 last sat Jun 16 01:49:34 that is funny Jun 16 01:49:43 1992... that was a long time ago Jun 16 01:49:49 no jocke Jun 16 01:49:50 but people here love to tell u u suck at times Jun 16 01:49:51 :) Jun 16 01:49:53 joke Jun 16 01:50:08 It was a good year. Moby came onto the scene, Cool World came out. Jun 16 01:50:08 not as bad as #java on dalnet Jun 16 01:50:14 Well gaz` it is the nature of freenode I find Jun 16 01:50:20 hehe Jun 16 01:50:26 dalnet is MUCH worse Jun 16 01:50:34 hehe Jun 16 01:50:37 gaz`: to be fair, it is a reasoned analysis based on experience Jun 16 01:50:43 yeh yeh yeh Jun 16 01:50:47 :P Jun 16 01:50:57 but where else are you going to find live help? Jun 16 01:50:59 i dnot speak liek you haughty taughty coders at times Jun 16 01:51:04 but i am one Jun 16 01:51:05 :p Jun 16 01:51:10 I am 52 and I still get that all the time. Jun 16 01:51:15 hahaha Jun 16 01:51:19 fuck man Jun 16 01:51:23 i know it Jun 16 01:51:38 gaz`: i think you found one of your 99 amiga fans still alive today ! Jun 16 01:51:40 oh yeh without htis channel id be ruined Jun 16 01:51:43 ido love it Jun 16 01:51:43 And demos. 1992 would have been at the height of Triton. Unreal and Crystal Dream 2. Jun 16 01:51:47 g00s lol Jun 16 01:52:14 flameshadow haha amiga g33k! u seen enigma by phenomena - thats the thing that turned my head in the amiga direction Jun 16 01:52:20 years ago I had one kid on another network say "Golly, I did not know people your age use computers" Jun 16 01:52:34 I said "Yeah I traded up from my abacus" Jun 16 01:52:39 Shaba1 lol it will happen to the best of us Jun 16 01:52:43 lol Jun 16 01:52:48 genius Jun 16 01:53:09 i dowonder when im 65 will my son if i have one laugh out loud at my lameness, Jun 16 01:53:17 on computers i mean :) Jun 16 01:53:29 i am worried about ageism. i hear you generally only see young people at google / fb / etc Jun 16 01:53:32 i look at my dad and i think jesus dad u lost it, and he taught me Jun 16 01:53:58 c0der til i di3! is relevant here lol Jun 16 01:54:15 yeh my gf say to me earlier we got to go on holiday while im still young enough to wear a bikini in public! Jun 16 01:54:22 im like your thirty fucking 2 Jun 16 01:54:48 apologies for the language.. :-/ Jun 16 01:55:03 Tell her, "If you keep that up, when you turn 40 I'll trade you in for 2x twenty year-olds" Jun 16 01:55:10 hahahaha Jun 16 01:55:43 sucks eh, leave school go to uni, all young etc, sudedenly you hit 30 and you realise ur getting old Jun 16 01:55:52 then its just boom 40,50,60 Jun 16 01:56:01 before u know it your as old as Leeds Jun 16 01:56:19 which is a terrible thing :( Jun 16 01:56:29 i dont even know ur age Jun 16 01:56:34 30? Jun 16 01:56:43 a very young looking handsome man Jun 16 01:56:51 consumes pints like no bodies business Jun 16 01:56:53 http://developer.sonymobile.com/wp/smartwatch-developer-campaign/ Jun 16 01:56:56 and a quick kebab on the way home Jun 16 01:57:01 35 mate - 36 soon Jun 16 01:57:03 basically a healthy man Jun 16 01:57:07 hahah Jun 16 01:57:11 genius Jun 16 01:57:15 thats why ur so smart Jun 16 01:57:34 im getting one of these watches even tho theyre utterly pointless. Jun 16 01:57:45 OH Jun 16 01:57:49 make app == free Jun 16 01:57:50 thanks! Jun 16 01:57:52 iwill Jun 16 01:58:33 still not fixed my playbook app i guess they wont send me a pbook even if ido now Jun 16 02:03:04 gaz`: seems like it should be easy to make my weather app push notifications to the watch Jun 16 02:03:13 yeh for sure Jun 16 02:03:16 dunno if that would be enough of an app for them to give me one, but it's worth a try Jun 16 02:03:21 does urs trak quakes? Jun 16 02:03:24 been so many this week Jun 16 02:03:28 been thinkign f a quake app Jun 16 02:03:37 Leeds reckon so Jun 16 02:03:45 i will make *something* not sure yet what Jun 16 02:04:15 oympics results to the watch...? Jun 16 02:04:26 Fires and looting? Jun 16 02:04:29 worldcup app plays a vid each tiem a goal is scored? Jun 16 02:04:31 blah blah Jun 16 02:04:47 torchie knows all about that flameshadow Jun 16 02:05:11 Will.i.am sightings. Jun 16 02:05:32 seems like a msart watch iscool but pointless Jun 16 02:05:38 backup by a phone makes it suck Jun 16 02:05:39 nah, it's government weather warnings - typhoons, rain, flooding, wind, extra hot/cold, etc. Jun 16 02:05:45 aha Jun 16 02:05:55 thats cool how many dls now Jun 16 02:06:32 useen piccollage? out now, i deved itfor twn company Jun 16 02:06:50 its got a deal with jap carrier kdda Jun 16 02:07:48 being the goon that i am i take no % Jun 16 02:09:15 Jason Hsu Jun 16 02:09:19 anyone know him Jun 16 02:11:08 my cat just nodded, said he hooked her up with some really good weed Jun 16 02:11:54 haaaaaaaahaaaa Jun 16 02:12:06 urkat rawkzzzz Jun 16 02:12:14 I follow him on G+... Jun 16 02:12:20 knew it! Jun 16 02:12:37 did uget the watch thingfrom him Jun 16 02:13:42 yup Jun 16 02:13:44 so ok, best PAID app (not game, app)in the play store off the top of your head.. anyone feel free to say the first one that pops into your head Jun 16 02:13:52 knew it Jun 16 02:14:04 i know him in reality Jun 16 02:14:12 hes big into da droid scene Jun 16 02:14:23 taiwanese abc Jun 16 02:14:37 umm wheres my water? game. Jun 16 02:14:41 th3g1z-away do we have to play this game angry birds Jun 16 02:14:43 its only app I paid for. Jun 16 02:14:49 oh sorryPAID Jun 16 02:14:52 no idea Jun 16 02:14:53 lol Jun 16 02:14:56 cant buy in this country Jun 16 02:15:01 paid app, and not games Jun 16 02:15:02 heh Jun 16 02:15:06 last app i bought before they stopped me was that gamestory app Jun 16 02:15:19 so Jun 16 02:15:19 ahh ya i heard that is really cool Jun 16 02:15:20 z Jun 16 02:15:21 if you love puzzles you will like picross Jun 16 02:15:23 imdrunk Jun 16 02:15:36 <`z> what, gaz` Jun 16 02:15:39 the gamestory thing teaches you to make games right? Jun 16 02:15:43 <`z> >:| Jun 16 02:15:43 heard it was good Jun 16 02:15:50 z i didnt mean u Jun 16 02:15:54 go backto sleep!!! Jun 16 02:15:57 picross Jun 16 02:15:58 hmm Jun 16 02:16:01 <`z> go back to sleep? Jun 16 02:16:02 i will check it out Jun 16 02:16:08 <`z> it's noon Jun 16 02:16:13 concerete breaker is good too Jun 16 02:16:22 th3g1z-away no its a ridiuclously basic lame game dev studio sim, it sucks, but its semi cool if u in the industyr AND u liek pixel art Jun 16 02:16:24 I like newsrob - for a paid non-game app Jun 16 02:16:33 block ads using lbe guard and youre golden Jun 16 02:16:33 z as i said go back to bed, noon is early Jun 16 02:16:35 lol Jun 16 02:16:41 <`z> moo Jun 16 02:16:43 gaz`: you know the same company has released about 30 games using the same engine? Jun 16 02:16:43 <`z> how Jun 16 02:16:57 <`z> well actualy Jun 16 02:16:59 <`z> actually* Jun 16 02:17:03 <`z> it's 1017 Jun 16 02:17:11 same here Z Jun 16 02:17:15 and im about to sleep Jun 16 02:17:28 <`z> 1017 in the morning... Jun 16 02:17:32 i have a game onthe store called radiant silver sphere if anyone wantsto get it;) fredemo Jun 16 02:17:32 7 pm here Jun 16 02:17:37 same here Z Jun 16 02:17:39 thas what im talkin about Leeds, newsrob looks nice Jun 16 02:17:41 or 1900 Jun 16 02:17:46 <`z> gaz`, where do you live Jun 16 02:17:48 <`z> hrm Jun 16 02:17:50 z ur in china? Jun 16 02:17:52 taiwan Jun 16 02:17:54 <`z> no Jun 16 02:17:57 <`z> Singapore Jun 16 02:18:01 ahhaaaa Jun 16 02:18:05 th3g1z-away: actually, it doesn't *look* nice... but it works well, mostly :) Jun 16 02:18:06 sinngaaapoore Jun 16 02:18:14 i went to sentosa island once Jun 16 02:18:14 eh, Singapore is mostly Chinese Jun 16 02:18:15 you know what i mean heh Jun 16 02:18:20 <`z> Leeds, yep Jun 16 02:18:22 <`z> about Jun 16 02:18:23 <`z> uh Jun 16 02:18:24 like San Francisco Jun 16 02:18:26 <`z> 70%? Jun 16 02:18:28 i got jumped in singapore Jun 16 02:18:31 <`z> gaz`, how Jun 16 02:18:33 <`z> :o Jun 16 02:18:33 Anyone wish to join the conversation, it's getting crazy and I still need help :P http://stackoverflow.com/questions/11059940/how-to-make-a-layout-listener-ignore-views-on-top-of-it-android Jun 16 02:18:36 car park full of people attacked me Jun 16 02:18:42 most brutal fight of my life Jun 16 02:18:46 <`z> gaz`, well Jun 16 02:18:53 <`z> if the police got wind Jun 16 02:18:58 <`z> they might have been uh Jun 16 02:18:59 eont be going back there! Jun 16 02:19:03 wont* Jun 16 02:19:03 <`z> jailed for around Jun 16 02:19:07 in singapore? Jun 16 02:19:08 <`z> 2 years Jun 16 02:19:08 heh Jun 16 02:19:09 <`z> or so Jun 16 02:19:15 well they all attacked me Jun 16 02:19:21 i messed may of them up Jun 16 02:19:23 many* Jun 16 02:19:26 befoe i had to run Jun 16 02:19:28 dunno popo would help all too much from what i know Jun 16 02:19:28 <`z> mmk Jun 16 02:19:38 hahaha Jun 16 02:19:44 there was lots of singaporian blood and teeth on my kuckles that night i tell ya Jun 16 02:19:47 <`z> it sucks that two of the carriers are phasing out the cheap 12GB mobile plans Jun 16 02:19:56 <`z> gaz`, as you might have known Jun 16 02:19:56 soft buggers Jun 16 02:20:01 <`z> it could have been construction workers Jun 16 02:20:03 letting one geordie chin 20 of em Jun 16 02:20:04 <`z> what did they look like Jun 16 02:20:12 sorta indians and chinese Jun 16 02:20:15 12gb data plans for smartphone? Jun 16 02:20:19 <`z> yes the Jun 16 02:20:21 outside st james power station night club Jun 16 02:20:21 we need some of those in the US Jun 16 02:20:21 <`z> th3g1z-away, Jun 16 02:20:28 LTE? Jun 16 02:20:32 <`z> gaz`, you see Jun 16 02:20:34 <`z> >night club Jun 16 02:20:38 <`z> people get drunkasfuck Jun 16 02:20:39 yeh Jun 16 02:20:43 <`z> construction workers* Jun 16 02:20:47 i must admit i was hammered Jun 16 02:20:54 otherwise id have got into the taxi they advised Jun 16 02:21:00 <`z> most construction workers are bangladeshis/indians/chinese Jun 16 02:21:02 but i decided to face the *crowd* Jun 16 02:21:07 <`z> foreigners Jun 16 02:21:11 bare knuckles and adrenalin flowing Jun 16 02:21:17 of course you were hammered Jun 16 02:21:22 <`z> duh Jun 16 02:21:23 bangladeshi's? heh Jun 16 02:21:27 bengali's isnti t? Jun 16 02:21:29 yay, blame the foreigners! Jun 16 02:21:41 i dont recall what i did to deserve it Jun 16 02:21:46 I think I might go to pool hammered tomorrow Jun 16 02:21:53 gaz`: showed your face, probably Jun 16 02:21:54 <`z> uh Jun 16 02:21:55 <`z> th3g1z-away, no Jun 16 02:21:56 but very little is deserving of a car park of people attackign you, women included Jun 16 02:22:02 lol leeds u twat Jun 16 02:22:02 <`z> yeah Jun 16 02:22:03 <`z> i guess so Jun 16 02:22:04 how about get hammered AT the pool Jun 16 02:22:15 i was kicked in the face by women Jun 16 02:22:20 <`z> th3g1z-away, get hammered in a tiny boat Jun 16 02:22:22 when i wa son the floor Jun 16 02:22:31 Were you dogging at the time? Jun 16 02:22:35 at the pool would be preferable, but they kind of have a rule against it :( Jun 16 02:22:40 hence singapore to me reeks of fear and horror Jun 16 02:22:42 man im so confused in this conversation Jun 16 02:22:42 <`z> flameshadow, he put on too much makeup Jun 16 02:22:46 i was dodginh not dogging Jun 16 02:22:47 <`z> too beautiful Jun 16 02:22:49 <`z> women got mad Jun 16 02:22:51 <`z> kicked him Jun 16 02:22:53 <`z> derpderpdepr Jun 16 02:22:56 i had 5 women with mewhen i left Jun 16 02:22:59 around my arms Jun 16 02:23:06 til i got brutally assaulted Jun 16 02:23:10 Only two of them were actually men? Jun 16 02:23:14 haha Jun 16 02:23:16 hAHAHA Jun 16 02:23:28 i feelsingapore is a terrible place to go now Jun 16 02:23:42 luckily theyre soft as fck on the whole Jun 16 02:23:54 so a jumpingfrom them is like being mauled by lambs Jun 16 02:24:20 <`z> gaz`, >nightclub Jun 16 02:24:25 yes it was Jun 16 02:24:28 ya'll are crazy lol Jun 16 02:24:29 nice club Jun 16 02:24:33 i love it tho Jun 16 02:24:33 <`z> what did you expect Jun 16 02:24:35 tell what i did do Jun 16 02:24:37 i believe about 1/2 of it Jun 16 02:24:41 i tore up the money Jun 16 02:24:44 but im lol'ing Jun 16 02:24:44 it was plastic Jun 16 02:24:48 very novel to me Jun 16 02:24:51 maybe that was it Jun 16 02:24:59 im like PLASTIC MONEY??? Jun 16 02:25:03 can it be ripped!!?!!?!?!? Jun 16 02:25:03 <`z> yeah Jun 16 02:25:04 some very cheap flights to Singapore at the moment... not sure why, and it's a pity the hotels are so expensive Jun 16 02:25:05 <`z> polymer Jun 16 02:25:10 5 mins latter oh yes it can Jun 16 02:25:14 <`z> Leeds, in singapore Jun 16 02:25:16 <`z> it's expensive Jun 16 02:25:22 i think i tore up £200 that night Jun 16 02:25:23 <`z> like branded clothes and bags etc Jun 16 02:25:24 LOL Jun 16 02:25:25 <`z> in the US Jun 16 02:25:26 <`z> it's like Jun 16 02:25:28 <`z> cheap shit Jun 16 02:25:37 Leeds: cheap flights = not many people taking rides there. Jun 16 02:25:44 airplanes is trying to prevent losses Jun 16 02:25:47 got trips to Shenzhen, Ho Chi Minh City and Tokyo (for Nagano and Kyoto) booked for this year Jun 16 02:25:51 beleive it th3g1z-away Jun 16 02:25:56 its my best pub story Jun 16 02:26:08 XXCoder: I actually think it's the opposite - there are lots of flights, so it's competitive Jun 16 02:26:10 how a car pack of singaporians took on a single geordie Jun 16 02:26:11 not always XXCoder, sometimes opposite in my experience anyway, like last minute bookings Jun 16 02:26:18 true yes Jun 16 02:26:18 to pack on a few extra bux Jun 16 02:26:36 airplanes do usually rise price with demend Jun 16 02:26:42 its how i understand these movies Jun 16 02:26:45 people gonna have to take airplanes anyway Jun 16 02:26:47 anyone seen THE RAID? Jun 16 02:26:52 damn that is AWESOME Jun 16 02:27:02 proper singaporian car park action the whole way Jun 16 02:27:12 yes I have seen my raid 5 and yes its awesome. ;) Jun 16 02:27:13 you're all talkin about singapore and taiwan and bengali's and shit Jun 16 02:27:17 The Raid? Jun 16 02:27:19 US film? Jun 16 02:27:28 i think its indonesian Jun 16 02:27:28 or in english anyway? Jun 16 02:27:29 the raid Jun 16 02:27:31 gaz`: only came out here this week, have heard rave things Jun 16 02:27:32 very cery cooo Jun 16 02:27:36 i want a movie to watch Jun 16 02:27:42 go see it Leeds its damn fine Jun 16 02:27:51 true adrenalin rish Jun 16 02:27:53 rush Jun 16 02:27:54 I did see that indian film wuth that robot that gets out of control. so funny Jun 16 02:27:55 thats my scene.. Raves Jun 16 02:28:01 went to the cinema 3 times last week... Dictator, Snow White and Prometheus Jun 16 02:28:14 im not much into clubs (i had a few yr time with clubs) Jun 16 02:28:21 THE RAID--------------> http://www.youtube.com/watch?v=PkULMOFpuCo Jun 16 02:28:39 but raves, psytrance, dub, industrial Jun 16 02:28:42 thats my scene Jun 16 02:29:02 this is no ones scene unless ur Remo unarmed and dangerous Jun 16 02:29:43 Remo? Jun 16 02:29:49 movie Jun 16 02:29:54 rambo? Jun 16 02:29:55 he can dodge bullets Jun 16 02:30:03 no even rambo is shit compared to remo Jun 16 02:30:11 remo runs on wet concreete Jun 16 02:30:20 dodge bullets? Neo Jun 16 02:30:23 matrix! Jun 16 02:30:27 raid actually looks interesting Jun 16 02:30:32 I have a bunch of buttons in a LinearLayout that is nested in a scrollView. I want to make it so when the user isn't currently scrolling, the buttons would go transparent so you can see the background. And when the user begins to interact with the scrollview (like start to scroll) they go back to 255 alpha (100% not transparent). How should I do this? Jun 16 02:30:43 not neo hes a lord Jun 16 02:30:44 i think im gonna try to download the raid Jun 16 02:30:53 a lord of the highest order Jun 16 02:31:03 th3g1z do so!!!!! Jun 16 02:31:13 no its Articture ;) Jun 16 02:32:07 the trailer looked good Jun 16 02:32:10 one more can of beer? Jun 16 02:32:18 trailer isnt good enough ironically Jun 16 02:32:25 i just hate subtitles Jun 16 02:32:30 and i dont understand the language Jun 16 02:32:33 hahahahahaha Jun 16 02:32:38 yehihear ya Jun 16 02:32:46 Hi Jun 16 02:32:47 cause i gotta be sober and shit Jun 16 02:32:47 u get torn a new ball sack for aying that tho Jun 16 02:32:54 to follow along with reading Jun 16 02:32:55 and whatnot Jun 16 02:32:58 yeh Jun 16 02:33:14 its mostly just one guy kicking the living cack out of a trillion men Jun 16 02:33:22 by the end u worship this legend Jun 16 02:33:36 heh nice Jun 16 02:33:39 some words here and there Jun 16 02:33:42 :) Jun 16 02:34:22 i saw that and cabin in the woods in one day, what an epic evening, cabin in the wordsis aweosme too Jun 16 02:34:36 Fast question about Augmented Reality SDK, somebody knows about one example working for this? Jun 16 02:35:24 i havent seen much of it for android yet Jun 16 02:35:37 but on ios word lens app is pretty neat Jun 16 02:35:55 with augmented reality stuff Jun 16 02:37:35 http://www.gizmodo.com.au/2011/10/the-latest-netbook-is-an-amiga/ Jun 16 02:37:35 my new fav android app: soundcloud Jun 16 02:37:49 ok Jun 16 02:39:05 but i need to use augmented reality for a project .. so i can't find any example for this, perhaps it's very experimental for android? Jun 16 02:40:29 You can write little scripts in bc. I did not know that. Jun 16 02:40:38 http://soundcloud.com/prettylights/pretty-lights-the-hot-sh-t-16 Jun 16 02:40:51 thats a sweet mix Jun 16 02:40:58 Leeds http://www.gizmodo.com.au/2011/10/the-latest-netbook-is-an-amiga/ Jun 16 02:41:14 Unlike python, bc has a do-while loop Jun 16 02:41:15 netbooks are also dead :P Jun 16 02:41:23 pffft Jun 16 02:41:45 u telling me you wont buy this! Jun 16 02:57:45 how to make onTouchEvent effect all views not just the "background" **** ENDING LOGGING AT Sat Jun 16 02:59:58 2012