**** BEGIN LOGGING AT Sat Jul 26 03:00:00 2014 Jul 26 03:00:02 desmin88: yes Jul 26 03:00:09 try shutting down android studio Jul 26 03:00:13 desmin88: ok Jul 26 03:00:42 desmin88: adb.exe still disappears after I start it Jul 26 03:00:53 now just try adb devices Jul 26 03:01:01 That gives the same error Jul 26 03:01:11 i.e. "error: protocol fault (no status)" Jul 26 03:02:43 well i guess Jul 26 03:02:58 all you can do is assume the fetal position and cry Jul 26 03:03:03 desmin88: ok Jul 26 03:03:27 desmin88: that gives the same error, and I think my phone just exploded Jul 26 03:04:10 desmin88: do you think I should try #android? Jul 26 03:05:16 maybe Jul 26 03:05:19 can I have more than one parameter in adapter constructor? listView.setAdapter(new ListAdapter(context, url, postData)) Jul 26 03:05:20 desmin88: ok Jul 26 03:05:23 adb is just a fickle bitch sometimes Jul 26 03:05:25 desmin88: thank you for your help Jul 26 03:05:30 desmin88: yeah, I agree completely Jul 26 03:05:38 syllogismos: depends on your adapter Jul 26 03:05:44 custom adapters can have as many as you want Jul 26 03:05:45 I want to use the same adapter, just change the data source Jul 26 03:06:41 im implementing BaseAdapter, can I add additional parameters in the default constructor and implement it? Jul 26 03:07:01 APerson_: there is a random suggestion on stackoverflow to disable adb integration in AS, or something - I dunno, I don't use AS... but I'd assume you've tried all the suggestions from a simple google of the error message Jul 26 03:07:15 Leeds: yes, I have Jul 26 03:07:26 Leeds: I've tried it with AS running and not running Jul 26 03:07:32 Leeds: with "it" meaning everything Jul 26 03:07:34 you're sure you've got the latest tools? Jul 26 03:07:53 considered using an operating system which is suitable for development? Jul 26 03:08:55 Leeds: SDK manager claims I have everything Jul 26 03:09:08 Leeds: Is Windoze 8.1 somewhere near suitable? Jul 26 03:09:25 APerson_: not suitable for anything, is my understanding Jul 26 03:09:33 Leeds: ouch Jul 26 03:12:51 Leeds: anyway, thanks for your help Jul 26 03:24:28 Is there anything to detect pinches (e.g. pinch to zoom) like there is flings (from android.view.GuestureDetector)? Jul 26 03:32:13 oh crap he left Jul 26 03:32:27 w8.1 makes adb even more finnicky Jul 26 03:32:30 thats probably why Jul 26 03:33:00 freezway: yes there is Jul 26 03:35:08 desmin88, ok.... what is it? Jul 26 03:35:17 also, what about two finger scroll? Jul 26 03:35:49 just google "android detech pinch zoom" Jul 26 03:36:00 first couple stackoverflow responses Jul 26 03:40:04 https://gist.github.com/syllogismos/9a0d882895f04b0a46e4 desmin88 here is my adapter code, currently in my constructor I hard coded url, postdata, filename variables, I would like them to be paramteres in the constructor.. but android annotations is not allowing me to have more than the context parameter Jul 26 03:40:55 Jesperhead: figure it out Jul 26 03:40:59 ? Jul 26 03:41:18 Jesperhead: intrinsicHeight Jul 26 03:41:23 on the drawable Jul 26 03:41:32 not at all. currently screwing with values just so i can better understand the relationships Jul 26 03:41:55 like my problem is general right, I want to use one adapter to load data from various data sources.. Jul 26 03:44:38 whats your current code? Jul 26 03:45:33 lasserix me? Jul 26 03:46:00 no Jesperhead Jul 26 03:46:14 coming right up. Jul 26 03:48:11 syllogismos: thats a limitation of android annotations Jul 26 03:48:43 syllogismos: have one constructor that takes the context, then an initialization method that takes the additional params you need Jul 26 03:48:44 http://pastebin.com/nMkpHxu3 Jul 26 03:48:53 syllogismos: http://stackoverflow.com/questions/14672069/androidannotations-in-cursoradapter example Jul 26 03:49:47 and http://pastebin.com/JiYsanv8 Jul 26 03:50:26 syllogismos: eitehr make all your data sources conform to one data stcuture that goes into your adapter, or use Jul 26 03:50:45 syllogismos: OR you can use https://github.com/commonsguy/cwac-merge Jul 26 03:51:02 the only thing i dont like about that, although it's great, is you end up having to use a lot of switches Jul 26 03:52:04 so I can init my adapter with my parameters right before I do setAdapter on my view? desmin88 Jul 26 03:52:32 Jesperhead: at the end of onMeasure, is width and height equal to desiredHeight or does it gettruncated? Jul 26 03:52:44 yeah all my data sources confirm to single structure Jul 26 03:53:15 syllogismos: you can have whatever you want in the subclassed constructor, key is passing the right arguements to super Jul 26 03:53:55 im using android annotations, its not allowing more than one parameter in the constructor.. Jul 26 03:54:01 lasserix: using wrap_content which is associated with AT_MOST. height = Math.min(desiredHeight, heightSize); Jul 26 03:54:19 so the smaller of the two it looks like Jul 26 03:54:49 you can force it to be desired hiehgt, just pass desired height and ignore that if Jul 26 03:54:52 see what happens Jul 26 03:55:55 well the viewgroup in general is looking "ok" and I can just scale the overall size of the view right? (filters to children?) Jul 26 03:56:14 im more concerned about getting the children icons laid out correctly Jul 26 03:57:34 so you also must iterate over the children and call onMeasure Jul 26 03:57:43 so, in onLayout, im calling a for loop to iterate over all child views. Are these views in order according to the xml? Jul 26 03:57:53 umm Jul 26 03:57:59 do you define them in the xml too? Jul 26 03:58:02 yes Jul 26 03:58:14 order = background icon (imageview), button x5 Jul 26 03:58:49 button1 is align_bottom with the viewgroup itself and centered horizontally Jul 26 03:59:07 all other icons are 35 degrees ahead of each other Jul 26 03:59:18 dont do that Jul 26 03:59:22 just force it by layout Jul 26 03:59:35 since you can do parent.getWidth/2 parent.getHeight Jul 26 03:59:48 (getHeight - icon.getHeight /2) Jul 26 04:00:00 the align bottom i mean Jul 26 04:00:09 hrm ok Jul 26 04:00:36 the icons are based on drawables? Jul 26 04:00:41 yes Jul 26 04:00:44 so you can do Jul 26 04:01:37 context.getResources().getDrawable(R.drawable.one_of_the_icons).getIntrisnicHeight() Jul 26 04:01:44 and pass that in for Jul 26 04:02:37 this is in my viewgroup.java? Jul 26 04:02:46 yeah Jul 26 04:03:15 So how big do you want the viewgroup to be? Jul 26 04:03:22 what's its dimensions going to be based on? Jul 26 04:04:36 eh... Its a "ring" that the icons "fit inside" Jul 26 04:05:05 can you post that image of what it is suposed to look like? Jul 26 04:05:06 and width doesnt really matter... anything from original size 423x423 to max_screen_width\ Jul 26 04:06:35 well you can look at : https://github.com/dmitry-zaitsev/CircleLayout/blob/master/src/ru/biovamp/widget/CircleLayout.java Jul 26 04:07:52 or https://github.com/sababado/CircularView/blob/master/lib/src/main/java/com/sababado/circularview/CircularView.java Jul 26 04:07:56 tho those are fairly complicated Jul 26 04:18:53 What are you child views? Jul 26 04:18:55 buttons? Jul 26 04:18:56 imagebuttons? Jul 26 04:19:49 1 imageview Jul 26 04:20:05 and currently only 3 buttons for debug Jul 26 04:20:36 are they all buttons or imageviews or what? Jul 26 04:24:57 1 imageview Jul 26 04:24:59 rest buttons Jul 26 04:25:06 with setbg Jul 26 04:30:15 phew this is complicated Jul 26 04:30:21 you should just use one of those libraries Jul 26 04:30:23 ;p Jul 26 04:51:16 hi, I'm having trouble figuring out how to use the location services from google play services. After googling, I found out the location client, which seems to be deprecated ( https://developer.android.com/reference/com/google/android/gms/location/LocationClient.html ) by LocationServices. However, I have no idea how to get an instance of FusedLocationProviderApi, nor have I found one example of it online. What am I missing here? Jul 26 04:51:49 lol lasserix thanks again bud, ill check into the gits Jul 26 04:52:30 was trying to code it up quickly Jul 26 04:55:23 Argh anyone have there AS get stuck in debug mode? Jul 26 04:55:29 and then it stalls at waiting for debugger? Jul 26 04:55:46 cant say Ive run into that personally Jul 26 04:55:56 AS? Jul 26 04:56:02 android studio Jul 26 04:56:35 oh. no then, sorry. not using it. Jul 26 05:01:03 g00s: "Windows 9 in development ... Windows 8 files request with Google under 'right to be forgotten'" ... http://m.computerworld.com/s/article/9249971/Microsoft_wants_you_to_forget_Windows_8 Jul 26 05:01:18 :p Jul 26 05:06:28 Jesperhead: errg, sorry taking too much time Jul 26 05:06:51 lasserix: youre okay, i thought you called it quits hehe, im looking through the circle layout Jul 26 05:09:46 im close Jul 26 05:09:58 just have to set the viewgroup bounds and it'll work everything else i think is functioning Jul 26 05:11:36 im surprised its this complicated Jul 26 05:11:47 kind of hanging by the skin of my teeth so far hehe Jul 26 05:12:58 its not so complicated Jul 26 05:13:08 basically you use trig to generate center points around an origin Jul 26 05:13:16 then translate that origin to the center of your view Jul 26 05:13:33 and use those center points, offset by padding and half width . half height to layout tlrb Jul 26 05:19:41 lasserix: well i had the logic worked out, my confusion is with how to apply that logic :) Jul 26 05:19:47 well.. mostly worked out Jul 26 05:20:13 new i was going to have to change values once i saw a result mimicking the idea Jul 26 05:20:16 knew* Jul 26 05:31:15 does anybody use Xamarin for Android development? Jul 26 05:33:39 lasserix: hi Jul 26 05:33:43 hi all Jul 26 05:39:24 hello niru Jul 26 05:41:08 hello niru Jul 26 05:41:52 hello niru Jul 26 05:43:00 Jesperhead: lasserix I want to have a layout which will have some 9 textboxes,1 drop down list and few buttons.But depending on a selection through the program I should be able to manage the display. Like some times all 9 textboxes should get diplayed and sometimes 5 textboxes with 1 dropdown Jul 26 05:43:09 Is it possible to achieve so? Jul 26 05:43:21 hi JakeWharton Jul 26 05:43:43 In short I dont want to have multiple layouts for every selection Jul 26 05:43:46 niru: on first glance yes. what determines which widgets are shown/not shown? Jul 26 05:43:51 oh Jul 26 05:43:54 Is something like hiding some parts Jul 26 05:44:01 dont quote me but that sounds like baaaad practice Jul 26 05:44:35 like each "layout" could arguably be another screen? Jul 26 05:45:44 how should I go ahead? Jul 26 05:46:25 niru you can use setVisibility depending on the condition ot hide the ones you need to hide Jul 26 05:46:37 ie always start hiding htem all, then show the ones you want depending on those conditions Jul 26 05:46:38 i would argue 1 xml for each "group of widgets" then call setContentView to the xml whenever something happens Jul 26 05:47:34 Jesperhead: that means multiple layouts for multiple selections? Jul 26 05:47:50 setContentView will tell which view to select Jul 26 05:48:08 setContentView would tell what layout xml to inflate Jul 26 05:48:31 Jesperhead: the usual process that we do for each activity? Jul 26 05:49:06 so you have LayoutA with WidgetA WidgetB and WidgetC right? You enter a value into widgetA, make a selection for WidgetB (lets pretend its a spinner), and hit the submitbutton widgetC Jul 26 05:49:32 for widgetC onClickListener you can call setContentView(R.id.layoutB) Jul 26 05:50:02 which will have its own bit of widgets Jul 26 05:50:18 Jesperhead: hmm...ok... Jul 26 05:50:30 confused? dont be shy, where are you getting lost? Jul 26 05:50:42 Jesperhead: no its very clear Jul 26 05:51:15 that's how I would do it anyway. Jul 26 05:51:43 Jesperhead: and thats the standard procedure Jul 26 05:51:46 lasserix was talking about doing something similar, only instead of calling "setContentView()" you just iterate over the widgets you want to disable/enable Jul 26 05:52:00 lasserix: yes Jul 26 05:52:17 That will solve in 1 layout instead of multiple layouts Jul 26 05:52:28 niru: I think the "preferred" way would be to call a new activity fragment each time the layout changes, each fragment uses its own layout Jul 26 05:52:59 multiple layouts probably shouldnt be viewed as a hindrance and embraced. really makes thinks quite simple IMMO Jul 26 05:53:01 IMO Jul 26 05:53:26 Jesperhead: yes correct. i am getting you.... Jul 26 05:57:32 will this scrolling option work? Jul 26 05:57:33 http://pastebin.com/0HK0i6dx Jul 26 05:58:16 never used a scrollview, but it is a view so it should work just fine Jul 26 06:00:03 ok Jul 26 06:00:10 nice capella-s3 Jul 26 06:00:25 :) Jul 26 06:02:24 I want to have the widgets aligned in the centre of the page. Which attribute will do that Jul 26 06:02:53 Neato, I can get a Moto G for $70. Jul 26 06:03:13 Maybe now I can stop stealing my friends/family's phones.. Jul 26 06:05:30 niru: android:alignHorizontal and alignVertica;="true"? Jul 26 06:05:53 Jesperhead: this solved it android:layout_gravity="center_vertical|center_horizontal" Jul 26 06:06:09 since multiple widgets, you probably need to put them in a second linear layout, then set those attributes to the linear layout Jul 26 06:06:21 meh never screwed with gravity much, but if it works Jul 26 06:06:54 Jesperhead: what is second linear layout? Jul 26 06:07:41 in te xml Jul 26 06:07:44 the Jul 26 06:07:49 next a second linearlayout Jul 26 06:07:51 oh Jul 26 06:07:52 err Jul 26 06:07:53 nest* Jul 26 06:08:10 then set that layout to alignHorizontal="true" Jul 26 06:09:02 what's a great location experience? eg lookup a city or zip? Jul 26 06:09:27 I've got things wired up ie location suggestions etc Jul 26 06:10:09 basically MapFragment showing the current location or whatever user specifies from SearchView in ActionBar Jul 26 06:10:35 btw, using geocodeObservable Jul 26 06:11:24 and a button below the map that says 'Choose' or 'Pick' Jul 26 06:11:28 kinda meh about this Jul 26 06:12:32 does showing a map make for a great experience? Jul 26 06:19:56 hello Jul 26 06:20:45 I am trying to create/architect a db structure Jul 26 06:21:05 I am having hard time grasping how the helpers method will work Jul 26 06:41:34 http://i.imgur.com/6YMOG3p.png Jul 26 06:41:42 I'm not using any byte[] or boolean[] Jul 26 06:41:44 so why? Jul 26 07:03:25 If I have the IP of an android phone can I send it a request to install an app? It's for use with my home made music control system and I'd like friends who enter the house to get a notification that the app is available Jul 26 07:07:17 Anyone use surfaceviews? Wondering whether where it is better to initialize stuff (like the associated thread)? Jul 26 07:09:57 I use SurfaceViews for my live wallpaper Jul 26 07:11:22 how to get watermark on a spinner Jul 26 07:11:46 That is to have a faded text message on the drop down box Jul 26 07:12:07 android:hint will do? Jul 26 07:12:15 It is working for textboxes Jul 26 07:21:42 yeah Jul 26 07:21:44 well Jul 26 07:21:48 works on edit text Jul 26 07:22:03 you can always set it to disabled and just use it as a textview with hint Jul 26 07:23:25 Xabster that sounds like a cool thing Jul 26 07:23:36 Ologn: do you use created or changed to do init? Jul 26 07:23:47 yeah, but is it possible? Jul 26 07:23:51 i have no clue Jul 26 07:24:11 xabster you'd have to have an app installed to be able to ping it Jul 26 07:24:23 that's what i was afraid of Jul 26 07:24:35 tho theoretically you could do something like if blue tooth enabled do send request of app Jul 26 07:24:44 then they could install it Jul 26 07:27:45 Don't understand Jul 26 07:32:23 What does bluetooth help? Jul 26 07:35:28 Xabster: how about a QR code or NFC tag, that you can have them scan? Jul 26 07:36:18 good suggestion but not good enough :) Jul 26 07:37:33 Xabster: you can transfer files over bluetooth right? Jul 26 07:37:37 i dont know about your country, but in mine QR codes quickly died out after being abused by terrible commercials Jul 26 07:37:51 so have an app on "server" end that queries for bluetooth, then prompts if finding a connection to download Jul 26 07:38:11 is that a rhetorical question?` Jul 26 07:38:21 no Jul 26 07:38:22 yes Jul 26 07:38:23 Can it prompt the phone to accept it? Jul 26 07:38:24 who knows Jul 26 07:38:40 have you transfered a file over bluetooth? Jul 26 07:38:45 rarely Jul 26 07:38:54 when someone tries to send you a file, what does it do? Jul 26 07:38:57 but do you understand that I want the phones to be notified and just accept Jul 26 07:38:58 dunno Jul 26 07:39:14 but it would be a .ahk file then, right? Jul 26 07:39:22 you'd need to enable developer mode to install it Jul 26 07:39:22 it doesn't matter Jul 26 07:39:29 yeah Jul 26 07:39:36 but you could just send a link to the playstore Jul 26 07:39:46 Xabster: the only thing I can think of would be to provide a wireless access point that, when connected to, reroutes any http connection to a page that sends the file Jul 26 07:39:47 .. in a file Jul 26 07:40:05 yeah in a webpage Jul 26 07:40:05 very awesome idea, jesusfreke Jul 26 07:40:07 i can do that Jul 26 07:40:15 oh yeah that's even better Jul 26 07:40:39 but you could reroute to the play store, so they don't have dev emode enabled to install Jul 26 07:41:02 exactly Jul 26 07:41:21 Hi!!! Jul 26 07:41:26 Anybody help me? Jul 26 07:41:40 Ronaldooo: doubtful Jul 26 07:41:48 Ronaldooo: it takes two people to commit someone, i'm sure we can get you the help you need Jul 26 07:42:58 Ok Jul 26 07:43:02 I need explain Jul 26 07:44:51 In setText , I wish I did not replace all the text, just assign a part in my EditText Jul 26 07:44:57 thanks for the talk, lasserix and JesusFreke Jul 26 07:45:08 lasserix: sorry I did not see your message just looking now Jul 26 07:46:32 ?? Jul 26 07:47:28 Ronaldooo: you want to replace a substring in a textview? Jul 26 07:48:31 No Jul 26 07:48:35 In a edittext Jul 26 07:49:01 Input.setText(code1); Jul 26 07:49:39 what doy ou want to do with it? Jul 26 07:49:44 This replace all text in mi edittext Jul 26 07:50:34 aye Jul 26 07:51:20 you only want to replace part of code1? Jul 26 07:54:51 lasserix: now the textview and the spinner first choice are getting overwrtten Jul 26 07:54:58 its like a garbage Jul 26 07:55:43 code? Jul 26 07:55:46 idk what that means Jul 26 07:57:21 http://pastebin.com/Hb1VjNzx Jul 26 07:58:14 umm Jul 26 07:58:16 code not xml Jul 26 08:00:26 code? No I disabled it through android:enable=false Jul 26 08:02:13 what are they in? Jul 26 08:02:21 and whats the hint supposed t do? Jul 26 08:02:29 beinthe spinner? Jul 26 08:06:48 lasserix: At present spinner shows its first element,But I want to display a hint there that select the type Jul 26 08:09:50 http://stackoverflow.com/questions/8557729/how-to-set-the-hint-for-spinner-in-android Jul 26 08:16:16 thanks lasserix Jul 26 08:38:49 thanks google ;p Jul 26 09:14:21 hi everybody... are there any best practices on getting the Material Design of the L preview to Kitkat devices? I mean Google already launched some updates to their Apps (e.g. Play Store), that give 4.0+ devices a better look towards Material design... for a new project I am currently trying to evaluate the best approaches on getting a consistent and modern look on all those devices... any tips? Jul 26 09:38:11 lasserix: are you there? Jul 26 09:39:28 I want to upload an image by clicking on browse button. The image page will get displayed in the textbox. And on clicking save it should get saved in the database Jul 26 09:56:00 i was wondering why my service leaked or whatever it is, and oh im so stupid sometimes Jul 26 10:11:01 any tips on how to make a custom notification layout that doesn't look horrifying? Jul 26 10:18:27 heyhey. i'm still not sure after googleing around what the java build path is. can you spot what's wrong here? https://imagizer.imageshack.us/v2/751x514q90/540/SGACcr.png Jul 26 11:04:34 AS on windows is shit Jul 26 11:12:02 *the shit Jul 26 11:15:20 ugh effing importing libraries Jul 26 11:20:26 gdrc: except .NET I wouldn't use windows for dev Jul 26 11:20:59 I agree, I just tried it on my laptop Jul 26 11:55:35 I'd like to know why is gradient https://i.imgur.com/GFFun8M.png Jul 26 11:56:00 gdrc: Is it just the background? Jul 26 11:56:08 (drawable) Jul 26 11:56:31 background color is white Jul 26 11:56:46 (on the ListView) Jul 26 11:57:08 I don't see a listview... Jul 26 11:57:33 The white thing might be a listview, and it got a white color. What does that leave? Jul 26 11:57:41 This is a navigation drawer Jul 26 11:57:44 Right! The rest, with the usual gradient background. Jul 26 11:57:54 Uhm, well, then not... Jul 26 11:59:58 I think it's because of default background color or framelayout Jul 26 12:00:47 You can inspect the view layers with DDMS... Jul 26 12:22:16 Hi! I want to customize so that the selected tab (ActionBarSherlock) is red, is that possible? I.e. not only the small indicator, but the whole tab. I have googled for it and tried some solutions but without luck. Jul 26 12:22:18 guys, where do I store a key like an ssh key? Jul 26 12:23:04 Yatekii: For what? Jul 26 12:29:00 flan3002: ahm what do we ssh keys use for? Jul 26 12:29:10 to use it in my app Jul 26 12:29:40 Yatekii: I asked because I tried (and failed) to use OpenSSH on my phone... Jul 26 12:30:07 (Because of unimplented endpwent on Android, seemingly called by bash) Jul 26 12:46:55 flan3002: it's not an ssh key. I just need storage for keys Jul 26 12:46:58 and I know ther eis Jul 26 12:48:12 Yatekii: Probably internally in /data/data/your.app.name/files with encryption, no? Jul 26 12:50:30 flan3002: well I heard there is special storage for that Jul 26 13:02:19 Is there another way to backup app data that does not use google's BackupManager cloud backup? I don't like the idea of that for sensitive personal data. Any alternatives has to be "future proof" also. Found this but it says "Note that this is, obviously making a fair few assumptions (such as the location and name of the shared preferences file), which may change in future (or be totally different on other Android devices). " Jul 26 13:02:46 oh forgot the url sorry: http://blog.grapefruitopia.com/post/18755719222/backing-up-and-restoring-a-users-sharedpreferences Jul 26 13:03:45 jesperj: BackupManager uses whatever backup provider is used, doesn't have to be Google's (for example, adb backup and that tool from Cyanogen iirc use the same system) Jul 26 13:05:22 jesperj: interestingly enough, you can probably block google backup by not registering for API key Jul 26 13:06:57 hey guys, ive got an activity with a media player, but when you click the "up" button in the action bar to go to the parent activity, the mediaplayer activity is killed in the process, how do i stop this from happening? Jul 26 13:25:48 jesperj: is encryption before uploading to google cloud an option? Jul 26 13:28:10 p_l: Thanks I'll look into that. Jul 26 13:28:25 swulf--: I guess that could also be an option to consider. thanks Jul 26 13:33:19 If I were to make my own; is there a way to get the "shared_prefs" dir that is guaranteed to work on all devices even if that folder is named something else? Jul 26 13:45:58 Hi, did someone know how can we make working Urlconnection with http authentification DIGEST. Because in normal java we can do it with AUTHENTICATOR, but on android AUTHENTICATOR work only for BASIC authentifications ... Jul 26 13:52:03 Where can I find an article on How to use the Play store beta testing program? Jul 26 13:52:48 I wonder why such a thing is not documented well, while Testflightapp is acquired by apple, and they dropped android support. Jul 26 13:55:33 napster: what has google showed you that you don't understand? Jul 26 13:56:10 canvs2321 I don't understand why it is not well document on developer.android.com :D Jul 26 13:56:25 use google search Jul 26 13:56:43 http://pugetworks.com/blog/2013/06/beta-testing-android-apps-on-the-google-play-store/ https://support.google.com/googleplay/android-developer/answer/3131213?hl=en Jul 26 13:56:47 are just two results Jul 26 13:57:02 if you don't find what you need, search more Jul 26 13:57:20 ok did you read any of those two? Jul 26 13:57:24 yes Jul 26 13:57:36 you create a google+ community for testers Jul 26 13:57:37 ok I have gone across those as well Jul 26 13:57:44 then what's the problem Jul 26 13:57:54 does it get you back crash reports like testflightapp? Jul 26 13:58:16 or does it provide memory reports? Jul 26 13:58:22 i'm sure crash reports are sent just like any normal production app. The user has to report them though Jul 26 13:58:24 screenshots from test devices? Jul 26 13:58:40 that is a different question than what you implied Jul 26 13:59:09 ok, looks like I should go the hard way around. Do try out the beta-testing program provided by Google Jul 26 13:59:10 OR Jul 26 13:59:19 it's been a minute since i've had a published app, does production reporting include screenshots? Jul 26 13:59:36 opt for some proper services like Testfairy which is well documented on how it works and what is provided Jul 26 13:59:36 :) Jul 26 14:00:06 well, looks like testfairy provides screenshots, (it is a nice feature as well ;) ) Jul 26 14:00:22 twitter has a solution called Crashlytics Jul 26 14:00:32 (PS:-they have it documented as well) Jul 26 14:01:28 all ya need is the user to report the stacktrace, do you need more? Jul 26 14:01:48 stacktrace is enough, (though screenshots are nice) Jul 26 14:02:05 just to know how the app looks on their devices Jul 26 14:02:23 then contact the tester for a screenshot, put it in the description that that is something you are interested in Jul 26 14:02:42 they are testers, tell them what you want Jul 26 14:03:12 They had to manually send the reports if using play store beta-testing? Jul 26 14:03:18 oh thats gross man! Jul 26 14:03:28 things should work magical at times... :) Jul 26 14:04:00 if a crash happens they have the option to send the report, screenshots would be a extra step they take, but if they are testers, they shouldn't have an issue helping Jul 26 14:04:14 Hi all. I'm looking into having my app being able to launch Some URL's. What's used when doing this, what should I google for? Jul 26 14:04:15 right Jul 26 14:04:24 I tried thinkg like reverse intent, but... :) Jul 26 14:04:37 ThomQ Sending out intents Jul 26 14:04:43 ThomQ: ^ Jul 26 14:05:17 yeah, but arent intents from app - > url -> laucnhing app? I want my app to be a launching app if it were Jul 26 14:05:32 excuse the n00bness :D Jul 26 14:06:15 They may have multiple browsers, let them choose whom gets launched Jul 26 14:06:44 yeah i know. But, i think i'm not explaining it correctly. I want my app to be in that list to open URL's Jul 26 14:06:49 but only Certain URL's Jul 26 14:07:07 like the google plus app only pops up as launcher option when clicking a google plus link Jul 26 14:07:08 ah, then set yourself up to catch those intents Jul 26 14:07:25 Ahhh Jul 26 14:07:27 thank you :D Jul 26 14:08:01 :) Jul 26 14:08:24 any idea re this logcat output? http://pastebin.com/raw.php?i=ZxfnafXE Jul 26 14:08:54 huh? Jul 26 14:09:05 I tried getting some hello world application to run in eclipse Jul 26 14:09:17 it didn't work.. the logcat window appeared and disappeared Jul 26 14:09:27 so I did some command with adb and got debug output Jul 26 14:09:46 i guess it's not called logcat output Jul 26 14:09:51 what is "re" Jul 26 14:10:03 regarding Jul 26 14:10:13 Is that a watch or something garyserj ? Jul 26 14:10:31 No, it looks like logcat output Jul 26 14:10:51 no, I mean, I see some wearable bla bla blah Jul 26 14:10:54 I'm seeing a Lot of connection error's at the end, but I don't know / understand why that would come into play in a simple hello world project Jul 26 14:11:40 also, if you're just starting out, I'd recommend another IDE :D IntelliJ beats Eclipse by miles imo Jul 26 14:11:44 i think it was largely file..new.. making a new project in eclipse. And building it and running it in a simulator, it ran but then it crashed within the simulator Jul 26 14:12:06 my aim is to get an app running on my nexus 4 android device Jul 26 14:12:15 I have visual studio Jul 26 14:12:24 do you think IDEA > VS? Jul 26 14:12:34 IntelliJ IDEA Jul 26 14:13:23 That I couldn't tell you. VS is ofcourse the cadillac in C# programming, don't know how it handles java though Jul 26 14:13:55 but, the logcat output is from a run on a emulator? Do you get the same errors when running the app on your nexus? Jul 26 14:14:14 I don't know how to get the app onto my nexus Jul 26 14:15:20 I got some tutorial course for $5 on fiverr! and it went as far as building it (it did build a few days ago) though doesn't build at all now for some reason, eclipse can't find the android sdk even though i've pointed it to it. And the tutorial didn't go as far as making an .apk file Jul 26 14:15:59 i'm not that keen on buying intelliJ and i'm new and just for hello world.. at the moment. Jul 26 14:16:26 you coding in Java? Jul 26 14:16:51 yes. I do know java, I did some java like a decade ago Jul 26 14:17:07 you don't need to buy anything - all the standard Android dev tools are free Jul 26 14:17:26 but.. i'm trying two hello world's. one in java, in eclipse.. Another i'm trying in xamarin in c#. But i'm asking here about the java one. Jul 26 14:17:52 I got some links for you gary. I looked it up and it Is possible to dev for android with VS, but not recommended Jul 26 14:18:12 i'd be interested in that ThomQ thanks Jul 26 14:18:19 I'd go with IntelliJ: http://www.jetbrains.com/idea/ , So much more stable then eclpise, it's a dream. Jul 26 14:18:34 this is a good tut on how to make a empty / hello wolrd project: http://wiki.jetbrains.net/intellij/Developing_applications_for_Android_in_IntelliJ_IDEA Jul 26 14:18:51 and this tut shows how to connect your phone as debugging device: http://visualgdb.com/tutorials/android/usbdebug/ Jul 26 14:19:30 thanks ThomQ i'll give that a try. Jul 26 14:19:38 and this link explains how to turn on debugging on the nexus 4 specificly: http://stackoverflow.com/questions/16707137/how-to-find-and-turn-on-usb-debugging-mode-on-nexus-4 Jul 26 14:20:04 Leeds: do you have a link about how to build a hello world app from a free ide? Jul 26 14:20:09 or from a text editor Jul 26 14:20:19 that way I can use the bear android dev adt tools Jul 26 14:20:19 you're welcome gary. I wished someone pointed me away from Eclpise when I was just starting :D Jul 26 14:20:37 I don't use an IDE, but... http://developer.android.com/training/index.html is the place to start Jul 26 14:20:48 ThomQ: HEHE.. you're lucky you didn't start a bit earlier.. when eclipse was a dream compared to what was before, like jbuilder! Jul 26 14:21:00 I did a little java about 13 years ago Jul 26 14:21:24 hehee. Jul 26 14:21:31 Leeds, you dont use an IDE? what do you use then Jul 26 14:21:38 vim Jul 26 14:21:46 a real man! Jul 26 14:22:27 :D Jul 26 14:22:31 some people use sublime as a text editor for programming, and it probably has sime vim plugin, though sublime is not free. Jul 26 14:22:59 but it's the only text editor I know of where some people from the cult of emacs and the cult of vi/vim have moved to it Jul 26 14:23:08 so it must be good! Jul 26 14:31:10 Leeds: Do you use neocomplete with javacomplete and have gotten it to complete with the Android APIs? Jul 26 14:31:22 I use nothing Jul 26 14:31:42 vim, ant, lolcat Jul 26 14:31:44 What build system? Jul 26 14:31:48 Yeah, ant... Jul 26 14:32:07 can you do breakpoints in vim? Jul 26 14:32:37 would be tough to debug without them, you'd have to put in writelns I suppose Jul 26 14:32:45 vim is a text editor, not an IDE, which means it doesn't help with debugging by default. Jul 26 14:33:16 flan3002: well, sometimes text editors can have some features that cross over a bit. Jul 26 14:33:39 Sure, you can script it, but it's not included by default. Jul 26 14:34:15 old school and proud of it... edit in an edit, log for debugging Jul 26 14:34:15 flan3002: as you suggest, 'by default' so yeah there can be plugins. and i'm asking him whether he uses breakpoints Jul 26 14:34:28 er, edit in an editor Jul 26 14:34:49 garyserj: He said he uses 'nothing'. :) Jul 26 14:35:12 good plain vim, full of fibre Jul 26 14:35:54 ant clean && ant debug && adb install -r && adb lolcat Jul 26 14:36:00 that's my build system Jul 26 14:43:37 well, that shut down the conversation :) Jul 26 14:46:45 Well, adb lolcat is... flooded. Why no grep? Jul 26 14:47:50 I'd sure like to use a CLI environment for android dev, but... Jul 26 14:48:28 you can filter lolcat Jul 26 14:48:29 Interactive API exploration with documentation and parameter names is just very... handy. :) Jul 26 14:50:02 #> logcat | grep "Whatever" Jul 26 14:51:19 canvs2321-: The lolcat filter seem to be more handy... Jul 26 14:52:08 whatever you are used to using Jul 26 15:01:07 is there a way to get the "shared_prefs" dir that is guaranteed to work on all devices even if that folder is named something else? Jul 26 15:02:30 how would it be guaranteed if you are changing it? Jul 26 15:04:12 canvs2321-: Sorry I meant that it would return the shared_prefs dir (the dir where sharedpreferences are stored) even if that dir might be named/stored on different places on different devices/android versions Jul 26 15:04:23 put it whereever you want, just parse the xml yourself Jul 26 15:05:17 using the android API for shared preferences should work no matter what, unless you are changing things Jul 26 15:07:50 canvs2321-: I am using sharedpreferences to store app settings... now I want to backup those settings. normally they are under a "shared_prefs" dir as I understand it, but if I code my backup method to get it from the "shared_prefs" dir, it might break if the dir for storing shared preferences changes in the future on some devices/android versions Jul 26 15:08:16 canvs2321-: We must misunderstand each other Jul 26 15:08:51 Hi. Just wanted to ask, I have a scrollable TextView. And I would want to make it move to the last line each time I put new text into it. Can I do that without putting it inside of a ScrollView? Jul 26 15:08:54 why would it change? and even if it did change, why not use the API to get the k/v's and save it to a file? Jul 26 15:09:15 you are making wild theoretical thoughts Jul 26 15:10:51 canvs2321-: Oh you mean to use the shared preferences API to both get the values and then export that to whatever I want, and the same for restoring, rather than copying the files in the shared_prefs dir? Jul 26 15:11:13 yes if you are scared things are gonna change Jul 26 15:11:38 cause in your mind shared_prefs may not exist Jul 26 15:11:47 canvs2321-: That's a good idea. However would you do it that way or just copy from the shared_prefs dir? Jul 26 15:12:17 just check for existence, if not there, then do a manual copy Jul 26 15:13:27 canvs2321-: check if "shared_prefs" dir exists and if not use sharedpreferences api for setting/getting? Jul 26 15:13:34 yep Jul 26 15:13:41 canvs2321-: thank you for your input Jul 26 15:13:49 :) Jul 26 15:13:58 :D Jul 26 15:15:13 the 9patch thing is driving me nuts is there any solution for humans? Jul 26 15:15:29 what do you mean? Jul 26 15:15:47 left&top patches control stretch, right&bottom control padding Jul 26 15:16:29 what if I have a splash screen which is 2048x1536 and I want the middle 1000x500 always centered? Jul 26 15:16:34 i just dont get it :) Jul 26 15:16:45 it's always stretche Jul 26 15:16:46 d Jul 26 15:16:47 that's insane for 9patch Jul 26 15:16:57 yeah... that's why i'm asking Jul 26 15:17:02 you aren't stretching, you are shrinking Jul 26 15:17:08 you aren't using it right Jul 26 15:17:24 9patch is for a 10x10 image to scale to any size Jul 26 15:17:35 for the image size you are using 9patch isn't an option Jul 26 15:17:40 oh. hha Jul 26 15:17:43 so... ? :-) Jul 26 15:17:53 *should have asked 5 hours ago* Jul 26 15:17:56 do devices even handle that size? Jul 26 15:18:08 without shrinking/scaling down? Jul 26 15:18:38 yes and no. they're using it but, yeah shrinking :-/ Jul 26 15:18:52 it looks horrible on 16:10 devices ;-) Jul 26 15:19:02 k, 9patch isn't what you want, you want to work more with imageview scaling options Jul 26 15:19:40 i see, okay... Jul 26 15:20:36 your image converted to bitmap is like 3+megabytes, should probably rethink that Jul 26 15:21:11 was not aware that it's converting it... as png it's 140kb Jul 26 15:21:32 it gets converted to bitmap, WxH = Bytes Jul 26 15:21:46 sure Jul 26 15:22:20 WxHx3, actually Jul 26 15:22:23 or 4 Jul 26 15:22:27 ouch :) Jul 26 15:22:44 depends on whether RGB, RGBA, or RGB0 is used Jul 26 15:22:51 is that if RGB_8888? Jul 26 15:23:44 canvs2321-: yeah, RGBA (or ARGB) is RGB + Alpha, so four channels. Then you have RGB + padding formats Jul 26 15:24:10 k, forgot bout that Jul 26 15:24:42 in case of android, afaik you usually end up with the bitmap rendered through RGBA anyway, though I suspect you could cut that off in GL (might depend on hw) or through careful management of view hierarchy Jul 26 15:25:14 so in otherwords dewp, you wanna rethink the process :) Jul 26 15:25:27 yeah i got it Jul 26 15:25:28 thx Jul 26 15:26:28 dewp: also, you might want to read up on how views are rendered anyway if you want speedy rendering Jul 26 15:26:47 (infamous deadly overpaint) Jul 26 15:31:52 Never mind, I found it out. Jul 26 15:32:14 debugText.setScrollY(debugText.getLineCount() * debugText.getLineHeight() - debugText.getLineHeight() * 4); Jul 26 15:59:43 '* 4' seems legit Jul 26 15:59:51 probably works on all devices "D Jul 26 15:59:53 :D Jul 26 16:00:38 dont forget to extract it and name it 'UNIVERSAL_STUDENT_CONSTANT' Jul 26 16:06:21 anybody here use virtualbox and adb to restart it? Jul 26 16:06:28 to restart a VM in virtualbox Jul 26 16:10:35 gordon_: Yeah, it was the number of rows the TextView was set to. Jul 26 16:14:27 I just downloaded my app from the Google store and it has given me too identical icons? Jul 26 16:14:34 I uninstalled the app and both went? Jul 26 16:15:09 garyserj: dont think adb can restart virtualbox Jul 26 16:15:12 garyserj: use bash Jul 26 16:16:02 adb reboot could instruct android to reboot. So it might work. Jul 26 16:17:20 gordon_: i'm on windows Jul 26 16:20:09 then use bat script Jul 26 16:20:13 or powershell script Jul 26 16:20:16 doesnt matter Jul 26 16:20:50 SamB_: How many tags do you have in your manifest and how many of these provide launcher intent filters? Jul 26 16:27:34 hey all, why would the extras in an intent's bundle be 'stale'? Jul 26 16:27:59 in onCreate, im seeing extras that are set but then changed and i still see the original value Jul 26 16:28:25 gordon_: adb devices isn't listing the virtualbox VM. Jul 26 16:28:52 flan3002: Thanks your a genius that solved the issue :D Jul 26 16:29:10 Can't believe I missed that :) Jul 26 16:29:32 :) Jul 26 16:30:10 SamB_: Keep in mind that multiple entries in the launcher for a single app will confuse a great share of users and should therefore be avoided. Jul 26 16:31:48 Thanks flan3002 I will, I still find the manifest daunting to even look at :) Jul 26 16:33:15 hello peeps, i'm looking into an issue for another dev. Jul 26 16:34:13 when a notification gets dismissed or appears, the keyboard closes, video's pause.. Jul 26 16:35:34 i have access to the source. Jul 26 16:36:34 i'm running android 4.4.4 but i wanted to know if this is a common issue on 4.3+ devices Jul 26 16:37:14 so if he's watching a youtube video, it stops playing whenever he gets a notification? Jul 26 16:37:21 woo i fixed it! Jul 26 16:37:25 or, say, typing an email in gmail, the keyboard closes? Jul 26 16:37:37 garyserj: you need to use adb connect first Jul 26 16:37:41 Sorry for the basic question but am I sure that function2() will run after function1() has completed when i have: function1(); function2(); ? Jul 26 16:38:04 leeds, every user on 4.3+ has that issue, me included Jul 26 16:38:27 iSeeDeadPixels: every user on every device everywhere in the world, using any video app, any keyboard? or are you missing some context in your question? Jul 26 16:39:11 missing some context, sorry Jul 26 16:39:30 it's for a specific app, Notification center for Pebble Jul 26 16:40:19 Eww. L img is 400-something MBs... Jul 26 16:40:45 And I though I could just™ install it... Jul 26 16:40:48 *thought Jul 26 16:40:48 i have the source here, and have tried searching for the function that is the culprit for closing the keyboard and pausing video's https://github.com/matejdro/PebbleNotificationCenter-Android Jul 26 16:44:38 skulltower: yes, in an imperative language such as java, that will be the case Jul 26 16:44:55 Hi, did someone know how can we make working Urlconnection with http authentification DIGEST. Because in normal java we can do it with AUTHENTICATOR, but on android AUTHENTICATOR work only for BASIC authentifications ... Jul 26 16:46:46 evening guys Jul 26 16:46:57 alankila, thanks m8 :-) Jul 26 16:47:02 Leeds, any leads? Jul 26 16:47:03 skulltower, np :D Jul 26 16:47:12 skulltower: assuming neither is a thread or has async returns that affect your life, yes. Jul 26 16:47:16 iSeeDeadPixels: well, I still have very little idea what you're talking about Jul 26 16:47:40 hmm... how could i help with that? Jul 26 16:47:54 this app is a notification forwarder for pebble smartwatches Jul 26 16:48:13 why is there such little documentation on XML? Jul 26 16:48:24 where can i find documentation on Android XML/ Jul 26 16:48:52 when a notification is recieved, the app closes the keyboard or pauses the video currently playing (observed in netflix, it rotates the screen to portrait and back, then pauses the video) Jul 26 16:49:10 at this point, the notification displays on the Pebble Smartwatch Jul 26 16:49:45 i'm trying to find out why this is happening, and if this happens in other cases for apps that have notfication access. Jul 26 16:50:28 where a notification that's getting parsed / dismissed causes trouble for other apps that are at that moment in the foregrounde Jul 26 16:50:33 forground. * Jul 26 16:50:35 damn it Jul 26 16:50:39 foreground * Jul 26 16:51:02 what colors should i use in my app icon? (i'm making a zippyshare app and their logo is: http://zippyshare.com/images/logo.png, id like some similarities in color) Jul 26 16:51:18 im making my own icon Jul 26 16:51:21 404... Jul 26 16:51:30 where can i find documentation on Android XML!? Jul 26 16:51:31 iffa: use the red and gray imho as the main colors. Jul 26 16:51:40 Because that comma is copied... -.- Jul 26 16:51:49 hey are the most prominent, so that's why. Try to incorporate the green downwards arrow somehow. Jul 26 16:51:51 flan3002: sorry :( Jul 26 16:51:54 iffa: kuler.adobe.com Jul 26 16:52:42 Wait a second. Jul 26 16:52:46 ia9371, ask your question once, and wait for answer. Jul 26 16:53:34 iffa: These are the colors that kuler extracts from the given image! https://kuler.adobe.com/logo-color-theme-4176119/ Jul 26 16:53:37 ia9371, nobody wants to help someone that keeps repeating themselves, i've been there myself, and in my experience, people are more inclined to help when you ask it once, everyone in here can read. Jul 26 16:53:59 flan3002: yes, i checked myself as well - ill see what to do with the app icon Jul 26 16:54:00 thanks guys! Jul 26 16:54:10 good luck iffa Jul 26 16:54:30 Hi, did someone know how can we make working Urlconnection with http authentification DIGEST. Because in normal java we can do it with AUTHENTICATOR, but on android AUTHENTICATOR work only for BASIC authentifications ... Jul 26 16:55:14 cyber37: eh, I looked into it. It seems like it's going to be some amount of work. Jul 26 16:55:43 apparently the server sends realm and nonce, you need to incorporate that into your digest calculations and respond Jul 26 16:55:51 yes Jul 26 16:56:08 I can do it myself but if something do it it's better Jul 26 16:56:26 but the process is to read the header, get the nonce, realnm etc Jul 26 16:57:00 first you try to connect, you have 401 error, then you get the informations, and afther you try again with "calculated response" Jul 26 16:57:11 but if something do it, it will be better for me Jul 26 16:57:16 IseeDeadPixels: do you know where I can find tutorials on XML for AndroiD!? Jul 26 16:57:53 ia9371: your open-ended question isn't really easy to respond to. You can't use the existing parsers for some reason? Like, the DocumentBuilder? Jul 26 16:58:17 did exist another way for do a http request ? than urlconnection ? Exemple i see httpclient but did it work with digest auth ? (i don't see in the doc, but i just see that the authentification work on it) (but idk if it's DIGEST type or BASIC) Jul 26 16:58:31 there was httpclient but it is deprecated as far as I know Jul 26 16:58:50 as to what comes to the digest auth, if you already have that shit working then just use it, there's no style points awarded, only working shit matters Jul 26 16:59:48 and what about the NC, is it a problem if we don't increase it ? did the server realy watch that ? Jul 26 17:00:21 and what about the CNONCE, did we have to "reply" a full random CNONCE everytimes, or it could be the same ? Jul 26 17:00:50 I am sorry, I don't really know about the specifics of the digest auth. It is defined in RFC so do read it if you think you need some clarification. Jul 26 17:01:03 My guess is that server defines the nonce and requires that your digest matches the nonce Jul 26 17:01:11 yes Jul 26 17:01:18 ia9371, i'm not going to help you. Jul 26 17:01:37 aha, a client nonce Jul 26 17:01:50 ia9371, have you tried googling? "XML Parser Android" ? Jul 26 17:01:51 well, this should be a random string taken from a strong cryptographic source and have a suitable length. Jul 26 17:02:04 O DONt want Xml parsar Jul 26 17:02:08 easiest source for a cnonce is probably a timestamp to the millisecond precision Jul 26 17:02:21 I want a freking Detailed Documentatino on all of android xmls synte my cunz Jul 26 17:02:31 ia9371, your question didn't specify otherwise Jul 26 17:02:33 that's true but some ones have optional "CNONCE" and a "NC" the NC is something who start at 1 and must be incremented every itch request, but that is the theory, in the reality did the server realy watch if the Nc is incremented ? Jul 26 17:02:44 hmm, and I see, there's also nc, which must be monotonically increasing Jul 26 17:03:03 ia9371, developer.google.com Jul 26 17:03:28 the specification says NC must increment monotonically. I expect that server cares about this, since it is a security feature. Jul 26 17:03:37 yeah but did the server "realy watch" if the nc is incremented ? Jul 26 17:03:48 If it is a secure server, yes, it will care about it. Jul 26 17:03:52 ok Jul 26 17:04:07 i will do some test so Jul 26 17:04:11 quite a bit of irritating work, to deal with digest auth Jul 26 17:04:23 I don't think I've ever seen anyone use it before Jul 26 17:04:30 ia9371, go try to find it there, if you can't find it, start googling. Jul 26 17:04:48 no one bothers with digest auth because of ssl Jul 26 17:04:50 I use it because i made a program for parse a video from a IP camera Jul 26 17:05:05 ia9371: you're looking for a single document which covers every single XML element/attribute/whatever used by Android in any way? Jul 26 17:05:37 I use digest auth on some resources I protect, though Jul 26 17:05:49 yeah Im trying to find documentatino on all XML for android Jul 26 17:05:59 ia9371, and i know i linked to a place you possibly won't find what you're looking for, as i want to motivate you to seek answers for yourself, like i do, and i've googled every variation of every keyword of what i'm currently stuck with, and i still can't find it, that's why i came here. Last resort and all Jul 26 17:06:10 Leeds, dammit, this issue is annoying :( Jul 26 17:06:18 the process of that is to do an http request, (in normal java the authenticator work with digest so i jump that shit), and then i just get the bytes between 0xff 0xd8 and 0xff 0xd9 (start and the end of jpeg picture) and decode it as jpg. Jul 26 17:06:35 but for my android app i ahve to watch for digest, it's not realy hard but it sucks . Jul 26 17:06:42 ia9371: dream on Jul 26 17:08:36 ia9371, http://developer.android.com/reference/packages.html Jul 26 17:08:40 enjoy. Jul 26 17:09:25 cyber37: you can probably just steal the authenticator from the jdk sourcecode if you are of such mind Jul 26 17:09:33 it's probably a single class Jul 26 17:10:05 Can anybody tell me what's wrong with this code? http://pastebin.com/s8ETKxSz Am i misunderstanding how the draw method works or am i just not drawing anything? Jul 26 17:10:36 skulltower: Yes, you're misunderstanding it. :) Jul 26 17:11:20 Misunderstanding everything or only the draw method part? :D Jul 26 17:11:27 Most of it. Jul 26 17:11:38 Ok.. Back to the drawing board. Jul 26 17:12:05 You don't just create a new canvas. It's usually passed by the system to you. You can create one to paint on bitmaps yourself, but that's not what you want. Jul 26 17:12:22 skulltower: Look at a good example, e.g. from the APIDemos. Jul 26 17:12:41 * flan3002 doesn't feel like explaining. Jul 26 17:28:40 hello Jul 26 17:28:50 Say I want to display all the data i a database Jul 26 17:28:55 what is the best way to do that Jul 26 17:29:09 I want an activity that displays all the data in a database Jul 26 17:29:22 use a text box? Jul 26 17:30:53 ia9371: Is it thought for debugging? Jul 26 17:31:11 im not worrie about debugging at this time Jul 26 17:31:20 I just want to display all the data in the database.. Jul 26 17:32:11 ia9371: You can always use $ adb shell, $ su && sqlite3 /data/data/your.app.name/path/to/your/db to play around with it. Jul 26 17:32:32 i want to view the data in the application Jul 26 17:32:48 possibly be able to edit it Jul 26 17:33:09 For devs only, or for all users? Jul 26 17:33:20 for all users can view it Jul 26 17:33:42 i don think thers going to be many users for this app Jul 26 17:33:43 For output: ScrollView with TextView, EditText for queries. Jul 26 17:33:43 just me Jul 26 17:34:03 That's easy to do. Table-like editing will be terrible to implement. Jul 26 17:34:18 so just use a text view Jul 26 17:34:29 You can. Jul 26 17:35:41 is the only way to write tests in the adt by making a new test project? Jul 26 17:37:34 hello. how much would it cost an android app that tests english pronunciation for some english words? Jul 26 17:38:06 i want to make a performance and application safety question Jul 26 17:38:09 define tests? Jul 26 17:38:16 Tau: Are we talking of speech or text? Jul 26 17:38:49 flan3002 speak. Jul 26 17:39:15 And you're asking about dev cost or price in Play? Jul 26 17:39:40 flan3002 about dev cost. Jul 26 17:40:15 in a fragment is it faster and more safe to call getActivity() with cast to the specific activity or keep a reference of the activity in the onAttach of the fragment and use that reference? Jul 26 17:40:48 resu01: If you're casting without checking for null, it's not safer. Jul 26 17:41:04 for the aspect of perfomance? Jul 26 17:41:07 Well, maybe a little... Jul 26 17:41:56 those kinds of "optimizations" are going to net you nothing Jul 26 17:42:15 unless you call it a million times a second Jul 26 17:42:20 so which is the suggested way to do this? Jul 26 17:42:29 Do what feels safer and reads better. Jul 26 17:43:58 getActivity looks safer than create a reference in onattach because the activity as i read in the documentation maybe will be null Jul 26 17:44:03 sorry for my english Jul 26 17:44:27 Yes, go for getActivity. Jul 26 17:44:33 thanks Jul 26 17:45:12 but as i also read getters are not too good in android Jul 26 17:46:37 Where? Jul 26 17:48:04 https://developer.android.com/training/articles/perf-tips.html in the section avoid internal getters and setters Jul 26 17:49:39 hey fellows how do I make gradle compile a custom android422.ar file befor compileing the default android.jar for the project ? Jul 26 17:49:54 resu01: That's because of Javas nature. Methods are not zero-cost and it's not guaranteed that the JIT can inline/statically dispatch them. Jul 26 17:50:31 ok Jul 26 17:50:47 resu01: In languages where methods can be statically dispatched and inlined, getters and setters have no extra-cost and provide flexibility. In Java, they don't. Thus the advice to not overdo it. Jul 26 17:51:03 resu01: But the cost of a method call like this is still tiny. Don't worry about it. Jul 26 17:51:19 thanks a lot flan3002 Jul 26 17:52:15 :) Jul 26 17:52:20 The problem is that the cutom jar file declares some of the same classes as the default just with some aditions and I cant gett android studio to compile the custom file first thus I am getting some symbol errors Jul 26 17:53:15 I have tried for days now to get my project to compile and it wont useing gradle Jul 26 18:09:10 if I have a viewpager with 2 tabs and an actionbar with a 'Done' button, that upon click needs to get objects from either tabs, what's the best way to implement? Jul 26 18:09:59 I could have a listener or set hasOptionsMenu to true in fragments and go that way Jul 26 18:10:02 any suggestions? Jul 26 18:25:12 anyone has any input? Jul 26 18:51:29 lh\]\\ Jul 26 18:51:58 detachyo singleton Jul 26 18:52:01 command not recognized Jul 26 18:52:11 surprised im still connected ;p Jul 26 18:52:59 lasserix didn't catch that, what do you mean? Jul 26 18:53:56 you can have eitehr page push its state to a singelton that the done button can read from Jul 26 18:54:27 or you can just use callback to activity from either fragment to arrange state that the done buttonr eads upon click Jul 26 18:55:52 how would I do either one? I am kind of confused from the terms. Jul 26 18:57:08 detachYo: what objects doy ou need to get from tiether tab? Jul 26 18:57:38 well anyways make an object that contains all the objects/data that your done button needs Jul 26 18:57:41 one contains datepicker Jul 26 18:57:53 then yoiu can use an interface Jul 26 18:57:57 when the done button gets clicked Jul 26 18:58:10 I think that's what I want to do. Jul 26 18:58:12 that has the tabs dump their data into that object and push it to the main activity Jul 26 18:58:24 then you can do whatever you need to Jul 26 18:59:06 but i am assuming the user will enter some data on either tab that the done butto needs? Jul 26 18:59:28 so you can also push the data from the tabs when they click "Okay/Done/Confirm" in the tab Jul 26 18:59:55 into the mian activity ino your state-holder object that i mentioned before Jul 26 19:00:10 then when they click done verify its all there and dowhatever you need to do Jul 26 19:01:35 yes, I would need the data from either fragments when done is clicked. Jul 26 19:01:38 hello, does anyone know of a good clean way to add date separators into a listview using a simplecursoradapter? For example I have a list of tasks performed which is sorted by when they are completed - I would like to have a little separator in my list between each day of tasks Jul 26 19:02:04 zzxx add a view matching width height to one pixel at the bottom of your row layout Jul 26 19:02:06 hopefully this explination is clear, but let me know if I can explain something futher :) Jul 26 19:02:34 you want each row to have this sectionar, or you want section headers ? Jul 26 19:02:50 section headers i guess? Ive not heard of them yet Jul 26 19:03:13 zzxx you want each row to have this seperator? Jul 26 19:03:21 or you want a collection of rows to have a seperator? Jul 26 19:04:52 oh i see Jul 26 19:05:40 lasserix thanks for your input Jul 26 19:05:42 I will use it Jul 26 19:06:02 good luck! Jul 26 19:06:05 zzxx: https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=section%20header%20listview Jul 26 19:07:02 Sorry, ,my connection died for some reason Jul 26 19:07:02 pick whichever works, if you don't want to use a library basically you have to extend cursor adapter and overr viewItemTypCount and similar things, you can read about how in http://jsharkey.org/blog/2008/08/18/separating-lists-with-headers-in-android-09/ Jul 26 19:07:08 zzxx: https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=section%20header%20listview Jul 26 19:07:58 you can actyually use http://stackoverflow.com/questions/8479833/cursoradapter-with-different-row-layouts Jul 26 19:08:15 but basically you have to override getItemViewType and getViewTypeCount Jul 26 19:08:22 ok thank you! ill do some reading on those Jul 26 19:08:29 this will inlfate two types of views, one will be your regular data, one will inflate your data headers Jul 26 19:09:13 the trick will be to determine how to know whether to inflate a date or a cursor row Jul 26 19:09:14 lasserix: ok but does that mean that my cursor has to have entries in it for the separators? Im not sure how I could get my db query to select that mixed in with my "real" data Jul 26 19:09:24 no, not necessarily Jul 26 19:10:06 how do you know how to group the rows in the first place? Jul 26 19:10:58 each database row has a timestamp, so when the timestamp of the previous item is on a different day than the current one, then it needs a new serpaator Jul 26 19:11:11 separator* Jul 26 19:11:41 so if you look at that last link Jul 26 19:11:53 private int getItemViewType(Cursor cursor) Jul 26 19:12:05 what you'll have to do is add a field which will be like dateIsSame Jul 26 19:12:20 then from that cursor, check if the data changed, if it did change, return the other type Jul 26 19:12:38 set dataIsChanged back to false Jul 26 19:12:43 then just keep doing that it should work Jul 26 19:14:23 ok, that makes sense, but if I am returnning a "divider" view type for a list item, then wouldnt that in essence skip over that item, because next time it gets the next item, it will think that it has already displayed the first item from that day Jul 26 19:14:54 maybe im not sure Jul 26 19:14:56 Hello. If I'm new to Java, is it wise to start with Android Studio BETA than InteliJ IDEA? Jul 26 19:15:01 in that case you could inflate a different view Jul 26 19:15:12 where its just a normal row, but you add the section header at the top Jul 26 19:15:28 to "fake" it if you see what i mean Jul 26 19:15:46 Novice201y: yeah should be fine Jul 26 19:16:52 lasserix: ok. I guess my concern there is that then the section header is part of the clickablity of the next item (you can tap for more details). It is a good idea to start with though. Jul 26 19:17:02 I'll go read your links and see what I can come up with :) Jul 26 19:17:05 thanks for the help Jul 26 19:17:07 you can just disable enabled for that part Jul 26 19:17:23 you can do that for part of an item? Jul 26 19:17:38 that would work great then! Jul 26 19:18:49 you should be able to Jul 26 19:19:11 zzxx: https://github.com/quanturium/CursorSectionAdapter Jul 26 19:20:31 if you can i would recomend using a library cause this might be a little tricky ;p Jul 26 19:21:04 also make sure you viewholder is a nested class, not top level class Jul 26 19:24:23 It's almost bizarre that android has some thing like viewholder rather than just having fast enough findViewById. And ... I do suspect findViewById is fast enough in every case. Jul 26 19:26:20 alankila: not at all Jul 26 19:26:48 alankila: i actually wrote an "extant adapter" that just preallocates everything and avoids all the findviewby id and view inflation Jul 26 19:26:53 ok, I would prefer setContentView() argument to be a real class that looks like a viewholder Jul 26 19:27:04 I mean, that would be nice Jul 26 19:27:23 since really all you need is enough rows to fill the screen (and handle kinetic animations), and then getters and setters Jul 26 19:29:28 alankila: maybe there is some annotations based library that will actually do that for you Jul 26 19:29:35 I guess I'd prefer if R.layout.foo() would create an instance of res/layout/foo.xml with useful getters for the objects contained and those things would work elsewhere... an instantiable layout fragment would probably do away with need for findViewById entirely. Jul 26 19:29:42 android annotations and butterknife does something like you want, dunno if it works for listviews tho Jul 26 19:30:02 yeah you should check out android annotations/butterknife does like exactly that Jul 26 19:30:20 I'm actually not working on anything android related, just exercising fingers right now Jul 26 19:30:25 oh hehe Jul 26 19:30:29 Android ROCKS with this cross-platform default IDE. MS and Apple doesn't have that. Jul 26 19:30:33 Altogether just rather disappointed with how android turned out Jul 26 19:31:06 alankila: have you done very much? it can actually do quite a lot, and compared to what they are trying to do (billions of devices, very few standards) Jul 26 19:32:00 I guess my highest achievement is application called DSPManager on cyanogenmod. Though it isn't really much of an application, it's really minimal frontend for fairly simple background DSP Jul 26 19:32:11 but I did it before android had OpenSL or in fact any way to do audio processing Jul 26 19:32:26 ahh Jul 26 19:32:34 yeah it has come a long way... Jul 26 19:33:31 I've tried to make a few other applications but everything I do is always buggy somehow, so I have a kind of dislike of android. I guess I just don't get it. Jul 26 19:34:07 and stuff that works today may break tomorrow because some change in Android invalidates the code. That sort of stuff happens as well. Jul 26 19:34:20 not really, Jul 26 19:34:28 It's my direct experience that yes, it does happen Jul 26 19:34:54 but I don't complain, I mean, I am a developer and I understand developing rock solid platforms is very hard Jul 26 19:34:59 I just fix the shit to best of my ability Jul 26 19:35:38 If I would have one particular criticism of android, I'd like it to get rid of half-baked nonworking shit like renderscript Jul 26 19:35:50 heh Jul 26 19:36:02 Does anyone actuallyuse it? Jul 26 19:36:03 I thought this was going to be good but I think like 2 years have gone by and renderscript is still vastly slower than opengl because no matter what it never sees gpu acceleration Jul 26 19:36:13 whereas GLSL would have just work from day one Jul 26 19:36:16 my fucking mistake Jul 26 19:36:24 Renderscript's purpose at this point is to do the same thing as OpenCL. Jul 26 19:36:42 Its use for graphics stuff was more or less deprecated. Jul 26 19:36:44 I think it's an abortion and needs extermination with extreme prejudice Jul 26 19:36:58 If they kill it, they'd best replace it with OpenCL. Jul 26 19:37:06 GLSL can be used to do any general processing that can be expressed as something like texture-in, texture-out process Jul 26 19:37:34 and it doesn't matter if it's graphics or not. And unlike renderscript, it actually runs 10 times faster than some native code that does the same. Jul 26 19:37:36 what applications do mobile devices have for OpenCL nilium? Jul 26 19:37:54 Data processing. Jul 26 19:38:14 Such as? Jul 26 19:38:35 Say you want to show your user some info based on their stats accumulated in some app (e.g., fitness app), it'd make more sense to use renderscript to process it Jul 26 19:38:35 i just dont know why you would do that on say a n7 or n5? Jul 26 19:38:46 ahh Jul 26 19:38:47 okay Jul 26 19:39:04 I think the most honest view of renderscript today is that it's a way to smuggle native computation into your application without using ndk Jul 26 19:39:06 or if i wanted to make an interface to a ECG device Jul 26 19:39:17 the promise about gpu doing anything is best buried, because in my experience it never goes to gpu Jul 26 19:39:23 Renderscript can more or less simplify the whole break-it-down-into-small-concurrent-pieces problem without all the overhead of writing that crap in Java. Jul 26 19:39:27 Which would be unpleasant. Jul 26 19:39:51 Definatly Jul 26 19:40:01 so look at renderscript as an alternative to ndk. It's mostly the same stuff, and it even parallelizes it for you optimally. Jul 26 19:40:06 Renderscript also provides drawing mechanism? Jul 26 19:40:13 not anymore Jul 26 19:40:16 It's kind of like if you had C with OpenMP extensions. Jul 26 19:40:20 no, there's no graphics library to go with renderscript Jul 26 19:40:23 the graphics part was deprecated (or removed) Jul 26 19:40:34 ahh so I could do a game physics in renderscript, then dump that into opengl to draw it? Jul 26 19:40:40 Potentially. Jul 26 19:40:48 when it was initially introduced, it had a graphics component and a compute component Jul 26 19:41:07 Yeah I remeber the video that's why i was asking Jul 26 19:41:08 (hence the "render") Jul 26 19:41:18 The YouTube app was the poster-child for RenderScript Jul 26 19:41:19 CompuScript Jul 26 19:41:22 Turns out it sucked. Jul 26 19:41:37 hmm. I don't recall hearing youtube using it Jul 26 19:41:46 I suspect the difference with renderscript and ART is going to reduce the value of it further Jul 26 19:41:51 I know the live wallpapers shipped on the nexus phones used it Jul 26 19:41:52 This was back on 3.x with the fancy thumbnail view Jul 26 19:42:36 dalvik never was a very great VM, and art runs tight compute loops something like 2x faster, which is not very different from the promise given by renderscript. Both are native compilers to be run on the CPU in practice, so it isn't too surprising they'd have similar performance characteristics. Jul 26 19:43:00 maybe ART can catch up to renderscript. I'd like that. Jul 26 19:43:06 Dalvik's alright, but the problem is it's still a VM Jul 26 19:43:45 http://i.imgur.com/fWH1X3k.jpg ⇐ Also, that's the youtube app I was thinking of. Jul 26 19:43:59 If I remember right, that thumbnail view was renderscript. Jul 26 19:44:12 ah, ok Jul 26 19:44:44 that thumbnail view looks like cylindrical projection of a bunch of squares to me... Jul 26 19:44:51 not sure what it would use renderscript for Jul 26 19:45:03 * Nilium shrugs Jul 26 19:45:11 Ask Google. I just remember it being RenderScript. Jul 26 19:45:39 of course you have to have a bunch of control points so you get good approximation of the cylindrical projection. Maybe it computed those. Jul 26 19:45:59 alankila: it was probably doing the graphical stuff, instead of having the app call opengl directly Jul 26 19:46:05 just a guess though Jul 26 19:46:19 yeah, don't know what it is used for. Jul 26 19:46:24 Does much time this "Graddle" can take? Jul 26 19:46:24 It was probably some sort of RenderScriptView as opposed to spinning up a separate thread for a GL context the way GLSurfaceView would Jul 26 19:46:43 * Nilium puts down Novice201y Jul 26 19:47:02 He's got the rabies, the brain swelling's affecting his English. ಠ_ಠ Jul 26 19:47:04 how is graddle fromed? Jul 26 19:47:16 must abstain from something something Jul 26 19:47:18 Novice201y: usually it's fairly fast Jul 26 19:47:34 graddle is formed by taking maven and raping it with some scripting language until it submits Jul 26 19:47:37 Nilium: lasserix: Done. Jul 26 19:47:39 Use it in daemon mode or whatever and it should be as speedy as you need. Jul 26 19:47:59 I need a file chooser dialog. Googling comes up with a few options but I can't find any screenshots etc. Which one would you recommend? Jul 26 19:48:07 also, --parallel Jul 26 19:48:12 That too. Jul 26 19:48:59 Which reminds me, using -jN when running make is often hilarious. Jul 26 19:49:32 I'd be very pleased if someone had the balls to develop make a bit Jul 26 19:49:48 I just use makefile generators now. Jul 26 19:49:51 i.e., Premake Jul 26 19:49:52 like make it do that -j$THREADS thing automatically, and maybe teach it how to link binaries by default Jul 26 19:50:09 we know how to do it, gcc -o $@ $< $(LDFLAGS) or something Jul 26 19:50:47 this thing has been missing from Makefile for like 20 years if not longer Jul 26 19:51:12 The -j thing works well enough on its own, the problem is more that sometimes an object file or some other dependency will be written only partially and make will go "THIS THING IS READY, IT'S READY, WE'VE GOT A JOB FOR IT LAUNCHLAUNCHLAUNCHLAUNCH" and that thing will end up working with a half-formed file Jul 26 19:51:35 and it's all because, apparently, sometime in ancient history, there was not a single invocation that would link a binary. So, Make never figured out how to do it. Jul 26 19:51:43 And what aout "Indexing"? Damn, this machine with 2 Gigs is too old for Android Studio. Jul 26 19:51:53 Nilium: I suspect that's only if you're using recursive make files Jul 26 19:51:58 Possibly. Jul 26 19:52:15 At any rate, regarding alankila's suggestions, I think they're dumb because it would be taking make out of general purpose territory Jul 26 19:52:31 And as easy as it is to hate on make, it sure as shit beats all the other crappy build systems Jul 26 19:52:33 At least historical faults in make could be fixed. Jul 26 19:52:35 E.g., scons Jul 26 19:52:39 God damn I hate scons Jul 26 19:52:51 just don't make me use automake :) Jul 26 19:53:03 It already took a step away from being a generic build tool (in a sense) because it privileges C language by automatically knowing how to build it Jul 26 19:53:07 that stuff is... black magic Jul 26 19:53:07 Thankfully, automake can be mostly ignored these days. Jul 26 19:53:13 it's just plain odd it still pretends it doesn't know how to link C programs Jul 26 19:53:20 As long as _something_ is generating a makefile Jul 26 19:53:42 I'm still amazed by the android build system (for the platform), which is built on make Jul 26 19:53:53 I love the Android build system which is pure make Jul 26 19:53:55 Definitely the most complex make-based system I've seen Jul 26 19:53:59 Linking C programs differs depending on the platform/architecture/etc., so it's not that surprising that make won't have a default for it Jul 26 19:54:04 imho, it's a great feat of engineering, and impresses me to no end Jul 26 19:54:16 Even make's default for C isn't correct most of the time Jul 26 19:54:26 and thankfully, autotools is so shitty that it can't be used in cross-compilation, so android was naturally innoculated against autotools Jul 26 19:54:48 i have an android port of a game with lots of assets and its pretty slow pulling these out of the apk every time. Is there a way to permanently move these out to external storage? Jul 26 19:54:52 I do like gradle for java projects though. Although I'm somewhat less enthused about the new android stuff in gradle Jul 26 19:55:07 Nilium: we could at least update it to make a best guess. But I get it, historical legacy is like that. Don't touch a tool that works, just flow lava on top of it hoping it solves the problem you have, amirite? Jul 26 19:55:17 I mainly use sbt now because I'm at least at the functioning-idiot level with that Jul 26 19:55:54 It's a step above maven, at least Jul 26 19:55:54 Also used gradle for one libgdx experiment and it seemed nice, though that was a one-off thing Jul 26 19:56:25 I love the whole maven repository thing, but hated the inflexible declarative xml stuff Jul 26 19:57:14 I've never personally found maven too restrictive. If anything, I've disliked its extensively plugin-oriented architecture Jul 26 19:57:37 but then again I used to compile java programs with shell scripts that just javac */*/*/*.java and jar'd manually Jul 26 19:57:44 I found it hard to use when you needed to use some external tool, which there didn't exist a plugin for Jul 26 19:58:01 something like java is so simple that it's almost an insult to have to deal with something of the complexity of ant and maven Jul 26 19:58:28 yea Jul 26 19:58:31 but maven does seem to solve that dependency shit very well, so I guess that's an excuse. Ant, in comparison, seems to have no excuse at all. Jul 26 19:59:56 why can't android studio find Date class Jul 26 20:00:47 detachYo: because your project doesn't have an android sdk set? Jul 26 20:01:02 yeah missing Date class suggests no jdk available Jul 26 20:02:23 it did, i manually had to do 'import java.util.Date;' Jul 26 20:03:08 on another note, why is Date deprecated Jul 26 20:03:34 i'm seeing cmake quite a bit these days Jul 26 20:03:55 hah. I was trying to edit some java code in a text editor the other day, and was getting some errors about not finding a class. Took me a while to remember I had to actually import the darn thing before I used it Jul 26 20:04:07 IDEA has made me lazy :) Jul 26 20:04:28 I am having a problem. Jul 26 20:04:43 well, the first step is admitting you have a problem Jul 26 20:04:45 JesusFreke gotta keep that brain working and switch to vim one day per week :) Jul 26 20:04:46 I have a datepicker and a time picker, I want to send the value in yyyy-MM-dd HH:mm:ss format to store in database. Jul 26 20:04:57 g00s STOP! I use Vim. Jul 26 20:05:36 any idea how i can make avd emulated android to change orientation? (pageup rotates display, but the app doesn't change orientation)? Jul 26 20:06:08 Nilium alankila i wasn't around when you guys were talking abour RS ... so would you recommend it for doing some basic statistics on time series data? Jul 26 20:06:10 dRbiG: istr F11 should do it Jul 26 20:06:23 g00s: That sounds like what it's there for. Jul 26 20:06:34 I haven't used it for anything myself, so you'd have to try it and see. Jul 26 20:06:35 interesting, maybe i should look at it Jul 26 20:06:40 g00s: if your performance needs demand native-like performance, then it probably does the job Jul 26 20:06:47 but I suspect you could just write regular java code instead Jul 26 20:07:07 JesusFreke: istr? Jul 26 20:07:14 dRbiG: I seem to recall Jul 26 20:07:25 i haven't been following it and just assumed it was graphics stuff ... but when you guys said its an easy way to sneak in near-native code it got me thinking Jul 26 20:07:38 not that i know OpenCL either :) Jul 26 20:07:58 JesusFreke: ctrl+f11, ctrl+f12, pageup - all rotate display, but the app still is displayed in portrait mode Jul 26 20:08:40 i'm using x86 image, is that relevant? Jul 26 20:08:49 dRbiG: oh, if the rotation is actually happening, then it's a problem with your app. Either you're ignoring orientation changes, or it's set to be portrait-only Jul 26 20:09:07 JesusFreke: my app rotates fine on a real nexus 4 :) Jul 26 20:10:01 dRbiG: it might be configuration-dependent. I don't remember specifically how those things are set, but it might be using a different layout with a different configuration? Jul 26 20:10:31 g00s: renderscript/filterscript is going to llvm at some point at app install time I think Jul 26 20:10:54 I am bored and I have coffee, time to either continue writing this app in Swift because I can or reading shit republicans say when they're unaware of how horrible the things they say are Jul 26 20:10:54 it's really best understood as alternative to ndk though there might be a situation where it runs on GPU instead Jul 26 20:11:00 JesusFreke: probably not. i suspect the image, built-in apps like gallery also don't rotate Jul 26 20:11:04 i thought about getting one of these and playing around with CUDA http://www.nvidia.com/object/jetson-tk1-embedded-dev-kit.html Jul 26 20:11:11 running the arm image is so painful :( Jul 26 20:11:12 for $192 seems pretty fun Jul 26 20:11:19 heh, yeah. that it is Jul 26 20:11:19 I just don't think the solution has been seriously engineered in sense that it actually will execute with noteworthy performance Jul 26 20:11:27 will JNI apis fail to find classes if in the UI thread? Jul 26 20:11:48 being in the UI thread has no affect on what classes will be available Jul 26 20:12:13 man finally Java 9 gets JNI 2 Jul 26 20:12:15 ok, the other possibility is from what i can tell from this stack trace, it directly goes java -> cpp -> attempts to go to java again Jul 26 20:12:25 i avoid that shit like the plague Jul 26 20:12:41 are there any problems with jumping in and out of java/cpp in the same stack? i wouldnt think so Jul 26 20:12:59 Nilium what do you think of swift so far ? Jul 26 20:13:09 sqpat: nope Jul 26 20:13:15 i literally have 1 function mediating communication between the two sides to simplify things... so its weird that it works and works and works and suddenly in some weird case it just fails to find the class Jul 26 20:13:42 actually let me make sure the activity didnt crash before this happened Jul 26 20:13:47 g00s: It's nice but the Obj-C interop feels half-baked because there?.are?.options!.everywhere Jul 26 20:13:51 anyway, my real problem is that i have an app that gets images through an intent, and on a real device if i change the orientation during photo taking the app dies Jul 26 20:13:52 as that might have unloaded it? Jul 26 20:14:32 It's an unfortunate side-effect of Swift not permitting null/nil/undefined values without making something optional, and Obj-C is heavy on the nil. Jul 26 20:14:49 Nilium i guess Swift has been in dev for quite a while; i wonder how many large apps Apple has written in it - to eat their own dog food and verify the suitability of the language to serious stuff Jul 26 20:14:53 doesn't seem like it Jul 26 20:15:01 people try to escape the pain of null pointers by turning everything into some equivalent of Optional Jul 26 20:15:40 lol? Jul 26 20:15:41 I suspect this strategy turns out to have a fairly short lifetime. null value is probably simpler concept to handle, because Optional is equivalent Jul 26 20:15:42 I like Option[T] in Scala and the optionals in Swift, but the Obj-C interop in Swift is obviously unfinished since it seems like a lot of APIs got auto-wrapped and not in a particularly sane manner Jul 26 20:15:56 I like @Nullable/@Nonnull in java Jul 26 20:16:14 let's the IDE warn you when you do something stupid wrt to nulls Jul 26 20:16:18 the best thing to do is imho annotate where nulls are allowed/possible and let the system complain it from there Jul 26 20:16:21 Worse is that a lot of Obj-C methods will return AnyObject! because they don't have enough info to get a proper return type (meaning an optional that's automatically unwrapped, so if it's nil and you access it, kaboom), so you have to convert it to an optional, check it to be safe, and then proceed. Jul 26 20:16:36 alankila: That's sort of the point of optionals in Swift. Jul 26 20:16:53 i.e., sticking a ? on the end of a type is just an annotation saying "this is optional, you _must_ check it" Jul 26 20:17:07 And the compiler will enforce the whole checking-if-it's-defined thing Jul 26 20:17:16 yeah, I like the fact that nulls are recognized to be a problem, I dislike the notion of Optional to a point Jul 26 20:17:27 lol, it's an emulator bug Jul 26 20:17:28 I'd prefer a @Null / @NotNull annotation style. Jul 26 20:18:05 Hi, i comme again about my digest authentification, Jul 26 20:18:12 So i have implement it myself Jul 26 20:19:04 And i am happy, because my chineese IP CAMERA, doesn't watch the NC and CBOUNCE (i can put ..001 every times for NC) Jul 26 20:19:20 and Cbounce i can put the same everytimes. Jul 26 20:20:23 Hi! I need to save a value for each country, the structure will be key/value pairs. Is SharedPreferences perfect for this although there will be around 230 pairs? Or should I go with a csv/json/xml file instead? Jul 26 20:20:50 ok, there might be a threading problem in play after all Jul 26 20:21:14 apparently if you create your own thread with pthread etc., classloader might not necessarily have access to your classes because of the way it searches Jul 26 20:21:19 mEck0: try with sharedpreferences. They will be serialized in particular way but I figure it doesn'tmatter Jul 26 20:21:23 (if you access classloader within that thread) Jul 26 20:21:36 according to: http://developer.android.com/training/articles/perf-jni.html#faq_FindClass Jul 26 20:22:42 alankila: thanks Jul 26 20:23:07 Oh, one nice thing that Xcode apparently picked up in recent versions: it will now display documentation from doxygen/javadoc-style comments for your own code. Jul 26 20:23:09 I am currently adding Google and Facebook integration to my app, and at one point I display the user's profile picture. Currently, I only have FB working and to do so you use a special view in your XML layout called: ProfilePictureView. I am wondering how I can use this same XML file but handle the logic for different image sources. Maybe create my own ImageView? Jul 26 20:23:29 So it's only been behind every other IDE on the planet when it comes to that for years. Jul 26 20:24:03 I also tried that xcode6 beta and got it to immediately crash when I refused some OS X 10.8 docset install Jul 26 20:24:11 happy to know that nothing is changed. Jul 26 20:24:45 I haven't crashed Xcode too much, but the Swift compiler is expectedly buggy. Jul 26 20:25:06 In other Apple-related news, 10.10 only seems to make some menubar text invisible, but otherwise it seems to work as well as before. Fonts may be uglier than ever, though that's hard to say because OS X font rendering has always been weird Jul 26 20:25:09 Apple seems to be the only one still using "beta" as it's actually understood outside web dev land. Jul 26 20:25:22 this time LCD combines to translucent text against unknown background in the "dark" theme and it looks horrible Jul 26 20:25:43 I got the beta for that but haven't installed it. Jul 26 20:25:44 The next time I get an apple laptop, it will be a retina device for sure so that I finally get enough pixels to ignore problems like this. Jul 26 20:25:57 Probably won't since I don't want to have to roll back an OS install. Jul 26 20:26:25 I have a time machine backup but I doubt I will restore 10.9 Jul 26 20:27:04 I'd probably be fine installing it as long as it works for internet/compiling my junk, but Apple has a history of arbitrarily breaking wifi support with every release Jul 26 20:27:26 It's weirdly consistent on that. Jul 26 20:27:52 Also, apparently the zoom window button is now the fullscreen window button, so that's going to drive me insane. Jul 26 20:27:59 is there a way to set focus to a SearchView and then open uyp the keyboard for the search field? Jul 26 20:28:26 to be fair, I don't think the maximize button or whatever apple intended ever made any bit of sense Jul 26 20:28:41 I never knew what was going to happen when I clicked on it. This is better than before. Jul 26 20:29:18 though, the new style also forces showing the title bar which makes e.g. chrome tabs nonclickable in the fullscreen mode Jul 26 20:29:19 The behavior of the zoom button was mostly confusing because the point of it is to zoom enough to have the window's content entirely in view. Jul 26 20:29:44 Which doesn't actually mean filling the screen — so, say you have a browser window with a horizontal scrollbar, it'll get as big as it needs to be to try to remove the scrollbar Jul 26 20:30:21 I don't like the background blur shit they have done though. I would prefer to disable all translucency to having some vague notion of background shine through menus and apps Jul 26 20:30:33 Unfortunately, Windows convinced everyone that maximize means just fill the entire screen with a window, so that's what people expect Jul 26 20:30:37 this seems to me like apple is copying the windows 7 glass theme and doing it poorly Jul 26 20:31:14 So Apple's zoom made more sense to me since I don't make windows fill the entire screen, usually. Jul 26 20:31:17 at least microsoft had the sense to confine the blurry background to window chrome. In mail.app, for instance, part of the background is visible through the folder list. I just hate it. Jul 26 20:31:52 As for the translucency stuff, I'll just expect 10.10.1 will tone it down the same way iOS 7.1 or so toned down a bunch of UI stuff in iOS 7 Jul 26 20:32:00 My level of frustration is so high right now!!!!!! Can someone help me? Jul 26 20:32:14 I have a datepicker and time picker, i want to store the value in the database Jul 26 20:32:17 Basically, Apple went hog wild, woke up, shook off the hangover, and went "okay, time to fix this shit" Jul 26 20:32:51 how da hell do I conver tto normal values that the db can consume in DATETIME field? Jul 26 20:33:16 simpledateformat Jul 26 20:33:21 What type of DB? What's a datetime mean for the DB? Have you consulted the DB documentation to ensure you're even passing the right data? Jul 26 20:33:30 basic java Jul 26 20:33:35 Turns out DBs all have different rules for shit. Jul 26 20:33:40 Know your DB, yo. Jul 26 20:34:11 i am not even passing data because I can't convert to right format, because some fuckhead was too lazy at Sun to increment month by one Jul 26 20:34:17 in most cases you'd use a host variable/placeholder and just have a java.util.Date instance Jul 26 20:34:19 sorry for ranting Jul 26 20:34:24 i just have been so freakin frustrated Jul 26 20:34:26 the DB driver is supposed to know what to do with it. Jul 26 20:34:47 on the other hand, if you do string concatenation into sql queries with values embedded there, you deserve what you get Jul 26 20:34:52 its the db that comes in android, sqlite Jul 26 20:35:26 I don't even know how that works. I'm not sure it even has a date format. It's an awful databse, though better than nothing. Jul 26 20:35:49 alankila, what do YOU use? Jul 26 20:36:09 I mostly don't work on android. I'm here because I'm drunk and bored. Jul 26 20:36:19 sounds like sqlite wants iso8601 Jul 26 20:36:22 so that's what you give Jul 26 20:36:34 detachYo: Sun has no responsibility for your SQLite usage Jul 26 20:36:35 in normal work I use postgresql of course Jul 26 20:36:41 alankila I am a web dev dealing with dbs like PostgreSQL Jul 26 20:36:45 so I know your frustration Jul 26 20:36:54 * Nilium snickers at "web dev" Jul 26 20:36:58 Nilium, read carefuly, I didn't blame them for my SQLite usage. Jul 26 20:37:12 can I change the color of the action bar but NOT change the color of the action bar tabs? Jul 26 20:37:13 * detachYo laughs at Nilium Jul 26 20:38:26 Should probably call yourself backend/server-side instead of web dev. Hacker News has ruined the web dev title. Jul 26 20:38:38 it amuses me that the motto of sqlite is 'what would postgresql do'. Unfortunately, the guy never asked 'what would postgresl developer do'. The answer is, obviously, develop postgresql. Jul 26 20:38:45 maybe we would have been spared of sqlite. Jul 26 20:39:11 SQLite is a nice thing on its own, but it got shoved into a lot of places where it probably shouldn't have been Jul 26 20:39:18 For example, it's nice as a file format. Jul 26 20:39:33 I contest that 'nice' thing. For instance, it's column permissivity is just plain weird Jul 26 20:39:45 What it's not nice as is an actual database you want to frequently update. Jul 26 20:39:47 "store anything in any column. What could go wrong?" even mysql was not that retarded. Jul 26 20:40:05 and I think mysql scored pretty high in "utter batshit crazy". Jul 26 20:40:10 So, I just treat it as a write-once-read-anywhere sort of thing. Jul 26 20:41:16 the way sqlite determines what type a column should have is just plain crazy too. Though, it seems like whatever it thinks a column should hold doesn't mean a damn thing anyway Jul 26 20:41:56 just because it will store anything nevertheless. I'm through with crap like that. I want some checking from the tools I work with. PHP got old in 1997 or whatever Jul 26 20:50:29 alankila i thought sqlite columns had type affinity ? the row record header definitely records the type. integers are packed Jul 26 20:51:06 sqlite from c is fine, the android shit ontop is terrible Jul 26 20:51:41 Nilium alankila i nomiate you guys to write "Android: the good parts" :D Jul 26 20:51:45 *nominate Jul 26 20:51:56 like the JS one; should be pretty short Jul 26 20:52:42 Chapter 1: "We collectively hate AsyncTask." Jul 26 20:53:29 Chapter 2: Fragments? What Fragments? :) Jul 26 20:53:37 No, fragments are good in theory. Jul 26 20:53:50 Chapter 2: "The support library is a crock of shit and you shouldn't use it." Jul 26 20:54:12 Chapter 4 : If Bundles all the way down Jul 26 20:54:13 Chapter 3: "Google is trolling you with this material design crap." Jul 26 20:54:23 hehe Jul 26 20:54:52 Chapter 5: "At this point you're probably starting to reconsider what we said about AsyncTask so we'll just paste chapter 1 in here again." Jul 26 20:55:37 Chapter 6: "If you haven't killed yourself by this point, congratulations, you're now a Blackberry developer." Jul 26 20:56:44 what would be the best way to change the overflow menu icon color Jul 26 20:56:47 sounds like a #1 bestseller, ... profit ! Jul 26 20:57:43 hm, i can buy the same ebook on pakt or oreilly http://www.packtpub.com/machine-learning-with-r/book Jul 26 20:57:44 mattblang: Change its style. Jul 26 20:57:55 wonder if there is an advantage to one over the other Jul 26 20:57:59 Packt has a tendency to publish garbage. Jul 26 20:58:06 i usually don't buy pakt books, but this one got lots of good reviews Jul 26 20:58:16 yeah, i avoid apress and pakt Jul 26 20:58:19 I remember reviewing some Sublime Text 2 book for them Jul 26 20:59:03 I don't think the author was really very familiar with the whole writing for a specific audience thing Jul 26 20:59:31 yeah, it seems they pump out crap that goes out of date really quickly on esoteric fragemworks Jul 26 20:59:33 Like, here's a question for everyone: if you write an introductory book on a programmer's text editor, who's your audience? Jul 26 20:59:36 Like, bare minimum Jul 26 20:59:45 emacs users of course Jul 26 20:59:53 No, they're never an audience Jul 26 20:59:57 ha Jul 26 21:01:26 Anyway, the book I reviewed basically had half of its pages devoted to installing Sublime Text 2. Jul 26 21:01:42 usn't that just 'unzip' ? Jul 26 21:01:43 Now here's the question you have to ask: what person buying Sublime Text 2, or even looking at it, needs to be told how to install a program? Jul 26 21:02:00 It depends on the OS and kind of installation you want, but on OS X: yes. Jul 26 21:02:20 i would think linux would be the same, maybe windows an installer Jul 26 21:02:26 Regardless of OS, your reader is probably familiar with the process of installing things on their computer Jul 26 21:02:49 So why the hell was the book 50% installation guide? Jul 26 21:03:28 i'd like some good documentation on the AS stuff, i'm sure i'm missing quite a bit. when Tor demos stuff i never remember how to get to it Jul 26 21:03:30 Aside from that, the remaining 50% was sparse, poorly explained stuff, and promoted bad practices (e.g., modifying the global default settings file instead of the user settings file) Jul 26 21:03:39 hehe Jul 26 21:03:49 does the google developer console ever update the stats on weekends? :( Jul 26 21:04:02 I think they knew the book was trash because they just wanted to get on the ST hype train at the time Jul 26 21:05:16 m4p0 i think the ferrets are off on the weekends Jul 26 21:05:32 Pigeons. Jul 26 21:06:12 Also, it turns out my town has had a recent influx of pigeons, which makes me really happy because pigeons are awesome. Jul 26 21:07:13 aren't they just flying rats ? Jul 26 21:07:48 No, they're doves that people hate because they're not called doves. Jul 26 21:08:03 They're basically just adorable scavengers, same as seagulls, which are also awesome Jul 26 21:08:20 I love watching them walk, the way their heads move Jul 26 21:08:41 Nilium Is there a default white one, or will I need to find the default icon and change it myself Jul 26 21:08:51 * Nilium shrugs Jul 26 21:08:53 Nilium in AZ we had quail, they were super cool Jul 26 21:09:01 with the little featers on their heads Jul 26 21:09:02 Quail are neat too. Jul 26 21:09:20 That said, there's really only a handful of types of bird I don't like Jul 26 21:09:26 Geese, turkey, and swans. Jul 26 21:09:31 I enjoy crows Jul 26 21:09:37 Crows are awesome. Also ravens. Jul 26 21:09:40 yea Jul 26 21:09:42 so intelligent Jul 26 21:09:55 I also like how talkative they are. Jul 26 21:10:00 i like cats Jul 26 21:10:21 my cats like birds too. Jul 26 21:10:29 although possible not for the same reasons Jul 26 21:10:34 possibly* Jul 26 21:11:00 My cats mostly like robins. Specifically baby robins. Jul 26 21:11:28 i tried to feed a cat som pizza... it didnt want it Jul 26 21:11:32 https://www.youtube.com/watch?v=pqEM6BPn0Cg ⇐ See, pigeons are adorable, not flying rats. Jul 26 21:11:40 my cats are indoor cats. So they just sit at the window and make weird noises and thwack their tails against the wall when they see a bird outside. Jul 26 21:12:32 Mine are indoor cats that get to go outside because otherwise they'll start developing weird behaviors. Jul 26 21:12:48 my cat died some years ago, trying to jump through a vertically half closed window Jul 26 21:13:37 I live in a rural area though, so it's easier to just let them go outside. Would be harder in a city since someone might not appreciate a random cat. Jul 26 21:13:42 i'm back guy's. my video parser is OK. but i have some problem with android : i get mjpeg stream (its jpg images) but they do just around 30ko -50ko when i receive them. but my problem is : when i do Bitmap foo=bitmapfactory.decodestream(oneStreamedPicture) the bitmap convert the pic in bmp (because its Bitmap component ...) so the picture is converted to 1.3 mo and its not good for fast display Jul 26 21:15:10 we have a white cat in the neighbourhood, he always goes to some cat chicks everyday at the same time Jul 26 21:15:10 initial jpg 30-50ko. in the bitmap it do 1.3mo .. Did someone know how to conturn that ? did exist a jpeg classes instead of Bitmap ? Jul 26 21:15:16 does anyone know when to use the wear message API and when to use the Data API? Jul 26 21:15:41 how can we send a jpg pic to imageview without converting it as bmp ? Jul 26 21:15:49 if I have to send sensor values over to the phone, should it be a data item or a message? Jul 26 21:16:38 hm, what is this STOMP stuff. Jul 26 21:18:22 noticed in in an upcoming oreilly book along with mqtt Jul 26 21:18:26 on mobile messaging Jul 26 21:20:05 in android we can't show a jpeg image without converting it as bmp ??? its a real problem for streaming .. Jul 26 21:20:48 did existe something like imageview who accept jpeg bytearray for exemple ? instead of only Bitmap ...? Jul 26 21:21:45 Bitmap sucks it make 1.3mo pictures .. (bitmap length is something like 3*width*heigh*X Jul 26 21:26:56 size of bitmap is 4*width*heigh sorry .. so 640*480*4 =1,2xx mo... Jul 26 21:27:42 when my jpeg stream come pictures do 40ko .. how can i show jpeg pictures without Bitmap classes ... ? Jul 26 21:27:44 alankila: I have the countries and their values in a file now. In order to save it in SharedPrefs, must I still have my file bundled with the app even though I’m using SharedPrefs? Jul 26 21:28:33 Bitmap classes break the stream ... by making the sizeof pictures realy big .. Jul 26 21:28:55 alankila: Otherwise I must write all this info directly in code manually if I haven’t misunderstood something.. Jul 26 21:46:25 Nilium another book i had high hopes for http://www.amazon.com/Learning-Android-Canvas-Nauman-Tahir-ebook/dp/B00GX67TYK Jul 26 21:46:31 looks terrible Jul 26 21:46:52 I generally don't read programming books that are specific to a platform or language Jul 26 21:47:18 i try not to, but find tha android docs in some places so bad Jul 26 21:47:32 In those cases, I just read the source code. Jul 26 21:58:07 how do i detect when my app goes to the background, and when it comes back up? (im trying to make my notification work like play music) Jul 26 21:58:40 onPause() - onResume() like? Jul 26 21:59:07 they are called for other reasons as well Jul 26 22:03:36 Those are what play music uses Jul 26 22:04:05 there is no library for comments, or is there ? Jul 26 22:04:27 it has to do some black magic in there as well, if I did that i would get bombarded with false positives, and play music is not Jul 26 22:05:11 When would you get false positives? Jul 26 22:12:32 SimonVT: like when going between activities in my app Jul 26 22:13:35 The play music ui is a single activity. When you go to settings, which is its own activity, the notification is shown Jul 26 22:13:57 that explains it Jul 26 22:14:02 thanks Jul 26 22:14:19 You'll have to keep track of resumed and paused activities, e.g. with ActivityLifecycleCallbacks Jul 26 22:14:47 Or re-write your app to use fragments and a single activity Jul 26 22:15:08 The idea behind showing it when in the settings activity is that there's no player controls there Jul 26 22:26:53 Good evening everyone - quick design question if someone has a moment. Jul 26 22:35:56 Stigy: !ask Jul 26 22:36:06 .... meh. thought that might work in here Jul 26 22:36:22 Stigy: Dont ask to ask, just ask your question! :) Jul 26 22:37:03 What is the proper navigation model for an app that is only using two views / Fragments? Do I use the Navigation Drawer or is a tabbed interface still acceptable going forward? Jul 26 22:39:12 I'd think tabs would be just fine. I personally dont think you need to worry about guidelines like that too closely though. Yes, it is good to be aware of them, and pay heedance to them when you can, but dont loose any sleep over a decsion like that Jul 26 22:39:27 as long as it is userfriendly and intuitive, just go for it Jul 26 22:40:27 Yeah I built a skeleton app with two items in the Nav Drawer and even putting the new Settings item below it seemed like a lot of wasted space. Thanks! Jul 26 23:08:43 For SurfaceView is it better to initialize its associated thread in onSurfaceCreated or onSurfaceChanged? Jul 26 23:11:32 I usually do onSurfaceCreated Jul 26 23:12:02 onSurfaceChanged I call if the size changes Jul 26 23:15:16 Ologn, pausing the thread or restarting it? Jul 26 23:16:20 Hey g00s what was that new project merge window thing called? Jul 26 23:17:03 lasserix, mine doesn't need to pause. I have not implemented restart yet. Jul 26 23:17:04 ahh nm found it in my history Jul 26 23:17:12 Ologon ahh, okay Jul 26 23:17:18 i was making a game so i have pause and stop Jul 26 23:17:28 guess i can pause, just reinitialize the world viewport Jul 26 23:17:31 thnaks! Jul 26 23:18:24 Ahh the new android project view is very nice! Jul 26 23:26:57 Is there a way to capture Fragment's Button click in parent Activity? Jul 26 23:30:50 Besides declaring a listener inside button listener inside fragment which will be called? Jul 26 23:32:23 detachyo you can create the click listener in your activity, give it to your fragment and set it Jul 26 23:32:38 or you can propogate with an interface callback Jul 26 23:32:47 does this guarantee that android device is discoverable? Jul 26 23:33:00 http://hastebin.com/osobizisak.coffee Jul 26 23:33:08 or you can write an inputevent queue and pass all your cllick events to an inputevenhandler Jul 26 23:33:15 or you can use otto or eventbus Jul 26 23:35:49 lasserix you know what I have discovered? You don't become better programmer by doing something, you just learn how to search google properly for what you want :) Jul 26 23:35:53 thanks for your feedback Jul 26 23:36:07 how would I create the click listener in my activity and give it to my fragment? Jul 26 23:40:41 Its probably not the way to do it, but you just create it like normal Jul 26 23:41:01 then you have an instance of your fragment in your main activity, so make a method in your fragment that accepts it and use it to set your button Jul 26 23:41:13 you can use a callback in onactivitycreated or whatever to trigger it to be set Jul 26 23:41:49 it's probably better to have the activity implement some kind of interface that when the button clicks in the fragment (with the listener in the fragment) it calls back on that method to the main activity and passes whatever information you need Jul 26 23:42:06 the android reference page on fragments shows how to set up such an interface Jul 26 23:42:26 Anyone know how to make highlight errors show the red squigly underline in android studio? Jul 26 23:44:12 Ahh nm found it Jul 26 23:45:56 thanks lasserix Jul 26 23:46:02 i am so thankful this channel exists :) Jul 26 23:49:32 you using interface to pass back the info? Jul 26 23:51:19 someone needs to figure out how to set up a tip system for these channels :P Jul 26 23:51:33 call it beertips or something, you can dump a dollar into someones account Jul 27 00:21:30 Hi, I'm using latest version of android adt -- and when I try help->install new software I get following error Jul 27 00:21:33 Unable to read repository at http://dl-ssl.google.com/android/eclipse/content.xml. Unable to read repository at http://dl-ssl.google.com/android/eclipse/content.xml. Permission denied: connect Jul 27 00:21:58 is site down or something can anyone else access it? Jul 27 00:25:16 do they have https you can try? Jul 27 00:34:12 So I have built an APK, its tested, its working, I have the production version compiled, now I need to sign it... dear god.. I've been over a bunch of tutorials, all either require intellij / android studio and 2 hour setup, or eclipse which is not working either, or command like (which to me seems the easiest option) which all have examples with keytool + arguments, and my keytool does not support most of those arguments... Jul 27 00:34:55 I'm on Kubuntu 14.04, I just want to sign, zip align, and upload that APK to the google play store... I have some key from google play store, but now I'm stuck.. Can anybody point towards some simple command line tutorial that actually works? Jul 27 00:36:51 phoenixz: couple ways to do it Jul 27 00:37:12 desmin88: which would be the easiest? (preferably command line, to me, thats easy..) Jul 27 00:37:24 what is your dev enviroment Jul 27 00:37:35 do you use eclipse/as/intellij or neither Jul 27 00:38:06 desmin88: actually used maven to just compile, I used a normal text editor to make some code changes, so I have not really and IDE at all Jul 27 00:38:15 i see Jul 27 00:38:21 android studio makes it very easy Jul 27 00:38:28 but obviously not a requirement Jul 27 00:39:13 what have you tried so far Jul 27 00:39:52 desmin88: Well, I'd love to use either eclipse or android studio, but so far those have been hell to me.. They won't open the project, or start complaining about misisng dependancies and platforms and what more.. So far they have brought me more problems than solutions Jul 27 00:40:05 ok Jul 27 00:40:14 I've checked tutorials with command line, keytool for example but Jul 27 00:40:16 first of all Jul 27 00:40:34 when you built it, did you build it in release mod Jul 27 00:40:37 mode* Jul 27 00:40:37 all those show different command line optinos for keytool than my keytool (almost makes me wonder if I'm stuck with the wrong keytool??) Jul 27 00:40:52 desmin88: yes, mvn blah blah -Prelease Jul 27 00:40:57 ok Jul 27 00:41:09 if i create a new Thread to run a web request asynchronously then i want to do something with the response on the main thread again, is handler.post inside the Thread.run() a correct way to do this? Jul 27 00:41:25 phoenixz Jul 27 00:41:41 phoenixz: have you created your private key store yet Jul 27 00:42:38 desmin88: Nope.. I wanted to do that with keytool, but it requires the option.. umm, I think it was -keystore, which my keytool does not have.. Jul 27 00:43:03 desmin88: http://paste.ubuntu.com/7870270/ Jul 27 00:44:29 check your PATH Jul 27 00:44:44 where is it pointing to keytool Jul 27 00:44:50 desmin88: http://paste.ubuntu.com/7870287/ Jul 27 00:45:07 desmin88: Where should keytool be exactly? Which keytool should be used? Jul 27 00:45:18 the one that came packaged with the JDK Jul 27 00:45:19 I have /home/sven/android-sdk-linux Jul 27 00:46:02 hmmph Jul 27 00:46:15 desmin88: http://paste.ubuntu.com/7870296/ These are the JDK's I have installed Jul 27 00:46:50 desmin88: and "which keytool" gives me some symlinks which resolve to /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/keytool Jul 27 00:47:15 gotcha Jul 27 00:47:51 desmin88: so, is this the right keytool then? Or should I still add somethign to PATH? Jul 27 00:50:05 hold on Jul 27 00:50:08 hi guys! :) Jul 27 00:50:16 desmin88: Holding on to my desk... Jul 27 00:50:30 HikaruBG: Hi there! Jul 27 00:50:45 is there something like JPA or Hibernate I can use to connect to SQL-Lite Android Local DB? Jul 27 00:51:06 is there some ORM Framework which makes coding easier? Jul 27 00:51:13 :) Jul 27 00:51:19 hi phoenixz! :) Jul 27 00:51:24 HikaruBG: a quick google for "android orm" will answer your questions Jul 27 00:51:25 HikaruBG what have you googled for so far ? Jul 27 00:51:33 some beginner questions I have for all of you! :) Jul 27 00:51:59 phoenixz: Try making a test keystore, copy and paste this: "keytool -genkey -v -keystore my-release-key.keystore Jul 27 00:51:59 -alias testalias -keyalg RSA -keysize 2048 -validity 10000" Jul 27 00:52:25 I have googled how to setup ANdroid Studio, How to link up my HTC ONE M8 with Ubuntu (the MTP was tough) and how to enable it as a debugging device. Jul 27 00:52:28 all this is done Jul 27 00:52:35 I am up for some coding now Jul 27 00:52:36 :) Jul 27 00:53:09 sqpat you can use volley, or async task (use onPostComplete or whatever, that'll happen on the UI thread) or create a handler on the UI thread and pass it a message with an object Jul 27 00:53:32 or you can do something like Handler h = new Handler(Looper.getMainLooper); h.post(new Runnable{ /blah blah } } Jul 27 00:53:35 ooh, handlers.. Jul 27 00:53:45 thats familiar, i think I know what to then Jul 27 00:53:45 tho async task is probably the way to go Jul 27 00:54:12 desmin88: testing.. Jul 27 00:54:16 i use asynctask usually, this thread sticks out like a sore thumb... i have to think theres a reason i wrote it this way? Jul 27 00:54:24 Ahm phoenixz, so google first, ask questions later huh? :) Jul 27 00:54:50 who knows Jul 27 00:54:57 desmin88: That's working finally :), yaayyyyy, one step! Jul 27 00:55:04 thanks - anything different than ORMLite? Jul 27 00:55:26 some DB Design tool for SQL-Lite? Jul 27 00:55:55 hikaru you can create db on your desktop, use the statements to use sqliteopenhelper to create it in java Jul 27 00:56:34 you can also use something of a hack to include a database with your app, problem is you have to copy it into your database you create in java, so you end up stuck with an extra database file in your app (so its better to load records from server, after you create server if you can) Jul 27 00:57:37 desmin88: No idea why that did not work before then.. Any recommended tutorial to finish this signing then? Jul 27 00:59:24 phoenixz: well, now that you tested that it works Jul 27 00:59:30 you can make your real keycert that you will be using Jul 27 01:02:35 desmin88: Is there any recommended tutorial for this, or can I just use the first thing that google pops up with? Jul 27 01:02:44 first thing Jul 27 01:02:57 or use this one Jul 27 01:02:58 http://developer.android.com/tools/publishing/app-signing.html#setup Jul 27 01:07:11 does anyone knows if sqlite browser is available for Ubuntu? Jul 27 01:07:40 I have been trying to compile it, but, it has instructions how to do that only in OSX Jul 27 01:08:47 https://apps.ubuntu.com/cat/applications/sqlitebrowser/ Jul 27 01:09:01 "Sqlite browser for ubuntu" Jul 27 01:10:31 d Jul 27 01:10:49 desmin88: Thanks, I'll retry that one! Jul 27 01:59:02 hrm is there an xml attribute to center an icon on the point (where two sides meet) of another image view? Jul 27 01:59:27 not "fit in" but have the icon centered on that point Jul 27 02:00:04 clear Jul 27 02:00:32 Jesperhead: please provide a crude mspaint drawing for clarification Jul 27 02:00:49 lol Jul 27 02:00:51 |_ Jul 27 02:01:03 I want an icon CENTERED on when the two lines meet Jul 27 02:01:08 where* Jul 27 02:01:59 so you have two image views side by side? Jul 27 02:02:31 two views, one is a button, the other is just a larger "background" image Jul 27 02:02:50 I want the button to be centered on a point of the bg image view Jul 27 02:02:59 oh Jul 27 02:03:02 point = where to edges meet Jul 27 02:03:05 two* Jul 27 02:03:17 so the button is contained within the background image Jul 27 02:03:38 no, its position just needs to be based off the corner of the image Jul 27 02:04:04 part of the button will actually "bleed off" the image based on what im wanting it to do Jul 27 02:04:04 .-. Jul 27 02:04:35 i need a crude mspaint image Jul 27 02:05:16 http://i.imgur.com/vO8qy0n.png Jul 27 02:05:29 :-\ Jul 27 02:11:26 ah Jul 27 02:11:32 i had a completely different mental image Jul 27 02:12:04 well Jul 27 02:12:06 relatively layout Jul 27 02:12:17 relativelayout* Jul 27 02:12:59 there isnt going to be one set xml attribute called "align view centered to corner of other view" Jul 27 02:13:53 well wait Jul 27 02:14:24 Jesperhead: set a layout gravity to bottom left Jul 27 02:14:34 set some margins to move it outside Jul 27 02:14:39 equal margins Jul 27 02:17:15 Good night **** ENDING LOGGING AT Sun Jul 27 03:00:00 2014