**** BEGIN LOGGING AT Mon Aug 06 02:59:58 2012 Aug 06 03:03:46 Anyone got the 6.16.211 fastboot files for the Droid RAZR? I need just the radio.img file. I'm tethering (no internet at home) and download speeds are treacherous for the whole package. Aug 06 03:04:38 SU1C1D3: wrong channel, dearie - please read the channel topic Aug 06 03:06:48 anyone else having problems saving an image from a camera intent in ICS? Aug 06 03:07:41 Wouldn't Dev's (application or otherwise) tend to have unbrick/recovery files as well? I assumed this would be a resource for assistance and progress. I'm working on unlocking the domestic GSM for the Razr and D4. Aug 06 03:08:12 SU1C1D3: this is app dev Aug 06 03:08:46 #android-root Aug 06 03:09:13 or to summarise: "please read the channel topic" - it's there so we don't have to go through this multiple times per day... Aug 06 03:11:23 tomorrow I am getting Sony Xperia S Aug 06 03:11:36 anyone wanna pitch in a opinion? Aug 06 03:11:57 I think Admiral Ackbar could.. but thats a question for #android Aug 06 03:12:50 okie :) Aug 06 03:14:50 I'm sorry, I thought this was a "Dev" channel. Didn't realize android application developements were limited to angry birds and glowing status bars. Aug 06 03:15:07 ooh, burn Aug 06 03:15:16 that hurt my feelings Aug 06 03:15:37 Don't forget fart apps Aug 06 03:16:13 Ologn: ++ Aug 06 03:16:25 and the Charlie Sheen soundboard Aug 06 03:16:33 winning! Aug 06 03:20:47 Error "...The content of the adapter has changed but ListView did not receive a notification..." if i change the list inside onPostExecute it still happens "sometimes only i cant recreate it. anyone have any idea on how it can happen if inside onPostExecute / onPreExecute ? i do not change it anywhere else .. Aug 06 03:21:34 from google search the issue should be fixed by using onPostExecute so i do not understand Aug 06 03:21:51 Is there anyway to use something from javax.*.* ? I need to use ImageIO Aug 06 03:22:07 any way * Aug 06 03:22:26 bluezone: some of javax is there - if it's not, it's not... find another way Aug 06 03:22:50 Leeds: other methods are too verbose :( Aug 06 03:23:00 welcome to Java - it's a verbose langauge Aug 06 03:23:21 less so with javax :D Aug 06 03:27:41 when i try to add an item to a adapter, the application freezes Aug 06 04:05:23 (All programmatically) If I instantiate a view and set its id and proceed to define another view's params using this id, will a call to setcontentview on its parent layout make the params useless? Aug 06 04:05:32 is there any method callback executed on activities when the user puts the phone to sleep with the activity in the foreground ? Aug 06 04:05:39 as in, when you press the sleep button and the screen goes black ? Aug 06 04:07:39 DiegoMax¦MBP: is there a reason you need to know this specifically, or can you do whatever you were going to do in onPause instead? Aug 06 04:09:09 because its best practice to just override onPause and stay agnostic to the phone's state otherwise Aug 06 04:22:32 http://joelrunyon.com/two3/an-unexpected-ass-kicking Aug 06 04:37:07 g00s good read ty Aug 06 04:37:53 Is it possible to use android:screenOrientation="reverseLandscape" (which is added in API lvl 9) in a previous API lvl (7 - 2.1 - in my case)? Aug 06 04:49:06 if it's been added in API9 and you're on API7, no Aug 06 04:50:43 Unless there's a support v4 library for it, but haven't looked Aug 06 04:54:41 Anybody have an issue with the previous screen showing through views after surfaceDestroyed is called? Aug 06 04:56:41 It changes immediately before the first time any surface is created, but anytime I change contentview to the layout with *any* surfaceview object, the old screen bleeds through views until the surface is created again Aug 06 05:04:34 romainguy: is this an issue you've seen or am I doing something wrong? Aug 06 05:14:59 http://www.nasa.gov/multimedia/nasatv/ustream.html?curiosity Aug 06 05:15:22 <[deXter]> Nice :) Aug 06 05:16:01 <[deXter]> g00s, I just tuned in.. so did the rover land yet? Aug 06 05:16:17 no, separation in about 1 min i think Aug 06 05:16:37 <[deXter]> Cool, I thought I might have missed it Aug 06 05:19:43 heh, that controller's name was Fuk Li Aug 06 05:19:54 <[deXter]> Haha Aug 06 05:20:04 <[deXter]> That's like straight out of Austin Powers Aug 06 05:25:58 <[deXter]> 6 minutes to touchdown! Aug 06 05:28:09 hey guys i am registering as an android developer . can the developer name be changed after I register ? what about the website URL ? Aug 06 05:30:38 themirror: are you here ? Aug 06 05:30:56 Yep Aug 06 05:31:37 devslash haha not sure I'm still not at that point yet Aug 06 05:31:38 500 m altitude Aug 06 05:31:50 who here is a registered developer ? Aug 06 05:32:40 fucking awesome Aug 06 05:32:49 <[deXter]> Touchdown! :D Aug 06 05:32:56 \o/ Aug 06 05:33:20 ok so whats so special about the rover landing Aug 06 05:38:42 who here is a registered android developer ? Aug 06 05:39:47 devslash: I'd guess essentially everyone Aug 06 05:42:56 leeds: I am registering as an android developer . can the developer name be changed after I register ? what about the website URL ? Aug 06 05:43:34 yup, you can Aug 06 05:43:42 both ? Aug 06 05:44:27 seems like it, yes Aug 06 05:46:29 it's not something I've ever looked at, but there's a profile page where you can edit your name, email, homepage and phone number Aug 06 05:48:20 ahh ok Aug 06 05:48:27 I'm going to publish my app Aug 06 05:49:30 does it do more than add two numbers? Aug 06 05:49:52 <_genuser_> lol. Aug 06 05:53:43 I've been looking for a good number adder though... Aug 06 05:56:31 yes Aug 06 06:11:39 hello everyone. I've found this list: http://support.google.com/googleplay/android-developer/bin/answer.py?hl=en&answer=150324&topic=15867&ctx=topic with all the countries that are supported for creating an android developer account Aug 06 06:11:45 BUT i've also noticed that on the second page of this link: https://play.google.com/apps/publish/signup on the terms and conditions... the countries differ from the first list Aug 06 06:11:51 for instance... Hungary appears in the second but not in the first, also Austria appears in the first and not in the second Aug 06 06:11:53 :) Aug 06 06:12:50 bogo10: but yes, be aware of timezones - most USians and Europeans are asleep now... Aug 06 06:13:49 yeah, i know. I'll ask again later tonight :) Aug 06 06:33:34 Does anyone have a workaround for this? My post: http://stackoverflow.com/questions/11823483/previous-screen-bleeds-through-views-before-surfacecreated-called Aug 06 06:33:39 europeans just got up to go to work :) Aug 06 06:34:19 yeah, their (my) vacation has ended Aug 06 06:34:38 yeah :( Aug 06 06:34:44 first day of work, here I come :/ Aug 06 06:35:52 romainguy Aug 06 06:41:58 Please upvote my SO post Aug 06 06:42:36 Its the real deal and whether I'll be able to eat is on the line :O Aug 06 06:48:46 what alternatives there are to send message from server to specific phone? Only way is to have phone asks repeatedly from the server "are there any news to me?". Aug 06 06:53:01 how do i place one widget on top of another in layout? Aug 06 06:56:18 I'm trying to upload a screenshot in png format for an app I'm uploading to the play store and I'm getting an error This application is out of date. Please click the refresh button on your browser. Aug 06 06:57:49 i tried converting the png to jpg and i still get the same error Aug 06 06:58:52 have you uploaded your apk yet? Aug 06 06:59:16 yea Aug 06 06:59:25 i uploaded the api in the previous step Aug 06 06:59:52 agh i found the problem Aug 06 07:06:07 yet another q about feature compatibility: is there a way to apply setting conditionally (based on api version)? Example: I have minSdk=7, so I want android:screenOrientation="landscape" for API7, and android:screenOrientation="reverseLandscape" for API 9+ (as it's added from 9) Aug 06 07:06:59 And I don't want to create 2 versions of my app just for this purpose Aug 06 07:08:04 assuming that there's no android.support package for this (I've just done a quick search) Aug 06 07:09:26 Hi all! Aug 06 07:10:13 have a question.. I have server that broadcasts data to the local network... I want my Android app to listen for that data and parse it.. But I have no idea how to do it.. any pointers? Aug 06 07:10:19 have a server* Aug 06 07:11:37 hoangtran: setRequestedOrientation() ? Aug 06 07:12:02 hoangtran: not much experience with what u need, but at worst youd have to create two xmls, one for each api version (i think -v9 suffix to folder) Aug 06 07:12:25 oh, that's true, you can use values.xml Aug 06 07:12:42 Theres a way to have runtime variants in xml but I forgot :( Aug 06 07:12:46 leslie: I may try that after there's no way to do it in xml Aug 06 07:12:53 no ideas? Aug 06 07:13:35 themirror: your approach seems promising but I don't know if it's possible, looking on documentation now, thank you. Aug 06 07:14:23 Yeah sorry someone mentioned it the other day but I can't remember Aug 06 07:14:36 I think % operator Aug 06 07:14:56 ? operator I think Aug 06 07:20:19 If anyone has stackoverflow account, PLEASE upvote my post. I need a workaround for this bug badly. Thanks. http://stackoverflow.com/questions/11823483/previous-screen-bleeds-through-views-before-surfacecreated-called Aug 06 07:24:55 themirror, leslie : what is %, ? operators? is it related to my question? Aug 06 07:25:24 I dunno what % does, but ? is related to the xml format. lemme see if I can find a guide Aug 06 07:25:47 Yeah word on the street is that you can set xml values at runtime with it Aug 06 07:26:06 But I've never tried it or know anything about it Aug 06 07:26:19 Leeds: are you here ? Aug 06 07:26:29 maybe... Aug 06 07:27:30 under supported devices its saying "This application is available to over 0 devices." Aug 06 07:27:42 how do i fix that Aug 06 07:27:48 hoangtran: do you use Eclipse at all? Aug 06 07:29:01 you fiddle with your manifest and other settings Aug 06 07:29:21 "over 0" is a sort of double negative :) Aug 06 07:29:49 does that mean it's available to at least 1 device? Aug 06 07:30:03 http://pastebin.com/c87H5nFH Aug 06 07:30:07 theres my manifest Aug 06 07:30:38 that's strange Aug 06 07:31:04 leslie: mostly no, I use IDEA Aug 06 07:31:35 ok. I have a basic idea of how to do it, but lemme check if I'm right, and then I'll try to explain it Aug 06 07:31:37 woo, finally got convertView crap working in my getView() call... Aug 06 07:34:27 when the app i create makes a million dollars you guys can claim you talked to me on irc Aug 06 07:34:32 guess there's no way to do what I want to do then? Aug 06 07:36:15 tneva82_: GCM? Aug 06 07:36:24 hoangtran: do you have a file called res/strings.xml? Aug 06 07:36:34 er, res/values/strings.xml Aug 06 07:37:37 Leeds: is that something i need to be worried about ? Aug 06 07:38:33 have you done something silly like not select any countries? Aug 06 07:39:12 no Aug 06 07:39:17 i selected em all Aug 06 07:39:24 leslie: of course I have Aug 06 07:39:43 tneva82_: ? Aug 06 07:40:11 ok, basically, add a string there called my_orientation or whatever with the value "landscape", and then in the manifest, reference it with android:screenOrientation="@string/my_orientation" Aug 06 07:40:34 leslie: basically, I think I need values-v9/something.xml, then put the reverseLandscape in it, and reference it in AndroidManifest Aug 06 07:40:35 then create a file called res/values-v9/strings.xml and add a string with the same name, but with the other value you want. Aug 06 07:40:41 yes Aug 06 07:41:07 yes, the problem is (not tested yet) the value for android:screenOrientation may not accept string value Aug 06 07:41:22 try it and see. it seems to work on my end Aug 06 07:41:30 we already saw the use of label="@strings/app_name" example Aug 06 07:41:43 ok, I'll try now Aug 06 07:42:08 hi, i added a dns server setting to my emulator session. i can reach my desktop via the name in the emulator browser but not with the apache http client. there is says it can't resolve the name. any ideas? i just want to reach my pc in the emulator. Aug 06 07:42:53 actually, it compiles but won't run. hmm Aug 06 07:42:58 m1hael: you gotta do it a bit of a funny way, let me find the site for ya Aug 06 07:44:42 hello all Aug 06 07:45:10 bankai_: perhaps permissions? (just looking myself ...) Aug 06 07:45:15 http://blog.js-development.com/2009/10/accessing-host-machine-from-your.html that explains it Aug 06 07:45:25 m1hael: yeah that too ;) Aug 06 07:45:26 :) IDEA show red right away :): \AndroidManifest.xml:19: error: Error: No resource found that matches the given name (at 'screenOrientation' with value '@strings/my_orientation'). Aug 06 07:45:42 bankai_: thanx for the link Aug 06 07:45:57 hmm. Aug 06 07:46:39 I think it should be interger Aug 06 07:46:49 and as usual total silence when I ask anything Aug 06 07:47:05 can someone tell me, what parts of an play store app download are uniqe (I know that the publisher and die packagename are unique) ?? Basically I want to find out, which information can be the same for different applications in the play store (description, icon, ? can be the same) :) Aug 06 07:47:16 m1hael: also check your server is listening on the right IP Aug 06 07:47:30 bankai_: yes. thanx Aug 06 07:48:01 Leeds how long does it take from the time you publish an app before it appears in the play store ? Aug 06 07:48:03 tneva82_: push notification Aug 06 07:48:30 devslash: between minutes and a couple of hours Aug 06 07:48:34 tneva82_: are you ignoring me then? Aug 06 07:48:44 any ideas ? Aug 06 07:49:50 morning Aug 06 07:51:02 anders_: holvik ? Aug 06 07:51:17 no Aug 06 07:51:21 lol Aug 06 07:51:26 do you know what I'm talking about ? Aug 06 07:51:28 no Aug 06 07:51:34 :) Aug 06 07:51:36 nm then Aug 06 07:52:02 horlicks? Aug 06 07:52:29 anyone awake that has experience with GCM? Aug 06 07:55:10 i have been searching for some help in android source code...can someone help me out for a channel about android source code development ?? Aug 06 07:55:37 you mean messing around with the android system itself ? Aug 06 07:55:45 akshay_deo: there isn't really a channel for platform development - there are google groups/mailing lists Aug 06 07:56:20 is anyone aware of possibilities to uniquely identify an application in the android market (beside publisher and package name) ??? Aug 06 07:56:37 ahh @Pinas yeah Aug 06 07:57:32 akshay_deo well then as Leeds said - the google groups are less ore more good Aug 06 07:57:58 ok thanks :) Aug 06 07:58:16 I don't know how much you already know, but there are even two good video introductions for platform development Aug 06 07:58:28 give me a second and I get you the links Aug 06 07:58:35 Pinas: I think package name is *the* unique identifier Aug 06 07:58:46 @pinas http://developer.android.com/distribute/googleplay/promote/linking.html#OpeningDetails Aug 06 08:01:07 ive been marginally useful to at least someone here. Can someone help me out and upvote my post? http://stackoverflow.com/questions/11823483/previous-screen-bleeds-through-views-before-surfacecreated-called Aug 06 08:01:24 I'll buy you a drink when I'm rich Aug 06 08:01:49 well what I want to do, is to give a easy step-by-step manual on how to differe seemingly equal apps on the play store (do detect potential malicious/repacked apps). So I am looking for parts that a guy publishing malicious apps can not fake (e.g. he can not fake the packagename and the publisher name - but are there other parts he can't fake) ? Aug 06 08:02:09 e.g. the ratings :) Aug 06 08:03:11 @pinas the publisher's email? Aug 06 08:03:54 brian_de good one thx :) Aug 06 08:04:30 Thanks for the upvote! Much love Aug 06 08:17:10 is the publisher name absolutely unique throuought the whole play store (worldwide) ? Aug 06 08:29:35 I want a list of buttons. Aug 06 08:29:40 Can I do that with listview? Aug 06 08:29:46 hi here Aug 06 08:29:49 hi Aug 06 08:29:54 yes, but you might not want to Aug 06 08:29:58 is it a dynamic list? Aug 06 08:30:01 no Aug 06 08:30:04 static Aug 06 08:30:26 then why not just use a linearlayout? Aug 06 08:30:32 immensely simpler Aug 06 08:30:40 okay Aug 06 08:30:48 I didn't know linear layout could accomplish that task. Aug 06 08:31:04 linear layout just contains a collection of views in a line Aug 06 08:31:24 ok thanks a lot leeds Aug 06 08:31:25 so if you want buttons in a line - or textviews in a line - or editviews... or... or... or a mixture - in a line Aug 06 08:31:30 I have some difficulty for bitmaps in my app... I found a lot of post, but they all repeat the same thing "give multiple versions of your bitmaps", but I still don't really know what sizes I should choose... I actually have the .psd files and one .eps file of the design I should integrate to my already writted app. Somebody can help me about it ? Aug 06 08:32:39 man, google earth *always* crashes or goes to a crawl Aug 06 08:33:56 Tracks: generally you want to use a listview where your data is dynamic and/or the stuff in the list is complex (e.g. a track listing with thumbnail/artist/trackname for each entry) Aug 06 08:34:11 okay Aug 06 08:34:14 How should I get the external SDCard path? Aug 06 08:34:45 Omar: http://developer.android.com/guide/topics/data/data-storage.html#filesExternal Aug 06 08:36:26 my question is a really awful one ? ^^ Aug 06 08:36:42 getExternalStorageState returns mnt/sdcard, I want mnt/emmc Aug 06 08:37:04 Omar: there's no stable way to get that Aug 06 08:37:38 also, /mnt/emmc would normally be the *embedded* storage, and /mnt/sdcard the external SD card, which is what you asked for - unless you're running a weird build Aug 06 08:38:03 I'm using Cyanogenmod Aug 06 08:38:14 there you go... Aug 06 08:42:25 mithrop: get used to silence to questions :( Aug 06 08:43:11 Okay, which is better. To code or to use the XML if i am using eclipse? Aug 06 08:43:30 I am trying to do things right so I want to use the XML but I have more experience with just coding with Java. Aug 06 08:43:39 Is it better to use all the XML and the IDE? Aug 06 08:43:59 tneva82_ :( so bad. I'll try it by myself so Aug 06 08:46:46 hello Aug 06 08:46:51 android.provider.Settings.System.putInt(getContentResolver(), android.provider.Settings.System.ADB_ENABLED, 1); Aug 06 08:46:58 this should enable the adb shell? Aug 06 08:47:10 Tracks, personnally, I prefer XML and I used code only when I'm forced to do it Aug 06 08:47:21 okay mithrop Aug 06 08:47:35 thanks Aug 06 08:50:04 I'm trying to copy a file over to my device using adb push, but it complains "read-only filesystem". How do I get it to push it to the SD card? Aug 06 08:55:09 never mind I got it! Aug 06 08:57:23 greets all Aug 06 09:00:10 is there an RSS feed which tells me when new things are added to the SDK manager or ADT has been updated? Aug 06 09:01:50 there's a developers blog Aug 06 09:01:56 http://android-developers.blogspot.co.uk/ Aug 06 09:04:26 JakeWharton: why does hansel and gretal use the default TextAppearance.Medium theme for it's textviews and not some custom one? Aug 06 09:05:11 stork: thanks, subscribed now. Aug 06 09:12:28 how can I reference this in xml resource: http://developer.android.com/reference/android/content/pm/ActivityInfo.html#SCREEN_ORIENTATION_REVERSE_LANDSCAPE Aug 06 09:22:29 hoangtran: it says it there, "android:screenOrientation=" Aug 06 09:24:20 QubeZ: what I want is to put the value of that setting outside of AndroidManifest, in a values.xml file Aug 06 09:24:23 is there a place to report people offering pay-per-review services? Aug 06 09:24:37 ive just received some spam regarding it Aug 06 09:25:08 abuse@--.-- would be my normal port of call, but this is fairly service-specific Aug 06 09:26:17 as stated in the link I posted, I know it's an integer, and all possible values, I can put something like 8 in my values.xml files, but I don't want to hardcode '8', I want to get it From android sdk, like getting some other values: @android:color/white Aug 06 09:27:34 Does R not generate if there is a problem with the xml files? Aug 06 09:27:44 Tracks: right Aug 06 09:27:51 thanks Aug 06 09:28:15 if you think your xml is right but eclipse is showing error, just do a Project -> Clean Aug 06 09:45:31 anyone here from Austria by any chance? :D Aug 06 09:50:34 bogo10: yup Aug 06 09:51:11 gak: oh, awesome. And are you by any chance an android developer? Aug 06 09:51:15 with paid apps on the market? :) Aug 06 09:51:32 i'm trying to find out if Austria is 100% one of the countries accepted by google Aug 06 09:52:01 i drove through austria once, does that count? Aug 06 09:52:03 as i want to create a bank account in Austria and i don't want to waste my time in case Austria is not accepted :( Aug 06 09:52:24 funktronic: haha, no :) Aug 06 09:52:43 bogo10: yup, i just released "WiFi Heat" 2 weeks ago Aug 06 09:53:06 :D so a credit card opened in Austria is accepted for developer account? Aug 06 09:53:09 100%? :D Aug 06 09:53:17 u'r not just pulling my leg are you? :D Aug 06 09:55:25 i went to hungary, to open an account. And i just found out it's not one of the supported countries :( Aug 06 09:55:33 and i don't want to make the same mistake twice Aug 06 09:55:41 gak: you should post images of your app without all the phone border top and bottom, just the app images -- would look cleaner. Also heard this from the app review broadcast on friday's. Aug 06 09:57:06 hmm, i wonder ... are there any android developers from HUNGARY online? Aug 06 09:59:01 bogo10: i once did some things unmentionable in proper company with a girl from hungayr Aug 06 09:59:21 nope..still doesn't count Aug 06 09:59:50 so i'm guessing you also "drove through Hungary" ... if you know what i mean Aug 06 10:00:04 lol Aug 06 10:01:19 in a way Aug 06 10:02:35 hi Aug 06 10:03:34 has anyone had problems displaying 9-patches? it fails when i compile with my eclipse but works right compiling on other eclipses (my friends eclipse) and i can't find the difference Aug 06 10:04:09 i cleaned the project as suggested on some forums and made sure the manifest is correct (target=15) Aug 06 10:06:05 hello Aug 06 10:06:43 how can i enable usb debugging from code? Aug 06 10:07:02 is the android.provider.Settings.System.ADB_ENABLED ? Aug 06 10:10:53 leslie: fyi (if you're still there), I have done putting the screenOrientation setting to resource file (varies by API version): values & values-v10, and reverseLandscape is an interger constant = 8 (I need to hardcord it though) Aug 06 10:12:40 can i change ADB_ENABLED without root? Aug 06 10:13:48 sha0coder: you can't change Settings.Secure without root Aug 06 10:13:55 that's pretty much the point Aug 06 10:13:58 :/ Aug 06 10:13:59 oks Aug 06 10:14:04 thnx Leeds :) Aug 06 10:14:13 what do you recommend to root android 4? Aug 06 10:14:21 I recommend #android-root Aug 06 10:14:28 oks Aug 06 10:15:33 that's a lot of rooting questions Aug 06 10:16:34 can you disable default apps in gingerband without rooting? Aug 06 10:16:55 no Aug 06 10:18:21 i was going through an action bar tutorial and have one question. when an action bar is present, doesnt pressing the hardware "List" button show me the menu? or does it have to be opened using the action bar? Aug 06 10:19:07 pressing the Menu button for actionbar items will show a list of the overflow items ala context menu style Aug 06 10:20:47 bogo10: Sorry, I thought you said Australia. :o Aug 06 10:21:12 QubeZ: Thanks for the tip. I should keep up to day with that hangout. Aug 06 10:21:18 up to date* Aug 06 10:21:24 np Aug 06 10:21:25 bogo10: see, it's not just me and NBC! Aug 06 10:28:55 Speaking of the action bar, does anyone know how to make tabs take priority over menu options? The action bar I've got pushes all of the tabs into a drop down and shows most of the menu options, even though they are set to "IfRoom" Aug 06 10:30:32 coreychch: play with the show options Aug 06 10:30:48 i think if you set ifRoom on the menu options it'll do what ye want it to do Aug 06 10:30:58 well it may not make you a sammich, but it should give tabs higher priority Aug 06 10:32:13 If I set android:showAsAction = "IfRoom", the menu options all appear and the tabs are pushed into a drop down; if I set it to "Never" then they end up in the drop down menu. What I want is to have all the tabs appear, then have the remaining space taken up with menu options Aug 06 10:32:37 not on the tabs, on the menu items Aug 06 10:33:33 Yeah thats what I mean ... the menu options are the ones I'm setting to "IfRoom" ... but it's deciding there's 'always room' and displaying all of them, if that makes sense Aug 06 10:33:44 And pushing the tabs into the drop down Aug 06 10:34:10 I dont seem to be able to swing it the other way without setting most of the menu options to android:showAsAction = "never" Aug 06 10:39:34 i have CheckBox and i do a setOnCheckedChangeListener(null) and then a setChecked() and the old listener still fires. any way around this ? Aug 06 10:42:23 can someone tell me how it is possible, that when installing an app from the market not .apk file is present in /data/app ???? Aug 06 10:45:04 Hi. I want to abstract the DB access away in a class for the rest of my app to use. One of the components that would use this is a (not yet written) service. Currently, I provide the DB helper interface through an SQliteOpenHelper subclass. Would the Android Gurus recommend I implement a ContentProvider instead? Aug 06 10:47:33 yati: IMyDataService, have a MyDataService that has a public static IMyDataService getDataService() and a setDataService(IDataService service), then have a MyDataServiceImpl that does all the DB interactions and a MockDataService for unit tests Aug 06 10:47:49 and profile the crap out of that app Aug 06 10:48:57 funktronic: where do you put the code to add the listener? maybe it's re-added accidentally? Aug 06 10:49:15 hoangtran: nah i'm just an idiot and misread my logs Aug 06 10:50:20 ah, :), still in a better situation than when you meet the logcat bug :) Aug 06 10:55:26 funktronic: okay, I'm relatively new to the platform. I get the essence of what you say, but I need to ask you, does this involve IPC behind the scenes? Aug 06 10:56:03 depends on what you mean by IPC Aug 06 10:56:11 certainly not inter-process communication Aug 06 10:56:28 that's what ^^ Aug 06 10:56:41 what else could that mean? :O Aug 06 11:03:50 Hey everyone, Aug 06 11:04:09 I'm trying to setup android SDK on a virtual ubuntu at work Aug 06 11:04:45 hello Aug 06 11:04:56 but when I run the android SDK update manager it keeps hanging on fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml Aug 06 11:05:19 I'm using a proxy Aug 06 11:06:08 does your proxy support ssl Aug 06 11:06:28 did you make sure you logged into your proxy properly? Aug 06 11:06:34 can someone tell me something about asec files ??? Aug 06 11:07:41 I don't need to login to my proxy Aug 06 11:07:59 when I try to access the website in my browser it loads fine Aug 06 11:08:06 try using a different browser Aug 06 11:08:10 try firefox Aug 06 11:08:28 tried google chrome, and that works Aug 06 11:08:53 I'm sure you googled the issue before, but -> http://code.google.com/p/android/issues/detail?id=21359 Aug 06 11:09:16 it's not about the same file, but almost...give it a shot Aug 06 11:09:32 google chrome and ie will work out of the box on windows, firefox won't Aug 06 11:09:35 so try using firefox Aug 06 11:09:47 noone ever used asec filess (secure apps ???) Aug 06 11:09:52 but I'm trying to configure it on ubuntu Aug 06 11:10:35 and in Windows it works fine Aug 06 11:10:41 (same computer) Aug 06 11:10:47 try doing wget https://dl-ssl.google.com/android/repository/addons_list-2.xml Aug 06 11:10:50 on the command line Aug 06 11:11:52 ok, that worked Aug 06 11:11:57 Anyway, I'm having bit of a trouble with my application. I'm currently developing a tracker app, which uses the accelerometer and GPS. But unfortunately, the accelerometer stops polling data when the screen is off. I spent my whole yesterday searching for a solution, but nonw of the known workarounds are working on my phone (Samsung Galaxy Mini - with BMA220 accel. sensor) Aug 06 11:12:41 Did anybody have this problem before? Aug 06 11:13:21 so, where do I put this xml file then? Aug 06 11:21:26 hmm, is gif support gone in jb? Aug 06 11:22:09 RobinB: don't think so, but is discouraged Aug 06 11:22:41 yeah, users start complaining about missing images, and they coincide to be all the .gifs i have in my ressources Aug 06 11:24:28 RobinB: png is recommended instead of gif Aug 06 11:25:32 yes, i know. i just had some flag-gifs in my game that i got from somewhere else. but i'll just convert those i guess Aug 06 11:26:13 can I move an app installed on the sdcard back to the phone (programtatically) ?? Aug 06 11:27:41 RobinB: yup yup Aug 06 11:33:56 Guys, I'm using Actionbarsherlock, it works well with normal activity but with activity with fragments it shows an extra short bar at top Aug 06 11:34:10 this only happens for 2.3 < devices Aug 06 12:05:05 guys i have a problem with special chars like ä or ü. On Honeycomb or JellyBean everything works fine but on Devices with Ice Cream Sandwich they aren't displayed correctly Aug 06 12:08:22 Rozik: do you use fonts other than the system fonts? Aug 06 12:08:32 nope Aug 06 12:09:33 Hello all. Anyone ever experienced a weird problem which involves an EditText + Devices with hardware keyboard + the press of the key "a" or "c" or "v" which behaves like (in order) "select all" "copy" "paste"? Aug 06 12:33:14 hmm i try using a URL to get a file from a server with an URL of the form http://foo:bar@host/resource Aug 06 12:33:21 it fails with a FileNotFoundException Aug 06 12:33:32 it works great with wget on the console though.. Aug 06 12:33:33 what protocol are you trying to use Aug 06 12:33:44 http Aug 06 12:33:50 with a username and pass? Aug 06 12:33:53 yep Aug 06 12:34:11 basic http auth Aug 06 12:35:31 can you get a hold of the accesslogs of the server? Aug 06 12:36:31 Snuffel: i guess so.. Aug 06 12:36:32 have you tried removing the username and password and seeing what http status code is returned? probably 401? Aug 06 12:36:41 wongk: nope, not yet.. Aug 06 12:36:47 in which case you can just use basic authentication Aug 06 12:37:38 http://www.exampledepot.com/egs/java.net/Auth.html Aug 06 12:37:43 but the URL class should be able to handle username/pass specs? Aug 06 12:37:45 maybe that works better Aug 06 12:37:46 Snuffel: taking a look Aug 06 12:38:15 i get the exact same file not found exception.. Aug 06 12:38:48 tapas: it can, if you handle it correctly Aug 06 12:39:01 it's not a client appliction, it's an API Aug 06 12:49:17 hmm, it's a bad API.. but oh well, it's what we got to work with Aug 06 12:49:42 i don't agree Aug 06 12:51:29 tapas: you could put the username/password by hand to the request Aug 06 12:51:42 get the connection and then add the request property Aug 06 12:51:48 well, that's not entirely true, it is a bad API, but that's not why :P Aug 06 12:52:03 and yeah, i strongly dislike the authenticator api as well :P Aug 06 12:52:33 cmon.. Authenticator.setDefault() Aug 06 12:52:52 a purely side effects function (static) to influence the behaviour of another class.. Aug 06 12:52:58 ugh Aug 06 12:53:06 yeah, that's why it's a bad API Aug 06 12:53:12 and that's what i meant Aug 06 12:53:16 and many other similar reasons Aug 06 12:55:01 i guess the java.net apis are quite old though.. people haven't heard of LISP back then ;D Aug 06 12:56:34 btw: on a completely unrelated note. has anyone written a nice rich text editor widget that produces html output? Aug 06 12:56:40 we would be willing to pay for it, too ;D Aug 06 12:56:48 but we need it this week.. Aug 06 12:57:13 i thought there was one for android Aug 06 12:57:26 we looked into a bit for k-9 (not me, though) Aug 06 12:58:15 hei guys....do you know of any email address i could use to send a message to the android developer support. I looked around the help center, but the forms there don't help me. Aug 06 12:58:45 so i'd like to send an email so someone ... but can't find an email address :( Aug 06 12:59:41 wongk: there's http://code.google.com/p/droid-writer/.. from the description it seems to be rather unfinished Aug 06 12:59:57 tapas: LISP is unrelated to functional programming Aug 06 13:00:06 also this: http://code.google.com/p/android-richtexteditor/ Aug 06 13:00:16 (well, not exactly related is better) Aug 06 13:00:17 dont know the state Aug 06 13:00:41 or better yet ..... a telephone number i could call the support team or something ... i'd really desperate now :D Aug 06 13:01:01 *i'm Aug 06 13:01:36 I don't believe there is a phone number Aug 06 13:02:03 oh...then an email address :(( Aug 06 13:02:14 p_l|abdn: it supports other programing paradigms, too, yes.. Aug 06 13:02:22 s/programing/programming/ Aug 06 13:04:46 hey guys...anyone here from Austria, Hungary, Turkey, Hong Kong, Greece or Ireland !! Aug 06 13:04:54 bogo10: no email address either. just a webform Aug 06 13:05:00 i have a question for 'ya Aug 06 13:05:12 yeah, that's the only thing i could find as well :( Aug 06 13:08:24 hey guys...anyone here from Austria, Hungary, Turkey, Hong Kong, Greece, Ireland, New Zeland, Singapore, South Korea, Slovakia or Turkey !! (forgot some countries) Aug 06 13:08:59 'some'? Aug 06 13:08:59 germany Aug 06 13:09:05 my answer is no Aug 06 13:09:32 why are you interested in those countries? Aug 06 13:09:59 hi Aug 06 13:10:04 you said Turkey twice Aug 06 13:10:14 oh shush :) Aug 06 13:10:22 bogo10: there are people here from many countries. Aug 06 13:10:30 yeah, that's why i'm asking :) Aug 06 13:10:42 I feel excluded. Aug 06 13:10:44 i found the place, now i need to find the proper person Aug 06 13:10:49 "this place" Aug 06 13:10:55 bogo10: ..and your reason for asking is? Aug 06 13:10:57 maybe you should explain what your problem is, and people can suggest solutions Aug 06 13:11:07 this is a channel for regular android developers to talk about developing android apps Aug 06 13:11:13 this is not a google hotline Aug 06 13:11:14 i want to find someone in one of these countries to tell me weather they are or are not able to create an android developer account from their country Aug 06 13:11:24 i'm seeing two lists which are in conflict with each other Aug 06 13:11:34 bogo10: why do you need to know this Aug 06 13:11:35 and i'm not sure whcih list of Supported Countries is valid Aug 06 13:11:42 also, why not try to just create an account? Aug 06 13:11:56 cause i need to go to the country, open an account and then test it Aug 06 13:12:09 that takes time and money to travel there and do so Aug 06 13:12:21 bogo10: there is a list of countries whose developers can sell on android marketplace Aug 06 13:12:47 yes i know... you're refering to this one: http://support.google.com/googleplay/android-developer/bin/answer.py?hl=en&answer=150324&topic=15867&ctx=topic Aug 06 13:12:54 Turkey is none of them. You can create dev acc and distribute apps for free, but cannot sell Aug 06 13:13:15 does anyone know if the Google Play client track the referrer when no "referrer=foo" is found in the URL ? Couldn't it use the HTTP-REFERER header ? AFAIK this is the standard way to track referals for web pages. Aug 06 13:13:24 onr: so you can't place PAID apps if you're from turkey? Aug 06 13:13:30 are you sure? 100%? :) Aug 06 13:13:49 i do through friends Aug 06 13:13:56 you're from turkey? Aug 06 13:14:05 yup Aug 06 13:14:12 may i pm you? Aug 06 13:14:19 go on Aug 06 13:14:19 bogo10: ok, I think you need to elaborate here. Why do you need to be able to set up accounts from each of these countries? Aug 06 13:14:31 ahoy Aug 06 13:14:38 no for each..but those are the countries that seem out of place Aug 06 13:14:38 i want to write an app that records video & doesn't stop recording when another app comes into foreground. Should I use a Service for that? Or a seperate thread? Or something completly different? Aug 06 13:14:44 that don't appear in both lists Aug 06 13:14:54 but ... i think onr will solve my problem.. Aug 06 13:14:56 1 sec Aug 06 13:15:13 rigid: normally I'd say yes, a service would be ideal. However, I'm not sure if the apis allow you to record video while you're not actively displaying preview information to the user. Aug 06 13:15:41 rigid: I guess you should use a service in its own thread/s Aug 06 13:15:54 lov: that's the thing... i don't need a preview and i wanted to address that problem later... appereantly there are hacks to record video without preview Aug 06 13:16:06 xroberx: really? why both? Aug 06 13:16:12 rigid: in that case, you can probably take that route. Aug 06 13:16:22 lov: ok, thanks Aug 06 13:16:29 rigid: but beware that is very resource intensive, the only app I know of that records video from other apps can't reach a decent framerate Aug 06 13:16:50 rigid: you may not need a thread; I forget how video works but I think that it's all asynchronous callbacks. Bear in mind that onCreate, onBind, etc all run on the UI thread. Aug 06 13:17:07 so, if you need to be continuously performing some actions, you'll want to spin up a new thread to handle it. Aug 06 13:17:19 xroberx: i wouldn't want to record from other apps... i just don't want the recording to be interrupted if the user taps some wrong buttons Aug 06 13:17:30 I don't believe you can record video in the background Aug 06 13:17:39 leslie: yes, you can Aug 06 13:17:49 you can? I guess they changed it since I last checked then Aug 06 13:18:03 xroberx: is this via using non-public methods, or is there a legitimate way to do this? Aug 06 13:18:08 hm... so would it be smarter to just lock the app to stay in foreground unless the user explitly anwesers some "Are you sure?" dialog? Aug 06 13:18:16 rigid: you can't really do that. Aug 06 13:18:21 if the user presses home, there's nothing you can do. Aug 06 13:18:26 yeah, thought so :) Aug 06 13:18:32 if they get a phone call, the dialer goes into the foreground. Aug 06 13:18:33 technically you can do something about it, but it's annoying Aug 06 13:18:50 yeah indeed... in that case, recording should continue Aug 06 13:18:56 right. Aug 06 13:19:04 lov: all I know is that the device needs to be rooted Aug 06 13:19:11 ah. Aug 06 13:19:15 so yeah, non-public apis Aug 06 13:19:21 i'll try with a service and some "no-preview-hack" Aug 06 13:20:07 lov: low-level stuff that involves the use of ffmpeg and whatnot :) Aug 06 13:20:13 lov: do you know by heart how to record video without preview? Aug 06 13:20:56 i found http://stackoverflow.com/questions/2386025/android-camera-without-preview but the only working way for gingerbread is a "transparent SurfaceView" which also vanishes when the app is backgrounded... Aug 06 13:21:02 hello :) Aug 06 13:22:10 one question - is it somehow possible to update the own application without the android market. I know that i could download another apk and then start the package installer for this app - but afaik this is no real update but the installation of another app Aug 06 13:22:53 rigid: I do not at all. Aug 06 13:23:05 rigid: I haven't touched the camera apis in a couple of years. Aug 06 13:23:16 i'll try to find out... thanks for the help Aug 06 13:23:22 rigid: my understanding is that the apis are engineered so that you have to have a visible window to the user to do this, for privacy and legal reasons Aug 06 13:23:39 Pinas: that's basically how you'd do it. Aug 06 13:23:48 Pinas: maybe with the new expansion SDK, who knows Aug 06 13:23:58 Pinas: another route is to have your codebase be selfcontained in a jar, and have your "app" just be a wrapper around opening and using that jar Aug 06 13:24:04 you could always download a new jar, and then restart your app Aug 06 13:24:09 that's really, really, really hacky though. Aug 06 13:24:22 i see Aug 06 13:24:36 I got problems with broadcasts -- hopefully someone can help:... may I paste my problem explaination? ;) Aug 06 13:24:57 brian_de: if it's more than one line of code, pasteBIN please Aug 06 13:24:57 lov - when I e.g. download a new apk (signed with the same key as the current apk) and the user installs it - then my app is updated or do I have the same app twice (old and new version) ??? Aug 06 13:25:12 Pinas: if it has the same packagename, the new apk replaces the old one Aug 06 13:25:27 Pinas: if the app was preloaded on the device, the user could uninstall the update technically, but we won't get into that. Aug 06 13:25:54 excellent that's what i wanted to know. Thank you very much Aug 06 13:27:48 so generally there are two ways to update my app. First through the Play Store by uploading a new apk with a higher version number and second by directly downloading a new apk from my server and prompting the installa dialouge to the user ? Aug 06 13:27:59 effectively, yes. Aug 06 13:28:14 there are other appstores now too, such as amazon appstore Aug 06 13:28:30 I would recommend only allowing a direct download from your own server if you cannot or must not use existing appstore infrastructures Aug 06 13:28:41 my broadcasts problem: http://pastebin.com/6WbZkT4H Aug 06 13:29:33 brian_de: are you sure that you weren't registering the receiver in the manifest or something? Without knowing what your code / manifest looks like, there's not much I can suggest. Aug 06 13:29:34 lov currently I only need the theory behind all of it (writing about malicious apps) :) Aug 06 13:29:49 making your project a library project doesn't really matter; all the code still gets included. It would affect the manifest though. Aug 06 13:30:37 ok .. give me a minute so i can get the code into the bin :) Aug 06 13:30:39 Pinas: In that case, I would say that downloading/using a .so or .jar file containing your payload would be the most effective solution; it doesn't require the user to be prompted to re-install the app. Aug 06 13:31:17 It depends on the type of malware however. If it masquerades as a useful program that the user would want to install/update, it's probably fine to ask them to install updates. Aug 06 13:32:16 lov: ok that seems interesting thx :) Aug 06 13:32:28 hmm, if your app uses a sqlite db as central storage, how do different components of your app notify each other of changes? Aug 06 13:32:56 i started to implement a "observer" registry, but then thought "hold on, maybe someone else has done this already" Aug 06 13:33:56 tapas: I don't think that sqlite has any sort of notification/listener pattern for data changes there. Aug 06 13:34:13 That said, your interface on top of the database could do that for you, with the database being an implementation detail that consumers don't need to know about Aug 06 13:34:31 abstract this into a pretty interface, let your consumers worry about the interfaces, not the implementation. Aug 06 13:35:20 lov: yeah, that's basically what i did: interface DataObserver, and the global data holder has two functions registerObserver and unregisterObserver Aug 06 13:35:53 etc..pp. then when data is getting changed, call notifyDatasetChanged and all observers get their callback called.. Aug 06 13:36:00 i just read about contentproviders though. Aug 06 13:36:14 maybe there is some support infrastructure for this pattern in place Aug 06 13:36:27 tapas: you could absolutely use a content provider. I don't really know what you're doing with your data, etc./ Aug 06 13:38:23 lov: hmm, just reading about it it seems that it reintroduces a DB like interface which we hid away behind an ORM cause it's so inconvenient ;D Aug 06 13:38:45 Hey guys I want to add transparent overlay bar like gallary which shows when user click the image Aug 06 13:38:59 any Idea how to do that Aug 06 13:39:08 lov: we;ll go with the Observer thingies.. it's easily implemented and since our team consists of two people it's easy to communicate the requirements.. Aug 06 13:40:03 does anybody know where the source is for android.net.wifi.WifiConfiguration? Aug 06 13:40:11 Hei guys. If i set the price for my app to let's say 1 USD, Google will automatically adjung for each currency making it 0.8 euros or something, right? Aug 06 13:40:53 But, how often does it do this? I read somewhere that it updates the prices in different currencies once a month Aug 06 13:41:36 Is that right? Or it updates the second the exchange rate changes? Aug 06 13:41:51 Oooh that introduces the possibility to short on app prices. Aug 06 13:42:14 what do you mean by "possibility to short" ? Aug 06 13:42:43 clever: have you checked the source code that's downloadable with the SDK tool? Aug 06 13:43:14 leslie: i have a grep running on it, but it takes a while to grep 11gig Aug 06 13:43:14 back again ... just got a little distracted by my colleagues ;) ... I pasted the receiver stuff to http://pastebin.com/6WbZkT4H Aug 06 13:43:55 leslie: took 2 hours just to find out that 'Avoided poor Internet connection' means dns or dhcp failure Aug 06 13:43:58 it's in the SDK folder, under sources/android-14/android/net/wifi/WifiConfiguration.java or whatever SDK you have Aug 06 13:44:25 leslie: i must be missing it, because i just did a search for files by that name Aug 06 13:44:34 bogo10: the financial instrument.. :) futures, speculation, etc. Aug 06 13:44:53 leslie: what point in that path is the root you ran repo at? Aug 06 13:45:08 I didn't, it's in the SDK Aug 06 13:45:15 HDroid: so how is it? How often does it update the price in other currencies? The second the exchange rate changes or monthly like i read somewhere? Aug 06 13:45:19 clever@ramboot ~/android-x86 $ find|grep WifiConfiguration Aug 06 13:45:20 clever@ramboot ~/android-x86 $ Aug 06 13:45:24 leslie: 0 results Aug 06 13:45:31 bogo10: I don't know, I was just fooling around. Aug 06 13:45:38 clever: http://pastebin.com/Qa5EQv7R Aug 06 13:45:39 oh :) Aug 06 13:45:55 @lov: about the manifest: well the receiver gets registered dynamically. though, when i use classes from the lib i use the FQN for android:name for all providers/services/receivers Aug 06 13:46:06 that's the Jelly Bean source Aug 06 13:46:24 leslie: yep, looks right, but dont see what i was looking for Aug 06 13:46:34 leslie: would you know why thats not in the copy of the source i got? Aug 06 13:46:52 clever: you are aware that you can install the Java source code through the SDK, right? Aug 06 13:47:00 without needing the entire Android source Aug 06 13:47:18 leslie: i'm adding a new target to the android-x86 branch, so i needed the whole source to build a new image Aug 06 13:47:24 tapas: up to you. Content Providers are absolutely wonderful for exposing your data/service/etc to 3rd parties. If a simple observer pattern works for you, all the better. Aug 06 13:47:31 the silly build scripts wouldnt even let me compile a kernel without the whole source Aug 06 13:47:38 ahh. well then, I'm not sure, it's been a while since I tried that Aug 06 13:47:40 but gimme a sec Aug 06 13:47:58 You guys look knlowedgable about the android source Aug 06 13:47:58 clever: frameworks/base/wifi/java/android/net/wifi/WifiConfiguration.java ? Aug 06 13:48:13 ls: cannot access frameworks/base/wifi: No such file or directory Aug 06 13:48:18 hmm Aug 06 13:48:26 permissions? Aug 06 13:48:35 chmod -R 777 ftw Aug 06 13:48:51 CurlyBrace: running under the user that did the checkout, and it would give a diff error if that was so Aug 06 13:48:51 brian_de: looks fine to me offhand, not sure what to suggest. Did you forget to request permissions in your new app manifest? Aug 06 13:49:54 clever: what does your AOSP checkout look like? mine looks like this: http://pastebin.com/w8qK6jBz Aug 06 13:50:10 are you looking in the sdk, or in the android source? Aug 06 13:50:37 Anyone know where in the android source it prepares the widget UI menu? Aug 06 13:50:45 lov: http://pastebin.com/LTz7hujB android-x86 repo Aug 06 13:51:05 lov: i believe its enough to generate a fully working android system (root image, kernel) Aug 06 13:51:16 ah, I thought you were using AOSP Aug 06 13:51:28 leslie: its a branch of that i believe Aug 06 13:51:33 clever: you might just be using a repo that only contains enough to make an x86 image. Aug 06 13:51:35 lov: in the lib i declare the C2D_MESSAGE permission and in the main app i also declare it but with a different pacakge name (so its unique). the permission is then always used from the generated Manifest class (which contains the permisson string from the main app). Aug 06 13:51:40 ./frameworks/base/wifi/java/android/net/wifi/WifiConfiguration.java Aug 06 13:51:44 that's where WifiConfiguration lives for me as well Aug 06 13:52:15 lov leslie: i'm basicaly trying to track down the cause of this error http://pastebin.com/BrTQdsnD Aug 06 13:52:25 brian_de: well, first, try removing the permission requirement from your broadcast/filter/etc altogether, just in case that's the problem. it'll at least narrow things down. Aug 06 13:52:34 ive just hit a dead end, since no code anywhere sets disableReason Aug 06 13:52:43 lov: just thought the same :) will try Aug 06 13:53:20 anyone know where the widgets live in android source? Aug 06 13:53:58 ApplicationWidget.java ? Aug 06 13:53:58 clever: that you can see ;) Aug 06 13:54:03 or something Aug 06 13:54:06 I have written a browser plugin that I now made into an iOS app and am now working on the android port. It is a video player and I will be using the NDK. Where exactly to draw the line between native and not is what i am working on now. If I need to draw controls on top of an opengles surface written to by native code, how do i do that? Aug 06 13:54:28 lov: aha!, repo status claims that file was deleted Aug 06 13:54:36 i think its because i ran out of disk space 3 times during sync Aug 06 13:54:44 it failed to make the files, then forgot about them Aug 06 13:54:56 Android is pretty big Aug 06 13:55:14 let me see if repo sync will do the sane thing Aug 06 13:55:34 nope Aug 06 13:56:36 clever@ramboot ~/android-x86/frameworks/base $ git reset --hard Aug 06 13:57:05 clever: welp, gl w/ that. Aug 06 13:57:56 -rw-r--r-- 1 clever clever 22K Aug 6 10:57 wifi/java/android/net/wifi/WifiConfiguration.java Aug 06 13:58:03 \o/ Aug 06 13:58:06 lov: yep, fixed :) Aug 06 13:58:20 the bad news is, that won't tell you what's setting it to disabled Aug 06 13:58:23 I checked the whole file Aug 06 13:58:35 yeah, i checked the pastebin Aug 06 13:58:43 thats why i was trying to figure out why the file is missing Aug 06 13:58:45 well, it's not something in that file that sets the field :P Aug 06 13:58:49 now i can grep the REAL WHOLE source Aug 06 13:58:54 clever: re-grep, now that your source is present :P Aug 06 13:59:03 yep Aug 06 13:59:04 ./java/android/net/wifi/WifiWatchdogStateMachine.java: mWifiManager.disableNetwork(networkId, WifiConfiguration.DISABLED_DNS_FAILURE); Aug 06 13:59:35 within the DnsCheckFailureState class Aug 06 13:59:45 log("Disabling current SSID " + wifiInfoToStr(mConnectionInfo) Aug 06 13:59:47 is that the only place? Aug 06 13:59:51 where do these log entrys go to? Aug 06 14:00:03 leslie: given the class name, probly Aug 06 14:00:05 the system log probably (logcat) Aug 06 14:01:05 leslie: no hits in my saved copy of logcat Aug 06 14:01:15 logfile:E/WifiStateMachine( 1234): Failed 10 times, Disabling 0 Aug 06 14:01:24 hi guys, short question Aug 06 14:01:26 it's possible that those messages are only enabled for debug builds of Android Aug 06 14:01:46 leslie: my logcat has every single keypress i make Aug 06 14:02:07 :S Aug 06 14:02:11 hmm. no idea then Aug 06 14:02:32 i have an activity and I want to open it regularly once and as a modal view in a different use-case Aug 06 14:02:53 is there a doc somewhere explaining how to do this Aug 06 14:03:03 E/WifiStateMachine( 1234): Static IP configuration failed: java.lang.IllegalStateException: Unable to communicate with native daemon to interface setcfg - co Aug 06 14:03:07 m.android.server.NativeDaemonConnectorException: Cmd {interface setcfg 10.0.0.35 25 [up]} failed with code 400 : {Failed to set address (No such device)} Aug 06 14:05:24 leslie: i'm pretty sure the problem is in the java area, because i had no trouble running wpa_supplicant and /sbin/ip manualy in a tty Aug 06 14:05:30 adb shell is now working over the wifi Aug 06 14:06:12 I'd check, but my internet is being derpy, and it's taking forever to clone Aug 06 14:06:22 leslie: ah, i see why you mentioned debug Aug 06 14:06:24 leslie: thanks for the help! Aug 06 14:06:27 if (DBG) log("Static IP configuration succeeded"); Aug 06 14:06:47 leslie: and as i would expect, good messages are only visible in debug builds, errors are always visible Aug 06 14:07:04 yeah, I thought so Aug 06 14:07:30 leslie: i also saw massive errors from init failing to start the dhcp service, a few hours ago Aug 06 14:07:37 thats why i switched to static ip Aug 06 14:07:46 do you think that kind of failure would also impact static? Aug 06 14:08:00 I've never really used android-x86 Aug 06 14:08:05 depends what caused it, I guess Aug 06 14:08:17 but you were saying that normal networking was fine Aug 06 14:08:19 from a brief find|grep, the dhcp binarys dont exist Aug 06 14:08:43 i bypasses the java ui and configured wifi manualy, and it works fine Aug 06 14:09:03 so java is either failing somewhere, or mis-interpreting success as failure Aug 06 14:09:27 able to communicate with native daemon to interface setcfg - com.android.server.NativeDaemonConnectorException: Cmd {interface setcfg 10.0.0.35 25 [up]} failed with code 400 : {Failed to set address (No such device)} Aug 06 14:09:47 this error implies that the java process is talking to some native (c++?) service to do the actual work Aug 06 14:10:03 wait, is that 2 spaces between setcfg and the ip? Aug 06 14:10:41 yes Aug 06 14:10:56 http://pastebin.com/5uuDGqc0 Aug 06 14:11:03 (not using fixed-width font with irc? tsk tsk :p) Aug 06 14:11:07 maybe its trying (and failing) to put the interface in there Aug 06 14:11:21 i am using fixed width in both irc and bash, but only just noticed that Aug 06 14:11:47 i think the fault is coming from setInterfaceConfig Aug 06 14:12:40 ./base/core/java/android/os/INetworkManagementService.aidl hmmm, this must be how c++ code gets called from java Aug 06 14:12:53 i wonder where the function actualy lives :S Aug 06 14:13:18 'hi android seems to insert a small space between 2 controls like 2 Buttons, how to remove this space so that the buttons appear one after another? Aug 06 14:14:41 mobileuser: do you have a screenshot? Aug 06 14:15:22 leslie: i meant my layout .xml file has these 2 buttons.