**** BEGIN LOGGING AT Thu Jul 03 03:00:01 2014 Jul 03 03:00:15 One can set to just start the service on the manifest and not launch an activity? Jul 03 03:00:55 aye Jul 03 03:01:03 DammitJim sure, you can have an app thats just a service. Jul 03 03:01:09 use am to send it an intent Jul 03 03:01:15 am? Jul 03 03:01:19 activity manager Jul 03 03:01:20 though youll want to start it somehow, probably witha broadcast reciever you can use ON BOOT COMPLETE to start it for instance Jul 03 03:01:32 I have that piece, lasserix Jul 03 03:01:42 you may also want like a settings activity or something Jul 03 03:01:46 it's just that I have been asked to remove the activity piece that we had before Jul 03 03:02:07 ok, so use an activity manager to send it an intent Jul 03 03:02:11 DammitJim you have to say how you want the activity to start Jul 03 03:02:18 err service Jul 03 03:02:19 http://stackoverflow.com/questions/7690350/android-start-service-on-boot Jul 03 03:04:16 drdreed, I have it set up to start on boot Jul 03 03:04:32 but not how to start it right after it is installed Jul 03 03:05:39 some nice basic tips from mark on memory http://wip.org/blog/android-memory-reduce-reuse-recycle/ Jul 03 03:07:22 Hey guys, can someone tell me a simple term for what is a Binder? Jul 03 03:08:02 i think of it as a conduit for interprocess communication Jul 03 03:08:29 but i'm probably wrong; i try not to think much about that :D Jul 03 03:10:55 DammitJim, Doesn't look like its possible on 3.1+ Jul 03 03:11:21 that's what I was seeing, but g00s is saying one can Jul 03 03:11:48 DammitJim you have to tell us the scenario which you want to start the service Jul 03 03:12:13 yeah you didn't tell us when you wanted to start the service just that you wanted to start it without an activity Jul 03 03:12:35 oh, I want to be able to start the service by launching the app right after installing Jul 03 03:12:45 I already took care of the boot broadcast receiver Jul 03 03:13:02 I originally had a screen where the user pressed start Jul 03 03:13:29 but now they just want the service to be started when the app is launched (but not see any GUI) Jul 03 03:13:31 hm, can you run your app right after install ? Jul 03 03:13:32 is the user tapping the app icon or launching it somehow? I don't think you can auto run after install Jul 03 03:22:52 no, the user is tapping the icon to launch Jul 03 03:29:51 I think I am going to try the theme NoDisplay Jul 03 03:29:55 and see what that does Jul 03 03:31:12 Yeah thats what im finding as well Jul 03 03:31:38 hmm http://stackoverflow.com/questions/10909683/launch-android-application-without-main-activity-and-start-service-on-launching Jul 03 03:33:43 DammitJim there was also #3 here http://stackoverflow.com/questions/4467600/how-to-launch-a-android-service-when-the-app-launches Jul 03 03:34:11 oh maybe not Jul 03 03:34:13 heh Jul 03 03:35:20 lol... yeah Jul 03 03:35:25 but I think I got the general idea Jul 03 03:35:42 now I just need to check that the service is already running (in case the user decides to re-launch the app) Jul 03 03:37:16 holy cow, this is rough Jul 03 03:37:32 this application has soooo many layers and it sends you to different activities depending on state Jul 03 03:38:30 draw a diagram Jul 03 03:38:33 it'll help Jul 03 03:39:01 now i'm really confused, i thought it was just a service Jul 03 03:39:26 g00s, I created this app like 3 years ago Jul 03 03:39:31 it has multiple Activities Jul 03 03:39:48 but all of a sudden they want to strip out all the UI (for now) and just let the service do its thing Jul 03 03:40:18 so, for example, if the user is not logged in, it takes you to the login page Jul 03 03:40:31 if the user is logged in, it takes you to a map page Jul 03 03:40:39 if the service is not running, it takes you to a utility page Jul 03 03:40:41 stuff like that Jul 03 03:40:47 I hate having to strip stuff out Jul 03 03:41:04 i kinda underwent a similar exercise Jul 03 03:41:09 and to make it worse, the web services aren't working (the server seems to have some kinda sql problem) Jul 03 03:41:22 using gradle, i have two hope level sub-projects: app and lib Jul 03 03:41:27 really? that's what we get... shifting requirements Jul 03 03:41:40 or rather.... different customers Jul 03 03:41:46 gradle? Jul 03 03:41:48 app depends on lib, not the other way though. so technically, it can be shipped separately Jul 03 03:41:55 but its all in one project Jul 03 03:42:02 I see Jul 03 03:42:13 yeah, and then you can use product flavors to have different variants. Jul 03 03:42:36 if you have to customize based on customer, gotta decide whether to fork the thing in version control or have variants Jul 03 03:42:49 DammitJim see the latest I/O talk 'whats new in tools' Jul 03 03:43:00 xav gives a good overview of whats possible now, its pretty damn cool Jul 03 03:43:12 great, thanks for the heads up Jul 03 03:43:15 I'm doing branches Jul 03 03:43:17 yw ;) Jul 03 03:43:19 and multiple merges Jul 03 03:43:32 eee Jul 03 03:44:37 so, android car sdk.. do you know if it has access to the cars canbus ? Jul 03 03:44:55 alright, I'm hitting the sack Jul 03 03:44:58 good night all Jul 03 03:45:00 thanks for the input Jul 03 03:45:04 very very helpful Jul 03 03:45:11 wmealing i somehow doubt it Jul 03 03:45:31 i got the impression its 'casting a car ux onto a screen' Jul 03 03:45:43 which honestly, is about all i would want Jul 03 03:45:49 i would like.. a lot more Jul 03 03:45:56 so would hackers :) Jul 03 03:46:02 of course Jul 03 03:46:13 lets be honest though, if android doesn't do it Jul 03 03:46:16 someone else will do it wrong Jul 03 03:46:32 i'd rather have a nice clean permissions based API Jul 03 03:46:42 that gets regular updates from google Jul 03 03:46:48 than wait for mazda/ford to NEVER update their software Jul 03 03:46:56 'this app requires access to your car's fuel injection system;' Jul 03 03:46:56 like they do for many cars currently Jul 03 03:47:06 [x] Grant Jul 03 03:47:14 yeah even the tesla stuff seems lame Jul 03 03:47:39 i currently have android hooked up over bluetooth to a canbus bluetooth device Jul 03 03:47:42 so i can get a bunch of stats Jul 03 03:47:52 its kinda nice Jul 03 03:48:30 yeah i'd like something like that, read-only of course :) Jul 03 03:48:41 diagnostic codes, etc Jul 03 03:49:10 there were a few options … one required checking in to a service once in a while, i thought that was lame Jul 03 03:49:18 i do live reads Jul 03 03:49:21 it acts like a serial port Jul 03 03:51:29 so, i was secretly hoping for a car api Jul 03 03:53:00 hm, another android sdk update 23.0.2 Jul 03 04:38:00 i have right-aligned text on the screen, and then text to the left of it that can overlap because it's so long. how can i do wrap_content for the width of the right text element, and then ellipsize the left text before it hits the right text? Jul 03 04:39:39 whomp: possible solution: have both in a horizontally aligned linear layout, make the width of the left element wrap_content and the right one 0dp, but with a weight of 1. turn on ellipsizing/singleline as necessary Jul 03 04:40:04 ^ haven't tried this myself but it might work :) Jul 03 04:41:30 I tried creating a new project for Google Glass using Android Studio and once the project is created i get 'Cannot resolve symbol 'CardScrollView' Jul 03 04:41:38 or, maybe just use a relative layout and place the right one before the left one, though I have a feeling you've tried this already Jul 03 04:47:53 barbs, thx, will try :) Jul 03 04:56:41 barbs, how can i right-align a relative layout so that i can right-align something within it and have the layout as wrap_content? Jul 03 04:57:12 right now, when i do wrap_content and have a child with alignParentRight="true", i get the layout filling up the screen, because it's a circular dependenc Jul 03 04:57:15 y Jul 03 04:57:47 oh I see, you don't want your RL to fill the whole screen...that could be tricky Jul 03 04:58:38 yeah, i want it to wrap_content and expand to the left as its elements, which are also right-aligned, expand to the left Jul 03 04:58:56 is there an easy way to do that? Jul 03 04:59:32 what's the parent of the RL? maybe you'll have to wrap it in another RL Jul 03 04:59:43 cos if its parent is a framelayout, it'll always be in the top-left corner Jul 03 05:01:23 barbs, the parent is a relative layout Jul 03 05:01:45 seems like i should be able to do this easily though, because the mirror image, doing things rightwards, seems so trivial Jul 03 05:02:25 and you've got the child RL aligned to the top and right of the parent RL? Jul 03 05:03:44 whomp you can use an empty textview to measure the width of the text Jul 03 05:03:50 then use that to change the layout accordingly Jul 03 05:04:49 https://gist.github.com/michaeleiselsc/cfa2d70c15145ac776b2 Jul 03 05:05:01 the parent is not told to be right-aligned in that gist, but otherwise that's it Jul 03 05:05:06 barbs, lasserix ^^ Jul 03 05:05:17 lasserix, are you saying i would do this programmatically? Jul 03 05:05:28 if all else fails Jul 03 05:05:35 you can use a method to measure how much words should be in it Jul 03 05:05:38 checking the width Jul 03 05:05:43 to manually ellipsize it Jul 03 05:06:50 lasserix: so the two textviews you're talking about are story_views_number and story_screenshot_number? Jul 03 05:07:02 huh? Jul 03 05:07:49 oops, I meant whomp Jul 03 05:08:19 barbs, there's a sibling of the relative layout which will stay to the left of the RL and ellipsize itself accordingly Jul 03 05:08:23 whomp can you upload screen shot of this? Jul 03 05:08:50 lasserix, my renderer is failing :/ Jul 03 05:09:18 just use xml viewer of eclipse or as Jul 03 05:09:21 and screenshot it Jul 03 05:09:42 whomp: I'm not sure what you mean. In that gist, is that RelativeLayout the child of another RL? Jul 03 05:10:03 barbs, yes Jul 03 05:10:17 which permission is required to get mac address? Jul 03 05:10:28 or just draw what you are trying to achieve in paint Jul 03 05:11:09 whomp: so by default, that child RL will align to the top and left of the parent RL, so I think you need to align it to the top and right Jul 03 05:12:21 from what I can tell, if you do that, then it won't stretch all the way to the left Jul 03 05:12:59 barbs, doing layout_alignParentRight="true" for the RL in the gist doesn't fix anything Jul 03 05:14:38 whomp if you draw a simple diagram showing what you are trying to achieve i can figure it out for you but i am feeling lazy right now ;p Jul 03 05:15:56 just to clarify: you're saying that there's a sibling to the RL in the gist that is aligned to the left of it, but since the RL in the gist appears to be stretching out to the width of the parent, it gets knocked off the edge, so to speak Jul 03 05:16:59 barbs, yes Jul 03 05:20:06 just downloading your gist and playing around with it in AS... Jul 03 05:20:53 there are ways with lots of linear layouts and stuff, but they aren't desirable Jul 03 05:24:00 I feel like I've come across this before... Jul 03 05:26:01 i want to register a reciever 2x for networkchangeactivity to fire off 2 services which might recall the receiver if it cant get internet … how could i go about doing this or implimenting the goal? Jul 03 05:29:02 whomp: not sure of the solution here...RelativeLayout can be a pain sometimes. I did find that if you set the top view (in this case the Button) to have a visibility of "gone", the RL no longer stretches Jul 03 05:29:29 so you could have a useless top-level view that has its visibility set to gone,and then align the bottom to the left of that, but that seems real hacky Jul 03 05:33:45 hmm, if you don't set alignParentRight to any of the children elements, it won't stretch out to the right Jul 03 05:34:12 so if you align your elements from left to right instead, it might work Jul 03 05:42:27 Is it always necessary to write an empty constructor Jul 03 05:42:35 everytime Jul 03 05:42:48 I am getting instantiation error Jul 03 05:42:53 no empty constructor found Jul 03 05:45:33 not always Jul 03 05:58:20 hey I am trying to build a custom activity circle Jul 03 05:58:21 any help? Jul 03 06:03:10 barbs, I have a line as Jul 03 06:03:12 private final DatabaseOpenHelper mDatabaseOpenHelper; Jul 03 06:03:23 and when I add the empty constructor under it Jul 03 06:03:32 public database_activity() Jul 03 06:03:33 { Jul 03 06:03:33 Jul 03 06:03:33 } Jul 03 06:03:52 I get the error as:mDatabaseOpenHelper has not been initialized Jul 03 06:04:04 can you help me what could be the problem Jul 03 06:05:00 looks like you need to initialise DatabaseOpenHelper Jul 03 06:05:14 * mDatabaseOpenHelper Jul 03 06:06:06 if database_activity is a subclass of Activity, you shouldn't be making a constructor at all Jul 03 06:06:37 I think I got it Jul 03 06:10:09 make sure you are calling the super constructor Jul 03 06:21:32 lasserix, yes Jul 03 06:26:32 Is there any nice way to link the lint-results.html links to open in intellij? Jul 03 06:32:57 i think thats OS dependant question. Jul 03 06:41:23 I followed the link http://developer.android.com/training/search/search.html#q=database table Jul 03 06:41:42 my code does not show errors but I dont understand how to test it Jul 03 06:41:54 because adb does not show be any table created Jul 03 06:42:26 http://developer.android.com/training/search/search.html Jul 03 06:49:57 niru have a rooted phone? Jul 03 06:50:10 lasserix, I have an emulator running Jul 03 06:50:13 if you phone is rooted you can navigate to /data/data/your.pacakge.name/ Jul 03 06:50:14 oh Jul 03 06:50:41 http://www.techrepublic.com/blog/software-engineer/browse-sqlite-data-on-the-android-emulator/ Jul 03 06:51:48 lasserix, even if emultaor I can use adb shell to go to the path Jul 03 06:51:54 why would intelliJ using the gradle project type not like my src/paid folder? http://puu.sh/9UKW8/61ed17f44d.png Jul 03 06:54:01 yeah Jul 03 06:54:09 but i believe it has to be rooted to see the databases folder Jul 03 06:54:32 that guide apparently shows you can use ddms to browse, so maybe it's special (ie you dont need root if running emulator and using ddms) Jul 03 06:54:33 lasserix: not necessarily Jul 03 06:54:43 thepoosh elaborate? Jul 03 06:54:59 if the app is debuggable you can use the adb shell "run as" command Jul 03 06:55:05 ahh Jul 03 06:55:07 and navigate to your own folder Jul 03 06:55:20 niru^^ Jul 03 06:55:29 btw, firefoxs has the best sqlite tool Jul 03 06:55:39 like browser tool? Jul 03 06:55:47 sqlite manager addon Jul 03 06:55:58 cool thanks for the protip :) Jul 03 06:56:02 https://code.google.com/p/sqlite-manager/ Jul 03 06:56:20 good luck Jul 03 06:56:27 I use SQLiteSpy in a wineskin wrapper :D Jul 03 06:56:38 barbs: does it work on mac? Jul 03 06:57:03 it's a windows program, which is why I need to use Wineskin :) Jul 03 06:57:16 hmmm Jul 03 06:57:19 not worth it Jul 03 06:57:25 firefox tool is very good Jul 03 06:57:29 and easy to use Jul 03 06:57:37 works pretty well for me :) Jul 03 06:57:48 :) Jul 03 06:57:48 but for newbies, the firefox tool is probably better Jul 03 06:57:53 and maybe others too Jul 03 06:57:56 OH SNAP! Jul 03 06:58:22 there really needs to be a better open-source SQLite db viewer Jul 03 06:58:32 hmmmmmm Jul 03 06:58:35 the firefox one might be good, but you really shouldn't need to do download a whole browser just for that! Jul 03 06:58:39 thepoosh, lasserix I dont see anything in my project folder :( Jul 03 06:58:53 niru: are you running as your app? Jul 03 06:59:07 thepoosh, yes Jul 03 06:59:11 hmmmm Jul 03 06:59:19 did you run the app at least once? Jul 03 06:59:36 thepoosh, Jul 03 06:59:38 yes Jul 03 06:59:38 ? Jul 03 06:59:40 why would intelliJ using the gradle project type not like my src/paid folder? http://puu.sh/9UKW8/61ed17f44d.png Jul 03 06:59:49 niru: are you running it now? Jul 03 06:59:54 yes Jul 03 07:00:07 well, the file is in use, of course you don't see it Jul 03 07:00:15 force close the app and try again Jul 03 07:00:30 thepoosh, ah ok... Jul 03 07:00:38 this happened to me last week Jul 03 07:00:44 took me about an hour to figure it out Jul 03 07:02:19 wmealing: Ah, ofc. Is there any nice way to link the lint-results.html links to open in intellij on Windows? Jul 03 07:05:01 sqlite viewer? Jul 03 07:05:04 like...sqlite? Jul 03 07:05:35 derp Jul 03 07:05:45 herp? Jul 03 07:07:57 Is there any new API for recording phone calls in L? Jul 03 07:30:32 Hi guys, I’ve installed node.js, eclipse sdk, eclipse ndk etc. on my Ubuntu 14.04 server…But now when I execute „android“ I get an error: „Exception in thread "main" org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]“ Any hints?! THank you :) Jul 03 07:32:26 ThKo: http://unix.stackexchange.com/a/94499 Jul 03 07:32:36 you should really look in google before coming here Jul 03 07:33:43 thepoosh: Shame on me. Thank you and sry, I’ll tryi t Jul 03 07:40:14 I’m sorry, asking again. libgtk returns the versions. It’s installed…But what means „After getting that straightened out the OP shouldn't have any issues running Eclipse.“? Sorry I’m new in working with that. Jul 03 07:43:32 is there an API to get meta-information about the HDMI port of devices? i.e. is there a monitor connected? which resolutions does it provide? Jul 03 07:45:06 thana: possibly http://developer.android.com/reference/android/hardware/display/DisplayManager.html Jul 03 07:46:06 Leeds: sounds good, thank you :) Jul 03 07:46:36 enjoy :) Jul 03 07:46:49 now it gets even more complicated: how to send CEC commands through the wire :D Jul 03 07:47:47 ah, dunno if there's an API for that... Jul 03 08:24:00 Hi, on the play store are there any apps that do not use google as a payment processor for there apps. Ie use a 3rd party licensing api to unlock the app? Jul 03 08:32:35 ClockworkAnt: if there are they risk being booted out Jul 03 08:33:19 morning Jul 03 08:33:30 So it is :( Jul 03 08:35:33 I thought the satnav apps often used external payment methods, like copilot and tomtom but I see your point Estel Jul 03 08:36:56 JakeWharton: in the house? Jul 03 08:40:35 ClockworkAnt: the approximate rule is that if you're selling something which is *also* available outside the play store, you can use an external payment processor - so kindle ebooks, spotify subscriptions, etc. Jul 03 08:40:41 at least, AIUI Jul 03 08:40:58 thanks Leeds, thats very interesting! Jul 03 08:41:18 but, y'know, consult a lawyer and all that Jul 03 08:41:51 ha! nah, cite:Leeds@Android-dev Jul 03 08:41:59 I'm sure that'll be a strong defence... Jul 03 08:42:06 yeah :) Jul 03 08:42:07 thepoosh: it's like 2AM on the west coast, so maybe not :P Jul 03 08:42:22 It was more of a curiosity that anything, so thank you for the information :) Jul 03 08:42:44 people have definitely been booted out of the store for using external payments for unlocks, that sort of thing Jul 03 08:43:34 IAP has a better conversion rate than third party stuff anyway (ymmv) Jul 03 08:44:46 Estel: it's 12 oclock here so he should be awake! Jul 03 08:45:08 and it's nearly 5pm here - why would he be asleep in the middle of the afternoon? Jul 03 08:54:49 using gson, suppose my pojo contains a list that is not present in the json data, will the field be null or will it be initialized with an empty list/ Jul 03 09:00:37 osxorgate null I believe. Jul 03 09:01:45 - Jul 03 09:02:03 no adb devices found Jul 03 09:02:24 install MT6589 quad core 1.2ghz driver Jul 03 09:04:33 Do you know Picasso library? Jul 03 09:04:40 how to insert a tet under an image? Jul 03 09:05:01 Alfreda: you can write custom postprocessors or what it's called Jul 03 09:05:15 yes but how? Jul 03 09:08:56 Alfreda: did you read the docs Jul 03 09:09:00 where? Jul 03 09:09:12 google that shit Jul 03 09:09:59 this is my class, i have add a textview but i dont view this! Jul 03 09:10:01 http://pastebin.com/wr28Baec Jul 03 09:10:06 i view only the images Jul 03 09:10:51 i view text only if i set text Jul 03 09:11:21 you set tag, not text Jul 03 09:11:22 how to run Jul 03 09:11:41 eclipse lost everything Jul 03 09:11:41 ((ViewHolder) row.getTag()).textview.setTag("CIAO"); Jul 03 09:11:48 where is view menu Jul 03 09:12:02 gz: use android studio, eclipse sucks Jul 03 09:12:03 ah setText Jul 03 09:12:04 :D Jul 03 09:12:07 okok Jul 03 09:12:07 osxorgate ? Jul 03 09:12:11 now work! Jul 03 09:12:15 got it Jul 03 09:12:18 its useless Jul 03 09:12:19 thanks Jul 03 09:12:23 18 errors Jul 03 09:12:31 i cant even read source files Jul 03 09:12:42 and doesnt show GUI layout Jul 03 09:13:00 and contains only 4.4.2 L preview Jul 03 09:13:07 which doesnt work Jul 03 09:13:42 unsuccessful running single android sample or web samples Jul 03 09:14:22 downloading mt65xx drivers now . avd is brick Jul 03 09:14:33 adb cant read my nice phone Jul 03 09:15:01 till now nothing has worked Jul 03 09:15:31 how to program windows phone apps ? Jul 03 09:15:37 google is dead Jul 03 09:16:08 uses vaccum tube era program languages Jul 03 09:16:51 new brainless android-studio-bundle-135.1245622-windows doesnt even have 2D GUI output view Jul 03 09:17:55 I have an interesting layout im trying to port from ios that's making me scratch my head a little bit... the icons are organized in a semi-circle, 35 degrees from each other, but the same distance from the center. Jul 03 09:18:25 Jesperhead: sounds like a job for FrameLayout Jul 03 09:18:26 onClick, the whole array (viewgroup?) of buttons rotates clockwise until the button tapped rests at the top of the circle Jul 03 09:18:32 Jesperhead, there is no law against making your own viewgroup Jul 03 09:18:39 especially when you start doing complex layouts Jul 03 09:18:52 Just feeling a little overwhelmed Jul 03 09:18:54 a custom viewgroup will always be faster and more flexible than what you zombie together with existing layouts Jul 03 09:19:28 hmmhmm Jul 03 09:21:10 INSTALLED 10000000000000 MT65xx DRIVERS Jul 03 09:21:31 D:\and\sdk\platform-tools>adb devices Jul 03 09:21:31 * daemon not running. starting it now on port 5037 * Jul 03 09:21:31 * daemon started successfully * Jul 03 09:21:32 List of devices attached Jul 03 09:21:32 D:\and\sdk\platform-tools>adb devices Jul 03 09:21:32 List of devices attached Jul 03 09:21:32 D:\and\sdk\platform-tools> Jul 03 09:21:34 BLANK ??????????????????????????????? Jul 03 09:21:41 MT65xx DRIVER ???????????????????????????????????????? Jul 03 09:23:22 anyone understand that guy? hes all whispering and stuff. Jul 03 09:23:34 flashtools&drive.zip and MT65xx_USB_Driver.zip and manual usb2ser_Vista64_Win7.inf and android_winusb.inf Jul 03 09:23:50 why no phone in adb device list ?? Jul 03 09:23:51 ? Jul 03 09:23:54 shhhh ... dont feed trolls Jul 03 09:24:17 RUN MY PHONE IN ADB Jul 03 09:30:12 List of devices attached D:\and\sdk\platform-tools>adb devices List of devices attached D:\and\sdk\platform-tools> Jul 03 09:30:12 ?? Jul 03 09:30:18 List of devices attached D:\and\sdk\platform-tools>adb devices List of devices attached D:\and\sdk\platform-tools> List of devices attached D:\and\sdk\platform-tools>adb devices List of devices attached D:\and\sdk\platform-tools> List of devices attached D:\and\sdk\platform-tools>adb devices List of devices attached D:\and\sdk\platform-tools> List of devices attached D:\and\sdk Jul 03 09:30:18 \platform-tools>adb devices List of devices attached D:\and\sdk\platform-tools> List of devices attached D:\and\sdk\platform-tools>adb devices List of devices attached D:\and\sdk\platform-tools> List of devices attached D:\and\sdk\platform-tools>adb devices List of devices attached D:\and\sdk\platform-tools> List of devices attached D:\and\sdk\platform-tools>adb devices List of Jul 03 09:30:18 devices attached D:\and\sdk\platform-tools> List of devices attached D:\and\sdk\platform-tools>adb devices List of devices attached D:\and\sdk\platform-tools> List of devices attached D:\and\sdk\platform-tools>adb devices List of devices attached D:\and\sdk\platform-tools> List of devices attached D:\and\sdk\platform-tools>adb devices List of devices attached D:\and\sdk\platform-tools> Jul 03 09:30:18 List of devices attached D:\and\sdk\platform-tools>adb devices List of devices attached D:\and\sdk\platform-tools> List of devices attached D:\and\sdk\platform-tools>adb devices List of devices attached D:\and\sdk\platform-tools> List of devices attached D:\and\sdk\platform-tools>adb devices List of devices attached D:\and\sdk\platform-tools> List of devices attached D:\and\sdk Jul 03 09:30:18 \platform-tools>adb devices List of devices attached D:\and\sdk\platform-tools> List of devices attached D:\and\sdk\platform-tools>adb devices List of devices attached D:\and\sdk\platform-tools> List of devices attached D:\and\sdk\platform-tools>adb devices List of devices attached D:\and\sdk\platform-tools> List of devices attached D:\and\sdk\platform-tools>adb devices List of Jul 03 09:30:19 devices attached D:\and\sdk\platform-tools> Jul 03 09:30:20 ????????????????????????? Jul 03 09:30:40 Stop spamming the channel please. Jul 03 09:30:49 try 'adb kill-server' then 'adb start-server' Jul 03 09:30:51 WHERE MY DEVICE ?? Jul 03 09:30:54 and disconnect/connect device Jul 03 09:31:08 killed adb adb_32 in taskmgr Jul 03 09:31:31 adb needs to be running Jul 03 09:37:17 I got a listview inside viewpager. My problem is that I cannot scroll the the viewpager if I tap the left side of my item, but from the right side (center -> right) it works fine. I have a onItemClickListener on the whole item. Jul 03 09:37:50 and It doesn't belog to the OnItemClickListener because it behave the same when I remove it Jul 03 09:41:40 When I change the order of the fragments it works fine Jul 03 09:45:07 Hi everybody Jul 03 09:46:01 hi dr nick Jul 03 09:46:16 hi do you have an example for query a webservice and read his response in json format? Jul 03 09:46:23 Does anybody now why all the png i get from any server are ok but those ones from cloudfront don't, they are corrupted once I get them Jul 03 09:46:29 know * Jul 03 09:46:36 Alfreda: I'm actually doing this in my current project Jul 03 09:46:38 Alfreda: yes Jul 03 09:46:46 does anybody has a clue ? Jul 03 09:46:57 or already face the issue Jul 03 09:47:11 sorry pngthings, no experience with cloudfront Jul 03 09:47:12 Jesperhead: you can send me a simply example? Jul 03 09:47:40 Alfreda: I'll work some of my code and upload it sure. You're going to be querying with an asynctask Jul 03 09:47:42 Alfreda There are plenty of examples online. Jul 03 09:47:54 nobody else ? Jul 03 09:48:00 EdGeorge: where i dont find it Jul 03 09:48:07 Alfreda Looks for gson/Jackson tutorials. Jul 03 09:48:23 Jesperhead: you can copy and paste code on a pastebin? Jul 03 09:48:28 Here's some code I wrote a few years back for the Google Buzz client: https://github.com/lokedhs/dhs-buzz/blob/master/androidclient/src/org/atari/dhs/buzztest/androidclient/buzz/BuzzManager.java#L440 Jul 03 09:48:46 Use it as reference if you want. It uses JSON REST API's Jul 03 09:48:49 Alfreda: I'll share sure, but EdGeorge is also right, plenty online. it's where i got most of my code Jul 03 09:48:56 loke: thanks Jul 03 09:49:14 EdGeorge: do you have url? Jul 03 09:49:19 How can I check the integrity of the Android Studio I downloaded from http://tools.android.com/download/studio/canary/latest? Jul 03 09:49:31 Where are the md5/shaxxx sums ? Jul 03 09:49:49 Alfreda Seriously? Just google it! Googling "gson tutorial" will get you what you need Jul 03 09:49:59 Jakson tutorial dont exist Jul 03 09:51:04 Alfreda It does: first result on google Jul 03 09:51:05 http://wiki.fasterxml.com/JacksonInFiveMinutes Jul 03 09:51:16 https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CB4QFjAA&url=http%3A%2F%2Fwww.mkyong.com%2Ftutorials%2Fjava-json-tutorials%2F&ei=8ya1U4btEeqr0QXElYGICQ&usg=AFQjCNFqTB20EdkW5D_F_FAiVTANLtq-_Q&sig2=OGbuTmuaVnwwGZce2ugogQ&bvm=bv.70138588,d.d2k ? Jul 03 09:51:18 this? Jul 03 09:51:34 anyone tried streaming using a videoview? If so, how did you? Jul 03 09:51:38 ok thanks! Jul 03 09:51:40 android videoview has this like Jul 03 09:51:43 its delayed as shit Jul 03 09:51:45 Alfreda yep. Should be ok Jul 03 09:51:45 for 20 seconds Jul 03 09:51:51 before the video even starts buffering Jul 03 09:52:21 loke: do you mena this function? public T loadAndParse( String activityUrl, Class feedType ) throws IOException { Jul 03 09:52:40 Alfreda: Yes, that's the entry point. Jul 03 09:52:41 Kevel, VideoView is a very highlevel element for simple video playback. Jul 03 09:52:54 But i must download some Library? Jul 03 09:52:55 advanced usage will require you to actually know what you are doing. Jul 03 09:53:28 Mavrik: im trying to stream a video Jul 03 09:53:48 the only solution i have found was to buffer segments into a file Jul 03 09:54:04 then play each file until its done, then pause, and load more buffered video Jul 03 09:54:14 either that or, using something like libVLC Jul 03 09:54:21 which requires building and all that shit Jul 03 09:54:30 which is also a hedache Jul 03 09:54:32 or, use the new opensourced youtube / google movies player? Jul 03 09:54:41 Mavrik: link ;O Jul 03 09:54:51 How bout you google it. Jul 03 09:58:37 Does anybody now why all the png i get from any server are ok but those ones from cloudfront don't, they are corrupted once I get them Jul 03 09:59:10 pngthings: have you tried downloading them with the same url directly from your browser? Jul 03 09:59:20 yes Jul 03 09:59:28 everything is good Jul 03 09:59:47 do you mind sharing a link to one of these photos? Jul 03 09:59:49 http://d2lh3rxs7crswz.cloudfront.net/com.kabam.doamobile.png Jul 03 10:01:40 Do you figure something weird ? because I don't xD Jul 03 10:02:01 pngthings: meta data seems to be normal. just a guess: maybe its something with the dots in filename? Jul 03 10:02:31 pngthings: yeah nothing i can tell Jul 03 10:02:46 Yeah me too it was my guess but why those dots would screw it ? Jul 03 10:02:58 have you tried to convert the image name to it's html from - i.e. spaces to %20 etc Jul 03 10:03:05 dont know. are you using a library for download? Jul 03 10:03:05 danijoo_ may be correct. try saving it just as "dragon_thumb" or something Jul 03 10:03:16 because I would also guess its the dots pngthings Jul 03 10:04:39 hello. I need to know if PreferenceActivity will be showing in master/slave or singlePane mode while creating the intent to launch it. Is this possible? Jul 03 10:05:01 i use UrlEncodedFormEntity Jul 03 10:05:36 basically I need to check onIsMultiPane() from the PreferenceActivity but I need it from another activity before creating the intent Jul 03 10:09:34 Hello Jul 03 10:09:40 Anyone online? Jul 03 10:09:47 Ghiottone: what about a global variable "isMultiPane"? Jul 03 10:09:57 depending on device size Jul 03 10:10:59 Anybody know about swapping Actionbar items? Jul 03 10:11:06 danijoo_, I would need to emulate the android implementation for that which looks for a boolean in com.android.internal.R.bool.preferences_prefer_dual_pane Jul 03 10:11:41 Ghiottone: that's the best solution tbh Jul 03 10:11:49 danijoo_, it would be a viable approximation I guess. But if possible I'd like to be closer to the source. Unfortunately I don't know if I can access that bool from my app Jul 03 10:12:23 You create your own bool in your own bools.xml or whatever Jul 03 10:12:49 Ghiottone: If not, you could have your own. Its not a secret at what sizes android prefers multi pane and at what it doesnt Jul 03 10:13:16 simply make an xml variable in your apps values.xml Jul 03 10:13:20 mmm I get your points Jul 03 10:17:15 hey guys, i have a color selector (xml) for click effect for a image button. the selector uses a color from ressource. how can i change one color of this selector programmatically? Jul 03 10:17:35 adkins: you cant Jul 03 10:17:54 if you want that, you need to create a second one in xml and swap them Jul 03 10:18:45 danijoo_: you mean create a second selector or a second color? Jul 03 10:18:52 second selector Jul 03 10:19:05 programmatically? Jul 03 10:19:11 the class selectors are using is this: http://developer.android.com/reference/android/content/res/ColorStateList.html Jul 03 10:19:38 as you see, there are no color setters so all you can do is create a new one (in xml or java, whatever you prefer) Jul 03 10:20:19 ok so i guess i`m gonna create a new one in java. can i then delete the old one programmatically? Jul 03 10:20:47 just do myButton.setBackground(newSelector) Jul 03 10:21:00 it will replace the old one with the new one Jul 03 10:21:03 sorry for using "programmatically" ........i mean java ;) Jul 03 10:21:18 np :) Jul 03 10:21:36 danijoo_, Estel thanks for your help. I will look in which cases Android sets that bool to true. Any pointer where to find this would be also much appreciated Jul 03 10:21:53 you can also write both selectors in xml and do myButton.setBackground(getResources().getDrawable(R.drawable.newSelector)) Jul 03 10:22:00 danijoo_: ok i`ll try that. or do you even have an example for creating a selector in java? Jul 03 10:22:16 adkins: no sorry. I prefer doing this in xml :) Jul 03 10:22:26 makes it easier to reuse them Jul 03 10:23:27 well my app needs it in java, its not of my choice ;) Jul 03 10:23:31 thx danijoo_ Jul 03 10:30:59 Ghiottone: it depends on the app as much as anything :) It's best to decide based on your own requirements whether you need two panes Jul 03 10:38:14 Estel you are right Jul 03 10:38:27 Estel, danijoo_ thanks again. I was able to solve my problem Jul 03 10:39:31 who use okhttp? I can't download a file properly. With Java Nio I have no issues. Here's the simply code: http://pastie.org/9349939 Jul 03 10:41:27 gdrc: arent pdfs in byteformat? Jul 03 10:41:48 Yes. So? Jul 03 10:42:17 I just write the body of the server response Jul 03 10:42:37 yeah but the body is the pdf right? Jul 03 10:42:59 I think so Jul 03 10:43:33 shouldnt you get it as byte[] instead of String then? :) Jul 03 10:44:48 let me try Jul 03 10:45:05 because what you are doing here is converting the pdf (stored in byte) into String with UTF-8, and then storing this in a file Jul 03 10:45:21 which I guess will result in a file full of crap Jul 03 10:46:30 If I use response.body().string().getBytes() I get a file of 11 byte o_O Jul 03 10:47:37 thats even worse Jul 03 10:47:46 now you convert the bytes to a string and back to bytes. Jul 03 10:47:57 Hi Jul 03 10:47:58 use response.body().byte(); Jul 03 10:48:04 Unable to instantiate activity ComponentInfo Jul 03 10:48:05 com.example.database_demo.MainActivity cannot be cast to android.app.Activity Jul 03 10:48:08 bytes()* Jul 03 10:48:25 why do I get that Jul 03 10:48:30 Hi niru, what does MainActivity extend? Jul 03 10:48:31 niru: well, what does Activity extend? Jul 03 10:48:41 yes extends Activity Jul 03 10:49:02 no sorry it extends SQLiteHelper Jul 03 10:49:10 there you go :) Jul 03 10:49:17 SQLiteOpenHelper Jul 03 10:49:29 SQLiteOpenHelper is no activity Jul 03 10:49:45 Your SQLiteOpenHelper should be a separate class Jul 03 10:49:50 hmm yes :( Jul 03 10:50:00 We're renaming (and pretty much redoing) one of our apps, but we still want users of the old version to receive an update for the new version. Any clue on what issues I'll be running into? Jul 03 10:50:45 Syzygy: No issue as long as you keep the package name Jul 03 10:51:48 danijoo_: yeah, same 11 byte of shit Jul 03 10:52:29 Will the app also be renamed in the appstore? Jul 03 10:52:35 play store Jul 03 10:53:12 not sure. :/ Jul 03 10:53:17 no Jul 03 10:53:20 it wont Jul 03 10:53:25 because app store name is apk independent Jul 03 10:53:32 you can change it in the developer consoel Jul 03 10:53:38 Ah ok Jul 03 10:53:50 not up to me then, but seems like an easy fix Jul 03 10:55:03 gdrc: PrintWriter is not made to write byte arrays to file Jul 03 10:55:11 you have to use a stream for that Jul 03 10:56:09 danijoo_, are you a gradle user? Jul 03 10:56:37 Syzygy: kinda. Im good at copying together my gradle scripts from other peoples scripts :) Jul 03 10:57:11 If I understood gradles applicationId property correctly I can set it to the old package name, while keeping the new package name for the rest of the project? Jul 03 10:57:30 uh. I have no idea. Jul 03 10:57:38 worth a try though Jul 03 10:58:13 I guess. Alright, thanks for the info Jul 03 10:59:27 danijoo_: thanks! Jul 03 10:59:44 its working? Jul 03 10:59:55 what u guys think of App called YO? Jul 03 11:00:42 danijoo_, Estel you both confussed me :) Jul 03 11:00:56 danijoo_: if i do image_button.setBackground(new_selector) and afterwards text_view.setBackground(new_selector) it only sets it for text_view .....can i not use one selector for more than one view? Jul 03 11:01:20 There is a main activity which extends ListActivity Jul 03 11:01:47 but why error is pointing to MainActivity Jul 03 11:02:26 adkins: why you set it on text_view the second time. do image_button.setBackground(new_selector) Jul 03 11:02:54 danijoo_: because i dont need it only for the imagebutton Jul 03 11:03:07 danijoo_, I can not tell yet. Also I ran into another potential issue because of shared user IDs Jul 03 11:03:15 for what do you want it then? Jul 03 11:03:33 oh, nevermind, I assume that question wasn't even for me :> Jul 03 11:04:18 i have a image button and below a textview. if image button is clicked the click-color shall also effect the textview. wasnt an issue yet as long as i do it per xml Jul 03 11:06:06 danijoo_, I got the issue now. Actually My AndroidManifest file was pointing to a wrong file Jul 03 11:06:22 It was not pointing to the one which extends Activity Jul 03 11:06:26 Now its working Jul 03 11:07:15 adkins: I dont get it. Is this text ON the button or a seperate view somewhere else in your layout? If its the last one, the selector of the button shouldnt have affected in xml as well as java Jul 03 11:10:03 danijoo_: i need to figure out something now, brb if i dont get it then i`ll explain Jul 03 11:10:13 if needed.... Jul 03 11:37:31 radial-relative-layout... wtf am i doing with my life Jul 03 11:45:45 o.O Jul 03 11:47:32 android studio keeps recreating folders with nothing but an .iml file in them -.- Jul 03 12:10:16 I am stuck again with some gui problem :( I need two TextViews on top of each other and an ImageView to the right. Kind of like this: =[] Either the ImageView is pushed out and not showing or it covers the textview :((( Jul 03 12:10:54 Unsucessfully tried to stich this together with both LinearLayout and RelativeLayout :( Jul 03 12:11:46 mihalybak, just use 2 linearlayouts Jul 03 12:11:56 1 for both textboxes (vertical( Jul 03 12:12:04 and then one holding the vertical layout with image horizontally Jul 03 12:12:45 Mavrik: tried that but had problem with which widht they should have Jul 03 12:13:13 mihalybak, well, you DO know the width of your image right? Jul 03 12:13:56 could do it with one relativelayout ... Jul 03 12:14:01 Yea, but not the width of screen-image_width which would be the width for the text? Jul 03 12:14:56 in some cases at least Jul 03 12:17:05 Zharf: yea, but how would I do that more exactly? I am trying to get that to work but the image gets pushed out of the frame OR covers my textviews Jul 03 12:17:27 mihalybak, can the image be aligned to the right? Jul 03 12:17:50 Yes I want it to the right Jul 03 12:18:04 Like this = [ ] Jul 03 12:18:24 Where = is my two textview and [ ] is the imageview Jul 03 12:21:32 or something Jul 03 12:22:40 Zharf: thanks will try it out :) Jul 03 12:22:48 but you need to make sure the image isn't too large of course Jul 03 12:25:39 if you want the image to take some percentage of the width of the screen then you should use linearlayouts with weights Jul 03 12:25:56 or calculate the width in runtime and set it Jul 03 12:28:05 Zharf: Worked fine, thanks :D Jul 03 12:28:52 no problem Jul 03 12:28:55 relativelayout <3 Jul 03 12:29:25 Yea that was crazy simple now that I see the final solution :P Jul 03 12:30:25 It just feels counterintuitive to start with the object that is far to the right :/ Jul 03 12:30:58 yeah, sometimes you need to start with stuff on the bottom and then jump to the top and then build the middle Jul 03 12:31:07 But I guess that is correct since we want the sizes to be set after that object Jul 03 12:31:29 but that's the power of relativelayout Jul 03 12:31:48 and the curse? :) Jul 03 12:32:19 sometimes it's annoying that it can't be used for some stuff and you need to "fall back" to linearlayout Jul 03 12:32:25 like if you need weights Jul 03 12:34:26 Zharf: atleast they can be combined good, I ended up keeping both my textviews in a linearlayout Jul 03 12:35:46 sure, but I'm a bit of ocd about doing things in a "neat" way and keeping the amount of elements to a minimum Jul 03 12:35:49 don't have unnecessary layouts Jul 03 12:37:12 from a performace perspective wont it be easier for the system to adapt two textviews to the size of one LinearLayout then to calcuate the widht independently for both textviews? Jul 03 12:38:01 lookup view heiarchy(sp?) Jul 03 12:38:37 Zharf: I think I want that too, but now I am just strugling too much with getting the gui like I want at all Jul 03 12:41:07 danijoo_: seems like i need to create a statelistdrawable for each view -> http://stackoverflow.com/questions/18954023/creating-statelistdrawables-for-multiple-components-of-a-custom-viewgroup-from-a Jul 03 12:43:30 Hi all, I'm using osmdroid lib for offline maps, but after some zooming in and out, I got OutOfMemeryException, somebody know a good (the best) solution to fix the memory issue? Jul 03 12:49:44 FrancescoV: Find the line that is causing it, then adjust Jul 03 12:56:58 FrancescoV: maybe the zooming allocates some additional memory that isnt freed again? Jul 03 13:03:20 i want to change the background color of a actionbar menu selected item. i have created a selector with android:state_pressed="true" android:state_enabled="true" Jul 03 13:03:50 also i have created a resource file with