**** BEGIN LOGGING AT Wed Oct 02 02:59:58 2013 Oct 02 03:00:31 what to look at is fixing your buggy code, use a debugger and step through until you identify it's behavior Oct 02 03:16:57 pfn thanks. i will check the code Oct 02 03:25:05 sravan2j: better yet, use the MAT standalone program to analyze the memory and see what's not being released Oct 02 03:32:14 Hi pragma, I have a small doubt. Is there any difference between standalone mat and eclipse plugin mat? Oct 02 03:32:28 eclipse sucks. Oct 02 03:35:40 I have a project on github that was created and uploaded to github in android studio. When I tried to import it on another computer, it was having a bunch of build errors. I downloaded the .zip from github and got everything working that way in android studio now, but is there any way to connect it back to the project on github? Oct 02 03:37:45 Unless the zip has the git repo in it, no Oct 02 03:37:58 you should be able to check out the git repo and do the same tweaks you did w/ the zip Oct 02 03:38:31 android studio also sucks. the only real way to have a sane experience is by using the command-line. Oct 02 03:38:46 pragma: oh. ok. Thanks :) I will use standalone MAT Oct 02 03:39:05 alright. Thanks. I will try again Oct 02 03:52:51 When I checkout my project from github it now has the .iml file that is in the main project folder, but it also has two more .iml files in the subfolder. One of them is myApp.iml and the new one is called myApp-myApp.iml Oct 02 03:53:19 does that mean it messed up? Oct 02 04:22:38 curious - what are the compelling reasons to use regular fragments instead of the ones in the v4 compat library on devices that can support them? Oct 02 04:22:45 or is there no real performance gain to be had? Oct 02 04:22:52 and/or prettiness gain Oct 02 04:27:00 loving the new gmail design Oct 02 04:30:48 rager, if you're only supporting devices that already have fragments in their standard libraries, why include all the extra gumph in your APK? Oct 02 04:59:50 the support library fragments are normalized whereas the native ones are subject to API-specific bugs Oct 02 05:00:51 Hi JakeWharton, I have used your library (fragments). Oct 02 05:00:58 I didn't write fragments Oct 02 05:01:19 pager viewer Oct 02 05:01:30 Ban me from writing any code ever again if I write a library with an API as terrible as fragmnets Oct 02 05:01:49 com.viewpagerindicator Oct 02 05:02:20 nice Oct 02 05:10:44 JakeWharton, I want my application to execute on every android device (including on tablets). Could you please let me know where (hdpi, mdpi,xhdpi or xxhdpi) I have to place all the images (there are 30 images). Oct 02 05:10:46 the AccountManager apis are pretty obtuse Oct 02 05:11:38 JakeWharton, Also please let me know which resolution I have to maintain for each image. Oct 02 05:24:19 I compiled image for nexus 10 frm src but after flashing its stuck at google logo can someone help Oct 02 05:28:48 I want to show a popup window from a background thread, how do I do it? Oct 02 05:29:00 (Like, I don't have any activity...) Oct 02 05:29:44 gavilan2 a notification Oct 02 05:30:01 and if you need to show more, clicking on the notification should show an activity Oct 02 05:30:43 g00s_: By popup I mean a real popup... Oct 02 05:30:51 My application is currently showing an activity... Oct 02 05:30:52 forget it Oct 02 05:31:00 I just don't have any reference to it in the background service Oct 02 05:31:50 why forget it? Oct 02 05:31:55 hello Oct 02 05:32:48 is there any way to get the currently shown activity? Oct 02 05:32:58 MyApp.getCurrentActivity() ? Oct 02 05:33:07 or something like that? Oct 02 05:33:49 Does anyone know why a device gets stuck at google logo Oct 02 05:33:59 ? Oct 02 05:34:43 kgtsr try #android-root Oct 02 05:35:42 Thanks goos Oct 02 05:36:18 gavilan2 then have your activity bind to the service. if its bound, tell it "show the dialog". if its not, put up a notification Oct 02 05:37:27 but you contradicted yourself, because you initially said you don't have an activity Oct 02 06:00:47 Does any one know path for wifi module in working directory Oct 02 06:01:36 o.o Oct 02 06:16:47 g00s_: what do you mean by bind the service? Oct 02 06:17:16 g00s_: Anyway, it's not a service, it's a background thread... Oct 02 06:18:02 g00s_: my app is showing an activity, but I don't have a reference to it from the background thread.... Oct 02 06:18:31 g00s_: and he app changes from activity from time to time, so it's not like I can pass it to the background thread when I create it, because it changes all the time Oct 02 06:19:04 So I need to get the current activity... and then I need to get a view there to be able to show a popup window Oct 02 06:20:08 sounds like something that should be in a service with a threaf Oct 02 06:20:10 *thread Oct 02 06:20:28 what is the thread doing? Oct 02 06:22:40 I have a non-market application for a buisness, that i have i a self-updater inside, it runs the apk as Intent promptInstall = new Intent(Intent.ACTION_VIEW).setDataAndType(Uri.fromFile(apk), "application/vnd.android.package-archive"). This opens a update-window, but when it is done it just quits with no feedback and app not running. Is this how it should be? Oct 02 06:23:24 The app updates just fine, it just leaves the end user with no feedback on how the update went Oct 02 06:24:11 gavilan2: try this or MainActivity.this or getParent() or super(), one of them oughta work ;) Oct 02 06:29:58 in a dos shell, adb devices shows my phone and emulator. but run configurations isn't showing the phone, just the emulator. any ideas? Oct 02 06:30:25 run configurations from inside eclipse I mean. (this is windows) Oct 02 06:33:09 it has worked fine before. last week even Oct 02 06:34:03 from my experience with eclipse, take a full backup of it when it works... Oct 02 06:34:25 never programmed android with it, just java ee Oct 02 06:35:47 0nack: use Android Studio instead? or any other IDE? Oct 02 06:36:19 IntelliJ or Android Studio. Oct 02 06:36:32 Or just use your favorite text editor and a terminal. Oct 02 06:36:32 I use Intellij Idea, but you answered wrong person Oct 02 06:37:18 are there any apps/functionalities for app presentation on android? I talk about present the app with external display Oct 02 06:37:29 Ah, nevermind, this isn't actually a question about what to use, it's just someone poking an Eclipse user. Oct 02 06:38:34 skullcrasher: TeamViewer Oct 02 06:38:47 or splashtop Oct 02 06:38:52 I guess I will try a reboot Oct 02 06:39:12 I have like 40 windows open. I hate rebooting Oct 02 06:40:23 Onack: ok, i know teamviewer that would work. anything for using the phone itself but showing the phone display on bigger screens to? so i can use the phone directly? Oct 02 06:40:47 Some tablets and phones do have HDMI output Oct 02 06:41:02 I have a Asus Transformer in front of me with HDMI mini output Oct 02 06:41:37 or if you dont mind root, you can record the presentation with a video Oct 02 06:42:01 dont remember which app i used on my Nexus 7 to record the screen Oct 02 06:42:12 SCR i think Oct 02 06:42:44 Note to self: get Asus Transformer. Oct 02 06:42:54 I really need a way to record apps. Oct 02 06:42:57 and yea some got MiraCast if TV has that reciever Oct 02 06:43:15 Nexus 4 and 7 supports MiraCast Oct 02 06:43:59 new Nexus 7(2013) has hdmi out with a special cable Oct 02 06:45:38 anyone know offhand what the from / to buttons are here http://cdn.androidpolice.com/wp-content/uploads/2011/11/wm__0001_wm__0014_2011110214h33_55.jpg Oct 02 06:45:47 they look like spinners, but print up datePickers Oct 02 06:46:24 crap, guess i need to get that repo and look Oct 02 06:47:08 oh, its just style="?android:attr/spinnerStyle" Oct 02 06:47:15 nm Oct 02 06:51:11 Onack: its more for a live presentation of the app. teamviewer doesnt seem to work. i can't get the phone screen, only screenshots Oct 02 06:52:13 I know it is possible to do live with TV Oct 02 06:53:56 hi, testing, anyone read this message? send from android-dev channel using colloguy Oct 02 06:54:07 ẗestok Oct 02 06:54:12 *test ok Oct 02 06:54:17 thanks Oct 02 07:00:01 in this view the top half is a textview and the bottom half is a edittext. when you touch the edittext the keyboard obscures it so you can't see what you are typing. how do you deal with this? Oct 02 07:03:22 found an article about it Oct 02 07:28:17 zmuser3 it should be in a scrollview or similar Oct 02 07:28:35 so that the screen can scroll to the appropriate place Oct 02 07:30:08 zmuser3: try RelativeLayout Oct 02 07:57:42 What profiler can I use to profile apps that use native code ? Oct 02 07:59:14 What options do I have for both native and Java code profiling? Oct 02 08:02:27 anyone here who has used canvas.translate and can guide me a bit ? Oct 02 08:41:32 how likely is it that a send GCM is received if the phones turn off at the sending time and turned on 12 hours later? Oct 02 08:47:54 jan1337z " The default timeout is 4 weeks, unless the time_to_live flag is set." Oct 02 08:47:58 https://developer.android.com/google/gcm/adv.html Oct 02 08:48:30 yeah but I guess in RL its not a 100% rate? Oct 02 08:49:02 can't see why not Oct 02 08:49:17 if it was that unreliable, it's be totally useless Oct 02 08:49:27 can't see either :) Oct 02 08:49:27 *it'd Oct 02 08:50:14 is the message sending unlimited? Oct 02 08:50:41 100 will be queued at a time Oct 02 08:50:58 I want to build a "chat" ontop of an restful messaging system Oct 02 08:51:28 I mean how many messages can I send from my server on a day… i googled that but couldnt find anything Oct 02 08:51:53 i've considered writing a GCM chat app, i doubt you'll hit any limits with user generated messages Oct 02 08:53:20 you considered it too? have time to give me some input how you want/ed to do it? Oct 02 08:54:08 i was going to ignore the server part entirely, pass the sender ID and registration IDs between devices by text message and start sending GBM messages with payloads containing the messages Oct 02 08:54:11 *GCM Oct 02 08:54:18 just as a toy really Oct 02 08:54:59 I have a REST server in-between Oct 02 08:55:25 just wandering what would be a con on sending the payload within the GCM instead if just sending a tickle Oct 02 08:55:40 might get lost Oct 02 08:55:47 like "hey you have a message load the messages from server" Oct 02 08:55:55 if i leave my device off for 4 weeks, it'll be bunned Oct 02 08:56:09 migh come out of order, never seen any documentation on that Oct 02 08:56:17 *binned Oct 02 08:56:31 a tickle is most likely more robust Oct 02 08:56:40 as i said, it was just a toy project Oct 02 08:56:45 but more battery intensive as well Oct 02 08:56:57 i mean WAY more battery intense Oct 02 08:57:10 shouldn't be too bad Oct 02 08:57:24 if you collapse the tickles and set delay while idle Oct 02 08:57:42 a hybrid approach is probabally best Oct 02 08:58:08 send the latest message as the payload to the tickle for a notification and load the whole lot once the user opens the app Oct 02 08:58:22 that's what I'd do if i was writing this propperly Oct 02 08:58:27 i thought of sending the msgs in the payload and syncing the messages of there rest api like daily Oct 02 08:59:21 (delay while idle isn;t a great idea here, i take that back) Oct 02 08:59:28 can't type today :( Oct 02 09:00:01 you said that "load the hole lot once the user opens the app" Oct 02 09:00:15 in what use case .. sounds interesting Oct 02 09:01:19 so, my friend steve sends me 100 messages, i'd like a notification to tell me that i have 100 pending messages and maybe the text from the first one or two, or the last one or 2, that's up to you Oct 02 09:01:28 that can all be sent over GCM Oct 02 09:02:03 then when i click the notification, or otherwise navigate to the steve conversation, i'd load the history from the rest service Oct 02 09:02:47 but why not just store the received messages to the sql lite db in the background (as they are received)? Oct 02 09:03:21 it's an option, but GCM may collapse or discard some Oct 02 09:03:41 it'll only hold 100 pending messages Oct 02 09:03:48 okay. I think I can store them directly when they are received Oct 02 09:03:55 with a few talkative friends you could vlow that easily Oct 02 09:03:59 *blow Oct 02 09:04:01 at the point I send out the notificytion Oct 02 09:04:19 when i pinch zoom with my scrollview - the boundaries gets all messed up - does anyone know how to fix that ? Oct 02 09:04:26 so collapsing would hurt me so bad Oct 02 09:05:38 correct me if I am wrong Oct 02 09:06:40 i don't think GCM is intended as a transport medium for more information than "hay, you've got mail" Oct 02 09:07:56 any dropped messages, for whatever reason are going to = 1 star reviews Oct 02 09:08:26 its just a project for university :D Oct 02 09:08:45 but yes that is my fear too Oct 02 09:08:51 loosing messages Oct 02 09:09:37 xmpp messaging? and use GCM when the user is offline Oct 02 09:09:43 that is how most everyone does it Oct 02 09:09:48 https://developer.android.com/google/gcm/adv.html#payload Oct 02 09:09:57 and the rest use something other than xmpp but the same idea Oct 02 09:09:59 this would be interesting for you Oct 02 09:10:02 only GCM if the user is offline Oct 02 09:10:20 lemonxah, the point is that the rest api is existing and I can just use that … no additional servers Oct 02 09:11:10 i understand that is what you want but it wont work :) Oct 02 09:11:25 why? Oct 02 09:11:27 <-- developer at mxit (bigest mobile messaging app in africa) Oct 02 09:11:37 cause GCM delivers late Oct 02 09:11:39 give me some input :) Oct 02 09:11:49 please Oct 02 09:11:52 and sometimes not at all Oct 02 09:12:03 hmm okay Oct 02 09:12:14 and chat is supposed to be live Oct 02 09:12:19 its supposed to be responsive Oct 02 09:12:27 GCM is not responsive Oct 02 09:12:33 it might feel that way sometimes Oct 02 09:12:38 oaky maybe chat is the wrong word Oct 02 09:12:47 its more like the Facebook messaging story Oct 02 09:12:53 a feed? Oct 02 09:13:09 in the university we have a system for students to communicate Oct 02 09:13:10 even that is not a good usecase for GCM though Oct 02 09:13:16 I want to build a messaging app on top of that Oct 02 09:13:51 yeah messaging app .. you need a message bus while the user is interacting witht he app Oct 02 09:13:56 before I forget thanks alex_PP for the input Oct 02 09:14:01 like xmpp (easiest to setup with openfire) Oct 02 09:14:14 but I guess this needs a server too Oct 02 09:14:23 just my 2p, not really an expert, but i can read docs like a mofo Oct 02 09:14:29 GCM is like alex_PP said a "Oh by the way here is a single message you missed" Oct 02 09:14:58 How do I use a ContentProvider so that I can get data from my server but save it in SQLite to cache it for the future? Do I use one ContentProvider to do all this? Oct 02 09:14:59 to get the user to interact with your app again at which point the xmpp kicks in again and fetches the messages Oct 02 09:15:10 and from that point continue over the tcp connection Oct 02 09:15:21 yes spinningarrow Oct 02 09:15:29 you still need server connection Oct 02 09:15:34 and a way to get the data Oct 02 09:16:07 okay Oct 02 09:16:15 the data is from a rest ap Oct 02 09:16:16 api* Oct 02 09:16:20 but the data you get from the server you have to place inside the SQLite db using ContentProvider and ContentResolver Oct 02 09:16:44 then have some sort of scheduled task that gets the data from the API or a refresh button Oct 02 09:17:05 jan1337z, its more work to get a messaging app to work propper Oct 02 09:17:14 lemonxah: but the app will get the data from sqlite right? so I need another contentprovider for the app to access the sqlite data? Oct 02 09:17:15 its not a simple app to write Oct 02 09:17:23 no spinningarrow Oct 02 09:17:34 the ContentProvider is the SQLite connection Oct 02 09:17:35 like I said its just a project for the university Oct 02 09:17:42 like a prototype Oct 02 09:17:43 ContentProvider wont get it from API Oct 02 09:18:03 you have to manage the get data from API part and place that in your SQLite via contentprovider Oct 02 09:18:16 lemonxah, when I can just use the rest API to fetch the data Oct 02 09:18:33 ah okay, so I can just get the data from httpclient directly and place it in the sqlite database? Oct 02 09:18:37 yeah jan1337z but a working prototype > almost working sometimes prototype Oct 02 09:19:47 yes spinningarrow but place it int he sqlite db via the contentprovider so that the contentresolvers that use the data gets notified that it changed Oct 02 09:20:05 if you manipulate the sqlite db directly the app wont auto update the content Oct 02 09:20:22 lemonxah: I think I got it now. Thanks once again! Oct 02 09:20:30 no worries Oct 02 09:20:40 I have a question. If I create a service and I run it in a process "private to the application" and the app gets killed, does this service also get killed ? Oct 02 09:21:24 if you have a service that is private to the app why run it in its own price Oct 02 09:21:27 process** Oct 02 09:23:14 lemonxah, your explanation was about xmpp ? Oct 02 09:23:50 any messaging bus you prefer Oct 02 09:24:06 but its quick and easy to setup xmpp and an openfire server Oct 02 09:24:33 but I CANT set up and additional server :D Oct 02 09:24:53 I just have a REST api and I want to make mobile messaging possible for the system Oct 02 09:26:21 which rest API? Oct 02 09:26:30 can you get the messages from this rest? Oct 02 09:26:34 yes Oct 02 09:26:38 if that is all you have then you have to poll the api Oct 02 09:26:40 and ONLY from the rest Oct 02 09:27:02 jan1337z in case you are interested, facebook uses mqtt for their messaging Oct 02 09:27:17 g00s_, thanks for the hint I will read about that Oct 02 09:27:49 by polling you mean like "asking all the time; hey! something new?" Oct 02 09:28:33 agh you mean for the open conversation Oct 02 09:29:09 https://www.facebook.com/notes/facebook-engineering/building-facebook-messenger/10150259350998920?_fb_noscript=1 Oct 02 09:29:29 by polling you mean like "asking all the time; hey! something new?" <-- yes Oct 02 09:29:38 not for the open conv Oct 02 09:29:42 for all conversations Oct 02 09:30:06 by open conv I mean when you are actually using it - not idling Oct 02 09:30:08 if you are not going to setup a new server to handle the messaging then that is the only way to handle it Oct 02 09:30:28 when its idling and you get a message dont you want to be notified? Oct 02 09:30:53 i guess GCM a better idea @ this point, isn't it? Oct 02 09:31:19 g00s_, thanks ! Oct 02 09:31:30 np Oct 02 09:31:52 Then, how do I create a separate process for the service that doesn't depend to the one the other components are using? Oct 02 09:32:00 you're still going to need another server to send the GCM messages though? Oct 02 09:32:12 hello fellows ;) I would like to know if all security fixes submitted in AOSP are automatically applied to my apis if I update them via the SDK Manager. To be more specific. I want to know if the patch for Bug-No.: 9695860 has been merged ..are all of my APIs patchen now after updating or just the latest 4.3 version? Oct 02 09:32:18 or edit the existing serivce Oct 02 09:32:39 alex_PP, I hook that into the send process of the current system Oct 02 09:32:49 i see Oct 02 09:33:04 our platform is open source so thats no problem Oct 02 09:33:58 jan1337z, GCM is not a messaging buss Oct 02 09:34:44 I don't know what a messaging bus is - 1 sec I google it Oct 02 09:34:54 have seen it deliver messages 5 - 20 minutes late Oct 02 09:35:18 cause of high use then google seems to bundle data Oct 02 09:35:21 before it sends it Oct 02 09:36:17 okay I get it now Oct 02 09:36:22 I don't quite understand when it says "If the process name begins with a lowercase character, the service will run in a global process of that name, provided that it has permission to do so." What permission ? :/ Oct 02 09:38:22 @DwordKnight: Here is your answer ;) http://stackoverflow.com/questions/17975248/using-an-exported-service-in-another-app-on-android Oct 02 09:38:50 "This global process will be run as system user and requires to be signed with a platform certificate." Oct 02 09:41:45 a platform certificate, omg I don't know what that is lol. Oct 02 09:41:49 Thanks TheDramatic ! Oct 02 09:42:00 thanks for the thoughts lemonxah Oct 02 09:42:37 I think I can't create a global process without that, and I guess without root. Oct 02 09:43:48 @DwordKnight: Platform specific certificates are those with that apps in /system/app are signed. Without the proper signature you can not install an app into system folder if you are not rooted Oct 02 09:45:11 I'm trying to make a service that can check for the process of the rest of the application and restart it when it gets closed. If the processes of the app and the one from the services are independent, I thought the process of the app disappears when the last element that is in that process (an activity) gets closed. Oct 02 09:45:23 mhh I think I shoudl rethink this problem Oct 02 09:45:23 another question: is there a google voley documentation ? :D Oct 02 09:46:24 hi guys Oct 02 09:46:28 Processes disappear when android needs memory Oct 02 09:46:44 Don't just restart it.. It disappeared for a reason Oct 02 09:47:11 it's not because that, but well youre right Oct 02 09:47:24 even if I close the last component the process may still be alive Oct 02 09:47:25 does anyone know how to generate a heap dump automatically if an android app runs out of memory using MAT in eclipse ? Oct 02 09:47:35 this solution doesn't work Oct 02 09:48:09 i can generate one manually and i know it's possible to do it automatically in eclipse as per the tutorial at http://www.vogella.com/articles/EclipseMemoryAnalyzer/article.html Oct 02 09:48:20 Do anyone have an example on How to send intents for the default Bluetooth Device Chooser app? Oct 02 09:48:39 but i can't find how to do it for an android appp Oct 02 09:48:42 I want to restart an app, when I self update it. downloads the apk, asks the user to install it, and after that, it should restart itself with the last version of the app Oct 02 09:49:00 any help appreciated Oct 02 09:52:45 DwordKnight: Just remember you're only allowed to update apps in play store through play store Oct 02 09:52:59 it's not a playstore app Oct 02 09:53:49 Anyway, multiple processes wouldn't work for what you're doing Oct 02 09:54:01 It's the same app.. All processes are killed when updating Oct 02 09:54:16 anyone? Oct 02 09:54:35 This is what I'm referring to : http://i.troll.ws/144d4f4a.png Oct 02 09:55:14 I see now SimonVT. That's why I was thinking abvout the global process, independent from the one of my app, but its not quite feasible. Oct 02 09:55:53 Hi is there any tool to check all modules executed by manta on clicking on screen Oct 02 09:55:55 @DwordKnight: Hmmm what would happen if you start the service via an AlarmManager like here periodically http://bit.ly/18O4PiG before you upgrade and kill the app? would it also be killed with the app? Oct 02 09:59:27 yes, just setting an alarm to launch my app and then just closing my app (well, my activity) would work but not quite well with this particular app. It takes a while to close, and I don't know quite when it's all done. May be I should create a new structure inside the app, with listeners so when the last thread of the app finishes, sets the alarm and calls finish() Oct 02 10:09:30 Okay, so completely new to android development. Just started...erm....10 minutes back, so quick question: when I use adb install to get the app on my phone, is there an option I can specify to override the app already present? Oct 02 10:11:18 adb install -r Oct 02 10:15:07 SimonVT: Thank you... :) Oct 02 10:22:27 @DwordKnight: another crazy idea..hwo about placing a separate nano package with the service inside the assets of the main app and install it before update. Then the first action of the updated and restarted app should be to uninstall the service. Oct 02 10:26:23 kgtsr wut Oct 02 10:26:45 TheDramatic wut to you too Oct 02 10:26:49 wuut Oct 02 10:26:53 O.o Oct 02 10:29:14 Goos I didn't get wat ur saying Oct 02 10:30:12 kgtsr manta ? Oct 02 10:31:17 Ya its nexus 10 thats the device im experimenting with Oct 02 10:33:30 TheDramatic, seems interesting but I dont't get it. you mean I install it before updating the real app, now this service that is now installed what do you want it to do ? Oct 02 10:34:09 Here is the problem when wifi is turned on it passes a default parameters like channel settings etc to driver I want to intersept it and execute same modiles executed by gui with different parameters Oct 02 10:34:18 I have a master / detail flow view and i want a completely custom view for each item. is this possible ? so far to me it looks like whatever you select on the left just gets parsed as a variable to the Detailed view.... Oct 02 10:41:34 is it appropriate to use a content provider if I do not share my data with other activities? Oct 02 10:41:39 How do I add support libraries to my project? Not using Eclipse. Oct 02 10:41:55 @DwordKnight: I mean if you have to figure out something in your app to separate the RestartAppServiceProcess from MainActivity so it is not getting killed...it maaay be easier to just install another app(package) that does nothing but running the service to restart the app after the upgrade ...install like here http://pastebin.com/vHA6cKKG before upgrade then start it like here: http://pastebin.com/chEAmuAk.... Oct 02 10:43:18 jan1337z other apps? Oct 02 10:43:25 yes Oct 02 10:43:26 sorry Oct 02 10:43:31 sure; i do Oct 02 10:43:42 whats the advantage? Oct 02 10:43:43 set exported=false in the manifest Oct 02 10:44:16 @DwordKnight: If I am not wrong you then can upgrade(reinstall) your app and the RestarterService will remain active until the upgrade is finished. Oct 02 10:44:32 it depends.. if your data model is simple, CP boilerplate can be minimal and you can use existing helper classes like cursorloader Oct 02 10:44:40 but, you may decide its too much a PITA Oct 02 10:45:08 Pita? Oct 02 10:45:16 pain in the ass Oct 02 10:45:20 :D Oct 02 10:46:30 That's an interesting idean TheDramatic I'll see if I can make it work, thanks ! Oct 02 10:47:25 Anyone? Oct 02 10:51:36 @DwordKnight: I am pretty sure it works ;D I think you have to setup the restarterservice to listen to the Broadcasts of the PacketManager. e.g. ACTION_PACKAGE_INSTALL, ACTION_PACKAGE_CHANGED, ACTION_PACKAGE_REPLACED, ACTION_PACKAGE_ADDED. as soon it is broadcasted just start the freshly upgraded app. Oct 02 10:53:38 bump Oct 02 10:57:54 any suggestions ? Oct 02 10:58:41 @Zylinx: Have you already read this http://bit.ly/18OgYnJ? Especially the chapter about "customizing the template" ? Oct 02 10:59:05 i literally had that open this whole time Oct 02 10:59:24 il re-read that section now Oct 02 11:00:15 TheDramatic, are you reffering to "Modifying the WebsiteDetailFragment Class" Oct 02 11:05:00 Do anyone have an example on How to send intents for the default Bluetooth Device Chooser app? Oct 02 11:05:01 This is what I'm referring to : http://i.troll.ws/144d4f4a.png Oct 02 11:06:15 @Zylinx: Actually yes... where is says "All that thyou is change does is find the view with the ID of website_detail"..this is the place where the next view is selected. If I understood you correctly you want to have completely differen views for every item. Oct 02 11:34:37 @Zylinx: Oh I see...what your problem is.... The view to be used when an item is selcted is handed to to LayoutInflater. If you want different view"kinds" to be shown for different items you will have to reinflate the whole root view everytime another item is selected....that is not the stuff MasterDetailFlow is for dude Oct 02 11:39:18 TheDramatic, thanks, i think you where right the first time when you said i want different views for every item. like i select something on the left say contacts it must show a list on the right or if i select say options i need buttons and checkboxes. these are just completely random examples but you get the idea Oct 02 11:39:31 different layout for each item Oct 02 11:40:02 hey guys - i am trying to fix the last issue in my custom scrollview - i am able to pinch zoom everywhere on the image - however, that messes up my boundaries so that i can drag it out of the display - anyone who knows how i might fix that? Oct 02 11:40:16 i know i am most likely supposed to use canvas.translate - however i can not get it to work Oct 02 11:45:12 @Zylinx: yay...this guy here tried exactly what you want http://bit.ly/15IqGeL unfortunately this requires "abusing" the master detail flow. You should definately get into Fragments" Oct 02 11:46:49 @Zylinx: Here is a starting point how to do it the right way http://bit.ly/KVg3rJ Master detail flow template in ADT is to unflexible for your purpose. Do not try to "hack" it to do stuff it is not intended to do. Oct 02 11:54:36 bump..."Does anyone know if the APK verification-extra-fields-bug is fixed in all api versions that are updated by SDK manager by now?" as per this thread on XDAForums http://bit.ly/19UK8Rb Oct 02 11:54:45 hey guys, where am I getting actual screens sizes and densities dashboards? the official one doesn't look relevant Oct 02 12:03:59 Thanks TheDramatic :) Oct 02 12:12:50 @defuera: why do you think that the official is not relevant? of course there are a lot of other sources...statictial institutes for business e.g.... for screensize.just look at the sales of this year http://bit.ly/19ltR6N to see where it all is going to end. combined with this http://bit.ly/GzP0mV you could determine that e.g. a video call app does not need support for screens under 4" Oct 02 12:13:29 how to hide the keyboard after the enter key was pressed on an autocompletetextview? Oct 02 12:19:05 @ohcibi: set an onItemclicklistener to the autocompletetextView an than use getSystemService(Context.INPUT_METHOD_SERVICE) to get the InputManager...it has the method "hideSoftInputFromWindow" ... just give it the windowToken of the View (AutocompleteTextView) that has been clicked. Oct 02 12:19:27 TheDramatic: I tried that, but the keyboard wont hide Oct 02 12:20:43 Hi guys! Oct 02 12:21:11 Where can I see layout references to android apps? Oct 02 12:21:21 ohcibi: well it may be that the keyboard is not attached to the autocompletetextview but with still the view below or somthing. have you tried giving the close method different tokens? Oct 02 12:22:07 TheDramatic: i tried with getwindowtoken() and with gettoken(), i could try it with the layout or so...? Oct 02 12:32:27 ohci: eeeehmm..sorry i wrote onClickListener when i ment onKeyListener listening for the enterkey. http://bit.ly/4z6jT2 first argument when overriding is View v. You should use v.getWindowToken() to feed the hideSoftInpuFromWindow Oct 02 12:34:06 ohci: this only works if you have a hardware keyboard. Oct 02 12:34:11 TheDramatic: i've implemented it in oneditoraction (which I already have).. shouldnt make any difference, no? Oct 02 12:34:37 TheDramatic: why is there a hardware keyboard needed for this to work?? Oct 02 12:36:12 For some reasons the file downloaded with this code becomes larger than the original file. Where did I go wrong? Oct 02 12:36:20 http://pastebin.com/FDtAae0p Oct 02 12:37:31 What's the best way to have one layout for rev 10 and below and another for 11 and up? Oct 02 12:38:00 layout-v10, layout-v11 Oct 02 12:38:26 ohcibi: i dont think if makes any difference. yeah..the only keys the onKeyListener listens to from the softkeyboards in general are ENTER and DEL ...luckily this is exactly what you need. Oct 02 12:38:26 layout for 10 and lower, layout-v11 for 11 and up Oct 02 12:38:52 s/layout-v10/layout/ Oct 02 12:38:58 TheDramatic: nvm, got distracted by autocomplete, which has completed hidesoftinputfrominputmethod Oct 02 12:39:16 what is the best way to connect between device<->web to sync stuff? currently i was using posts with json data (encrypted). Now i plan to write a java server applet. Is this a good way to do another way of communication? best would be to "estabilish" a connection and keep it connected Oct 02 12:39:56 "keep it connected" doesn't happen in the real world Oct 02 12:40:28 it does. Im already using MQTT which is better then google push now.. Oct 02 12:40:45 What i am trying to accomplish is this: multiple list views in a pageview to scroll side to side to allow the user to compare the two listviews... can anyone help me? ive been able to make a listview and a pageview which swipes, but when i try to combine the two I have miserable issues with the baseadapter for the listviews and it keeps complaining and i each time i fix one error it causes another to appear Oct 02 12:40:55 its like "this cannot be static Oct 02 12:40:56 " Oct 02 12:41:17 and then i fix it then its like " this function doesnt exist now" Oct 02 12:41:20 Help please Oct 02 12:41:27 ive been trying to solve this since yesturday Oct 02 12:41:33 the problem is that the current way to sync is async. I send a request to the device using MQTT or GCM and the device connect, send its data, i need to refresh the server several times using ajax requests to see if its done. This is not a good way doing that Oct 02 12:41:38 or find an example of listviews in such an arrangement Oct 02 12:42:14 not quite sure how we can help, is there code you want us to look at? Oct 02 12:42:31 or do you have a question? Oct 02 12:42:51 Nobody found any fault in the logic? Ha Oct 02 12:42:53 it would be very lengthy and messy... im hoping someones done this before or if theres an example somewhere Oct 02 12:43:14 how do i get just the aatp tool? Oct 02 12:43:38 download the SDK and extract the aatp Oct 02 12:44:28 is aatp also included in just the "SDK Tools Only" package? Oct 02 12:44:45 @javanoob: What exactly are you trying to do? Oct 02 12:46:06 JeremieDeNoob: Start over, 2 listViews should neither be length or messy Oct 02 12:46:15 should be included, yes. http://developer.android.com/tools/sdk/tools-notes.html Oct 02 12:46:34 TheDramatic: I'm downloading a file from a http server and auto resuming it with the while loop incase internet gets dc Oct 02 12:46:38 misterli: cool, thx? Oct 02 12:46:50 nseidm1: there could be more than two Oct 02 12:46:59 its from a json file you see Oct 02 12:47:03 s/?/!/ Oct 02 12:48:04 TheDramatic: but in one test the file kept increasing in size, more than it's original size Oct 02 12:49:03 There's some faulty logic. I couldn't find it Oct 02 12:58:41 What's the best way to jump into Android development? I have absolutely no experience with it. Best learning resource? Oct 02 12:59:51 Kaylors know java? Oct 02 13:00:06 javanoob: Yeah, I know java. Oct 02 13:00:24 Kaylors then it will be easy Oct 02 13:00:37 javanoob: Okay, but where do I start? Oct 02 13:01:45 Kaylors there's a help file in android development kit Oct 02 13:01:58 javanoob: Oh please no. That's crap. Oct 02 13:02:11 He he Oct 02 13:03:50 Where can I check the trends about android apps look and feel? Oct 02 13:12:09 Android Design in Action Oct 02 13:12:10 @Kaylors: THis is the best place to start IMHO.....http://www.vogella.com/android.html Oct 02 13:12:36 TheDramatic: Beat you to it a minute ago :) Oct 02 13:12:44 TheDramatic: Still, thanks. Oct 02 13:13:50 misterli: aatp was not included in the sdk tools only, seems system tools are missing (which is kinda strange), but was no problem to install afterwards with sdk manager Oct 02 13:18:58 I don't get it... why can't MediaRecorder tell me why it failed to start? It only says Error 19 "start failed" Oct 02 13:21:22 actually it's error -19 Oct 02 13:21:24 so yeah... Oct 02 13:46:10 how do I import projects from Android Studio to Eclipse? Oct 02 13:48:17 <^cheeky> is it bad practice to save the view position in the viewHolder pattern ? Oct 02 13:56:23 is there a android.R.layout for a standard textview? Oct 02 14:02:47 android.widget.TextView Oct 02 14:03:53 how do I add a superscript to preference activity heading? Oct 02 14:05:34 ^cheeky: sure, if you actually have a purpose of having the position in the viewHolder. Seems a little redundant to me as you retrieve the viewHolder from the convertView and you also are given the position as a parameter Oct 02 14:09:01 <^cheeky> nseidm1: :( i have dug myself in a hole, i think i did earlier because, the first view .. is always shown in some images first and then quickly refreshes to the new image. Oct 02 14:09:55 Don't store the position, it's given to you Oct 02 14:12:45 what is the size of the notification icon seen when you pull down the notification area? Oct 02 14:12:50 it might be useful to know which position is being culled though Oct 02 14:13:03 24x24dp sounds wrong, somehow Oct 02 14:13:26 I use around 48x48 Oct 02 14:13:26 <^cheeky> ok .. i came across, getViewType, i removed the position. but some how i get a null point exception .. even though my object is going to have url field and it not going to be null, is it because, i i have inflated the wrong view. Oct 02 14:14:34 <^cheeky> is this where i would use get viewType, specifying that if its a new convertView been inflated set a type and if its the old one which is not recycled set a different type Oct 02 14:14:35 only override getItemViewType and getViewTypeCount if you have different view types in your adapter Oct 02 14:14:54 if you have a single view type don't override those Oct 02 14:16:02 <^cheeky> nope i only have one gridView Item being inflated from Xml, with a image view and text. Oct 02 14:16:11 then don't override those methods Oct 02 14:18:17 <^cheeky> strange problem i am stuck with :( Oct 02 14:18:46 hi guys, i'm having a little trouble with out of memory error when running my app for a long time. it seems to happen when loading bitmaps Oct 02 14:19:42 you're using too much memory Oct 02 14:19:42 <^cheeky> janmayan77: whats the error, you using a cache of some sort ? Oct 02 14:19:47 you need to use LruCaching Oct 02 14:20:01 and scale your images using inSampleSize Oct 02 14:20:30 http://developer.android.com/training/displaying-bitmaps/load-bitmap.html Oct 02 14:21:57 it's similar to : Oct 02 14:22:04 10-02 15:11:57.939: D/dalvikvm(25026): GC_CONCURRENT freed 8443K, 9% free 119004K/130759K, paused 13ms+31ms, total 152ms Oct 02 14:22:05 10-02 15:11:58.069: D/dalvikvm(25026): GC_FOR_ALLOC freed 3970K, 12% free 116285K/130759K, paused 52ms, total 52ms Oct 02 14:22:06 10-02 15:11:58.139: D/dalvikvm(25026): GC_BEFORE_OOM freed 10K, 12% free 116275K/130759K, paused 62ms, total 62ms Oct 02 14:22:06 10-02 15:11:58.139: E/dalvikvm-heap(25026): Out of memory on a 2462608-byte allocation. Oct 02 14:22:20 what I said is your answer ^ Oct 02 14:22:33 you need to manage memory Oct 02 14:22:40 very well, i'll look into LruCaching Oct 02 14:22:48 Use pastebin next time Oct 02 14:22:52 and check the link.. Oct 02 14:23:02 LruCache: http://developer.android.com/reference/android/util/LruCache.html Oct 02 14:23:04 sure, sorry about that. i'll use paste bin next time Oct 02 14:23:08 thanks for the tips :) Oct 02 14:31:07 hi Oct 02 14:31:29 does any else find that the accelerometer doesn't give the acceleration at sea level at 9.81 ms^2? Oct 02 14:36:01 http://pastie.org/private/tm0xw9t8s80mm9ruwgiahq Oct 02 14:36:05 this is the code that is working Oct 02 14:36:23 and allows me to switch from a pager to a table view using a bool and by switching the rootview oncreate. Oct 02 14:36:35 http://pastie.org/private/woftqhuymqyogquwueuq Oct 02 14:36:42 is the code that does not work and i cant get it to work Oct 02 14:37:22 I may be taking the completely wrong approach also, im brand new at android and so Im trying to do these excersises for learning purposes only, I know that the naming is terrible and its pretty spaghetti Oct 02 14:37:36 theres some stuff from various tutorials and what not. Oct 02 14:41:08 is it incorrect to have an adapter within an adapter like i did? Oct 02 14:41:30 im pretty sure im misusing static methods... amongts other bad practices? Oct 02 14:47:58 Anybody have logs from 2-3 days ago ? Oct 02 14:53:40 <^cheeky> i think i have, i got my compareTo() working properly, as i do not see any duplicates, but i have downloading like 1000 images and displayed the, and i have seen the logCat that is displays the duplicates, but when i scroll down, the first image view always shows in some of the downloaded image, and then quickly changes to the new image, this is why i tried to pass the position of the view to the view holder to get the right image, Oct 02 14:53:40 <^cheeky> the position from the viewHolder object but it still does that weird refreshing of he first view first and then the new ones. Please could some one help me with this issue, i have been stuck on this for quite a while, and i really want to get better at writing code, here is my pastie link : http://pastebin.com/jNZZUenf Oct 02 15:09:55 nseidm1: I posted the pasties above if you can help I would totally appreciate it Oct 02 15:10:46 I kinda wish the emulator didn't look so ugly when it scaled down Oct 02 15:10:48 pity Oct 02 15:10:56 not really possible, of course Oct 02 15:11:08 hi guys, I have a question about updating menu items. I currently have a menu item with the id = counter. I have a viewpager and every time I swipe to a new page I update my counter to say what page i'm on: ex 1,2,3,4,5. Is it bad practice to accomplish the task this way: TextView counter = (TextView) findViewById(R.id.counter); counter.setText(position); ? I feel like this shouldn't be done and it may cause me problems with acti Oct 02 15:18:10 navetz, for display, then setting a textview to the counter seems fine. I wouldn't rely on it on being the one true indicator of the page you're on though (use the viewpager for that, onPageChange) Oct 02 15:18:43 in fact can anyone help me at all please Oct 02 15:19:12 im very noob on android and trying to figure out how to generate a viewpager with tables on each page which are generated from a json. Oct 02 15:19:46 i got the json part working, and the viewpager or listviews working but as soon as i try to combine the listviews with the viewpager all hell breaks lose Oct 02 15:20:01 is there a free/oss alternative to Tasker? Oct 02 15:20:32 Kegsay: it seems to work half the time. I am doing a Log.i("countertext", ""+counter.getText()); and it is returning the correct position but it only updates the actual counter text about half the time in the view pager. Oct 02 15:22:54 navetz, are you using OnPageChangeListener and then updating the textview? If you are, I don't see how what you can describe can happen http://developer.android.com/reference/android/support/v4/view/ViewPager.OnPageChangeListener.html Oct 02 15:23:57 unless you think it's just displaying stale text, in which case you can always invalidate() your view to force it to redraw Oct 02 15:24:51 Ge0rG: see #android for these types of question Oct 02 15:26:02 Kegsay: http://pastebin.com/UbhEnyLN Line 7 and 8 show the correct log Oct 02 15:26:18 Kegsay: ah I didn't know invalidate forced a redraw Oct 02 15:26:24 i think that might be my issue Oct 02 15:27:00 but I don't understand how stale text can happen, is it if my app isn't efficient enough? Oct 02 15:27:45 I'm creating a selector drawable by code I use it in every view created by my adapter for the ListView... the weird thing is that when I click an item of the list I see some OTHER item of the list react to the click Oct 02 15:27:59 anyone experienced something like this or have an idea of what can be? Oct 02 15:29:04 navetz, is that textview static in your layout? If it is, it might as well be a field instead of you invoking findViewById again on it. I'm not sure why it would be stale in this instance, from what you've shown me Oct 02 15:30:20 Kegsay: right that makes sense. And the textview is a MenuItem in the actionbar. I'll update the field Oct 02 15:30:30 mastro, possibly. You may be editing the underlying Drawable perhaps? If so, then anything which references it will also change: http://android-developers.blogspot.co.uk/2009/05/drawable-mutations.html Oct 02 15:33:01 navetz, oh, in the action bar? Ah, that may explain it. I would try invalidate() first to see if it helps, if not, see if invalidateOptionsMenu() helps (although that is the sledgehammer approach since it will remake the entire action bar from scratch, so I would only use that to confirm that it is due to it not refreshing its visible state) Oct 02 15:33:45 Kegsay: okay I'll work on it thanks. Oct 02 15:35:56 Kegsay: what do I call invalidate on? I see invalidateOptionsMenu but not just invalidate. Is that for a view? Oct 02 15:36:16 yes, you would call invalidate() on the textview Oct 02 15:40:26 thanks Oct 02 15:40:33 do wrap_content, match parent, and layout_weight ever make sense? I can't get a simple 4 item linearlayout to look how I want Oct 02 15:43:00 <^cheeky> hi, what do you do if the getItem on your adapter returns null, because, i have added check in my object class to only add it to the field if its no null , so the item is always going to be not null , but in the viewholder , getitem gives a null point exception Oct 02 15:44:55 Kegsay: For my pager adapter I'm using a FragmentStatePagerAdapter. Is it possible the fragments are redrawing the menu? Oct 02 15:45:32 is there a trick to comment out xml attributes inside Oct 02 15:45:36 unlikely, there shouldn't be any coupling between the adapter and the action bar Oct 02 15:46:06 Is there a particular reason why you're using a textview instead of setTitle and setSubtitle btw? Oct 02 15:46:12 Yes, every time a new fragment is shown the menu will be invalidated Oct 02 15:46:43 Ahh well that would explain a lot Oct 02 15:47:07 and no kegsay I plan on changing it to setTitle. Oct 02 15:48:45 Are there any other times the Menu invalidates on it's own? Oct 02 15:49:38 fragments should only invalidate the menu if setHasOptionsMenu(true) is called on the fragment being viewed Oct 02 15:49:41 Any time a fragment is added or removed Oct 02 15:50:08 Yeah, if they have menu items Oct 02 15:53:16 Im in a background thread, how can I wait for the first activity of my app to show up, and run, and etc.. Oct 02 15:53:35 <^cheeky> can i add an object to a ViewHolder .. even if its not of a view type ? Oct 02 15:54:18 Uh, yeah Oct 02 15:54:22 It's a regular class Oct 02 15:54:28 a viewholder is just an arbitrary class Oct 02 15:54:29 There's nothing special about it Oct 02 15:55:08 <^cheeky> i know .. but i dunno why i am getting a null point exception , speccially after fliping through 1200 images in the grid view Oct 02 15:55:30 when was xhdpi introduced? Oct 02 15:55:55 as in, which api version Oct 02 15:56:29 http://developer.android.com/reference/android/util/DisplayMetrics.html#DENSITY_XHIGH Oct 02 15:56:32 9 Oct 02 15:56:57 SimonVT: thanks. so it is reasonable to have different notification icons for xhdpi <11 and for >11 Oct 02 15:57:02 >=11 Oct 02 15:57:15 Sure Oct 02 15:57:49 now where is my original art for the pre-11 icon? bummer. Oct 02 15:58:13 If you can't find it, just drop support for <14 Oct 02 15:58:15 Much easier Oct 02 15:58:26 SimonVT: heh. Oct 02 15:58:43 SimonVT: android:minSdkVersion="3", and I'm proud of it Oct 02 15:59:13 Hopefully not Oct 02 15:59:51 SimonVT: actually, I was just too busy with other stuff to make the app more android4-y Oct 02 16:00:10 I think supporting 8 or 10 is enough. 3 is too old. Oct 02 16:01:04 DwordKnight: I'm with you here, but I have some really exotic users from the old-men department Oct 02 16:02:00 well if you have valuable users with old phones is understandable. Oct 02 16:02:09 Multiple apk's, just don't update the old version Oct 02 16:02:25 SimonVT: yeah, I'll probably fork off <7 as soon as I add ABS Oct 02 16:02:47 supporting 14+ is enough Oct 02 16:02:49 just I can't imagine having lots of users using those android versions lower than 8 :/ the oldest users I know use gingerbread Oct 02 16:02:50 Adding ABS in October 2013... Oct 02 16:02:50 Fork off <14 Oct 02 16:03:01 You're about 2 years too late with adding ABS Oct 02 16:03:47 but first I need to write the iphone port :> Oct 02 16:04:56 By then you'll be 3 years too late with adding ABS Oct 02 16:05:48 lets see how many pre-14 users I have on google play Oct 02 16:06:52 Kegsay: turns out that having it as a textview was the problem. It would update the title on it's own somehow Oct 02 16:07:08 hm.. 26% are cool Oct 02 16:07:26 may it possible that an intentservice get killed by gc/dalvik before really finishing its process? Oct 02 16:08:35 hmm, given a style resourceId how can I get an AttributeSet for it? Oct 02 16:11:04 pfn: https://developer.android.com/reference/android/util/AttributeSet.html has code, tried that? Oct 02 16:11:37 SimonVT, yeah, not exactly what I want, since you can't pass a style resource to getXml Oct 02 16:11:58 Ah Oct 02 16:12:00 basically, I'm being lazy and not wanting to create additional xml layouts for stuff I just want to create in code Oct 02 16:12:25 i.e. I want to new MyCustomView(context, null, R.style.MyApp_Something_Blah) Oct 02 16:12:42 but my custom view never gets anything usable in attrs to process; obviously Oct 02 16:12:45 because it's null Oct 02 16:12:55 so I'd rather take MyApp_Something_Blah and convert it into attrs that I can pass as arg2 Oct 02 16:13:14 Can you not just pass the style to Context#obtainStyledAttributes? Oct 02 16:13:39 it also doesn't apply to super-class attributes Oct 02 16:13:43 which is the other part of what I need Oct 02 16:14:18 since super must be the first call Oct 02 16:14:32 Ah Oct 02 16:14:48 well, I suppose I might be able to super(context, context.obtainStyledAttributes(...)) Oct 02 16:14:50 lets see Oct 02 16:15:02 Naw, that returns a TypedArray Oct 02 16:15:06 Not AttributeSet Oct 02 16:15:10 oh, yeah, right Oct 02 16:15:16 getting ahead of myself, heh Oct 02 16:15:41 yeah, I'll just have to resort to doing it in xml Oct 02 16:15:50 I just hate splitting stuff that logically, to me, doesn't need to be split Oct 02 16:18:21 I'm a bit unsure about Loaders, Handlers etc. Is there a rule of thumb when I'd use those instead of AsyncTask or Services? Oct 02 16:18:30 inb4 'use Thread' Oct 02 16:18:51 AsyncTask is very well documented, while classes like AsyncTaskLoader is not. Oct 02 16:19:06 if whatever you're using can accept a Loader, then use the loader Oct 02 16:19:09 otherwise, not Oct 02 16:19:27 Well, I want to do stuff asynchronously, so I "accept" anything. Oct 02 16:22:18 is it possible to use just a TextView as an action button on the actionbar? Oct 02 16:23:57 hello again. Oct 02 16:24:02 all right ? Oct 02 16:24:43 i encountered a very strange situation regarding the usage of HashMap. May i post my experiences ? Oct 02 16:24:47 it seems loaders work best with cursors Oct 02 16:24:50 * pfn shrugs Oct 02 17:11:25 Hi im using tegra develpment kit to develpoed opengl es applications in Android. and for some reason when I updated the Eclipse plugins, I lost all the sites that are used by eclipse to do updates. how can I recover this sites? Oct 02 17:29:27 When someone clicks the share button on my app I want to update the share intent. Am I allowed to do that in onOptionsItemSelected? Oct 02 17:34:00 Are you using a SharedActionProvider from the ActionBar? Oct 02 17:36:58 nseidm1: I am Oct 02 17:37:38 the only way to update the intent, after selecting where to send it to, is overriding startActivity(intent) Oct 02 17:38:04 nseidm1: I have a viewpager and I want to change or update the share intent to match the page i'm on Oct 02 17:38:10 okay thanks i'll look into it Oct 02 17:38:24 after the selection is made is what I'm referring to Oct 02 17:38:29 before is another story Oct 02 17:38:39 do that in onCreateOptionsMenu Oct 02 17:38:44 and call invalidateOptionsMenu Oct 02 17:38:56 Use fragments in your viewpager, have each fragment provide their own shareactionprovider Oct 02 17:41:44 SimonVT: would I need to implement this in onCreateOptionsMenu of each fragment? Also would that refresh my whole action bar each time I swipe to a new page or just use the fragments shareactionprovider? Oct 02 17:42:22 Yes Oct 02 17:45:32 Could somebody help me with this issue? http://stackoverflow.com/questions/19143334/different-objects Oct 02 17:47:33 I have an activity that's adjustResize whose layout is a relativelayout with a scrollview child containing a form and a framelayout that's layout_alignParentBottom. When the keyboard is shown the framelayout repositions itself correctly, but it covers the bottom form field and the scrollview won't scroll up so you can see the field. Oct 02 17:47:56 I'd guess it's because the scrollview itself fits on the screen fine, so it doesn't think it needs to scroll Oct 02 17:48:18 and it doesn't realize it's being covered up by the framelayout Oct 02 17:48:57 anyone have an idea on how to get that functionality? framelayout stuck to the bottom with keyboard open or closed and a form that can scroll underneath it. Oct 02 17:49:26 heya, I'm doing some GPS experiments, where I need to be in control of when the GPS request is sent. For this purpose I have employed a separate thread to be in control of the delays. This gives me exceptions telling me to use Looper prepare, but I'm not sure how to use it properly. Oct 02 17:50:01 normally I'd have a while (running) in my run to keep the code repeat until I don't need it, should I put my looper there, or? Oct 02 17:50:27 none of the examples I find have a while-loop, but when testing this the code runs once, as expected Oct 02 17:51:14 hey guys Oct 02 17:51:39 if I need to initialize a scrollview to start at a certain position, where's the best place to call that in a Fragment's lifecycle? Oct 02 17:52:01 right now I have it in onCreateView, which fails because the ScrollView hasn't been layed out yet Oct 02 17:52:27 the person who coded this before overrode the scrollTo function to deal with that, so it would be taken care of in his overridden onLayout Oct 02 17:52:33 I feel like there's a better solution here. Oct 02 17:52:33 HorizonXP: onViewCreated Oct 02 17:53:41 caseycrites: i feel like I tried that, but let me try again. Oct 02 17:54:07 HorizonXP: Attach a OnGlobalLayoutListener in onCreateView, scroll on onGlobalLayout() Oct 02 17:54:19 Detach the listener in onGlobalLayout as well Oct 02 17:54:59 also that ;) Oct 02 17:56:26 HorizonXP, like this: http://pastebin.com/aUr6jkuL Oct 02 17:57:51 HorizonXP: I'd use OnLayoutChangedListener which is a callback for onLayout for the specific view in question. When this callback get's hit the viewgroup's children have been drawn Oct 02 17:58:54 or just use onActivityCreated Oct 02 18:01:05 SimonVT: that's not a bad solution at all. Oct 02 18:01:15 OnLayoutChangeListener is api11, onActivityCreated has nothing to do with whether the viewhierarchy has been drawn or not Oct 02 18:02:54 SimonVT: I notice that ViewTreeObserver has a focus listener method as well; would that allow you to determine whether the user has interacted with widgets in your view tree? Oct 02 18:03:00 (this is for a separate problem.) Oct 02 18:04:43 Could a kindly soul point me to docs on how to run "ant test" in parallel on multiple emulator/devices, if this is possible? Ideally, I'd like to start multiple emulators + devices, run "ant test" on all of them and get the results all at once. [I see http://square.github.io/spoon/ - any simpler alternatives?] Oct 02 18:05:20 From looking at it, I wouldn't think so Oct 02 18:05:37 It's probably for something like if another window covers the view hierarchys window Oct 02 18:05:39 Like a dialog Oct 02 18:05:48 But I don't know, never used it Oct 02 18:13:19 ah, looks like all I had to do was tell the scroll view layout_above="@id/my_frame" Oct 02 18:13:21 weeee Oct 02 18:20:48 Live long RelativeLayout, live long Oct 02 18:28:39 Is anyone here familiar with profiling on Android? Oct 02 18:32:02 hello whats FLAG_ACTIVITY_MULTIPLE_TASK means on android intent option ? Oct 02 18:34:01 hello Oct 02 18:34:22 should i use java or an html5 sdk ? Oct 02 18:34:54 baluse , it depends on what u want Oct 02 18:35:28 html5 doesnt give you much flexiblity as native app Oct 02 18:35:51 if u want to access system datas , sensors and speed Oct 02 18:35:55 use native java Oct 02 18:36:12 for simple db tasks use html5 Oct 02 18:36:44 and if you want to hide your source code more , use native Oct 02 18:37:08 also if you want to earn more money $$$ for android market , use java... Oct 02 18:38:46 hehe Oct 02 18:38:50 i want performance Oct 02 18:38:57 so use native android Oct 02 18:39:06 and network tolerance to disconnects Oct 02 18:39:16 you can make abstract classes to make cross platform java app android and openjdk compatible Oct 02 18:39:19 so i will stick with java Oct 02 18:39:28 seperate services with guis Oct 02 18:39:36 however html5 ui is far better than java Oct 02 18:39:44 nah... Oct 02 18:39:48 but there are performance issues Oct 02 18:39:51 JavaFX has best UI on market now Oct 02 18:40:05 html5 doesn't even really have a UI Oct 02 18:40:08 havent tried javafx yet Oct 02 18:40:18 it has some UI elements, embedded in a webpage Oct 02 18:40:19 it has 3d Gui including camera control on gui!!! Oct 02 18:40:27 i have tried windows forms and wpf. wpf is slow Oct 02 18:40:28 transparent video display system on javafx Oct 02 18:40:44 JavaFX is best UI now Oct 02 18:40:59 then silverlight comes Oct 02 18:41:49 ihave you tried wpf? Oct 02 18:42:25 honestly, Android's UI is one of the better ones out there :P Oct 02 18:42:28 silver light has it Oct 02 18:42:35 nah JavaFX is best now Oct 02 18:42:47 3d sounds stupid Oct 02 18:43:09 pppppoo0pp Oct 02 18:43:10 especially for a mobile device Oct 02 18:51:06 hey, have u guys ever used an in-memory image cache for drawable resources? like ones from your res directory? doesn't seem neccisary to me Oct 02 19:01:20 yes, I use it. Simplest to use LRUCache, and it reduces jankiness in listviews. Oct 02 19:02:10 well, actually - not drawable resources; but things within assets that get loaded into listviews. Oct 02 19:02:49 right, this is just for drawables Oct 02 19:03:06 like icons and stuff Oct 02 19:03:18 How many and big are we talking? Oct 02 19:03:27 Wavesonics: yep :-) realized what you meant right after I wrote, so clarified my situation at least. Oct 02 19:03:53 so, no then? Oct 02 19:04:13 I wounder if it's a disk hit when u set an ImageView by resource id Oct 02 19:04:25 if so it'd be worth it Oct 02 19:05:28 "depends", I guess. I've found caching bitmaps is helpful when there are a large number of choices, and they are used within listviews (which keep swapping them in and out of an underlying imageview.) Otherwise, you pay the disk penalty hit once; and unless it's so big that it stalls the main thread, probably not worth obsessing over Oct 02 19:06:43 ya, these are in list views, but pretty small Oct 02 19:07:51 Yeah, it's a disk hit. Drawables are cached tho (with a WeakReference) Oct 02 19:08:27 what's the easiest way to look at traffic android apps produce? Oct 02 19:08:32 <^cheeky> if you use DISKLRU and LRU memory cache .. when would you clear the cache ? Oct 02 19:08:44 ideally producing a pcap file :) Oct 02 19:11:31 So Chromecast... Oct 02 19:11:42 Can I stream live video from the device to the Chromecast receiver? Oct 02 19:11:51 supposedly yes Oct 02 19:12:06 Didnt they close that? Oct 02 19:14:14 SimonVT: it was touted as a feature, so I don't think so Oct 02 19:14:42 Is there a place I can find more documentation on this? Oct 02 19:14:50 I'veb een told it doesn't work for streaming live Oct 02 19:14:53 :-/ Oct 02 19:15:13 svm_invictvs: no idea Oct 02 19:15:20 But then I read that it did, so I'mt rying to figure out what the answer is... Oct 02 19:15:23 heh Oct 02 19:15:27 p_l: Didn't someone make an app to stream video files from device to chromecast, after which they patched chromecast to disallow it? Oct 02 19:15:30 I recall that Chrome was supposed to have livestreaming support to chromecast Oct 02 19:16:03 SimonVT: haven't heard anything like that, but I didn't follow too closely. It might have been that the approach was outside the official API Oct 02 19:16:22 Wasn't it just desktop chrome you could stream to it? Oct 02 19:16:56 SimonVT: yes, but it didn't use any special APIs Oct 02 19:18:30 guys I am trying to set spinner value by name. So far I only found one way how to do that and that is through accessing adapter. Any other way ? Not sure why spinner doesnt have selectByValue method. Oct 02 19:22:03 Without having looked at the API at all, I'm sure they patched chromecast at one point to disallow streaming directly from a device Oct 02 19:22:58 hm, every time i think i could use a NumberPicker, i wonder if i should just use a plain textView instead Oct 02 19:23:34 for example, picking a tcp port … textview or numberpicker? Oct 02 19:24:07 edittext Oct 02 19:24:13 yeah,too much range Oct 02 19:24:28 NumberPicker works for small lists Oct 02 19:26:48 <^cheeky> fag case to 35.22 MB for 230416-byte allocation .. for a grdiview that endlessly scrolled over 3292 images scaled down? Oct 02 19:27:57 I'm pretty sure it's "frag". Oct 02 19:28:02 <^cheeky> *sorry Frag Oct 02 19:28:06 <^cheeky> yeah my bad Oct 02 19:30:36 <^cheeky> ok 4719 ... images :/ Oct 02 19:30:38 <^cheeky> :( Oct 02 19:31:01 <^cheeky> i was told here that an app would be around 11 - 14 mb .. Oct 02 19:31:54 I was told if you dream of the next world. You'll find yourself swimming in a lake of fire! Oct 02 19:33:15 can you make your app use the same view weather it's horizontal or vertical ? Oct 02 19:36:46 navetz: yes Oct 02 19:37:16 f2prateek: Would I do that in my manifest? Oct 02 19:37:45 just set the view (setContentView for activity) and you're done Oct 02 19:37:58 <^cheeky> g00s_: so .. having your app allocate that much memory is bad ? Oct 02 19:38:28 <^cheeky> i wasnt trying to point at anyone i just dunno if i am doing it right Oct 02 19:38:55 ^cheeky i'm not good with bitmaps under android; historically a tricky area Oct 02 19:39:37 <^cheeky> oh why oh why .. did i chose this as a stater project :/ Oct 02 19:39:39 <^cheeky> :( Oct 02 19:42:17 As long as you don't keep all of them in memory at once Oct 02 19:45:09 4.7k images is a lot tho.. Doesn't sound useful to have them all in one list Oct 02 19:46:54 <^cheeky> well i kept on, scrolling and i 5617 images :( with my heap grown to a size of 39.460 mb Oct 02 19:47:54 I got this error "Found 2 versions of android-support-v4.jar in the dependency list, but not all the versions are identical (check is based on SHA-1 only at this time)." Oct 02 19:48:04 <^cheeky> wow my phone is getting hottttt!!! Oct 02 19:48:17 goodwin: replace all the copies with the newest version and you should be good Oct 02 19:49:19 so don't have 2 versions of support-v4 in the dep list Oct 02 19:49:38 exclude transitive dependencies on support-v4 for all libraries you pull from maven central Oct 02 19:49:41 SimonVT, Drawables are cached in memory behind the scenes? Oct 02 19:49:55 Wavesonics: Yep Oct 02 19:50:02 Using WeakReferences, mind you Oct 02 19:50:04 awesome, thats what i needed to know Oct 02 19:50:06 <^cheeky> i dont want people to hate android, coz people like me release apps, i like android too much Oct 02 19:50:19 RyanM: how do i kow which one is the newest version? Oct 02 19:50:28 What was the consensus again, ArrayAdapter yay or nay? Oct 02 19:50:35 kakazza, depends on what you're doing Oct 02 19:50:40 if it's just a stupid array, then use array adapter Oct 02 19:50:51 For a simple list of strings, yay Oct 02 19:50:52 and your toString is enough Oct 02 19:50:55 That's what it's for Oct 02 19:50:56 goodwin: are you using Maven or just Eclipse or something? Oct 02 19:51:08 RyanM: Eclipse Oct 02 19:52:18 It's an ArrayList of an object which contains a String and a long. Oct 02 19:52:30 Name of file, last modified (as long). Oct 02 19:52:33 goodwin: just replace them all with extras/android/support/v4/android-support-v4.jar from your SDK dir Oct 02 19:53:24 If you have to override getView, then it's most likely a nay Oct 02 19:53:37 I do. Oct 02 19:53:48 having to override getView means don't bother with ArrayAdapter Oct 02 19:53:53 Is there just no need to do it, or is there a disadvantage? Oct 02 19:54:21 RyanM: v4 v7 or v13? Oct 02 19:54:23 there's no advantage to using arrayadapter Oct 02 19:54:30 goodwin, usually just need v4 Oct 02 19:54:38 and v7 is not a support version Oct 02 19:55:36 as I said, v4 Oct 02 19:56:20 So how do I feed the BaseAdapter the data? With ArrayAdapter I passed the Array of course. Oct 02 19:56:29 So do that Oct 02 19:56:32 you don't feed it data, you are the data Oct 02 19:57:26 thanks. works now:) Oct 02 19:59:29 Hello, I need to get events from ACTION_MEDIA_BUTTON, but my BroadcastReceiver class is inside (nested) my activity, can this be done? Oct 02 19:59:52 guys I am trying to set spinner value by name. So far I only found one way how to do that and that is through accessing adapter. Any other way ? Not sure why spinner doesnt have selectByValue method. Oct 02 20:05:17 Trudko: spinners get data from an adapter Oct 02 20:05:28 I am getting these little lint warnings, field requires api 14 (current min 11) I originall set it to 11 but then raised to 14 in the manifest. why do I still get a warning? Oct 02 20:06:03 nevermind I had two projects open Oct 02 20:06:20 seems like whenever I finally give up and ask here I figure something out Oct 02 20:06:29 that's how it always is Oct 02 20:06:36 :) Oct 02 20:06:43 asking questions aloud changes everything Oct 02 20:10:14 what's the trick to getting the chevron to turn off on a custom home button icon? Oct 02 20:13:41 nseidm1: ok? and ? Oct 02 20:13:45 ok and ? Oct 02 20:13:58 tnzr: setHomeUpButtonEnabled or whatever Oct 02 20:14:03 <[A3G1S]> hi guys Oct 02 20:14:44 tnzr: ActionBar#setDisplayHomeAsUpEnabled(boolean) Oct 02 20:15:27 yeah that's not working :( Oct 02 20:15:32 <[A3G1S]> I am running an app as system app but still not able to take screenshots… Oct 02 20:15:40 wondering where I might be re-enabling it in a style or something somewhere Oct 02 20:15:55 <[A3G1S]> bad thing is I am not even getting any errors Oct 02 20:16:04 ok, i resorted to install openvpn on the phone and routed all the traffic over my laptop for inspection Oct 02 20:16:19 is there really no easier way to inspect traffic of an android app? Oct 02 20:17:35 gebi: just setup a proxy server, charles, fiddler, etc... Oct 02 20:17:59 nseidm1: and all connections respect the proxy? (tcp/udp and http(s)? Oct 02 20:18:37 that's how I do it, never had an issue seeing the data I was looking for Oct 02 20:19:42 i need to see tcp traffic too, not only http Oct 02 20:19:51 but thx for the pointer, for http(s) a proxy should do fine Oct 02 20:22:23 nseidm1: i know that it uses adapter my point was if i have to access it my self if I want to set value by name and not by position Oct 02 20:22:59 you can change the data backing the adapter by name, by position, by whatever Oct 02 20:23:21 is there a method to find out if your app has used the splitActionBar and is this method compatible with actionbarsherlock ? Oct 02 20:23:45 nseidm1: so your answer to my question is not, i have to access adapter on my own? Oct 02 20:23:59 you have 2 options Oct 02 20:24:19 1) modify the data backing the adapter Oct 02 20:24:30 2) make a custom spinner however you want to make it Oct 02 20:24:47 quite a simple view structure Oct 02 20:24:56 a simple textview, and a popup window Oct 02 20:25:05 the popup window has a listview Oct 02 20:25:19 but... hmmm... the listview will be backed by an adapter Oct 02 20:25:30 hence the adapter that the spinner takes Oct 02 20:25:37 nseidm1: yeah i will have to implement something on my own. I am bit supprised thought select by value seems like good way how to set spinner , similiar like you do it with html select Oct 02 20:26:14 I think they need to change how html select works to select by position Oct 02 20:26:38 would make more sense that way Oct 02 20:27:21 why do you say that? Oct 02 20:27:46 so you can recycle a fixed set of views and update the views relative to the position Oct 02 20:29:59 Hi, I just copied a project to another folder, and renamed it. The project is building and running fine after several issues I had. The problem now is that the application top bar (app running) has the old app name... I have searched for any reference to the old name in the new project files and nothing, I have no clue where it is reading that name. I have also deleted the old project... Any tips? Thanks Oct 02 20:30:26 android:title in the application tag in your manifest Oct 02 20:30:50 android:label Oct 02 20:34:13 nseidm1, what would I do without this community? Thanks a lot mate! Oct 02 20:34:15 hm, taskwarrior may be a useful personal defect tracking system :) Oct 02 20:44:42 weird, AS keeps building an apk with missing resources Oct 02 20:44:48 hmm Oct 02 20:56:31 because it's awesome Oct 02 20:56:42 mmmm, another espresso, so yummy Oct 02 20:57:43 NoClassDefFoundError Oct 02 20:58:01 fix0rs it Oct 02 20:58:12 I checked ManiFest.xml it is there Oct 02 20:58:48 manifest.xml doesn't make classes appear out of nowhere Oct 02 21:08:04 yeah, AS is pretty awesome :) Oct 02 21:14:57 when android rotates the app does it call onCreate() again? Oct 02 21:16:52 yes Oct 02 21:16:59 navetz: yes - by default the activity is destroyed and recreated (hence, oncreate() et.) Oct 02 21:17:52 kbs: does this happen to all your fragments too? Oct 02 21:20:18 if I move a button up in my simple linearlayout I crash with TextView cannot be cast to EditText Oct 02 21:20:44 I have just 4 widgets in it button, text, edit, button Oct 02 21:22:21 cannot copy/paste logcat messages in Eclipse Oct 02 21:25:31 Hi. I want to handle MotionEvents. It is my understanding that I'll need a custom View for that. And setContentView(R.layout.activity_main); internally creates a view from the XML file. I could also supply the View I want, but I'd like to keep the XML file, so how do I inflate the layout like setContentView() does, except using a custom View? Oct 02 21:25:38 goodwin: you can save it to txt Oct 02 21:26:19 does anyone have experience with fragmentStatePagerAdapter? I am using it and everytime I rotate my screen the app crashes. If anyone could give me some tips on rotating a fragment adapter that would be great Oct 02 21:26:51 ok it got this error. Failure 1 (near "order": syntax error) on 0x312d00 when preparing 'create table order(_id integer primary key autoincrement, date integer not null, customerid integer not null, ordertotal real not null);'. Oct 02 21:27:17 I knew it. it wasn't rebuilding or something. once I just changed the id names it worked Oct 02 21:33:08 navetz: stack trace Oct 02 21:33:40 bankai_: what is that? Oct 02 21:33:48 bankai_: nvm sorry Oct 02 21:33:51 bankai_: read it wrong Oct 02 21:37:57 Question: I have a checkable compound view containing several children (including a Checkbox). How do I prevent the checkbox from intercepting touch events Oct 02 21:38:15 So that all of them go through the 'parent' (not sure if parent is the right word with compound views) Oct 02 21:40:49 http://developer.android.com/guide/topics/ui/ui-events.html#EventHandlers Oct 02 21:42:43 bankai_, so I just set the OnTouchListener? Oct 02 21:42:57 Makes sense Oct 02 21:42:57 how can I send an intent from my app to the calendar to open up the Menu->search inside it? Oct 02 21:43:22 I found out how to send an intent to make a new calendar entry, that part works Oct 02 21:49:43 android studio why you so messed up Oct 02 21:50:20 I downloaded an icon pack. what is the best way to use them with my project? copy each one individually to res/drawable-xxhdpi, etc? Oct 02 21:51:19 zmuser3 that works. if you are using gradle, you could add a res-3rdparty/ tree to your resource dirs Oct 02 21:51:34 and put obtained 3rd party stuff you didn't author in there Oct 02 21:51:42 ok Oct 02 21:59:14 oy, I hate strict json parsers that don't let me have trailing , Oct 02 22:08:10 is the dev console 500ering for any1 else? Oct 02 22:09:14 looks good to me Oct 02 22:09:36 :S Oct 02 22:09:44 jug6ernaut lot's of problems going on Oct 02 22:09:47 market down Oct 02 22:09:54 FernandoMiguel oh ok, thx. Oct 02 22:10:47 * jug6ernaut_ just checked his bank account and discovered he hasn't gotten a google payment in 4 months Oct 02 22:10:53 * jug6ernaut_ is like WTF... Oct 02 22:12:27 do they 1099 you? Oct 02 22:12:40 1099? Oct 02 22:13:01 do they report it to the government somehow for tax purposes Oct 02 22:13:06 what you sold on the market Oct 02 22:13:22 don't think so Oct 02 22:13:31 pretty sure its up to the devs to disclose it Oct 02 22:13:36 ok Oct 02 22:24:37 I'm trying to figure out how to get webview to not hold onto references to images. Any hints? Oct 02 22:25:31 Hi guys Oct 02 22:28:30 How can I retrieve folders name and the number of images it contains, using MediaStore with cursos? I've been looking for a solution but all I got is to retrieve ALL images with MediaStore.Images.Media.BUCKET_DISPLAY_NAME and MediaStore.Images.Media.DATA as projections, and then loop over all items (about 1500 in my case) and filters to arrayList. Is there any direct way to do this more Oct 02 22:28:31 effective? I only need folder names (BUCKET_DISPLAY_NAME) and the number of images on it. Thanks!! Oct 02 22:37:39 is there an idiomatic convention to designating required fields on forms? i thought a red star like most web sites; don't see anything else Oct 02 22:38:11 would be kinda cool if EditText had .isRequired() which put a little drawable there or something Oct 02 22:59:15 g00s, there is something like that Oct 02 22:59:45 i suppose i could add a textWatcher and just setError on everything, but that seems alarming at first Oct 02 23:00:03 big red exclamations :) Oct 02 23:00:03 yeah that :P Oct 02 23:01:00 canadiancow have you seen an adopted convention? i use setError, but only after the user is submitting the form Oct 02 23:01:39 ok it got this error. Failure 1 (near "order": syntax error) on 0x312d00 when preparing 'create table order(_id integer primary key autoincrement, date integer not null, customerid integer not null, ordertotal real not null);'. Oct 02 23:02:01 g00s: http://24.media.tumblr.com/edb96e247bafe74ebadd96f951cb54a8/tumblr_mu0ixwh9hC1r0vq4ro1_500.jpg xD Oct 02 23:02:36 p_l heh, whats that from Oct 02 23:02:46 oh! Oct 02 23:02:51 government shutdown ;) Oct 02 23:03:27 it'd be more hilarious if UK had a more capable navy ;) Oct 02 23:04:10 they could if they didn't spend all their money on CCTVs Oct 02 23:04:28 g00s: nah, the majority of CCTVs is private Oct 02 23:04:34 that is, inside various shops and such Oct 02 23:04:45 City of London is similarly a corporation ;) Oct 02 23:12:01 g00s, i have not Oct 02 23:12:07 i really only know of one place i've seen it Oct 02 23:37:20 hm, happened again. so using genymotion, adb connect shows the vm; adb logcat shows the logs - but AS just looses contact with it. 'adb connect' says already connected. anyone have a tip ? Oct 02 23:39:24 flipping 'enable adb integration' under AS -> Tools didn't help :( Oct 02 23:39:50 how can I get a TextView with vertical scroll bars to allow scrolling a bit further than until the bottom of the last line is at the bottom edge, so that the line at the top isn't half cut off? Oct 02 23:39:55 so weird, listed in the AS device chooser - just no effing logs Oct 02 23:40:00 (and no filter) Oct 02 23:41:01 Clicking 'Clear Log' shows popup "Android logcat error: Error device not found" Oct 02 23:43:57 <^cheeky> hmm today was a good day .... finally i can sort stuff :)) Oct 02 23:49:24 Is there a way to get the theme's active icon color? For example, on my Android 4.1, If I enable wifi from the notifications menu/screen, the icon changes color from gray(ish) to blue Oct 02 23:49:42 Hey guys, what is your opinion of WD's My Passport external HD 1TB+? ok or faulty? better off buying plugable with a separate naked hd? Oct 02 23:51:35 Yeah, let's ask the android developers. Oct 02 23:51:39 o.O Oct 03 00:16:16 is there a settingsLayout or some standard way to do settings? Oct 03 00:16:46 settings for my app, not system settings Oct 03 00:18:24 http://developer.android.com/reference/android/preference/PreferenceFragment.html Oct 03 00:18:36 ok thanks Oct 03 00:57:28 how do i simply create a date/dateofrmat object where i specify the date Oct 03 00:57:41 new Date("2013, "10", "2") is deprecated Oct 03 00:57:43 wtff Oct 03 00:58:49 As the docs clearly say, use a Calendar/GregorianCalendar. Oct 03 00:59:19 and don't forget to set the locale like some idiot over here learnt the hard way :) Oct 03 00:59:48 that reminds me of bug I had with one program Oct 03 01:00:01 it broke in other countries, making invalid obj files Oct 03 01:00:25 obj files? Oct 03 01:00:25 well basically OBJ format expects . for decimcals Oct 03 01:00:39 yeah 3d format model files Oct 03 01:00:57 by 'other countries' do you mean 'germany' ? lol Oct 03 01:01:01 why does a 3d model file need a date? Oct 03 01:01:07 it was one liner fix, just set region to usa Oct 03 01:01:18 date? Oct 03 01:01:33 I didnt say anything about date Oct 03 01:01:42 we were talking about dates. Oct 03 01:02:24 how am I supposed to know that you saw "locale" and started babbling about numbers rather than dates? Oct 03 01:02:36 I was talking with bankai Oct 03 01:02:47 GregorianCalendar? really? Oct 03 01:03:05 bankai_ was referring to dates, as well. Oct 03 01:03:28 dates is part of locale, but so are number formats Oct 03 01:03:42 yes, but we were referring to a specific context already -- forget it. Oct 03 01:04:03 well you didnt see what I said - "that reminds me of.." Oct 03 01:04:32 yes, I did. and I assumed you were still speaking within the context of the subject that was established. Oct 03 01:04:48 fine. one topic a time in here Oct 03 01:04:50 anyway, forget it. it's boring arguing about how woefully conversationally inept you are. Oct 03 01:04:54 GregorianCalendarAKATheMostWIdelyAcceptedCivilCalendar() Oct 03 01:04:56 lest name it that Oct 03 01:04:57 and it cannot be changed forever Oct 03 01:05:00 why not name it that Oct 03 01:06:41 FrenchRevolutionaryCalendar() Oct 03 01:07:28 Today's date: 11 Vendémiaire CCXXII Oct 03 01:07:52 is it possible to affect the direction a spinner provides options. I noticed the other day when i changed the textview options, because the text is bigger and the keyboard gets in the way, my spinner provides options above, instead of below the spinner Oct 03 01:08:00 the date system sucks Oct 03 01:08:07 I mean, it alterates between 30 and 31 days Oct 03 01:08:19 except one month. which sometimes shortens itself Oct 03 01:08:29 don't forget that february can have 28 or 29 days, and leap years and leap seconds and allt hat Oct 03 01:08:30 and restores of course Oct 03 01:08:47 And July and August are both 31 days Oct 03 01:08:53 ultimately we live in analog world Oct 03 01:09:18 Date doesn't do any computations for these things, which is why it's deprecated. Oct 03 01:09:25 ultimately dates are those annoying things that when handled logically right don't make sense to laymen and only confuse them Oct 03 01:10:51 It'd be simpler to just take a day of year as the date. "Hey, what's teh date?" "It's 275." Oct 03 01:12:07 php has a thing called uhm Oct 03 01:12:11 strtotime() Oct 03 01:12:20 http://us1.php.net/strtotime Oct 03 01:12:23 its pretty amazing actually Oct 03 01:12:31 you can put like "3 sundays from now" Oct 03 01:12:56 and itll surprisingly figure it out Oct 03 01:12:59 pgsql has something similar Oct 03 01:13:03 Can you put "two fortnights after the werewolf transforms"? Oct 03 01:13:09 fortnight Oct 03 01:13:10 awesome idea Oct 03 01:13:11 let me test Oct 03 01:13:25 * pragma- notes with bemusement that the werewolf part went unnoticed. Oct 03 01:13:55 acidjazz: I'd suggest you look up "remind". A curious little piece of software that boasts (and afaik backs it up) about being one of the few programs out there that do full scope of date handling correctly Oct 03 01:14:14 databases sometimes for example offer only estimates when you want a difference between two timestamps :> Oct 03 01:15:58 Date("Y-m-d", strtotime('2 sundays from now')); -> 2013-10-13 Oct 03 01:16:20 hah nope Oct 03 01:16:54 1970-01-01 Oct 03 01:16:56 no fortnighting Oct 03 01:17:20 `at` lets you specify 'teatime' (4pm) Oct 03 01:17:32 p_l: the trick is to just stay UTC until you get to your client.. bea phone or a browser.. imho Oct 03 01:18:22 acidjazz: the estimation happens because some databases consider every month to have 30 days Oct 03 01:18:28 UTC doesn't save you:> Oct 03 01:18:44 also, even on systems that are fully UTC, leap seconds can crash whole clusters Oct 03 01:18:52 pragma-: lol it worked Oct 03 01:19:08 Date("Y-m-d", strtotime("now +2 fortnights")); 2013-10-31 Oct 03 01:19:31 what about teatime? Oct 03 01:19:53 fortnight is very common in english speaking places that aren't the US Oct 03 01:20:05 nope.. 1970 Oct 03 01:20:52 p_l: thats just bad programming Oct 03 01:23:37 n.b., databases are sometimes fun when it comes to dates. Especially to younghorns that expect everything to use unix timestamps :> Oct 03 01:24:24 some googling and tinkering led me to writing (for friends) things like that: CREATE OR REPLACE FUNCTION UNIX_TIMESTAMP (DB2TIME TIMESTAMP) RETURNS INTEGER LANGUAGE SQL CONTAINS SQL DETERMINISTIC RETURN CAST (DAYS(DB2TIME) - DAYS('1970-01-01') AS INTEGER) * 86400 + MIDNIGHT_SECONDS(DB2TIME - CURRENT TIMEZONE) Oct 03 01:25:04 p_l: thats insane Oct 03 01:25:22 p_l: mongodate ftw Oct 03 01:25:45 lol how do i bring my logcat down in AS when i drag it up too hight Oct 03 01:25:50 well, at least this database won't randomly drop data like mongo ;) Oct 03 01:26:03 really is that what mongo does Oct 03 01:26:15 whered you read it randomly drops data Oct 03 01:26:36 acidjazz: it's ridiculously easy to get it to do so, iirc, unless you sacrifice all that Oct 03 01:26:39 "speed" Oct 03 01:26:58 if you're talking about a specific issue before 2.x which i think you are.. thats years old.. that was mainly a bad configuration Oct 03 01:27:29 heh, talking about mongodb? just read http://use-the-index-luke.com/blog/2013-10-01/mysql-is-to-sql-like-mongodb-to-nosql Oct 03 01:27:32 then again, unless you have sharded cluster (where Mongo tends to crash as well), PostgreSQL is faster, and probably with (properly) clustered postgres it's faster in cluster configs Oct 03 01:27:35 trust me mogo is doing quite well.. and esp after 2.x is scaling beautifully Oct 03 01:27:36 sounds like a piece of crap Oct 03 01:27:53 its awesome Oct 03 01:27:56 look at craigslist Oct 03 01:27:56 If I truly wanted a well scaling nosql... at some point I'd call IBM :) Oct 03 01:28:02 tehyre at 13bil records .. all mongo now. Oct 03 01:28:09 acidjazz: 13billion? Oct 03 01:28:14 sounds like a laptop demo ;) Oct 03 01:28:25 mongos growing ridiculousely fast Oct 03 01:28:32 and its saved my ass plenty of times Oct 03 01:29:26 coming from mysql for 13+ years or so Oct 03 01:29:34 last nosql database I've used more seriously was... hmm... AllegroGraph. But that one is for different kind of scaling than lolspeed, though iirc it's the current reigning king in its category Oct 03 01:29:43 ... mysql is no benchmark, seriously Oct 03 01:31:02 the mongo gridfs is pretty awesome.. mapreduce functinoality is pretty awesome as well Oct 03 01:31:14 alot of the 2.x stuff makes sharding soo much easier Oct 03 01:31:26 what about cluster failure recovery? Oct 03 01:31:38 oh and hte geospacial indexsing is epic Oct 03 01:32:01 thats like asking what about hte mongo memory fail recovery Oct 03 01:32:02 i still wonder if nosql is mostly a fad Oct 03 01:32:29 g00s: yea that whole google DB will die pretty soon Oct 03 01:32:43 their new F1 is actually SQL Oct 03 01:33:10 g00s: the ones who call it "nosql" are related to fad. In big setups things like that has been in use since 70s Oct 03 01:33:14 it uses sql g00s Oct 03 01:33:20 so people can easily use it Oct 03 01:33:56 and i think taht was invented for ad ppl to get ad stats Oct 03 01:34:19 yea nosql is just a term Oct 03 01:34:57 actually, the oldest surviving proper database that doesn't use SQL nor relational model and is still in heavy use is completely unrelated to all the hype and fad Oct 03 01:35:05 ... and rakes huuugeee amounts of money Oct 03 01:35:27 you wanna see sweet db arch as well.. Oct 03 01:35:28 p_l which one ? Oct 03 01:35:29 check out mmo's Oct 03 01:35:35 and their setup Oct 03 01:35:45 g00s: IBM IMS Oct 03 01:35:49 theyre some of the first to use consistent hashing/mapreduce/etc type stuff Oct 03 01:36:11 makes MMOs and silicon valley techies look puny Oct 03 01:36:30 oh yeah, thats a hierarchical db Oct 03 01:36:38 ohya whos using it? us gov? Oct 03 01:36:57 acidjazz: >70% of ATM transactions in the world, something like that Oct 03 01:37:08 g00s: connection-model, actually (CODASYL etc.) Oct 03 01:37:12 the us government isn't doing anything Oct 03 01:37:52 pragma-: that was my joke Oct 03 01:37:54 acidjazz: it was created for purposes of Apollo mission, in order to track all the inventory quickly, with 70s era hw Oct 03 01:40:21 cool Oct 03 01:41:26 as for mongodb's geospatial stuff - I wonder how it stands to PostGIS Oct 03 01:41:43 most "nosql" geospatial support I had seen was pretty... simple Oct 03 01:44:35 and for more free-form data I'd really use AllegroGraph if I had the money :3 Oct 03 01:45:06 wow, franz is still there Oct 03 01:46:22 how can I change how much a TextView can scroll down by user input? overriding computeVerticalScrollRange only changes the scrollbar length Oct 03 01:46:37 g00s: AllegroGraph is rather well selling, and AFAIK they win more lisp contracts with it because ACL is better fit :) Oct 03 01:48:57 funnily enough, I think some of the biggest franz customers have domains ending in .gov ;) Oct 03 01:51:49 g00s: to put it a bit more on topic, I've been wondering recently about using DB2 on backend of a mobile service ;) Oct 03 01:52:12 you can afford db2 ? :P Oct 03 01:52:33 when you talk to ibm, they want to power your desktop wiki with db2; its like a trojan Oct 03 01:52:44 but i hear good things about it Oct 03 01:52:48 g00s: DB2 is... quite wide thing Oct 03 01:52:55 and it can mean different things Oct 03 01:53:22 basically, where i worked, informix DBAs went home for the weekend, Oracle DBAs were always on call in the night / weekends Oct 03 01:53:47 recently I did a setup of DB2 for someone who needed a way to test out his SQL that would later end up on big beefy mainframe Oct 03 01:53:48 we only have a little db2 Oct 03 01:54:25 I set up a free copy that has surprisingly little in terms of limits, and voila Oct 03 01:55:55 and apparently it should be compatible between this little version with embedding rights (that is, include it in installer of your software, have it autodeploy as part of installation without extra license for client), through System i to System z Oct 03 01:57:05 it even might have working column-oriented tables, but I haven't tested that Oct 03 01:57:13 it does support non-relational data afaik Oct 03 02:00:07 ... I just found code to directly use tape drive from the database -_- Oct 03 02:00:37 what about magnetic core :P Oct 03 02:00:53 if it can't do that, its not /hard core/ Oct 03 02:01:46 magnetic core was for RAM Oct 03 02:02:12 can someone point me to where TextView scrolling is implemented? I can only find code that draws the scrollbars in android/view/View.java Oct 03 02:02:14 modern magnetic core devices are usually either custom embedded or show up as normal storage devices Oct 03 02:02:30 where is the actual code that responds to touch motion events and scrolls the view? Oct 03 02:03:05 p_l in memory db :P Oct 03 02:03:36 i'm just talking crazy Oct 03 02:05:31 g00s: actually, if you buy some of the next year SSDs, you'll have some magnetic core memory, probably Oct 03 02:06:03 g00s: oh, and the free version of DB2 is limited to 2 cpu and 16g of memory Oct 03 02:06:17 ... put it on SSDs and it will take care of quite a lot of data :> Oct 03 02:20:01 Can i change system paths, example for app installation ? Oct 03 02:20:10 no Oct 03 02:20:53 Android has no debug mode for shells , slso ? Oct 03 02:21:14 if you mean sh -x, then it's not there unless you got a different shell Oct 03 02:21:56 Or possible to change the app installation folder ? Oct 03 02:22:21 nope, outside of possibly selecting whether it will be internal or external storage Oct 03 02:24:23 Another question the android bran by whom was it created ? Oct 03 02:24:34 Brand Oct 03 02:25:14 All the normal functions are not there Oct 03 02:25:20 Hmmm Oct 03 02:25:32 once upon a time there was this small startup called Android (iirc), which got bought by google... Oct 03 02:25:36 that's for the brand Oct 03 02:26:10 as for the rest of the system, read first about how Android applications are structured and run, then there is a bit unorganized bunch of materials about how the system itself is organized Oct 03 02:36:02 hey guys, trying to figure out how i can display a unicode value (F054 to be precise) in a TextView programatically Oct 03 02:40:02 I'm using a TextView with a custom MovementMethod which overrides the up and down methods, but they somehow never get called. Any ideas? Oct 03 02:44:48 The google glass of the creator have to be nig :) Oct 03 02:44:53 Sry big Oct 03 02:46:09 kbwt: onKeyUp and onKeyDown ? Oct 03 02:47:32 bankai_: no, protected boolean up(TextView widget, Spannable buffer) and protected boolean down(TextView widget, Spannable buffer). I'm trying to change how the scrolling works Oct 03 02:48:36 bankai_: from ScrollingMovementMethod Oct 03 02:55:52 ... Google Play region settings leave me in despair Oct 03 02:58:10 so... scrolling is handled by the static class Touch Oct 03 02:59:00 ACTION_MOVE is where it's at: http://grepcode.com/file_/repository.grepcode.com/java/ext/com.google.android/android/1.5_r4/android/text/method/Touch.java/?v=source **** ENDING LOGGING AT Thu Oct 03 02:59:58 2013