**** BEGIN LOGGING AT Wed Feb 13 02:59:58 2013 Feb 13 03:00:21 matt9: I'll wait and see what it looks like after this years I/O. I did have a look at the official github app, but phew Feb 13 03:00:46 ah I like that one too Feb 13 03:00:51 actually i just saw a twitter post about this Feb 13 03:01:07 They use so many libraries to support them, it's very modular, but also comples. Feb 13 03:01:24 kakazza: the I/O app is a good example. Feb 13 03:01:29 HomeActivity extends TabPagerActivity<>, which in turn extends PagerActivity, which... Feb 13 03:01:40 some sweet open source apps https://twitter.com/readyState/status/301039935010525184 Feb 13 03:02:29 anyone have a favorite image gallery library? Feb 13 03:02:30 novie: noted Feb 13 03:03:27 Wavesonics: what do you mean by gallery? Feb 13 03:03:35 like a photo gallery Feb 13 03:04:09 Wavesonics: there's this: https://github.com/lucasr/smoothie Feb 13 03:04:21 the basis of the image handling in Pattrn. Feb 13 03:04:29 oh nice Feb 13 03:04:33 awesome thanks for the tip Feb 13 03:04:49 can i test my app via the market instantly? or do i need to wait for anything Feb 13 03:05:05 novie, shot in the dark, but do you know if it handled ver large images? I've been trying some others as well as toying with rolling my own, and it looks like handling veyr large images on Android is a bit involved Feb 13 03:05:27 Wavesonics: depends on what you mean by very large. Feb 13 03:05:31 acidjazz, there is some times a delay from pushing it live and seeing it in the store, but usually not more than 10 or 20 min Feb 13 03:05:44 it can be a longer delay Feb 13 03:05:44 Wavesonics: what about initially? Feb 13 03:06:10 acidjazz, there is no review process Feb 13 03:06:12 novie, like 3000x3000 Feb 13 03:06:12 acidjazz: it takes some time, I haven't seen it take more than 2 hours Feb 13 03:06:34 novie, acidjazz in one rare case I say it take 8 hours lol, but thats highly unusual Feb 13 03:07:02 yea. there isn't really a set time. it varies for sure. :) Feb 13 03:07:18 Wavesonics: you aren't trying to display more than one that size at a time are you? Feb 13 03:07:37 Wavesonics: awesomeness Feb 13 03:07:40 well not exactly at the same time, but in a paged manner Feb 13 03:08:26 novie, any experience with this project? https://github.com/alvinsj/android-image-gallery Feb 13 03:09:22 Wavesonics: nope, haven't used it. Feb 13 03:11:50 Good evening :) Feb 13 03:12:53 If anybody is around, I have a couple of questions regarding Push notifications. I've done a lot of reading and am a little confused Feb 13 03:14:38 kungpao: just ask your question :) Feb 13 03:15:03 <_genuser_> hello folks. trying to have a background process monitor is tasks are due. they can be due based on time of day, day of week, day of month. previously someone mentioned AlarmManager. Does it allow such alarms? or does it require specific times and the app has to manage the alarm? Feb 13 03:15:12 <_genuser_> *if tkas are due. Feb 13 03:15:56 _genuser_: alarmmanager allows you to schedule a point in time in the future for your app to run. Feb 13 03:16:22 this way you don't have to leave your background process running all the time. Feb 13 03:16:24 K. I have push notifications working to my device only (got the output from the log). Sending the notices using a PHP page. I want to know how to register new devices to store the device ID in my database Feb 13 03:16:59 <_genuser_> novie: so that means telling it "every friday" isn't possible without further managing the service. Feb 13 03:17:00 Using Google API Feb 13 03:20:21 kungpao: when you get a registration intent on device from gcm, you have to post that to your server. Feb 13 03:20:37 <_genuser_> so then is it better to keep setting an alarm in the future for app to wake up and check if tasks are due? let's say everyday it sets it for midnight. and if on the day something is due during the day at a certain time, set another alarm for it? Or is it better to write a service that just keeps running and checks using whatever frequency is configured? Feb 13 03:20:48 _genuser_: you could look at the code in the open source calendar app for reminders Feb 13 03:22:01 <_genuser_> novie: I'll give it a go. thx. :) Feb 13 03:22:10 np Feb 13 03:22:25 _genuser_: I wouldn't write a service that keeps checking. Feb 13 03:22:53 @novie Would I just use an HTTP post? Feb 13 03:23:15 kungpao: sure. you'll just need to communicate directly to your service. Feb 13 03:24:10 <_genuser_> novie: I think same. A running service will probably keep running battery down too. Feb 13 03:25:04 _genuser_: also, items you schedule with the alarmmanager do not persist when the device is rebooted. Feb 13 03:25:54 <_genuser_> novie: uhoh, more reading then. Feb 13 03:26:46 _genuser_: have a look at the alarmmanager docs at d.android.com and also some of the calendar app sources. Feb 13 03:28:13 <_genuser_> novie: right, reading up on AlarmManager on developer.android.com. Interesting environment with android. Only if they had a VB6.0 for android, lol. Feb 13 03:28:25 lol eek. Feb 13 03:29:46 <_genuser_> the documentation is pretty alright. Already had half of the app functioning. Didn't think it would be easy enough. But docs have been fairly easy to understand. Feb 13 03:34:17 is there an xml attribute to set an image to always display at the top of a ? Feb 13 03:34:42 or would i need to use a 9patch background, with a transparent part that can stretch to fill everything not top Feb 13 03:37:48 how can i get one photo in android Feb 13 03:37:55 progrmatically Feb 13 03:38:46 tona: one photo from where? Feb 13 03:39:29 novie: do you know much about android styles? Feb 13 03:39:35 i want to use the camera and to save the full ath into sqlite, i invoke my camera with intents but how can i save my photo Feb 13 03:41:05 you get back a bitmap Feb 13 03:42:41 err, actually a uri Feb 13 03:43:48 do yuo have a example to undertand better Feb 13 03:44:34 tona: d.android.com, google, stackoverflow, etc, all have examples Feb 13 03:45:13 tona: yea, lots. Feb 13 03:45:30 https://www.google.com/search?q=android+save+photo+from+camera&oq=android+save+photo+from+camera&sourceid=chrome&ie=UTF-8 Feb 13 03:48:47 ok Feb 13 03:48:50 thhanks Feb 13 03:53:15 Post is working, cool! Am I supposed to unregister device ID's when the program is closed? Feb 13 03:53:34 kungpao: nope. Feb 13 03:53:43 unregister when the user logs out Feb 13 03:53:54 or when you get the intent from gcm to. Feb 13 03:54:15 kungpao: read through the documentation regarding that Feb 13 03:55:15 Basically the way I am setting it up is if the program is running, and the preference is checked, it will send the push Feb 13 03:55:20 There is no logging in Feb 13 03:56:15 It's a program to monitor when new sales are added Feb 13 04:10:18 @novie , i lauch my camera into apps and i take many pictures it is not saving anything on my mnt/sdcard Feb 13 04:18:57 Hi all, I'm having a problem with using the camera. First it would behave as though the device was in landscape mode when it is in portrait mode (so the preview was sideways), but I solved that by using setDisplayOrientation. However the image is getting distorted. I've made sure my view containing the preview is a correct 4:3 ratio which is the same ratio the camera is set to capture. Can anybody help me out Feb 13 04:18:57 with a suggestion on what might be the problem? Feb 13 04:19:51 snowinferno, check and see if you are drunk, if so, sleep it off and try again Feb 13 04:21:16 Wavesonics: hah I wish being drunk were the cause Feb 13 04:21:30 :P Feb 13 04:24:56 LoJack your camera Feb 13 04:26:08 not sure what you mean KillmeSoftly Feb 13 04:34:22 snowinferno - im just kidding Feb 13 04:35:13 KillmeSoftly: I figured, I wasn't sure if you were referring to LoJack as in what you get done to your car to be able to locate it or something else :) Feb 13 04:36:59 I am an android developer developing apps for 2 yrs.I am having HTC one v and when i listens to radio and want to change the station i need to change it through my phone's radio app.I need to know if i can do it via headset directly with the hardware button on the headset like some nokia phones provides this feature( changing the songs and radio channels ) ?Is it possible through java code or NDK ? Feb 13 04:46:08 Android03: if the radio app accepts intents to change things, probably. Otherwise, probably not. Feb 13 04:47:53 dragorn: ok but how can i intract with radio app using headset?do i need to go for NDK for the purpose ? Feb 13 04:48:38 you'd write something to listen to headset events and then send intents to the radio app Feb 13 04:48:40 I would presume Feb 13 04:51:18 dragorn: ok Thanks i would do r&d more on it Feb 13 05:34:57 do assertions work in android? Feb 13 05:35:12 supported* Feb 13 05:36:22 on the emu, i think Feb 13 05:36:28 on a device, i dont think Feb 13 05:37:13 hey y'all Feb 13 05:38:43 is there any way I can get an expandablelistview to expand left-to-right instead top-to-bottom (to hack a tvguide-ish UI where I can scroll up and down as well as left and right -- channels have programs, programs go left to right, channels go up to down) Feb 13 05:38:50 or would there be a better way of doing it? Feb 13 05:39:11 ExpandableListView is only top/bottom Feb 13 05:40:14 so listview with inflated linearlayouts, then? Feb 13 05:40:21 all wrapped by a horizontalscrollview Feb 13 05:40:45 romainguy: is there any reason why assertion is disabled on shipped devices? Feb 13 05:41:00 probably performance Feb 13 05:43:48 why does using xml strings for certain things cause force crashes? it's like google can't make up its mind about whether they want everything to point to strings.xml or not Feb 13 05:44:08 android:inputType="number" Feb 13 05:44:26 i'm having trouble with background themes in 2.3, @drawable/win_mainoverlay_paper Feb 13 05:44:28 andkore: it's specified in the documentation Feb 13 05:44:30 it doesnt seem to have any effet Feb 13 05:44:42 romainguy_: where? Feb 13 05:44:55 I looked at the TextView page Feb 13 05:45:04 andkore: sorry, let's rewind, I misunderstood your problem Feb 13 05:45:15 andkore: what's the issue exactly? Feb 13 05:45:37 there's not really an 'issue'. I just find it weird that everything in my layout xml file uses strings, but if I use a string for this one value it FCs Feb 13 05:45:46 (but note that nothing *has* to point to strings.xml) Feb 13 05:45:47 string meaning @string/stringid Feb 13 05:45:49 hi! if i want something to run in the background of an activity that for example checks for new data on the internet every 20 seconds and update a listview if new data is present - do i just run a thread to do that or a service with an own thread? Feb 13 05:46:12 yeah I know Feb 13 05:46:15 I'm just OCD Feb 13 05:46:33 ultrixx: you can use a Handler on the main thread for the 20 sec delay, and an AsyncTask for the network portion Feb 13 05:46:34 andkore: because inputType is an enum, as specified here: http://developer.android.com/reference/android/widget/TextView.html#attr_android:inputType Feb 13 05:46:39 andkore: Android XML files are typed Feb 13 05:46:46 clever: thanks a lot Feb 13 05:46:49 ultrixx: and make sure you stop things when the app isnt active Feb 13 05:46:53 yay, a logical reason. thanks Feb 13 05:46:54 andkore: unless an attribute specifically accepts the type "string" you cannot use @string/ Feb 13 05:47:31 romainguy_: any idea why