**** BEGIN LOGGING AT Fri Sep 07 02:59:59 2012 Sep 07 04:31:45 Anyone know the link to the action bar / abs drawable online tool? Sep 07 04:41:49 Ahh found it for anyone interested: http://android-ui-utils.googlecode.com/hg/asset-studio/dist/index.html Sep 07 04:43:40 it's actually by Jeff Gilfelt here: http://jgilfelt.github.com/android-actionbarstylegenerator/ Sep 07 04:43:46 but it's linked form the android asset studio Sep 07 04:44:53 Ahh yeah thanks Sep 07 04:47:48 Jake: it is possible to do a tiling background drawable for ABS ? Sep 07 04:49:35 of course Sep 07 04:49:54 That's what I figured I just saw lots of problem posts, thanks for confirming tho Sep 07 04:50:04 that's because Android tiling was broken on pre-Honeycomb Sep 07 04:50:56 look at the 'Styled' example in the 'Demos' sample Sep 07 04:51:02 you basically just have to re-set the tiling in code for pre-Honeycomb Sep 07 04:51:13 o ok cool thanks Sep 07 04:54:14 How can you create custom controls that look like native controls? I now extend a view and draw on that. Sep 07 04:54:44 use styles from the theme Sep 07 04:55:29 How do I access those? At the moment I use holo theme. Sep 07 04:56:23 I'm new to using the android design guidelines. Sep 07 05:24:45 hey guys - I have a few fragments in a fragmentPager - if an event happens which causes animation on a hidden fragment (i.e. it is created but paused), the animation seems to be queued until the fragment is resumed Sep 07 05:25:05 is there any way to let the animation run while the fragment is visible? I don't want it to be delayed like that Sep 07 05:25:21 I am thinking otherwise I will have to check to see if the fragment/view is visible, and if not, don't perform the animation Sep 07 05:25:43 I couldn't find any documentation describing animations being deferred like this Sep 07 05:26:16 let the animation run while the fragment is invisible* Sep 07 05:29:51 hey, I Sep 07 05:30:23 actually, I lie, the fragment is resumed, just not visible... Sep 07 05:31:00 I'm trying to add tabs of listviews to my application....and the tabs work to switch between different fragments of LinearLayouts (they have different colors), but the listview data isn't showing up Sep 07 05:31:27 alexanderkardos: are you using fragments? Sep 07 05:31:40 yes sorry Sep 07 05:32:08 yes Sep 07 05:32:10 I assume you are using an ArrayAdapter or something to populate your listviews? Sep 07 05:32:21 let me send you some little bits of code Sep 07 05:32:28 are you doing that in onCreateView? Sep 07 05:32:36 use pastebin Sep 07 05:33:27 basically, in onCreateView of the fragment, inflate your view (I assume the layout root is a listView), cast that view to a listview, then call setAdapter on it and pass it the adapter Sep 07 05:33:56 if the layout isn't a listview, inflate the view, call findViewById on it to find your listview, cast to listview and call setadapter Sep 07 05:35:21 //This is what the fragment xml looks like Sep 07 05:35:21 Sep 07 05:35:21 android:layout_width="match_parent" Sep 07 05:35:25 android:layout_height="match_parent" Sep 07 05:35:27 android:orientation="vertical" Sep 07 05:35:29 > Sep 07 05:35:31 Sep 07 05:35:33 android:id="@+id/activelist" Sep 07 05:35:37 android:layout_width="match_parent" Sep 07 05:35:39 android:layout_height="wrap_content" > Sep 07 05:35:41 Sep 07 05:35:43 Sep 07 05:35:45 Sep 07 05:35:45 oh god Sep 07 05:35:47 //This is how I populate the listview Sep 07 05:35:48 use pastebin Sep 07 05:35:49 List list = getList(); Sep 07 05:35:51 ListView viewList = (ListView) findViewById(R.id.list1); Sep 07 05:35:53 ArrayAdapter adapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, android.R.id.text1, list); Sep 07 05:35:55 viewList.setAdapter(adapter); Sep 07 05:35:57 agh Sep 07 05:35:59 sorry Sep 07 05:36:01 one sec that was supposed to be pasted online Sep 07 05:36:07 http://pastebin.com/ Sep 07 05:36:10 lol Sep 07 05:36:14 I said I'm sorry! lol Sep 07 05:36:20 I clicked the wrong button Sep 07 05:36:24 sok I thought you meant to do that ;) Sep 07 05:36:28 let me fix it real quick, I have to do some transposition Sep 07 05:36:34 is gist.github ok? Sep 07 05:36:38 whatever Sep 07 05:36:40 sure :) Sep 07 05:38:09 //this is the fragment xml Sep 07 05:38:09 Sep 07 05:38:09 android:layout_width="match_parent" Sep 07 05:38:13 android:layout_height="match_parent" Sep 07 05:38:15 android:orientation="vertical" Sep 07 05:38:17 > Sep 07 05:38:19 Sep 07 05:38:21 android:id="@+id/activelist" Sep 07 05:38:25 android:layout_width="match_parent" Sep 07 05:38:27 android:layout_height="wrap_content" > Sep 07 05:38:29 Sep 07 05:38:31 Sep 07 05:38:33 Sep 07 05:38:35 //This is how I load the listview Sep 07 05:38:37 List list = getList(); Sep 07 05:38:39 ListView viewList = (ListView) findViewById(R.id.list1); Sep 07 05:38:41 ArrayAdapter adapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, android.R.id.text1, list); Sep 07 05:38:43 viewList.setAdapter(adapter); Sep 07 05:38:45 ugh....... Sep 07 05:38:47 I'm just doing this on pastebin Sep 07 05:38:49 I think it's glitching Sep 07 05:39:06 Just curious does android automatically scroll when enough images are on the screen? Sep 07 05:40:03 sorry for mucking that up Sep 07 05:40:03 http://pastebin.com/MVtqMV4u Sep 07 05:40:05 there you go Sep 07 05:40:10 alexanderkardos: if you are using a fragment, you would have to use getActivity() to get the context for the new ArrayAdapter call right? Sep 07 05:41:05 R.id.list1 doesn't match activelist Sep 07 05:41:19 does that code crash with a null pointer exception? Sep 07 05:41:28 or did you just refactor that a bit Sep 07 05:41:39 I was using findviewby id Sep 07 05:41:43 yeah Sep 07 05:41:51 and you pass the wrong id it seems Sep 07 05:41:55 null pointer exception Sep 07 05:42:07 in your layout the id is activelist Sep 07 05:42:13 and in the findViewById you pass list1 Sep 07 05:43:06 Is it possible to put a button over a Preference? Sep 07 05:43:28 optimusM: sorry I don't know Sep 07 05:43:38 Almost like SwitchPreference Sep 07 05:43:50 But im on lower then ICS Sep 07 05:43:54 which id? Sep 07 05:44:13 screw the transposition, one sec I'm fixing it Sep 07 05:44:32 alexanderkardos: in your layout: android:id="@+id/activelist" in your code: findViewById(R.id.list1); Sep 07 05:44:56 doesn't he need to switch it to R.id.activelist? Sep 07 05:44:57 https://gist.github.com/36d765832ddbcbc4ac0d Sep 07 05:45:07 that's what the block of code should look like, I just messed up the transposition Sep 07 05:45:38 activelist should be right, but I'm getting nullpointer Sep 07 05:45:44 try ArrayAdapter adapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, ActivePackages); Sep 07 05:45:48 goodmorning Sep 07 05:46:11 I haven't used the 4 value constructor for ArrayAdapter Sep 07 05:47:00 so anybody know about animations getting deferred when they aren't on screen? Sep 07 05:47:12 I am checking now if the view is "visible" (the fragment is not paused) Sep 07 05:49:24 still a null pointer Sep 07 05:49:32 what gives the NPE? Sep 07 05:49:35 can you post logcat? Sep 07 05:49:44 although it is much cleaner Sep 07 05:49:46 Can a off/on button work like play/pause? Sep 07 05:50:24 yes, but sorry one sec Sep 07 05:50:54 re my problem, the view (viewswitcher) which is on my fragment which is offscreen, is apparently visible Sep 07 05:51:19 so if the fragment is not paused, the view is visible, what exactly stops the animation from happening until I go and look at that fragment? Sep 07 05:51:19 Are you trying imageswitch? Sep 07 05:51:28 ViewSwitcher Sep 07 05:51:50 So it will switch to a different layout? Sep 07 05:51:55 I am trying to update it while it is offscreen - trouble is the update animation doesn't happen while offscreen, it waits until you switch over to it Sep 07 05:52:01 yeah well between two views Sep 07 05:52:06 a listview or a textview Sep 07 05:52:16 I want it to animate while on screen Sep 07 05:52:51 but when offscreen it can just be changed without animation so that when you go over to that page (via clicking on tab or swiping the viewPager) it doesn't animate Sep 07 05:53:22 can you show me an example Sep 07 05:56:05 not without a bunch of ripping it out Sep 07 05:56:58 oh ok. Sep 07 05:57:20 And just curious can i make a togglebutton with two different backgrounds? Sep 07 05:57:43 just wondering, what is there apart from onPause/onResume and view visible/invisible... is there something else, that says if it is actually displayed? Sep 07 05:57:46 like when I push on it will show a on background and when i push off it shows a different background? Sep 07 05:58:30 optimusM: not sure. can you make a button with a background image? Sep 07 05:58:38 then put two of them into a viewswitcher Sep 07 05:58:56 Yea I can Sep 07 05:59:15 Can i use a viewswitcher on api 8? Sep 07 06:03:23 ViewPager is API 4+ Sep 07 06:03:39 ViewAnimator is API 1+ Sep 07 06:03:50 ViewFlipper is API 1+ Sep 07 06:04:31 JakeWharton: hi, have you got any experience with animations being delayed, because the view was not on screen at the time? Sep 07 06:04:52 JakeWharton: even though the view is visible (according to getVisible) and the fragment it is in is resumed Sep 07 06:12:57 my solution for now is to check the viewpager to see if this fragment is currently displayed (or is being scrolled into position) and if it is not displayed then I will disable the animation. one crazy workaround though. Wish I could find some mention somewhere of animations being delayed like this. Sep 07 06:13:57 I haven't used fragment pager but view pager only keeps instances of adjacent views Sep 07 06:14:05 *adjacent pages Sep 07 06:14:09 lasserix: yeah, I have only two views Sep 07 06:14:13 and it is a ViewPager sorry Sep 07 06:14:31 with a fragment pager adapter Sep 07 06:14:56 lasserix: the fragment which is offscreen is there, it isn't paused, the view even thinks it is visble Sep 07 06:14:59 Just curious why do you want an unobservable animation to run? Sep 07 06:15:07 well I don't want it to Sep 07 06:15:20 I want it not to run when I go over to that tab/page Sep 07 06:15:30 Can you use onpageselectedlistener to do that? Sep 07 06:15:48 yeah it is just a lot of cross talk between my activity and my fragments then Sep 07 06:15:49 ie check the position if it's not the one that should be running it turn it off Sep 07 06:15:55 Ideally the fragment could be re-usable Sep 07 06:15:59 even not in a view pager Sep 07 06:15:59 i mean in your adapter Sep 07 06:16:01 you know? Sep 07 06:16:22 the event is being thrown by a third party library, it doesn't go through my adapter Sep 07 06:16:29 implement a callback in the fragment that is fired when on page selected triggers? Sep 07 06:16:53 yeah.... it is still coupling I don't want, I think I might just remove the animations :/ Sep 07 06:17:13 I have googled heaps and can't find any mention of animations being delayed, deferred, queued... Sep 07 06:17:34 the animation is delayed indefinitely Sep 07 06:17:42 so you want the animation to turn off when the page is shifted out of "focus"? Sep 07 06:17:50 until I go over to that page (even starting the drag over on the viewpager makes the animation run) Sep 07 06:17:54 yep Sep 07 06:17:55 exactly Sep 07 06:18:05 the views on the "offscreen" fragment are "visible" Sep 07 06:18:08 so they say Sep 07 06:18:17 and that offscreen fragment isn't paused Sep 07 06:18:17 well they exist Sep 07 06:18:23 yeah but they aren't on screen Sep 07 06:18:30 I mean, if they are visible, why isn't the animation happening Sep 07 06:18:38 what other property is stopping the animation Sep 07 06:18:40 you want to control the animation running from the adapter or the fragment? Sep 07 06:18:49 because if I knew that I could check on it myself Sep 07 06:18:55 the fragment Sep 07 06:19:23 so in fragment, I want code like "am I *actually* visible? yes: animate, no: don't animate" Sep 07 06:19:41 I am just stumped on the *actually* visible part! Sep 07 06:19:48 What is the command to put into Eclipse to allow the compiler to use multiple cores? --use=3? Sep 07 06:20:07 just use a call back in the fragment ? it'll be reusable Sep 07 06:20:35 yeah I guess. It isn't perfect but it will have to do Sep 07 06:20:47 sorry i dont know enough about animations Sep 07 06:20:49 I will make it default to animation so I guess that's ok Sep 07 06:20:53 me niether! Sep 07 06:20:59 the docs don't mention this case at all Sep 07 06:21:05 I will post on SO maybe Sep 07 06:21:48 just so much work, they will be like "where's the code" and I will have to write a small app to demo the error... gah Sep 07 06:21:59 anyway, thanks for the idea Sep 07 06:22:08 Really this build is taking far too long. 20 minutes and only 16% done. Sep 07 06:22:21 What is the command to use multiple cores for building? Sep 07 06:22:24 BadMrsFrosty: holy crap, how many java files fo you have/ Sep 07 06:22:44 About 3 or 4. Sep 07 06:22:52 4 java files? Sep 07 06:22:54 And 500 .cpp files. Sep 07 06:22:59 oh Sep 07 06:23:00 native Sep 07 06:23:04 ok Sep 07 06:23:22 sorry I have no idea Sep 07 06:23:37 what about ccache? Sep 07 06:23:49 can that be used to at least avoid recompilation of the C++ files which haven't changed? Sep 07 06:23:58 I am not familiar with eclipse android native dev Sep 07 06:24:00 Not that we have found. Sep 07 06:24:06 lame Sep 07 06:24:11 what compiler does it use? Sep 07 06:24:30 No idea. I just followed the steps on our web page. Sep 07 06:24:34 does it rebuild all C++ files, even if they haven't changed? like javac and all its stupidness? Sep 07 06:24:41 What it told me to click I clicked. Sep 07 06:24:44 Yes. Sep 07 06:24:51 I believe so. Sep 07 06:24:55 that's epically bad isn't it Sep 07 06:25:05 can you make a makefile to build the C++ part Sep 07 06:25:08 Google hates Android developers. Sep 07 06:25:10 or ant script Sep 07 06:25:14 yeah Sep 07 06:25:17 it's true. Sep 07 06:25:24 so do android developers Sep 07 06:25:27 lol Sep 07 06:26:43 And no debugger. No breakpoints. Just printf. Sep 07 06:26:58 love hate relationship makes the world run round Sep 07 06:27:17 My relationship with Android development is just hate. Sep 07 06:28:02 it gets better :D Sep 07 06:28:47 http://www.youtube.com/watch?v=uK5AOx7kUvQ Sep 07 06:28:53 er... no debugger? Sep 07 06:29:51 alright I'm sorry, I'm back Sep 07 06:30:25 is there any easy way to get the logcat from eclipse? Sep 07 06:30:31 probably not the best place to ask this but i assume someone here that builds something for android, also do some work for iOS, how is iOS app development? easier? same? the comment of BadMrsFrosty made me ask Sep 07 06:30:47 I like IOS a lot less Sep 07 06:30:49 ps: sorry about my english.. Sep 07 06:30:57 the code looks cleaner, but there are a lot less capabilities Sep 07 06:31:00 they limit you a LOT Sep 07 06:31:01 Extremely far better. Sep 07 06:31:05 xcode is horible, Obj-C super verbose Sep 07 06:31:13 dvdh: haha not again ;) Sep 07 06:31:17 xcode is the worst Sep 07 06:31:22 objc in eclipse would rock Sep 07 06:31:23 I love xcode lol, that's the only part I like... Sep 07 06:31:24 imo Sep 07 06:31:25 yup ;) Sep 07 06:31:28 XCode certainly has its problems, but still better than Android native development. Sep 07 06:31:39 BadMrsFrosty: probably :) Sep 07 06:31:48 it's cleaner and lighter Sep 07 06:32:10 i still hate the xib file editor, ctrl or cmd click a ui element to link to variable in header file? ughhh Sep 07 06:32:16 hey I worked out my problem for anyone interested... Each fragment has a "user visible hint" which is set by the pager Sep 07 06:32:21 BadMrsFrosty: what on earth are you trying to build, anyway? (and what are you building on, a netbook?) Sep 07 06:32:28 so when the fragment is not visible, getUserVisibleHint() returns false Sep 07 06:32:35 so yay for me! Sep 07 06:32:44 And fewer problems running on the device. Sep 07 06:32:51 haha briswolf congrats Sep 07 06:33:17 i'm not a developer yet, i'm studying for it, but what i seem to miss is a good ide for android, there seems to be only 2 ide's for android, am i right? anyway, i don't know squat about ios development, ide's etc Sep 07 06:33:19 BadMrsFrosty: oh def agree with the fewer device problems there Sep 07 06:33:28 nice briswolf Sep 07 06:33:30 Leeds, I am making this run on Android: http://www.youtube.com/watch?v=6cuXgRVMvZ0&feature=player_embedded Sep 07 06:33:45 Basically. Sep 07 06:33:59 ah yes, that does seem an appropriate entry point to learning a new platform Sep 07 06:34:44 I find that xcode and objective c in general will let you get away with bloody murder Sep 07 06:34:51 and then you code may crash later at some time Sep 07 06:35:05 generally speaking, the java compiler will catch more errors Sep 07 06:35:10 especially typos Sep 07 06:35:11 Note that I also do not use Objective-C when coding for iOS. Sep 07 06:35:26 yeah. Objc annoys me with optional selectors in protocols Sep 07 06:35:36 what is the point of a protocol that has only optional selectors Sep 07 06:35:54 BadMrsFrosty what is that a game or a opengl port or? Sep 07 06:36:16 That is a tech demo running on PlayStation 3. Sep 07 06:36:30 you can create the selectors in your class without conforming to the protcol, and then call those selectors from another class even though you don't conform to the protocol. so saying you conform to the protocol is little more than a comment for the next guy :/ Sep 07 06:36:39 end rant. Sep 07 06:36:41 And by making it run on Android you mean? Sep 07 06:36:46 bye! Sep 07 06:36:49 I’ve already added support for OpenGL ES 2 and iOS, and it runs on Android too, but missing some features. Sep 07 06:36:51 bye? Sep 07 06:37:12 I am going home, it's 4:35 on a Friday arvo and I am outta here Sep 07 06:37:16 BadMrsFrosty: Might be caused by differing hw? Sep 07 06:37:29 briswolf: beer o'clock! Sep 07 06:37:35 What might be caused by differing hardware? Sep 07 06:37:38 Missing features? Sep 07 06:37:51 haha still thursday here enjoy your weekend Sep 07 06:37:52 its 11:37 on a thursday here :( Sep 07 06:38:02 Of course we have to scale down some features, but right now a feature we need simply isn’t implemented. Sep 07 06:38:08 Friday here. Sep 07 06:38:14 3:38 PM. Sep 07 06:38:30 wat. i want it to be 4pm on a friday right now Sep 07 06:38:35 hmm, an hour east of me, very likely to be Oz Sep 07 06:38:47 Me? Sep 07 06:38:49 Japan. Sep 07 06:39:23 By tech demo do you mean eventually this will be available for developers to use to develop with? (or developers who pay to use it) Sep 07 06:39:36 oh, so can we expect star ocean on mobile device soon? :p Sep 07 06:39:58 BadMrsFrosty: cool, in the middle of planning my Christmas hols in Japan right now Sep 07 06:41:34 Tech demo means it showcases our technology/in-house engine. Sep 07 06:41:48 Ahh i see, cool. Sep 07 06:42:36 http://research.tri-ace.com/ Sep 07 06:43:25 BadMrsFrosty: it's people like you that make me feel like the GL code I write every day is worthless :)) Sep 07 06:43:40 How do I terminate an application? Sep 07 06:43:51 romainguy_, sorry, I didn’t mean to. Sep 07 06:44:15 BadMrsFrosty: do you want to terminate the app from within the app or from outside? Sep 07 06:44:15 BadMrsFrosty: different GLES implementations might have different featuresets. As for terminating... stop your own code and call .finish() on the activity? Sep 07 06:44:27 I used “Debug As Native Android Application”. Sep 07 06:45:06 After terminating the application on the device (I guess? This is my first day with Android) it is just spewing out a bunch of console messages. Sep 07 06:45:24 Isn’t there a button to just stop and fully close the application? Sep 07 06:45:43 there is Sep 07 06:45:53 but it's not how users are supposed to manage their apps Sep 07 06:45:55 logcat have a filter function on the left pane Sep 07 06:46:05 and the app restarts automatically when you relaunch it from the IDE Sep 07 06:46:14 All of the filters are being spammed. Sep 07 06:46:28 you can also scrolllock logcat Sep 07 06:46:44 BadMrsFrosty, you can create your own filters Sep 07 06:46:45 Well that would be another area where iOS development wins. Hit the Stop button and the application just stops. Sep 07 06:46:50 spammed with your own logs? Sep 07 06:47:02 Errors. Sep 07 06:47:07 you can hit stop but there's usually no reason to Sep 07 06:47:13 my own printf’s are in there too. Sep 07 06:47:18 in Eclipse there's a DDMS perspective Sep 07 06:47:21 with the list of running processes Sep 07 06:47:25 you can just click the stop button there Sep 07 06:47:36 What menu item? Sep 07 06:47:39 or you can bring up the list of recent apps on the device and swipe away your app Sep 07 06:47:41 BadMrsFrosty you are developing ndk? Sep 07 06:47:46 briswolf: you here? this is my pastebin of my error http://pastebin.com/3dE8CE2S Sep 07 06:47:47 or you can go to settings > apps and force stop your app Sep 07 06:47:48 Yes lasserix. Sep 07 06:48:13 alexanderkardos briswolf took off a few min ago Sep 07 06:48:28 oh alright Sep 07 06:48:36 thanks Sep 07 06:48:52 anyone know why I'm getting that nullpointer by chance? Sep 07 06:48:52 I found the button. Sep 07 06:49:22 I also suppose you can hit the stop button in Eclispe's debugger for similar effect Sep 07 06:49:37 but I don't use Eclipse myself Sep 07 06:49:56 I think I found it. Thank you. Sep 07 06:50:45 alexanderkardos: com.myname.myapp.TabsFragmentActivity.onCreate(TabsFragmentActivity.java:82) Sep 07 06:50:58 i would prob start with that line Sep 07 06:51:41 I have created back button in action bar using actionBar.setDisplayHomeAsUpEnabled(true); so if i click on it i go to my home activity and the problem is that if i click back I go back to that activity I came from to home, I think this is not correct action, app should go to background. Sep 07 06:52:09 how can i fix that? Sep 07 06:52:22 Okay at least it is not recompiling the whole thing when I change 1 file. Sep 07 06:53:22 dvdh: thanks! I figured that was it....but I still can't figuer out why it's happening. Sep 07 06:53:24 torniker: finish the last activity, or set activity launch mode/intent Sep 07 06:53:26 Leeds: amazon announcements were boring Sep 07 06:53:49 I'm trying to make tabs through fragments, and that line is setting the adapter Sep 07 06:53:49 alexanderkardos: is it setcontentview? Sep 07 06:53:55 care to take a lot at the code? Sep 07 06:54:11 well, brushing my teeth and sleeping, maybe tomo :) Sep 07 06:54:18 alright, have a good night Sep 07 06:54:23 lol I'll figure this out eventually! Sep 07 06:57:30 gnite Sep 07 07:02:18 Suddenly this error appeared: make: *** [libs/armeabi/libAPE.so] Error 1 Sep 07 07:02:31 What does it mean? It won’t go away even after I cleaned. Sep 07 07:02:40 (The project, not myself.) Sep 07 07:03:40 surely there are errors above that Sep 07 07:04:27 Nope. Just one below it saying it deleted the .so file. Sep 07 07:06:35 can you paste the whole build log somewhere? Sep 07 07:06:39 Which view is the one that shows what file is currently being compiled? Sep 07 07:06:48 No, it went away somehow. Sep 07 07:07:01 I commented out a line of code, it built. Commented it back in, it built. Sep 07 07:07:33 No clue what was causing the problem. The code hasn’t changed. Sep 07 07:08:23 That's the worst, at least you didn't have to duplicate your code. Sep 07 07:08:43 Now when I try to run it says there is a problem with my configuration. Sep 07 07:08:44 Sigh. Sep 07 07:08:53 I didn’t change my configuration…] Sep 07 07:09:53 What's the correct way to change the action bar menu item list within the same activity? Sep 07 07:10:04 It’s not even telling me WHAT the problem is. Sep 07 07:10:14 Problems list is empty. Sep 07 07:10:30 restart? Sep 07 07:12:51 I guess it is working. Sep 07 07:13:10 Again something that does not happen on iOS development (or is very rare). Sep 07 07:20:08 anyone mind helping me out with this stack trace? http://pastebin.com/YkX7NvdD Sep 07 07:20:45 seems that the spinner is causing a NPE for some reason, pretty much only caused by monkey, i can't yet reproduce it Sep 07 07:44:39 hey guys - quick question - has anyone tried upgrading the cpu/gpu/ram on a phone and succeeded? Sep 07 07:44:41 in a linear layout with vertical orientation is it possible to tell an element "take up all the space that isnt used up" ? Sep 07 07:45:04 android:layout_weight="1.0" Sep 07 07:45:58 hmm lets try Sep 07 07:46:14 yep looks right, thanks :) Sep 07 08:06:46 Im trying to make a on/off button like how play/pause button is but for wifi can anyone lead me to the right direction please Sep 07 08:07:47 What are you stuck on? Sep 07 08:08:18 I mean the button or the wifi? Sep 07 08:08:52 if you have root I think you can do it through the shell Sep 07 08:11:20 I have a List and in each item theres a spinner. Is there anyway to get the values of the spinners? Or do i need to set a setmethod() in my spinner to update the object, and then do a .getSelectedValue() on the objects? Sep 07 08:13:21 Im stuck on the button Sep 07 08:13:37 I wanna make a custom button turn on/off wifi like this Sep 07 08:13:45 http://stackoverflow.com/questions/8150596/android-how-to-create-slide-on-off-button Sep 07 08:16:34 anyone? Sep 07 08:16:39 if I want to implement a background service that does various stuff using the IntentService mechanism, do I have to create one IntentService for every action done by the background service? Sep 07 08:17:20 as far as I understand, I can just "trigger" the start of the service. Or is there a way to do further signalling via an intent? Sep 07 08:18:38 rigid, i think you can use message handlers to talk with the background service Sep 07 08:18:42 once its running Sep 07 08:18:59 rigid: sure, just pass something in the Intent and inspect it in onHandleIntent Sep 07 08:20:28 Bear10: yeah, the IntentService is a "simplification" of a Service to spare all that handler stuff Sep 07 08:20:35 g00s: really? how would I do that? Sep 07 08:20:36 ah Sep 07 08:20:51 i didn't find anything in the Intent API docs Sep 07 08:21:07 I have a List and i render Spinners with each row. Is there anyway to go through item by item and get the selected value of the spinner? Or do I need to set a listener on the spinner inside the adapter and update the object when the value is changed, so i can then just iterate over the objects? Sep 07 08:21:38 * rigid reads over http://developer.android.com/reference/android/content/Intent.html again Sep 07 08:22:32 rigid: maybe i didn't understand your question. you want to be able to send different commands to the IntentService ? or something else ? Sep 07 08:22:50 g00s: yes, that's exactly right Sep 07 08:23:11 g00s: maybe commands+arguments+maybe objects (like in a Message) Sep 07 08:23:28 but mor than just "trigger service start" would be cool :) Sep 07 08:23:33 *more Sep 07 08:24:02 yeah, just stuff some extra or command in the Intent Sep 07 08:25:08 g00s: by passing my own class to it? Sep 07 08:25:20 if its parcelable, yes Sep 07 08:25:21 the android device art generator doesnt work anymore (since a few days at it seems) Sep 07 08:25:29 ah, there's Intent.putExtra() Sep 07 08:25:44 is there another page to create those images Sep 07 08:25:57 negfx: maybe thats what also keeps the console stats working! you found the problem ! Sep 07 08:32:33 Anyone? I'm pretty stuck... Sep 07 08:33:44 hi Sep 07 08:33:51 i need some help Sep 07 08:33:58 with the GCM Service Sep 07 08:34:05 ? Sep 07 08:47:29 is it possible to run killBackgroundProcesses from an adb shell command? Sep 07 08:48:10 http://pastebin.com/NzBtnMcq anyone know how on line 15 i can get the desired result? i cant use getItem(position) because it's not "final" how can i solve this? Sep 07 08:48:52 Can someone help me if they have free time Sep 07 08:49:12 Im trying to combine these Sep 07 08:49:22 http://android-er.blogspot.com/2011/01/turn-wifi-onoff-using.html Sep 07 08:49:31 http://android-er.blogspot.com/2011/01/turn-wifi-onoff-using.html Sep 07 08:49:42 http://stackoverflow.com/questions/8150596/android-how-to-create-slide-on-off-button Sep 07 08:51:12 do you have the button working? Sep 07 08:51:50 Yea Sep 07 08:52:02 Just can't get it to turn wifi on/off Sep 07 08:52:29 brb Sep 07 08:55:51 Hello All, does someone here use ant to build their app? Sep 07 08:56:50 ok im back Sep 07 08:57:03 http://stackoverflow.com/questions/8150596/android-how-to-create-slide-on-off-button Sep 07 08:57:24 Here is this and I want it to keep this function but turn on/off wifi Sep 07 08:57:57 Does a seletor save the state? Sep 07 08:58:06 selector Sep 07 09:08:12 Is there a way to free memory from backgrounded applications from the adb shell? Sep 07 09:11:27 well i solved my first hurdle, now i need spinners to reload their old data in the list... Sep 07 09:13:53 How'd you end up doing it? Sep 07 09:14:16 HarisonIRC i dont think so, you could kill the applications but the whole point is memory is managed by the os Sep 07 09:16:12 lasserix, I understand it's not the done thing to kill processes, but this is an isolated need as the OS isn't freeing up enough to get a following task done. Sep 07 09:19:00 someone using ant ? Sep 07 09:22:49 yes but never used it beyond "ant debug install" Sep 07 09:25:08 i also used ant releaes Sep 07 09:25:16 s/releaes/release/ Sep 07 09:25:44 power user detected Sep 07 09:30:59 man spinners in lists are difficult :( Sep 07 09:45:45 how can i use a Spinner in a ViewHolder for ListViews? Sep 07 09:46:01 im trying to do it the same as with everything else but my data just goes all over the place Sep 07 09:49:51 ixc, sam Sep 07 09:50:32 i've an issue with ant. It says: ~/Desktop/android-sdk-linux/tools/ant/build.xml:570: Invalid file: ./build.xml Sep 07 09:50:53 but build.xml was generated using Sep 07 09:51:32 android update project -p . Sep 07 10:02:52 http://www.diffen.com/difference/IDE_vs_SATA Sep 07 10:03:01 lol at accent in video Sep 07 10:03:38 yup, Americans do talk funny Sep 07 10:05:02 ping ixc Sep 07 10:05:04 ping sam Sep 07 10:08:30 vekexasia: lets debug it, check project's build.xml, check android-sdk ant's build xml Sep 07 10:08:43 ixc Sep 07 10:08:50 i've another build.xml from the facebook sdk Sep 07 10:09:01 and launching ant debug there does work Sep 07 10:09:14 I've other library projects used in the app Sep 07 10:09:24 something like other 5 library projects Sep 07 10:09:38 should I create a build.xml for all of them? Sep 07 10:09:44 at library projects, you should update (android update lib-project...) Sep 07 10:10:00 and yes, it will generate one for it Sep 07 10:11:23 that's it Sep 07 10:11:33 Love you Sep 07 10:13:22 hmm, if I write to a database in a Service and then send a message to an Activity, which reads that data to display it... would that cause problems? Sep 07 10:15:18 u can have multiple read only instances Sep 07 10:15:54 basically I have a service which collects sensor data and stores it in background Sep 07 10:16:25 I'm just wondering how to make an activity that will show that data (with updates as it's being collected) in most efficient / easy way :) Sep 07 10:16:26 hello, I'm developing an app with a Service; this Service should check GPS every 60 seconds and show latitude, longitude etc. My problem is that if some other app was executed before (like Places) I can get the values with getLastKnownLocation(), but if this return a NULL value and I try to use requestLocationUpdates the app crashes ... Sep 07 10:16:53 ertl: and what exactly is the stack trace? :) Sep 07 10:17:34 every 60 second? batteries will love it :); btw put your stacktrace to pastebin Sep 07 10:18:41 nomnom battery :P Sep 07 10:18:54 "This method now does nothing. Do not use. Sep 07 10:18:56 helpful. Sep 07 10:19:14 :) Sep 07 10:20:02 ixc Sep 07 10:20:06 :) Sep 07 10:20:43 the tablet will be always on charge, so it's not a big problem, I hope Sep 07 10:20:51 Mavrik: you can call a callback function from your service that will update the views in the activity. I'm actually just doing this right now Sep 07 10:21:14 I'm getting a FATAL Exception Timer-0 at java.util.Timer Sep 07 10:21:40 ixc how to automatically sing the app with ant? Sep 07 10:21:51 i'm new to ant so comments on build.xml doesn't help Sep 07 10:21:52 ertl: that's not a stack trace... Sep 07 10:22:04 s/sing/sign Sep 07 10:22:17 Leeds: let me google how to obtain it then :) Sep 07 10:22:41 key.store, key.alias, key.store.password, key.alias.password Sep 07 10:22:48 these properties in ant.properties Sep 07 10:22:51 zerribert: yeah, that's what I was planning. I was just wondering if there are any locking problems if service writes database when activity tries to read it Sep 07 10:23:07 since "setLockingEnabled" is marked as deprecated :) Sep 07 10:23:25 hi. how can I increase the internal storage of my emulator? Sep 07 10:23:57 love you ixc Sep 07 10:24:34 and how can I setup the emulator to upload the apk to the sd card automatically when I press run in eclipse?? Sep 07 10:24:40 Mavrik: don't think so. If the service has it's own writeable instance and the activity it's own readable Sep 07 10:25:11 Mavrik: but hey, maybe I'm wrong. Haven't had the problem so far though Sep 07 10:25:20 :) Sep 07 10:26:05 I am suffering from not much free disk space Sep 07 10:27:09 Mavrik: http://pastebin.com/J1DBrfGK I hope this is OK ... Sep 07 10:27:54 i think error message tell everything for you Sep 07 10:28:47 ixc: the "Can't create handler inside thread that has not called Looper.prepare()" you mean? Sep 07 10:28:53 yes Sep 07 10:28:54 yeah, you're trying to use a Handler on a thread that has no Looper Sep 07 10:29:15 you want to make something with UI ? Sep 07 10:29:49 it could be related to trying to use requestLocationUpdates() inside a TimerTask? Sep 07 10:29:52 ixc last question about ant. When going in release mode i have to change the map key using the "release" certificate key. Is there a way I can change it automatically? - Right now i've a string which is map_key and i change it every time depending if i'm compiling in debug mode or not. Sep 07 10:31:44 you can check programatically, your code signed with debug key, or other Sep 07 10:33:09 would it be a good idea create a mapkey string file Sep 07 10:33:24 that contains only 1 string "mapkey" with the debug mapkey Sep 07 10:33:35 and when in release mode replacing this mapkey.xml file ? Sep 07 10:34:05 ertl: yes it can be the problem Sep 07 10:35:01 vekexasia: google #1 result: http://blog.blundell-apps.com/switching-android-configurations-using-constants-and-ant/ Sep 07 10:35:19 well I think i can't google then Sep 07 10:35:32 cause i were searching only stuff related to the map key Sep 07 10:35:48 it looks nice way, and they make example with maps key :)) Sep 07 10:36:26 yes i dislike it Sep 07 10:36:44 don't have the maps key in a .java file Sep 07 10:37:10 what? Sep 07 10:37:23 the maps key stands in the layout Sep 07 10:37:31 it will generate at compile time, depend on environment Sep 07 10:38:03 hi. how can I increase the internal storage of my emulator? Sep 07 10:38:44 how can i implement spinner inside of a listview, the recycling isj ust out of hand and i cant figure out a way to solve it Sep 07 10:38:48 yes i understand but that's not the way i want to proceed. Just because: a) I don't want to depend on ant also for debug release. b) i'd rather prefer to overwrite a .xml file entirely containing only the correct map key Sep 07 10:40:03 vekexasia: why? Sep 07 10:40:23 to which statement? A or B ? Sep 07 10:41:12 all :) Sep 07 10:43:35 well I want to continue pressing the "run" button on eclipse rather than doing ant debug + i've multiple dev environment and other people are working on this so they will need to adapt to ant Sep 07 10:43:40 and b Sep 07 10:43:54 I think the replacing a file is athe best solution for my Sep 07 10:44:03 case Sep 07 10:44:37 im sure about not; btw u can check runtime ur package is signed with debug key or other Sep 07 10:44:48 yes Sep 07 10:44:53 Using BuildConfig.DEBUG Sep 07 10:44:57 i know Sep 07 10:45:36 i think always change a file is a bad idea, but you need to choose what way fit to your project :) Sep 07 10:48:30 A user complains that my app is incompatible with his vodafone branded device. In developer console i can see the device in the list. Any ideas what could be wrong there? Sep 07 10:49:21 maybe you use something that not contains vodafone's rom? Sep 07 10:50:03 or market say, its not compatible with device? Sep 07 10:50:04 ok ixc i'll follow your hint Sep 07 10:50:11 even If i wanted to understand how to do that. Sep 07 10:50:40 The only lib i added is for licensing, yes market says its incompatible Sep 07 10:51:25 hi. how can I increase the internal storage of my emulator? Sep 07 10:52:17 superlinux-hp: emulator -partition size Sep 07 10:52:34 ah ok Sep 07 10:52:45 so it the partition! great Sep 07 10:52:56 has no one worked with a Spinner inside of a listview before? Sep 07 10:57:42 ixc: if id just compile an "empty" app with all my imports + the licensing, i could send him the app and ask for a logcat. Id then see what is missing in a logcat, correct? (considering the compiler isnt smart enough to leave all those unused imports out) Sep 07 10:58:39 Or did i understand you wrong? Sep 07 10:59:08 if market say its not compatible, maybe u set wrong something in manifest Sep 07 11:00:33 But it is in the device list in developer console, manifest small-xlarge=true, reqs:mic, landscape, touchscreen, min and target sdk=7 Sep 07 11:03:07 i think problem with meta infos (or maybe some licensing problem, dont know is exists in play or no) Sep 07 11:04:52 hi Sep 07 11:04:56 can you help me ? Sep 07 11:05:09 i've some problems to install coreutils Sep 07 11:05:59 i've some problems to install coreutils Sep 07 11:11:47 how do i print out time in ms, in java? Sep 07 11:12:21 just need to print it to the logcat Sep 07 11:12:31 simpledateformat? Sep 07 11:12:48 thanks ixc, haven't used that Sep 07 11:13:04 it's just to test timing on something Sep 07 11:14:44 but i think date's gettime also give you miliseconds, and calendar has method for it (fixme) Sep 07 11:16:08 i don't even know how to log a string to logcat Sep 07 11:16:16 something like Log("hello world") Sep 07 11:16:21 is that correct syntax? Sep 07 11:16:33 no, go to d.android.com and check android.util.Log Sep 07 11:17:00 pew pew pew Sep 07 11:33:46 hi room Sep 07 11:36:04 hello Sep 07 11:42:41 how can i handle multiple bitmaps without getting a out of memory exception? Sep 07 11:44:09 please suggest me some library that can generate/encode EAN-13 barcodes Sep 07 11:44:11 load them in size that you need; only load bitmaps that you will use Sep 07 11:44:30 ixc thanks Sep 07 11:44:40 but how about using a gallery? Sep 07 11:44:48 with hundred of bitmaps? Sep 07 11:45:12 how would you do this? Sep 07 11:45:16 are you displaying them all at the same time? Sep 07 11:45:32 only load images, that currently on your display Sep 07 11:45:43 check gallery on phone when you scroll fast Sep 07 11:46:11 yes, i want to display all of them in a carousell and onclick each one seperately in one imegeview Sep 07 11:46:34 use thumbnails then Sep 07 11:46:41 for the smaller images Sep 07 11:46:48 mhh ok Sep 07 11:46:54 and full-size image for the bigger view Sep 07 11:47:03 yeah Sep 07 11:47:21 no use having full-size images if you're scaling them down as you display them Sep 07 11:47:56 also, think about, how images come on to and go off the carousell Sep 07 11:48:06 i guess i will use romainguy's listview adapter http://www.youtube.com/watch?v=UApv-ZMJ51g Sep 07 11:48:17 if they're not being displayed, then don't need to be in ram/vram Sep 07 11:50:38 does anyone know, how to apply this to galleries? Sep 07 11:51:01 maybe, romainguy? Sep 07 11:51:29 Hi guys, I'm playing with animation. I have a button that I want to slide once it is clicked. I'm able to animate it but after the animation it becomes unclickable. Is there any method that I have to call to restore the correct behavior? (I set fillAfter to true) Sep 07 11:59:49 Hi, I have connected my android device to my computer. Is it possible to access the local web server on my computer from my android device? I tried accessing 10.0.2.2 but it failed to connect Sep 07 12:01:18 how do i log out a number, like printf.. so Log.v(TAG,"number = %d",number); Sep 07 12:01:57 oh, since my device is connected on the same network, I can access it through the network ip Sep 07 12:02:04 use number.toString Sep 07 12:02:30 is there nothing like printf in java i could use Sep 07 12:02:47 not for Log, as far as i know Sep 07 12:03:00 so i will need 2 lines of code Sep 07 12:03:10 one to construct the string, the second to log it Sep 07 12:03:14 is that correct? Sep 07 12:03:23 you can use it in one line Sep 07 12:03:34 can you give an example please? Sep 07 12:03:41 Log.v(TAG, number.toString()); Sep 07 12:03:49 what about log.v(tag, "blabla "+number.toString())? Sep 07 12:04:11 Int number; Log.e("yourtag", number+"") ; Sep 07 12:04:16 you can use + in java to concatenate strings? Sep 07 12:04:21 yes Sep 07 12:04:24 cool Sep 07 12:04:42 new to java (from c/c++) Sep 07 12:04:47 int + String = String; Sep 07 12:04:59 i think no Sep 07 12:05:24 I use it always like that, works Sep 07 12:06:32 i think you use string+int :) Sep 07 12:07:14 :) im on my nexus, thats the auto capital correction Sep 07 12:09:48 so i have 'int pointerCount' Sep 07 12:09:52 how do i log it? Sep 07 12:10:06 Log.v(TAG,"pointer count = "+?); Sep 07 12:10:11 oh god Sep 07 12:10:31 lol Sep 07 12:10:35 what? Sep 07 12:10:51 is that a dumb question? Sep 07 12:10:57 you must do (String)(String.valueOf(pointerCount).toString()) Sep 07 12:11:15 The more you cast, the less bug you will have Sep 07 12:11:52 Log. v(tag, "Pointer Count: " + pointerCount) ; Sep 07 12:12:07 aw dakdroid... Sep 07 12:12:12 that didn't work dakdroid Sep 07 12:12:13 you're not funny Sep 07 12:12:52 Huh? I dont want to be funny. Sep 07 12:13:14 that's good then! Sep 07 12:13:33 Ah ok, now i read your last answer and get it Ivru Sep 07 12:13:36 why wouldnt that work? Sep 07 12:13:45 looks fine Sep 07 12:15:25 does romainguy not help out people with his own stuff? Sep 07 12:16:35 MrQwak if my snipped didnt work you most likely had a typo, try copy/paste :) Sep 07 12:16:39 sorry, my mistake, it did work Sep 07 12:16:42 thanks Sep 07 12:17:19 :D Sep 07 12:18:33 i want to check some timings for onTouchEvent (still getting slow touches), how can i get system time in ms? Sep 07 12:19:20 U mostly get slow touches because u capture every touch. Sep 07 12:19:30 Most likely* Sep 07 12:19:52 isn't that needed for multi-touch games? Sep 07 12:20:24 You capture all, which means around 100 per secon Sep 07 12:20:29 d Sep 07 12:21:03 is it better for the game, not to capture all? Sep 07 12:21:36 it feels a bit unresponsive, and spoils user-experience, compared with iPhone version Sep 07 12:23:17 If i remeber it right i just added a counter and only accepted every 20th touch event for further processing. Sep 07 12:23:28 Been a while Sep 07 12:23:33 Anyone know of a good spinner design example along the lines of ICS? Sep 07 12:24:25 i can't see how that would help dakdroid Sep 07 12:24:33 hello Sep 07 12:24:35 wouldn't it only make matters worst? Sep 07 12:24:52 missing 95% of touch events Sep 07 12:25:31 No Sep 07 12:25:38 MrQwak put a Log.e in the ontouchlistener and look how often it gets called when u only single press something. Then move your finger and look. Sep 07 12:25:43 They are generated on 10s of millisecond scale Sep 07 12:26:23 MrQwak for games usually you have a cut off like dakdroid said otherwise your ui thread will get clogged and become unresponsive Sep 07 12:26:45 oh, this sounds very interesting, thanks Sep 07 12:26:59 it could be what is happening for me Sep 07 12:27:08 Are you making a game? Sep 07 12:27:11 yes Sep 07 12:27:14 If i remember another solution right, you could use sleep(). Sep 07 12:27:25 No sleep is a bad idea Sep 07 12:27:39 calling sleep on your UI thread will also make it unresponsive since it will be asleep Sep 07 12:27:43 porting this: http://www.mrqwak.com/games/retroracing/ Sep 07 12:28:07 Ahh cool Sep 07 12:28:11 Yeah it mustnt be in the main thread then, ocf :) Sep 07 12:28:21 it feels fine on a nexus 7, but sluggish on samsung s2 Sep 07 12:28:42 my touches are in the main UI thread Sep 07 12:28:52 my game (update and render) is in another thread Sep 07 12:29:18 Then use a simple counter, should work then Sep 07 12:29:21 MrQwak the book is worth the money but you probably know a lot of it but here's the source code for the book : http://code.google.com/p/beginning-android-games/ Sep 07 12:29:45 all input events happen on the main thread you can process them and pass them off to the update if you want Sep 07 12:29:48 thank you lasserix Sep 07 12:30:03 everything with the game is working great, getting a steady 60 FPS Sep 07 12:30:07 anyways in that book he recomends not only doing the temporal cut off for touch events but also using a pool Sep 07 12:30:09 just a problem with the touches Sep 07 12:30:45 in the main UI thread, all i do is store the touches, i don't use them for anything, that happens in the game thread Sep 07 12:30:53 is that the same as using a pool? Sep 07 12:31:00 Could you explain what is meant by pool in a few words? Sep 07 12:31:17 i thought pool, just means a buffer? Sep 07 12:31:30 buffer that recycles Sep 07 12:31:43 Ah ok, ty Sep 07 12:32:14 a set of objects that are allocated upfront, assigned as needed, unassigned when freed by referencing to enable recycle of the original set Sep 07 12:32:34 yep, that is what i do, the buffer get's flushed by the game, every frames (60 times a second) Sep 07 12:34:16 so, is the main UI thread becoming clogged up, because of too many (too often) touch events? Sep 07 12:34:17 Here's an example of what dakdroid said: http://www.edu4java.com/en/androidgame/androidgame7.html Sep 07 12:34:33 in the first coding listing at the bottom in the onTouchEvent Sep 07 12:35:14 the if ( curtime - last click > 500) { lastclick = cur time; do stuff } Sep 07 12:35:54 Man my bookmark list is getting so out of hand im going to have to use some ai to sort it all Sep 07 12:36:01 hey all, i have a question: i have an image in an intent (it's just one image), when it's in portrait mode i want it to lock the aspect ratio, but in landscape mode i want it to fill the screen Sep 07 12:36:06 how can i best accomplish this? Sep 07 12:36:51 kaneda what do you mean in an intent? Sep 07 12:38:10 How can i do a splitactionbar with the overflow-icon on the top? Sep 07 12:38:34 anyways there are two ways: you can define the xml layout resources for the layout containing the view using the image differently for landscape and portrait mode (layout-por layout-land or something like that check google website) or you can in code check the orientation and set the image view to displayed as you wish Sep 07 12:38:58 * Hodapp breaks the seal on another bottle of scotch, and digs into automatically-generated JNI code. Sep 07 12:39:29 lasserix: me?! Sep 07 12:39:31 Hodapp: http://xkcd.com/323/ Sep 07 12:39:48 no that was for kaneda^ Sep 07 12:39:56 i was wondering D: Sep 07 12:39:58 :D Sep 07 12:40:21 yo ho, i have a prob., i've set a webview's background to transparent and on some phones it works fine and apparently on newer androids (can't name them specifacally) it's white, would appreciate some pro-tips Sep 07 12:45:09 thx guys ;_; Sep 07 12:47:19 i don't think the delay idea is a good solution for me Sep 07 12:47:46 i need touch input to be updated 60 times a second, so every 16.666 ms Sep 07 12:47:57 How can i do a splitactionbar with the overflow-icon on the top?° Sep 07 12:48:01 waiting for 300ms would be very bad i think Sep 07 12:50:33 do most android devices have accelerometer? Sep 07 12:51:11 MrQwak, most - but not all, you need to check your target market Sep 07 12:51:36 thanks. is it possible to add it as a requirement for a game on google play store? Sep 07 12:52:13 what about my problem guys ;_; Sep 07 12:53:53 MrQwak that's what the badlogic guy says, every 16 ms Sep 07 12:54:01 I think for the same reason (since that is timestep) Sep 07 12:56:21 been stumped on this for a week now Sep 07 12:56:28 have just solved it... Sep 07 12:56:30 hello all Sep 07 12:56:33 how i can get index of element in TreeSet or recommend some Auto Sorting Collection with that function? Sep 07 12:56:48 Did it work? Sep 07 12:56:49 ship the game with sluggish controls! Sep 07 12:57:02 that's my solution... Sep 07 12:57:08 god, i am such a bad programmer Sep 07 12:57:13 Part of the car's handling Sep 07 12:57:27 yes Sep 07 12:57:33 Figure out how to do it later and pass it off as an engine upgrade in app purchase ;p Sep 07 12:57:34 it's to steer left and right Sep 07 12:57:41 yeah Sep 07 12:58:06 IAP - new super-responsive touch controls - only $.99 Sep 07 12:58:16 *mwhahaha* Sep 07 12:58:42 no seriously, it is stumping me Sep 07 12:58:50 it's like my own main thread is blocked Sep 07 12:59:06 threading has practical uses in real life Sep 07 12:59:26 what are you testing on? Sep 07 12:59:36 only have 2 devices Sep 07 12:59:43 both new ish Sep 07 12:59:55 google nexus 7 (everyone seems to have one) Sep 07 13:00:04 and a samsung galaxy s2 Sep 07 13:00:12 it's the s2 that is the problem Sep 07 13:00:23 oh well i doubt that's the problem then Sep 07 13:00:40 i think it may be a factor error in your code? Sep 07 13:01:18 like you need adjustable senstivity for controls? Sep 07 13:01:43 that way the user can just set it to whatever they like best Sep 07 13:01:47 think is, i'm essentially using the exact same game code (C++) as the iOS version Sep 07 13:02:16 do you know if your threads are actually getting blocked? Sep 07 13:02:23 and it performs different on iOS devices and the N7, to how it performs on the S2 Sep 07 13:02:36 i'm unsure to be honest Sep 07 13:03:03 my game thread looks to be very smooth, i can see it's 60 frames a second, just looking at it Sep 07 13:03:19 not sure if the main UI thread is sticking Sep 07 13:03:25 i tried sleeping it Sep 07 13:03:33 also tried different priorities Sep 07 13:03:43 tried sleeping the game thread too Sep 07 13:03:47 try putting sleep(16) in your ontouch event Sep 07 13:03:56 like drakdoid said Sep 07 13:04:22 actually i looked in the book and that's what the guy implements it as but the thing is that's usu for older devices (its an older book) newer devices should run fine Sep 07 13:05:12 like Thread.sleep(16);? Sep 07 13:05:25 yeah Sep 07 13:05:29 you might try and see? Sep 07 13:05:54 trying... Sep 07 13:08:44 hard to tell, certainly not made it worse Sep 07 13:08:48 maybe it's just me Sep 07 13:09:59 it's like if a virtual on-screen button is pressed down 3 frames (50ms) longer than you're actually touching it, it makes a difference to the direction your car is facing Sep 07 13:10:15 yeah i know i made a flying game very similar problem Sep 07 13:10:16 maybe new people to the game won't notice though Sep 07 13:10:29 just make adjustable sensitivity? Sep 07 13:11:10 you say it works fine on the nexus 7? Sep 07 13:11:16 yes Sep 07 13:11:32 seems great on the N7 Sep 07 13:11:39 not sure why it would be different Sep 07 13:11:41 is it designed for phones too? Sep 07 13:12:06 yep Sep 07 13:12:18 it could be some weird hardware or OS difference, the thing about fragmentation is it makes it harder to predict than homogenous iphone standards Sep 07 13:12:24 it adjusts itselff, depending on screen resolution Sep 07 13:12:26 try borrowing a friends android phone? Sep 07 13:12:38 oh well if it already adjusts just make it user adjustable Sep 07 13:12:40 hope to pop round to a friends company Sep 07 13:12:45 he has loads of them Sep 07 13:12:56 also very knowledgeable on android development Sep 07 13:13:06 screens have different densities Sep 07 13:13:16 yep Sep 07 13:13:19 i noticed that Sep 07 13:13:23 pixel densities Sep 07 13:13:32 i've not taken that in to account Sep 07 13:13:46 cause if it were more or less than it would be causing more or less responsiveness? Sep 07 13:13:51 since they are two different devices Sep 07 13:13:52 i just go on actual pixel resolution, maybe that's not idea Sep 07 13:14:13 ideal* Sep 07 13:14:29 well test it with your friends phones and see how it works, then you'll know if you have to refactor Sep 07 13:14:39 but im telling you just make the senstivity user adjustable Sep 07 13:15:00 users like adjusting their inputs anyways, espicially for games that is one of the number one desirable features in a game Sep 07 13:15:30 like it might seem like input thru the accely is the fun way to go, but some people just dont want to deal with tilting their device Sep 07 13:16:15 yeah, accelerometer would solve a lot of problems Sep 07 13:16:26 not for this game though, i think it needs touch Sep 07 13:16:37 anyhow Sep 07 13:16:46 i'm going to put the issue on a back-burner for now Sep 07 13:17:13 need to do some other stuff to the game, reloading openGL textures when the context is lost Sep 07 13:17:39 on iOS that all happens for you, the OS takes care of a lot of stuff behind the scenes Sep 07 13:18:14 also need to think about how to monetize it Sep 07 13:18:25 ftp Sep 07 13:18:33 free to play? Sep 07 13:18:40 android users don't have disposable income iphone users have Sep 07 13:18:43 with IAP for unlocking content? Sep 07 13:18:45 i have not seen stats but that's my guess Sep 07 13:18:46 yeah Sep 07 13:18:57 basically you want maximum exposure which means some of the game is free to play Sep 07 13:19:01 *should be Sep 07 13:19:07 think i agree Sep 07 13:19:14 i think iOS is going that way too Sep 07 13:19:17 then from there you can do level upgrades or whatever, but the key is to make it available to everyone Sep 07 13:19:36 unlock 'responsive controls' hehe Sep 07 13:19:37 because you can also put in an ad nag screen on the free one after so many times of it being played Sep 07 13:19:41 haha yeah Sep 07 13:20:18 so for the IAP, i assume you need to have separate code for each app store? Sep 07 13:20:27 i'm just thinking of google play, and amazon Sep 07 13:20:32 haven't gotten that far Sep 07 13:20:59 made half a dozen apps but i get unmotivated about at the 90% marker, finally working on something ill finish then go back and finish those other ones Sep 07 13:21:13 ah right Sep 07 13:21:20 good to finish stuff Sep 07 13:21:34 not so good to have lots of unfinished projects :) Sep 07 13:21:41 yeah tell me about it ;p Sep 07 13:22:04 it's great when you've finished a game Sep 07 13:22:10 no longer need to think about it Sep 07 13:22:18 can move on to something new and fresh Sep 07 13:22:37 haha that's how i am feeling about this app now Sep 07 13:22:38 just need to be persistant :) Sep 07 13:22:48 got much left to do on it? Sep 07 13:23:01 yeah i have a stack of games i want to develop but got only knee deep in the opengl before some other inspiration struck Sep 07 13:23:28 also want to build the game engine from ground up to learn the ins and outs but that is definatly not productive Sep 07 13:23:56 well, it's a long haul Sep 07 13:24:13 so, about viewbounds how can i make it so that it scales correctly in one orientation and fits the screen in another? Sep 07 13:24:19 long term investment, like building the infrastructure to use as a base, for all your games Sep 07 13:25:02 kaneda: you can do it via xml by defining two layouts one for land and one for por or in code by checkingorientation and doing proper fitting as needed Sep 07 13:25:39 MrQwak yeah that is the idea, just new to programming (not so new now) so often I end up rewriting lots of code when i figure out how to make it more efficient Sep 07 13:25:56 lasserix, i see, but what does that look like in terms of scaletype? Sep 07 13:26:16 kaneda: i believe imageview's have some methods associated with scaling Sep 07 13:26:17 what's "MATRIX" Sep 07 13:26:21 in scaletype Sep 07 13:26:28 "Scale using the image matrix when drawing." <-- no comprende Sep 07 13:26:58 i think i need "center_inside" for portrait and fit_xy for landscape Sep 07 13:27:13 you never stop learning! Sep 07 13:27:15 this is xml? Sep 07 13:27:23 lasserix, yep Sep 07 13:27:23 i've been programming for over 25 years Sep 07 13:27:26 android:scaleType Sep 07 13:27:59 coding in assembler (6502) 25 years ago... Sep 07 13:28:03 ouch... Sep 07 13:28:13 i've been programming in java for 8-9 years Sep 07 13:28:33 it's great, constantly learning and evolving Sep 07 13:29:03 matrix is a basically a function dunno how it works in xml unless there is predefined matricies to use Sep 07 13:29:16 finding android to be a bit challenging though! Sep 07 13:29:34 if it doesn't stay challenging you just get bored Sep 07 13:30:14 sure, and you also learn different strategies for overcoming the challenges Sep 07 13:30:28 sometimes a good one, is to just let it go for a bit Sep 07 13:31:01 sounds mad, but often find, when i stop trying to find the answer, it just comes to me Sep 07 13:32:41 that's like the zen philosophy that You'll never find nirvana looking for it (since you are too busy looking) Sep 07 13:33:08 excuse me I have to go shoot a bird Sep 07 13:33:09 exactly Sep 07 13:33:24 i gotta shoot too, catch you all laters Sep 07 13:34:09 ^^ both going to masturbate. Sep 07 13:34:19 'gotta shoot' Sep 07 13:35:37 man Sep 07 13:35:46 i've tried every scale type for portrait and it doesnt look like Sep 07 13:35:48 right* Sep 07 13:38:32 fitEnd is good for landscape Sep 07 13:38:35 hey guys, I need some Metro UI View style Sep 07 13:41:49 you hussy Sep 07 13:43:55 android:scaleType="fitCenter" and android:adjustViewBounds="true" Sep 07 13:44:39 kaneda did you see this so? http://stackoverflow.com/questions/6267733/android-resizing-imageview-in-xml Sep 07 13:51:32 okay help how can i remove log statements from my code using proguard? proguard seems to be keeping any log method that is called from any class/member that is marked as 'keep' Sep 07 13:59:23 fucking woeguard Sep 07 14:01:41 Whats the best way to close softkeyboard from use by an edittext when a touch event occurs outside the edittext? Sep 07 14:02:02 for instance; if I put the following: DLog.v("Hi"); into an onItemClick listener it doesn't get removed Sep 07 14:02:29 I thought you were supposed to remove all your logs before packing it up anyways? Sep 07 14:04:17 Hello Sep 07 14:04:22 add DLog class as assumenosideeffects (or sorry if i missunderstand) Sep 07 14:04:32 anyone know if C# is possible in Android Development? Sep 07 14:04:40 that's what I've done ixc, proguard is still keeping it :( Sep 07 14:05:24 other rule that overwrite this? Sep 07 14:05:52 apparently, since it's getting kept :p but I can't think what it is Sep 07 14:07:01 anyone know if C# is possible in Android Development??? Sep 07 14:07:37 with something like mono Sep 07 14:07:59 iKillCypher: http://lmgtfy.com/?q=android+c+sharp Sep 07 14:08:11 no I mean seriously those are rubbish Sep 07 14:10:12 .... implements android.support.v4.app.Fragment: void onCreate(android.os.Bundle) (903:904) ... is kept by a directive in the configuration. Sep 07 14:11:19 hi.. need some help here.. Sep 07 14:11:20 http://pastebin.com/n2zr9hJK Sep 07 14:11:45 whenever I click on the button the application closes Sep 07 14:12:11 Unfortunately app has stopped error Sep 07 14:12:17 stacktrace Sep 07 14:12:20 pkp: probably because the View is a Button Sep 07 14:12:25 pkp: so you get a ClassCastException Sep 07 14:12:40 on line 24 Sep 07 14:12:58 pkp public void onClick(View v) ---> the v refers to the button generating the click event Sep 07 14:13:58 oh.. right! Sep 07 14:15:07 Inside onItemClick you want to use the v as v.findViewById(...whatever that default checkview's id is cause I have no idea...) then you can get the value from there Sep 07 14:15:55 but that code is a little confused since what are you trying to do? the user clicks on a list item and then has to click on a button outside the listview too? Sep 07 14:16:29 the user selects different options from the CheckedTextView Sep 07 14:16:33 and then submits it Sep 07 14:16:44 I collect the ones that he has selected Sep 07 14:17:05 I need to get the view that is in onItemClick into button's click event Sep 07 14:18:17 I am not sure how to do that best but you could use an intermediate object or variable to hold the state of the checkviews, ie in onitemclick update the intermediate var and then on button click use the intermediate var values Sep 07 14:19:48 isn't there anyway to get the instance of checkedTextView inside onClick method? Sep 07 14:20:16 you can't pass anything into the onclick method unless you make your own button extending button view Sep 07 14:20:27 even then I'm not sure Sep 07 14:21:14 hm.. so then I have to probably make an array or something storing the things that he has selected in the onItemClick? Sep 07 14:21:28 how do I access it outside? Sep 07 14:22:09 but more simply you can just make a class like this.. like public class mUserOptions() {boolean A = false; boolean B = false... public mUserOptions(bool A, bool B..) public void setUserChoice(bool mBool) {...} { this.A = A...} } and then set those values using mUserValues.setUserChoice from the onitemclick and then in the button onclick reference mUserChoice.A mUserChoice.B Sep 07 14:22:18 yeah exactly Sep 07 14:22:25 array would be simply Sep 07 14:22:42 added benefit is you could also pass those to a save instance state if for whatever reason the app got paused Sep 07 14:23:48 the thing with array is I am not sure how many elements will be there in the array Sep 07 14:23:57 right now I am using ArrayAdapter Sep 07 14:23:58 use an arraylist Sep 07 14:24:07 hello Sep 07 14:24:08 but I want to change it to CursorAdapter Sep 07 14:24:11 or initialize it after setting up the adapter Sep 07 14:24:32 oh then use an array list or some scalable collection Sep 07 14:24:45 how can i Update only phone's contact number when multiple number under one Contact like facebook,google Sep 07 14:26:01 also, if I use an array in onItemClick then what if the user toggles the state Sep 07 14:26:09 how do I change it in the array Sep 07 14:26:10 ? Sep 07 14:26:22 so the new kindle fire is pretty high resolution. even XHDPI may not be high enough res, right? Sep 07 14:26:24 I have to bind it? Sep 07 14:27:40 how do you normally access an array? Sep 07 14:27:51 *assign some element in an array Sep 07 14:28:25 What's a good pdf/djvu reader for tablets? Sep 07 14:28:41 All the free ones just suck. Sep 07 14:29:04 Why is my market download counter stuck at 5k-10k when android developer console tells me that I have hit >10k downloads almost a week ago? Sep 07 14:30:30 takes some time to update i guess Sep 07 14:30:39 also, what number you looking at in console? Sep 07 14:31:05 theres total downloads (or something like that) and total actual installs which subtracts uninstalls i think Sep 07 14:31:11 total downloads Sep 07 14:31:27 hello anybody know how can we update the number when single contact have multiple numbers like google number,facebook number Sep 07 14:31:47 market updated from 1k-5k to 5k-10k almost instantly when total downloads went above 5k.. so I thought it should be less laggy Sep 07 14:34:00 also: buildconfig.debug doesn't work when using 'ant release' Sep 07 14:34:03 which is super lame Sep 07 14:35:52 adios Sep 07 14:51:53 anyone have any thoughts on super high res assets for new kindle fire? is xhdpi gonna cut it? Sep 07 14:52:18 I'm a noob to android dev, and I wanted to verify that I'm using the right component to create a interface similar to the contacts app. I want to make a expandable feature next to my name text input to allow for addtional entries, such as middle name, last name, and so on. IS this done using ExapandableList? Sep 07 14:53:03 *ExpandableList Sep 07 14:53:41 or is there a better method to accomplish this? Sep 07 15:05:38 luxurymode: does xhdpi cut it for a galaxy nexus? Sep 07 15:05:48 i think so Sep 07 15:05:57 but the new kindle fire higher res than that Sep 07 15:06:00 am i missing something? Sep 07 15:06:09 oh actually thought you said nexus 7 Sep 07 15:06:10 hmm Sep 07 15:16:02 GN is 710x1280 and 124 ppi new kindle fire 8.9 inch model is 1920x1200 with 254 ppi Sep 07 15:18:14 luxurymode what? Sep 07 15:18:18 galaxy nexus? Sep 07 15:18:24 it's 1280x720 at 213ppi Sep 07 15:18:30 err no Sep 07 15:18:32 that's the nexus 7 Sep 07 15:18:39 galaxy nexus is 1280x720 at like 316ppi Sep 07 15:18:50 ^ Sep 07 15:18:53 gn ppi is mad Sep 07 15:19:01 yeah youre right my bad Sep 07 15:19:04 luxurymode 254ppi is not xhdpi Sep 07 15:19:06 it's hdpi Sep 07 15:19:08 1280x720 with 316 ppi Sep 07 15:19:37 so the new kindle fire is actually hdpi? Sep 07 15:20:10 well there are different kindle fires Sep 07 15:20:13 the kindle fire HD is hdpi Sep 07 15:20:29 actually wait Sep 07 15:20:34 i need to look these up again Sep 07 15:21:24 any recommendations for a brute force tool to get the keystore password? Sep 07 15:21:31 haha yeah lemme know what you find out canadiancow Sep 07 15:21:49 http://bit.ly/QlO8jX this doesn't seem to work Sep 07 15:22:03 luxurymode so the 8.9" is hdpi Sep 07 15:22:11 the HD 7" advertises itself as hdpi Sep 07 15:22:17 but i think it should be tvdpi like the n7 Sep 07 15:22:27 the kindle fire (old and new) is mdpi Sep 07 15:22:46 kindle fire old and new? Sep 07 15:22:53 you mean the newly announced one ? Sep 07 15:22:57 no Sep 07 15:23:05 n7 is tvdpi? Sep 07 15:23:06 they announced four Sep 07 15:23:11 https://developer.amazon.com/sdk/fire/specifications.html Sep 07 15:23:40 why should it be TVDPI in your opinion? Sep 07 15:23:53 because mdpi is 160, tvdpi is 213, and hdpi is 240 Sep 07 15:23:56 and its much closer to 213 Sep 07 15:24:38 why thats the ppi of the hd 7"? Sep 07 15:28:18 if the kindle fire hd 7" is actually 7 inches Sep 07 15:28:21 it's 215.6ppi Sep 07 15:28:46 canadiancow? Sep 07 15:29:32 ? Sep 07 15:29:42 sounds right Sep 07 15:30:32 wait Sep 07 15:30:39 whats your formula? Sep 07 15:30:58 sqrt(1280^2 + 720^2) / 7 Sep 07 15:31:30 im really disappointed they didnt update the old KF to 4.0.3 Sep 07 15:31:34 they could have totally pulled an apple Sep 07 15:31:40 and said "look what we can do but samsung cant!!!!!" Sep 07 15:31:56 jasta: did you learn anything from your TCP keep alive experiments? Sep 07 15:32:21 canadiancow: yes, because the monumental engineering effort would be totally worth it, when it's already totally reskinned. Sep 07 15:32:35 but couldnt it run the same version as the new one? Sep 07 15:32:47 like its the same cpu/gpu Sep 07 15:32:57 Then why would people buy the new one? Sep 07 15:33:05 ok not the "same" cpu Sep 07 15:33:09 the new one is faster Sep 07 15:33:10 has more ram Sep 07 15:33:16 and yeah, if it's not the same hardware, there's a lot of testing you have to do. Sep 07 15:33:24 You also have to RIGOROUSLY test upgrade scenarios. Sep 07 15:33:31 i dont disagree Sep 07 15:33:51 but this is one place amazon could have said "we're better than other android devices. we upgrade our old units" Sep 07 15:33:59 why? Sep 07 15:34:01 but instead, i see no reason to get a KF over a GTab or something else Sep 07 15:34:03 they're not selling android devices Sep 07 15:34:08 you know what i mean Sep 07 15:34:11 they're selling amazon devices which you can use to consume amazon content Sep 07 15:34:14 I do and you're wrong Sep 07 15:34:21 they're not competing with samsung for a tablet market, at all. Sep 07 15:34:25 zynga just launched a game that requires android 3.2 Sep 07 15:34:33 and while i do not believe its in the amazon appstore Sep 07 15:34:36 its quite possible it could be there Sep 07 15:34:39 so they're restricting content Sep 07 15:34:40 maybe we need a new channel Sep 07 15:34:42 I'm a noob to android dev, and I wanted to verify that I'm using the right component to create a interface similar to the contacts app. I want to make a expandable feature next to my name text input to allow for addtional entries, such as middle name, last name, and so on. Is this done using ExpandableList, or is there a better method to accomplish this? Sep 07 15:34:55 Ankhwatcher: #android-get-off-my-lawn Sep 07 15:34:59 :D Sep 07 15:35:11 #android-gossip Sep 07 15:35:22 #android-no-youre-wrong Sep 07 15:35:49 #android-oh-yeah-ya-wanna-fight-about-it? Sep 07 15:36:15 tave: you mean ExpandableListView? Sep 07 15:36:27 yes Sep 07 15:36:29 if so, possibly not. Sep 07 15:36:47 I'm not sure whether listview would be the appropriate tool for this, though I'm not sure I can say what would be. Sep 07 15:36:49 [11:32:57] <@lov> Then why would people buy the new one? Sep 07 15:36:50 [11:34:10] <@lov> they're selling amazon devices which you can use to consume amazon content Sep 07 15:36:54 You could always look at the source for the contacts app Sep 07 15:36:54 so wouldnt upgrading the old ones be better? Sep 07 15:37:07 they dont have to subsidize a new device for someone who wants to be able to run api11+ apps Sep 07 15:37:26 canadiancow: no. It's a case of the devil you know vs the devil you don't. Sep 07 15:37:32 The kindle fire WORKS. Sep 07 15:37:47 there's no reason to upgrade it just for ~features~ when they're selling new tablets with those features Sep 07 15:37:59 additionally, you're introducing risk; lets say that a problem slips through Sep 07 15:38:06 you're now providing a WORSE experience. Sep 07 15:38:10 by your logic, no one should upgrade any device Sep 07 15:38:31 not really, because there are different markets. Sep 07 15:38:40 The point of the kindle fire is that it supports a subset of amazon apps Sep 07 15:38:49 I see what you mean about getting of your lawn Sep 07 15:38:51 it supports the amazon appstore Sep 07 15:38:53 a web browser Sep 07 15:38:55 the point of other android devices is that they support a wild cornicopia of applications by 3rd parties Sep 07 15:38:59 s/of/off Sep 07 15:39:00 how is that different than my nexus 7? Sep 07 15:39:08 amazon supports third parties Sep 07 15:39:10 any way to filter log to only show direct calls to system.out.println? Sep 07 15:39:23 or is that not possible since Log uses out.println itself? Sep 07 15:39:27 luxurymode: adb lolcat "system.out.println:V" *:F ? Sep 07 15:39:36 hmm lets see Sep 07 15:39:41 Log doesn't use System.out.println.... Sep 07 15:39:42 lolcat hehe Sep 07 15:39:44 wh are you using system..out.... yea Sep 07 15:39:54 canadiancow, i'm not, but someone else did :) Sep 07 15:39:56 System.out actually redirects to the logcat stuff iirc Sep 07 15:40:11 also, you should not be using System.out if you can help it. Sep 07 15:40:21 The only valid reason to use it is because you're using a java jar that you want to be able to run outside of android Sep 07 15:40:55 @lov, no that didnt work Sep 07 15:40:59 im aware Sep 07 15:41:04 i dont use system.out.println Sep 07 15:41:16 filtering at the command line sucks. the logcat tab in eclipse might work better. Sep 07 15:41:32 what is best is attempting to filter out logs where this is NO tag whatsoever. Sep 07 15:41:38 at error level. Sep 07 15:41:40 thanks samsung. Sep 07 15:41:58 ah its just System.out Sep 07 15:44:44 what's up crew! Sep 07 15:48:48 just me and the network traffic eh? Sep 07 15:48:58 Mavrik: HI! Sep 07 15:49:11 O.o Sep 07 15:49:43 Mavrik: i have a logical quandary, and it hurts my head Sep 07 15:50:03 Good Day to all. Sep 07 15:50:16 piece3: yo Sep 07 15:50:37 I'm having difficulty building a kernel module which I require for an app on a specific device, is the place to get help? Sep 07 15:50:50 piece3: what does that have to do with Android ? Sep 07 15:51:21 piece3: I would recommend stackoverflow for that Sep 07 15:51:24 it may be an android only device Sep 07 15:51:35 hunterp: Well it's an Android Tablet Sep 07 15:51:43 shoot Sep 07 15:51:50 piece3: technically yes but you're unlikely to get anyone helpful here. Sep 07 15:51:56 wait why am I still opped :X Sep 07 15:52:17 Ok, cheers, I'm trying to use a USB to serial convertor Sep 07 15:52:20 piece3: I'd recommend trying in #cyangenmod-dev or some such Sep 07 15:52:27 piece3: Alternately, use the mailing lists Sep 07 15:52:40 The module is avaiable but I can't get the kernel headers Sep 07 15:52:55 lov: ok I'll try over at cyangenmod Sep 07 15:52:58 lov: I have nested async tasks. I have a simplified example, and the nested task executes. However, in my production app, the nested task does not execute...why? Sep 07 15:54:45 hunterp: I have no fucking clue without any sort of code to look at. Sep 07 15:54:53 "its broke whats wrong :(" Sep 07 15:55:47 lov: here is my simple example,it works AOK http://pastebin.com/0R9Cfxx1 Sep 07 15:57:07 however, in my production code, the nested task fails to execute doInBackground.. AND....getStatus() reports the task as !FINISHED Sep 07 16:00:21 lov: and I just checked, and the Inner Task is RUNNING Sep 07 16:00:26 so logically Sep 07 16:00:36 how can it both be RUNNING and yet, doInBackground not execute???? Sep 07 16:05:23 hunterp: I have no idea. Consider starting the async task in your onPostExecute, however. Sep 07 16:06:14 lov: the purpose of the outer task is to poll the inner task. it has worked fine since 2009. and now, in ICS, it breaks Sep 07 16:07:34 hunterp: did it work in HC? Sep 07 16:07:47 hrnt: HC? Sep 07 16:07:54 honeycomb Sep 07 16:07:56 hot crusty? Sep 07 16:08:02 hrnt: no idea, honeycomb is retarded Sep 07 16:08:04 how to correct implement ListAdapter with support FastScroll? Sep 07 16:08:10 woohoo, Simple works well on both desktop Java and Android Sep 07 16:08:15 * Hodapp serializes objects to XML like a boss Sep 07 16:08:30 hunterp: because i think they changed the concurrency of async tasks in honeycomb Sep 07 16:08:31 the multi-user "support" in JB seems to have some strange effects in some cases Sep 07 16:08:39 when multiple asynctasks are involved Sep 07 16:08:40 hrnt: I think dianne hackborne is the person to talk to Sep 07 16:08:49 http://pastebin.com/F1ggpDqc Sep 07 16:08:50 hunterp: don't use async tasks for this. Sep 07 16:08:58 lov: ok. what should I use? Sep 07 16:09:01 i notice canadiancow is not at |work :) Sep 07 16:09:03 well Sep 07 16:09:07 ok, lets step back. Sep 07 16:09:14 WHY are you using async tasks instead of threads and handlers? Sep 07 16:09:20 does Inner need to do anything on the UI thread? Sep 07 16:09:23 lov: cause it worked for 3 years Sep 07 16:09:27 lov: no Sep 07 16:09:28 if you make a Drawable in XML can you then do a BitmapFactory.decodeResource() on it? Sep 07 16:09:30 g00s Sep 07 16:09:31 i am Sep 07 16:09:36 i decided to fianlly get a bouncer Sep 07 16:09:38 :P Sep 07 16:09:39 in that case, don't use an AsyncTask; just use a regular thread, or a FutureTask or something Sep 07 16:09:42 :) Sep 07 16:09:45 g00s its my last day Sep 07 16:09:45 lov: ok, will do. Sep 07 16:09:49 im working sooooooooooo hard ;) Sep 07 16:10:03 hunterp: async tasks use a threadpool; it's possible that you're running out of threads for your pool so your new Inner task just won't start Sep 07 16:10:07 and you end up deadlocking yourself waiting for it. Sep 07 16:10:18 what's a typical thread pool size? Sep 07 16:10:19 lov: sounds good. I will re-implement THE MATRIX Sep 07 16:10:23 lov: no Sep 07 16:10:24 Hodapp: hell if I know. Sep 07 16:10:28 lov: not since honeycomb Sep 07 16:10:33 hrnt: orly! Sep 07 16:10:35 lov: they are executed serially nowadays Sep 07 16:10:43 hmm, that's another reason why it might not work then :> Sep 07 16:10:51 regardless, hunterp, you're in "yo dawg" territory Sep 07 16:10:52 you can specify your own shit though Sep 07 16:10:55 and make them run however you want Sep 07 16:10:56 why are you even using a separate thread? Sep 07 16:11:05 lov: what's yo dawg territory :) ?? Sep 07 16:11:08 why isn't the code that you're running for Inner just running in your Outer class? Sep 07 16:11:19 hunterp: do a google search for "yo dawg" Sep 07 16:11:35 i dont get it Sep 07 16:11:36 lov: it should be I guess. there were historical reasons for not doing so which no longer exist Sep 07 16:11:40 its not like "recursion" Sep 07 16:11:46 it just searchs it up Sep 07 16:11:49 oh Sep 07 16:11:52 he didnt know waht "yo dawg" was Sep 07 16:11:53 i get it Sep 07 16:11:54 lov: before, I was kicking of a JNI process from Inner, and polling the results from outer Sep 07 16:12:04 interesting Sep 07 16:12:12 hunterp: did you try to change the asynctask to execute concurrently instead of serially Sep 07 16:12:13 thank you :) Sep 07 16:12:15 ? Sep 07 16:12:20 hrnt: sounds VERY scary Sep 07 16:12:27 i will simply re-jigger my threads Sep 07 16:12:35 hunterp: that was the default behaviour in 2.x Sep 07 16:12:41 hrnt: oh Sep 07 16:12:49 http://developer.android.com/reference/android/os/AsyncTask.html Sep 07 16:12:51 see "order of execution" Sep 07 16:13:10 If you truly want parallel execution, you can invoke executeOnExecutor(java.util.concurrent.Executor, Object[]) with THREAD_POOL_EXECUTOR. Sep 07 16:13:11 basically -1.6 = serially, 1.6-3.0 = concurrently, 3.0- serially Sep 07 16:13:12 scary... Sep 07 16:13:17 scaryy.... Sep 07 16:13:24 I don't like the scary Sep 07 16:13:30 I will re-jigger my threads Sep 07 16:13:39 yeah, that is probably a better idea Sep 07 16:15:25 if anyone thought "is it me or everybody: for eclipse 4.2 being slow http://www.h-online.com/open/news/item/Weak-performance-of-Eclipse-4-2-criticised-1702921.html Sep 07 16:15:58 i use 3.8 :) Sep 07 16:16:30 http://pastie.org/private/uvlkut0sb70ukzxvwsq8va can anybody see why that xml is only showing the textview, and not the button? Sep 07 16:18:23 "no performance-related regression testing or code coverage analysis was done before the completion of Eclipse 4.2 or Eclipse 3.8." … not enough resources Sep 07 16:20:37 ChrizC: if I had to guess your text view is overlapping where the button would be, but then again I don't remember how fill_parent works. Sep 07 16:21:02 strange, I've used pretty similar code in another app and the button appears below the text in the other app :S Sep 07 16:21:59 I very well could be wrong, I just found out I'm losing my home in the next 30 days, so I'm a bit fuzzy Sep 07 16:22:41 oh nevermind, it was covering it up. d'oh. and sucks to hear that, HacDan Sep 07 16:22:58 ya, that's life I suppose =/ Sep 07 16:25:03 lov: I changed my inner async task to a Thread and it worked! Sep 07 16:36:37 Howdy! Sep 07 16:39:56 I'm working on a large project based on NDK r8b and we're interested in supporting C++11. When adding -std=c++11 flags to the makefile(s), we end up with some really odd errors (that are not in our code, but rather the stdlib code the NDK provides). Most errors are around fixed-with integral types (uin64_t, int32_t, etc) not being found in places like types.h and khrplatform.h. Is there a quick solution Sep 07 16:39:57 for this? Sep 07 16:39:58 what better for android-developing Eclipse Classic or Eclipse IDE for Java Developers? Sep 07 16:42:46 183MB vs 149MB Sep 07 16:44:11 I want to click on an ItemizedOverlay Item and use custom dialog to choose to delete an item from my database. Sep 07 16:45:36 The problem is that I'm not passing anything to my Itemized Overlay that I can use to find the object in the database. Is there a better way to do this? Sep 07 16:51:24 would there be any reason why some jni stuff would crash on specific devices with an "unsatisfied link error", but work on others? Sep 07 16:56:05 luxurymode: nah, it's most likely magic gremlins or something of the like Sep 07 16:56:06 =) Sep 07 17:15:17 hey. Sep 07 17:16:31 got little problem with my andro.. i have over 7k messages (yes i was lazy not to delete them:P) and i wanted to clean my income.. i wanted to use go-sms.. sms cleaner and it causes reboot of my device. i wanted also to delete messages file but i cant find dir com.android.providers telephony. any1 can help with this case? htc desire android 2.3.3 Sep 07 17:17:27 please go to #android-root and ask there, thanks. Sep 07 17:17:48 kk Sep 07 17:20:47 man, the Intel AVD image has some wierd resolution behavior Sep 07 17:21:16 randomly, when you launch it, it will have a super high resolution, and i have to go in and reset the resolution to something reasonable Sep 07 17:40:15 ugh, now Eclipse is giving me "no awt in java.library.path" when I attempt to edit a layout Sep 07 17:41:31 I've got a textswitcher with the gravity set to CENTER_HORIZONTAL | CENTER. On my GalaxyTab (API 3.2) the text is centered but on my old HTC Touch (API 2.2.1) it is not. Any ideas? Sep 07 17:42:00 the text is centered initially.. but when I update it, it aligns to the left. Sep 07 17:45:52 man i wish i was using scala on this project Sep 07 17:46:25 whats a good way to take an arraylist and using my comparator, create new arrays containing all the ones that are equal Sep 07 17:46:59 so if there are 50 items and three equalities, i end up with three arrays with just those ones that are equal Sep 07 17:47:18 i sort of want to split off all the ones that are equal Sep 07 17:47:24 er, wait, huh? Sep 07 17:47:29 what tablet for game dev? Nexus 7 or Kindle Fire? Which has the largest user base? Sep 07 17:47:40 when you say 3 equalities, you mean 3 objects that are all the same? Sep 07 17:47:45 or 3 sets of objects that are the same? Sep 07 17:47:57 I'm not sure that there's a built in method to do this Sep 07 17:48:39 do these objects compare equal using equals() Sep 07 17:49:42 Codhisattva: you're going to be making a game that supports many devices, not just one. Sep 07 17:49:51 Codhisattva: you don't need to make a separate build per target. Sep 07 17:50:05 I'd recommend the N7. Sep 07 17:50:16 If you're going to be specifically targetting the amazon devices, get a kindle fire too Sep 07 17:50:40 yeah i'm gonna make them compare using equals lov Sep 07 17:51:06 ah, ok Sep 07 17:51:07 the array has many objects and many of them will be be equal to each other Sep 07 17:51:16 lov: no I'm going to be making a game based on a reference platform first and then decide about other screens, devices, and fragmentation issues later. Sep 07 17:51:30 * lov groans Sep 07 17:51:34 ok, whatever. Sep 07 17:51:36 just get an N7 Sep 07 17:51:42 and then read the design guides on d.android.com Sep 07 17:51:50 design guides are for wussies Sep 07 17:51:53 hehe Sep 07 17:52:01 luxurymode: Here's an idea. Create a hashmap, map the object to the object. Sep 07 17:52:11 Your arraylist isn't going to be containing arraylists itself, right? Sep 07 17:52:14 if not, then do this: Sep 07 17:52:25 instead of a hashmap why not use a sparsearray if the keys are ints Sep 07 17:52:57 yeah, actually, is there any sort of key that they'll all share? Sep 07 17:53:08 I was thinking you could have a hashtable that maps objects to objects Sep 07 17:53:17 and if an object already exists, you remove it, create an arraylist, and insert the list with the objects Sep 07 17:53:27 when you check, check whether the object in there is a list or not. Sep 07 17:53:33 hashtable is not synchronous, so dont use it in a multithreaded env Sep 07 17:53:44 or is it hashmap that's not synchronous? Sep 07 17:53:56 it's hashmap, but it doesn't matter because usually the synchronization it does is insufficient Sep 07 17:54:02 right Sep 07 17:54:03 and I'm assuming that he's doing this on one thread period Sep 07 17:54:18 but anyway, at the end, you can just get the valueSet and use anything that's an ArrayList. Sep 07 17:54:50 there's no getSetOfListOfSimilarObjects method that I know of that's built in, you'll just have to make it :( Sep 07 17:55:23 hashmap Sep 07 17:55:32 luxurymode: did you see HashSet.containsAlls () ? Sep 07 17:55:37 you need ConcurentHashMap or something that? Sep 07 17:55:46 g00s, nope Sep 07 17:55:53 actually, in Set<> I think Sep 07 17:56:05 luxurymode: knowing is half the battle :) Sep 07 17:56:17 lov: how many devices you typically test your apps on? Sep 07 17:57:07 Codhisattva: it depends on the type of software you write. games? pick popular phones that sold well with different GPUs Sep 07 17:57:30 g00s: I'm not thinking theoretically, but what people do in practice. Sep 07 17:57:39 "it depends" Sep 07 17:57:45 actual people. Sep 07 17:57:48 AbstractCollection<> Sep 07 17:57:55 g00s: like what do you personally do? Sep 07 17:57:57 a typical mobile dev shop might have 30 phones to test on Sep 07 17:58:31 Codhisattva: well, i only have a motorola droid-1 … so thats all i can test on. but I use the emu to test different OS / screen combinations Sep 07 17:58:57 the less hw sensors and stuff you use (camera, etc) the less hw i think you need to test on Sep 07 17:59:03 hi everyone Sep 07 17:59:18 if you use something like bluetooth, you may want to find a few different phones with different BT chipsets Sep 07 17:59:48 Codhisattva: it depends on how complicated the app is. Generally, you'll want to test on like the top 10 phones at the time. Sep 07 17:59:56 you'll almost certainly want to test different api levels if you can Sep 07 18:00:21 cheers Sep 07 18:00:36 you'll probably want to test different resolutions; at least 1 tablet and 1 large phone and 1 small phone Sep 07 18:00:43 in practice, at the moment, what are the top 10 phones? Sep 07 18:01:02 Codhisattva: http://developer.android.com/about/dashboards/index.html Sep 07 18:01:15 The top 10 devices shows up in the developer dashboard in your market account Sep 07 18:01:25 it shows the top 10 in general, and the top 10 for your app Sep 07 18:01:26 Codhisattva: you'll have to research that in terms of sales. for example, the htc evo 4g was hugely popular Sep 07 18:01:38 most of the nexus devices except the n7 have been commercial failures Sep 07 18:02:01 lov: right but that's OS not phones :( Sep 07 18:02:16 lov, your idea is smart since contains uses .equals so that works Sep 07 18:02:39 its also good having a few phones of various skins (sense, etc) Sep 07 18:02:57 well this is why I'll pick a reference device :/ Sep 07 18:03:17 just one ? Sep 07 18:04:27 well, 60% people have GB, so a decent reference device would be an HTC Nexus One Sep 07 18:04:29 g00s: for start and for dev. final testing will be on whatever devices I can muster up. Sep 07 18:04:41 maybe a newer Nexus Sep 07 18:05:05 anyone can help me? im trying to build an applicacion receiving remote notifications (i.e xml) and displaying it in the notification bar Sep 07 18:05:25 http://www.youtube.com/watch?v=eVtCO84MDj8 Sep 07 18:05:33 lov, or easier just Map then just get the by that key and add to it... Sep 07 18:05:37 Correct me if I'm wrong, but I think the emulator is pretty good at measuring different resolutions and seeing how that works. Sep 07 18:05:51 yeah, its good enough for that Sep 07 18:06:40 ping romainguy Sep 07 18:07:01 I;m hoping through the magic of OpenGL I won't have to worry much about resolution, and more about playability. Sep 07 18:08:04 there will be differences on driver implementations. canadiancow writes games & stuff, maybe he has a suggestion when he is around Sep 07 18:08:24 thanks I ask him too Sep 07 18:08:29 I'll* Sep 07 18:09:47 huh, can u not fire a pending intent more than once? Sep 07 18:13:44 Wavesonics: what are you trying to do? Sep 07 18:14:15 lethjakman, I have a Widget w\ a button. I'm setting a pending intent on that button Sep 07 18:14:21 and it fires the first time, but never again Sep 07 18:15:41 can you gist me some code? I'll take a quick look at it and help if I can. Sep 07 18:18:19 i'm having a problem with Spinner's onItemSelected Sep 07 18:18:25 Failed to delete file: /storage/sdcard0/Android/data/com............. Sep 07 18:18:32 is anyone having problems with JB's multi-user stuff? Sep 07 18:18:44 basically, i've subclassed the adapter so that it has an item at the bottom that allows the user to add a new item when selected Sep 07 18:18:55 lethjakman, sure, in the WidgetProvider, onUpdate() I loop through widgetId's, and use the remoteView methods to set pendingIntents on each button Sep 07 18:18:57 i correctly detect when this item is detected and open the appropriate dialog Sep 07 18:19:12 however, i have 2 issues when the list is empty and that Add New item is the only one Sep 07 18:19:21 1) it opens the dialog automatically when the Activity is shown Sep 07 18:19:40 2) if I close the dialog, and then try to select the item again, it doesn't open the dialog Sep 07 18:20:03 I don't want the dialog to open automatically, and I want it to open everytime that item is clicked on Sep 07 18:20:14 i think the issue centers on the fact that I'm using onItemSelected Sep 07 18:20:16 HorizonXP: Pastebin the relevant code please Sep 07 18:20:21 what I really need is onItemClicked Sep 07 18:20:24 PrivateAlpha: sure thing Sep 07 18:22:49 PrivateAlpha: http://pastebin.com/kZgCmFuh Sep 07 18:23:36 when I launch a HandlerThread from an IntentService, will it be quit when the service quits? Sep 07 18:24:28 rigid: IntentService already has a HandlerThread O.o Sep 07 18:24:54 HorizonXP: A quick fix might just be to deselect it so that it calls your code again when the user selects it Sep 07 18:24:58 ahm.... so I guess it's not suited for persistent stuff and I have to use Service Sep 07 18:25:27 PrivateAlpha: how do I deselect it when it's only item in the list? Sep 07 18:25:37 like one Intent "RAYTRACE_IMAGE" and another intent "GET_RAYTRACE_PROGRESS" that's executed while the first one is still running... Sep 07 18:25:55 s/intent/action/ Sep 07 18:26:17 g00s: thank you Sep 07 18:26:41 HorizonXP: Set selected to -1 maybe? Not really sure, not very fluent with some parts of the API Sep 07 18:27:06 PrivateAlpha: just tried it. no go. :-( Sep 07 18:28:58 Then I can't be of much help I guess, hopefully someone else can help you Sep 07 18:31:00 PrivateAlpha: i came up with an idea that might achieve what I need Sep 07 18:31:53 HorizonXP: Btw did you try setting the selected to null? Sep 07 18:33:15 PrivateAlpha: i didn't, let me try that Sep 07 18:36:14 Ok guys, I have a question / problem. I'm building a simple application, and there's some image views that when touched need to fire an event to open a webpage. I have that much working, but when I press back to return to the app that launched the webpages it just exits to the launcher. Also, one of the links is a youtube link, and I don't have my youtube app associated with them so I get the Choose Default Action box, if I d Sep 07 18:36:18 back to the launcher as well. Sep 07 18:38:30 My application's main activity is currently full of ui elements and i have no space left Sep 07 18:38:50 How would I go about displaying more data in more ui elements? Sep 07 18:39:29 I was thinking of some cool popup with.2-4 textviews Sep 07 18:40:46 Problem is I also want this popup to appear from the top right corner with a cool enlargement effect. Sep 07 18:41:22 Wavesonics: by gist I meant a pastebin or gist.github. Sep 07 18:43:38 diki: sounds like you need to rethink your UI Sep 07 18:44:12 evancharlton: the UI is ok. In fact it feels cozy Sep 07 18:44:16 lethjakman, i solved it, i needed to set an action on the Intent, now it works repeatably Sep 07 18:44:24 wierd... Sep 07 18:44:32 i just set the action to a junk string Sep 07 18:44:51 But some data associated with the dats that is displayed is for advanced users Sep 07 18:44:59 *data Sep 07 18:45:33 Thus I want to add an animated dialog popup that would display it. Sep 07 18:46:31 Though yes, the UI is out of space(the main view) Sep 07 18:47:33 Gosh, the doubletwist alarm clock nap timer is *gorgeous* Sep 07 18:49:18 Wavesonics: sweet! good to know! I think I pick out more knowledge trying to help people here than from asking questions! Sep 07 18:49:29 haha Sep 07 18:53:54 Timer is the best alarm timer Sep 07 18:59:14 wow, ms really f'd this up http://www.idigitaltimes.com/articles/11127/20120905/windows-phone-8-sdk-release-date-microsoft.htm Sep 07 18:59:15 someone humour me: how long would a game like angry birds take a solo dev to write? Sep 07 18:59:37 brx_: anywhere between a month to infinity Sep 07 18:59:55 ok lets try anpthr question g00s :P Sep 07 19:00:05 how long (guessing) would it take YOU to do it, alone Sep 07 19:00:14 me? forever. Sep 07 19:00:50 brx_: but thats better than mikedg - he'd take forever and a day Sep 07 19:00:58 :D Sep 07 19:01:07 i know its a daft question Sep 07 19:01:13 "how long is a piece of string" Sep 07 19:05:23 1 string length long Sep 07 19:05:53 brx_: depends on where the null terminator is Sep 07 19:05:57 also, whether it's unicode. Sep 07 19:06:09 brx_: depends a lot on how many games you've written and how well you understand game dev, languages, engines, art, design, mechanics, physics and pigs. Sep 07 19:06:20 knowledge of pigs is essential Sep 07 19:06:28 yes, the pigs are most important, because the bacon factor Sep 07 19:06:33 Codhisattva: well...i have LOTS of experience with pigs Sep 07 19:06:41 If you're a hot-shit game developer and you've got the art assets, it's definitely doable in a month. Sep 07 19:06:49 brx_: so perhaps infinity MINUS one than for you Sep 07 19:07:11 ye, a rare breed IME Sep 07 19:07:36 im not thinking about embarking on this btw, was just a fantastical question Sep 07 19:07:51 oh also level editors, level design, and level pigs Sep 07 19:08:11 crooked, skewed or vertical pigs not allowed Sep 07 19:08:11 we'll assume that the level design has been done on paper ahead of time, and that the level editor is part of the game engine. Sep 07 19:08:18 wait what Sep 07 19:08:21 vertical pigs not allowed Sep 07 19:08:21 i lurk on twitter to try and find android work, some guy is asking for "a game as good as andry birds" Sep 07 19:08:22 what Sep 07 19:08:25 i think he's dreaming tbh Sep 07 19:08:26 you're the worst. Sep 07 19:08:29 lol Sep 07 19:08:39 brx_: ask him how much money he's willing to put up front Sep 07 19:08:50 I'm betting the answer is "zimbabwe or monopoly?" Sep 07 19:08:51 i just about have a grasp on gameloop and the surfaceview, i humbly declined Sep 07 19:09:00 lov: im not competant for the job Sep 07 19:09:07 no, I understand that. Sep 07 19:09:28 but people who think that they're going to suddenly be the next facebook or whatever just because ?????? are usually people without the resources to make it happen Sep 07 19:09:52 yes i have found this also lov, an idea is just an idea Sep 07 19:09:59 realizing that idea takes much much more Sep 07 19:10:17 he would already have these answers if he was serious :P Sep 07 19:10:35 what is lov, baby don't hurt me Sep 07 19:11:01 what is love! Sep 07 19:11:03 get out. Sep 07 19:11:46 ;) Sep 07 19:12:10 hi everybody... Sep 07 19:15:39 I am using a Linear layout, I have a few EditText objects. How do I put these EditTexts on different lines? Sep 07 19:16:00 I am currently developing an Android game using OpenGL ES 1 ... it works fine on the HTC Desire I developed it on. Now I got a Nexus 7 and wanted to start it via Eclipse and USB... but I get nothing displayed... Touch events and all the stuff work, but I don't get anything displayed. Anybody have an idea what might be wrong? Some Android 4.1 specific stuff maybe? Sep 07 19:17:34 they have layout_width of wrap_content. Sep 07 19:17:44 kyconquers: change your linear layout orientation from horizontal to vertical. Sep 07 19:19:07 lov, how will that put each edittexts on different lines? Sep 07 19:19:14 is getting a imageview to scale to fill its parent different to other views? Sep 07 19:19:34 kyconquers: it stacks them according to the orientation attrib Sep 07 19:19:42 i have a imageview that i want to stretch to fit its parent frameview but it doesnt seem to work like other views Sep 07 19:20:10 why is RemoteControl stuff not working on my S3? Not seeing any lock screen stuff for my app or any others for that matter Sep 07 19:20:53 thanks lov and brx_ Sep 07 19:21:37 ciwolsey: have you tried scaleType fitxy? Sep 07 19:21:52 hmm no Sep 07 19:22:00 on the imageview Sep 07 19:22:16 ill try that Sep 07 19:22:20 if i use that Sep 07 19:22:36 and i change the image in the imageview will it automatically resize or do i have to intervene? Sep 07 19:23:47 try it :p Sep 07 19:25:48 i was wondering how I ping an external IP and say if I got a responce or not. Sep 07 19:26:11 http? Sep 07 19:26:18 ping -a IP Sep 07 19:26:46 And that in android application code would be? Sep 07 19:27:26 tomtiger11: http://stackoverflow.com/questions/3905358/how-to-ping-external-ip-from-java-android Sep 07 19:28:27 (process class) Sep 07 19:30:37 does Jelly bean need any special settings for textures? I just found out that parts of the app where no texture is set it see something. but every texture is completely black... Sep 07 19:31:14 brx_: Sorry, But I don't see how that page helps me. Sep 07 19:32:01 http://pastebin.com/5pqqkuSP <- can anyone see why the button is ignoring the "bottom" in its layout_gravity? It's horizontally centered as it should be, and the containing LinearLayout is filling the space properly, but the Button is not going to the bottom of the layout Sep 07 19:33:26 tomtiger11: you can use the Process class to call ping (which resides in /system/bin) and then check what the output is Sep 07 19:35:39 anyone? Sep 07 19:36:58 i was going to make a cool looking clock app Sep 07 19:37:08 but the clock looked like an asshole :| Sep 07 19:37:10 so i gave up Sep 07 19:38:04 hehe Sep 07 19:38:10 brx_: Lol, Im a noob at Java (My prefered language is PHP), so I didn't understand that one bit XD Sep 07 19:38:17 maybe there's a market for that Sep 07 19:38:28 I could use a decent calendar widget though Sep 07 19:38:57 http://pastebin.com/5pqqkuSP <- can anyone see why the button is ignoring the "bottom" in its layout_gravity? It's horizontally centered as it should be, and the containing LinearLayout is filling the space properly, but the Button is not going to the bottom of the layout Sep 07 19:39:25 ChrizC: cant see what problem is, have you tried changing the width to fill_parent, see if that works Sep 07 19:40:25 brx_ why would that change how it's vertically positioned? and I don't want the button to be full width :S Sep 07 19:40:40 i just cant see whats wrong with it :s Sep 07 19:40:48 okay managed to fix it Sep 07 19:40:53 what was it? Sep 07 19:40:56 made the gravity of the LinearLayout to bottom Sep 07 19:41:06 nice Sep 07 19:41:06 for some reason, using layout_gravity bottom wasn't working Sep 07 19:42:04 im doing overlay.setScaleType(ScaleType.FIT_XY); but the imageview still isntt stretching to fit its parent Sep 07 19:43:26 brx_: done with that clone yet? Sep 07 19:43:51 ChrizC: A vertical linearlayout ignores any layout_gravity that positions the child vertically (top, center_vertical, bottom) Sep 07 19:44:00 almost finished man just adding the final touches Sep 07 19:44:02 nm i fixed it :) Sep 07 19:44:07 ah, SimonVT, thanks Sep 07 19:44:11 A horizontal linearlayout ignores left, right, center_horizontal, etc Sep 07 19:44:22 but im curious, why is setScaleType required? Sep 07 19:44:32 is it something specific to imageviews only? Sep 07 19:46:54 Bye. Shame I didnt get any further. Sep 07 19:47:25 tomtiger11: you can figure it out Sep 07 19:47:42 the answer with the Process class is what you want Sep 07 19:48:29 am i possibly getting an unsatisfied link error with regard to my jni stuff on the Droid 1 because my only build target was for arm? Sep 07 19:48:39 Why is my button still being padded when I've set paddingTop and paddingBottom to 0? Sep 07 19:49:06 The button drawable is a 9patch with padding Sep 07 19:49:08 brx_: its all good and well saying that, But I havent the slighest clue what to do... Sep 07 19:49:26 huh, i've got a resizable/scrollable widget, which obvously can't run on 2.3 and below, so how can i make sure it doesnt show up in the widget list for unsupported versions? Sep 07 19:50:16 Is it possible to organize views depth inside a layout like a FrameLayout? Sep 07 19:50:29 Wavesonics: Make a boolean resource. Set it to false in values/ and true in values-v14 or whatever. Then in manifest add android:enabled="@bool/enableScrollableWidget" to your widget definition Sep 07 19:51:00 SimonVT, ah nice, thx Sep 07 19:51:19 tomtiger11: you should try dropping the code in as it is and running it Sep 07 19:51:36 SimonVT; hm? Sep 07 19:51:39 SimonVT, will values-v14 also work for all greater? Sep 07 19:51:45 or do i need one for each? Sep 07 19:51:46 Wavesonics: yes Sep 07 19:51:49 no Sep 07 19:52:20 ChrizC: The button look is just a background. It uses 9patch drawables, so it can stretch Sep 07 19:52:45 SimonVT; okay, but why is padding, when I've set it to wrap content, then explicitly said no padding? Sep 07 19:52:55 why is it padding* Sep 07 19:53:08 Because the drawable has empty space Sep 07 19:53:29 Around the border Sep 07 19:53:33 SimonVT okay you're giving me information, you're not giving me steps for solutions Sep 07 19:53:59 This is not #android-domyworkforme Sep 07 19:54:06 The default drawable has a padding by default Sep 07 19:54:12 If you don't want the padding, guess what you gotta do Sep 07 19:54:20 * Now talking on #android-domyworkforme << empty :< Sep 07 19:54:25 I didn't say it was, I was simply asking for a push in the right direction Sep 07 19:54:26 (hint: supply your own drawables) Sep 07 19:54:46 SimonVT; I have supplied a drawable (I assume you mean using android:background) which also has no padding Sep 07 19:54:48 yet it still pads Sep 07 19:55:51 brx_: Would It be possible for you to get me a bit of quick sample code for me to work around? Sep 07 19:56:01 im gonna try now Sep 07 19:56:35 It shouldn't have any padding then Sep 07 19:56:44 but it does. Sep 07 19:56:44 you just need to know if a response comes back tomtiger11 ? Sep 07 19:56:57 brx_: Indeed Sep 07 19:57:10 SimonVT; http://pastebin.com/f3RMeFj1 Sep 07 19:57:12 that's my drawable Sep 07 19:57:35 You defined a 10dp padding Sep 07 19:57:40 for left and right, yes Sep 07 19:57:44 for top and bottom, it's 0dp. Sep 07 19:57:55 but it's still padded on the top and bottom Sep 07 19:59:35 app clinic in two minutes Sep 07 20:00:00 Set a solid color background.. If there's still "padding", then it's not your button that's causing it Sep 07 20:01:27 SimonVT; with a solid colour background there's still padding, except on the left Sep 07 20:02:08 Well, not you know it's not button padding Sep 07 20:02:39 s/not/now/ Sep 07 20:02:44 if it's not button padding then what is it? there's still button padding on the top, right and bottom Sep 07 20:02:46 just not the left Sep 07 20:03:16 Could be margin, could be how the viewgroup positions the buttons Sep 07 20:04:09 Background drawn for the full size of the button even if there's padding Sep 07 20:04:23 So since there's a gap, it can't be button padding Sep 07 20:04:49 it's not margin, just set that to zero, still pads Sep 07 20:06:37 so I have the following code for my getDropDown view in my subclassed adapter for a spinner Sep 07 20:06:40 http://pastebin.com/SQqNZwSf Sep 07 20:06:43 I only want the click listener changed/set for 1 particular item Sep 07 20:06:47 SimonVT you're not really helping much here Sep 07 20:06:48 however, it's being added for all of them Sep 07 20:06:54 what am I missing :-/ Sep 07 20:08:16 and this really isn't making any sense at all Sep 07 20:08:33 "hey button, I want you to have no padding" "okay that's cool no padding well screw you I'll have padding anyway" Sep 07 20:09:18 Scumbag Button Sep 07 20:09:35 ChrizC: I'd take a break and come back to it. you're likely missing something obvious. Sep 07 20:09:50 HorizonXP; this IS me taking a break and coming back to it Sep 07 20:09:53 it still makes zero sense Sep 07 20:10:51 hmmm does the xbmc json api support jsonp? Sep 07 20:11:17 any suggestions to do what I need? Sep 07 20:11:28 closest stackoverflow I can find is this: http://stackoverflow.com/questions/12108893/set-onclicklistener-for-spinner-item Sep 07 20:11:56 I had onItemSelectedListener before, but that doesn't work if the item is already selected. that is, it only fires when the item changes. Sep 07 20:12:14 and the tooltip help says not to use onItemClickListener, that it'll throw an exception. Sep 07 20:12:32 so subclassing the Adapter seemed logical... but it's not working as expected. Sep 07 20:12:46 ChrizC: I'm saying, if there is still empty space between the buttons when you have a solid color background, then it's not padding.. You have to look elsewhere for a solution Sep 07 20:13:04 SimonVT I never said there was empty space between the buttons Sep 07 20:13:10 I've never said anything of the sort Sep 07 20:13:32 there is only one button Sep 07 20:13:37 I am talking about the internal padding Sep 07 20:14:43 SimonVT. ^ Sep 07 20:16:15 Button also has a minimum size Sep 07 20:16:42 if you're overriding the background, you might as well use a textview Sep 07 20:17:16 why Sep 07 20:18:00 Because that's what Button is, a styled TextView Sep 07 20:18:27 huh Sep 07 20:18:28 fixed it Sep 07 20:18:36 overrode mineHeight Sep 07 20:18:40 minHeight* Sep 07 20:18:44 that was ridiculously annoying Sep 07 20:19:24 textview also doesn't define min height and width Sep 07 20:19:31 muuuuuuuch better Sep 07 20:21:56 whats the safest way to add a pause in my app? Sep 07 20:22:03 i just wanna wait for a few seconds Sep 07 20:22:41 ciwolsey: why Sep 07 20:22:59 im taking a photo Sep 07 20:23:08 then savingg it from the callback Sep 07 20:23:19 but right after i take the photo i load the image back Sep 07 20:23:43 but the wrong photo is getting loaded so im wondering if im trying to load the image before the callback Sep 07 20:23:44 ah Sep 07 20:23:44 perhaps a ProgressDialog Sep 07 20:23:47 nah Sep 07 20:23:55 ciwolsey: consider using a Handler with a delayed event Sep 07 20:23:57 does what im saying make sense? Sep 07 20:23:59 yes Sep 07 20:24:10 you generally want an asynchronous callback; you absolutely don't want to block the UI thread. Sep 07 20:24:11 are callbacks usually on another thread? Sep 07 20:24:19 it depends on what's making the callback. Sep 07 20:24:28 its the camera Sep 07 20:24:28 the answer is "usually, but you should check" Sep 07 20:24:29 :) Sep 07 20:24:33 ok Sep 07 20:24:54 maybe i would be better off just updating the imageview from the actual callback Sep 07 20:25:01 that way it will be in sync Sep 07 20:25:32 ciwolsey: you'd have to do that on the UI thread. Sep 07 20:25:41 oh :| Sep 07 20:25:44 ciwolsey: it also depends on what your user flow is supposed to be, and how quick your storage is Sep 07 20:25:57 e.g. if you want to display the photo that was taken, pause for 3 seconds, then continue Sep 07 20:26:01 no insights into my problem? :-( i thought I provided good details too Sep 07 20:26:16 you don't want to just save and then remove the photo display because if your storage only takes 250ms to save, it'll be awkward Sep 07 20:26:24 i want to wait until the image has been taken and writtne, then load the resulting image into an imageview Sep 07 20:26:40 HorizonXP: not offhand, sorry. I'm about to leave. Sep 07 20:26:53 i dont mind the app just freezing until the photo has been written in the callback Sep 07 20:26:56 lov: no worries :) Sep 07 20:27:38 i wouldnt even mind if the callback was blocking to be honest Sep 07 20:27:50 ciwolsey: you want to avoid an ANR, or the illusion of blocking. Sep 07 20:27:59 ok Sep 07 20:28:04 so what would you suggest? Sep 07 20:28:24 i just want to ensure that my code that re-loads the image being taken is done AFTER the photo is taken Sep 07 20:28:32 er Sep 07 20:28:34 because its loading up the previous image Sep 07 20:28:42 .... wait Sep 07 20:28:48 I thought you wanted to display the picture you JUST took Sep 07 20:28:54 i do Sep 07 20:28:58 right. Sep 07 20:28:58 but im writing it to disk Sep 07 20:29:01 right. Sep 07 20:29:01 then loading it back Sep 07 20:29:05 no. Sep 07 20:29:10 you don't need to do this. Sep 07 20:29:14 ok Sep 07 20:29:17 you're given the byte[] from the camera Sep 07 20:29:21 you can create a Bitmap out of it to use Sep 07 20:29:24 yep Sep 07 20:29:29 display that to the user Sep 07 20:29:32 but i cant alter the UI from inside the callback? Sep 07 20:29:34 and then start saving the file on another thread. Sep 07 20:29:45 ciwolsey: no, but you can provide the Bitmap as an object to a Handler's Message Sep 07 20:30:00 send a Message to a handler which will set your view to that bitmap or whatever Sep 07 20:30:11 ill go read about handlers :) Sep 07 20:30:13 save your file in a new thread Sep 07 20:30:28 sorry i forgot to mention im quite new to android Sep 07 20:30:28 when your file finishes saving, send another event to your handler saying "I'm done!" Sep 07 20:30:32 ciwolsey: that's alright Sep 07 20:30:45 http://developer.android.com/reference/android/os/Handler.html Sep 07 20:30:46 so i ordered a N7 for my wife and the thing totally crapped out. Was thinking about getting a new one under the asus warranty but not my wife thinks she just wants to return it. I bought it directly from Google. Can I even return it? Sep 07 20:31:03 if you're feeling saucy you could probably do this with an AsyncTask really. Sep 07 20:31:07 i assume its a way off passing back data from the callback Sep 07 20:31:19 onPreExecute set the image, doInBackground saves the image, onPostExecute clears the image or w/e Sep 07 20:31:30 luxurymode: why are you asking us? Sep 07 20:31:57 lov, just wondering if anyone knows. totally hear that its a ridiculous question to ask here though :) Sep 07 20:31:59 you can return it for us :) Sep 07 20:32:01 its friday, gimme a break Sep 07 20:32:13 we dont mind :) Sep 07 20:32:18 luxurymode: mail it to me, I'll take care of it. Sep 07 20:36:54 ahh.. blocking will cause hell Sep 07 20:36:59 because of the anr dialog :) Sep 07 20:38:52 I have an object that is holding all of an accounts information, I have opened a database with . where can I find documentation on functions to save this object? Sep 07 20:39:53 when im calling takePicture() im actually starting a new thread indrectly right? Sep 07 20:41:07 ciwolsey: possibly. Sep 07 20:41:36 HorizonXP: Did it work? Sep 07 20:49:03 what's everyone working on? Sep 07 20:49:16 sleep Sep 07 20:49:52 unintelligent Sep 07 20:50:13 sleep is for the highly intelligent Sep 07 20:50:40 i suppose, if one is actually sleeping. Sep 07 20:50:54 I will be, in just a moment Sep 07 20:51:28 in the middle of the day? Sep 07 20:51:32 Is it possible to point a style at a Drawable class? I need android:background of my app's theme to be custom drawn. I can't seem to find a way to do this. Sep 07 20:51:38 ElefantPhace, it's midnight Sep 07 20:51:56 you across the pond? Sep 07 20:52:06 no, you are! Sep 07 20:52:13 haha Sep 07 20:52:22 alternately. A gradient that transitions from center to smallestWidth, between two colors? Sep 07 20:53:07 right now I have a pile a of drawable-XXXXxYYY resources Sep 07 20:53:12 kind of a mess Sep 07 20:54:03 ElefantPhace, I'm trying to save data into a database. Sep 07 20:56:29 having any luck, ky? Sep 07 20:56:33 I just made a google play account to upload my apps but it keeps telling me to make a purchase but i already paid the fee Sep 07 21:03:02 how do you write information to a database? Sep 07 21:05:31 how can you save information even after your app is closed? Sep 07 21:08:41 You must pay the registration fee before you publish. Sep 07 21:09:45 Does anyone kow where to find the phonegap javadoc? Sep 07 21:09:58 I see an API reference but it doesn't cover alot of the classes Sep 07 21:09:58 kyconquers: man SQLite Sep 07 21:10:18 lulz phonegap Sep 07 21:29:22 mikedg: did you wind up on this list ? :) http://www.fiercemobilecontent.com/special-reports/worst-apps-android-ios Sep 07 21:37:49 *goes and visits and prays he's not on it* Sep 07 21:41:25 hey, guys Sep 07 21:41:37 how long does it take google to process a order? Sep 07 21:43:17 using android.provider.MediaStore.ACTION_IMAGE_CAPTURE, is it possible to get a full resoultion picture in onActivityResult? Sep 07 21:43:28 i want to be laying textview like this. what options should i be specifying on the textviews to pull this off? https://docs.google.com/drawings/d/1e7X8o8iUK6YJCos1J8GB9DzfVlo9lKNNpFJnt1oO3lQ/edit Sep 07 21:46:02 joshee12: seems the layout it already set, just have to add weigths to your table rows Sep 07 21:46:25 the text doesn't properly vertically wrap Sep 07 21:46:46 and have tablerows wrap content Sep 07 21:49:09 so, tablerow is wrapping content, textviews are weighted with singleline set to false. should wrap text, right? Sep 07 21:52:34 for some reason, the weighted fields resize Sep 07 21:55:26 for anyone who cares, i had to set the width to 0dip, along with singleline=false and a weight Sep 07 21:57:38 yeah you have to set width/height to 0dp depending on orientation w weigths Sep 07 22:12:19 i have a dialog with some EditTexts in them Sep 07 22:12:42 how do I a) show the soft keyboard when the dialog is opened (yes I have a requestFocus in the XML) Sep 07 22:12:55 b) hide the keyboard when the dialog is closed Sep 07 22:15:27 HorizonXP: there is something in the inputmethodmanager class http://developer.android.com/reference/android/view/inputmethod/InputMethodManager.html Sep 07 22:15:31 Hi, if I just want to test reading the apk expansion file (not downloading it) can I still use SampleDownloaderActivity.java? Sep 07 22:15:37 i guess you would show it in the on create of the dialog Sep 07 22:15:51 and hide in the onPause Sep 07 22:15:53 because when I run my app it says Download failed because the resource could not be found Sep 07 22:16:19 *onCreate Sep 07 22:16:26 f2prateek: yeah looks like it... right now, i'm using the IME in the onClick listeners, and it's a no-go. Sep 07 22:16:40 so i think what you're saying might be something to try Sep 07 22:20:22 SimonVT: have you worked with api expansion packs before? Sep 07 22:24:21 is there any way to reset android on screen touch/mouse pointer location? Sep 07 22:26:47 define "reset" Sep 07 22:27:26 I didn't get any of that question either. Sep 07 22:27:54 here is what I want to do. maybe theres a better way. on a webview, I want to give feedback on touch. theres a :hover style. now after they click, I want that :hover state to go away after like 1 second Sep 07 22:28:53 and based on what I think, if I change the pointer position to something else like whatever its default value is, it would remove the :hover state automatically Sep 07 22:29:44 is this a webview? Sep 07 22:29:55 yes Sep 07 22:30:02 write some js to do it Sep 07 22:30:25 to do the click? I think css would be less hassle in my case Sep 07 22:30:37 er... Sep 07 22:30:38 :hover is problematic with touchscreens Sep 07 22:30:42 correct Sep 07 22:31:05 So on touchscreens you want the 'hover' effect to persist for like 1 extra second. Sep 07 22:31:13 (after user touch) Sep 07 22:31:15 right? Sep 07 22:31:18 not persist. I want an onclick feedback Sep 07 22:31:38 like, device vibration? that kind of feedback? Sep 07 22:31:48 I basically dont want it to persist . so want a BG change on click/touch. and then back to normal Sep 07 22:32:01 oh Sep 07 22:32:02 like device vibration, but a visual feedback would be probably nicer Sep 07 22:32:07 and less intrustive Sep 07 22:32:14 right Sep 07 22:32:21 at the moment, unless you click somewhere else, it stays on :hover Sep 07 22:33:08 ah, well I thought this was an easy js/css thing. not sure about webview pointer :p Sep 07 22:33:31 this should be the case for web-based apps as well. not sure how they handle clicks. Sep 07 22:33:42 ? Sep 07 22:33:50 You want a callback to execute on click? Sep 07 22:34:14 similar to a "click" with a mouse. Sep 07 22:34:34 I tried :active, it doesnt work with :active. just :hover Sep 07 22:35:24 am i missing something in this? the same view works when its not defiend as an inner class http://pastebin.com/YReda3Xn Sep 07 22:36:59 sinaa:
Sep 07 22:37:21 that's one way to 'handle clicks' Sep 07 22:37:33 marcab, I'm pretty good in css/js/html . and I already handle clicks to do lots of stuff Sep 07 22:37:35 But I don't think that's what you want. I'm still not sure what you're asking for. Sep 07 22:37:43 its just that I want to give a visual feedback as well Sep 07 22:38:30 I basically change the background color on :hover at the moment. I want it to not persist Sep 07 22:38:43 like on a browser Sep 07 22:38:56 when your mouse is on something, the color changes. if you keep it on the button Sep 07 22:39:04 it wont change back to normal Sep 07 22:39:08 hrm Sep 07 22:39:21 and its the same on android. keeps the mouse on last touch position Sep 07 22:39:22 Maybe someone else here has more experience in webviews Sep 07 22:41:33 so, anyone has experience with haptic feedbacks? Sep 07 22:42:05 is it just view.vibrate(duration) ? Sep 07 22:45:43 what is the suggested duration for haptic feedback ? Sep 07 22:46:00 how do you go about changing the background of your app? Sep 07 22:46:20 i guess its the actual background of the viewgroup Sep 07 22:46:36 css: #id :hover {background-color:#xxxxxx;} Sep 07 22:46:45 omg.. you can use css? Sep 07 22:46:48 I also tried :active, but it wont work on touch Sep 07 22:46:52 ciwolsey: webview Sep 07 22:47:42 only if we could use css in native views. would be a revolution! :D Sep 07 22:48:25 oh i dont know what webviews are Sep 07 22:48:47 but using css would definitely make my life easier Sep 07 22:49:05 Qt uses CSS i think Sep 07 22:49:07 i found that really nice Sep 07 22:49:18 Funny... I sometimes wish I can use android xml for webpages :) Sep 07 22:49:24 hehe Sep 07 22:49:27 ciwolsey: html/js as the interface for an app Sep 07 22:49:27 Especially weights I would like Sep 07 22:49:32 ciwolsey: (and css) Sep 07 22:49:37 http://www.hasthelargehadroncolliderdestroyedtheworldyet.com/ Sep 07 22:49:43 i will definitely need to look into that Sep 07 22:49:49 EuroTrash: Oh, and relativelayout? Hell yes. Sep 07 22:49:58 tophyr, nice Sep 07 22:50:12 ...old Sep 07 22:50:13 I'm actually using webview for my app. loads internal URL. its kinda like what phonegap does Sep 07 22:50:29 old or not i'm laughing my ass off Sep 07 22:50:45 it says yes for me Sep 07 22:50:49 :D Sep 07 22:51:05 undef worldHasEnded Sep 07 22:51:18 "