**** BEGIN LOGGING AT Sat Mar 09 02:59:59 2013 Mar 09 04:03:16 wondering if someone can tell me how to switch between tabs in a "tabcontent". I added a listview, an expandablelistview, and a searchview. At application launch, only the searchview is shown Mar 09 06:29:26 hi there. someone can suggest to me a good tutorial in order to learn to create an android application in a correct way? Mar 09 06:30:53 jewels: http://developer.android.com/training/index.html Mar 09 06:31:30 do you think that it is enough for study it completely? Mar 09 06:32:24 completely ? Mar 09 06:32:38 you probably need 2-10 years for that Mar 09 06:32:50 and even then, there will be missing things Mar 09 06:32:52 :) Mar 09 06:33:50 :) Ok you're right. I just want to read a well written tutorial which will give me a good base in order to write android application which could be runned with different android version Mar 09 06:34:12 is it possible? Or for each version of android I have to create an appropriate android application Mar 09 06:34:39 You know, I'm a newbie, and I'm here just for asking some question about android world :) Mar 09 06:34:56 jewels: I think you should read the training stuff I just linked Mar 09 06:35:09 and then come back with any questions you may have Mar 09 06:35:16 cause most of it is covered in there Mar 09 06:35:47 that's ok :) Mar 09 06:36:07 can you give me some suggestion before I start? Mar 09 06:36:14 on what ? Mar 09 06:36:48 on android application, on the paradigm that I have to use in order to create correct one and well structured. Mar 09 06:36:53 does anybody know a great tutorial on Context.getcache()? Mar 09 06:37:00 usually i just use ormlite Mar 09 06:37:02 jewels: read that link Mar 09 06:37:07 but i'm wondering what the best approach is Mar 09 07:26:36 how you doing StingRay_ Mar 09 07:26:42 so so Mar 09 07:26:57 did TheBunny get you ? Mar 09 07:27:03 wondering why there are such major diffs in android versions Mar 09 07:27:11 like data source sh*t Mar 09 07:27:14 like contacts Mar 09 07:27:16 ugh Mar 09 07:27:22 the what get me? Mar 09 07:27:29 oh, the ContentProviders ? Mar 09 07:27:42 yeah the common data crap only added in 11 Mar 09 07:27:54 single query for multiple sources I like Mar 09 07:27:59 just why not < 11 Mar 09 07:28:09 who was after me ? Mar 09 07:28:25 there are parts of the api i won't mess with. that and stuff like MediaPlayer ;) Mar 09 07:29:07 who is TheBunny and what did they want with me ? Mar 09 07:30:12 na, i was just joking because of your bunny video Mar 09 07:39:00 StingRay_: i have a feeling i am going to stay up all night so i can leave here around 4 to get up to the mountains for pre-dawn landscape picture. not really sure its worth it with my crappy camera, the result won't be amazing from IQ perspective Mar 09 07:39:52 * g00s loves it when there is snow in the desert though Mar 09 07:41:48 g00s: where are you ? Mar 09 07:42:10 arizona Mar 09 07:46:20 StingRay_: here is a pic i took today. not only is my p&s crappy, but i had 2 water drops on the lens :( http://i.imgur.com/UIzxiCb.jpg Mar 09 07:46:34 maybe it has some potential after i learn more LR Mar 09 07:47:15 you cam is not 4:3 ? Mar 09 07:47:34 your* Mar 09 07:47:40 i forgot actually. i thought 3:2 Mar 09 07:47:50 really? Mar 09 07:47:54 i prefer 1:1 and 4:3 Mar 09 07:48:02 not for landscapes Mar 09 07:48:05 surely Mar 09 07:48:12 i think 3:2 sucks for verticals Mar 09 07:48:49 need a nice widescreen for landscapes Mar 09 07:49:24 oh, this powershot g9 is also like 35 mm Mar 09 07:49:46 i'd like minimum 28mm, 24mm would be nice Mar 09 07:49:54 still, I would frame and crop to 19:9 Mar 09 07:49:57 oops Mar 09 07:50:00 16:9 Mar 09 07:50:33 the water droplets on the lens must have done something, maybe global blur :| Mar 09 07:50:55 loss in contrast? maybe. wish i knew more about optics Mar 09 07:51:49 would have been nice to have a polarizer to make the rainbow stick out more ;) Mar 09 07:53:50 I have a variable ND somewhere Mar 09 07:53:55 I think Mar 09 07:54:00 cool Mar 09 07:54:02 dont think I've ever used it Mar 09 07:54:04 lol Mar 09 07:54:20 this camera can't take any filters Mar 09 08:35:59 you cum lol Mar 09 08:48:27 Hi, I'm looking for some general advice, I'm a full time student (not a business) so when I'm trying to set up an amazon store account I'm not sure how to handle the tax section? Mar 09 09:07:12 hi all Mar 09 10:07:01 * g00s looks at the svn project page to see whats happened in the past few years; seemingly little Mar 09 10:40:41 hello Mar 09 11:13:13 anybody here moved away from jquery mobile? Mar 09 11:13:33 to say https://github.com/EightMedia/hammer.js or something.. curious about y'all input Mar 09 11:14:32 was reading http://codemint.net/stop-using-jquery-mobile/ and http://blog.siami.fr/articles/why-i-hate-jquery-mobile ... not good :( Mar 09 11:37:02 boytoy: use senchatouch, but to be honest, every of this frameworks have their own issues Mar 09 11:38:32 Could also just make apps ;d Mar 09 11:54:09 i am pretty curious about Enyo Mar 09 12:09:57 Hi. I am using the theme android:theme="@android:style/Theme.Holo.Light" for the whole application. If I add ScrollView to my activity, the actionbar is suddenly all #ffffff as if I lost the theme. Any ideas? Mar 09 12:45:17 I need to get the date format string (i.e. "MM/dd/yyyy" or "dd. MM. yyyy") that is used by the current locale. An instance of DateFormat that uses this format string does not work, I need the string itself. Any ideas? Mar 09 12:47:14 i dont think you can get it. the framework has a private resource for each locale Mar 09 12:47:31 DateFormat and that class cluster - is a cluster fuck Mar 09 12:48:19 damn :( Mar 09 13:19:05 question guys i have code examples of using scribe-java library with android to authenticate it with facebook,linkedin, twitter,... and also examples of how to retrieve stuff (messages) and post messages Mar 09 13:19:18 i want to post this somewhere so people who want to use it for android are able to easily find it.. Mar 09 13:19:22 anyone have a suggestion? Mar 09 13:26:46 github Mar 09 13:26:51 google code or github Mar 09 13:27:02 Also, post it somewhere that people might find the link Mar 09 13:27:50 Like here, github etc Mar 09 13:28:00 reddit* Mar 09 13:28:04 not github hahaha Mar 09 13:41:18 hei guys ... if one downloads a free app from the market..then uninstalls it then installs it again, does that register as two installs? Mar 09 13:41:22 even if it's by the same user? Mar 09 13:41:40 no Mar 09 13:41:47 anyone here do both android and ios? Mar 09 13:42:58 but if i install the same app from my same google account on two different devices...does that register a 2 installs? Mar 09 13:43:12 Nope Mar 09 13:43:20 It counts as 2 active installs Mar 09 13:43:31 And 1 total installs Mar 09 13:43:42 great Mar 09 13:44:26 oh, that might explains why some of my apps have had a weird install/active install count in the past Mar 09 13:56:08 So I have the same instance of an ontouchlistener for two objects. If the user drags his finger in one object, at the edge the ontouchlistener stops. How can I continue this across the two objects? Mar 09 14:10:39 Your view should continue to get touch events, even if the pointer leaves its bounds, until you get an UP event or you return false Mar 09 14:11:02 How do I stop gingerbread from murdering my innocent little dd process? As a test, I have him appending several gigs of /dev/zero to /dev/null and he gets auto-killed by android itself (not an app). Nice'ing it doesn't seem to help. I might be able to workaround by doing it in small increments but would rather avoid that. Mar 09 14:12:16 SimonVT: I think it was because I was returning false early. Anyhow I can see it going past the view now! Thanks Mar 09 14:20:56 Do setColor paint events happen once a motion event is complete? I'm trying to do a touch event where as I drag my finger the background increasingly goes from black to red. It seems to be set once the action up occurs. Mar 09 14:22:14 Like.. Paint#setColor? Mar 09 14:22:17 There's no event Mar 09 14:22:27 You're just setting a variable Mar 09 14:22:41 You have to invalidate the view if you want it to redraw Mar 09 14:23:17 SimonVT: Ah so I have something like .getPaint().setColor((int)(originalColor)) in the MotionEvent.Action_Move Mar 09 14:23:32 So I would have to invalidate it to update during the movement? Mar 09 14:26:26 Awessome, that seems to be closer to what I want Mar 09 15:03:52 I have a touch event on an item in a linearlayout that is part of a scroll view. Is there a way to catch the event when I leave the linearlayout? I want to pretend like I lifted my finger yet still do the scroll. Mar 09 15:08:22 good morning, I was wondering what the preferable means of manage FragmentDialogs and AsyncTasks is, baring in mind the activity lifecycle Mar 09 15:09:32 noteably, if an AsyncTask may or may not require a dialog to be displayed, how should one deal with showing the dialog if the call is made mid-rotation of the device, and equally for dismissal Mar 09 15:10:22 it feels like the correct approach would be to subclass AsyncTask to make it aware of the lifecycle, and then cache changes to the dialog until the activity is in a suitable state? Mar 09 15:13:01 well, one way around this is to use a service to execute your asynchronous tasks. The service fires a sticky broadcast once completed, your activity listens to broadcasts and may perform actions when receiving broadcasts. Mar 09 15:14:41 that is interesting, is there any advance to that over a lifecycle aware asynctask? Mar 09 15:14:48 advantage^ Mar 09 15:16:23 the service does not need to handle any lifecycle events and is only loosely coupled (good thing) with your activity. Mar 09 15:16:48 good point Mar 09 15:17:50 Figured out my question. Lesson: tons of pipe i/o creates enough cpu usage to get your process autokilled Mar 09 15:17:57 haven't used AsyncTask yet though, so cant tell if AsyncTask provides better ways to solve your problem Mar 09 15:18:07 You're guaranteed that no callbacks are made between onDestroy and onCreate.. As long as you properly handle passing the asynctask to the new activity instance, you should be fine Mar 09 15:18:14 the service approach is what i'm using within my application and it works quite well. Mar 09 15:20:00 simon thats the thing though, if the asynctask is trying to show a dialog in the UI thread, you have no guarantee that the activity is in a suitable state to attach it Mar 09 15:20:59 optic my concern with services is they seem more appropriate for situations where you either want to share data, or provide ongoing capabilities without need for a UI Mar 09 15:24:19 When would the activity not be in a suitable state Mar 09 15:25:25 my example would be an AsyncTask which handles obtaining some data, which may or may not be located on a remote server,and may or may not already be cached, you have a function available to prepare the data to be displayed, and a listener which provides progress on any download (if it was required) while that function is executing. The AsyncTask starts up, initializes the class responsible for the data, and attaches the listener and t Mar 09 15:25:48 hmm Mar 09 15:25:56 i would then pass those details to the UI thread as progress, and at that point i would wish to open a FragmentDialog to display a progress bar Mar 09 15:26:02 i've got some asyntasks Mar 09 15:26:07 that grab stuff from twitter for example Mar 09 15:26:21 thats than pushed into a static user object in the mainactivity Mar 09 15:26:57 the asyntask has "onprogress" function to update taht sort of thing if you do n't know how much % it is just a spinner loading bar with text saying what you are doing and maybe which number it is Mar 09 15:27:11 like logging in 1/7, validating data 2/7 .. etc Mar 09 15:27:25 yer im using that to pass the progress to the UI thread already Mar 09 15:27:33 robb_www if you want to update UI thread stuff you'll need to do it @ onpostexecute etc Mar 09 15:27:42 no, onprogress is also UI thread Mar 09 15:27:59 yes i know but you don't really use that to push real data :p Mar 09 15:28:13 its not data, its state Mar 09 15:28:17 yea :) Mar 09 15:28:20 i.e. download occuring, 50% Mar 09 15:28:36 I still don't see the issue.. Your activity is destroyed, at which point you detach it from the asynctask.. When the new one is created, you attach that Mar 09 15:28:39 You know what state it's in Mar 09 15:28:57 how is the asynctask detached from the activity? Mar 09 15:29:25 And onprogress isn't going to be called between those two methods Mar 09 15:29:28 ahh, i have a feeling i know what the issue is, i think i might be forming a clojure with the current activity instance :/ Mar 09 15:29:50 why would onprogress not be called? Mar 09 15:30:08 Well, surely your asynctask is a static class that you attach/detach the current activity to, to ensure you don't leak memory Mar 09 15:30:49 yer, thats the problem, im doing that completely wrong, right now its an inner class in the activity and refers directly to member variables Mar 09 15:30:56 Because the framework ensures no messages are delivered between ondestroy and oncreate Mar 09 15:31:29 When you call postprogress or whatever it is, a message is posted to the main looper which calls onprogress Mar 09 15:31:37 robb_www always use a seperate class :p Mar 09 15:31:39 That message can't be delivered between ondestroy and oncreate Mar 09 15:31:56 ok, my stupidity aside (ill be refactoring that today) a related issue was when i tried to dismiss the dialog onprogress, i would get crashes indicating dismiss could not be called after saving state Mar 09 15:32:48 You sure the activity where you dismissed the dialog isn't the one that just got destroyed? Mar 09 15:32:49 specifically, java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState Mar 09 15:33:05 simon, it probably is, because of this clojure Mar 09 15:33:27 also, it would help if i didnt keep spelling closure incorrectly :D Mar 09 15:34:04 It's unlikely you'll run into this issue if you handle it properly Mar 09 15:34:30 yer this is something ive been unclear on for a while and its made me rather uncomfortable Mar 09 15:34:45 I only tested on a few versions, but a message posted in onpause isn't going to get delivered until after onresume on those versions.. The docs only guarantee ondestroy => oncreate as far as I can see Mar 09 15:35:49 so if this class is separate, is this attachment/detachment automatic or do i have to trigger it manually? Mar 09 15:36:01 Manually Mar 09 15:36:11 hi guys Mar 09 15:36:16 ok, but this isnt done via custom functions in the task, is it? Mar 09 15:36:22 It is Mar 09 15:36:36 hey when i create a class and extend it with surface view Mar 09 15:36:57 then when i call Camera it does't have the open method Mar 09 15:37:01 gives error Mar 09 15:37:03 not sure why Mar 09 15:37:09 any thoughts? Mar 09 15:37:48 hm, so how do i ensure the asynctask is using the correct activity for onprogress? Mar 09 15:38:36 You have a mActivity field.. And you set/unset it Mar 09 15:39:13 You can use onRetainNonConfigurationInstance to pass the asynctask to the new activity Mar 09 15:40:24 in the AsyncTask when i call publishProgress(...) , i dont see how having access to the mActivity helps me ensure onProgressUpdate doesnt run while the activity is paused Mar 09 15:40:33 unless i specifically check to see if ive cleared the mActivity Mar 09 15:40:44 nevermind Mar 09 15:40:46 dumb me Mar 09 15:40:53 On configuration changes, the framework ensures that Mar 09 15:40:56 i imported graphics.camera Mar 09 15:41:06 instead of hardware.graphics Mar 09 15:41:10 oops Mar 09 15:41:16 hardware.camera* Mar 09 15:41:28 so by the sounds of it, the entire problem is purely that my task is an inner class, and forms a closure with the current activity instsance? Mar 09 15:41:40 and if i had not done that, i wouldnt be seeing this behaviour at all Mar 09 15:41:47 Very likely Mar 09 15:41:54 ok, *facepalm* Mar 09 15:42:21 thankyou very much for that help Mar 09 15:42:52 in that case its no wonder if been battling with the API over all sorts of quirky issues Mar 09 15:42:57 ive been^ Mar 09 15:43:27 Well, if you keep doing it wrong, you'll keep having issues :p Mar 09 15:44:09 in the future ill be sure to write my code the right way first time ;) Mar 09 15:48:24 hey guys Mar 09 15:48:44 i got my surface view to show up but the camera isn't on or showing in the view Mar 09 15:48:55 what u think could be the problem? Mar 09 15:54:39 some error about linear layout Mar 09 15:54:51 guess i try relative Mar 09 15:56:10 I don't think GCMRegistrar.register(...) is working any thoughts? (i say this because i keep running the same if statement and i keep getting that isRegistered(...) is false Mar 09 16:12:10 I want to add a custom row in a ArrayListFragment which is inside a FragmentPagerAdapter. I google it but I found nothing relative Mar 09 16:20:23 hi! i have a ViewPager in my Swipe App and i can't get a reference to my fragments. trying to tag them after they get created in the overridden getItem() method with getSupportFragmentManager().beginTransaction().add makes the app crash. i am totally out of ideas. what i want to do i so simple: if user begins to swipe to page 2, recalculate data and display it on page 2. i have set up OnPageChangeListener in my activity already for Mar 09 16:20:23 that purpose Mar 09 16:22:18 SimonVT, removing the closure worked perfectly, fixing this feels almost therapeutic, thanks again Mar 09 16:22:51 the leaked reference must have kept the old message pump going Mar 09 16:26:16 I'm wondering if anyone here knows of an active android development irc channel Mar 09 16:28:28 i think there are a lot of glue sniffers at google Mar 09 16:34:34 when i try to get my camera with Camera.open i get a null pointer exception Mar 09 16:34:45 can anybody think of what might cause it>? Mar 09 16:35:06 my only thought is that the camera can't be accessed Mar 09 16:35:13 i have my manifest right Mar 09 16:35:33 got a FrameLayout allright Mar 09 16:35:40 just won't open the camera Mar 09 16:36:22 anyone know how to get GCM working? I placed all the correct permissions, and I'm calling GCMRegistrar.register(context, mysenderid); and when i try to get the registrationId it's always null Mar 09 16:37:20 Bear10 you need to catch the broadcast Mar 09 16:37:38 xorgate, don't i already do that with the permissions and the class setup in the gettingstarted tutorial? Mar 09 16:39:16 i guess Mar 09 16:39:24 you also enabled it in the google apis? Mar 09 16:39:32 xorgate, yes i do Mar 09 16:40:03 there's the "Project ID:" in my google api but i'm unsure if i need to Register the project Mar 09 16:40:12 doesnt say that anywhere in the getting started Mar 09 16:43:47 for some reason I made a progress bar in my main activity, but I can't reference it's id in another activity...I can reference every other view in my mainactivity in this activity except for the progress bar Mar 09 16:43:59 surface view cannot be cast to framelayout surfaceview android open camera Mar 09 16:44:08 error problem Mar 09 16:44:40 anybody know why i can;t cast surface view with frame layout? Mar 09 16:48:28 Hello i might have a dumb q cause i'm kinda new to java/android dev but i'm having this surfaceview for my ui and in the meanwhile i wonna run a thread for a udp connection but i got no clue how to do this multitheading with the code i have so far ( this is the code https://gist.github.com/anonymous/5124784 ) Mar 09 16:49:38 xorgate, 03-09 17:49:27.471: V/GCMBroadcastReceiver(18833): onReceive: com.google.android.c2dm.intent.REGISTRATION Mar 09 16:49:39 i'm seeing that Mar 09 16:52:31 looks good then? Mar 09 16:52:40 I want to add a custom row in a ArrayListFragment which is inside a FragmentPagerAdapter. I google it but I found nothing relative Mar 09 16:53:52 theodor87 find whatever array is backing the list and update that? Mar 09 16:54:55 No i want to set the rows of the ArrayListFragment from an xml Mar 09 16:55:54 my progressBar's ID isn't showing up in one activity...but it shows up in everything else....whats up with that >:( Mar 09 16:56:00 theodor87 realize that arraylistfragment is not anything native to android Mar 09 16:56:53 you mean it is not possible to do what I want? Mar 09 16:57:01 theodor87 best thing to do regarding listviews, extend a BaseAdapter and watch http://www.youtube.com/watch?v=wDBM6wVEO70 first Mar 09 16:57:14 i assume you copied from http://developer.android.com/reference/android/support/v4/app/FragmentPagerAdapter.html Mar 09 16:57:25 ok i will check it Mar 09 16:57:35 listfragment is a convenience class Mar 09 16:57:47 understanding listview under the hood is really beneficial Mar 09 16:58:22 xorgate, well no it doesn't look good because its not registering i never get the registerId() heh Mar 09 16:58:26 for some reason Mar 09 16:58:48 That code has all the classes I used so yes Mar 09 17:00:48 xorgate I know how to add a custom row (specified by an xml layout) in a ListView. What I can't find how to do is add a custom row in an ArrayListFragment Mar 09 17:02:03 the fragment contains a listview Mar 09 17:05:50 xorgate to the code you linked http://developer.android.com/reference/android/support/v4/app/FragmentPagerAdapter.html can you tell me how to implement a custom row on the list? Mar 09 17:06:22 theodor87 do you understand where the listview gets its data Mar 09 17:06:33 the adapter Mar 09 17:06:53 which uses Cheeses (whatever that is) Mar 09 17:06:53 but I want to have a custom Layout Mar 09 17:07:19 well do yourself a favor, extend BaseAdapter, override getView() and in it inflate your custom layout Mar 09 17:07:37 and set an instance of it as your adapter Mar 09 17:08:21 anyone know why onRegistered(); in my GCMIntentService is not being called? (I see the broadcast in logcat) Mar 09 17:08:29 To the example which class must extent BaseAdapter? Mar 09 17:08:48 theodor87 that's not valid english, what do you mean? Mar 09 17:09:45 In the sample code that you linked which Class must extend BaseAdapter? Mar 09 17:09:58 Cheese? Mar 09 17:10:04 you make a new class, MyAdapter extends BaseAdapter Mar 09 17:10:44 you tell it 'use this array of data as content for the list' Mar 09 17:11:02 and getView() says 'this is item x in the list, what are the contents' Mar 09 17:12:57 I believe there is one problem. If I make make a new Class which extends BaseAdapter then I will not be able to use the class which extends FragmentPagerAdapter Mar 09 17:18:00 ok well i didnt properly read that page anyway, apparently the adapter supplies fragments Mar 09 17:18:28 so you have 2 kinds of adapter Mar 09 17:18:33 one for the fragments, don't change it Mar 09 17:18:36 and one for the listview Mar 09 17:19:02 i think you'd best start with a simple activity containing a listview and see how that works Mar 09 17:21:10 ok xorgate. thank you for your help Mar 09 17:23:31 anybody here knowing something bout AOSP? Mar 09 17:23:39 tried to build a modified version Mar 09 17:23:50 should add @hide to member variable Mar 09 17:24:20 now it says it cant find symbol Mar 09 17:24:24 @hide Mar 09 17:26:11 Anyone know why http://pastebin.com/b0yhMGLA my logcat show's this, but the onRegistered(), nor the constructor, nor anything from my GCMIntentReceiver gets called? Mar 09 17:26:26 err GCMIntentService ** Mar 09 17:27:59 Bear10 i had some issues with the intentservice having to be in the 'root' package Mar 09 17:28:08 or you have to somehow tell it to use another package Mar 09 17:41:21 I have a tab host with a progressBar somewhere on it. Each tab though calls an async task. How can i control that progress bar? I keep getting null pointer exceptions every time i try referencing it Mar 09 17:42:07 MajorZero Mar 09 17:42:09 onprogress Mar 09 17:42:29 MajorZero you have 1 progressbar for all activities? Mar 09 17:42:32 if so is it static? Mar 09 17:42:39 or how do you pass it on? or are you workign with fragments? Mar 09 17:44:25 im not working with fragments. I just have 1 progress bar in my tabhost activity Mar 09 17:44:46 my tabhost has a static header on top that is shown in each of my tabs Mar 09 17:44:53 thats where I have the progressBar Mar 09 17:45:01 xorgate, let me give that a shot Mar 09 17:45:17 i want to be able to show the progress bar everytime I do an async task in each of my tab activities Mar 09 17:47:42 xorgate, wow you got it! Mar 09 17:47:44 hahaha Mar 09 17:49:21 going to see if i can get it working in a diff package Mar 09 17:50:41 yeah theres some function you can call Mar 09 17:50:44 yep Mar 09 17:50:45 got it Mar 09 17:50:50 what is it? :0 Mar 09 17:50:56 i had it set but i take it it was to be honest not completely sure what changed lol Mar 09 17:51:55 aha Mar 09 17:51:56 i do know Mar 09 17:52:54 the problem was category, and service tags, the path wasn't right i guess (not sure what the difference is though) but hey it works Mar 09 18:01:51 i've finally found my problem Mar 09 18:02:11 camera.open is null because I have a front facing camera Mar 09 18:02:25 how do i tell my app to use the front camera? Mar 09 18:02:50 i tried Camera.open(1) Mar 09 18:02:55 but it didn't help Mar 09 18:03:04 what ID does the front camera get? Mar 09 18:04:05 ParameterscameraId the hardware camera to access, between 0 and getNumberOfCameras()-1 Mar 09 18:04:14 do modern phones like samsung s3 do double on fpu? Mar 09 18:05:01 calmchess Camera.open() : If the device does not have a back-facing camera, this returns null. Mar 09 18:06:49 right Mar 09 18:06:54 no back camera Mar 09 18:07:01 so how do i tell it to use the front obne Mar 09 18:07:03 one Mar 09 18:07:12 i have a kindle fire hd Mar 09 18:07:44 i tried 1 -1 and 0 Mar 09 18:07:50 but nuffin works Mar 09 18:08:06 getnumberofcameras returns 1 Mar 09 18:08:13 so I can see the cam Mar 09 18:08:18 but cant use it Mar 09 18:08:52 u ever used the front cam on a phone? Mar 09 18:09:04 I wish my thunderbolt were here Mar 09 18:09:51 idunno i'd google it Mar 09 18:12:34 does anyone know how I can have a static progress bar display on my application and allow different activities to manipulate it? Mar 09 18:15:55 i did it ! Mar 09 18:16:08 it involves a for loop and if statement Mar 09 18:16:11 what a pain Mar 09 18:16:16 but i have progress Mar 09 18:16:37 now set parameters isn't working Mar 09 18:16:47 but i'm gaining valuable knowlege Mar 09 18:17:06 anybody want me to pastebin the code for getting the front cam? Mar 09 18:19:25 If i want to backup SMS, can i savely ignore the NULL type fields like service_center, subject, reply_path_present? Mar 09 18:20:16 you can unless you want to use them Mar 09 18:20:29 parameters can always be safely null Mar 09 18:20:39 long as it doesn't cause errors Mar 09 18:20:54 u just sayng hey i not passing you data Mar 09 18:20:56 ok Mar 09 18:21:14 i dont get which kind of data could be stored in null, its null? Mar 09 18:21:26 its null by default Mar 09 18:21:37 but it could be everything? Mar 09 18:21:44 its like returning null from a function Mar 09 18:22:08 sure as long as it doesn't require it to save Mar 09 18:22:32 take path for example it will save it in default location unless you tell it to put it someplace else Mar 09 18:22:32 hm k, thx for clearing this out a little ;) Mar 09 18:22:43 usually telling it where is a good idea Mar 09 18:23:26 tell the paramter of a function to be null like (myparam = null) Mar 09 18:23:41 tells the function that the paramter can be null if you want Mar 09 18:23:58 if you don't say =null then the param must have a value Mar 09 18:25:21 and what if a column type in a pointer (getContentResolver) is null? does it mean there could still be a value in the column? Mar 09 18:26:49 sure Mar 09 18:27:21 null pointer exception means a method returned null cuz it could'nt complete the request Mar 09 18:29:58 I am not sure if you are talking about the same. i mean like here: http://pastebin.com/Tt3QPMmr for example the column person in SMS has the type NULL Mar 09 18:41:46 yeah null is valid Mar 09 18:41:59 i just put that other stuff up there as examples Mar 09 18:45:18 ok, I seem to have hit a problem Mar 09 18:46:13 facebook, account sync (photos) are not easy to get to, anyone ever done any contact picture stuff where some of the accounts pictures are sync from fb ? Mar 09 18:48:50 thx calmchess Mar 09 18:58:16 what the hell is invalid picture resolution Mar 09 18:58:33 the cam says it supports 128x96 Mar 09 18:58:37 hmmmm Mar 09 19:04:48 hei guys...anyone here using AdMob to display ads in their apps? Mar 09 19:05:33 or Leadbolt if not AdMob Mar 09 19:09:21 oh yeah Mar 09 19:09:32 got my project stubbed out and off the ground! Mar 09 19:09:43 I"ve got my android wings back! Mar 09 19:10:08 see you guys in about 10 minutes with my next problem Mar 09 19:10:09 lol Mar 09 19:19:43 hello! i get a very big response from facebook sdk, right now i get the json object like this: response.getGraphObject().getInnerJSONObject().getJSONArray("data").getJSONObject(0) Mar 09 19:20:06 can i do this with a better performance/less memory? Mar 09 19:22:11 hi Mar 09 19:22:18 i have a preference activity, how can i open it with the menu key? Mar 09 19:24:46 anbody here ever use OpenCV for andoid? Mar 09 19:24:52 i don't see how to install it Mar 09 19:25:03 maybe i just link to it Mar 09 19:25:04 dunno Mar 09 19:28:02 gru__: JsonReader does streaming rather than loading everything into memory, needs api11+ though Mar 09 19:29:53 i'm programming for api 8 Mar 09 19:31:08 figured it out Mar 09 19:31:27 in that case, maybe try the gson version instead? Mar 09 19:31:49 API is basically the same, I think - http://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/stream/JsonReader.html for an overview Mar 09 19:34:08 how can i show the preferences in my android example application? Mar 09 19:34:13 when i click the menu key Mar 09 19:55:43 tm604: thanks! Mar 09 20:44:14 This is a really silly question but could someone please explain how I can do this from my device: https://plus.google.com/u/0/107708120842840792570/posts/cz5TxuoNDfG Mar 09 20:44:22 Its a nexus 7 I'm working with Mar 09 20:48:38 * capella wonders if he's the only one reading about the prenda law ass-clowns.... :p Mar 09 20:50:44 apple741, what api level is your device? Mar 09 20:51:46 my 4.1.2 cm phone doesn't support this option. my 4.2.2 aosp tablet does Mar 09 20:52:02 stephen_: Hi stephen I'm on 4.2 Mar 09 20:53:08 are you supply a number as a last arg? e.g., adb shell am display-density 200 Mar 09 20:55:04 I don't think I'm that far, I'm not sure where to type it? Mar 09 20:56:46 oh, just in a terminal Mar 09 20:57:06 so, command prompt on windows. terminal on ubuntu or mac Mar 09 20:57:41 you can see your android devices attached via usb using adb devices Mar 09 21:00:22 Ah ok, so I think I'm still missing something important, when I try that example you gave above in terminal I get this error : -bash: adb: command not found Mar 09 21:02:05 oh, do you have android sdk tools installed? Mar 09 21:03:27 btw, are you sure you want to change dpi? Mar 09 21:03:54 I think I do have them installed, I just downloaded them today and I'm able to build to my device quite easily. Sorry for all of this trouble. Mar 09 21:04:08 Yeah I wanted to see how my app would look on a smaller screen Mar 09 21:05:15 well, you could keep going down this road. i haven't changed my display density before. however, it's probably best just to make an android virtual device (emulated device) with the display size and density you want Mar 09 21:06:15 if you downloaded and installed the android sdk tools, you should either put them in your PATH environment variable or reference the full path (/~/opt/adt/sdk/platform-tools/adb, for example on ubuntu) Mar 09 21:07:18 stephen_: Ah ok thanks stephen, could you point me in the right direction regarding information on setting up an emulator? Mar 09 21:07:28 (I'm very new to android :) ) Mar 09 21:08:20 sure. have you used the android sdk manager? it's usually the first thing you get when you install the sdk Mar 09 21:08:54 on my system (ubuntu), i have it installed here: /home/stephen/opt/adt/sdk/tools Mar 09 21:09:01 it's just called "android" Mar 09 21:09:08 on windows it might be called android.exe Mar 09 21:09:41 Ah yes, I have that open now ( same path as you said it would be :) ) Mar 09 21:10:02 ok great. well, you can see everything google puts out here for app devs Mar 09 21:10:10 you can also see what you have installed Mar 09 21:10:31 so, you want to install the sdk tools which will include adb Mar 09 21:12:21 hi Mar 09 21:12:23 Heres the ones I have setup: http://screencast.com/t/vmG3DMepsMV Mar 09 21:12:30 some web for try my app on all resolution? Mar 09 21:13:41 i think that should be fine to install Mar 09 21:20:25 anyway, once you install it. just run "android avd" Mar 09 21:20:54 you should be able to kind of leverage the gui wizard to figure out what you need easily. Mar 09 21:25:34 stephen_: I just did a search for that and nothing came up, maybe I didn't install it? Mar 09 21:27:01 "android" is actually the sdk manager you were in. just run that from the terminal but add the "avd" argument Mar 09 21:29:09 Anyone else have an issue with the lower half of the text in LogCat being cut off? Mar 09 21:29:15 Eclipse Juno, OS X Mar 09 21:33:57 hi Mar 09 21:34:46 Also, is there any way to read the current alarms from the stock alarm clock application? Mar 09 21:35:07 I get a permission error when I simply try to query the content provider Mar 09 21:36:19 thank stephen_ I think I almost have it :) Mar 09 21:37:35 Hello guys. Mar 09 21:42:47 How can I get a reference to a service that is already started without starting it again? Mar 09 21:47:30 how do I make a loop in my app? Mar 09 21:48:46 how i can know what button is pressed or axys has moved? i own a device like archos but i can't map ritgh stick that acts as pointer when the mmaper tool is activated and dont do anithing when is in normal mode Mar 09 21:49:27 GOMADWarrior what kind of loop? Mar 09 21:49:45 I wanna do something every few seconds Mar 09 21:50:58 I wanna know if my position has changed, and if so I'll call a function I have Mar 09 21:52:58 That sounds more like a callback than a loop to me Mar 09 21:55:02 Is the time picker used by the stock alarm clock application exposed anywhere, or is that just a custom view? Mar 09 21:55:13 It's waaay better than the default time picker widget.... Mar 09 21:58:14 It's open source, just add it to your app Mar 09 21:59:21 Yup, just found it Mar 09 21:59:22 https://android.googlesource.com/platform/packages/apps/DeskClock/+/android-4.2.2_r1/src/com/android/deskclock/ Mar 09 21:59:34 Would be easier if it was a public API, though, which is why I asked :P Mar 09 22:03:07 if i want to start to learn how to programing for android ¿what do you recomend to read? Mar 09 22:05:13 Durgeoble: http://developer.android.com/training/index.html Mar 09 22:09:25 thanks jrajav Mar 09 22:17:32 hey guys Mar 09 22:18:02 i wanna manipulate the cameras color matrix do I need to use openGL ES to do that? Mar 09 22:18:17 or is there a camera color matrix already? Mar 09 22:22:02 no such thing as a camera in open gl es Mar 09 22:22:45 hi, can anyone help a noob? Mar 09 22:23:19 calmchess: but some devs like to make a Camera.class :) might help your searching Mar 09 22:23:30 I see a lot of people write strings and int variables in capital letters and define them with public static final String NAME. What is this called? Mar 09 22:23:59 naming convention Mar 09 22:24:13 right Mar 09 22:24:16 http://java.about.com/od/javasyntax/a/nameconventions.htm Mar 09 22:24:45 theres also something called android naming convention. http://source.android.com/source/code-style.html Mar 09 22:24:51 its mostly based on java convenions though Mar 09 22:25:01 tugucci: just say it Mar 09 22:25:33 but would you use this for a class where the value is only use once? For instance like this: String playForInMS = sharedPrefs.getString("prefPlayFor", DEFAULT_PLAYFOR); Mar 09 22:25:52 quacked: i've sort of adapted to android conventions and now incorrporate it in my java code as well Mar 09 22:26:08 thats up to you Mar 09 22:26:15 do you see yourself using that in the future? Mar 09 22:26:38 In my project I have a button and a textview, I also have a class that has only one method, it returns number 65. As I press a button it should trigger that method. It builds and runs fine, but when i actually press it app stops. Mar 09 22:26:48 here is the code Mar 09 22:27:02 also, http://imgur.com/jacoj Mar 09 22:27:06 tugucci^ Mar 09 22:27:09 Trinsta: not at all.. :P Mar 09 22:27:11 http://pastebin.com/bRSdu8Y5 main activivty Mar 09 22:27:20 tugucci: http://imgur.com/jacoj Mar 09 22:28:00 Quacked: some people would put it in an instance variable, i wouldn't. just for the sake of cleanliness in my code so I can easily change things related to a method Mar 09 22:28:12 Trinsta: but if the value is not needed static, should I just do privat int defaultPlayfor = 3; instead? Mar 09 22:28:37 Trinsta: like the example I just wrote you mean? Mar 09 22:28:40 you can. once again its all about what makes you understand the code better later Mar 09 22:28:48 for instance, 3 months from now if you looked at the same code Mar 09 22:28:51 could you understand it? Mar 09 22:28:56 hell no Mar 09 22:28:57 Could I get some help with adb chrome dev tools? I'm having some really weird problems; first, drivers weren't installed. I fixed that. Then, the device was "offline". I seem to have fixed that. Now, adb claims it cannot bind the socket. I look at my socket, it looks like some sort of process is binding the same socket, i.e. 5037. What am I missing here? Mar 09 22:28:59 ;) Mar 09 22:29:04 also when you put a public constant you actually sort of comment it Mar 09 22:29:21 but this is my first Android project, so everythings misplaced Mar 09 22:29:34 yeah, but I do like the capital letters for such values, hehe Mar 09 22:29:38 instead of getInt("key", -1); which basically is vague Mar 09 22:30:01 but since I don't have need for it to be static I guess I should go with privat int defaultPlayfor = 3; Mar 09 22:30:10 if you put, getInt("key", NO_KEY_EXISTS); final static int NO_KEY_EXISTS = -1; Mar 09 22:30:26 you know what that default number is Mar 09 22:30:30 and why its there Mar 09 22:30:31 is stacktrace is a logcat output? Mar 09 22:30:36 tugucci: yes Mar 09 22:30:40 static final is basically java for constant Mar 09 22:31:08 on the otherhand quacked you can just do get("key", -1); // return -1 if no key exists Mar 09 22:31:15 Trinsta: yeah, hehe Mar 09 22:31:32 You'd use static final for fields that are known at compile time Mar 09 22:31:39 ^ that too Mar 09 22:31:50 Just final kind of implies that it's not known until runtime Mar 09 22:31:51 SimonVT: I don't understand that Mar 09 22:32:16 What part? Mar 09 22:32:24 the entire sentence :) Mar 09 22:32:24 final means, you need to instantiate the variable in public YourClass() { Mar 09 22:32:41 or instantiate it while naming the variable Mar 09 22:32:48 yeah Mar 09 22:33:00 I'm not sure how to respond to that Mar 09 22:33:08 SimonVT: mostly the "that are known at compile time" Mar 09 22:33:12 static final means, it can be used anywhere but its is a KNOWN constant Mar 09 22:33:16 Do you know what compiling is? Mar 09 22:33:23 sure Mar 09 22:33:46 Quacked: it basically means you the developer already assigned a CONSTANT value for that variable Mar 09 22:34:03 ^ Mar 09 22:34:06 it won't be changed, and you knew it before the apk/jar got compiled Mar 09 22:34:10 You know the value when you compile your app Mar 09 22:34:14 So you know it at compile time Mar 09 22:34:16 oh, right Mar 09 22:34:17 http://pastebin.com/Eq8eEbFG here it is Mar 09 22:34:20 yeah, of course Mar 09 22:34:27 As opposed to runtime, which is when it's run on a device Mar 09 22:34:35 yeah, I get it Mar 09 22:34:43 tugucci: android.content.res.Resources$NotFoundException: String resource ID #0x41 Mar 09 22:34:45 what does that say? Mar 09 22:34:46 Eclipse also gives errors if you make something final without initializing it Mar 09 22:35:01 tugucci: i'm going to teach you how to debug your own code from logcat :) Mar 09 22:35:34 Quacked: right, because it has to be instantiated when you create the variable or in your class constructor Mar 09 22:36:07 yeah Mar 09 22:36:08 Quacked: http://www.coderanch.com/t/405679/java/java/difference-final-static-final-static Mar 09 22:36:09 SimonVT: but use static final even though it's not needed in another class? Mar 09 22:36:20 ok =) Mar 09 22:36:31 Quacked: read the 2nd post in the forum Mar 09 22:36:36 Yes Mar 09 22:36:56 Trinsta: yeah Mar 09 22:37:04 tugucci: read over your logcat Mar 09 22:37:08 SimonVT: good, cause that looks clean :) Mar 09 22:37:08 where does the error start? Mar 09 22:37:36 Quacked: remember the caps !! Mar 09 22:37:38 Anyone here familiar with JSON? im having some trouble extracting the data from my JSON object Mar 09 22:37:42 03-10 00:32:45.812: E/AndroidRuntime(15395): FATAL EXCEPTION: main Mar 09 22:37:45 Trinsta: wouldnt be clean otherwise ;) Mar 09 22:37:46 this line Mar 09 22:38:06 it turns red i mean =) Mar 09 22:38:14 okay, that says you have a fatal exception meaning your app crashed Mar 09 22:38:18 next line states why it crashed Mar 09 22:38:21 what does that say? Mar 09 22:38:48 string resource id is not found Mar 09 22:38:55 Quacked: anything final = CAPS (static final, final) | anything static = sStatic (android convention) but you dont have to do android convention Mar 09 22:39:06 but once final is introduced popular naming convention = use CAPS Mar 09 22:39:28 tugucci: great, so that means your app crashed because it couldn't find a resource Mar 09 22:39:38 tugucci: what resource id did it point to? Mar 09 22:39:56 Don't make final fields caps, just static final Mar 09 22:40:19 ID #0x41 Mar 09 22:40:20 ? Mar 09 22:40:34 SimonVT: why not? 6.8.5 Constant Names says all constant names should be in caps Mar 09 22:41:20 tugucci: mhmm, so first did you forget to include a resource? Mar 09 22:41:22 Im trying to extract information from a JSON object with little luck!! Here is what i tried: http://pastebin.com/ukmpVvYe Mar 09 22:42:30 tugucci: the answer is no, but that usually should be the first question you ask yourself if you dont know what is wrong with the code Mar 09 22:42:39 You guys follow this? "Non-public, non-static field names start with m." Mar 09 22:42:41 Trinsta: next look at the following lines, it states where your first error occured Mar 09 22:42:53 I'm not quite sure what do you mean. Mar 09 22:43:03 so have i or have i not? =) Mar 09 22:43:05 Quacked: i do, haven't adapted it to my other code yet. but with all my newer code i use android convention Mar 09 22:43:14 tugucci: you have not, but that should be the first question you ask yourself Mar 09 22:43:34 tugucci, next your logcat stats, android.content.res.Resources.getText(Resources.java:230) Mar 09 22:43:44 but that can't be your error since thats android.content.res.Resources Mar 09 22:43:54 so you look at the next error, com.anton.testproject.MainActivity$1.onClick(MainActivity.java:32) Mar 09 22:44:03 Trinsta: nice spoon feeding Mar 09 22:44:12 now that includes your package name so that has to be related to your project Mar 09 22:44:30 Quacked: teaching him something that will save him counless of hours asking :) Mar 09 22:45:16 tugucci: so you look at that error, MainActivity.java:32 look at your MainActivity.class at line 32 Mar 09 22:46:08 textuage.setText(test.hello()); Mar 09 22:46:19 In Android, only static final fields are caps Mar 09 22:46:26 Imo it also makes a lot more sense Mar 09 22:46:32 hmm, never knew that Mar 09 22:46:49 btw, if I have multiple methods within a try-catch, if there is an exception at the first method, will it also try the next methods? Mar 09 22:46:57 tugucci, so that means textuage points to a referenceID that can not be found Mar 09 22:47:02 and whats wrong with it? Mar 09 22:47:04 Quacked: no Mar 09 22:47:07 oh ok Mar 09 22:47:18 Trinsta: was afraid so :) Mar 09 22:47:23 tugucci, final TextView textuage = (TextView) findViewById(R.id.text1); Mar 09 22:47:37 what it basically means is.... R.id.text1 can not be found :) Mar 09 22:48:02 No.. Mar 09 22:48:05 i'd ask you to post your activity_main.xml unless you think you can solve it Mar 09 22:48:19 What it means is that you're trying to pass an int to TextView#setText Mar 09 22:48:26 ah Mar 09 22:48:28 oops Mar 09 22:48:30 TextView#setText(int) expects a resource id Mar 09 22:48:43 0x41 does not point to a resource Mar 09 22:48:49 I'm checking it and id is there. I'll show you wait a sec Mar 09 22:48:54 If you want to set the text to some random integer, convert it to a string Mar 09 22:49:06 test.hello() can either be a resourceID or "text here" Mar 09 22:49:19 When my app tried to play sound once I got an exception I couldn't figure out (or I forgot to read the exception), would it be very wrong to try to play sound again in the catch (within a new try-catch there)? :D Mar 09 22:49:22 tugucci, don't bother SimonVT was right Mar 09 22:49:51 http://pastebin.com/C77qqXU9 Mar 09 22:50:12 Quacked: you'd put yourself in an infinite loop wouldn't you? Mar 09 22:50:47 wait a sec, I must think :P Mar 09 22:50:58 QUacked: i'd rather catch the exception that basically states sound will not play on this device show a dialog. Mar 09 22:51:20 Quacked, and other exceptions if they exist where your sound is just not working in that specific moment replay it Mar 09 22:51:26 Quacked, a better option would be to test beforehand Mar 09 22:51:44 if (soundEnabled) try{ } catch (Exception e ) { Mar 09 22:52:04 Trinsta: yeah, I think I have a test for sound, but I got the exception where for some reason it wouldnt play in a specific moment Mar 09 22:52:17 whats the exception Mar 09 22:52:19 so it mean's that if i want to output int to textfield i have to convert to string? Mar 09 22:52:27 Trinsta: I don't know, I can't reproduce it :P Mar 09 22:52:28 tugucci: refer to SimoNVTs post. Mar 09 22:52:50 why isn't onStop called immediately after you back out of an activity? testing this on an N4 Mar 09 22:52:54 tugucci: right, setText only accepts String's Mar 09 22:53:05 Strings* Mar 09 22:53:25 Doc says "Called when you are no longer visible to the user" Mar 09 22:53:42 tugucci, on your current setText(), try doing this instead setText(Integer.toString(test.getText())); Mar 09 22:53:54 or rather hello* Mar 09 22:54:10 tugucci, see what your output says Mar 09 22:54:33 Quacked, I wouldn't worry about it until I see it againhen :) Mar 09 22:55:13 it works =)) Mar 09 22:56:48 tugucci, my mistake, but based on that what you could have done is google up the docs for setText() and check the docs for its arguments Mar 09 22:57:15 Trinsta: I meant like this: http://pastebin.com/qYUcvqtD I can't see how that would go into an infinite loop Mar 09 22:57:18 great! thanks a lot! it was very very helpful! Mar 09 22:57:25 tugucci, in either scenario though, if all hope is lost just check everything related to that error line. shouldve started from the bottom hierarchy and slowly worked up to the top Mar 09 22:57:31 I'm missing a "(Exception e)" on line 8 I see Mar 09 22:58:40 Quacked: i dont think that would go into an infinite loop Mar 09 22:58:50 also dont think thats necessary :) Mar 09 22:59:12 if its just a one time bug that you have no logcat of just let it be until you see it again Mar 09 22:59:23 and if you didnt change anything to fix it Mar 09 22:59:24 No infinite loop, just a horrible solution Mar 09 22:59:26 so If something doesn't work i look for it in log cat few lines below it satrts being red Mar 09 22:59:35 just assume that it was some weird bug Mar 09 22:59:46 SimonVT: good, but tell me why it is horrible please .) Mar 09 22:59:52 tugucci: nope, you look at Caused "AT" Mar 09 23:00:03 tugucci, work your way down until you see your app and where it was caused at in your app Mar 09 23:00:11 everything else, treat it as extra information on your error Mar 09 23:00:32 Quacked, its ugly :) Mar 09 23:00:34 First step would be to figure out why it's failing Mar 09 23:00:34 Trinsta: yeah, I will, I just read somewhere that playing sound "could go wrong for a several reasons" and that it would be wise to have a backup or something Mar 09 23:00:41 Then figure out how to work around that Mar 09 23:00:54 Just doing the same thing again is not likely to change anything Mar 09 23:01:27 so in my case button click Mar 09 23:01:44 in this case I believed the error to be timing related, and thus could be fixed if I tried again Mar 09 23:01:58 but I'm gonna leave it alone and hope it won't happen again :P Mar 09 23:02:17 for a countdown app it is pretty important that it plays the sound though, hehe Mar 09 23:03:01 SimonVT: Follow Field Naming Conventions just took a look at it Mar 09 23:03:06 I haven't seen requests for it, but do people test apps for each other here? Mar 09 23:03:08 SimonVT: does make moer sense to follow that convention Mar 09 23:03:30 tugucci: no, in your case line 32 was your error Mar 09 23:04:06 tugucci: i jumped the gun, what you should've done was to just check everything that couldve gone wrong in line 32 Mar 09 23:04:31 which would either be the variable for the textview or the setText() method Mar 09 23:04:35 and the arguments within setText() Mar 09 23:05:02 but if you looked up more in your logcat Mar 09 23:05:05 you would see, at android.widget.TextView.setText(TextView.java:3769) Mar 09 23:05:14 so you instantly know its your setText method and the arguments passed within Mar 09 23:05:24 why 32nd? did you get it from the logcat output? I mean i see it there but why this line of logcat? Mar 09 23:05:36 tugucci, com.anton.testproject.MainActivity$1.onClick(MainActivity.java:32) Mar 09 23:05:38 you guys just test a couple real devices and virtual devices and then publish? or do you find beta testers? :P Mar 09 23:06:03 MainActivity.java is your class, :32 is what line it is Mar 09 23:06:35 Quacked: https://www.google.com/#hl=en&sclient=psy-ab&q=test+your+apk+online&fp=bb09cec32f72484a Mar 09 23:07:01 Quacked, a couple of services out there for you to test on multiple devices Mar 09 23:07:14 thanks Mar 09 23:08:18 Trinsta: I tinkered with some css and javascript some time ago, and the "logcat" I used there didnt take into account all the css in the top of the file. So the line number was way off all the time :P Mar 09 23:09:00 what? theres a logcat for css and javascript? Mar 09 23:09:29 I can't really remember what I was doing.. hehe.. it could have been opera extensions Mar 09 23:09:30 oh i know what you mean Mar 09 23:11:46 ok, I kind of got it, but on the gut level... will check if it works for me on some other project. by the way do you know any good article on how to look for errors in logcat? just to read it in other words? Mar 09 23:12:43 tugucci, nope, but i know how to find them. https://www.google.com/#hl=en&sclient=psy-ab&q=errors+in+logcat+tutorial Mar 09 23:12:45 :) Mar 09 23:13:33 tugucci, topic: http://imgur.com/jacoj it will always work for anothe rproject :) Mar 09 23:15:37 thanks a lot, it is the most useful thing i've learned in a week =))) Mar 09 23:16:11 Trinsta: trying apkudo.com now.. 110 devices failed and 50 succeeded so far :D Mar 09 23:16:27 Quacked: 110 devices failed your apk? Mar 09 23:16:30 <2.3 fails obviously :) Mar 09 23:16:34 ahh Mar 09 23:16:44 86 success, 116 failed now Mar 09 23:16:50 guess they do the low android versions first Mar 09 23:17:15 shouldn't you be able to dsiable testing on api's lower than <2.3 to filter out the nonsense failures? Mar 09 23:17:31 not sure, kinda just went "go go go" Mar 09 23:19:15 Quacked: heres a rough estimate btw Mar 09 23:19:15 http://pastebin.com/qC1Z8HcX Mar 09 23:19:28 i made that list so I could have a rough estimate of the limits of each device Mar 09 23:20:03 for instance of games, even if you set api to 9. someone will less than capable hardware can still be able to play your game Mar 09 23:20:04 HTC Magic Mar 09 23:20:16 which might turn into neg reviews :| Mar 09 23:20:55 that list also serves as a great guide on what devices you should buy if you were ever looking to find a good dev device :) Mar 09 23:21:16 hehe Mar 09 23:22:57 cool.. I found a 4.0 device that crashed Mar 09 23:23:25 and it gave failure fingerprint to direct line in a class: com.example.ninjatimer.PlayAlarmService.cancelVibration(PlayAlarmService.java:200) Mar 09 23:24:06 and I know I don't enclose or check if vibration is on before I cancel vibration :p Mar 09 23:27:14 it showed full traceback.. what a cool service Mar 09 23:27:55 I wonder if it works on games Mar 09 23:28:02 :D Mar 09 23:38:58 so, ive figured something out Mar 09 23:39:13 you know how people usually complain about their app not being distributed asap? Mar 09 23:39:40 you can lower the time it takes for the app to show up on browser (not sure for play store for devices) Mar 09 23:39:54 upload your apk early, 2-3 hours and then publish :) Mar 09 23:41:17 So no difference at all in the time it takes to reach users Mar 09 23:41:26 Only difference is you have to sit around for 2-3 hours before you hit a button Mar 09 23:42:58 well, its useful if you want it the apk to hit at a specific time :) Mar 09 23:43:49 hi Mar 09 23:44:00 Im fiddling with LinearLayout Mar 09 23:44:15 I've added two TextViews inside of it Mar 09 23:44:29 how can i make the ocupy each 50% of the LinearLayout? Mar 09 23:45:58 found out! Mar 09 23:49:44 Whats the most commonly supported video format on android? Mar 09 23:50:43 fALSO well what's the solution Mar 09 23:59:07 apple741: Probably x264. Mar 09 23:59:13 apple741: Has hardware decoding and all Mar 10 00:00:38 jrajav: Thanks jrajav , so could that be like an mp4 encoded in a certain way? Mar 10 00:00:45 Unless I'm getting confused Mar 10 00:00:57 mp4 is a container Mar 10 00:01:02 x264 would be what you said - the format Mar 10 00:02:22 I see, so in terms of containers what would I be looking for (just trying to get my head around all of this)? Mar 10 00:02:39 Probably mp4 :P Mar 10 00:02:51 ah ok lol :) Mar 10 00:02:55 Couldn't hurt to look up some resources on the current state of video containers and formats Mar 10 00:03:07 But you will probably end up at mp4/x264/720pish Mar 10 00:03:13 should I put everything on oncreate? Mar 10 00:03:53 jrajav: Yeah that was my initial thought but I probably wouldn't understand most of it :) Mar 10 00:08:39 Things I wish I knew when I started coding: design patterns Mar 10 00:09:41 I want to make something but im not sure if its possible Mar 10 00:10:08 In a listview, i want to show EACH ITEM (TextView), side by side Mar 10 00:10:42 but i want for each item to be just one TextView instead of the item being a LayoutView with Two TextViews Mar 10 00:11:11 I want that the ListView positions one on the left or the right automaticly Mar 10 00:11:26 if the row is emtpy, write on the first textview, one the left Mar 10 00:11:47 and the next item will be right to this one.. and then the next row Mar 10 00:11:50 is this possible? Mar 10 00:14:17 falso: no idea what you want, but you should draw it out :) Mar 10 00:14:23 helps imagining how things should go Mar 10 00:15:06 basicly i want to have a SIDE BY SIDE TEXTVIEW on a listview Mar 10 00:15:31 but i want that a "item" on the listview be just on Textview Mar 10 00:16:24 i think i got it Mar 10 00:29:18 is there any chance someone might be able to help me with repo sync issues? 9 times out of 10, repo sync just hangs on me, even if i'm just updating something i updated five minutes ago. happens on -j1, etc Mar 10 00:29:51 i've done the tcp window scaling thing that everyone recommends, i've got python 2.7.3... the internet seems to have no other ideas for me after 2 weeks of trying to figure it out Mar 10 00:30:03 makes using my server with jenkins basically impossible Mar 10 01:05:37 I'm using apkudo to check my apk at multiple devices, and a few devices there crash with RTE, Unable to start activity, Adding window failed Mar 10 01:06:17 At the line reported I create an AlertDialog.Builder, but what should I do to prevent the error? Mar 10 01:06:35 Should I just surround the entire creation of the dialog with try catch? Mar 10 01:07:07 trinsta, Mar 10 01:07:14 What i mean is the following Mar 10 01:07:31 In a listview, i have two textviews Mar 10 01:07:57 and i want that: position 0 in listview be the first textview, and position 2 be the second textview Mar 10 01:08:05 oops Mar 10 01:08:08 and i want that: position 0 in listview be the first textview, and position 1 be the second textview Mar 10 01:08:22 then, psotion 2, be the first textview in the second line Mar 10 01:08:33 and position3 the second textview in the second line Mar 10 01:08:46 anyone can point me to something that explains how to do this? Mar 10 01:09:13 Hi Mar 10 01:09:35 or doesnt this make any sense? Mar 10 01:10:22 Is there any source repo for aster other than google code and gitorious? Mar 10 01:11:41 most outdate is https://code.google.com/p/aster/source/list Mar 10 01:12:04 the gitorious is newer https://gitorious.org/aster/aster/commits/master Mar 10 01:12:28 maybe aosp have a copy of it in some place Mar 10 01:26:47 When asking the user to review your app you don't need to provide an app id or anything? Mar 10 01:37:42 wiliam: there's a copy on github, but I don't know how up to date it is Mar 10 01:38:08 wiliam: why not use the official AOSP source repos? Mar 10 01:38:26 oh, "aster". I have no idea what that is Mar 10 01:38:33 I thought you had just misspelled "master" Mar 10 01:39:50 whatever it is, I don't see it in the AOSP repo Mar 10 01:39:54 (https://android.googlesource.com) Mar 10 02:03:54 Can anyone reccomend me a good place to ask an Listview question? Mar 10 02:03:59 forum/site/wtv Mar 10 02:13:53 fALSO: Here or SO Mar 10 02:15:07 ok Mar 10 02:16:35 jrajav, basicly im reading data from a cursor to a listview Mar 10 02:16:54 but instead of having a "record" per line (textview) in a listview Mar 10 02:17:08 i want to have two textviews, and two records per "row" Mar 10 02:18:58 hum something pointed me to a GRIDVIEW Mar 10 02:19:02 going to look into it Mar 10 02:48:59 What's up guys! Mar 10 02:49:16 sky Mar 10 02:49:20 lol Mar 10 02:49:34 Actually the ceiling Mar 10 02:49:43 depends Mar 10 02:49:50 True Mar 10 02:54:44 sup fellow devs Mar 10 02:55:13 how goes the developments of the androding Mar 10 02:55:20 androiding even **** ENDING LOGGING AT Sun Mar 10 02:59:58 2013