**** BEGIN LOGGING AT Fri Feb 22 02:59:58 2013 Feb 22 03:02:01 myn: I think you java is to close to c# to warrant paying to change the code to c# and deal w/the headache Feb 22 03:02:24 yeah Feb 22 03:02:32 but Java only gets me Android and not iOS Feb 22 03:02:45 the beauty I see with Xamarin/Mono is cross platform Feb 22 03:02:57 well.... it's not really. it wont do all your UI stuff Feb 22 03:05:04 is there a supported way to create a screen lock app that leverages the android framework? I notice that one way of creating a lock screen is to just implement an activity, however that doesn't give me access to some features that are in the system such as emergency dial, secure keystore, disabling the home/back/notification, handling screen lock when phone calls Feb 22 03:05:05 etc. Feb 22 03:05:23 myn: maybe I am old fashion but to me its about like the "template" apps that are starting to show up saying that anyone can make a app by dragging and dropping icons. Someone has to get the business logic down and understand whats occuring behind the window dressing or your in for a bad time. Feb 22 03:05:47 yeah Feb 22 03:06:07 what I think Mono does well is promotes MVVC and that seperation of business logic Feb 22 03:06:19 UI logic in Mono, BL on server Feb 22 03:06:31 unified dev enviornment for multiple platform out Feb 22 03:07:22 but you're adding an extra layer of complexity and as completenewbee said - introduce a whole new set of headaches Feb 22 03:07:52 I have another question. When should I start a new activity? in http://developer.android.com/training/basics/firstapp/starting-activity.html they start a new activity and change the content view. Im not suere if they did it just to show how to start a new one. Feb 22 03:08:08 myn: if all your looking for is universal then why not move to HTML5 or webapp and really get cross platform Feb 22 03:09:16 and everyone can agree we definitely need more of that ^ Feb 22 03:10:17 kenrhads: When to start one is a loaded question. It all depends on what your trying to achieve. The documentation is giving you an overview. Keep working through it. Starting another activity leads you into the next section of "managing the activity lifecycle" Feb 22 03:12:34 Ok Feb 22 03:13:53 kenrhads: An activity could be thought of as a webpage or a game screen. You have the initial screen (activity) which has buttons for scores (another activity), game play (another activity), settings (another activity). Feb 22 03:14:52 then I could say that a vew is an activity right? Sorry activities are confusing for me. Feb 22 03:15:14 kenrhads: a view is part of the layout of your activity Feb 22 03:16:09 kenrhads: your activity is made up of many views generally speaking. All of the objects (Buttons, TextView, FrameLayout) are View(s) at there base. Feb 22 03:17:41 kenrhads: Your activity may have 5 buttons for example. Each button is an extension of a view see: http://developer.android.com/reference/android/widget/Button.html At the top you will see that a Button started life as an Object, then a view, then a textView then a button Feb 22 03:18:06 mmmm I studied Java before. At first I thought that activities were like JFrames. Feb 22 03:19:11 kenrhads: http://developer.android.com/guide/components/activities.html Feb 22 03:19:19 that's a good overview of the concept itself. Feb 22 03:20:26 novie: I was reading that one yesterday but the concept still confusing for me. Feb 22 03:22:33 kenrhads: Activity is a car. You can have many different cars. Each component of the car is a view. The tires, doors, hood etc... are all views. Feb 22 03:23:06 wut Feb 22 03:24:21 g00s: i know... im a tard... it comes natural Feb 22 03:27:54 so in other words, an activity is like a java object that can containg other objects right? Im trying to associate terms with java to understand better. Feb 22 03:29:58 of course everyting is an object at its base :). But yes an Activity is a container if you will. You can put other Views inside your container. Feb 22 03:32:40 kenrhads: Or depending on your language it is a "Form" or GUI interface or "Window" Feb 22 03:32:54 I guess I will try to think of it as a JFrame where I can put buttons Feb 22 03:33:35 ook. I think I got it now. Im reading http://developer.android.com/reference/android/app/Activity.html Feb 22 03:33:36 kenrhads: its a JFrame yes... Feb 22 03:34:10 kenrhads: I think your over-thinking it Feb 22 03:34:18 ohh Feb 22 03:35:33 mmmm so far it is like a JFrame where I can only set the content view once. if I change the content view I get errors if I click on any button. Feb 22 03:36:02 I'll try not to think too much about it lol Feb 22 03:37:25 kenrhads: typically yes. You can change the view by removing your other views, inflating additional views, using a viewflipper the options are up to you. Feb 22 03:38:50 kenrhads: associating the terms with Java might lead to more confusion. Feb 22 03:39:03 kenrhads: as you get further into the learning you will see that you have many different avenues to skin the cat. You can create the views at runtime in code. You can also import the views from fragments. Feb 22 03:39:57 kenrhads: You can have your entire app made up of a single activity which changes or modifies its views. You could also have multiple activities each with their own set of views. Feb 22 03:40:26 completenewbee: a single activity is probably not the greatest way to do it. Feb 22 03:40:39 kenrhads: again all this is up to the developer on his vision of how the app. Feb 22 03:42:12 @novie: dare I say that a lot of apps are single activities. Most of your games are a single activity. I am not sure why you say that. Feb 22 03:42:41 completenewbee: games implement a lot of logic natively. Feb 22 03:42:53 @novie: the trend now seems to be heading to a single activity and using viewflippers or tabs Feb 22 03:42:54 other apps... well, just because a lot do that doesn't make it right. Feb 22 03:43:12 completenewbee: it may appear that way, but that doesn't mean they are single activity. Feb 22 03:43:15 @novie just wondering but why would you say it was wrong Feb 22 03:43:39 completenewbee: the activity is not your entire application. it is a single task within your application. Feb 22 03:43:51 you could have an activity to display a list, an activity to view details. Feb 22 03:44:04 the activity to view details in theory could be fired from outside your app. Feb 22 03:44:20 @novie the activity could very well be your entire application. Feb 22 03:44:25 Android provides a great way for applications to have many entry points into their application. Feb 22 03:44:44 completenewbee: it rarely is a good design choice. Feb 22 03:44:54 outside of very simple applications. Feb 22 03:45:37 @novie thats your opinion and your design Feb 22 03:45:45 @novie its 100% up to the user Feb 22 03:45:52 completenewbee: http://developer.android.com/guide/components/activities.html Feb 22 03:46:01 have a look at the quick overview section to the right Feb 22 03:46:14 @novie ok and... Feb 22 03:46:25 @novie im full aware of an activity Feb 22 03:46:44 yea, it seems that way. Feb 22 03:47:10 @novie this started as a discussion with a new user on activities and applications. Feb 22 03:47:11 you can do things however you want, that doesn't mean it follows the expected design. Feb 22 03:47:41 @novie its up to the designer on how complex he wishes to make his application Feb 22 03:48:03 again. I can write an entire application in a single Java class. Feb 22 03:48:10 completenewbee believe it or not im still learning. so it is still part of the discussion that I started Feb 22 03:48:13 that doesn't mean the code is well structured for going forward. Feb 22 03:48:28 completenewbee: you are missing the point. Feb 22 03:48:46 @novie not really.. you butted into a discussion and changed it to something else Feb 22 03:48:59 @novie i never said you could only have a single activity Feb 22 03:49:08 completenewbee: I never said you did. Feb 22 03:49:09 @novie i said you could make your app with a single activity Feb 22 03:49:24 sure, if it requires a single function Feb 22 03:49:40 if you are trying to use a single activity to manage a dozen fragments that'll get messy pretty quickly. Feb 22 03:50:05 @novie again novie its up to the developer and what he is trying to acheive Feb 22 03:50:18 @novie you dont add activities for every setting for instance Feb 22 03:50:27 setting? Feb 22 03:50:42 @novie you typically have a single activity with multiple settings Feb 22 03:50:48 @novie as an example Feb 22 03:50:58 * novie gives up Feb 22 03:51:39 heh, if you try and fill all your entire non-simple application into a single activity, it's going to be a nightmare for others to work and for maintenance Feb 22 03:52:07 while an activity might have settings, your whole application also has settings, eg font size Feb 22 03:52:08 here's one of many threads on the discussion: https://groups.google.com/forum/?fromgroups=#!topic/android-developers/B56tUpgPe2Y Feb 22 03:52:20 Can I have different activities in one file? Now I think I can just do what I do in Java. usually create a new class for specific functions. Feb 22 03:52:24 oh jesus.. here we go again.... Thanks novie.... I NEVER SAID YOU ONLY HAD ONE ACTIVITY Feb 22 03:52:39 I said its up to the developer and how complex of a task he is trying to acheive Feb 22 03:52:58 completenewbee: chill out Feb 22 03:52:59 kenrhads, how would declare nested activities in your xml? Feb 22 03:53:43 not in the xml but in the .class or .java Im just wondering if that is possible. Feb 22 03:53:51 probably not the best idea. Feb 22 03:54:10 lasserix: you wouldnt. You would have fragments or viewflipper Feb 22 03:54:31 kenrhads, in order to get a link to those activities, you'd have to declare them in your manifest i believe, Feb 22 03:54:56 lasserix thats right. I just forgot lol Feb 22 03:54:59 kenrhads: http://code.google.com/p/iosched Feb 22 03:55:11 newbee: as per what novie was saying earlier: i had 12 or so fragments contained in a single "main" activity and it definatly slowed me down because it did become a bit of a nightmare to maintain Feb 22 03:55:12 that's a good example of a non-trivial app. Feb 22 03:57:46 Im downloading now Feb 22 04:00:56 I usually learn by copying so I'll try to make an app that looks exactly as the one im copying from. Feb 22 04:01:22 any1 have any idea why this wont work in android browsers but work perfect in chrome/ff http://jsfiddle.net/Rrjz4/1/ Feb 22 04:03:24 lasserix: I understand completely what you are saying. Really I do. Novie simply drug into something else entirely. Depending on what your accomplishing it could go any way you choose. The Android camera app for instace. Im not looking at the source this second but 1 activity. Sure it can launch an intent to start the gallery app but the app is mainly one activity Feb 22 04:04:01 the music app on my phone right now. 1 activity Feb 22 04:04:29 and a service? Feb 22 04:04:40 completenewbee: the open source music app? Feb 22 04:04:47 oh we havent started down that path Feb 22 04:05:01 the camera app also isn't exactly just one activity. Feb 22 04:05:10 sure they can have services, other classes extending views etc... Feb 22 04:05:13 so only music plays while the app is current? Feb 22 04:05:14 again up to the developer Feb 22 04:05:20 comical Feb 22 04:05:24 but no Feb 22 04:05:29 completenewbee: i'm looking at the source. Feb 22 04:05:40 i wouldnt use a music player that couldn'tcontinue playing in the background :/ Feb 22 04:05:45 completenewbee: and again... up to the developer is not exactly an answer to the question. Feb 22 04:06:04 lasserix... again were moving the target Feb 22 04:06:18 i never said anything about the sticky service Feb 22 04:06:34 * novie is still wondering what music app is one activity. Feb 22 04:10:49 Guys I dont want you to start a fighting. If I knew I wouldnt have asked. Feb 22 04:11:09 kenrhads: i'm not fighting, don't care enough to. Feb 22 04:11:21 @novie :) Feb 22 04:11:27 just making sure the correct information is mentioned. Feb 22 04:11:58 @novie has to have the last work. incorrectly but the last Feb 22 04:12:13 completenewbee: you never answered what music player? Feb 22 04:12:58 @novie really.. were going back again... any music player. Lets design one real quick Feb 22 04:13:04 completenewbee: what? Feb 22 04:13:11 please just stop Feb 22 04:13:20 @novie our music player needs to list files and play a song right? Feb 22 04:13:34 @novie so how many activities do we need? Feb 22 04:13:42 @novie one for each song? Feb 22 04:13:55 Hey all, if I'm making a service using the bundled eclipse, do I want "New Class" or "New Android Application Project" if that service is just a service and lacks a GUI? Feb 22 04:13:57 completenewbee: https://android.googlesource.com/platform/packages/apps/Music/ Feb 22 04:14:01 have a look. Feb 22 04:14:08 you clearly do not understand Feb 22 04:14:12 I was under the impression that "New Android Application Project" was mostly for with-GUI, given the tutorial and what I saw going through there. Feb 22 04:14:31 Improv: a service is a part of an app Feb 22 04:15:48 completenewbee go ahead and design a music player Feb 22 04:15:55 @novie no novie, sadly I do understand. I made a statement that it was up to the developer on how many activities he wanted to use. He can have an app with a single activity or as many as he needs. You turned it into a pee'ing match Feb 22 04:16:04 let's see a good example :) Feb 22 04:16:06 novie: Hmm. Is New->Class what I want then? Feb 22 04:16:46 completenewbee: you would have multiple. Feb 22 04:17:04 Improv: if you already have the application project created, yes a new class on the app Feb 22 04:17:20 completenewbee: one to list the artists, one for albums, one to play a song... Feb 22 04:17:28 novie: Ok. Still getting used to navigating Eclipse. Apologies for such a basic and boring question. Feb 22 04:17:34 have a look at that music app source there. Feb 22 04:17:39 @novie again up to the developer on how complex he was making it Feb 22 04:17:42 yea im not gettin any keyframe love in the android browser: http://jsfiddle.net/nD8WN/2/ Feb 22 04:17:44 Improv: np. no apology necessary. Feb 22 04:17:59 completenewbee: if that is all you are going to keep saying then just stop. Feb 22 04:18:12 @novie sadly i dont know how else to word it. Feb 22 04:19:04 completenewbee: so then just drop it and spend some time looking at the music app source. Feb 22 04:20:11 mmmm novie he didnt say you have to have only one activity. However he said that you could create an app with only one activity and that it is up to the developer. Feb 22 04:20:19 Lets just drop the topic Feb 22 04:20:32 kenrhads: I mentioned the music app because he specifically said the music app on his phone uses one activity. Feb 22 04:20:59 it could be. we dont know if he created his music app. Feb 22 04:21:05 kenrhads: the io schedule app is a good example of application architecture Feb 22 04:21:55 @novie re-read what I wrote. first part was I am not looking at the source but again 1 activity. Your right though. The built in music player has a few activities. I still stand by its up to the developer and the complexity of what he is acheiving Feb 22 04:21:55 I downleaded the app from playstore. Ill try to look into the source once I learn more about programming in android. Feb 22 04:22:02 i mentioned the camera app too Feb 22 04:22:07 pull the source for that Feb 22 04:22:11 I did Feb 22 04:22:17 there's multiple there too. Feb 22 04:22:18 can anyone url a keyframe animation taht works in android? Feb 22 04:22:41 * novie goes back to workign. Feb 22 04:22:47 also working. Feb 22 04:23:00 @novie yup 2 and a stub from what i quickly browsed Feb 22 04:23:23 @novie is that really an app since were measuring based on how many activities the developer included? Feb 22 04:23:50 novie: I dont really know how to read source code. I dont know where to start so I read files in order unless I need a methop that is in another file. Feb 22 04:24:16 completenewbee: please stop. you do not understand the point and I'm past caring to explain it. Feb 22 04:24:21 new topic. Feb 22 04:25:19 I cant remember who told me to remove the view and use flipper Feb 22 04:25:46 I have seen code for doing it it. Feb 22 04:26:38 but they use viewGroup. I dont have a group of views (well since I have 2 views I guess that I could call them a group maybe) Feb 22 04:28:50 am i dreaming? a. keyframes 100% dont work in android browser, 2. this isnt googleable, 3. noone has any clue Feb 22 04:29:14 acidjazz: yea, looks like no one does here. Feb 22 04:29:20 try one of the mailing lists. Feb 22 04:29:42 i googled stack overflow etc Feb 22 04:29:43 0 Feb 22 04:31:17 acidjazz: yea, not sure where web developers ask questions. Feb 22 04:32:14 Hmm. This is frustrating. Now with that new java class, I am following the example at: https://developer.android.com/guide/components/bound-services.html but LocalBinder isn't resolving as a class in the client. Feb 22 04:32:53 what are the best apps Feb 22 04:32:54 If this were C, I'd just #include the .h files, but I'm not having much luck figuring out the Java equivalent. Feb 22 04:32:55 for iphone that is? Feb 22 04:33:02 zamboni: huh? Feb 22 04:33:14 Improv: import is the java equivalent. Feb 22 04:33:29 novie: But both java files are in the same package. Feb 22 04:33:36 Should each import itself? Feb 22 04:33:56 Improv: can you pastebin the classes? Feb 22 04:33:58 Maybe I'm still making elementary, stupid errors. I think I am. Feb 22 04:34:13 will do Feb 22 04:34:31 I'm more used to writing C or Perl in vim. Feb 22 04:37:00 http://pastebin.com/BvHF1VKs http://pastebin.com/Z0xjMMqP Feb 22 04:37:17 * Improv is feeling temporarily newbish ... sigh Feb 22 04:38:04 and you are saying that it cannot find the classes? Feb 22 04:38:39 It's saying that LocalBinder doesn't resolve to a type, in the code view for Donjon.java Feb 22 04:39:03 It doesn't complain about DonjonService resolving though. Feb 22 04:39:19 Improv: LocalBinder is an inner class Feb 22 04:39:37 I noticed. Feb 22 04:39:48 you'll need to reference it either be DonjonService.LocalBinder Feb 22 04:39:56 or import the class. Feb 22 04:41:46 Adding a "import org.dachte.donjon.DonjonService;" to the client doesn't help Feb 22 04:42:09 import org.dachte.donjon.DonjonService.LocalBinder; Feb 22 04:42:14 is what you would need. Feb 22 04:42:18 Oh Feb 22 04:42:26 or just reference it as DonjonService.LocalBinder in your code. Feb 22 04:42:37 Yeah, you're right. Feb 22 04:42:45 Thanks. I'm still stuck in a C mentality, it seems. Feb 22 04:43:45 Improv: np Feb 22 04:43:55 Apart from doing closures, I'm not used to using inner classes. And I'm not sure Java even has closures. Feb 22 04:44:01 Err Feb 22 04:44:09 Ugh, ok, that was a terrible way to say that. Feb 22 04:44:15 But yeah, I think maybe you know what I mean. Feb 22 04:44:49 (was conflating functions and classes) Feb 22 04:45:10 Anyhow, yeah, things are looking good now. Feb 22 04:45:22 And I hopefully learned a lesson about how import works. Feb 22 04:49:30 brb Feb 22 05:42:19 if i want to access a database internally in my app, and may at some point (but not likely) want to make that data public, and definitely want to sync to a web service now, should i use a content provider for data access or some other method like a data access object or just direct access in certain places? Feb 22 05:42:58 if you want it public, you'll need a contentprovider Feb 22 05:43:20 if not, i probably wouldn't bother Feb 22 05:45:09 Ok, so can I sync to a webservice or allow users to 'share' content to other apps using a share button without a contentprovider? Feb 22 05:45:23 yes Feb 22 05:46:46 cool. Feb 22 05:47:03 now do you know of a tutorial of some kind that I can learn about syncing to a web service? :) Feb 22 06:16:25 i started up eclipse and got this error: "Location of the Android SDK has not been setup in the preferences." How do i fix this?? Feb 22 06:19:47 relipse, eclipse ->>>> preferences ->> android->> browse for android sdk Feb 22 06:21:28 Installed ARM EABI v7a System Image, Android API 17, revision 199%) Feb 22 06:21:50 relipse, I suppose this is because of update Feb 22 06:22:01 had the same problem when started eclipse Feb 22 06:25:07 This Android SDK requires Android Developer Toolkit version 21.1.0 or above. Current version is 21.0.0.2012-10-31-0-17. Please update ADT to the latest version. Feb 22 06:25:10 so how do i fix it Feb 22 06:25:22 where do i get the full android Feb 22 06:25:29 developer.android.com Feb 22 06:25:32 get adt bundle Feb 22 06:26:19 I did "android update sdk --no-ui" Feb 22 06:26:22 but have that problem Feb 22 06:28:36 google just released an update or something ? Feb 22 06:28:41 that breaks sdk ? Feb 22 06:29:50 looks like that Feb 22 06:30:14 I went to eclipse help, install from "https://dl-ssl.google.com/android/eclipse/" [Add] Feb 22 06:30:59 waiting for result Feb 22 06:37:26 start here --> source.android.com/source/initializing.html Feb 22 06:40:19 squ: wow, something is pretty busted. i started eclipse, and it said there was a new ADT. i got it, and eclipse would not restart Feb 22 06:41:07 g00s, that is not all Feb 22 06:41:29 IntelliJ seems to be working. Of course, it's always working. Feb 22 06:41:38 actually now i cant start eclipse at all Feb 22 06:41:46 g00s: thank god for timeMachine eh ? Feb 22 06:42:20 uninstall adt and eclipse and start again Feb 22 06:42:43 StingRay_: void_pointer i'll try to use intellij from this point on maybe. learning by immersion Feb 22 06:42:53 I had weird shit going on when an eclipse install conflicted with the ADT one Feb 22 06:43:17 g00s, http://imageupload.co.uk/files/wr83tpyg17tvvofwg2h5.png Feb 22 06:43:25 problems keep coming Feb 22 06:43:47 squ: heh, its fun playing wack-a-mole with those errors ;) Feb 22 06:43:54 squ: TM restore ? Feb 22 06:44:05 it happened to me the last time i made the internal storage too small Feb 22 06:44:29 squ: do you have 200mb internal storage ? Feb 22 06:44:37 yes Feb 22 06:44:44 oh, weird ;) Feb 22 06:44:49 ram 512 Feb 22 06:44:50 i mean :/ Feb 22 06:44:55 vm heap 32 Feb 22 06:45:22 fortunately I have two devices Feb 22 06:46:42 meh fuck, the clojure plugin in eclipse :| Feb 22 06:48:19 just another minus reputation to eclipse+android Feb 22 06:49:31 Xavier's team needs to be reformed ;) Feb 22 06:51:32 let's hope xcode will add android support Feb 22 06:51:49 squ: ok, now you have gone full crazy Feb 22 06:52:16 g00s, in most of the Google IO videos android people use macbooks Feb 22 06:55:03 er, xcode is a disaster Feb 22 06:55:35 i spent a week in it a few months ago. even our most Apple-ish fanboys here loathe it Feb 22 06:56:01 "AndroidManifest.xml file missing! Unknown Android Packaging Problem" Feb 22 06:56:05 :) Feb 22 06:56:13 though lack of any real programming experience, I like xcode !!!! Feb 22 06:56:22 :) Feb 22 06:56:35 it looks pretty Feb 22 06:59:26 app doesn't start on a device Feb 22 07:00:37 ok squ , i reinstalled eclipse & nuked my workspace and it works Feb 22 07:01:04 my adt bundle is 4.5 gb big Feb 22 07:01:13 lol Feb 22 07:01:36 can redownload the adt, but then have to do all that setup and platform downloads again Feb 22 07:01:40 i just get the eclipse platform runtime, add JDT, followed by ADT. thats the leanest thing you can have Feb 22 07:01:55 screw the bundle, thats for retards Feb 22 07:02:56 Your application has been published. It can take several hours until it is available throughout Google Play. <------------- yeah baby!!!! Feb 22 07:03:10 whats your app? Feb 22 07:03:16 ^ Feb 22 07:03:19 :) Feb 22 07:03:22 cworklog.com android client Feb 22 07:03:35 basically lets you track time on tasks and bill clients Feb 22 07:04:49 relipse: is not a web app is it ? Feb 22 07:05:06 its an online/offline client for cworklog.com Feb 22 07:05:14 open source Feb 22 07:05:22 java app ? Feb 22 07:05:28 maybe (: Feb 22 07:05:36 well of coures it has java in it Feb 22 07:05:46 no i mean it's not html5 stuff Feb 22 07:05:56 try it out and tell me :) Feb 22 07:06:02 actualy its not on play store yet i cant find it Feb 22 07:06:12 confession: it's phonegap Feb 22 07:06:23 html5 and javascript Feb 22 07:06:53 well when it's on the store will try it Feb 22 07:07:10 but not been a fan of web/html5 stuff Feb 22 07:07:16 well, as an app Feb 22 07:08:28 it uses cross domain xhr to access the cworklog.com api Feb 22 07:12:26 argg i keep refreshing the app store and its not there Feb 22 07:12:29 does it really take 2 hours? Feb 22 07:15:28 yes Feb 22 07:22:48 relipse: You should believe them when they say it takes time to appear. :) Feb 22 07:28:26 02-22 07:28:01.240: W/Trace(1208): Unexpected value from nativeGetEnabledTags: 0 Feb 22 07:32:47 Logcat isn't scrolling to the bottom. And scroll lock isn't on. It's very annoying how can i change this? Feb 22 07:32:55 squ: thats just the long term 4.2 avd bug Feb 22 07:33:14 Amorgos: turn on autoscroll ? Feb 22 07:34:11 StringRay: where is the option to turn on autoscroll? Feb 22 07:34:30 top left button on the locat view Feb 22 07:34:36 right* Feb 22 07:35:21 got it thx Feb 22 07:36:07 StingRay_, thanks Feb 22 07:37:01 squ: fix 1: regex it out fix 2 : use 4.1.2 binary (thats what i do) Feb 22 07:38:44 Why does my custom search suggestion display empty results? http://stackoverflow.com/questions/15014143/android-customsearchadapter-displays-empty-results Feb 22 08:01:21 hi, i'm a total beginner and i wanted to try to show a background image. xml: http://pastie.org/6315078 source: http://pastie.org/6315084 errors: http://ix.io/4uM Feb 22 08:01:54 i don't know what is wrong and the errors don't help me :( notfoundexeption. but what is not found? Feb 22 08:05:46 you could try to clean the project Feb 22 08:07:17 and you might want to change the View for example to LinearLayout Feb 22 08:08:18 what does linearlayout change? i want to have a canvas with multiple pictures on that background. that is not linear, right? Feb 22 08:08:30 i cleant it... let's see if it works Feb 22 08:08:37 have you read any tutorials about android development? Feb 22 08:10:15 StingRay_: do you have any font issues with d.android.com / Roboto on Chrome/Mac ? Feb 22 08:10:28 but for short answer: If you want to see what thing isn't found (0x7f030000), you can search that from R.java Feb 22 08:10:30 StingRay_: https://play.google.com/store/search?q=cworklog <-- DUDE ITS THERE Feb 22 08:13:44 relipse, got it installed Feb 22 08:13:47 am I first ? :) Feb 22 08:13:53 no i was Feb 22 08:13:54 ;) Feb 22 08:14:11 relipse: sorry to say I really dont like the feel of this phonegap stuff Feb 22 08:14:14 looks nice, but first screen loads very slow Feb 22 08:15:01 click response is very slow :) Feb 22 08:15:49 can't use back button Feb 22 08:15:58 squ you can in some places Feb 22 08:16:24 but I dont like the widgets re-draw, on gnex and nex7 get some odd double refresh thing Feb 22 08:16:27 it runs thru everything what I pressed, despite I was just clicking between Home and Login screen Feb 22 08:16:41 Hi! I'm using a WebView to display pretty simple HTML. Text formatting, lists (ul, ol) and images. Problem is that the performance isn't good enough on a lot of devices. Are there any other components besides a WebView I can use to solve this? Feb 22 08:16:48 vavirta, could you point me to a manual or tutorial how the syntax is on how to find the ressource please? Feb 22 08:17:03 also you have action bar menu overflow icon which is empty Feb 22 08:17:04 :) Feb 22 08:17:55 create new login just goes to "un-pichable" webpage Feb 22 08:17:56 how about: http://developer.android.com/training/basics/firstapp/creating-project.html Feb 22 08:18:23 if you have never developed android before, you should spend some time with basics Feb 22 08:18:37 even if you are experienced java developer / etc Feb 22 08:18:53 ok, yep, still not a fan of this phonegap thing, probably less so that earlier today Feb 22 08:19:09 would not a lean mobile website be better ? Feb 22 08:19:13 for some reason lines 52 and 53 crash my app.. no idea why. Feb 22 08:19:16 http://pastebin.com/8ngchEsS Feb 22 08:19:41 when I comment them out, it doesn't crash Feb 22 08:20:15 relipse, are you reading ? :) Feb 22 08:20:47 also, my error log is getting spammed with "Unhandled event loop exception" Feb 22 08:21:09 squ: oh no i just got back Feb 22 08:21:24 nug700: what's the exception you are getting when the app is crashing? Feb 22 08:21:51 I'll ive seen is the "Unhandled event loop exception" Feb 22 08:21:59 ok you say clicking is slow? Feb 22 08:22:10 its jquerymobile Feb 22 08:22:15 who cares Feb 22 08:22:18 its slow Feb 22 08:22:26 hmm Feb 22 08:22:31 relipse: you should do a proper app or just a mobile website imho Feb 22 08:22:52 really not a fan of this phonegap thing now, really really Feb 22 08:24:21 it worked ok when i tested it Feb 22 08:24:45 relipse, what about back button? Feb 22 08:24:49 vavirta: I also get this in logcat when it crashes: http://pastebin.com/mGExtCCC Feb 22 08:25:10 java.lang.NoClassDefFoundError: org.apache.xmlrpc.client.XmlRpcClient Feb 22 08:25:13 squ: i havent used any phonegap plugins yet Feb 22 08:25:16 that's the reason Feb 22 08:25:20 i'll def. be looking into it Feb 22 08:25:26 back button, tray icon Feb 22 08:25:37 make sure that you have correct imports and XmlRpcClient is included correctly to your project Feb 22 08:27:24 does this look like it's imported correctly? http://imgur.com/k3TnhpF Feb 22 08:29:01 I used this in a console application, and it worked fine. Feb 22 08:30:32 i wonder what would happen if i set maxSdk=15 for the people who purchased the app on 16/17 Feb 22 08:38:34 now it says device not found after cleaning and restarting the project Feb 22 08:38:37 what is wrong? Feb 22 08:38:46 hello android experts! I want to know the current orientation of an activity as soonn as user hits a specific button. I use int ori = ctx.getResources().getConfiguration().orientation; ... If the user has rotated the screen this will return SCREEN_ORIENTATION_USER...and then I don't know the current orientation... How do I get actual orientation? Feb 22 08:41:44 mephju: docs say that returns ORIENTATION_LANDSCAPE ORIENTATION_PORTRAIT Feb 22 08:42:10 StingRay_, not if you rotate the phone Feb 22 08:42:19 unfortunately Feb 22 08:42:26 it would have been too easy Feb 22 08:43:39 getWindow().getWindowManager().getDefaultDisplay().getRotation() Feb 22 08:44:23 well dont need getWindow() if your in an activity Feb 22 08:44:31 just need windowManager Feb 22 08:46:28 should give you surface orientation Feb 22 08:46:33 0,90,180 etc Feb 22 08:46:48 are you sure getConfiguration().orientation is returning SCREEN_ORIENTATION_USER ? that really doesn't sound right and I've never seen that. SCREEN_ORIENTATION_xxx are part of ActivityInfo and used for te WindowManager.LayoutParams, not the Configuration, which uses ORIENTATIION_PORTRAIT/LANDSCAPE/SQUARE/UNDEFINED Feb 22 08:47:15 (unless by chance SCREEN_ORIENATION_USER matches one of those, but don't compare to that, compare to Configuration.ORIENTATION_... Feb 22 08:47:28 ) Feb 22 08:47:34 kevinb, thx. I will try that Feb 22 08:47:58 kevinb: what did you think ? Feb 22 08:48:09 dev preview ? Feb 22 08:48:35 it was you right ? that was installing ubuntu as I was uninstalling ? Feb 22 08:48:39 that's what they get for using ints instead of enums :p Feb 22 08:48:47 but supposedly enums are slower, like I care Feb 22 08:49:07 kevinb, sounds good. 2 is Configuration.ORIENTATION_LANDSCAPE Feb 22 08:49:09 yeah. not impressed. The gestures are cute but really easy to mess up, like swipe right to switch apps then try to bezel swipe left to cancel/undo but it instead opens a different menu Feb 22 08:49:09 a Feb 22 08:49:26 yeah, same Feb 22 08:49:56 didn't see anything that could not be done in android, it was just more arty tis all Feb 22 08:50:00 and more confusing Feb 22 08:50:21 i also hate the scrolling in the App page, you scroll down and it hides the header bar, which makes sense, but scroll up and it reveals that before the other content. and the header bar is meaningless, it just says "Apps". it's not search or anything you'd actually want to quick scroll back to Feb 22 08:51:00 messaging app defies all other chat displays and reverses time!!! Feb 22 08:51:01 kevinb, but then it's very important that you set the requested orientation not using the values returned by ctx.getResources.getConfiguration.orientation...this is weird. but this is the problem I am facing... Feb 22 08:51:02 thats cool Feb 22 08:51:14 got it to "run" again. the ressource not found is public static final class layout { Feb 22 08:51:14 public static final int activity_fullscreen=0x7f030000; Feb 22 08:51:14 } Feb 22 08:51:28 activity_fullscreen is in the source? i don't get it Feb 22 08:51:33 it also took like 30 seconds to load the calculator. it's a calculator! load quickly! Feb 22 08:51:40 :) Feb 22 08:51:46 I can forgive speed Feb 22 08:51:50 dev preview and all Feb 22 08:52:39 although yeah, that should be quick in any scenario Feb 22 08:52:49 what are you guys looking at ? Feb 22 08:52:51 mephju: https://gist.github.com/teslacoil/edffc2330cff1e947a5e is how the Launcher locks the orientation during drag/drop Feb 22 08:53:05 g00s: Ubuntu Phone Feb 22 08:53:11 oh Feb 22 08:53:22 was looking at Feb 22 08:53:24 done now Feb 22 08:53:26 :) Feb 22 08:53:39 was done after 30 minutes Feb 22 08:54:07 3, hangs, 2 resets, and a rather hot phone Feb 22 08:55:25 hm, I think I can't use preferenceactivity/fragment for my settings stuff since the settings are not in the application's sharedpreferences... Feb 22 08:55:42 i like the idea of the apps menu on the left, but ended up making a lot of errors with it. canceling is not straightforward, like if you swipe too far to the right even without releasing your finger it's too late and you're at the home screen. and when at the home screen i like how quick the app preview to the right slides out, but in any other app that seemed to lag heavily which really ruins it Feb 22 09:04:53 I have jars located in project > properties > Java Build Path > Libraries, but they are apparently not being used during runtime. how do I fix this Feb 22 09:06:22 have you included them to your classpath? Feb 22 09:07:22 how do I do that? Feb 22 09:07:47 So uh, how do you make touch handling smooth while doing GLES stuff? It's slightly better when I put a sleep(16) in the touch handler in ICS (still kinda janks a bit, enough for me to notice) but on JB it's smooth without any sleeps and sleep(16) creates that jank Feb 22 09:08:25 There's not a lot of stuff I'm doing in the touch handler, it doesn't take a lot of time Feb 22 09:08:37 And to be honest I can't see anything in the trace that would help Feb 22 09:09:14 It goes like ||_____||_____||_____||_____|| for touch and ______________|||______ for GLThread for some reason Feb 22 09:10:00 So there's clearly a lot of time being wasted but I can't make heads or tails of it Feb 22 09:11:48 i'm not a game or GLES dev, so i could be off on this, but i think the sleep(16) for touch events was an android 1.x or 2.x thing and isn't right anymore, the move touch events shouldn't come in so fast, though i think UP/DOWN are dispatched as soon as they can be Feb 22 09:12:27 Anonyneko: write instead a dynamic filter? Feb 22 09:13:04 worked finally. thanks Feb 22 09:13:18 dynamic filter? Feb 22 09:14:04 kevinb, without sleep(16) the ICS-based Galaxy Note 10.1 produces unbelievable render lag when trying to pan stuff with the finger (apparently S-Pen is handled by a different thread so it's butter smooth with it) Feb 22 09:14:09 hi all Feb 22 09:14:34 with sleep(16) it gets better but janks Feb 22 09:15:10 i am quite confused. isn't there a secure way of storing application settings ? in my case API credentials to a web service. Feb 22 09:15:31 Anonyneko: what jellybean device are you testing against? it might be a Samsung vs Stock thing or Note 10.1 vs everything else thing more than ICS vs JB. that doesn't directly help you but might help narrow it down. Feb 22 09:15:57 Stock jelly bean on a noname chinese single-core tablet from spring 2012 Feb 22 09:16:01 nvictor: there was a recent blog post http://android-developers.blogspot.com/2013/02/using-cryptography-to-store-credentials.html Feb 22 09:16:14 Well, almost stock Feb 22 09:16:26 g00s, ah thanks Feb 22 09:16:32 Anonyneko: how do you implement the timing of the render loop? constant time or the common Δ? Feb 22 09:16:49 Maybe, but I haven't seen this issue in other apps so I thought it's just me doing something wrong Feb 22 09:16:53 wo, the delta symbol Feb 22 09:17:09 delta time between frames Feb 22 09:17:24 the animation time is all right Feb 22 09:17:37 the frame rate starts to suck though Feb 22 09:18:08 g00s: keeping ⇧+⎈ pressed and typing 394 (delta's unicode point) Feb 22 09:18:28 Anonyneko: how about switching to fixed game "frame"? Feb 22 09:19:31 fixed? Feb 22 09:21:10 fixed step between loop passes, for calculating all the touch events, reactions, etc, possibly try to slave the loop to VSync, and put a filter that discards "spurious" touch events Feb 22 09:21:58 g00s, isn't that article incomplete ? : ) Feb 22 09:22:08 maybe put the input handling into separate thread if it's possible... hmmm Feb 22 09:22:40 Well I don't really control how often does the render loop run... it's when glsurfaceview decides it's time for it to run Feb 22 09:23:01 Well the s pen puts it into a separate thread or throttles it or something so it's perfect Feb 22 09:23:11 But even in the same thread it doesn't take a lot of time Feb 22 09:23:31 There's a lot of free time for the render to run Feb 22 09:23:37 ...but it doesn't Feb 22 09:23:54 Anonyneko: scratch the "slave to vsync" point, it was incorrect. Separate the timestep for "game mechanics" and "display" Feb 22 09:25:25 There's almost no mechanics, it takes like 2 ms to handle a touch event judging from the trace Feb 22 09:25:55 does anyone know about the htc sense system. They have the new social media showing panel thats the home page - if the home page is changed to another panel but the social media one is still present then I presume it will be constantly connecting to the net to get its info - do you think there is a way to stop this - it is reported that it cant be removed Feb 22 09:26:41 Anonyneko: touch handling (and thus "modifying the world" that is to be displayed) counts as mechanics :) Feb 22 09:27:03 another thing to consider is simply filtering events based on time Feb 22 09:27:08 Yeah, but it doesn't take any time pretty much Feb 22 09:27:16 Basically I have it like this Feb 22 09:27:35 The main thread is like Feb 22 09:28:08 Without the sleep it's like 2 ms touch handle, ~15ms wait, and, like, five times that Feb 22 09:28:20 The glthread during that time is 70 ms wait and 4ms render Feb 22 09:28:24 And that's it Feb 22 09:28:40 And I'm utterly confused to why that could happen Feb 22 09:29:36 the 15ms wait in ontouch is because you are sleeping or just because the framework hasn't fed another event? and the 70ms in the glthread is what you're trying to eliminate? Feb 22 09:29:42 http://i.imgur.com/LD3VuGn.png Feb 22 09:29:55 Yeah, the 70ms is what I'm trying to eliminate Feb 22 09:30:03 The 15 ms is when I don't sleep Feb 22 09:30:40 so that sounds fine, one touch event every 17ms is ~60Hz Feb 22 09:30:57 the gl thread wait time is very curious Feb 22 09:31:06 Yes, but the it goes down to like 10 fps Feb 22 09:31:14 ~14 Feb 22 09:31:18 *the frame rate Feb 22 09:31:26 Well still sucky fps Feb 22 09:31:40 yeah the 70ms is murder Feb 22 09:31:48 get more tracing out of it? Feb 22 09:32:01 maybe it gets stuck on some event? Feb 22 09:32:28 http://i.imgur.com/tTXUTj6.png here's when I put a SystemClock.sleep(16) Feb 22 09:33:20 the greeny lines are thread.sleep Feb 22 09:33:52 in the previous trace instead of sleep they were messagequeue.nativepollonce and that's about all the difference Feb 22 09:34:36 (again sorry, not a GL developer). with a standard view if you want to manually animate it, you have to request a redraw yourself by calling invalidate. like normally the onDraw has if (mAnimating) invalidate; in it. does the GLSurfaceView need something like this? Could it be that it's not drawing because it doesn't think it needs to be? Feb 22 09:34:42 so like it's a noticeably higher fps rate but you see there are janks here and there Feb 22 09:35:12 The glsurfaceview has a view.RequestRender() thingie for when you don't render continuosly Feb 22 09:35:30 But I tried it with continuous rendering too Feb 22 09:35:32 Same shit Feb 22 09:37:24 curious Feb 22 09:38:14 could i ask what exactly does MotionEvent.getX() return? i noticed that for ACTION_MOVE events it returns something that looks like a delta but the first value it returns is too large to be any kind of delta Feb 22 09:38:25 Anonyneko: can't help you there, not now Feb 22 09:38:37 All right, thanks for all the tips Feb 22 09:44:44 i'm going to file a bug against d.android.com : google uses shitty styles, colors, and fonts Feb 22 09:45:12 the old one was ugly, but so much more readable Feb 22 10:02:37 g00s, thanks for the link. Feb 22 10:02:47 ;) Feb 22 10:06:06 hey Feb 22 10:06:44 ho Feb 22 10:07:11 what device features can not be used in html5 apps compared to native? Feb 22 10:07:41 speed, nice user experience, consistency Feb 22 10:07:50 I think all those features are missing :) Feb 22 10:08:22 you can build javascript-java bridge to html5 and use all of hardware features with html5 app Feb 22 10:08:47 but StingRay_ has really good points Feb 22 10:08:57 StingRay_: don't hold back, tell it like you feel it :) Feb 22 10:09:10 g00s: really ? Feb 22 10:09:17 i'm kidding :) Feb 22 10:09:18 often people forgots that for example iOS and android apps has different design guidelines Feb 22 10:09:30 well I think they should be labeled too...so users dont think android apps are crap Feb 22 10:09:59 so if you make html5 and apply same UI to both of them, the app doesn't "feel right" with another platform Feb 22 10:10:17 but seriously, I often thing and beginning to think more that a mobile website through a browser is a better idea Feb 22 10:10:17 vavirta: yeah, but you save a lot of production costs Feb 22 10:10:43 for example your graphics guy draws really nice UI which follows ios guidelies, it just doesn't feel right on android Feb 22 10:10:55 Quacked: not quite Feb 22 10:11:05 it might seem that it will save a lot of production costs Feb 22 10:11:15 maintain just one codebase etc. Feb 22 10:11:19 yes? Feb 22 10:11:19 vavirta: and since the program UI loop in your HTML5 app is still straight from iOS, it dies on each click of "back" Feb 22 10:11:51 p_l, well you can bind hard-backbutton to behave like "back" button in ios applications Feb 22 10:11:53 but, that Facebook app made completely in HTML5, that is impressively fast Feb 22 10:12:13 iOS facebook was HTML5 Feb 22 10:12:16 and was terribly slow Feb 22 10:12:28 then it was completely rewritten with native framework Feb 22 10:12:38 yeah, but some HTML5 advocates showed that it could be very fast if done right Feb 22 10:13:01 uhm.. people who advocate are called? Feb 22 10:13:06 and facebook said that maybe the worst decision was to do the mobile applications with html5 Feb 22 10:13:11 advocaters? :S Feb 22 10:13:39 vavirta: I think thats why they made it. To prove FB wron Feb 22 10:13:41 wrong* Feb 22 10:13:49 yes, but FB has a lot of money. Feb 22 10:13:51 yeah, that might be Feb 22 10:14:05 BUT, I've done few professional html5 projects Feb 22 10:14:13 here: http://www.sencha.com/blog/the-making-of-fastbook-an-html5-love-story/ Feb 22 10:14:26 thats the one if you havent seen it Feb 22 10:14:37 yeah, I havent Feb 22 10:15:01 Its funny to see how fast a 3rd party can make FB with HTML5 Feb 22 10:15:06 When FB themselves could not :P Feb 22 10:15:07 but all of the projets where I've participated, we've spent a lot of time to optimize the javascript and html5 Feb 22 10:15:19 to match the native experience Feb 22 10:15:34 the video on that site is good Feb 22 10:15:42 anyway, you'll have to probably redo significant amount of work if you want a good app running on both Android and iOS (and third time if you add WP) Feb 22 10:16:00 for example, 90% of UI code :> Feb 22 10:16:06 fuck, its probably a lot of work getting it to work on GB - JB browsers alone Feb 22 10:16:07 Hi! If I want to prompt a user to choose a time, what is the best way of doing it? Is launcing another activity to just select a time overkill? Feb 22 10:16:13 and 95% of materials Feb 22 10:16:31 but if you believe to html5, you should definitely try that Feb 22 10:16:58 i guess i'm one of those people that thinks people are trying to hard to make the browser something it was never intended to be Feb 22 10:17:18 but I have pretty decent experience, both on ios and android native development and also html5 crossplatform stuff Feb 22 10:17:20 But say for a banking app you wanted to use the camera to scan in receipts or get push updates from your app when you receive money on your account. Would that require native code or could it be done in HTML5? Feb 22 10:17:40 can be done with javascript-java bridge Feb 22 10:18:00 Quacked: in reality you depend on running inside a native wrapper that will call the native API, sometimes you'll have to recode the wrappers even Feb 22 10:18:03 in your javascript you call some function which will trigger native java code Feb 22 10:18:09 yeah Feb 22 10:18:26 yeah, thats what I thought Feb 22 10:18:55 the HTML5 APIs... well, HTML5 is no fscking standard and most of it exists only in most recent stuff ;> Feb 22 10:19:23 but Im guessing lots of companies use some native code and then present the UI with HTML5, so they don't have to update UI on both android and ios. Is that correct? Feb 22 10:19:25 you might get further with Chrome in JB, but forget about wrapping it into APK etc. Feb 22 10:19:51 Quacked: there are "wrappers" that can build an iOS and Android app... Feb 22 10:20:00 Quacked: the most common experience is "this app sucks" Feb 22 10:20:05 hehehe Feb 22 10:20:12 I thinnk the layout is a bit more complicated than just an alertdialog Feb 22 10:20:15 well, hybird apps are also one option Feb 22 10:20:16 (at least on android, because they did *not* change the UI) Feb 22 10:20:25 which I believe Quacked referenced Feb 22 10:20:33 does anyone know if a tablet facebook app may appear - the phone one doesnt look good on my tablet Feb 22 10:20:40 you don't just have one webview, but native code which handles transforms etc Feb 22 10:20:44 yes, but UI is the part that actually you *should* redo most of the time Feb 22 10:20:48 vavirta: yeah, thats what I meant Feb 22 10:20:52 and ui and stuff are handled with html5 Feb 22 10:20:55 vavirta: can't do that level of shit, actually Feb 22 10:21:00 p_l: correct Feb 22 10:21:21 Hi, anybody an idea why my inner ExpandableListViews inside the outer ExpandableListView are sometimes not expanding/collapsing? Feb 22 10:21:28 because the "webview" is opaque and you can interact with it mainly through exposing JS-callable methods Feb 22 10:21:33 yup Feb 22 10:22:11 this framework looks promising for hybrid stuff Feb 22 10:22:11 http://www.appgyver.com/ Feb 22 10:22:34 but that is really a good question what to do when you have app that should run on both ios and android Feb 22 10:22:37 hybrid: not enough money to do a full version Feb 22 10:22:43 yeah Feb 22 10:22:52 so far it's vaporware (announcement-ware? hype-ware?) Feb 22 10:23:05 but actually I've re-written couple of apps from ios to android Feb 22 10:23:10 techcrunch-ware? Feb 22 10:23:53 and well, it isn't really a "dream job" to reproduce the same logic (if possible) Feb 22 10:24:03 but it doesn't take as much time as people would think Feb 22 10:24:51 you have to start thinking about win 8 now too Feb 22 10:25:07 microsoft have their own strict ui guidelines Feb 22 10:25:16 I want to use a regular expression to search for "MySearch" but I don't want "MySearchBlah" as a result. Basically, I don't want any alphanumeric characters on either side of it. Any takers? :) Feb 22 10:26:52 ChestCardChance: [^\w]MySearch[^\w] Feb 22 10:27:00 hmmm Feb 22 10:27:09 ChestCardChance: [^\w]+MySearch[^\w]+ Feb 22 10:27:34 I really need to prioritize learning regex some time soon Feb 22 10:27:38 p_l: Thanks a lot! That'll do. Feb 22 10:27:38 I'm stuck every time I need it Feb 22 10:27:41 Quacked: same here :/ Feb 22 10:30:35 p_l: are you familiar with the content provider uri permission system ? Feb 22 10:34:35 nope Feb 22 10:35:24 Context.revokeUriPermission() is bizarre … when the hell to call it? how do you know the other process/component is done ? Feb 22 10:35:50 flodin: there ? Feb 22 10:59:02 Hi! If I want to prompt a user to choose a time, what is the best way of doing it? Is launcing another activity to just select a time overkill? The layout will have a datetimePicker or what it may be called in android. Does anyone have an idea? Feb 22 11:00:27 Seems like I should use dialogfragment? Feb 22 11:03:15 selar1: that's probably the best solution Feb 22 11:03:32 selar1: also, that's more portable to tablets as well Feb 22 11:06:51 whereas with activities you'll probably have to rewrite the entire thing later Feb 22 11:09:34 is there an accepted way to do view drags on pre 11 androids? im currently just trying to create a view after a touch event and then drag that, which seems too problematic to be correct Feb 22 11:15:09 balls2thewall: I'd take a look at 2.3 AOSP for the launcher Feb 22 11:15:11 that impele Feb 22 11:15:18 *that implements drag and drop Feb 22 11:22:53 its painful Feb 22 11:24:32 g00s: yep, but I haven't used revokeUriPermission Feb 22 11:24:50 g00s: anyhow, if you use the solution we talked about the other day then you don't need that at all Feb 22 11:27:03 i gotta say, android really works well for small children to operate... much easier than e.g. windows. Especially with the fact that you don't need to care about closing / starting apps Feb 22 11:27:19 they're just "there" all the time, so there's no harm if you switch to the home screen Feb 22 11:27:38 or manually closing one down if you open too many Feb 22 11:28:39 only problem is how easy it is for them to press ads and start installing crap from the play store Feb 22 11:29:06 or just get lost in it, when the store is within the same task as the game, they're unable to switch back to the game without navigating their way out of the store Feb 22 11:41:18 flodin: ok, so, looking at this it seems this stuff /should/ work but doesn't with EXTRA_STREAM because its not Intent.data Feb 22 11:41:55 as a hack, i'm going to put the Uri for the stream there too, maybe it will work then Feb 22 11:46:41 flodin: did you test your solution with both gmail and vanilla email ? Feb 22 11:48:38 is there way to force a view to receive touch events? i press a button, immediately create a view on top of that button (to drag) but the newly created view isnt receiving move events, not unless i let go and touch it again :/ Feb 22 11:50:15 g00s: well yes and no Feb 22 11:50:53 g00s: I have a working solution where the data is provided as a URI, but I haven't yet implemented the "secret URI" part Feb 22 11:51:43 rather I just have a preference that sets whether or not all apps should be allowed to read the data or not Feb 22 11:52:10 are recent ARM-Chips capable of doing double in hardware or just float? Feb 22 11:52:24 g00s: you can see the source code here http://codepentry.com/releases/android-retrace-v2-alpha4.tar.bz2 Feb 22 11:52:36 flodin: oh , cool thanks Feb 22 11:52:57 the email sending is in LogView.java irc Feb 22 11:53:01 |iirc Feb 22 11:53:03 *iirc Feb 22 12:07:49 What would be the best way to get output from a URL and process whenever its output changes to a particular value, using service Feb 22 12:09:27 I used interval of 10 seconds and AlarmManager to start the service, but then "Android OS" started using too much battery Feb 22 12:10:58 oh, it blames that on "Android OS" eh... that explains some things Feb 22 12:11:51 Dattz: if you don't want to use a lot of battery then you should push the information to the device rather than having the device poll it frequently Feb 22 12:12:12 there's something called google's "device messaging framework" iirc that you can use Feb 22 12:14:22 alright, I'll take a look into that Feb 22 12:15:21 ah, it is now named "google cloud messaging" Feb 22 12:15:22 http://developer.android.com/google/gcm/index.html Feb 22 12:15:50 thanks :) Feb 22 12:18:58 when using offsetLeftAndRight does it set some kind of hidden offset variable? as i understand i pass it realtive amounts i want it to move from the current spot, but where does it keep the overall offset from its original position? Feb 22 12:34:22 is there a way to register a callback method on a button view that gets called when the button *starts* to be pressed? Feb 22 12:34:47 it seems like setting the onclick callback only fires once the user releases their finger from the button Feb 22 12:39:18 Hail_Spacecake: no idea but sounds like you should look at ontouchevent Feb 22 13:03:36 hi Feb 22 13:03:43 is there a standard-android "help"-string? Feb 22 13:03:51 something like @android:string/menu_help Feb 22 13:06:00 Hi! I'm trying to animate layout changes in a list view starting with Android 2.2. I see that Android 3.0 introduced LayoutTransition. Can someone help me with some light on how to make the animation work with all devices starting with 2.2? :) Feb 22 13:07:10 Hello peeps. I am using Android Debug Bridge on my ubuntu laptop together with my Galaxy Nexus. And everything was all dandy untill today when I started adb - then I got the error "error: device not found". Feb 22 13:07:15 Can anyone give a hint? Feb 22 13:09:21 you try restarting adb, or unplugging/replugging device? Feb 22 13:09:26 find out why it cant be found Feb 22 13:09:29 :) Feb 22 13:10:31 1. kill and restart adb THEN plug in (if no joy 2.) Feb 22 13:10:41 2. http://linux.about.com/library/cmd/blcmdl8_lsusb.htm <--- quite good, is it connected Feb 22 13:11:37 If it is connected then assume android problem (if usb debug is on) - restart android Feb 22 13:12:05 if it isnt show in lsusb then assume USB/cable prob Feb 22 13:12:12 Feb 22 13:14:44 Did you add a udev rule? Feb 22 13:19:34 Let me try restart adb first of all Feb 22 13:20:20 I need some help for a tabwidget... is there a way to add a new tab as first tab? Feb 22 13:20:27 no luck - I will take a look at your link StingRay_ Feb 22 13:20:40 beef Feb 22 13:20:45 it's what's for dinner Feb 22 13:21:02 is there a way to get the real size of the device instead of the display size or the window? Feb 22 13:21:15 like physical size? Feb 22 13:21:22 resolution i mean Feb 22 13:21:33 DisplayMetrics I think has that info Feb 22 13:21:48 but i got wrong number for the display height Feb 22 13:21:55 what number did you get Feb 22 13:21:59 StingRay_, it was the USB port that is broken. Thanks alot! :) Feb 22 13:22:02 because the notfications bar and the navigation bar Feb 22 13:22:21 ok Feb 22 13:22:58 my display is 1280 * 800 (landscape) i get 1280 * 736 Feb 22 13:23:09 nexus 7 Feb 22 13:23:42 i noticed there is (display.getReal) just in jellybean Feb 22 13:23:54 this method works correctly on jellybean Feb 22 13:24:13 but i need to find a way to get the real size on all versions Feb 22 13:24:14 MoshDev: http://developer.android.com/reference/android/util/DisplayMetrics.html#heightPixels that isn't the real screen height? Feb 22 13:24:19 then use that, since i'm pretty sure displaymetrics used to not include the status bar Feb 22 13:24:35 timroes: no, this will return the window size Feb 22 13:24:36 i imagine there should be some documentation if that changed Feb 22 13:24:39 nobody an idea? Feb 22 13:24:54 if you look at stack overflow theres a ton of questions on older versions asking how to get the screensize without the statusbar Feb 22 13:25:23 mikedg: i searched alot, and i found roman guy answer, he says you should'nt know the real size, you need to know the size of the window only Feb 22 13:25:25 MoshDev: why do you need this info? maybe theres an alternative Feb 22 13:26:30 can someone help me out wrapping my head around repo Feb 22 13:26:34 mmm, the requirement they need to send current magazine size to the phone depinding on screen size and dp Feb 22 13:26:53 i want to basically create my own branch to work on some stuff, without messing with the base aosp code Feb 22 13:26:54 MoshDev: then it is just the display area you want Feb 22 13:26:55 yeah but depending on windwo size most surly? Feb 22 13:27:05 i know how to use git but the repo docs are severely lacking Feb 22 13:27:14 timroes: guessing he goes fullscreen in reading mode Feb 22 13:27:20 MoshDev: where is getReal mentioned? Feb 22 13:27:21 since I assume they want to make it dependent on what they can show in the window, and not what they could show if no bars are there Feb 22 13:27:35 yeah, but the database of devices they have got the real size of screens Feb 22 13:28:11 the server compares the size you send to it with the db content Feb 22 13:28:30 so they assume the size of bars never changes Feb 22 13:29:02 but in previous versions of android there is no bars Feb 22 13:29:21 yeah thats the point :) Feb 22 13:29:25 so if i send to the server 1280*736 it will return nothing Feb 22 13:30:09 can someone do me a favor and test an avd with android 4.2 and open Sync Tester of the DevTools app? Feb 22 13:30:15 and if it will send 1280*800 it will return the magacine for a 1280*800 screen, but you don;t have that space Feb 22 13:30:18 mine crashes everytime Feb 22 13:30:30 since you have to take away the notification and maybe status bar from it Feb 22 13:31:18 timroes: thats right, but most of the design will be dynamic, Feb 22 13:31:33 and i was wonder why i cant get the real screen size Feb 22 13:32:21 than it shouldn't matter at all if you take away the notificationbar or not if its msotly dynamic this pixels won't matter. And if they only return something if you hit a very fixed size they make it unusable for every device having some different solution Feb 22 13:33:03 and btw the dp is wrong, the device returns 213 and when you calculate it depending on device specs you will get ~216 Feb 22 13:34:07 timroes: but thats the requirments ... Feb 22 13:34:25 wow :D Feb 22 13:34:34 their whole architecture should be rebuild Feb 22 13:35:06 timroes: :( i cant Feb 22 13:35:21 timroes: am delivering the project next sunday Feb 22 13:35:58 density isnt exact Feb 22 13:36:03 dont trust it Feb 22 13:36:05 mikedg: yes Feb 22 13:36:28 btw display metrics doesn't seem to work well for me at all :D Feb 22 13:36:41 widthPixels= 320 on a Gaalaxy Nexus Feb 22 13:36:45 seems more like width dpi :) Feb 22 13:38:45 timroes: try this http://pastebin.com/nV6uxh6a Feb 22 13:39:27 and the specs says for nexus 7 : Size 800 x 1280 pixels, 7.0 inches (~216 ppi pixel density) Feb 22 13:39:43 1280x720 Feb 22 13:39:50 ah nexus 7 sorry :D Feb 22 13:39:59 whats is your device? Feb 22 13:40:00 and they did change the behavior of displaymetrics as it seems Feb 22 13:40:06 Galaxy Nexus Feb 22 13:40:21 StingRay_, restarting machine made my usb port behave again... thanks for your time! Feb 22 13:40:22 targetSdkVersion="15" returns not 720 Feb 22 13:40:36 galaxy nexus : 720 x 1280 pixels, 4.65 inches (~316 ppi pixel density) Feb 22 13:40:48 yeah Feb 22 13:41:06 whats android version you have? Feb 22 13:41:13 and what the code result? Feb 22 13:42:21 okay they changes the bahvior in API level4, if you target beforehand it returns 320 afterwards 720, but it isn't documented in the reference.. Feb 22 13:42:50 oh, yeah compatability mode or some shit Feb 22 13:43:07 yes, you must set the targetSdkVersion="17" Feb 22 13:44:00 MoshDev: from api level 5 on it doesn't changed anymore, but in my opinion that should be marked in the reference, that this actually didn't return the real screen width in pixels before api 4 Feb 22 13:44:20 even if you switch documentation to api level 1 there is the wrong documentation about that Feb 22 13:45:31 so in any case, how we could get the real size? isn't there an api shows the device api, instead of DisplayMetrics Feb 22 13:46:04 what if someone trying to build database of the devices specs Feb 22 13:47:14 timroes: well, sure, but there's no real point to target API 4 Feb 22 13:47:18 let alone less than 4 Feb 22 13:47:41 yeah ofc there isn't but that excuses missing documentatioN Feb 22 13:47:42 ? Feb 22 13:47:53 I mean, sure, it's not an excuse to have inaccurate docs Feb 22 13:48:02 but this is a minor, minor point Feb 22 13:48:45 isn't api 4 deprecated? Feb 22 13:49:06 you can't expect to modify old docs for things that never existed Feb 22 13:49:37 (also, why are you targeting API 1?) Feb 22 13:50:03 minimum 1 makes some kind of sense, targeting 1 doesn't... Feb 22 13:50:17 MoshDev: what android version are you using? Feb 22 13:50:34 minimum of 1 doesnt even make sense Feb 22 13:52:19 jellybean Feb 22 13:53:51 you could try that for devices where getRealSize doesn't exist, though its pretty dirty http://stackoverflow.com/a/11004877 Feb 22 13:55:34 The above code WILL NOT WORK on Android 4.2 , yeah cool android Feb 22 13:55:45 yeah but you have getRealSize there? Feb 22 13:55:51 yes i know Feb 22 13:55:57 sooo? Feb 22 13:56:08 but i dont know why android guys are missing with developers Feb 22 13:56:08 use getRealSize on 4.2 and below that dirty workaround Feb 22 13:56:12 yes Feb 22 13:56:16 ill do Feb 22 13:56:23 timroes: thanks Feb 22 13:56:42 but am surprised why this case is so hard Feb 22 13:56:43 :D Feb 22 13:57:20 thats a very easy answer to that :D Feb 22 13:57:26 because you are doing dirty stuff Feb 22 13:57:43 why are we talking about API level 4 Feb 22 13:57:44 you expect android too give you possibility to work dirty, and why would they offer you that :) Feb 22 13:58:05 if you're thinking of API level 4, you're targetting people who probably don't even know that they have market installed Feb 22 13:58:28 lov: just mentioned that there is missing some documentation, even though its deprecated and not used anymore, just wouldn't that consider to be an excuse for missing docs :D Feb 22 13:59:05 considering that some of the docs have "and this will work by mumble mumble fill this part out" Feb 22 13:59:38 honestly, the docs are pretty complete, there's only a few places that don't have documentation. At that point, it might be simplest to just look at the source to figure out itout. Feb 22 14:00:52 MoshDev: btw changing private methods isn't at all messing with devs, since its nothing you can normally or should at all use, so if you rely on that kind of workarounds its your own fault if things will break some day Feb 22 14:01:11 but why the method isn't there anymore: they - from what i would say - cleaned up the code a lot in that class Feb 22 14:01:16 ^^ Feb 22 14:01:28 If it's not a public api, you shouldn't expect anything from it, such as existing or working as before. Feb 22 14:01:35 that's the contract from day 1. Feb 22 14:01:48 timroes: i dont use workarounds usually but in this case ill do Feb 22 14:01:52 yeah, Jellybean broke my show status bar code :( Feb 22 14:01:54 I fixed it though Feb 22 14:01:59 but not before I shit my pants Feb 22 14:02:03 so Display now uses an internal reference to DispayInfo instance that holds that information Feb 22 14:02:08 my app works based on a specific implementation detail that could change at any time, and I understand that and won't get upset if it breaks. Feb 22 14:02:46 anyone know of a way to pass touch events around? :/ that is to say while while one view is reacting to an ACTION_MOVE you suddenly chagne the view reacting to the event to some other one. Feb 22 14:06:02 Hi. I've received concerns that crashing a component if a required parameter is null might be an issue. What do you think of that? Feb 22 14:06:55 For example, when creating something that requires an Activity param, I usually check for null. If the param is null I throw an exception. Feb 22 14:07:21 keyboardsurfer: it's an implementation detail. It's totally cromulent to throw an exception, but there should be handling for whoever is calling. Feb 22 14:08:05 lov: for or by whoever is calling? Feb 22 14:08:21 in particular, I'd strongly recommend that you throw a checked exception, rather than an unchecked exception, unless it's really a "This should never happen" event. Feb 22 14:08:45 yeah, sorry, by whoever is calling Feb 22 14:09:01 make sure that it's abundantly clear that your method may have a side effect of throwing an exception if XYZ Feb 22 14:09:15 after that point, caveat developer Feb 22 14:09:53 IMO throwing an IllegalArgumentException while constructing an object that requires a param is totally ok. Feb 22 14:10:28 well, it might make more sense to throw an NPE if the problem is that an arg is null Feb 22 14:11:00 throw new IllegalArgumentException("Null parameters are not accepted"); is what I'm throwing at the moment. Feb 22 14:11:24 I'd really recommend that you use NullPointerException here; you expect something to be non-null Feb 22 14:11:40 sounds like an idea. Feb 22 14:11:43 thx lov Feb 22 14:11:48 no problem Feb 22 14:12:36 any of you have a nexus 10? Feb 22 14:12:46 curious how many apps run well on it and the perfomance profile Feb 22 14:12:58 I have one. Works fine. Great device. Feb 22 14:13:20 Chainfire: is there a huge perf impact of the extra pixels being pushed? Feb 22 14:13:56 and how optimized are the apps for the xhdpi and xlarge? Feb 22 14:13:57 compared to the SoC running 320x240, undoubtedly. But as it's the only device out there using that SoC at the moment, no. Feb 22 14:14:11 thanks everyone, and here is my code if anyone needed it http://pastebin.com/JkyGpSn2 Feb 22 14:14:12 http://pastebin.com/JkyGpSn2 Feb 22 14:14:35 Chainfire: i've a nexus 7, how does it compare to that? Feb 22 14:14:41 maybe i should just buy one Feb 22 14:14:51 but it doesn't make sense to get one if they're not selling many of them Feb 22 14:15:20 it's bigger. and faster. But I suggest you look this stuff up on a good review site, I'm sure all this stuff is covered in a decent review. Feb 22 14:16:12 it's currently by far my favorite tablet, and I own a boatload of them, including the N7, if that means anything. Feb 22 14:17:25 Chainfire: yeah i've read the reviews but it's different asking a developer vs a consumer :) Feb 22 14:17:42 the N10 looks awesome, wonder if they'll do a tablet with a digitizer next Feb 22 14:17:59 what i'd also really like is some sales figures broken by down device so i know what to test on Feb 22 14:21:25 a nexus with a digitizer would be the only thing that could bring me back to android tablets Feb 22 14:22:10 my feelings about the nexus 10, we get a badass soc and gimp it with a bilion gillion pixels Feb 22 14:22:34 i also felt this way about the Droid 1 when that came out Feb 22 14:23:37 question is how many are they selling Feb 22 14:23:39 hard to find out Feb 22 14:28:51 Hey, can anyone tell me how to set hint-text color in a SearchView, i can't seem to figure it out.... Feb 22 14:37:09 MroiZo: sell a set of tinted glasses with your app Feb 22 14:37:45 mikedg: seems legit... Feb 22 14:38:07 when someone buys your app, goto the checkout console and mail them the pair of glasses with their billing address Feb 22 14:39:23 It's going to be a bad day for business, as the app is free :) Feb 22 14:39:48 ‽‽ Feb 22 14:40:12 so send it COD. Feb 22 14:40:21 if they don't pay, they don't get sweet glasses Feb 22 14:40:31 I don't see the problem here. Feb 22 14:40:57 hi Feb 22 14:41:03 how do i enable ADB by editing files in /data ? Feb 22 14:41:12 im in recovery and i must enable adb from there Feb 22 14:41:19 because the normal system isnt booting Feb 22 14:41:37 you may wish to ask in #android-root Feb 22 14:41:48 i just want to do the same thing that "enable usb debugging" checkbox does Feb 22 14:41:53 yes, I understand. Feb 22 14:41:55 you may wish to ask in #android-root Feb 22 14:42:08 (and not here) Feb 22 14:42:19 rajkosto: look at the platform source Feb 22 14:43:10 you are tryign to turn on usb debugging while in recovery? Feb 22 14:43:47 what recovery are you using? Feb 22 14:43:48 yes Feb 22 14:43:52 i have adb in recovery Feb 22 14:43:55 cwm 6 Feb 22 14:44:05 erm Feb 22 14:44:08 i have a shell but "propset" isnt found Feb 22 14:44:14 guys Feb 22 14:44:19 if you have a modern recovery installed, there should just be an "enable adb" option in the menus Feb 22 14:44:21 TabWidget is incredible retarded Feb 22 14:44:25 Styler2go: no shit. Feb 22 14:44:28 don't use Tabs. Feb 22 14:44:32 ohh i get it suckah Feb 22 14:44:36 what else? Feb 22 14:44:39 you want to view the logs while its booting and looping Feb 22 14:44:41 and pooping Feb 22 14:44:44 Styler2go: viewPager Feb 22 14:44:45 like a shiggy shiggy Feb 22 14:44:50 Styler2go: use Fragments, ViewPager, etc. Feb 22 14:44:55 it's probably just a database change, look at the Preferences shizzle Feb 22 14:45:01 The whole Tabs thing was a bad dream and we just want it to go away forever Feb 22 14:45:13 Tabs are awesome Feb 22 14:45:16 chrome uses tabs Feb 22 14:45:19 Chrome is awesome Feb 22 14:45:21 can you give me an example? Feb 22 14:45:30 i dont have "enable adb" in my recovery Feb 22 14:45:31 The whole Fragment things is a bad dream too... Feb 22 14:45:32 Styler2go: I want you to do a google search for "ViewPager" Feb 22 14:45:35 ok? Feb 22 14:45:42 alternately, search for it on d.android.com Feb 22 14:45:42 that would be great Feb 22 14:45:48 tell me how can i google? :D Feb 22 14:45:58 just kidding, i will :) Feb 22 14:46:19 http://bit.ly/XtZhDr Feb 22 14:46:50 you dont want to do that :o Feb 22 14:46:55 trust me :( Feb 22 14:46:57 :D Feb 22 14:47:01 ;D Feb 22 14:47:24 but s everytime, it is mooooch more complicated to use this... Feb 22 14:47:34 lets stay an TabHost :D Feb 22 14:47:47 please don't :D Feb 22 14:47:48 nobody is going to help you with TabHost Feb 22 14:47:51 seriously, tabs are horrible Feb 22 14:47:55 I am going to shoot anyone who helps you Feb 22 14:47:57 you really don't want to use tabs if you can help it Feb 22 14:48:05 do you want to be the literal hitler of this channel? Feb 22 14:48:06 and your app will look like ass on anything modern Feb 22 14:48:15 mikedg will actually paint you with a tiny mustache Feb 22 14:48:19 I've seen him do it. Feb 22 14:48:19 i am german :o Feb 22 14:48:25 well you're halfway there then Feb 22 14:48:27 sure can be your hitler ;D Feb 22 14:48:40 so lets see Feb 22 14:48:46 TabHost is the worst. Feb 22 14:48:48 ok from now on all your smilies have to be like :=D Feb 22 14:48:56 :=D Feb 22 14:48:57 the = is important because it shows that you're now literally hitler Feb 22 14:49:03 if you must have UI tabs, tie them to a viewpager or something sane. Feb 22 14:49:06 oky ;=D Feb 22 14:49:20 rolling your own custom view is better than using TabHost Feb 22 14:49:32 but its taking more time Feb 22 14:50:13 We are under very high pressure of time Feb 22 14:50:28 ok then just shit out something horrible and don't ask us for help Feb 22 14:50:38 but :( i need your help Feb 22 14:50:46 the problem is a TabHost cant delete an tab Feb 22 14:50:48 Styler2go: ^^ what he said. Feb 22 14:50:55 that's a terrible API to use. Feb 22 14:51:00 :=( ** Feb 22 14:51:09 if you insist on wasting time on it, gtfo. Feb 22 14:51:17 I don't get why paypal would release their own smartphone payment dongle and have less points than Square's :/ Feb 22 14:51:19 so stupid Feb 22 14:51:20 Styler2go: viewpager will be much quicker Feb 22 14:51:32 ok i will look at it Feb 22 14:51:34 * mikedg goes to patent the Pentapaid, the five pointed payment dongle for your smartphone Feb 22 14:53:51 cam someone give me a good example or tutorial site for viewpager? Feb 22 14:54:17 09:45:37 < lov> Styler2go: I want you to do a google search for "ViewPager" Feb 22 14:54:17 09:45:40 < lov> ok? Feb 22 14:54:17 09:45:47 < lov> alternately, search for it on d.android.com Feb 22 14:54:28 I mean, christ. Feb 22 14:55:21 Styler2go: https://www.google.com/search?q=android+viewpager+examples Feb 22 14:56:54 lol k m yboss told me it will take to much time Feb 22 14:56:57 i have to use tabhost Feb 22 14:57:00 thanks god. Feb 22 14:57:08 thank god you're able to live in 2009 Feb 22 14:57:27 lol Feb 22 14:57:34 your boss told you that would take more time. Feb 22 14:57:44 * novie quits. quits so hard. Feb 22 14:58:43 no that it is to complex for now Feb 22 14:59:42 Styler2go: you won't find help for it here. Feb 22 15:00:20 also, you just wasted a ton of time here, you could have had a viewpager in your app by now. Feb 22 15:02:00 yes thats ok Feb 22 15:02:04 so my boss have to help me more Feb 22 15:02:08 not my fault :) Feb 22 15:20:14 Why isn't Runtime.getRuntime().exec("su rm -rf /data/data/com.android.browser/*"); deleting all my files/directories? Feb 22 15:20:29 I do get the superuser popup, and grant access.. Feb 22 15:23:18 tofra: try "su echo rm -rf /data/data/com.android.browser/*" and see what comes back Feb 22 15:23:18 i have a feeling its due to when * gets parsed Feb 22 15:23:53 hmmm, let me give it a shot.. Feb 22 15:28:14 or maybe rm does not support -rf... Feb 22 15:30:12 tofra: why cant you just click 'clear app data'? Feb 22 15:42:55 I want to have it automated.. Feb 22 15:43:30 rm -rf /data/data/com.android.browser/* gives: rm failed for -rf, No such file or directory Feb 22 15:43:41 should I escape the - sign? Feb 22 15:44:14 no, it's the * that's the problem. Feb 22 15:44:26 also, does your current user have permissions for that dir? Feb 22 15:44:44 (oh you're using su, nvm) Feb 22 15:45:05 :) Feb 22 15:45:26 mind you, I'd strongly recommend that you prepend this with a kill -9 of the com.android.browser process or something to forcibly kill it. Feb 22 15:45:40 but what should I then use to delete everything? Should I do a recursion loop? Feb 22 15:45:42 if a file is open by the browser process, you CANNOT remove it. Feb 22 15:45:47 you could absolutely do that. Feb 22 15:46:03 you could also probably just rm -rf the directory itself, and see if it gets recreated Feb 22 15:46:19 this sounds super hairy. Feb 22 15:46:23 hmm, so easy, let me try.. Feb 22 15:49:53 lov: yeah, * and -r are normaly never needed together Feb 22 15:49:58 but in this case, i dont think the dir can be recreated Feb 22 15:50:09 crap.. still can't delete it. Feb 22 15:50:12 com.android.browser wont have write access to /data/data itself Feb 22 15:50:31 if I specify a single file, it works.. Feb 22 15:50:53 tofra: also, have you tried just doing the command in a shell to see if it works? Feb 22 15:50:58 just adb shell in and run su rm -rf /data/data/com.android.browser/* Feb 22 15:51:05 clever: oh hmph, good point. Feb 22 15:51:11 very clever. Feb 22 15:51:13 without the su, it works.. Feb 22 15:51:26 I installed sshd, and then ssh'ed to it.. Feb 22 15:51:33 tofra: then the problem is how your using su, maybe su -c Feb 22 15:51:51 someonw here with rights in the official android bug tracker on google projects? Feb 22 15:52:25 timroes: that kind of question usually never ends well Feb 22 15:52:31 :D Feb 22 15:53:02 no panic, just have a bug that is already fixed and upstream, but as it seem noone closed it (though i wrote in the change message, the id of the bug) Feb 22 15:53:57 ah okay i was wrong, but that leads me to another question :D when does the javadoc reference get rebuild? Feb 22 15:54:22 the javadoc is fixed in code and upstream, but don't know when documentation is rebuild from that? Feb 22 15:56:24 tofra: I think there's a clear command. Try adb shell pm clear com.android.browser Feb 22 15:56:33 might have to run adb root first; I'm not sure Feb 22 15:56:47 so who got their IO '13 tickets? Feb 22 15:56:59 evanc: that can probly also be ran via su from an app Feb 22 15:58:07 the question is how :D Feb 22 15:58:22 timroes: the public docs seem to get rebuilt when a new version of android gets released Feb 22 15:58:29 as for how much more frequently, no idea. Feb 22 15:58:31 an thanks Feb 22 15:58:53 tofra: su -c pm clear com.android.browser maybe? Feb 22 15:59:16 pm not found.. Feb 22 15:59:36 /system/bin/pm maybe? Feb 22 16:00:38 it's there.. no PATH to it :S grrr.. Feb 22 16:04:12 grrr, segmentation fault Feb 22 16:04:25 wow Feb 22 16:10:39 Is a matrix from an ImageView only distorting the image, or also capable of clipping/cutting/cropping it? Feb 22 16:15:52 hi there, any of you ever worked with annotation processing (APT) on android? Feb 22 16:16:26 I don't get it to work Feb 22 16:20:04 man.. how hard it can be to delete a directory.. grrr.. Feb 22 16:25:42 Typical Google Play support... inform them that their new payment report schedule (not the payments themselves, the reports) create major tax filing problems for some users... hear less back from them than when Reto Meier promises to get back to you :') Feb 22 16:34:02 Chainfire, whats wrong with the report schedule? Feb 22 16:34:26 Has anyone been having trouble with jobb lately? Feb 22 16:36:20 canadiancow if sales are made in march, I am legally required to book them before april 15, as such, they have to be reported to the tax authorities before may 1. Thanks to the new schedule, at the very earliest I'll get the report on the 25th. Feb 22 16:36:43 after which it still has to be processed, documented, approved by an accredited accountant, and deposited at the tax authority Feb 22 16:37:14 you only have 15 days to report income? Feb 22 16:37:15 what if the 25th is a friday? Feb 22 16:37:19 change your accounting Feb 22 16:37:23 or god forbid I take a holiday Feb 22 16:37:49 mikedg> law is law Feb 22 16:37:53 i'm going to call this a bug in your tax law Feb 22 16:38:05 if you only have a month or 15 days or whatever to report income Feb 22 16:38:18 i dont think i actually understand the problem Feb 22 16:38:35 what changed about the reports Feb 22 16:38:47 Chainfire sells something on march 31, and his tax agency wants him to report it all by apri l15 or something Feb 22 16:38:59 but the reports arent available until after that Feb 22 16:39:06 so if you make a sale and never get paid you still have to report income? Feb 22 16:39:16 canadiancow well from their perspective, worst case scenario, you have 29 days to report it. but worst case for me, I get the report on a sale 55 days after the sale was made. Feb 22 16:39:59 and it wouldn't be the first time the payout reports are a week later than they should be Feb 22 16:40:11 well you have access to up to the minute sales stats dont you? Feb 22 16:40:33 yes, if only those included tax information and currency conversion like the "final" report Feb 22 16:40:40 these temporary reports are exactly one completely useless Feb 22 16:41:27 well again, i'm going to say that your tax law is unreasonable Feb 22 16:41:33 :P Feb 22 16:41:47 and Google telling me 55 days after the fact that a sale was made is perfectly reasonable ? :) Feb 22 16:42:01 or that I even get payed two weeks before I get that information ? Feb 22 16:42:02 well when you say "55 days" it sounds bad Feb 22 16:42:07 but it's "25 days after the month" Feb 22 16:42:08 thats because it is Feb 22 16:42:22 Chainfire: when did this start happening Feb 22 16:42:24 if a sale is made march 1, I get the report april 25 Feb 22 16:42:24 if they're paying you before the report's ready, that's an issue Feb 22 16:42:37 yes, but that's a "march sale" Feb 22 16:42:37 I'll actually have the money april 15th Feb 22 16:42:40 which ends march 31 Feb 22 16:42:49 yes, but for that sale the information is 55 days late ;) Feb 22 16:42:52 if you ahve the money, they must have the reports Feb 22 16:42:56 yes! Feb 22 16:42:58 so there's definitely something odd here Feb 22 16:43:02 Monthly Payout Report: this report is generated after payout has happened to reflect items in the orders paid out during a given month Feb 22 16:43:20 and if the damned payout report came on the same day as the money, I'd have two weeks to get everything arranged, and there isn't a problem Feb 22 16:43:39 but with this new payment schedule, the money comes at 15th-17th, the repot comes 25th-27th Feb 22 16:43:42 Chainfire: where do you live? Feb 22 16:43:47 mikedg Netherlands Feb 22 16:43:57 but I believe the situation is technically the same for most of EU Feb 22 16:44:08 you dont pay estimated taxes? Feb 22 16:44:13 you have ot pay exactly? Feb 22 16:44:19 yup Feb 22 16:44:36 well I can do estimated, but then they'd take estimated total revenue, and just tax me 21% of that Feb 22 16:44:54 which would in a normal month be more than twice what I actually owe them, so obviously that is not an ideal situation Feb 22 16:45:45 canadiancow so yes, actually the report and it being late is the big problem. I have no idea why the report takes longer than the money, while it's vastly more important to get the report than the actual cash. Can't find an explenation for this anywhere. Feb 22 16:45:57 And Play/Checkout support just ignores the matter entirely Feb 22 16:46:07 Chainfire, see PM Feb 22 16:46:16 I just find this so hard to believe Feb 22 16:46:34 mikedg, i'm with you on this :P Feb 22 16:47:29 mikedg if you pick up the fines, I'll join your beliefs :P Feb 22 16:47:57 I don't..:p Feb 22 16:47:57 in the meantime, I'll trust my accountants on this. Feb 22 16:49:24 Some day google will probably get some proper customer support.. Until then, you're screwed Feb 22 16:49:36 hey Feb 22 16:49:38 i help people :( Feb 22 16:49:50 you dont google Feb 22 16:49:56 i dont know what that means Feb 22 16:50:03 exactly Feb 22 16:50:03 google isn't a verb Feb 22 16:50:08 Google isn't just the android sdk Feb 22 16:50:08 Google never talk to individuals..everyone knowns that Feb 22 16:50:14 So that's kind of useless :p Feb 22 16:50:16 bro, do you even google? Feb 22 16:50:22 guys Feb 22 16:50:31 ladies Feb 22 16:50:31 what is google? Feb 22 16:50:37 a number Feb 22 16:50:40 novie: it's like bing, but not Feb 22 16:50:47 evanc: ah. Feb 22 16:50:47 :| Feb 22 16:50:50 it's better than lycos Feb 22 16:50:59 I've hit a big roadblock with my software, the problem is that most real Android devices have multicast disabled in the kernel (CONFIG_IP_MULTICAST). Feb 22 16:51:04 oooh ooh i can use this Feb 22 16:51:12 sounds like Chainfire is getting scroogled Feb 22 16:51:12 ambro718, are you sure? Feb 22 16:51:19 on the emulator which has CONFIG_IP_MULTICAST=y my software works Feb 22 16:51:21 there's a way to specifically do multicast on android Feb 22 16:51:39 I swear I've done multicast on "real" android devices Feb 22 16:51:42 i had multicast work on a logitech revue, galaxy nexus, etc Feb 22 16:51:47 canadiancow: yes, that's what seems to strange to me, I've seen http://developer.android.com/reference/android/net/wifi/WifiManager.MulticastLock.html Feb 22 16:51:58 ambro718, i have done working multicast Feb 22 16:52:05 so i'm like 99% sure it's possible Feb 22 16:52:11 and by 99 i mean 100 Feb 22 16:52:17 of course, if Google got their head out of their ass and just handled the tax situation themselves, like grown up appstores like Apple's, Microsoft's, and even Cydia (a one man operation ZOMG) do ... ;) Feb 22 16:52:18 anyway brb Feb 22 16:52:18 canadiancow: can you check your /proc/config.gz for CONFIG_IP_MULTICAST please? Feb 22 16:52:37 ask me in 30 mins Feb 22 16:52:41 google isnt your accountant Feb 22 16:52:41 ok :) Feb 22 16:53:17 Chainfire: yes, it's simply a matter of having one's head up one's own ass and there couldn't possibly be any other reasons whatsoever. You're so right. Feb 22 16:53:38 ^ Feb 22 16:53:54 i think canadiancow is the reason for google not handling taxes Feb 22 16:54:05 mikedg: how many taxes do cows pay? Feb 22 16:54:11 nobody knows Feb 22 16:54:15 thats why they dont handle this shit Feb 22 16:54:16 the burger tax Feb 22 16:54:59 i hope we get some early leaks of the nexus 8 Feb 22 16:55:15 like 5 minutes before it's unveiled Feb 22 16:55:44 which is when? Feb 22 16:55:59 evanc yeah I'm sure like always there's a very good reason that everybody else can do it but Google can't Feb 22 16:56:33 Chainfire: what do you mean by 'handle the tax situation themselves' anyway? Feb 22 16:56:56 Chainfire: handling tax on the Apple App Store is a major pain in the ass Feb 22 16:57:00 can anyone assist me in setting up an api key for maps api? i've gotten the sha1 fingerprint of my debug keyfile, put it into the api console along with the package name, but i still get authorization error Feb 22 16:58:16 MDijkstra orly? I've been told Apple handles it. But I know firsthand Cydia and Microsoft do. It's simple - they calculate the amount you need to give to the taxman (in my case, 21% of all sales (before Google's cut) to EU residents) - and pay it to the taxman. Done and done. Feb 22 16:58:47 21%? holy crap Feb 22 16:58:49 Even better, they pay it in Luxemburg instead of whatever EU country you're from, making it 15% instead of 21%, and as there are laws against taxing twice, that's the end of it. Feb 22 16:58:51 VAT Feb 22 16:59:03 15%? holy crap Feb 22 16:59:15 (Cydia does it in the UK IIRC, not sure what UK VAT is ATM) Feb 22 16:59:19 what kind of tax is that? high as hell Feb 22 16:59:30 Chainfire: well, depending on how you define 'handling it', but you still have to handle US taxes if you sell your stuff in the US Feb 22 16:59:41 I don't Feb 22 17:00:02 well you are going to get arrested when you show up for IO Feb 22 17:00:04 tax treaty ... I don't have to pay any taxes to any electronic sales to the USA Feb 22 17:00:49 21% is high? ;d Feb 22 17:01:40 what tax is that? Feb 22 17:01:44 MDijkstra are you in the EU at all ? Feb 22 17:01:53 sales tax? Feb 22 17:02:00 Income tax? Feb 22 17:02:08 VAT... I think translates to sales tax Feb 22 17:02:14 I wish that was income tax :P Feb 22 17:02:18 Oh Feb 22 17:02:19 income tax much higher Feb 22 17:02:27 in US sales tax varies by state, but it's usually forwarded to the customer. it's ~10% where i live. income tax varies but is paid end of year after adjustments Feb 22 17:02:57 last year i pad about mauybe 15% in tax, before my refunds Feb 22 17:03:12 *including* income tax ? Feb 22 17:05:06 have you guys checked out ExplorerDroid? Feb 22 17:05:08 http://www.kickstarter.com/projects/1801278366/navigation-at-sea-gets-upgraded-by-explorer-droid Feb 22 17:05:10 21% VAT (on all sales inside EU, to US I think the exemption is up to $1M in revenue), 52% income ;) Feb 22 17:05:59 25% VAT here Feb 22 17:07:20 mikedg: Honestly I'm surprised that someone hasn't done this before. The problem is that it's a bit of a niche market. Feb 22 17:07:58 You're also at the mercy of shittastic commercial GPS hardware in cellphones; if you're going to be boating offshore, it's gonna suck :( Feb 22 17:10:23 lov: it aint the shittastic gps hardware, it's the consumber GPS band/system Feb 22 17:10:43 military with same surf chips are inch accurate :) Feb 22 17:11:24 actually friends farming self drive system is dead accurate too Feb 22 17:17:39 I'm coining the phrase, Bangout. It's when you use Google Glass to Hangout with your Frat Brothers while you are banging a chick Feb 22 17:17:47 start using it Feb 22 17:19:31 I lol'd Feb 22 17:24:51 hey guys Feb 22 17:25:16 I need someone's help Feb 22 17:25:26 anyone care to look at my code please Feb 22 17:31:44 Rob|boR: might want to start by saying what the problem is Feb 22 17:54:27 evanc: guess he didn't want help. Feb 22 17:54:40 * evanc dusts off his hands Feb 22 17:54:43 another job well done! Feb 22 17:55:34 can some people please check if their android device has /proc/net/igmp ? Feb 22 17:56:07 mine does Feb 22 17:56:07 I'll check, booting it up now.. Feb 22 17:56:14 galaxy nexus running the latest OTA Feb 22 17:56:53 from what I've found, my Android only supports multicast via the java interfaces, because this test program works http://cafbit.com/entry/testing_multicast_support_on_android Feb 22 17:57:18 but multicast from native code via kernel interfaces doesn't, because I have CONFIG_IP_MULTICAST disabled Feb 22 17:57:50 on a Nexus 4 that is Feb 22 17:58:55 and in effect VLC can't play multicast stuff... Feb 22 17:59:52 if that's true, and you ahve a reliable test case, it sounds like a good candidate for b.android.com Feb 22 18:00:17 ambro718: nope, mine doesn't. Feb 22 18:00:34 "cat /proc/net/igmp" seems like a reliable test cast, isn't it? Feb 22 18:00:52 or do I need to write a native program trying to do multicast? Feb 22 18:01:09 Superbonk: thanks, I taught someone else has that problem too. Which device? Feb 22 18:01:30 ambro718: Galaxy Axiom Feb 22 18:01:46 okay I'll include that in the bug report Feb 22 18:03:35 ambro718, i dont know. i'm not a multicast expert Feb 22 18:03:41 i just know that when i used it in java, it worked Feb 22 18:13:28 canadiancow: so did you have a Bangout yet? Feb 22 18:14:18 Hello, I'm using BaseAdapter with JSONArray, but some values of this array does not contain my necessary data, so I would like to "jump" to next item, do return getView(pos+1, convertView, parent) is enough? Feb 22 18:14:38 If I do this, it return me repeated items. Feb 22 18:15:26 hey y'all Feb 22 18:15:38 I'd like to pass information between fragments in my viewpager Feb 22 18:15:43 Sambarboz: so that sobvious not enough Feb 22 18:15:44 onscroll Feb 22 18:15:50 where's the best way to do that? Feb 22 18:15:57 element 0 is bad data so you return 1, element 1 is good data so you return 1 Feb 22 18:16:01 do you see a problem? Feb 22 18:16:16 in the adapter or in the onscrolllistener? Feb 22 18:16:35 if you want to fudge it, make the rowheight 0 or 1 Feb 22 18:16:39 itll look a little funky Feb 22 18:17:13 mheld: create an interface for the fragment activity to implement Feb 22 18:17:18 and then use that as a way to communicate Feb 22 18:17:23 I'm doing this on getView() method. Feb 22 18:17:24 or just add a public static global Feb 22 18:17:38 But, somehow it return repeated items. Feb 22 18:17:48 Sambarboz: I just explained why it returned repeated items Feb 22 18:17:50 mikedg, a waht? Feb 22 18:18:01 Hmm Feb 22 18:18:03 mikedg: but it'd be called in the onscrolllistener? Feb 22 18:18:05 Sambarboz: No, validate the data before you pass it to the adapter Feb 22 18:18:21 canadiancow: a bangout, it's when you are wearing google glass and you are banging a broad, and you host a hangout with your frat bros Feb 22 18:18:32 SimonVT, and remove bad items from array, right? Feb 22 18:18:35 Yes Feb 22 18:18:48 Sambarboz: yes, but try to understand why your original method failed to work Feb 22 18:18:52 mheld: you can call it whenever Feb 22 18:18:57 mikedg, i don't have any frat bros Feb 22 18:19:01 You explained me. Feb 22 18:19:04 well make some Feb 22 18:19:09 go pledge Feb 22 18:19:19 and then you want me to start a hangout with you? Feb 22 18:19:36 i'll get right on that Feb 22 18:20:05 Cuz I'm just returning the next item, but the adapter callern don't know that I've jumped one item. Right? Feb 22 18:20:12 right Feb 22 18:20:17 Thanks :) Feb 22 18:30:18 I filed the multicast bug, http://code.google.com/p/android/issues/detail?id=51195 Feb 22 18:32:08 so, I have a listview who gets called setSelectionFromTop(pos, 0) on Feb 22 18:32:15 mikedg: you're at a 9 - dial it back to about 4 or 5 Feb 22 18:32:20 but it's not jumping anywhere in the listview Feb 22 18:32:29 could I be doing something wrong? Feb 22 18:34:24 i go up to 11 Feb 22 18:34:51 mheld: but it selected it right ? Feb 22 18:34:59 StingRay_: I... am not sure Feb 22 18:35:09 StingRay_: I'd assume it'd scroll there if it was selected Feb 22 18:35:20 mheld: try figuring that out Feb 22 18:35:21 why? Feb 22 18:35:33 StingRay_: because that's what the method looks like it does Feb 22 18:35:41 mikedg: false. you'll get /kb'd before you hit 11 Feb 22 18:36:12 StingRay_: I'm poking around with instanceStates right now Feb 22 18:37:02 I'm betting that's a better option than passing around a shared int that refers to the position of the highest scrolled list Feb 22 18:37:05 position in the list Feb 22 18:37:32 and yet it does nothing Feb 22 18:37:57 you call that and it dont get selected ? Feb 22 18:38:12 that is odd, are you sure it's not selected ? Feb 22 18:38:16 "selected" Feb 22 18:39:05 StingRay_: I'm printing out a couple logs -- lemme double check Feb 22 18:40:18 StingRay_: yeah, I'm setting the selected position to be 3 but it's -1 Feb 22 18:41:13 well, that's using the instanceState, lemme try the shared position int thing Feb 22 18:41:56 yup Feb 22 18:41:57 still -1 Feb 22 18:42:32 can anyone assist me in setting up an api key for maps api? i've gotten the sha1 fingerprint of my debug keyfile, put it into the api console along with the package name, but i still get authorization error Feb 22 18:43:12 (auhtorization error on the app). i put the api key in my manifest, doesn't seem to work. Feb 22 18:45:05 let's try in onResume instead of onStart Feb 22 18:46:32 nope! Feb 22 18:46:43 nope what ? Feb 22 18:49:18 StingRay_: still -1 Feb 22 18:49:34 what is ? Feb 22 18:49:40 the selected item position Feb 22 18:50:19 StingRay_: I even posted a delayed runnable Feb 22 18:50:21 still no dice Feb 22 18:51:46 StingRay_: http://pastie.org/private/n9ags1mfn9ovm3u2jfi68q Feb 22 18:53:23 so your saying get select position, that returns invalid_position -1 Feb 22 18:53:32 then your setting that invalid_position ? Feb 22 18:53:33 I guess Feb 22 18:54:04 no Feb 22 18:54:30 StingRay_: the vertical position is valid Feb 22 18:54:46 are you just wanting to maintain a selection ? Feb 22 18:54:58 or are you attempting to set the scroll to something ? Feb 22 18:55:16 I want to maintain a selection between different listviews Feb 22 18:55:53 I have a viewpager that contains a bunch of listviews Feb 22 18:56:02 horizontal scrolls should keep the same position Feb 22 18:56:28 canadiancow email sent, hope it makes sense and you can get it to the right people Feb 22 19:01:09 StingRay_: setSelection seems to work Feb 22 19:01:56 however it's not neat Feb 22 19:02:07 so I don't get it staying on the same x value Feb 22 19:02:12 Chainfire: canadiancow is the head of Tax Evasion at Google Feb 22 19:02:23 head taxidermist Feb 22 19:03:16 StingRay_: no, that was a lie Feb 22 19:03:18 doesn't work Feb 22 19:03:52 miedg :) Feb 22 19:03:55 *mikedg Feb 22 19:04:28 you sure you sent the email? Feb 22 19:04:42 I am now Feb 22 19:04:44 :P Feb 22 19:05:13 * Chainfire might have forgotten to actually press send Feb 22 19:05:16 kk got it Feb 22 19:05:21 when using a gridview, how would I create more space between the left/right edges of the screen and the grid items in portrait mode? Feb 22 19:08:47 Eppo: set left/right margins Feb 22 19:09:17 or alternatively, simply put the thing in a relativelayout and center it horizontally, giving it a fixed width Feb 22 19:10:23 Eppo: (you can define an alternative layout for portrait mode by making a separate folder in res called layout-port) Feb 22 19:11:03 i'm taking a break from here, if you need me ill be trolling in #android-designers Feb 22 19:11:04 if you set left/right margins in the gridview, it makes the view smaller than the screen and you can see whats behind it Feb 22 19:11:34 the second option may work... i'll give that a try. thanks Feb 22 19:11:47 well, if it's the root of your activity layout it will Feb 22 19:11:56 but that's easily solved by wrapping it in a layout Feb 22 19:12:01 Yeah, don't do the second thing Feb 22 19:12:10 Use padding Feb 22 19:12:16 oh, yeah Feb 22 19:12:46 Eppo: what SimonVT says, use padding instead of margin Feb 22 19:15:01 yah, there you go, that works. thanks a lot Feb 22 19:17:16 Chainfire, forwarded to who i hope is the right person Feb 22 19:23:52 thanks man. Next time we're at an HTC party where Nvidia skimps on the beer, I'll buy you one ;) Feb 22 19:27:36 lol Feb 22 19:34:41 why cant I find any examples of Context.revokeUriPermission() anywhere Feb 22 19:34:52 your permissions to search for it were revoked Feb 22 19:34:57 heh Feb 22 19:36:47 canadiancow: quick q; does work with EXTRA_STREAM ? Feb 22 19:40:06 this is often (tried?) sending attachments to gmail Feb 22 19:41:43 uhhh... i dont know Feb 22 19:41:45 is it? :P Feb 22 19:47:34 ok whats the default for startActivityForResult (from a fragment) ? Feb 22 19:47:44 to return to onActivity in that fragment Feb 22 19:47:49 or the fragmentActivity Feb 22 19:48:22 Both Feb 22 19:48:34 well it's really odd Feb 22 19:48:39 FragmentActivity dispatches it to the fragment if it's started from a fragment Feb 22 19:48:59 I just housed such a fragment in a new fragmentActivity Feb 22 19:49:23 the fragment no longer catches anything, they go direct to fragmentActivity Feb 22 19:49:40 Probably doing it wrong Feb 22 19:50:00 what can I do wrong there ? Feb 22 19:50:01 :) Feb 22 19:50:13 You'll find a way Feb 22 19:50:16 startActivityForResult in the fragment Feb 22 19:50:26 override onActivityResult Feb 22 19:50:29 nada Feb 22 19:50:51 g00s, are you explicitly granting the permission? Feb 22 19:51:06 "if its just part of an action_send, then it depends on api level" Feb 22 19:52:15 it should auto-grant on JB Feb 22 19:55:11 ahaa, not calling super on fragmentActivity override Feb 22 19:55:55 See, you found a way to do it wrong Feb 22 19:56:12 lol Feb 22 19:56:17 ya Feb 22 19:56:37 if there was a rankings for that I would be in the top 10 Feb 22 19:56:46 Easily Feb 22 19:58:19 weasily Feb 22 20:05:24 hi all - trying to put my project into version control. This is like say, day 1 with android programming. I'm a bit unawares of what should go into VC and what shouldn't, does anyone have a .gitignore from their project I could take a look at? Feb 22 20:05:45 local.properties = no, /bin = no, /gen = no Feb 22 20:06:23 author=mikedg = no Feb 22 20:06:25 pretty much that Feb 22 20:07:04 thanks Feb 22 20:07:34 AeroNotix: if you are using eclupse, you probably dont want those things either :P Feb 22 20:07:49 *eclipse ;) Feb 22 20:07:55 g00s: I'm using eclipse just to set up projects and link with build tools. Other than that I am editing with Emacs. Feb 22 20:08:20 it will still create dirs/files. Feb 22 20:08:37 Eventually I will use the android-sdk to generate projects. I saw how to do that before, just a couple of command line options. Then somehow get something to run+upload stuff from the command line. Feb 22 20:08:38 AeroNotix: how can you even build on an emac? Feb 22 20:08:45 mikedg: I don't. Not yet. Feb 22 20:08:53 mikedg: I'm using Eclipse to build. Feb 22 20:09:09 then why would you want to edit on an emac? seems horrendously slow Feb 22 20:09:50 mikedg: huh? Have you used Emacs? Feb 22 20:10:26 Not going to get into an editor war, but I'm very comfortable with emacs. Feb 22 20:10:49 yeah, my friend in college had one Feb 22 20:10:57 it was even slow when it was new Feb 22 20:10:57 I think you're thinking of a computer Feb 22 20:11:02 emacs is an editor Feb 22 20:11:11 Educate yourself Feb 22 20:11:12 hey, my layout is being recreated when the device is turned from portrait to landscape, i want to avoid that, my app should run as if the device is always positioned as portrait. any idea how? Feb 22 20:11:14 http://www.apple.com/support/emac/ ? Feb 22 20:11:18 mikedg: nope. Feb 22 20:11:28 ok Feb 22 20:11:35 that was what google said when i was feeling lucky Feb 22 20:11:37 mikedg: http://www.gnu.org/software/emacs/ Feb 22 20:12:33 why would he want to put linux on an emac? Feb 22 20:13:34 lov: because macosx is bad and it should feel bad Feb 22 20:13:38 :P Feb 22 20:13:44 kidding, I think viran asked a question Feb 22 20:13:58 hey does anyone use titanium? Feb 22 20:14:07 Emac was slow when it was new? You mean back in 1976? Feb 22 20:14:22 Ologn: he was unaware of the emacs of GNU fame Feb 22 20:14:32 Ologn: easy mistake to make if you're not up on your editors Feb 22 20:17:05 mikedg worst troll ever Feb 22 20:17:24 I thought it was pretty funny Feb 22 20:17:58 yeah I liked it Feb 22 20:18:10 canadians dont get my humour Feb 22 20:18:17 i didnt say it wasnt funny Feb 22 20:18:20 i just said you're the worst troll Feb 22 20:18:32 if he was trolling about that it was pretty lame Feb 22 20:18:47 canadiancow you are the worst noogler ever Feb 22 20:19:14 i'm pretty sure that isn't true Feb 22 20:19:37 have you seen vince vaughn? Feb 22 20:20:41 yeah, he's better than you Feb 22 20:20:42 he's money Feb 22 20:21:06 he would totally bro out for a Bangout Feb 22 20:21:41 why didnt i coin this phrase before they shot the movie :( Feb 22 20:21:45 i could have been phamous Feb 22 20:26:22 AeroNotix: it was a pretty decent troll, since he got you. Feb 22 20:26:40 lol Feb 22 20:26:56 to be fair, if you know mikedg, you know he's trolling when he speaks Feb 22 20:27:01 but if you don't know him... Feb 22 20:27:57 lov: but... he just made out like he was mixed up about two similarly named things. Not sure how that's 'trolling' me? Feb 22 20:28:14 because he wasn't "mixed up" Feb 22 20:28:19 he knew exactly what you were talking about Feb 22 20:28:32 and he got you to play along with it Feb 22 20:28:47 Just face it, you got trolled.. This was the best part: Educate yourself Feb 22 20:28:49 he was just blathering random things, as usual. nothing calculated to see here. move along, folks. Feb 22 20:29:00 Wow Feb 22 20:29:02 ok Feb 22 20:29:10 pragma-: is this what it's like in here, usualyly? Feb 22 20:29:18 s/usualyly/usually/ Feb 22 20:31:34 mikedg, I think you hurt his feelings :/ Feb 22 20:31:34 no it's just me Feb 22 20:31:45 i'm sorry, i have been reprimanded Feb 22 20:31:47 haha Feb 22 20:31:51 and will be taking a week off from this channel Feb 22 20:32:01 starting in 30 minutes Feb 22 20:32:47 holy fuck the emulator is really slow, any tips on speeding it up? Feb 22 20:33:02 download the x86 image and install haxm Feb 22 20:33:27 it should be pretty fast unless you are trying to run it on an eMac Feb 22 20:33:53 What about a T-89? Feb 22 20:33:57 should be fine, right? Feb 22 20:34:17 nah, you need at least a t1000 Feb 22 20:34:22 the liquid metal helps it go faster Feb 22 20:35:39 AeroNotix: fyi, the x86 images don't come with google APIs Feb 22 20:35:41 AeroNotix: you sound a lot like updog Feb 22 20:35:46 g00s +1 Feb 22 20:35:59 I have orientation="sensorLandscape" but on Galaxy Tab 2 7.0 it only gives me "Landscape" orientation Feb 22 20:36:03 any idea guys? Feb 22 20:36:04 mikedg: just so you get your childish kicks: what's updog Feb 22 20:36:08 OH YOU GOT ME Feb 22 20:36:15 snap! Feb 22 20:36:19 :) Feb 22 20:36:28 ahahahahah Feb 22 20:36:53 any one ? Feb 22 20:36:57 any of you dogs? Feb 22 20:37:03 the note 2 really needs a less shitty way of managing notes Feb 22 20:37:07 I don't care who you are, that's funny right there Feb 22 20:37:51 come on someone over here should be able to tell me something :/ Feb 22 20:39:28 capella: talked to someone on #firefox; they didn't think it was a bug in FF - but I do. probably more realistic if google didn't use the js scrolling techniques in the nav frames Feb 22 20:39:51 yah ... i got the same answers Feb 22 20:39:57 mouse wheel works, gestures dont. dunno Feb 22 20:40:05 remember their nick? Feb 22 20:40:10 Cork ? Feb 22 20:40:25 hello? Feb 22 20:40:29 hmmm .... yah ... seen that but dont "know" them Feb 22 20:41:00 not an admin Feb 22 20:41:16 Hello? Feb 22 20:41:21 i'll file a bug with both :) maybe google can work around the bug meanwhile FF guys can fix it … or not Feb 22 20:41:25 anyone ever dealt with sensorLandscape not working? Feb 22 20:41:37 io registration https://developers.google.com/events/io/ Google I/O 2013 registration opens March 13 (7am PDT / 10am EDT). Feb 22 20:41:42 it just gives me landscape with gtab 2 7.0 Feb 22 20:41:50 I was going to tell you guys it opens up MArch 14 but I'm not an asshole for the rest of today Feb 22 20:41:51 not with other devices Feb 22 20:42:22 barque: packt publishing just came out with a book on Android Fragmentation :D Feb 22 20:42:40 right ... Feb 22 20:42:50 so that's a no? :/ Feb 22 20:42:55 http://www.amazon.com/Instant-Android-Fragmentation-Management-ebook/dp/B00B4AXQ7E Feb 22 20:43:21 well yeah I deal with peculiarities over here on a daily basis Feb 22 20:43:27 however the issues are usually minor Feb 22 20:43:38 g00s: right ... file the bug so it registers on the group psyche .... I'm not sure who / what Cork is involved with Feb 22 20:43:48 capella: ;) Feb 22 20:43:58 Gtab => Gtab 2.0, sometimes surface created turns to surface created->destroyed->created_again Feb 22 20:44:21 Gtab => Kindle Fire, cannot use dismiss keygaurd Feb 22 20:44:46 g00s: put me as a cc: on the bug Feb 22 20:44:48 plus user_present broadcasts and pause resumes don't happen in the order that they happen on gtab (for instance) Feb 22 20:45:03 so you have to write code to handle all the above cases Feb 22 20:45:06 capella: do I just enter 'capella' ? Feb 22 20:45:07 minor stuff usually Feb 22 20:45:34 * g00s isn't familiar with the submission form yet Feb 22 20:45:49 yah ... in the cc: field type |:capella| bugzilla will autofill my email Feb 22 20:45:52 the IO website is already having issues, so lane Feb 22 20:45:54 lame Feb 22 20:46:20 not sure what component to file it towards ... Feb 22 20:47:00 x_x Feb 22 20:47:15 I guess |core| Feb 22 20:47:21 I wish there was a channel for gtabs only Feb 22 20:47:22 k, thx Feb 22 20:47:30 anyone here have a gtab 2 7.0? Feb 22 20:50:39 * g00s wonders if graphene supercapacitors can one day power our phones http://www.kcet.org/news/rewire/science/more-good-news-on-those-carbon-supercapacitors.html Feb 22 20:59:25 ok guys Feb 22 21:02:53 for some reason my listview doesn't show Feb 22 21:02:59 in a fragment Feb 22 21:03:04 but textview does show Feb 22 21:08:35 anyone know how i can change the opacity of tile overlays on maps sdk? Feb 22 21:09:09 i am retrieving overlay pngs from a webservice, using a nimplementation of UrlTileProvider, but i don't know which class i can extend and override to change the alpha of the image before it is drawn on screen Feb 22 21:17:51 g00s: i read an article a year or two ago, as well, about some uni folks in ... Michigan? having discovered a way to build lithium batteries with ~ 10x the current charge capacity Feb 22 21:18:04 which would be deeply transformative Feb 22 21:18:26 sounds too good to be true Feb 22 21:19:14 also Feb 22 21:19:15 * ctate | Washington State University researchers expect to bring to market before June 2013 a tin anode technology that will triple the energy capacity of lithium ion batteries. The technology involves using standard electroplating process to create tin nanoneedles.[ Feb 22 21:19:26 just that woudl be huge Feb 22 21:19:56 nice :) Feb 22 21:20:18 I think the biggest problem with phones is the battery Feb 22 21:20:38 IndiumIndeed: you could try removing it Feb 22 21:20:48 :) Feb 22 21:21:19 well I sort of did today when I dropped my galaxy s today to floor and jumped out Feb 22 21:21:49 I mean battery jumped out Feb 22 21:21:50 ctate: heard anything about cobalt batteries? Feb 22 21:21:52 and here i thought the biggest problems with phones was the carriers Feb 22 21:21:57 oh wait, maybe it's the users Feb 22 21:22:21 well, if we get rid of all the users, then the battery capacity won't matter Feb 22 21:22:30 so it solves multiple problems Feb 22 21:22:33 ctate: +1 Feb 22 21:22:47 users: the cause of and solution to all our problems Feb 22 21:23:29 I am working in university, where they study batteries. Based on my experience of quality of university research, I don't believe that news before it becomes reality. In laboratory they can do lot's of thing and claim to be able to do even more. Feb 22 21:24:44 http://news.wsu.edu/pages/publications.asp?Action=Detail&PublicationID=31776 Feb 22 21:24:54 but yes, the proof is when they actually ship product Feb 22 21:26:01 ctate: are you familiar with content provider's security model (uri permissions, etc) i was reading http://stackoverflow.com/questions/4179594/what-is-the-correct-permission-handling-when-sending-sensitive-app-data-as-email and dont find hackbod's answer very enlightening. i'm bothered not understanding why this does not work Feb 22 21:26:23 oh ack yeah, it's subtle and i haven't worked with it Feb 22 21:26:30 ok, thx Feb 22 21:26:58 Any game developers around? Have you noticed Spine animation tool in Kickstarter? It seems awesome. Can't wait to try it for my game. It is similar to Spriter that was also in Kickstarter maybe year ago, but I think that project is pretty much dead. http://www.kickstarter.com/projects/esotericsoftware/spine Feb 22 21:27:18 hackbod's comments seem mostly to me to be about hwo much data you can pass directly through a binder call Feb 22 21:27:24 which is pretty limited Feb 22 21:30:26 ctate: yeah; my app was woking fine up until JB. The functionality that breaks is ACTION_SEND with EXTRA_STREAM to gmail. Even though there is a proposed "solution" i don't like not being able to articulate why I need to do it this way Feb 22 21:31:25 part of me wonders if the permission stuff isn't working because the Uri is in the EXTRA, not setData() Feb 22 21:31:34 I have also some weird stuff going on in JB with my live wallpaper. Feb 22 21:32:05 g00s: could be, hmm. Feb 22 21:33:40 ctate: also, when is one supposed to call Context.revokeUriPermission() ? Feb 22 21:34:07 if I grant the permission and start off the Intent, how am i to know the receiving component is done and i can revoke the permission ? Feb 22 21:34:34 i have exhausted my knowledge of this topic. Feb 22 21:34:38 :( Feb 22 21:34:41 yeah. Feb 22 21:34:50 ctate: thanks , though Feb 22 21:35:24 de nada (almost literally) Feb 22 21:36:18 i was hoping that since i had targetSdk=8, some compatibility path would have fired any I would have been unscathed ;) Feb 22 21:36:24 (on JB) Feb 22 21:36:57 When I am setting live wallpaper I get error ""Publisher closed input channel or an error occurred". I do not get this in Gingerbread. Feb 22 21:38:49 okay so I got a fragment set up Feb 22 21:38:56 but ugh listview won't display Feb 22 21:39:02 the code compiles Feb 22 21:39:12 but the tab is blank Feb 22 21:39:16 if I put a textview, it shows up Feb 22 21:39:27 any suggestions? Feb 22 21:42:55 test Feb 22 21:44:42 i know this stuff is out of android, but my friend gave me app to help your eyes while looking at screen called f.lux (http://stereopsis.com/flux/) i have installed it now, and screen colors are pretty cool and harmless to eyes Feb 22 21:44:56 just i wanted to share with you guys Feb 22 21:45:14 because we use computers a lot Feb 22 21:45:41 MoshDev: I've been using it for years ;) Feb 22 21:46:11 g00s: am using it for the first time now, but my eyes are relaxing now :D Feb 22 21:53:46 ctate: do you know what the consequences would be if I set maxSdk=15, even though people with 16/17 have already purchased it ? Feb 22 21:54:18 i *believe* that nothign would happen to those who have already purchased it, and nobody running anything later would be able to purchase/download it from the Play Store, and that is all. Feb 22 21:54:31 (maxSdk is strictly a Play Store thing; it's not enforced by the framework in any way) Feb 22 21:54:48 ok, thanks Feb 22 22:00:43 "A middle-school student was burned and his classroom was evacuated when his cell phone exploded in his pocket" … yeah, we need new battery tech :( Feb 22 22:07:21 hey, does anyone know how to use View#getDrawingCache() to get a screenshot of your views including dialogs? Feb 22 22:12:03 any developer want to make easy money? Feb 22 22:12:05 lol Feb 22 22:12:28 don't we all :D Feb 22 22:12:38 are you a developer? lol Feb 22 22:12:52 good evening! Feb 22 22:12:53 I got one guys, I caught the developer TheBunnyZOS lol Feb 22 22:13:03 <_< Feb 22 22:13:07 >_> Feb 22 22:13:14 now...develop... :) Feb 22 22:13:15 lol Feb 22 22:13:19 * TheBunnyZOS escapes down the rabbit hole Feb 22 22:13:29 -_- Feb 22 22:13:37 * Rob|boR waits for at the bottom. Feb 22 22:13:46 but yeah.. Feb 22 22:13:54 for the life of me I can't get a listview to show Feb 22 22:14:12 I have fragments set up (at least I think) Feb 22 22:14:21 I need someone to help me show this list view in the fragment Feb 22 22:14:55 Hello Feb 22 22:15:01 hi Diyar Feb 22 22:15:32 About this issue " Unrecoverable bootloader error (0x00000004) " does have fix it yet? tf201 !! Feb 22 22:15:36 Can anybody tell me why it doesn't work when I add an OnSharedPreferenceChangeListener in a Service (created as field and registered in onCreate)? When I change a preference in my app's PreferenceActivity, the listener in the Service isn't called. Does anybody have an idea how I can fix that? Feb 22 22:16:05 hey now...I was here first ^_^ lol Feb 22 22:16:11 The bunny is mine Feb 22 22:16:54 why am I getting a menu button at the bottom of my app? Feb 22 22:17:07 because your app wants to have options Feb 22 22:18:21 Rob|boR: it does... but it's in an actionbar Feb 22 22:18:54 Rob|boR: I mean, my target is android-16 Feb 22 22:18:54 sorry mheld, I'm probably more clueless lol Feb 22 22:19:04 so, I dunno what is going on Feb 22 22:19:07 I'm here trying to get help on using fragments Feb 22 22:19:10 and listview Feb 22 22:28:10 Is it possible for a thread object to call the main thread in its run() function deffinition? Feb 22 22:28:57 or run a specific function in the main thread. Feb 22 22:32:27 Basically, I want a function to run after the thread get's done. And calling the function within the thread seems to run the function in that thread, but I want the function to run in the main thread. Feb 22 22:33:28 nug700: you probably want to be using an AsyncTask (it handles this type of stuff for you) Feb 22 22:33:55 does it have a "sleep()" function? Feb 22 22:34:52 nug700: sleep() is unrelated to threads, but use SystemClock.sleep() Feb 22 22:35:07 no, it has onPostExecute() Feb 22 22:35:15 if you are sleeping threads, you're doing it wrong. Feb 22 22:35:45 read the docs on AsyncTask. it does what you want. Feb 22 22:35:59 Basically all, the sml-rpc server I'm accesing requires a wait time of at least 200 microseconds between calls Feb 22 22:36:12 xml-rpc* Feb 22 22:42:41 does the AsyncTask extend the Activity class? Feb 22 22:43:22 no Feb 22 22:44:48 the docs says I need to extend the AsyncTask.. but everything else in the scrypt needs the Activity class Feb 22 22:46:10 I'm trying to get the width of a listview in onActivityCreated but I keep on getting a width of 0 Feb 22 22:46:27 is there some way I should be grabbing it that's not getMeasuredWidth or getLayoutParams().width? Feb 22 22:46:58 All this shouldn't be necessary.. All I need to do is make sure 20 ms pass between every call to the xml-rpc server. Feb 22 22:50:44 uh, 200us != 20ms Feb 22 22:51:41 ctate: all race conditions can be solved with Thread.sleep(). Duh. Feb 22 22:56:56 JesusFreke, sure it does. Feb 22 22:57:00 there's 10us in a ms right? Feb 22 22:57:01 :P Feb 22 22:57:08 hey gusy :) Feb 22 22:57:12 guys* Feb 22 22:57:18 canadiancow: there are 10us in a ms Feb 22 22:57:34 but there might be a few more than just 10 :) Feb 22 22:58:37 I thought android development was in Java? Feb 22 22:59:00 primarily it is Feb 22 22:59:02 AeroNotix: what do you think now ? Feb 22 22:59:09 g00s++ Feb 22 22:59:18 It's more like XML with some minor parts in Java. Feb 22 22:59:37 maybe if you're making something ridiculous :P Feb 22 22:59:42 I hand-write my android application's dex file in a hex editor. Feb 22 22:59:52 JesusFreke, i'll accept that Feb 22 23:02:32 the simpsons game is so great Feb 22 23:02:42 everyone i splaying it :D Feb 22 23:06:40 does someone have a n4 and is using this new snapdragon app? Feb 22 23:19:25 whats hte best strategy to open up native maps w/in a webkit view Feb 22 23:23:29 huh? Feb 22 23:23:51 you want to launch the google maps app from a webview? or you want to embed it in the webview? Feb 22 23:23:53 or waht? Feb 22 23:24:16 acidjazz: the iosched app opens up google maps in a webview Feb 22 23:24:31 but that's not "native maps" Feb 22 23:24:50 yeah - i think they did that because of the map/fragment stuff at the time Feb 22 23:25:20 what the hell. they also want my phone number Feb 22 23:26:03 Styler2go, the battery one? Feb 22 23:26:28 no.. i am trying to register a domain... Feb 22 23:26:42 you were asking about the snapdragon app Feb 22 23:26:43 :P Feb 22 23:26:47 Which Image Downloader do you prefer? https://github.com/nostra13/Android-Universal-Image-Loader or https://github.com/novoda/ImageLoader or another? Feb 22 23:27:01 i know.. Feb 22 23:27:09 are you using it? Feb 22 23:27:12 yes Feb 22 23:27:25 it says to cehck back in a few days for results Feb 22 23:27:27 is it really saving battery usage? :) Feb 22 23:27:35 ah for you too, ok :) Feb 22 23:31:35 lol they also want fax... i am crying.. Feb 22 23:32:14 Styler2go: i hope they dont want your ssn Feb 22 23:32:30 :D Feb 22 23:32:32 dna sample, etc ;) Feb 22 23:32:49 but i hear faxes are used quite often in japan ;) Feb 22 23:33:05 i am not from japan Feb 22 23:33:21 i dont have a fax so i cant register a simple domain or what? :D Feb 22 23:33:48 i use namecheap; never had them ask for a fax Feb 22 23:34:38 i wan tto buy the domain where i have my root server Feb 22 23:45:17 Is it better to make a separate tablet and phone version when it comes to android or a single version that works on both platforms? Feb 22 23:45:28 depends Feb 22 23:45:47 maybe it would be easier for you with a single version Feb 22 23:46:02 can you make a user interface that works well on a 12" tablet, and a 2.5" phone Feb 22 23:46:24 SpeedEvil: Fragments? Feb 22 23:46:54 I should be able to, whats generally the most popular method? Feb 22 23:46:57 it's clearly trivial to simply blow it up graphically, but sometimes the ui can benefit from radical changes Feb 22 23:47:13 i think its very difficult. its not just a matter of design, but usage. i think the usage scenarios for a 2.5-7 are about the same, and then bigger is more like a laptop Feb 22 23:49:33 whats with phones which can extend by mhl or other docks to a big screen? will they then be like a tablet for apps? Feb 23 00:04:06 capella|zzzz: https://bugzilla.mozilla.org/show_bug.cgi?id=844346 :) Feb 23 00:04:33 lol Feb 23 00:09:57 hey guys... I am using an IntentServie to grab some stuff from a website and it is started when my application first runs. Is there anything like AsyncTask's onProgressUpdate method for IntentService? The reason is I do not want the user to do anything until the IntentService is finished doing its work...or should I just make a progressdialog and display it for (x) amount of time at startup? Feb 23 00:11:01 maybe ... just maybe.. put a bool into your sharedprferences and wait until the service sets it to true Feb 23 00:13:48 unless you're taking steps to avoid it, the service is running in the same process as your UI Feb 23 00:13:56 so you can just use global variables as a signal-passing mechanism Feb 23 00:14:10 learn about multithreaded programming! Feb 23 00:14:31 i'm well aware of multithreaded programming, new to android tho Feb 23 00:14:35 anyone already tried ubuntu on his phone? Feb 23 00:15:00 i played with it briefly on a Nexus7 yesterday Feb 23 00:15:07 how is the service running on the same thread as the UI?? can't be cuz it does network operations Feb 23 00:15:20 what do you think about it? Feb 23 00:15:29 Styler2go: the UI is a trainwreck and it's godawful slow. Feb 23 00:15:34 hey guys, wondering if I could get some help here Feb 23 00:15:48 KillmeSoftly: services do not run "on" threads any more than Activities do. Feb 23 00:15:54 there is a looper for the application Feb 23 00:16:10 is it possible to detect if the phone is in landscape or portrait orientation if the user has turned *off* auto display rotation? (i.e. locked it to portrait) Feb 23 00:16:12 that looper services all of the lifecycle callbacks for the application's components: all of the activities, services, broadcast receivers, etc. Feb 23 00:16:23 HorizonXP: you can always read the orientation sensor yourself Feb 23 00:16:25 ctate: i ad no problems with speed issues on my phone... but its very buggy :( Feb 23 00:16:36 right now I have a camera app that handles orientation changes perfectly, except when this setting is one Feb 23 00:16:39 * on Feb 23 00:16:40 Styler2go: scrolling around in the UI was horrifically janky Feb 23 00:16:46 ctate: via the Sensors API? Feb 23 00:16:50 HorizonXP: yup Feb 23 00:16:54 gotchya Feb 23 00:17:08 here's the thing: the default Camera app on 4.2.2 doesn't handle this either Feb 23 00:17:10 ctate: janky? Feb 23 00:17:18 okay okay fair enuff.. 1 more question....this is a hypothetical situation.... Say I create an app that has a media player. the media player streams live TV content from an illegitimate source (which is coming from me or my server)......am I at fault (with the law) for creating an avenue to display that content? Feb 23 00:17:20 so I'm wondering if I should do it, since it may not be expected behaviour Feb 23 00:17:44 Styler2go: stuttering, low (and wildly varying) frame rates Feb 23 00:17:45 or even a website Feb 23 00:17:46 apparently on iOS, the camera app does handle orientation changes, even when the device is locked, so it's expected there Feb 23 00:18:02 also most of the UI wasn't actually wired up; it just showed dummy content that you couldn't interact with Feb 23 00:18:30 HorizonXP: mostly you just need to know what exif tags to put in about orientation Feb 23 00:18:43 ctate: Yeah... it was a beta... but what do you think about this overall? Feb 23 00:18:52 if it would be running great Feb 23 00:18:52 ctate: ah, sorry, should've said that this is for video recording Feb 23 00:19:03 ctate: so your point is still valid Feb 23 00:19:14 Styler2go: i thought the UI was a trainwreck even if it were running smoothly. Feb 23 00:19:18 but that's why I care; trying to combat portrait video syndrome :P Feb 23 00:19:36 HorizonXP: so force landscape orientation :) Feb 23 00:20:02 someone good at apache2 configuration? Feb 23 00:20:11 ctate: i could, but that's evil :P Feb 23 00:20:22 well, sorta Feb 23 00:20:44 i just want to set up subdomains... but its not working :( Feb 23 00:34:22 anyone used the Google Downloader API ? Feb 23 00:34:27 for APK Expansion files Feb 23 00:49:59 hi everyone. how can I make a dialog size responsive across all devices? Feb 23 00:50:20 what do you mean Feb 23 00:50:37 anyone used the Google Downloader API for APK Expansions? Feb 23 00:50:55 candiancow: I'd like the dialog size to stay fixed across all devices Feb 23 00:51:02 the dimensions Feb 23 00:51:17 so it looks the same on different screens Feb 23 00:51:32 is this a standard dialog, or something really custom Feb 23 00:52:12 i mean you can always theme an activity as a dialog, and just set a fixed width in the layout Feb 23 00:52:26 standard. I'm using the style them dialog as my activity's theme Feb 23 00:55:24 So I guess no one? Feb 23 00:58:40 well why do you want it the exact same size Feb 23 01:00:39 if you do that, you're basically guaranteeing that it will look tiny and crap on 10" tablets Feb 23 01:03:27 my app intends to timeout really often when trying to invoke my webservice. Every second attempt is timed out.. I wonder if someone can help me out and see if there is some possible troubles in my http code: http://pastebin.com/NwqKLN4r Feb 23 01:03:38 Anyone know of a heatmap sdk for android so I can track user interactions and where they click/swipe etc? Feb 23 01:26:38 got my raspberry pi yay Feb 23 01:39:06 hm, is it possible to override a method within the constructor of an arrayadapter? Feb 23 01:39:30 what do you want to do? Feb 23 01:40:06 I'm trying to define a custom arrayadapter that expands some xml in the getView() Feb 23 01:40:27 And I was trying to be lazy, ie. override the getView in the constructor Feb 23 01:40:48 http://www.ezzylearning.com/tutorial.aspx?tid=1763429&q=customizing-android-listview-items-with-custom-arrayadapter Feb 23 01:41:52 KillmeSoftly: :D Feb 23 01:42:52 i don't understand what you mean by overriding getView in the constructor? do you want to create the ArrayAdapter as an anonymous class? Feb 23 01:44:19 yes Feb 23 01:46:36 i don't think you can, because for a custom arrayadapter you will have to specify your own constructor Feb 23 01:46:46 and the java language spec doesn't allow those for anonymous inner classes Feb 23 01:47:02 ok Feb 23 01:47:39 if the variables you would want to pass to the constructor are class members of your activity, you might be able to Feb 23 01:48:03 but it's probably a bad idea, I'd go with an actual class for your adapter Feb 23 01:48:14 the reason I asked was because I am having silly issues with an actual class Feb 23 01:48:19 you can make it a named inner class if you don't want it to be accessible outside of your class Feb 23 01:48:22 how so? Feb 23 01:48:44 unable to get fields from inside the activity? Feb 23 01:49:19 super(context, layoutResourceId, flagList); //The constructor Object(Context, int, List) is undefined Feb 23 01:50:18 you're not extending ArrayAdapter Feb 23 01:50:24 actually, I see what's causing that error Feb 23 01:50:29 yes, that's correct :) Feb 23 01:53:22 get cannot be resolved or is not a field Feb 23 01:53:36 String flagName = flagList.get[position].getName(); Feb 23 01:53:43 oh, square brackets Feb 23 01:55:33 does clock_gettime(CLOCK_MONOLITHIC) count time the phone is sleeping? Feb 23 02:06:52 Hi guys...this may sound like a stupid question but bare with me. I have a FragmentActivity(call it MainAct) that obviously hosts fragments...I want to call on a public method that is within MainAct in a fragment...how do i do this? Feb 23 02:09:53 meh Feb 23 02:09:56 brb Feb 23 02:19:57 hm, why can I not access the public methods of my object from within the arrayadapter class? Feb 23 02:20:09 eg. I have a public getId(); Feb 23 02:21:40 but String item_content = flagList.get(position).getId(); has the error "The method getId() is undefined for the type GPSFlag Feb 23 02:30:33 I am trying to catch the home button and open an activity if it is pressed, is it best to try and capture the home button from within a service Feb 23 02:33:18 You cannot intercept the home key. Feb 23 02:33:38 it's special cased in the input dispatch stack (as is the power key) Feb 23 02:35:07 I see people doing it from within activities Feb 23 02:35:19 well at least they claim to Feb 23 02:35:30 they may be TRYING to do it, but it doesn't work. the Home key code is never delivered to apps. Feb 23 02:35:46 well thats a bummer Feb 23 02:36:01 need more buttons on this thing then Feb 23 02:36:06 not for users it isn't :) Feb 23 02:36:28 what are you trying to accomplish in your app? Feb 23 02:37:05 being up music controls in a faded window over whatever else is currently running Feb 23 02:37:31 bring up that is Feb 23 02:41:42 jiffe1: do you mean that when your music service is running, hitting the home key brings up the music service controls? Feb 23 02:42:12 im signing up for a new developer account. is developer name meant to have spaces in it for multiple words? Feb 23 02:42:27 because as a user I would find that a bit of a pain, on account of me expecting that action to bring up the home window Feb 23 02:43:16 b0nn: this is for a carputer setup, my plan is one press would bring up the music controls (volume, next track etc), a second press would perform the actual home action Feb 23 02:45:02 hm, if I were doing that, my cheap and nasty hack would be to make the home screen have your controls on it Feb 23 02:46:22 b0nn: yeah and thats the way most of these launchers work, I would like to avoid exiting and having to re-enter the app I'm in though, the back button or an close button in the control screen could just take me back Feb 23 02:46:31 if I can't do it I can't do it, was just a thought Feb 23 02:50:01 the system fires an intent to the default launcher when the home button is pressed (unless at the lockscreen or other special cases). android does allow launcher replacements and in theory your launcher replacement app could be a transparent activity with music controls where the back button exists and if the home intent is received while the music activity is already active your app sends a home intent to a different launcher app. there Feb 23 02:50:01 are some apps that do this like Quick Desk (older app though). in practice there can be issues. Samsung uses double-tap home for S-Voice. HTC advertised that it was using double-tap home on their new One device for something. Old motorola devices used it for voice search. Custom roms do crazy things. Feb 23 02:51:12 with this setup the user will have to explicitly set your "launcher" as the default Feb 23 02:52:58 also android prioritizes keeping the default launcher in memory, because loading the desktop (and widgets) can be slow and annoying. But if your app is the default launcher then it will priority that, not the actual screen people consider their home screen. so basically your app will be causing slow home screen loads and redraws. Feb 23 02:56:26 gotcha Feb 23 02:56:31 I'll have to put some thought into that **** ENDING LOGGING AT Sat Feb 23 02:59:58 2013