**** BEGIN LOGGING AT Mon Sep 10 02:59:58 2012 Sep 10 03:43:47 quick question: does the outermost view of a layout in xml (eg. often a linear layout) have a default id? is it android:id/content ? Sep 10 03:48:06 When drawing in an MapView Overlay, is there an easy way to make the canvas scale with zoom. Sep 10 03:48:48 briswolf: yes Sep 10 03:48:54 to both Sep 10 03:49:01 JakeWharton: thanks heaps Sep 10 03:49:08 although that's technically not the outermost view, you should consider it as such Sep 10 03:49:10 JakeWharton: didn't want to just assume Sep 10 03:53:45 Can I replace this view (the root view, right?) with a fragment at runtime? Or should I create a dummy view inside to replace with the fragment... Sep 10 03:54:12 you can attach a view to android.R.id.content Sep 10 03:54:34 a fragment, rather Sep 10 03:54:44 ok so inflate the fragment and then put it inside the linear layout Sep 10 03:54:55 as in, don't use a fragmentTransaction Sep 10 03:55:01 I will try it out Sep 10 03:58:35 So, when drawing in a MapView Overlay, is there an easy way to make the canvas scale with zoom. I am working on drawing routes. The path part is easy, however I want an arrow at the end and I need it to scale Sep 10 04:05:28 anyone have an idea? Sep 10 04:05:57 epsilonorion: sorry, no. I am struggling with the basics :/ Sep 10 04:06:20 briswolf: np, thanks. I saw you working on fragments. I was there a while ago, but it is definitely fun Sep 10 04:13:31 I am updating ListView's data adpater in local service and then calling notifyDataSetChanged but ListView data gets updated only when I touch screen. any pointers what might be going wrong? Sep 10 04:14:21 sacdroid: are you calling notifyDataSetChanged from the ui thread? Sep 10 04:14:32 yes Sep 10 04:14:42 briswolf: I'm out of ideas :P Sep 10 04:14:46 sorry Sep 10 04:14:50 ok :) Sep 10 04:15:12 sacdroid: sounds like a strange issue though Sep 10 04:15:18 hmm Sep 10 04:15:53 sacdroid: have you tried it from just a thread? I don't believe the service would interfere (you haven't put the service in a remote process or anything like that right?) Sep 10 04:16:13 no, its Local Service Sep 10 04:16:35 yeah. what kind of adapter are you using? just an arrayAdapter? Sep 10 04:16:48 its ArrayAdapter. Sep 10 04:17:24 its Fragement which contains ListView and this Fragement is added dynamically! Sep 10 04:17:36 in ViewPager... Sep 10 04:18:43 I have a listview in a fragment in a viewpager and it works ok, I am updating an array in a bg thread and then calling notifyDataSetChanged from the uiThread and it is working, so sorry I don't have any ideas :/ wish I could help. Sep 10 04:19:37 ok np :) Sep 10 04:20:38 I assume in your fragment you are calling getActivity().runOnUiThread(new Runnable(){.....}); to call notifyDSC Sep 10 04:24:33 briswolf: no Sep 10 04:25:12 sacdroid: calling update from the service? what if you make the service issue a callback to the fragment... it probably won't change much Sep 10 04:26:24 sacdroid: I am not sure what you are doing, but if the service is building/maintaining a list, maybe when that list changes the service can issue a callback to registered listeners, and those listeners could copy the list and then update the listview Sep 10 04:26:32 don't really need to copy I suppose Sep 10 04:27:12 seems like the service shouldn't know about the UI implementation though, from a compartmentalising point of view (imo) Sep 10 04:28:46 yes, I am doing exactly what you mention and I am not copying as same underlying data is being updated by service, I am just invoking notifyDataSetChanged from a listener method which is called by service Sep 10 04:29:39 sacdroid: so the listener, is it in your fragment class? what is the code you use to run on the ui thread, out of curiosity Sep 10 04:29:48 does this listener method which is in turn calls notifyDataSetChanged needs to be call using runOnUiThread? Sep 10 04:29:59 the listener doesn't Sep 10 04:30:06 but I would think that notifyDataSetChanged does Sep 10 04:30:14 Listner == Fragement Sep 10 04:30:38 what else are you doing in the function? Sep 10 04:30:40 My listener is Fragement Sep 10 04:30:47 nothing else. Sep 10 04:31:05 its just call to notifyDataSetChanged on adapter . Sep 10 04:31:23 sacdroid: so is the call to notifyDSC happening on the main thread? Sep 10 04:31:43 the ui thread rather Sep 10 04:32:01 I assume in your service you create a background/worker thread Sep 10 04:32:11 Its not, I guess. sorry. Let me try using runOnUiThread. Sep 10 04:32:17 cool yeah Sep 10 04:32:41 thx :) Sep 10 04:33:24 I am still confused - I want to click on an item in a listview, and then have a new activity launch which displays a fragment depending upon which item was clicked Sep 10 04:33:36 of course on a tablet I would not bother with the new activity Sep 10 04:34:22 so, what is one possible way to do this? do I need to store a static array of fragments by index, and then pass that index into the activity in an extra, and then lookup the fragment in the array by index and display it on the activity? Sep 10 04:34:53 * briswolf thinks he is missing some basic concepts Sep 10 04:35:56 actually I think I might just replace the listview fragment with my implementation fragment Sep 10 04:36:00 yes... Sep 10 04:36:06 You dont have to save array of fragements Sep 10 04:36:28 sacdroid: how do I communicate to the activity which fragment to show? Sep 10 04:37:14 Onclick of listview item just pass data which will be shown in fragment as parcable using "extras" Sep 10 04:37:35 and construct fragement or activity using passed data, Sep 10 04:37:48 each fragment is a completely different layout and code Sep 10 04:38:08 my list is things like "barcode scanning", "fingerprint image capture" etc Sep 10 04:38:22 so I have a fragment implemented (along with layout) to perform those tasks Sep 10 04:38:39 I guess I don Sep 10 04:38:45 t understand how parcelable works Sep 10 04:39:05 I will try for now just replacing my listview with the fragment and put the listview on the backstack Sep 10 04:39:23 should give much the same effect (in fact it will keep my tabbar visible which is probably better) Sep 10 04:39:30 your item click logic show decide which fragment should be constructed based on item clicked. Sep 10 04:39:51 sacdroid: ok, well I will look into that option thanks :) Sep 10 04:40:17 :) Sep 10 04:53:27 sacdroid: so to continue me being dumb, when I create the activity (fragmentactivity) what is the easiest way to display the given fragment on the screen - do I have to first call setContentView and pass in a simple/empty layout (with *something* to put the fragment on/in, what?) and then replace it somehow? or can I bypass setContentView altogether? Sep 10 04:55:55 I am no expert, but I guess setContentView which will set up layout with place holder for laout. Sep 10 04:56:06 place holder for fragement* Sep 10 04:56:17 sacdroid: yeah, ok. is that like any view? Sep 10 04:56:27 yes. Sep 10 04:56:31 does the fragment go inside that placeholder or replace it outright Sep 10 04:56:34 so replace it outright Sep 10 04:56:45 and I guess I use the id of the placeholder in a fragmenttransaction Sep 10 04:56:49 I will try it out :) Sep 10 04:56:54 yes, Sep 10 05:03:04 omg, why does all the http clients I can find for android suck? I'm currently debugging one that I had to fork (to add a feature I needed), and I'm stuck on a deadlock because the call to org.apache.http.impl.client.DefaultHttpClient::execute is blocking forever Sep 10 05:04:44 anyone familiar or have an idea on how to scale a drawn image (canvas) in an overlay when zooming in or out Sep 10 05:06:39 epsilonorion, maps? Sep 10 05:07:27 yes, mapview. I am create a routeoverlay between points. The route path is easy since it scales due to the points, however I need to show direction with an arrow. I am simply drawing a triangle on the end, but it obviously doesn't scale Sep 10 05:09:29 you might try getting the lat/lon of apposing corners and converting them to pixel x/y values and drawing to that specific rectangle Sep 10 05:09:50 I had to make a tiling system for mapview and that's how I scaled the tiles Sep 10 05:12:30 So you do this once to get a good value to hold as a scaling factor when doing this. Kind of a linear weight? Sep 10 05:12:45 nope, on every draw Sep 10 05:13:45 org.apache.http.impl.client.DefaultHttpClient Sep 10 05:13:46 bah Sep 10 05:13:50 http://pastebin.com/i4tGSHpq Sep 10 05:14:00 ^ where d is the drawable Sep 10 05:16:59 I think i see what you were saying, but how do you control the scaling specifically. Are you using the values to create a scaling factor, or simply coming up with a base rectangle when first started and draw in that bounded box? Sep 10 05:17:16 I do see how you are grabbing your bounds though Sep 10 05:19:03 the scaling factor is handled by the lat/lon box Sep 10 05:19:47 think of it as drawing on the map, and a separate viewer is doing the scaling/translating Sep 10 05:26:10 any particular way you are getting the upperleft or lowerright gps points of the view Sep 10 05:26:25 well, it's complicated ;) Sep 10 05:26:39 but it's a part of how the tiles are defined Sep 10 05:26:50 centered on a lat/lon and covering a given span Sep 10 05:27:23 the span changes with the zoom, but that's just because the tiles cover more area as you zoom out Sep 10 05:30:39 question: I have an API key for consuming data from a 3rd party. I want to share my source on github but I don't want to hand out my own API key - is there a way to include it from some external file that isn't included in github? I was thinking just put it in some CONSTANTS.java file and excluding that file from the commits - any other suggestions? Sep 10 05:33:06 put it in a properties file that you .gitignore Sep 10 05:45:50 thanks JakeWharton Sep 10 05:47:40 bleh. i have a general java question, i shoudl know the answer but i forget the specifics. so polymorphism. suppose ClassB extends ClassA. So what's the difference in ClassA instance = new ClassB() versus ClassB instance = new ClassB(); Sep 10 05:48:05 you can't call ClassB-only methods on 'instance' Sep 10 05:48:22 unless you cast the instance to ClassB type Sep 10 05:48:25 ah ok Sep 10 05:48:27 thanks Sep 10 05:49:40 any reason why you would want to do that? i mean, i understand if i take a parameter as a base type, i don't care about a subclasses stuff in the context of that parameter Sep 10 05:50:26 speakingcode: well sometimes you would be building a list of the base type, or something similar? Sep 10 05:51:15 but when explicitly instantiating an object of a class, why would one want to instantiate a subclass as a base class? why not just instantiate a subclass as the subclass, Sep 10 05:51:51 for testing, future-proofing, etc. Sep 10 05:51:55 i.e. why do ClassA o = new classB() instead of ClassB o = new ClassB()? whats the advantage Sep 10 05:52:14 speakingcode: so your code only can call methods of the base class Sep 10 05:52:16 in practice, you should always use the most abstract version of a type Sep 10 05:52:21 If ClassB doesn't introduce any new methods, just new behavior Sep 10 05:53:06 ahhh so if classB overwrites a method, but I instantiate as ClassA, then the classA (i.e. base class) version of the method will execute when i do instance.method() Sep 10 05:53:06 ? Sep 10 05:53:15 No Sep 10 05:54:17 briswolf i hear you, but if i don't want anything from the subclass, why use it at all? i know this sounds silly but i just think i'm forgetting something key about this Sep 10 05:54:50 speakingcode: I've done it, say I have a comms class. then the subclasses are like bluetoothcomms, usbcomms, etc. These classes might have specific functionality Sep 10 05:54:57 but I want all my code to only use comms functions Sep 10 05:55:04 so that I can interchange between usb, bluetooth etc Sep 10 05:55:32 If I need to use specific functionality I can use if instanceof ... and downcast to the specific type Sep 10 05:55:47 nod, ok, so you type your parameters in methods as the base class, i get that Sep 10 05:55:54 so at the start of my program I have like Comms comms = new USBComms(); Sep 10 05:56:09 or Comms comms = new BluetoothComms(); Sep 10 05:57:09 nod. why not do BluetoothComms comms = new BluetoothComms()... if BluetoothComms() extends Comms (or implements that interface) it's still interchangable Sep 10 05:57:27 because then you can't swap the impl Sep 10 05:58:32 swap? so you mean, at some point Comms comms = new Bluetooth()... then later on say comms = new OtherCommsSubclass() Sep 10 05:58:49 you can't write BluetoothComms comms = new UsbComms(); Sep 10 05:58:58 there might be also other refactoring you have to do Sep 10 05:59:07 if you weren't constrained to using the comms class everywhere Sep 10 05:59:28 like so many things, it isn't like "you must do it this way" but if you do it that way you might avoid more work later Sep 10 05:59:43 hmmm Sep 10 05:59:59 i hear ya just still not seeing this clearly. hmph Sep 10 06:01:49 when i take a parameter, i always take the "most abstract" or highest base class, i get that - then i can pass any subclass or implementation as an arg to that method... but when i'm instantiating explicitly, why declare it as a base class instead of the subclass, i dont get the precise difference Sep 10 06:03:04 because it's best practice and future-proofs you Sep 10 06:03:20 how? what's the mechanical difference Sep 10 06:03:24 if it is local to a function and that reference only lives for a line or two then there is probably little difference Sep 10 06:03:42 but if it is an ivar... then all the other stuff Sep 10 06:03:53 because it forces you to write code against a more abstract API Sep 10 06:04:50 so that when your requirements change and you have to swap your LinkedList for a CopyOnWriteArrayList you only have to change the instantiation Sep 10 06:05:04 ah Sep 10 06:05:07 that makes sense Sep 10 06:08:31 so mehcanically there isn't much difference, but it generalizes the code in the same way that one would generalize methods by using the "most abstract" class/interface when typing a parameter Sep 10 06:10:08 that discussion was probably way more verbose than necessary. thanks for putting up with me ;-) Sep 10 06:10:32 explain --verbose Sep 10 06:10:41 hah, no such thing as a java discussion which is too verbose Sep 10 06:11:33 Java discussions aren't over until you're talking about heaps and stacks Sep 10 06:12:03 lol yeah. well with anything technical i try to be only as verbose as necessary (which can often be quite wordy) - but anything extra then the absolute necessary tends to confuse or cloud the point Sep 10 07:07:39 On iOS, OpenGL ES 2 contexts can share resources between them and multiple contexts can be bound to multiple threads at the same time (one context per thread, and one thread per context). Sep 10 07:07:52 Are there limitations on each of these on Android devices? Sep 10 07:07:56 Either. Sep 10 07:12:16 Hey Guys, I'm looking at IoSched code for designing my app again for single pane and multi pane, but it all looks very messy is there any better reference for doing it? Sep 10 07:22:51 brickhead: iosched is as good as it gets Sep 10 07:28:26 g00s: so my query is we have booth Single Pane and Multi pane activity register Intent-filter for a perticular mime type but who does it decides which one to call at run time Sep 10 07:29:40 It's usually just 1 activity Sep 10 07:29:44 With different layouts Sep 10 07:30:02 has anybody ever debugged through an AIDL call into a remote service?... Sep 10 07:30:13 or can you get breakpoints to fire in a remote service? Sep 10 07:30:29 is there a trick? Sep 10 07:31:12 na what they done is created single pane activities and a multi pane activity which says I've all these fragments and I could handle their mime types Sep 10 07:31:47 All our hard|work is gone. Sep 10 07:46:50 Hola #android-dev Sep 10 07:57:48 hola Sep 10 07:58:32 speakingcode: how's your day goin'? Sep 10 07:59:08 about to end, and it's been awesome. Sep 10 07:59:10 oh this is wierd Sep 10 07:59:13 I have 4 breakpoints I can't toggle off in eclipse. Sep 10 07:59:32 try restarting eclipse - it gets funky sometimes ;-) Sep 10 07:59:51 thanks for asking, how is your day? Sep 10 08:00:25 well, I got up at least an hour earlier than I should have Sep 10 08:00:30 which was a bad start Sep 10 08:01:16 I work on a helpdesk, and I wasn't convinced that there would be anyone here at 8am, so I came in early. Sep 10 08:01:45 turns out there was someone here, and I could have had some more of that precious, precious sleep I love so dearly. Sep 10 08:02:38 speakingcode: have you seen the X-Files? Sep 10 08:04:13 i am watching x-files now, season 1 episode 7 - ghost in the machine Sep 10 08:04:42 pts\3: I'm on season 1 as well, last or second last episode Sep 10 08:04:44 pts\3: old school Sep 10 08:04:54 pts\3: respect. Sep 10 08:05:11 there are way more one-liners in that show than I remembered Sep 10 08:05:30 * lut4rp will never forget the last episode of season 1 Sep 10 08:05:39 Even though I watched it years and years ago Sep 10 08:06:15 lut4rp: I was only 6 when the X-Files started, so Season 1 kind of passed me by Sep 10 08:06:19 I have millis and is it possible to format it to this format? : "Mon Sep 10, 1:36 PM" Sep 10 08:06:29 let us all give a moment of silence for how badly x-files ended... Sep 10 08:06:50 napster: everything is possible. The Truth Is Out There. Sep 10 08:06:50 napster: you will have to create an instance of Date Sep 10 08:07:30 http://www.roseindia.net/java/java-conversion/MillisecondToDate.shtml Sep 10 08:07:45 briswolf: Yes I have one instance already, its just that I need to format it Sep 10 08:07:59 try SimpleDateFormat Sep 10 08:08:14 there you are, let me try Sep 10 08:08:18 briswolf: yeah, I'm planning on jumping ship when David Duchovney does. Sep 10 08:08:20 ty briswolf Sep 10 08:08:54 or this: http://developer.android.com/reference/java/text/DateFormat.html Sep 10 08:11:04 ok, thank you briswolf Sep 10 08:12:47 napster: you know what's cool? a BILLION dollars Sep 10 08:12:49 hah Sep 10 08:13:07 briswolf: Give me your PayPal id ;) Sep 10 08:33:08 damn you Lint! you are currently warning me that an Import that isn't there is not being used! Sep 10 08:38:14 try this remove the warning :P Sep 10 08:38:15 Sep 10 08:38:19 ^^ Sep 10 08:52:07 Is anynon know how to fix "Too many fields" dalvik error? My Android App is made of 25 library projects Sep 10 08:57:26 Use less :p Sep 10 08:58:18 Is anyone here familiar with the ADK? I need to know whether two devices that work by USB would have any luck working through Android. ( http://goo.gl/MjOcU ) and ( http://www.aimpro21.com/prod_ir606.asp ). Sep 10 08:59:20 I have them on my desk, and I assumed that I could use UsbManager to access them. Sep 10 09:04:51 Knossos: are they just USB devices (i.e. you can plug them into a computer?) Sep 10 09:05:05 Pretty much Sep 10 09:05:19 if they use bulk usb transfers then yes you can work with them Sep 10 09:05:27 you will have to write you own "drivers" Sep 10 09:05:40 the android USB host type code is very similar to libUsb Sep 10 09:05:59 so if there is any code which already demonstrates that you will find it not to difficult to port Sep 10 09:06:07 otherwise you will have to reverse engineer the USB protocol Sep 10 09:06:15 which isn't fun without a protocol analyser Sep 10 09:06:20 and even then it's not fun ;) Sep 10 09:06:35 Anyone know how to implement a guassian blur animation? Sep 10 09:08:17 Ok, well it is at least a start to know that I can use these devices. Unfortunately, I am not certain where I should even start with creating my own driver. This may be a long road. Sep 10 09:09:27 Knossos sorry I'm real busy at the moment :/ Sep 10 09:09:59 Knossos otherwise I'd give more pointers. 7pm and working for a deadline. I shouldn't even be in here ;) Sep 10 09:10:00 hah Sep 10 09:10:02 No problem, as I said. At least I know that the devices have a possibility of working :D Sep 10 09:10:17 That was really the main thing. Sep 10 09:26:02 How can I get listpreferences displayed text of selected item and not only the value Sep 10 09:30:02 startActivityForResult() should give (based on the intent/activity defined) give RESULT_OK and RESULT_CANCELED, is the later all ways -1? Sep 10 09:30:18 hmm ignore that Sep 10 09:30:53 public static final int RESULT_CANCELED Constant Value: 0 (0x00000000) Sep 10 09:30:55 crap... Sep 10 09:31:40 It doesn't have to be one of those Sep 10 09:31:52 it can even be 2 Sep 10 09:35:18 is there a way to extract the kernel config if adb pull /proc/config.gz doesnt work? Sep 10 09:38:05 your app depends on the kernel config? Sep 10 09:40:26 i am trying to compile a kernel and wasn't sure where to ask Sep 10 09:41:09 well... not here - #android-root if appropriate, or the android-porting or android-building google groups Sep 10 09:41:24 oh cool thanks didnt know about those Sep 10 09:41:46 you knew about #android-root, because it's in the topic of this channel, which you read when you joined it Sep 10 09:42:56 well i more ment porting i think that one would be the right one Sep 10 09:46:12 ok :) Sep 10 10:06:45 hi, is it possible to force a layouting pass different from requestLayout? Sep 10 10:07:01 requestLayout has the property that it only performs the layout pass once the control is back to the main UI loop Sep 10 10:07:19 i would like to perform layout and then continue in my code (this is for purposes of arranging views for a screenshot) Sep 10 10:12:31 Is there a website that shows the graphical evolution of standard wigets? Sep 10 10:12:51 lasserix: you mean the creation ? Sep 10 10:13:39 Uhh not as much as just a sequence of images showing each widget's drawables on subsequent versions of the os Sep 10 10:14:52 Like http://androiddrawableexplorer.appspot.com/ is showing 2.2 but I want to see for say a spinner, its drawables from 1.0 to ics or something Sep 10 10:15:12 Even though few things could be more useless ;p Sep 10 10:31:33 to clarify a little further: We have to capture a camera preview and overlay a logo on top of it.. Sep 10 10:32:00 so we got this camera preview decoding part allright.. Sep 10 10:32:06 [it's a bit of a hassle, but ok] Sep 10 10:32:10 If I have a lot of constants for uses in switches and the like, is it better practice to make one static class containing all of the constants, or declare them per class where they are used / most likely to be used? Sep 10 10:32:11 tapas: just put your logo in a seperate view and throw it on top of your image view for the camera Sep 10 10:32:22 funktronic: that's what we do Sep 10 10:32:31 funktronic: this part works great.. Sep 10 10:32:56 funktronic: then when the user hits capture we do the following: hide the camera surface, display the captured preview frame instead Sep 10 10:33:28 funktronic: the logo is still visible. then we create a canvas and tell the layout holding the logo and the preview frame to render itself.. Sep 10 10:33:42 then we hide the logo and preview frame and display the result image.. Sep 10 10:34:26 so what's the issue Sep 10 10:34:30 we need to have this strict order of operations and you can clearly see that there should be layout passes inbetween some steps, to make sure views are gone, others are showing, etc.. Sep 10 10:35:02 it seems that the layout.draw(Canvas) call seems to honour visibility.. Sep 10 10:36:49 funktronic: the issue is that the drawn image (i.e. the one created by layout.draw(c)) seems to have the logo in it twice (i only judge this from some alpha values being too high) Sep 10 10:37:32 ah, well you can hold references to the views and maniputlate them in your activity Sep 10 10:38:23 funktronic: let me show you a code snippet.. maybe you see something obviously wrong.. Sep 10 10:39:23 http://pastesite.com/43485 Sep 10 10:39:32 the "intersting" part starts at line 46 or so Sep 10 10:41:23 maybe the differences in the overlay over the preview surface and the rendered result image also stems from the fact, that the result image's resolution is bound to the view layout Sep 10 10:41:30 while the original logo is much bigger.. Sep 10 10:41:40 so the filtering algorithms work differently.. Sep 10 10:43:31 i'll play around a little.. Sep 10 10:43:48 what'd be the best way to check the backlight brightness while testing on the emulator? Sep 10 10:44:09 tapas: nothing obvious, but don't have time to look at it in super detail. sorry Sep 10 10:44:38 hi all, i'm trying to open a URL; i set the intent up okay, but get an error on startActivity(browserIntent); Sep 10 10:44:38 funktronic: thanks for the look thoug.h,, Sep 10 10:44:43 hmm, i just discovered something.. Sep 10 10:44:59 if i don't even render, but just show the camera preview frame and the overlay it already looks different.. Sep 10 10:45:37 so composition with a camera surface and a transparent overlay works different from a composition of a static imageview and a transparent overlay... Sep 10 10:45:40 interesting.. Sep 10 10:50:43 hello Sep 10 10:51:26 i cannot get a logcat from any of my builds, how can i ensure that connection? Sep 10 10:54:48 ah right, so, startActivity() must be called from inside Activity class? Sep 10 10:55:05 startActivity is a member of the Activity class? Sep 10 10:55:30 member of context Sep 10 10:55:48 you can check on d.android.com ... Sep 10 10:55:53 thx Sep 10 10:56:26 so if my class, extends context, i can then do startActivity? Sep 10 10:56:29 i start activity y from activity x with onStartActivityForResult() activity can then start some other activity z with startActivityForResult() on android 2.3.3 this works ok but with ICS the main activity's (x) onCreate, on Start etc are called multiple (ie. over 30) times Sep 10 10:56:32 being a bit dim today Sep 10 10:56:34 how should i go on about solving this? Sep 10 10:57:21 (mean that i am) Sep 10 11:01:02 In a cursor adapter in the bindview method I have to find the ids of the textviews to assign the values from the cursor, can I declare just one textview as a field to the class and reuse it? Or should I declare it a local variable explictly in the bindview call? Sep 10 11:03:50 Can I write some debug info to bundle with the default Android market stacktraces? Sep 10 11:06:03 how do i get a pointer to the instance of my main activity? Sep 10 11:07:07 MainActivity.this Sep 10 11:09:37 ah, thanks, didn't work though Sep 10 11:09:55 i have ... public class AppActivity extends Activity Sep 10 11:10:26 is there a single instance of this somewhere? Sep 10 11:10:41 i cannot get a logcat from any of my builds, how can i ensure that connection? Sep 10 11:11:00 No, MrQwak Sep 10 11:11:07 If you need it somewhere, pass a reference Sep 10 11:12:11 i need to call a member function Sep 10 11:12:24 have no idea what the instance of AppActivity would be Sep 10 11:13:03 ok, so alpha compositing works different over a surfaceview than over an image view.. Sep 10 11:13:18 that's annoying. i wonder if there's a way to make both compositing algorithms the same.. Sep 10 11:13:46 [i.e. having a transparent imageview on top of a surfaceview vs. one on top of another imageview] Sep 10 11:15:37 okay, i'm doing something really wrong here... Sep 10 11:15:46 trying to open a URL in browser Sep 10 11:16:01 so i have ... Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.mrqwak.com")); Sep 10 11:16:14 then startActivity(browserIntent); Sep 10 11:17:18 startActivity needs to be inside context class? or activity class. is that correct? Sep 10 11:24:47 http://pastebin.com/JvPJ9kYc here's my problem, how should i go on about solving it? Sep 10 11:25:40 hey, I'm using an imageview to display an imageuri Sep 10 11:25:46 however, the image changes from time to time, the uri doesn't Sep 10 11:25:51 how can I get the imageview to redraw? Sep 10 11:25:53 .invalidate() doesn't seem to do anything Sep 10 11:31:15 anyone? Sep 10 11:31:52 You have to set the image again Sep 10 11:33:41 how about my problem? Sep 10 11:52:23 Anyone have a link to how to do a listview with the "tab" that pops up indicating what letter you're at in the listview sequence? Sep 10 11:55:18 SimonVT: how? Sep 10 11:55:24 if i just recall setimageuri, nothing changes Sep 10 11:59:20 Look at how setImageUri works Sep 10 12:00:53 hi, if i wanna do a list view with: IMAGE TEXT IMAGE - i have the 2 images width = wrap_content and the TEXT width to fill_parent i cant see the image on right hand side of text Sep 10 12:00:54 any ideas Sep 10 12:02:53 how to get middle item to fill all unused space? Sep 10 12:03:14 http://pastebin.com/JvPJ9kYc here's my problem, how should i go on about solving it? Sep 10 12:04:09 is there any way to tell android how to do compositing between different (transparent) views short of doing the composition oneself? Sep 10 12:05:02 Is there an app that monitors a specific application that downloads data from the network, to know the source? Sep 10 12:18:01 sylon Sep 10 12:18:29 use a linearlayout wrap content width on both images and set layoutwidth to 1 on the textview with width="0dp" Sep 10 12:18:48 setting layout weight = 1 on the TV will make it take up remaining space Sep 10 12:23:33 Omar I've heard if you root your phone you can install wiresharck and packet analyze Sep 10 12:25:23 lasserix: thanks i figured it out eventually Sep 10 12:45:05 hey Sep 10 12:45:33 does any1here knows a good place to get some backround images for my game application so it won't be white and borring? Sep 10 12:58:18 sasson: try the internet, I hear there's a lot of neat stuff there. Sep 10 12:58:24 alternately, hire an artist??? Sep 10 12:58:48 sasson: get a camera. Find a sunset. Sep 10 12:59:16 or a kitten. internet loves those Sep 10 12:59:20 this is true. Sep 10 12:59:26 don't get a kitten just for a cute picture, though. Sep 10 12:59:36 google for 'stock photo'? Sep 10 12:59:39 If you're not ready for a lifelong kitty commitment, just take a picture of your friend's kitten. Sep 10 12:59:46 or you could find a kitty and- oh god damn you lov Sep 10 12:59:53 :3 Sep 10 12:59:54 sasson what kind of game is it? Sep 10 13:05:15 Hi, does it exists a motherboard with arm cpu, gps, 3G, sim slot, video output and android, Sep 10 13:05:41 already found something a while ago but don't remember the name Sep 10 13:05:58 without screen Sep 10 13:06:40 like raspberry but with gps/3G/sim Sep 10 13:12:15 With video out and telephony, I don't know. Sep 10 13:12:23 there isn't a huge market for an almost-cellphone I would imagine Sep 10 13:19:23 Is there a way to open the PreferenceScreen that has your config, via an intent or something? Sep 10 13:19:29 I'd like to open it but not through the standard menu button Sep 10 13:23:42 uh, yes? Sep 10 13:23:56 you don't HAVE to use menus to start intents :P Sep 10 13:25:20 lov, right but if its XML im not sure what the Intent class name is Sep 10 13:25:58 what would i pass for the class? Sep 10 13:26:21 o_O Sep 10 13:26:28 are you using a PreferenceActivity?... Sep 10 13:26:37 how exactly are you showing your preferences? Sep 10 13:26:39 oh wait Sep 10 13:26:42 LOL Sep 10 13:26:56 wow its been a while since i've touched this, i do have a screen an activity who knew Sep 10 13:26:57 :P Sep 10 13:27:03 derp. Sep 10 13:27:09 haha thanks lov Sep 10 13:27:41 lov, thanks anyway :) Sep 10 13:28:26 VinS: I'm curious what you're planning. You could always find an old cellphone that has video out, like an original galaxy S, and physically disconnect the touchscreen Sep 10 13:28:34 (assuming that you're ok with that level of surgery) Sep 10 13:28:59 obviously this isn't a great plan if you want to roll something out on 1000 devices, but if you want to do that you'd probably just talk to a manufacturer. Sep 10 13:28:59 JoyRideAlpha: did yu try adb logcat on the console? Sep 10 13:29:08 JoyRideAlpha: or just using eclipse or another IDE? Sep 10 13:29:23 it seems eclipse likes to lose the connection sometimes Sep 10 13:30:01 I need to know. Say a PHP form contains 3 submit buttons with different names. What POST data would be sent? Sep 10 13:30:26 Komak57: HTML form Sep 10 13:30:52 lov, in fact the screen / video output is not a requirement Sep 10 13:31:18 Leeds, yes. Sep 10 13:31:26 not PHP Sep 10 13:31:40 Komak57: I would very, very strongly suggest that you learn what HTTP and HTML are, and how they work. Sep 10 13:31:42 lov, I'd like to do a little tracking system with low consumption based on sms to activate the tracking, launch GPS and 3G to transfert data Sep 10 13:32:04 Komak57: use something like wireshark to look at what's actually being sent by your browser; it's very educational. Sep 10 13:32:44 VinS: there's a surprisingly large number of people who want to do this :P Sep 10 13:32:47 lov: you missed the guy in #android the other day who had fired up wireshark, only to discover his tablet was apparently transmitting malformed fibre channel packets Sep 10 13:32:53 Leeds: nice Sep 10 13:33:07 lol Sep 10 13:33:07 VinS: does it have to be android? There's probably purpose built equipment that already does this. Sep 10 13:33:22 sometimes you need more than just the right tool - you need to have more than the barest understanding of how that tool works Sep 10 13:33:34 ha Sep 10 13:33:35 lov, i've used HTML and PHP before, I'm just unsure how should be used with HTTPClient to press the submit button. Sep 10 13:34:02 Komak57: you need to learn what you're actually doing instead of just copy/pasting, is what I'm saying. Sep 10 13:34:13 learn about HTTP, and learn how form submissions work Sep 10 13:34:17 read RFC-1918 or whatever it is Sep 10 13:34:18 what is that input value o_O Sep 10 13:34:29 hrnt: "    IN (Day)    " Sep 10 13:34:30 hrnt: yeah I don't even want to think about it. Sep 10 13:34:30 >_> Sep 10 13:34:40 Leeds: thanks, now it all makes sense ;P Sep 10 13:34:41 I've never dealt with multiple form submit buttons Sep 10 13:34:47 glad to help Sep 10 13:34:55 hey... if there's an exception thrown in a Loader Sep 10 13:35:06 does "onLoadFinished" trigger? Sep 10 13:35:06 I understand GET and POST method form entries.. Sep 10 13:35:09 * Leeds is waiting for the time Komak57 discovers Javascript form submission Sep 10 13:35:41 in fact, this is the 2nd form in a chain I have to deal with in my code Sep 10 13:35:43 lov, yes probably exists but not fun if it's already done :P Sep 10 13:36:26 lov, a bit like that :) Sep 10 13:36:27 http://pegtech.com/products/gps-bicycle-tracking/spybike/product-information Sep 10 13:39:00 -sighs- the difficulty here, is that I have little room to "test". Pushing the button clocks me in for work, and as I can't work on the code at the same time I'm working, I will have to ask one of my higher up bosses to change my hours. I'm hoping I can figure this out without having to go that far... Sep 10 13:39:23 Mavrik: Loader is just a base class.. That would depend on your implementation Sep 10 13:39:55 yeah, just noticed, I mean AsyncTaskLoader which manages those callbacks Sep 10 13:40:31 Komak57: until someone slightly changes the form layout and your code breaks... scraping is really fragile Sep 10 13:40:39 Mavrik you can turn the loader debugger on and inspect Sep 10 13:41:17 Leeds, I understand this. But there isn't another option. Sep 10 13:42:04 use your web browser? Sep 10 13:42:29 It's what I've been having to do. Everyone who works with our company has. Sep 10 13:42:46 Adding it to the app makes it so much... well.. easier. Sep 10 13:43:14 except that creating the app has sucked a bunch of your time so far - and it's unlikely to work well in the end Sep 10 13:43:39 o.O that's because most of the project has already been completed? Sep 10 13:43:43 if you were dealing with something with an HTTP API, that's easy Sep 10 13:44:53 VinS: ha! The bike lug is a clever idea! Sep 10 13:45:59 VinS: best of luck in finding hardware that supports both telephony and gps while still having excellent power conservation; I don't think that there are any regular cellphones that will do this for you, but it's absolutely possible. Sep 10 13:46:31 this is kind of one of those tinker things that almost feels necessary. Except for the color customizations, the online picture database for all the items, and the personal login (to add notes to the items), this project is almost in a completed stage. Sep 10 13:46:41 Wow that's pretty small tracker Sep 10 13:47:29 Komak57: what leeds said. If your website form actually uses   as a value in its input fields, well..... Sep 10 13:47:44 lets just say that your app is probably going to end up being a support nightmare, because your website already is. Sep 10 13:50:08 So far, you're exactly right. We have new items added to the list almost every month. but I highly doubt THIS site is going to change anything anytime soon. That being said, I don't mind the upkeep in order to keep the login feature available. Sep 10 13:50:32 hey guys, I was away Sep 10 13:50:46 lasserix, something like scattegories Sep 10 13:50:56 i'm trying to use the "join contact" thingie from the people app Sep 10 13:50:59 the game I'm developing Sep 10 13:51:00 Komak57: again, I'd really gently suggest that you learn what you're doing when it comes to http, instead of just scripting. Sep 10 13:51:09 for demoing reasons Sep 10 13:51:09 because reimplementing it seems useless Sep 10 13:51:12 Komak57: You're at the level of "script kiddie", since you don't actually understand what your forms DO Sep 10 13:51:20 I can open it with "com.android.contacts.action.JOIN_CONTACT" Sep 10 13:51:25 you just add a magic incantation to your html and stuff magically happens on your server Sep 10 13:51:36 however, it doesn't seem to do any joining after I select a contact Sep 10 13:51:41 You really, really need to know what http is and how it works before you can reasonably proceed Sep 10 13:51:51 the relevant source doesn't show any joining either: http://source-android.frandroid.com/packages/apps/Contacts/src/com/android/contacts/activities/JoinContactActivity.java Sep 10 13:52:11 hello all Sep 10 13:52:14 any idea how I can use that? If i just somehow get the picked contact returned, that would be good enough, I guess Sep 10 13:52:21 I can do the joining myself using contactscontract Sep 10 13:52:23 Komak57: take a glance at http://www.w3.org/Protocols/rfc2616/rfc2616.html Sep 10 13:52:29 I just don't want to reimplement the activity Sep 10 13:52:30 android supports Queue and Deque ? Sep 10 13:52:36 lov, I think I will begin with my old htc hero to test this. 5days with gps/3g off and standby system Sep 10 13:53:12 Komak57: take a look at how headers work, then try making a simple java app that will make http requests. It's actually extremely easy to do. Sep 10 13:53:18 Need to bypass the simcode, and remote shutdown Sep 10 13:53:49 >_> Sep 10 13:53:54 bingels: probably. search for "queue" on d.android.com Sep 10 13:54:01 Komak57: I'm being gentle here. Sep 10 13:54:16 Komak57: we can't reasonably help you because you lack the necessary understanding to really do more than copy/paste what you tell you to do. Sep 10 13:54:33 Komak57: we want you to learn and grow and actually understand what it is that you're really doing Sep 10 13:55:11 lov: he's not that bad - he's definitely tackling a project that's too big for him right now, and has a lot to learn, but he's not actually an idiot Sep 10 13:55:23 anyone? Sep 10 13:55:23 I have a httpclient that handles post data, collects cookies, and adds some header data. This page I'm working with is the 3rd page I have to manage. Page 1: login. Page 2: determine clock options. Page 3: submit clock option. Sep 10 13:55:26 :> Sep 10 13:55:38 Leeds: that's why I'm not just flaming him Sep 10 13:56:21 http://pastie.org/4695816 Sep 10 13:58:13 not very dynamic, but it shrinks my coding down signifficantly. Sep 10 14:00:21 Anyways =.= I have to get to work now. thanks anyways. Sep 10 14:04:09 + Sep 10 14:04:15 66 Sep 10 14:06:38 Hello all Sep 10 14:06:56 How would i do this: "string[] args = command.Split(' ');" in java? Sep 10 14:07:49 have you tried javadocs for the String class? Sep 10 14:08:43 github down :'( Sep 10 14:09:06 Well i tried this: http://pastebin.com/8FKjZVr1 But it isnt really working`? Sep 10 14:10:19 myString.split("regularexpression"); Sep 10 14:10:38 I would like to split at a space Sep 10 14:10:48 at every space* Sep 10 14:10:55 Snoxie: http://bit.ly/TBTq14 Sep 10 14:11:25 lov, haha you got me :P Sep 10 14:11:50 what's the difference between these two: android:textAppearance="?android:attr/textAppearanceSmall" and style="?android:attr/textAppearanceSmall" Sep 10 14:12:20 textAppearance only apply on text Sep 10 14:12:26 style apply on whole widget Sep 10 14:12:29 one is a style, the other is a class attribute?.... Sep 10 14:12:47 That doesnt really help me? How do i split the string after each space? Sep 10 14:13:03 fair enough Sep 10 14:13:04 Snoxie: string.split does exactly what you want. Sep 10 14:13:11 I don't understand what the problem is that you're having Sep 10 14:13:20 it's split, not Split Sep 10 14:13:26 and i dont think it takes a char as a param Sep 10 14:13:48 myString.split(" "); Sep 10 14:13:55 yep Sep 10 14:14:16 Snoxie: instead of saying "HAY GUYS IT SI BROAK" Sep 10 14:14:19 you should be saying Sep 10 14:14:32 "Hey guys, I'm trying to do XYZ. Here's the sample code. The output is ZZZZZZ, I expect YYYYYY" Sep 10 14:14:50 or "I'm trying this but I'm getting a compile error and I'm too thick to mention that this is the problem" Sep 10 14:14:51 That is not what i am saying.. Sep 10 14:15:02 But i see what you mean. Sep 10 14:15:04 Snoxie: What is the input to that code? What is the output? What is the expected output? Sep 10 14:15:14 Sorry :) But i think i fixed it Sep 10 14:15:15 You need to work with us here. Sep 10 14:15:50 lov: don't forget "and I'm trying to run this code on a kindle fire running a hacked-up CM10 build" Sep 10 14:16:22 that's too much information Sep 10 14:16:46 because then people just assume everything is caused by the build Sep 10 14:16:49 even when it isn't :P Sep 10 14:16:54 except that usually it is. Sep 10 14:17:21 except that it isn't Sep 10 14:17:58 so you say! Sep 10 14:17:59 not telling about which ROM you use usually gets you help... telling about it is a sure way not to get any Sep 10 14:18:09 s/get/deserve/ Sep 10 14:19:34 when I was doing the support, most of the errors was due to a bad rom Sep 10 14:34:32 Hello all... I am trying to use the Alarm Manager to make a periodic call to a service. Sep 10 14:35:06 I am setting it up in an Application Subclass in the onCreate() method. Sep 10 14:35:16 Somehow I do not get events... Any way to debug? Sep 10 14:35:45 How do you add extras when switching back to a previous activity on the back button press (not using activityforresult)? Sep 10 14:37:00 lasserix: No way. You need activity for result. Sep 10 14:37:15 It's not an activity for result situation Sep 10 14:37:16 * Lachezar glances in the empty space: he forgot to register the Application subclass. Sep 10 14:37:35 lasserix: Obviously it is, since you need something from it.... Sep 10 14:37:57 if you just want to signal some state, maybe set a sharedpreference Sep 10 14:38:45 home -> browse -> detail ... when going from detail -> browse i don't need any results, but I need to know it was in browse so i can swap out the home fragment for the browse fragment and position the listview properly Sep 10 14:39:14 and just check the sp in the oncreate? Sep 10 14:44:34 hello Sep 10 14:44:51 i'm calling a method in my main activity to open a URL Sep 10 14:44:57 (open browser etc) Sep 10 14:45:17 calling this from another thread though, and believe it needs to run on the main UI thread Sep 10 14:46:00 how can i make a call from c to a java metdod, on another (the main UI) thread Sep 10 14:49:47 MrQwak: you can use runOnUiThread, or you can use a Handler Sep 10 14:50:04 ah yeah Sep 10 14:50:08 if it's something that doesn't merit creating a new Runnable, I'd recommend just using a Handler. Sep 10 14:50:12 just looking at runOnUiTHread thanks Sep 10 14:50:25 oh Sep 10 14:50:44 well, i'm calling from c (not on main UI thread) to java Sep 10 14:50:55 and need to open URL Sep 10 14:51:19 it works, but didn't work, when calling from another thread Sep 10 14:58:10 can i pass a parameter to a runnable? Sep 10 14:58:34 create a class that implements runnable Sep 10 15:01:32 hmm, runOnUiThread didn't work Sep 10 15:01:33 http://pastie.org/4696174 Sep 10 15:02:16 trying to call a method in my main activity (ui thread) from c (not in ui thread) Sep 10 15:02:22 er Sep 10 15:03:10 ok, so your mistake is in your native code? Are you checking whether the method exists first? Sep 10 15:03:33 I'm pretty sure that if you call into JNI and then call back out of it in the same thread, there's a little extra work you have to do with something or other Sep 10 15:03:58 I have to re-schedule my background task after preferences change. I am changing preferences from a number of places. How should I proceed? Sep 10 15:04:36 it called it fine, when i was calling it from the same thread (in c code) Sep 10 15:04:54 MrQwak: can you pastebin your relevant C code? :X Sep 10 15:05:04 yup, thanks, 2 secs... Sep 10 15:08:42 http://pastie.org/4696207 Sep 10 15:08:48 do people still use viewholders for lists and stuf Sep 10 15:08:49 f Sep 10 15:08:49 in 2 parts Sep 10 15:08:59 should make sense Sep 10 15:10:38 mrqwak did you figure out the sensitivity issue? Sep 10 15:11:10 nope, not yet; i needed to put that on a back-burner, and focus on other stuff for a bit Sep 10 15:11:33 probably will come back to it, also, will see how the game performs across a range of hand-sets Sep 10 15:12:03 see if it's a general issue, or just one a few hand-sets Sep 10 15:12:09 yea Sep 10 15:12:51 lot, did the posted code make any sense? Sep 10 15:12:59 lov sorry Sep 10 15:14:56 MrQwak: I was talking about this: http://developer.android.com/reference/android/app/Activity.html#runOnUiThread(java.lang.Runnable) Sep 10 15:15:54 MrQwak: But, I'd recommend that your class with the openURL method use this: http://developer.android.com/reference/android/os/Handler.html Sep 10 15:23:34 do i need create global references? Sep 10 15:25:24 huh? Sep 10 15:25:40 huh? Sep 10 15:25:46 http://stackoverflow.com/questions/7268450/calling-java-class-member-from-native-c-c-code Sep 10 15:25:54 You need to create global references to the class/object that you stash away. The references you're saving are local references, which can't be shared across threads and disappear when the runtime cleans up the JNI local reference stack. Sep 10 15:26:12 oh, yes Sep 10 15:26:27 yes, you do. Sep 10 15:26:30 So, I am saving a copy of the JNIenv, class, object etc Sep 10 15:26:34 no Sep 10 15:26:39 and then using it later in another thead Sep 10 15:26:41 see the answer given there Sep 10 15:26:46 guess i can't do that? Sep 10 15:26:49 you need to use newGlobalRef Sep 10 15:26:56 cool Sep 10 15:27:18 thanks again lov Sep 10 15:48:47 Hi All ! Sep 10 15:48:49 Android is quickly becoming a full-blown O.S, a desktop replacement, and it needs more low-level abilities to go way beyond one-trick-pony apps. Sep 10 15:49:04 I have proposed a kernel framework idea for Android. Sep 10 15:49:14 http://code.google.com/p/android/issues/detail?id=37260 Sep 10 15:49:19 Comments WELCOME !!! Sep 10 15:49:54 it has a linux kernel Sep 10 15:50:23 this is silly Sep 10 15:50:32 android is as much of a desktop os as my ice cream sandwhich Sep 10 15:50:35 mikedg, before you jump to such a great conclusion, please make me a favor and read this idea. Sep 10 15:53:02 you sound like someone who just ant to make malware Sep 10 15:53:07 with hooks to the kernel Sep 10 15:53:19 mikedg, Nope. I just want more Freedom. Sep 10 15:54:04 and I want Android to compete more closely with Windows and GNU/Linux in the features department. Sep 10 15:54:29 oh good. A freetard. Sep 10 15:54:35 technologov: source.android.com Sep 10 15:54:37 patches welcome. Sep 10 15:55:00 also, literally no one outside of neckbeards is interested in fucking with the kernel on their phone. Sep 10 15:55:19 had enough of his ranting in #android earlier Sep 10 15:55:20 <3 leeds Sep 10 15:57:08 and I'm disappointed in the lack of abuse which followed that Sep 10 15:57:54 for what it's worth, what I told him before was short answer: nobody gives a fuck - long answer: work with someone like cyanogenmod to put together a working system, test it in the real world - then try to talk to AOSP Sep 10 16:27:44 is there some way for an app to get "notified" when the phone vibrates? Sep 10 16:28:27 malik: you mean when any other app does it, when the phone rings, when a background service raises a notification which does it? Sep 10 16:29:15 i want to get notified if the phone vibrates, as a consequence of any app turning of the vibrator Sep 10 16:29:25 s/of/on/ Sep 10 16:31:38 i mean notified in the sense of "get an event" or "get a callback" or something Sep 10 16:32:56 I'm reasonably sure you can't do that - the only way *might* be to register yourself as an accessibility app Sep 10 16:33:10 yeah i read that... okay... Sep 10 16:33:11 I know they can do some magic, don't know if that's included Sep 10 16:33:37 okay, thank you Sep 10 16:36:40 so i'm trying to get a square block of colour in one of my layouts inside a listview.. i am using a with a fixed width and height set to match_parent, no luck - it just doesn't show up at all Sep 10 16:39:16 I have a problem, it seems I can't update a textview from within onStateChange Sep 10 16:42:27 lov: "outside of a neckbeards"? Sep 10 16:45:12 Is that supposed to mean outside the reach of one's beard? Sep 10 16:45:15 lasserix: only neckbeards would care about that feature Sep 10 16:45:34 I am using "neckbeard" as a pejorative term for people who think that end users give a shit about kernel modules Sep 10 16:45:44 or even know what the GPL is, let alone care about it Sep 10 16:46:17 I like that my TV came with the GPL reproduced in the manual... not that I have the slightest access to any of the software running on it Sep 10 16:46:45 ha Sep 10 16:47:02 Leeds: if it's GPL, you must be able to get the source, somehow. the manufacturer probably has a download link very well hidden Sep 10 16:47:04 but then I'm also badly in need of a shave Sep 10 16:47:30 lov: must be able to get the source, yes - but unless it's GPL3 with tivoisation stuff, there's no requirement to be able to get at the *binary* Sep 10 16:47:47 that's true, and similarly there's no requirement that you be able to flash the device with anything Sep 10 16:48:00 again, except in some cases with GPL3 Sep 10 16:49:18 TIL that you need to abandonaudiofocus to actually get rid of the remotecontrolclient lockscreen controls Sep 10 16:52:08 Oh, thanks for clearing that up I couldn't tell if that was an 19th century idiom Sep 10 16:54:47 no, it's 21st century idiots Sep 10 16:55:13 lov: I bet you'll find most of them date back to the 20th :P Sep 10 16:55:33 sure, sure, but they're still here Sep 10 16:55:40 they haven't died out with gentoo Sep 10 16:58:50 This line from the dev reference, "StaticLayout is a Layout for text that will not be edited after it is laid out. Use DynamicLayout for text that may change." Does this mean change of just the text string or includes the paint object used? Sep 10 17:17:54 Hey, I'm new to UI creation on android although I've done some in the past on windows. I'm making a UI for an RTS. What would the best way to display 2D geometry, then when the player zooms in enough have some psuedo 3D? For example zooming in on a planet you will see a rotatable view of the planet's surface... Sep 10 17:18:04 I don't think that is very clear, but oh well... Sep 10 17:19:13 opengl? Sep 10 17:19:18 * marcab is not a game designer Sep 10 17:19:39 openGL seems to provide much more than I need... plus I don't know it at all. Sep 10 17:20:03 what is the game using? Sep 10 17:20:11 I don't need to display 3D models, just some information on the surface of say... a dodecahedron Sep 10 17:20:24 romainguy I don't understand the question Sep 10 17:20:40 you're talking about making the UI for a game Sep 10 17:20:45 what does the game use for rendering? Sep 10 17:21:00 oh, well at the moment I've experimented with GLSurfaceView and canvas Sep 10 17:21:19 you should first decide what the game is going to use Sep 10 17:21:26 and then write the UI with the same technology Sep 10 17:21:49 Well I guess that's what I'm asking then. What should I use to render what I described? Sep 10 17:22:27 OpenGL would be best Sep 10 17:22:52 sidequestion: it's not recommended to overlay views on an opengl surface at all? Sep 10 17:22:55 CodeLion: you need to either find a game engine to use, or write your own. Sep 10 17:23:19 s/game/graphics/ Sep 10 17:23:41 lasserix: it's fine, but it can be difficult to sync animations between the two and you may get a performance hit depending on the device/version of Android Sep 10 17:24:06 hm... I'll have to look into game engines. thanks everyone Sep 10 17:24:34 Oh thanks, I asked this earlier but did you happen to know the answer to ... Sep 10 17:24:39 This line from the dev reference, "StaticLayout is a Layout for text that will not be edited after it is laid out. Use DynamicLayout for text that may change." Does this mean change of just the text string or includes the paint object used? Sep 10 17:25:25 lasserix: it says "text that may change", so text, not paint Sep 10 17:25:31 :) Sep 10 17:26:43 Oh yeah I am just making it overcomplicated. I was acutally trying to figure how android's textview's determine where to break lines, as to not split words when word wrapping Sep 10 17:27:38 Another question, but do you happen to know what reference to lookup to see the code in the source that does this? Sep 10 17:28:03 StaticLayout and DynamicLayout :) Sep 10 17:28:20 I was curious since there has to be better algorithms than brute force but who knows? Sep 10 17:28:25 Okay cool, thanks! Sep 10 17:32:37 anyone have an incredible 2 laying around by chance? Sep 10 17:33:42 Is there something about fonts that make it difficult to implement being able to import them into the os, since a phone has to be rooted to install them? Sep 10 17:35:37 Does addPreferencesFromResource work on gingerbread? am I missing an import? Sep 10 17:38:28 howdy Sep 10 17:39:20 hola Sep 10 17:39:36 Noxz look in the api documentation, it will say "sine api level" by the method name Sep 10 17:39:39 since* Sep 10 17:45:58 Anyone up for an app translation? we still need a bunch of languages! if you want to help us translating, please pm me ;) Sep 10 17:47:19 M3nti0n: what app? Sep 10 17:47:35 OTA Update Center lov :) Sep 10 17:47:49 I'll help if you need native english speakers. otherwise, good luck! Sep 10 17:48:38 M3nti0n: in case you havent used this before http://translate.google.com/toolkit/list?hl=en#translations/active Sep 10 17:49:09 f2prateek, seen apps using google translate already ? Sep 10 17:50:14 the grammar is totally nuked when you throw it trough there ;) Sep 10 17:50:57 lov, we got english covered, thanks anyway Sep 10 17:51:50 if on parcels a tree and for each node you keep a parents reference too: you parcel the children but should you do the parent too? since it's recursive... is the parceling smart enough not to do the same thing twice? Sep 10 17:52:26 dzan: Is your tree parcelable? Sep 10 17:52:34 dzan: if not, you need to implement parceling yourself. Sep 10 17:52:40 i'm implementing it myself Sep 10 17:52:54 but i'm wondering in writeParcel if I should Sep 10 17:53:01 + include the parent Sep 10 17:53:20 recursive, so it's already done except in the root where it's null anyway Sep 10 17:53:58 M3nti0n: ah probably, havent tried it myself yet Sep 10 17:54:21 f2prateek, i´ve tried it, but it totally nuked grammar in all languages :p Sep 10 17:54:32 we need real people to translate hahaha Sep 10 17:55:33 dzan: your references are going to be totally bogus, I hope you realize that. Yes, you should parcel the parent, but part of the parent's parceling should be parceling the children Sep 10 17:55:55 e.g. for a binary tree, each node should parcel the left and right nodes. Sep 10 17:56:03 yes that's what I do Sep 10 17:56:08 but I keep a ref to the parent too in each node Sep 10 17:56:11 what do i do with that one Sep 10 17:56:26 The parent unparcels each child, then injects itself into them Sep 10 17:56:52 I see :) thx! Sep 10 17:56:59 i was think too much prolly :D Sep 10 17:57:23 hello all Sep 10 17:58:05 wtf google, my play stats haven't been updated in 4 days Sep 10 17:59:16 can i make class extended BaseAdapter do auto update content? Sep 10 17:59:45 maybe by registerDataSetObserver and unregisterDataSetObserver? Sep 10 18:04:25 implemented ListAdapter class crashes app with FastScroll error Sep 10 18:05:08 why would "ArrayList sensors = (ArrayList) mSensorManager.getSensorList(Sensor.TYPE_ALL);" give me this error: "Caused by: java.lang.ClassCastException: java.util.Collections$UnmodifiableRandomAccessList cannot be cast to java.util.ArrayList" and how do I fix it? Sep 10 18:06:19 PrivateAlpha: getSensorList returns a List(inteface) not a concrete impl (ArrayList) Sep 10 18:06:39 try cast to (List) Sep 10 18:06:43 List sensore = mSensorManager.() Sep 10 18:07:04 g00s maybe you know my problem? Sep 10 18:07:58 Help! After suspend and back, ALooper_pollAll enters infinite loop of events with source NULL Sep 10 18:08:11 http://pastebin.com/AsRjX6X6 line:291 - implemented ListAdapter class crashes app with FastScroll error Sep 10 18:08:25 source code of Android Sep 10 18:08:31 not my Sep 10 18:08:49 hmm Sep 10 18:08:55 is there an ndk help channel or is this one too? Sep 10 18:11:21 Has Android anything similar to, say, DirectShow or GStreamer? I know GStreamer has an Android version, but I'm wondering if standardly it comes with some other framework. Sep 10 18:17:35 Good morning Sep 10 18:17:49 morning Sep 10 18:18:00 night Sep 10 18:26:30 Does Google provide any app store data via API? Sep 10 18:27:01 no Sep 10 18:28:18 reduz: this is pretty much it. Sep 10 18:28:35 ok so with a bit of research I found that the minsdk you'll need to support most phones is sdk 10... Sep 10 18:29:16 But now I'm trying to use ListView with a SimpleCursorAdapter but it requires sdk 11 Sep 10 18:29:26 what can I use instead of SimpleCursorAdapter? Sep 10 18:29:33 https://developer.android.com/reference/android/support/v4/widget/SimpleCursorAdapter.html Sep 10 18:29:44 use SimpleCursorAdapter instead Sep 10 18:30:30 Ah so just use the version in the support lib? Sep 10 18:30:38 yep Sep 10 18:30:45 Thanks Sep 10 18:30:48 SimpleCursorAdapter says 'since api 1' Sep 10 18:30:55 i must have missed something Sep 10 18:32:10 Use the one in the support lib anyway Sep 10 18:32:35 g00s maybe cause he's hooking it to a listview? Sep 10 18:32:49 anyone having issues getting samsung galaxy nexus hspa connected to windows 7? Sep 10 18:34:07 Hi, I wonder how the .obb expansion file is generated Sep 10 18:34:29 I still get the requires api level 11 error, even though I switched to the support lib :/ Sep 10 18:34:38 API11 just added some new stuff to cursoradapter Sep 10 18:34:40 on android doc it says I could test reading this expansion file just by placing it onto my device Sep 10 18:34:45 Which is present in the support lib Sep 10 18:35:08 am I supposed to "hard-code" .obb onto my zip file's name? Sep 10 18:36:01 PrivateAlpha: on what? Sep 10 18:36:21 JakeWharton: eclipse Sep 10 18:36:52 What methods.. Sep 10 18:37:01 Try and rebuild Sep 10 18:37:26 Support lib cursoradapter wont give you api target warnings Sep 10 18:38:03 Oh, on "SimpleCursorAdapter mAdapter = new SimpleCursorAdapter(this, android.R.layout.simple_list_item_1, null, fromColumns, null, 0);" Sep 10 18:42:17 do I have to upload the expansion file first before testing file read? Sep 10 18:46:54 It is possible to use one implementation of LoaderManager in a fragment to handle multiple listviews right? Sep 10 18:48:16 lasserix: that should be ok Sep 10 18:48:39 Just use different ids Hmm, my second listview is coming up blank Sep 10 18:53:33 PrivateAlpha are you using the adapter from the support library or the native adapter? Sep 10 18:54:48 including the library is not enough; you have to use import the corresponding class from the library and use that, and ignore the native component all together Sep 10 18:55:14 have to import* (minus use) Sep 10 18:59:45 When using a LoaderManager should a loader be destroyed on some activity/fragment lifecycle event? None of the examples I've seen worry about dealing with them. Sep 10 19:13:35 saiko believe the manager handles the lifecycle of the loaders Sep 10 19:17:52 lasserix: ah, confirmed in the loader api guide page Sep 10 19:32:13 http://pastebin.com/a5ggsFfh Could someone tell me why my ListView doesnt load? Sep 10 19:35:33 PrivateAlpha you have to pass both a from and a to Sep 10 19:35:51 lasserix: What if I dont have a to? Sep 10 19:35:57 Right Sep 10 19:36:02 String[] fromColumns = new String[names.size()+1]; Sep 10 19:36:15 You need an int or int[] to Sep 10 19:36:41 you can figure out which from inspecting the construct for what type the null is after fromColumns, null, 0); Sep 10 19:36:54 anyways it's the id to set the text from the FROMcolumn to in the listview Sep 10 19:37:16 Oh... Sep 10 19:37:21 since you are using standard simplelistitem I believe the id is a constant uhh android.r.id.text1 or something Sep 10 19:37:33 sorry that made no sense right? i'm tired one sec Sep 10 19:38:01 int[] to = new int[] { android.R.id.text1 }; Sep 10 19:38:29 SimpleCursorAdapter mAdapter = new SimpleCursorAdapter(this, android.R.layout.simple_list_item_1, null, fromColumns, null, 0); change this to Sep 10 19:38:42 SimpleCursorAdapter mAdapter = new SimpleCursorAdapter(this, android.R.layout.simple_list_item_1, null, fromColumns, to, 0); Sep 10 19:39:19 you have to specify what views (usually textviews, the ones in the layout you pass into the constructor) to map the string values from the columns string array Sep 10 19:39:44 anyways if you add int[] to = new int[] { android.R.id.text1 }; and change the constructor as shown above it should work Sep 10 19:39:55 Guys, when I try to load a shared native library in my Java code, in logcat I see no JNI_onload found, skipping init. The libraries I try to use are OpenSSL libraries I compiled Sep 10 19:40:01 the 1.0.1c ones to be exact. Sep 10 19:40:28 To answer your question your listview is loading but the textview in simple_list_item_1 is never having its text set since you passed a null reference in the constructor Sep 10 19:41:10 if I am still unclear and I could very well be with too little sleep too much sunlight and not enough coffee check out this tutorial http://thinkandroid.wordpress.com/2010/01/09/simplecursoradapters-and-listviews/ Sep 10 19:41:55 window 6 Sep 10 19:42:09 whups, stupid irssi Sep 10 19:43:07 protip /w 6 Sep 10 19:43:25 vavirta: thanks :) Sep 10 19:43:48 did you know alt + 1 Sep 10 19:43:50 alt + 2 etc Sep 10 19:44:00 lasserix: Thanks for the help so far, this is the updated code > http://pastebin.com/QBgdj65S but the list still doesnt load :/ Sep 10 19:45:10 Uhh I am really not in a functioning mode, anyways. PrivateAlpha, where is your cursor? Sep 10 19:45:16 vavirta: yeah, but I had gotten into the habit of using commands as I have way over 10 Sep 10 19:45:27 You are using a cursor adapter but you have not initialized any cursor for the adapter to read from. Sep 10 19:45:31 unless there's a shortcut for switching windows even higher Sep 10 19:45:38 CodeLion: then you can use q w e r t Sep 10 19:45:51 nice Sep 10 19:46:00 I think o is the last one Sep 10 19:46:07 and then you have to use /w 20 etc Sep 10 19:46:13 i can use P Sep 10 19:46:15 p Sep 10 19:46:17 lasserix: I have no clue what that is :) Sep 10 19:46:19 Cursors are used with databases and content providers. Since you are using a simpler datastructure to hold your info all you need is an arryadapter Sep 10 19:46:24 oh no Sep 10 19:46:25 p is up Sep 10 19:46:28 yeah, ofc ctrl + p and ctrl + n can be used also Sep 10 19:47:30 lasserix: could you help me implement that? Sep 10 19:47:36 umm Sep 10 19:48:12 Sure Sep 10 19:48:26 so instead of simplecursoradapter use ArrayAdapter Sep 10 19:49:23 so i think its something like ArrayAdapter mListViewAdapter = new ArrayAdapter {this, android.R.layout.simple_list_item_1, fromColumns} Sep 10 19:49:41 and then just view.setAdapter(mListViewAdapter) Sep 10 19:50:13 you might rename fromColumns to namesList or whatever since you aren't really using columns Sep 10 19:50:27 (columns refers to the columns in a relational database table) Sep 10 19:51:19 lasserix: thanks mate, works perfectly, and I learnt something I'd need in future :) Sep 10 19:51:55 No worries it's fairly simple to customize your listview by extending ArrayAdapter if you want to make it fancy Sep 10 19:52:00 Good luck! Sep 10 19:54:40 Hrmmm. Trying to regex a downloaded HTML page for tags and save some of the tag information. However, my tag doesn't seem to be catching something I know exists. I think I'm just a little brain dead right now, but I figure one of you could look at it? "]*>" looking for "" Sep 10 19:55:22 lasserix: You want to apk so that you can check what hardware your phone has? :) Sep 10 19:55:30 want the* Sep 10 19:55:31 when i use .* tags at the start and end of my regex, my phone practically locks up... Sep 10 19:56:44 Komak57: do you know what O(n^2) means? Sep 10 19:56:50 n, in this case, is the number of characters in your page. Sep 10 19:57:25 in regex? Sep 10 19:57:43 Don't think i've ever used ^ outside of a [] (in which case it measn not the following Sep 10 19:57:45 PrivateAlpha: it's alright i have something similar in an old project but thanks! Sep 10 19:58:39 outside of brackets, ^ emplies the start of a string. Sep 10 19:59:20 Komak57: how large is your string? Check. Sep 10 19:59:29 Is your string the entire webpage, or one line? Sep 10 19:59:35 Are you sure? double check this. Sep 10 20:01:14 String data.length() = 15971 Sep 10 20:01:34 hehe Sep 10 20:02:01 the string contains the entire page from what I understand (including newline chars) Sep 10 20:03:37 Komak57: would something like tagsoup be better ? Sep 10 20:03:38 i can get data.contains("IN (Dat)"), but the regex is incomplete. Sep 10 20:04:01 ehh, unlikely. I just need to parse the 1-4 buttons that are in the page. Sep 10 20:04:40 They change tags based on which ones have been pressed, and this would save me some time soft-coding what's been pushed (and cause some serious errors) Sep 10 20:05:33 http://gskinner.com/RegExr/ confirms the regex should work, i'm just missing something. Sep 10 20:13:55 if contains() works, but regex isn't, it suggests my regex is poorly structured =.= Sep 10 20:23:21 got it XD Sep 10 20:30:27 my class="" tag was causing the error. swapped it out for [^>]* and it captures the button quite nicely. but now I have to use some guesswork to determine why I'm getting the reply "You are not assigned to this terminal." >_> Sep 10 20:31:58 would running this command under an AlertDialog list onClick() function kill my cookie access if I made HTTPOjb (my custom web surfer) final? Sep 10 20:34:40 err, nvm. The error is still in my regex... Sep 10 20:38:30 so...anyone know why openssl 1.0.1c for android is much slower than earlier versions? Sep 10 20:49:47 anyone here good with edify scripts? Sep 10 20:50:48 * Komak57 flails his arms in the air Sep 10 20:50:55 wooo, i got it to clock in and out :DDD Sep 10 20:51:03 with a highly dynamic system :DDD Sep 10 20:51:12 i need to setup a script that can check for presence of emmc or sdcard. and then copy contents of /system/media/audio to .../media/audio. delete /system/media/audio. and unpack from "media" (in the flashable) to .../media/audio Sep 10 20:51:48 If I have an ImageView and I want to draw some things on top of an image that's there, what do you recommend? I was looking at subclassing ImageView and overriding onDraw Sep 10 21:11:12 opinion poll: Subclass SurfaceView, get the canvas, draw a bitmap on it, and then draw other stuff on it... Sep 10 21:11:27 or subclass ImageView and override onDraw and do something similar? Sep 10 21:12:19 actually, looks like ImageView lacks onDraw so that rather makes the decision for me Sep 10 21:16:20 ImageView does not lack onDraw Sep 10 21:16:56 oh, didn't see it on the doc pages... Sep 10 21:21:03 Is there a way to open the android documentation inside of eclipse directly? I know clicking a link in a tooltip that sometimes shows over your code will go to that item from a local / html copy the sdk manager downloads Sep 10 21:21:13 but I don't know of a way to just directly open it Sep 10 21:21:22 i just use the ad plugin for chrome Sep 10 21:21:24 it's lovely Sep 10 21:22:14 ad plugin? Sep 10 21:22:58 Well. idk, I just like to open the pages right there in eclipse tbh. Sep 10 21:23:07 I actually find the in-editor copy useful Sep 10 21:32:02 I see how I can draw things inside onDraw(...), but how can I trigger this myself? Sep 10 21:33:00 ahh, looks like View.invalidate(Rect) Sep 10 21:38:05 does anyone have any advice/idea for what my script shouold look like? Sep 10 21:40:22 mucus: this channel is for android app dev, try #android or #android-root Sep 10 21:40:40 yeah i was curious... okay thanks Sep 10 21:45:43 heyup Sep 10 21:45:55 I've created a Progressdialog at the start of a function that seems to take a little bit of time (mere seconds) to process. I figured the best way to go about this was a new Thread. So I surrounded the entire Login process in a thread and ran it. Popups and Dialogs crash the app >_> Next up, I tried localizing it a little more on just the HTTPClient activities. This immediately proved Sep 10 21:45:55 troublesome as I would have to write some more code to tell it when it's done, and lock up my script in the mean time. So another no-go. The problem with my Dialog, is that it doesn't even show. The code gets too busy and the screen locks up for a bit. Is there any way to put a lapse or something in here to ensure my dialog appears before the next activities start? Sep 10 21:47:29 If so, what term should I be googling >_> Sep 10 21:48:27 ahh, right. Timer... that'll do Sep 10 21:48:54 0771 writeable? whats 0770 ? Sep 10 21:50:44 so, i been stuck in 2.2 world for a long time. i am working on an app that is going to essentially be a series of lists. touching an item in one list will bring up another list, and so on. would it be better to do each list view within a fragment instead of an activity? and to do a "smooth" transition like a slide or fade, will i need to use a compatibility library to support 2.x devices? Sep 10 21:52:11 speakingcode, I got yelled at the last time I suggested I was generating a list within my activity >_> partially due to screen resolution compatibility. Sep 10 21:52:44 so use fragments? Sep 10 21:54:12 I'm still using it in the Activity anyways, since I wasn't sure on how else to do it. So if fragments lets you create things based on DPI, then by all means. Sep 10 21:55:42 hmm, for this particular app the screen res won't be much of an issue as the list item's views will be very simple, and i think i can address that matter with proper layouts Sep 10 21:57:35 All a matter of your desired community I suppose. My app won't really be downloaded by anyone who isn't in our company, so compatibility is a less priority. And I'm sure modifying pxl values based on screen resolutions won't be terribly difficult. Sep 10 21:58:48 Now if i could just find a way to pause my activity until my dialog pops up.. ~checks the dialog functions~ Sep 10 22:01:30 looks like theres an isShowing(); function, but I still have to pause until it's had a chance to completely pop up XD Sep 10 22:01:47 it looks so dirty how it is atm Sep 10 22:02:11 hello Sep 10 22:02:26 can I measure noise level from the mic in android? Sep 10 22:02:52 I know that I can capture audio, but is it possible to measure it? Like in dB? Sep 10 22:03:26 i don't know if there are any classes that would make it easy but i know how you might could do it Sep 10 22:04:21 capture audio and get the PCM values of it, avg out your peaks over a period of time Sep 10 22:04:24 speakingcode: any ideas to start with? Sep 10 22:05:31 PCM? Sep 10 22:05:51 pule code modulation, basically the raw values of the audio signal after its digitized Sep 10 22:06:03 pulse* Sep 10 22:14:56 How do I insert unicode character into string for xml? Sep 10 22:15:07 spacepluk: could you explain with more details please? Sep 10 22:15:48 it sounds like he wants to put a chinese character into his XML Sep 10 22:18:46 unicode != chinese. Sep 10 22:19:51 HacDan what do you mean? Sep 10 22:20:17 No I was actually just thinking of importing some of my drawables as a font Sep 10 22:20:28 lasserix: Komak57 made the assumption that unicode = Chinese characters. I was just pointing out that unicode is used for more than Chinese characters Sep 10 22:20:38 oh okay Sep 10 22:20:44 So it is possible? Sep 10 22:21:03 not sure to be honest, I can do some digging though Sep 10 22:21:55 lasserix: looks like just \u Sep 10 22:22:06 inside quotes in your xml and it should be converted Sep 10 22:22:09 assuming I understand your question Sep 10 22:22:26 http://stackoverflow.com/questions/3053062/how-can-i-write-character-in-android-strings-xml << where I got the clue Sep 10 22:22:40 hmm Not working Sep 10 22:22:45 android:text="# results \u0026" Sep 10 22:24:27 http://stackoverflow.com/questions/6292088/unicode-character-0x25ba-not-displayed-on-android << maybe? guessing now though Sep 10 22:26:08 \u003c Item Unknown \u003e Sep 10 22:26:14 seems to be the trick Sep 10 22:27:30 this sounds like a font issue? Sep 10 22:29:29 If so, I would suggest creating your own and using TextView.setTypeface(Typeface.createFromFile("font path")); ? Sep 10 22:29:38 Yeah that's the idea Sep 10 22:29:57 If i make a small font file I can just use the autoscaling features and not worry about DPI's Sep 10 22:34:52 http://www.babelstone.co.uk/Unicode/unicode.html Sep 10 23:02:07 how am I supposed to test if my restoreTransactions() is working properly if I can't test from my dev phone without first uploading my app to google play? Sep 10 23:05:45 upload, dont publish Sep 10 23:09:48 canadiancow, so if I upload my application, but don't publish the newest apk which has in-app billing, and I edit my play dev profile for the license test response "licensed", then I should get a licensed response? Sep 10 23:29:26 hello :) Sep 10 23:29:44 I have 4.0.4 installed on my Tab 10.1. I'm trying to use SYSTEM_UI_FLAG_HIDE_NAVIGATION but it doesn't seem to work. _LOW_PROFILE works (little dots). Is this expected? Sep 10 23:30:04 I also tried STATUS_BAR_HIDDEN - but that mimics _LOW_PROFILE Sep 10 23:30:40 Yep, can't hide it on devices above a certain size Sep 10 23:30:49 oh! Sep 10 23:31:02 what size, out of curiosity? Sep 10 23:31:11 Don't know Sep 10 23:31:17 k Sep 10 23:31:25 thanks all the same :) Sep 10 23:34:32 Hi, peoples! Sep 10 23:36:20 Please, help somebody with getting temperature, cdma/gsm/gps network state right from console, i'm connect via adb shell on my ZTE 916 android device, and looking at procfs and sysfs for any hardware info abou network state, and phone state. v 2.3 (kernel: Linux localhost 2.6.32.9-perf #9 PREEMPT Wed Mar 16 23:30:42 CST 2011 armv6l GNU/Linux) Sep 10 23:36:27 Cheers Sep 10 23:41:35 Some Body? Sep 10 23:43:23 Does anyone know _why_ hover seems to show a highlighted list row state but pressed and selected doesn't? Sep 10 23:51:51 PEOPLES!!!?? Sep 10 23:52:09 is there one developer? Sep 10 23:52:16 Calm down Sep 10 23:53:18 BOT SIMON? Sep 10 23:54:24 debiantoruser: amongst other things... this channel is for app development, not doing random stuff in the shell Sep 10 23:54:52 where can i ask my question about staff in the shell? Sep 10 23:58:31 #android-root, probably Sep 11 00:06:00 debiantoruser http://lmgtfy.com/?q=android+get+device+state+with+adb Sep 11 00:06:44 http://lmgtfy.com/?q=android+get+device+temp+with+adb Sep 11 00:11:27 speakingcode i'm already googled for a day.. Sep 11 00:20:36 hiyas Sep 11 00:20:43 howdy Sep 11 00:21:10 haven't been on here much lately. trying to frequent more often. Sep 11 00:21:20 whatcha workin on? Sep 11 00:21:21 SharedPreferenes are not working for string data type preference on android 2.3 but works on 4.1.1. I am using custom filename with MODE_PRIVATE. SharedPreferenes works fine for other data types. Sep 11 00:22:28 any known compatibility issues with android <3.0? Sep 11 00:23:27 debiantoruser: http://en.androidwiki.com/wiki/ADB_Shell_Command_Reference may be useful Sep 11 00:23:31 sacdroid, I find that quite odd Sep 11 00:24:17 considering SharedPreferences API hasn't changed at all since API Level 1 Sep 11 00:24:41 ok... Sep 11 00:25:14 pastebin and maybe someone will spot something Sep 11 00:25:36 RingtonePreference and one other custom string preference is not working on android 2.3. Sep 11 00:25:51 mrenouf: ok Sep 11 00:26:07 MODE_MULTI_PROCESS default changed post 2.3 Sep 11 00:26:38 though multiprocess apps are rare Sep 11 00:27:31 mine is MODE_PRIVATE. Sep 11 00:28:10 it's a bit-flag though. you can or together multiple constants Sep 11 00:28:16 "OR" together Sep 11 00:29:20 hmm Sep 11 00:29:32 just for kicks, try getSharedPreferences("...", (MODE_PRIVATE | MODE_MULTI_PROCESS)); Sep 11 00:29:34 mrenouf: http://pastebin.com/YDrh3yhw Sep 11 00:29:41 ok Sep 11 00:31:13 oh, you're using PreferenceManager. that's fine too Sep 11 00:32:41 ping JakeWharton Sep 11 00:32:50 wat Sep 11 00:33:39 re: that testing stuff we were talking about last week - dunno if you've thought about it any further, but check out https://github.com/tophyr/CSFTests, see if that's anything along the lines of what you had in mind Sep 11 00:33:58 right now it's basically just a wrapper around Robotium that exposes a more-sane (to me, at least) api Sep 11 00:34:30 yeah looks nice Sep 11 00:34:42 i'll have to take a real look tonight after work Sep 11 00:35:38 it's pretty half-baked at the moment, mostly just what i've found i've needed while learning the basics of functional testing on my app, but hopefully will end up being pretty neat Sep 11 00:36:09 anyway lmk what you think and/or what you'd had in mind! Sep 11 00:42:14 mrenouf: looks like MODE_PRIVATE|MODE_MULTI_PROCESS) solved issue. Sep 11 00:43:24 sacdroid, might just be a side-effect, but it's the only thing that stood out as changed behavior >API 10 Sep 11 00:44:00 Hey guys, I'm using httpClient and trying to get an https connection to work. I get "javax.net.ssl.SSLPeerUnverifiedException: No peer certificate" but if I hit the endpoint in a browser it works fine, no bad cert warnings there. The httpClient connection code should be fine because all we changed was host and the cert. What might I be doing wrong? Sep 11 00:45:32 Does Intent from broswser app using "android:scheme" to your app starts new process? Sep 11 00:46:32 I was just testing it in the standalone browser app, not starting it from my app Sep 11 01:48:45 So I did my own search and then I asked my coworker and neither of us were able to find tutorials on using OpenGL ES 2.0 with Android NDK/C++. Sep 11 01:48:49 Does anyone know of any? Sep 11 01:49:35 Everything we found is using Java. Sep 11 01:52:56 BadMrsFrosty: cocos2d-x does it Sep 11 01:54:00 Since there is only one small part that I need to see, something more condensed would be great. Just the very first few steps to creating a context etc. Sep 11 01:54:47 Basically I am wondering: #1: Creating the context and attaching it to the window—does it create a default renderbuffer and framebuffer? Sep 11 01:55:03 #2: Can I render to the window using my own framebuffer and renderbuffers instead? Sep 11 01:55:57 On iOS you have to render to a renderbuffer you manually created and that is attached to a CoreAnimation surface. Sep 11 01:56:10 I need to know about these kinds of limitations on Android, if any. Sep 11 02:02:42 BadMrsFrosty: #1 yes Sep 11 02:02:55 BadMrsFrosty: #2 kind of Sep 11 02:03:00 (see #1) Sep 11 02:03:09 you use EGL to describe the GL configuration you want Sep 11 02:03:30 so you specify if you want a depth buffer, stencil buffer, etc. Sep 11 02:03:54 So binding framebuffer 0 binds the default one. Same with renderbuffer 0. Sep 11 02:03:58 Like in standard OpenGL,. Sep 11 02:04:01 yep Sep 11 02:05:02 Although our system is set up firstly for iOS, perhaps it is better to not make own own framebuffer and renderbuffers to conserve resources/memory. Sep 11 02:05:29 you would waste a lot of fillrate if you crated your own framebuffer Sep 11 02:05:40 (and memory too indeed) Sep 11 02:05:57 besides, it's only a few lines of initialization code Sep 11 02:07:01 Also I assume there is no problem changing the attachments on the default framebuffer. Sep 11 02:07:22 I'm not sure you can in OpenGL ES 2.0 Sep 11 02:07:30 why do you need to change the attachments? Sep 11 02:07:39 Actually probably not unless there is a way to get the default renderbuffer. Sep 11 02:07:45 Otherwise we can’t set it back. Sep 11 02:08:09 Swapping attachments is faster than changing framebuffers (though this may depend on the implementation). Sep 11 02:08:23 You shouldn't make this assumption with Android Sep 11 02:08:35 there are enough GPU architectures and drivers out there that it might not be true Sep 11 02:09:33 pick a target and go for that Sep 11 02:11:01 All our hwrd|work, gone! Sep 11 02:16:42 morning all Sep 11 02:17:35 gas any one tried onCreateOptionsMenu froma fragment recently? Sep 11 02:17:45 i can't get it to work Sep 11 02:18:03 *has Sep 11 02:18:26 What is a fragment? Since we aren’t talking OpeN GL ES shaders… Sep 11 02:18:40 "I can't get it to work" can mean many things Sep 11 02:20:00 i'm trying to inflate a menu inside a support lib fragment, i've setHasOptionsMenu to true, onCreateOptionsMenu is never called Sep 11 02:26:27 And you're adding it and everything? Sep 11 02:27:11 yeah, it's in the layout's xml Sep 11 02:27:21 i can see onCreate and onCreateView being yun Sep 11 02:27:27 *run Sep 11 02:31:23 if only JakeWharton were here Sep 11 02:31:23 alas Sep 11 02:35:48 I don't know, haven't had any issues Sep 11 02:51:04 COOTERS **** ENDING LOGGING AT Tue Sep 11 02:59:58 2012